100 Commits

Author SHA1 Message Date
Jonas Platte
f818b53ca1
Make conversions from Ruma types to http types generic
So users can select the Body type that makes the most sense for them.
2021-04-23 13:26:10 +02:00
Devin Ragotzy
992266b38e
federation-api: Create Edu enum 2021-04-17 00:28:49 +02:00
Timo Kösters
6394609feb
federation-api: Clean up create_leave_event and get_leave_event 2021-04-13 15:10:01 +02:00
Devin Ragotzy
72394655fd Fix test using try_into -> try_into_http_response 2021-04-13 01:17:46 +02:00
Kévin Commaille
19e849a82a
docs: Document uses of the unstable-pre-spec feature flag 2021-04-12 11:31:01 +02:00
Timo Kösters
63421dfca6
federation-api: Improve create_invite endpoint 2021-04-12 11:01:34 +02:00
Kévin Commaille
154f9b2d58
docs: Document compat feature uses 2021-04-07 12:47:44 +02:00
Kévin Commaille
963400979b
docs: Harmonize ruma modules descriptions 2021-04-07 12:14:49 +02:00
Jonas Platte
466b8679d6
Replace all uses of ruma_serde::empty::Empty
… and remove it from the public API.
2021-04-05 18:57:42 +02:00
Jonas Platte
1bf4157a89
Add favicon and logo URLs for rustdoc 2021-04-05 11:42:07 +02:00
Kévin Commaille
b1470261e0 federation-api: Replace String with MxcUri for avatar_url 2021-04-05 08:10:21 +02:00
Takayuki Maeda
f196f5b6f1 fix clippy warnings 2021-03-15 16:46:15 +01:00
Takayuki Maeda
9cfa3b075c deserialize empty string to none for avatar_url 2021-03-15 16:46:15 +01:00
Jonas Platte
a20c75d536
Fix import grouping issues 2021-02-25 20:55:19 +01:00
gnieto
a85b7031a3
Wrap PDUs in Raw on federation backfill endpoint
Wrap the PDU as done in all the other federation endpoints.
2021-01-17 16:57:30 +01:00
Jonas Platte
87e821094c
federation-api: Move Visitor declaration into deserialize function 2020-12-15 14:35:46 +01:00
Jonas Platte
e1d621ebd0
Re-apply "federation-api: Make pdus of transactions optional under unstable-pre-spec"
This reverts commit cf7718107267eb65cc2b87a60dd343ce46fd70c1.
2020-12-13 11:55:06 +01:00
Jonas Platte
cf77181072
Revert "federation-api: Make pdus of transactions optional under unstable-pre-spec"
This reverts commit 5a65634a28cd007416fa2d4b665ab60e5d46d920.
2020-12-10 16:40:33 +01:00
Timo Kösters
5a65634a28
federation-api: Make pdus of transactions optional under unstable-pre-spec 2020-12-10 15:42:14 +01:00
Devin Ragotzy
f17c5fc619
Use Raw<Pdu> in get_event Response over Pdu 2020-12-06 12:20:48 +01:00
Jonas Platte
5562a23aaa
Move Raw, Outgoing and all macro code from ruma-common to ruma-serde 2020-11-28 03:45:39 +01:00
Jonas Platte
f8bf8b3fb8
federation-api: Rename SigningKey => ServerSigningKeys 2020-11-28 00:19:25 +01:00
Jonas Platte
e7f55ea2c6
Rewrap comments 2020-11-27 18:22:18 +01:00
Jonas Platte
d809066c9c
federation-api: Minor fixes to create_join_event 2020-11-18 19:36:32 +01:00
Guillem Nieto
b168c38d83 Use Pdu on create_join_event endpoints
Sending requests to this endpoints to Synapse/Dendrite homeservers leads
to some deserialization errors.

After claryfing it
(https://github.com/matrix-org/matrix-doc/issues/2856), `room_id` and
`event_id` fields are expected to appear on request's body and also on
path params. It seems that there's some initiative, in any case, to
remove the parameters from path:
https://github.com/matrix-org/matrix-doc/issues/2330
2020-11-18 19:30:23 +01:00
Jonas Platte
0f64a6ea39
Fix new clippy warnings 2020-11-10 16:48:35 +01:00
Jonas Platte
374603f51c
Rename SigningKeyId to ServerSigningKeyId 2020-11-08 19:24:48 +01:00
Isaiah Inuwa
b793a790db
Rename ServerKeyId to SigningKeyId 2020-11-08 13:21:55 +01:00
Jonas Platte
d34a270919
Allow custom values for more enums 2020-11-02 00:29:47 +01:00
Devin Ragotzy
c04a9e71c5
Add the unstable-pre-spec feature to the federation-api crate 2020-10-28 14:54:01 +01:00
Jonas Platte
3b3ef1cb75
Remove test_ prefix from lots of test functions 2020-10-25 23:11:08 +01:00
Timo Kösters
6f821835f1
federation-api: Wrap events jn get_missing_events in Raw 2020-10-18 11:25:24 +02:00
Timo Kösters
90bd4874e3
Remove Option wrapper around directory filters 2020-10-17 23:06:52 +02:00
Amanda Graven
6a1c452ac9
Add generic query endpoint 2020-10-10 01:12:53 +02:00
Devin Ragotzy
8049631827 Make get_missing_events Request/Response fields pub 2020-10-02 18:05:49 -04:00
Amanda Graven
7412664c26
Correct metadata for bind_callback endpoint 2020-09-29 19:35:56 +02:00
Devin Ragotzy
38daf33b47
Add Raw wrapper to get_room_state endpoint 2020-09-27 18:01:08 +02:00
Amanda Graven
c08d350343
federation-api: Add third party invite endpoint 2020-09-25 18:59:50 +02:00
Amanda Graven
d562eef001
Add 3PID binding callpack endpoint v1 2020-09-25 15:40:58 +02:00
Jonas Platte
e1bedc819c
Use ruma_identifiers::ServerName in more endpoints
Co-authored-by: Timo Kösters <timo@koesters.xyz>
2020-09-21 23:12:45 +02:00
Jonas Platte
2bd533c085
federation-api: Fix missing Raw<> for Pdu, Edu 2020-09-21 23:07:22 +02:00
Jonas Platte
7aec43c323
Fix missing serde(default) attributes 2020-09-21 23:06:20 +02:00
Vincent Lee
d36d005b97
Change requires_authentication: bool to authentication: AuthScheme 2020-09-18 16:28:51 +02:00
Jonas Platte
2112ae00c6
federation-api: Make EventTemplate non-exhaustive 2020-09-17 22:09:51 +02:00
Jonas Platte
2b01a8211a
federation-api: Rewrap doc comments 2020-09-17 22:00:22 +02:00
Jonas Platte
15e1a4bea8
Remove origin field from transactions and pdus for #[feature = "unstable-pre-spec"]
See https://github.com/matrix-org/synapse/issues/3816

Co-authored-by: Timo <timo@koesters.xyz>
2020-09-17 21:24:02 +02:00
q-b
192db0371c
Add leave event endpoints 2020-09-17 20:04:41 +02:00
q-b
b05121877b
Merge room_state and invite_response serde modules 2020-09-16 13:14:33 +02:00
Jonas Platte
7426a4e359
Fix small code style inconsistency 2020-09-14 22:19:13 +02:00
Jonas Platte
481ca6b415
federation-api: Use ServerKeys for verify_keys, old_verify_keys 2020-09-13 17:12:48 +02:00