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
Jonas Platte
dffa60d70f
client-api: Update leave_room to new API conventions
2020-08-11 02:03:14 +02:00
Jonas Platte
b20768c1b1
Integrate ruma-client
2020-08-11 01:41:23 +02:00
Amanda Graven
fdc15123b0
Reorganize encyption related code
...
Some types used for encryption related tasks need to be used across more
internal crates than expected, so a few have been moved and renamed for
clarity.
* Rename the key_algorithms module in ruma-identifiers-validation to crypto_algorithms
* Move ruma_events::Algorithm to ruma-identifiers-validation and rename it EventEncryptionAlgorithm
* Move DeviceKeys from ruma-client-api to ruma-common
2020-08-10 18:38:53 +02:00
Jonas Platte
da78e215f8
Use thirdparty network types into ruma_common
2020-08-09 00:45:35 +02:00
Jonas Platte
1fbf05d71f
Fix some bad formatting
2020-08-08 21:52:58 +02:00
Jonas Platte
0366466792
Use toplevel imports in ruma_api! expansion
2020-08-08 21:23:07 +02:00
Jonas Platte
c39e9f5779
client-api: Move tests in get_public_rooms into tests module
2020-08-08 21:07:35 +02:00
Jonas Platte
f37fc6845f
Remove borrowing from API responses
...
To borrow these with correct lifetimes, we would need GATs
2020-08-08 21:04:45 +02:00
Jonas Platte
d6d84a9a70
Bump ruma-identifiers version
2020-08-08 18:28:23 +02:00
Jonas Platte
9384d24d04
Fix last commit not building with the unstable-pre-spec feature
2020-08-08 17:06:14 +02:00
Jonas Platte
a74dddd93b
Borrow strings and identifiers in more endpoints
2020-08-08 16:50:37 +02:00
Jonas Platte
6f805d2584
client-api: Simplify r0::room::create_room::CreationContent::into_event_content
using the assign crate
2020-08-08 16:36:13 +02:00
Jonas Platte
a1916837f9
Bump ruma-identifiers version
2020-08-08 16:21:11 +02:00
Isaiah Inuwa
7eb945976c
Use strong types in signatures fields
2020-08-08 15:54:31 +02:00
Isaiah Inuwa
7240184c1d
Use DeviceKeyId and DeviceKeyAlgorithm from ruma-identifiers
2020-08-08 15:54:31 +02:00
Jonas Platte
d08fc02bc0
Update ruma-client-api changelog
2020-08-08 15:50:41 +02:00
Jonas Platte
349027f87d
Borrow strings and identifiers in send_state_event_*
2020-08-08 14:36:31 +02:00
Jonas Platte
2e683b2fd4
Borrow strings and identifiers in send_message_event
2020-08-08 14:28:07 +02:00