Jonas Platte
031dedebc9
client-api: Fix small mistakes in IncomingAuthData::new docs
2021-09-27 19:51:10 +02:00
Jonas Platte
d92e7b4ca7
client-api: Remove no-op attribute
2021-09-27 19:49:47 +02:00
Johannes Becker
224d8a18e8
client-api: Add IncomingAuthData::new and IncomingAuthData::to_outgoing
2021-09-27 16:57:34 +00:00
Jonas Platte
5d36a97b59
client-api: Make fields of doc(hidden) structs private
2021-09-27 13:30:17 +02:00
Jonas Platte
8f88386125
client-api: Add data accessor to [Incoming]AuthData
2021-09-27 13:26:56 +02:00
Jonas Platte
6353e06bd5
client-api: make ThirdpartyIdCredentials an owned type
2021-09-27 13:25:16 +02:00
Jonas Platte
af250cf108
Merge JsonObject type aliases
2021-09-27 12:55:31 +02:00
Niklas Kunz
efd5ad52fa
client-api: Add the reason field for remaining endpoints (MSC2367)
2021-09-23 16:18:49 +00:00
Jonas Platte
a7be60d9eb
client-api: Use an enum for user-interactive auth stage type
2021-09-23 18:04:30 +02:00
Jonas Platte
36462694e6
client-api: Fix a spec link
2021-09-23 17:55:50 +02:00
Callum Brown
898ec65e77
client-api: Add registration token UIAA type (from MSC3231)
2021-09-22 12:18:03 +00:00
Jonas Platte
4eb5783474
client-api: Move conditionally-used import so it's always used
2021-09-21 18:54:33 +02:00
Jonas Platte
21e4c90cfa
Revert "client-api: Allow testing sync_events structs for exhaustiveness"
...
This reverts commit c816630058ab625d93ebab294e9e6c02dd9d866c.
Checking match exhaustiveness can now be done through the new
non_exhaustive_omitted_patterns lint.
2021-09-21 15:08:47 +02:00
Jonas Platte
630c1b1d01
client-api: Fix compat workaround for Element
2021-09-21 13:40:52 +02:00
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