Jonas Platte
cf9b83495c
client-api: Update backup endpoints to the new API standards
2020-08-29 22:37:06 +02:00
Jonas Platte
fec07a7426
Update lots of types to the new API standards
2020-08-28 23:37:22 +02:00
Jonas Platte
ab6c56b7de
Drop unnecessary named lifetimes
2020-08-28 21:32:58 +02:00
Devin Ragotzy
409fbcc9d7
Fixes get_turn_server_info path by prepending a "/"
2020-08-26 21:42:42 +02:00
Jonas Platte
e4cd59e7e5
client-api: Various API updates
2020-08-26 11:30:39 +02:00
Jonas Platte
7c31fceb61
client-api: Fix a bunch of issues for room::create_room
2020-08-25 16:20:07 +02:00
Jonas Platte
01c7eef72f
Consistently put an empty line after inner module docs
2020-08-24 21:42:48 +02:00
Jonas Platte
417b65def5
client-api: Make two more request / response pairs non-exhaustive
2020-08-21 20:40:14 +02:00
Jonas Platte
4215feb815
client-api: Add language field to search_users request
2020-08-21 20:40:14 +02:00
Alejandro Domínguez
d8340db310
Group fields in create_typing_event
2020-08-21 20:35:25 +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
51e96fb915
client-api: Fix timeline_serde test
2020-08-18 20:17:27 +02:00
Timo
6aba097b10
Fix search::search_events event types
2020-08-18 13:18:49 +02:00
Jonas Platte
6df02fc7e2
client-api: Make more types in search_events non-exhaustive
2020-08-18 04:14:40 +02:00
Jonas Platte
d7c977e593
Derive Default for lots of types
2020-08-18 03:36:05 +02:00
Jonas Platte
647f56e0a1
client-api: Make structs in sync_events non-exhaustive
2020-08-18 03:22:13 +02:00
Jonas Platte
8b362e4b63
Fix double space
2020-08-18 03:12:30 +02:00
Jonas Platte
6d40361c07
client-api: Add missing serde attrs to struct fields in sync_events
2020-08-18 03:12:29 +02:00
Jonas Platte
277800b980
client-api: Make sync_events request and response types non-exhaustive
2020-08-18 00:18:11 +02:00
Jonas Platte
83140b585c
client-api: Add From conversions for sync_events::Filter
2020-08-18 00:10:00 +02:00
Jonas Platte
7764671c36
Resolve FIXME
2020-08-18 00:05:35 +02:00
Jonas Platte
679f824c67
client-api: Add retry_after_ms field to ErrorKind::LimitExceeded
2020-08-18 00:00:17 +02:00
Jonas Platte
6b25e9a90c
client-api: Add ErrorKind::CannotLeaveServerNoticeRoom
2020-08-17 23:56:45 +02:00
Jonas Platte
674f2eeb8b
client-api: Add ErrorKind::ResourceLimitExceeded
2020-08-17 23:55:06 +02:00
Jonas Platte
962b3da26b
client-api Add room_version field to ErrorKind::IncompatibleRoomVersion
2020-08-17 23:52:06 +02:00
Jonas Platte
b5e660893e
client-api: Add soft_logout field to ErrorKind::UnknownToken
2020-08-17 23:45:38 +02:00
Jonas Platte
578f6c8925
Replace r0::room::create_room::InitialStateEvent
with ruma_events::InitialStateEvent
2020-08-17 23:36:00 +02:00
Jonas Platte
d6beef3d07
Make remaining filter types lifetime-generic
2020-08-17 22:48:53 +02:00
Jonas Platte
30a0a39d2b
Outgoing derive: Replace incoming_no_deserialize with incoming_derive(!Deserialize)
2020-08-17 22:08:56 +02:00
Jonas Platte
a1ee6c74c0
Update FilterDefinition to be lifetime-generic
2020-08-17 22:04:02 +02:00
Jonas Platte
e74158b262
Update more endpoints
2020-08-15 02:23:30 +02:00
Jonas Platte
640c5602d5
Make accidentally private fields public
2020-08-15 02:19:26 +02:00
Jonas Platte
9e8f4a3437
Use AnyStateEventContent in send_state_event_for_key
2020-08-15 00:40:39 +02:00
Jonas Platte
0babfb489c
Use AnyStateEventContent in send_state_event_for_empty_key
2020-08-15 00:40:11 +02:00
Jonas Platte
aead9fa852
Use AnyMessageEventContent in send_message_event
2020-08-15 00:37:39 +02:00
Devin Ragotzy
456505081b
Fix rooms/{roomId}/aliases and rooms/{roomId}/report endpoint metadata fields
2020-08-14 15:43:21 +02:00
Isaiah Inuwa
eaf3fd41cc
Use shared directory types from ruma-common in ruma-federation-api and ruma-client-api
2020-08-14 12:14:21 +02:00
Jonas Platte
d6c15e5769
client-api: More borrowing
2020-08-14 01:40:35 +02:00
Jonas Platte
7557ed438b
Replace last explicit use of Box<ServerName> outside ruma-identifiers
2020-08-14 01:08:16 +02:00
Jonas Platte
a165c43460
Make some request and response types non-exhaustive
2020-08-14 00:30:25 +02:00
Jonas Platte
157957ced6
client-api: Update more endpoints to new API conventions
2020-08-14 00:30:20 +02:00
Jonas Platte
a674afe512
client-api: Include add_3pid in r0::account
2020-08-14 00:20:06 +02:00
Jonas Platte
6e2b76c528
Fixup for f210f916
2020-08-13 22:10:25 +02:00
Jonas Platte
148d876acb
Use ServerNameBox in ruma-events, ruma-*-api
2020-08-13 22:01:15 +02:00
Jonas Platte
b4b96e44fd
Borrow things in more endpoint requests
2020-08-13 22:01:12 +02:00
Jonas Platte
a00129fcfb
Borrow strings and identifiers in membership::ThirdPartySigned and dependent endpoints
2020-08-13 21:21:57 +02:00
Jonas Platte
4a1b6d5607
Use DeviceIdBox in ruma-events, ruma-*-api
2020-08-13 21:19:41 +02:00
Jonas Platte
f210f91611
Borrow strings and identifiers in uiaa::AuthData and dependent endpoints
2020-08-13 21:19:38 +02:00
Jonas Platte
987d48666c
Split Endpoint trait into OutgoingRequest, IncomingRequest
2020-08-12 23:33:27 +02:00
florianjacob
467e7afd5e
Require std::error::Error for EndpointError
...
and implement it for ruma_api::error::FromHttpResponseError and Void.
This allows integrating EndpointErrors in the common rust error
ecosystem like thiserror and anyhow.
2020-08-12 14:00:44 +02:00