506 Commits

Author SHA1 Message Date
Jonas Platte
0126a7223a
client-api: Use generics for content in send_{message,state}_event::Request::new 2021-09-15 20:36:20 +02:00
Jonathan de Jong
c33920d8ae
Use thiserror in id-validation, add more detail to mxc-uri errors 2021-09-15 20:36:20 +02:00
Jonas Platte
dc842f028f
Add missing commas 2021-08-30 17:34:20 +02:00
Jonas Platte
46c7e3f811
Clean up and rewrap documentation comments 2021-08-27 21:32:02 +02:00
Jonas Platte
06f8b81ace
client-api: Remove unnecessary attribute 2021-08-21 14:28:52 +02:00
Jonas Platte
31a0845b66
client-api: Add auth_type and session accessors to IncomingAuthData 2021-08-18 20:33:26 +02:00
Jonas Platte
7c654dc0b0
client-api: Appease clippy 2021-08-18 18:39:51 +02:00
Jonas Platte
cfb1b9de04
client-api: Add auth_type and session accessors to AuthData 2021-08-18 18:30:02 +02:00
Jonas Platte
9e7f7c884a
client-api: Add a test for create_filter request (de)serialization 2021-08-16 22:19:16 +02:00
Jonas Platte
1541f2957b
client-api: Fix previously introduced test 2021-08-15 23:42:31 +02:00
Jonas Platte
dd1516f5ed
client-api: Add a test for get_filter response (de)serialization 2021-08-15 23:38:56 +02:00
Jonas Platte
e27baed854
client-api: Make uiaa::AuthData unconditionally non-exhaustive 2021-08-11 16:59:52 +02:00
Jonas Platte
552fc32b32
client-api: Make uiaa::AuthData more helpful / strongly-typed 2021-08-11 16:38:01 +02:00
Adam
63411165da
Move RoomName to ruma-identifiers and use it more 2021-08-10 15:22:47 +02:00
Timo Kösters
57266bf284
client-api: Add serde(default) for generate_blurhash 2021-08-10 15:22:47 +02:00
gnieto
5085f3b8fe
client-api: Fix inconsistent types on RoomEventFilter
`rooms` and `not_rooms` contained `String` and `RoomId` respectively and
the types have been change to use always `RoomId` as it's more concrete
and is more consistent with the other fields (like `senders` and
`not_senders`).
2021-08-10 15:22:46 +02:00
Devin Ragotzy
ab3d48b576
client-api: Make all pub enums non_exhaustive 2021-08-10 15:22:26 +02:00
Jonas Platte
7a61c9cd8c
Remove trait derives other than Debug from Init structs 2021-08-10 15:22:26 +02:00
Adam
2577225ba5
Add client secret and session ID types 2021-08-10 15:22:24 +02:00
Jonas Platte
4e68509faf
client-api: Work around another Element bug 2021-08-10 12:31:08 +02:00
Adam Blanchet
13af2e235d
client-api: Implement reasons for leaving a room 2021-08-05 21:04:14 +02:00
Jonas Platte
020da913de
Remove extraneous newlines 2021-08-05 13:29:36 +02:00
Jonas Platte
010e64c110
client-api: Fix module ordering 2021-07-20 12:39:14 +02:00
Kurt Roeckx
4985b9bddb
client-api: Export aliases 2021-07-11 12:12:12 +02:00
Jonas Platte
9b2602649f
Stop special-casing zero fields in macro code 2021-07-09 15:10:22 +02:00
Adam
d3d5d4ee96
client-api: Feature-gate join_rule field in PublicRoomsChunk 2021-07-07 10:35:34 +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
757ab5273c
client-api: Make all pub structs non_exhaustive 2021-06-18 11:09:19 +00:00
Jonas Platte
dd1fc704bd
client-api: Use Raw for messages in send_event_to_device 2021-06-17 19:43:23 +02:00
Jonas Platte
7b742f1b4c
client-api: Remove ruma-common reexports 2021-06-17 19:43:23 +02:00
Jonas Platte
28de60a90a
client-api: Use Raw in create_room::Request's initial_state field 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
Jonas Platte
282ffd9c6d
client-api: Fix clippy lint 2021-06-17 16:39:14 +02:00
Jonas Platte
ed7f673d0e
client-api: Reorder send_message_event Request fields
So path params are in the order they occur in the path.
2021-06-15 09:56:56 +02:00
Jonas Platte
13e3b45070
Move ThirdPartyIdentifier(Init) from client-api to common
While it's not currently used in any other crates in this repo,
synapse-admin-api does use it and it seems logical for it to be defined
alongside the other thirdparty types in common.
2021-06-01 21:53:58 +02:00
Amanda Graven
97937d384c Typo corrections
The "comforming" typo in the function name at
crates/ruma-identifiers-validation/src/user_id.rs:22:26
was not corrected as that would be a breaking change.
2021-06-01 12:45:34 +02:00
Timo Kösters
8173a05b2c
client-api: Remove authentication for get alias endpoint 2021-05-27 14:14:59 +00:00
Jonas Platte
59b6b83773
client-api: Post PR login / UIAA fallback cleanup 2021-05-21 18:08:38 +02:00
Jonathan de Jong
4bfd60ffdd
client-api: Add fallbacks for UIAA and login 2021-05-21 15:51:47 +00:00
Timo Kösters
a238a0dda5
federation-api: Improve get_keys 2021-05-21 12:37:41 +02:00
Marcel
a322c8cf08
Add support for spaces 2021-05-20 18:36:35 +02:00
Jonas Platte
4dd9baa238
Improve consistency in docs 2021-05-16 23:38:19 +02:00
Jonas Platte
5715234550
client-api: Make r0::membership::Invite3pid non-exhaustive 2021-05-16 23:09:25 +02:00
Jonas Platte
60d4ea027f
Use serde_json::Result alias 2021-05-15 15:02:02 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types 2021-05-14 01:13:17 +02:00
Damir Jelić
3bdead1cf2 client-api: Allow the DeviceId to turn into a DeviceIdOrAllDevices 2021-05-12 17:07:47 +02:00
Kévin Commaille
8d8ca81e04 events: Split Basic enum into GlobalAccountData, RoomAccountData and BasicToDevice enums
Closes #563
2021-05-12 16:02:44 +02:00
Kévin Commaille
6a2c028cfb events: Change receipt::Receipts struct to a BTreeMap<ReceiptType, UserReceipts> 2021-05-11 10:11:02 +02:00
Jonathan de Jong
91a7325bc4
Remove various Box<> wrappers 2021-05-10 17:15:11 +02:00