29 Commits

Author SHA1 Message Date
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
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
Devin Ragotzy
c04a9e71c5
Add the unstable-pre-spec feature to the federation-api crate 2020-10-28 14:54:01 +01: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
67d113ba57
api: Add non_exhaustive attribute to request and reponse types through the macro 2020-09-11 21:01:02 +02:00
Julian Tescher
a2dbeeac71
federation-api: Update ts format for create_invite (#258) 2020-09-08 01:00:06 +02:00
Nicholas Young
7ccdaa34d6 feature gate exhaustive types for all spec crates:
- ruma-appservice-api
- ruma-client-api
- ruma-events
- ruma-federation-api
2020-09-01 18:39:41 -06:00
Jonas Platte
21eb1e8e41
federation-api: Fix various issues 2020-08-24 21:39:50 +02:00
Jonas Platte
f84287038e
federation-api: Make remaining request / response types non-exhaustive 2020-08-23 18:00:58 +02:00
Jonas Platte
135bea8562
federation-api: More small improvements 2020-08-20 02:13:57 +02:00
Jonas Platte
64c5159f04
federation-api: Add lots of non_exhaustive attributes, other minor fixes 2020-08-19 02:04:10 +02:00
Jonas Platte
8f31f40b81
Fix formatting 2020-08-18 13:55:19 +02:00
Timo
58abd51d1e
Fix create_join_event and create_join_event_template endpoints 2020-08-18 13:17:50 +02:00
Amanda Graven
aff914050e
federation-api: Add invite endpoint v1 and v2 2020-08-15 13:33:14 +02:00
Jonas Platte
29e115cbce
Move all foo/mod.rs to foo.rs 2020-08-14 11:56:33 +02:00
Jonas Platte
0a1a381e6c
federation-api: Fix types in create_join_event_template::v1 request & response 2020-08-12 14:36:03 +02:00
Bernardo Yusti
ea2992a412
federation-api: Add V2 send join 2020-07-25 02:12:27 +02:00
skim
b260a13d4b
move and rename ruma_events::json::EventJson to ruma_common::raw::Raw 2020-07-16 07:31:36 -07:00
Ragotzy.devin
5376a3fc6e
Add colons to ruma_api! macro after each keyword 2020-06-30 13:06:37 +02:00
Jonas Platte
1aed6ab52b
Fix intra_doc_link_resolution_failure warnings 2020-06-18 12:27:21 +02:00
iinuwa
bfad8cf1f1
Add send transaction endpoint
Also refactor PDU types and move them to ruma-events
2020-06-17 11:02:19 +02:00
Jonas Platte
10bd7d5f95 Add 'ruma-federation-api/' from commit '44a0f493d0ae119fb1175a5f61c2db52ef001fb7'
git-subtree-dir: ruma-federation-api
git-subtree-mainline: acff664671e3f53bd012d33228363780eb20cf35
git-subtree-split: 44a0f493d0ae119fb1175a5f61c2db52ef001fb7
2020-06-07 16:21:23 +02:00