141 Commits

Author SHA1 Message Date
Jonas Platte
5852658da5
identifiers: Make KeyId a DST 2021-11-26 00:40:44 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST 2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
ec605a0959
identifiers: Make MxcUri a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST 2021-11-25 22:34:40 +01:00
Jonas Platte
c73eb7dce3
identifiers: Make DeviceKeyId a DST 2021-11-25 21:07:14 +01:00
Jonas Platte
438efee143
identifiers: Remove Box<$id> aliases 2021-11-25 21:07:14 +01:00
Jonas Platte
6d244cd236
federation-api: Add note about minimum_valid_until_ts field type 2021-11-09 22:12:23 +01:00
gnieto
b60df453dc
federation-api: Remove unneeded parameter on get_remote_server_keys_batch
The `minimum_valid_until_ts` parameter is not needed on this endpoint
(https://matrix.org/docs/spec/server_server/r0.1.4#post-matrix-key-v2-query).
2021-11-09 22:09:48 +01:00
Kevin Jones
21487aacdc
federation-api: Fix version discovery endpoint 2021-10-19 15:39:09 +00:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs 2021-10-08 12:49:13 +02:00
Jonas Platte
271491732e
Remove now-redundant doc(cfg) attributes
They are now implied:
https://github.com/rust-lang/rust/pull/89596
2021-10-08 11:52:18 +02:00
Devin Ragotzy
52bea1d9b4
Update server-server spec links 2021-10-06 10:48:08 +02:00
Jonas Platte
04080085f9
events: Include all event type segments in Rust type names 2021-10-02 21:25:21 +02:00
gnieto
cd4344115d
federation-api: Make device name field in DeviceListUpdateContent optional
According to the spec, `device_display_name` should be absent if the
device does not have any display name. This also changes the  `DeviceListUpdateContent`
constructor and it initializes this field with a None.
2021-09-26 11:27:12 +02:00
Jonas Platte
ca49cf802d
federation: Borrow more request fields 2021-09-19 19:59:18 +02:00
Jonas Platte
36bc8bf73a
federation-api: Replace Raw<Pdu> with Box<RawJsonValue> 2021-09-15 20:36:20 +02:00
Jonas Platte
1d6b84d522
federation-api: Fix request query deserialization for get_remote_server_keys_batch 2021-09-01 15:21:18 +02:00
Jonas Platte
a03955a778
federation-api: Fix request body (de)serialization 2021-09-01 15:18:51 +02:00
Jonas Platte
dc842f028f
Add missing commas 2021-08-30 17:34:20 +02:00
Jonas Platte
15553e1da9
federation-api: Add a test for v1 /send_join response serialization
Co-authored-by: Timo Kösters <timo@koesters.xyz>
2021-08-17 00:20:10 +02:00
Devin Ragotzy
1489b5e1f1
federation/push: Make all pub enums non_exhaustive 2021-08-10 15:22:26 +02:00
Jonas Platte
ef96b0f381
Add missing Debug implementations 2021-08-10 15:22:04 +02:00
Jonas Platte
9b2602649f
Stop special-casing zero fields in macro code 2021-07-09 15:10:22 +02:00
Adam
6dfd89b98d
Add knock feature (unstable-pre-spec) 2021-07-05 16:57:06 +02:00
Adam
118ea0f85a
Update endpoints for blurhash implementation
* Add blurhash to profile and avatar endpoints.
* Add `blurhash` fields to `GET /_matrix/federation/v1/query/profile`
  and `m.room.member`.
* Add `generate_blurhash` field to `PUT /_matrix/media/r0/upload`
2021-07-04 18:38:06 +02:00
Devin Ragotzy
6d0ff8b876 federation: Remove ctor in favor of Init struct 2021-06-18 21:02:14 +02:00
Devin Ragotzy
030f23b9e9 federation: Make all pub structs non_exhaustive 2021-06-18 21:02:14 +02:00
Jonas Platte
ecad815a5b
federation-api: Make bind_callback forwards compatible with add'l medium support 2021-06-18 14:02:40 +02:00
Jonas Platte
b51b0c54f9
federation-api: Use Raw for messages in transactions::edu 2021-06-17 19:43:23 +02:00
Timo Kösters
c198cf6e9f
federation-api: Improve claim_keys endpoint 2021-06-17 19:43:22 +02:00
Adam Blanchet
33f3a19021
Fix link in doc comment in ruma-federation-api::keys::get_keys::v1 2021-06-07 19:51:51 +01:00
Jonas Platte
f7ed9c5c44
federation-api: Enable doc_cfg feature under cfg(docsrs) 2021-05-22 15:36:46 +02:00
Timo Kösters
a238a0dda5
federation-api: Improve get_keys 2021-05-21 12:37:41 +02:00
Jonas Platte
4dd9baa238
Improve consistency in docs 2021-05-16 23:38:19 +02:00
Jonas Platte
fe68bf0e07
Clean up json! formatting 2021-05-14 01:13:42 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types 2021-05-14 01:13:17 +02:00
Kévin Commaille
7faa59be6b events: Remove BasicToDevice enum 2021-05-12 16:02:44 +02:00
Devin Ragotzy
5090c11843
Enable non-default clippy lints 2021-05-06 11:07:31 +00:00
Devin Ragotzy
c6aa2e0428 Fix clippy warnings across workspace 2021-05-06 06:16:28 -04:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00