319 Commits

Author SHA1 Message Date
Jonas Platte
2b04cacc82
client-api: Don't serialize well_known if it's None in login response 2021-04-30 14:39:39 +02:00
Jonas Platte
8c286e78d4
client-api: Fix unused import warnings with no active features 2021-04-29 17:47:49 +02:00
Jonas Platte
0df3a68f30
Fix type of account_data in get_{global,room}_account_data 2021-04-29 17:45:55 +02:00
Jonas Platte
27dc07d538
client-api: Implement request traits for send_state_event manually 2021-04-26 12:33:26 +02:00
132ikl
190376bf0d
client-api: Fix unsetting avatar url when compat is enabled 2021-04-24 19:47:17 +00:00
Jonas Platte
12ec0fb168
api: Rename SendAccessToken methods to be clearer
Co-authored-by: Johannes Becker <j.becker@famedly.com>
2021-04-23 15:01:57 +02:00
Jonas Platte
1e005f576e
api: Slightly optimize OutgoingRequest implementations 2021-04-23 13:37:13 +02:00
Jonas Platte
f818b53ca1
Make conversions from Ruma types to http types generic
So users can select the Body type that makes the most sense for them.
2021-04-23 13:26:10 +02:00
Jonas Platte
ae26be88c5
api-macros: Refactor access token sending logic 2021-04-23 13:22:20 +02:00
Jonas Platte
c5adfd48be
client-api: Stop using Foo name in tests 2021-04-23 12:51:05 +02:00
Johannes Becker
37462b9ae1 client-api: Remove unstable-synapse-quirks feature
Only worked around `authentication` sometimes being required,
which now can be achieved with `SendAccessToken`
2021-04-23 10:56:04 +02:00
Johannes Becker
0ca5785ead api: Replace access_token Option with SendAccessToken enum 2021-04-23 10:56:04 +02:00
Johannes Becker
a3a756c339 client-api: Support appservice login type on /register 2021-04-23 10:56:04 +02:00
Jonas Platte
4daa30f1bb
client-api: Fix clippy warning 2021-04-22 15:05:58 +02:00
Jonas Platte
313830812f
client-api: Simplify serde attributes 2021-04-20 11:39:21 +02:00
Jonas Platte
c816630058
client-api: Allow testing sync_events structs for exhaustiveness
… even without `unstable-exhaustive-types`.
2021-04-19 01:37:32 +02:00
Jonas Platte
e73378c90a
client-api: Fix warning in tests 2021-04-19 01:37:32 +02:00
Jonas Platte
624a48a724
client-api: Borrow RawJsonValue in set_global_account_data 2021-04-18 12:44:28 +02:00
Jonas Platte
f11ba9ee15
client-api: Use ruma_serde::Raw instead of RawJsonValue in get_state_events_for_key 2021-04-18 12:44:13 +02:00
Jonas Platte
9f815facc5
client-api: Split push::Pusher in two
The definitions for the get and set endpoint are different.
2021-04-18 12:25:40 +02:00
Jonas Platte
10adf0c0c0
client-api: Use Raw in send_message_event, send_state_event 2021-04-18 12:23:03 +02:00
Jonas Platte
54eb9ef7a8
Release ruma-client-api 0.10.0-alpha.3 2021-04-17 19:57:34 +02:00
Jonas Platte
de949815af
Release ruma-api 0.17.0-alpha.4 2021-04-17 19:39:02 +02:00
Jonas Platte
b3c646a2b7
Release ruma-events 0.22.0-alpha.3 2021-04-17 19:33:51 +02:00
Jonas Platte
6581eb8606
Release ruma-common 0.5.0 2021-04-17 19:03:42 +02:00
Jonas Platte
24e2f3996a
client-api: Fix tests for unstable-pre-spec 2021-04-16 13:57:25 +02:00
Jonas Platte
47d6b45857
client-api: Remove PartialEq and Eq for most types in get_login_types 2021-04-16 12:18:49 +02:00
Abhik Jain
f16d7b67c3
serde-macros: Add M_MATRIX_ERROR_CASE casing rename rule 2021-04-15 13:45:05 +02:00
Kévin Commaille
51951082d5
client-api: Implement MSC2858 - Multiple SSO Identity Providers 2021-04-14 17:17:55 +02:00
Jonas Platte
c1693569f1
api: Replace bytes::Buf by AsRef<u8> for reading
This allows us to switch back to serde_json::from_slice instead of
serde_json::from_reader, because the latter is significantly slower.

See https://github.com/serde-rs/json/issues/160
2021-04-13 22:12:16 +02:00
Jonas Platte
10fb4c9910
Release ruma-common 0.4.0 2021-04-13 21:29:26 +02:00
Jonas Platte
2a8b4a0478
Release ruma-identifiers 0.19.0 2021-04-13 21:12:24 +02:00
Jonas Platte
12b2d65e45
client-api: Fix recently broken test 2021-04-13 15:07:26 +02:00
Jonas Platte
a774771fc9
Remove verbose error types from tests 2021-04-13 14:14:27 +02:00
Jonas Platte
19806cc9d1
client-api: Fix recently broken test 2021-04-13 13:57:28 +02:00
Jonas Platte
6585aeb628
api: Make OutgoingResponse a supertrait of EndpointError 2021-04-13 13:15:57 +02:00
Jonas Platte
0e197aae0b
api: Update try_from_http_request to be generic like try_from_http_response 2021-04-12 20:38:22 +02:00
Jonas Platte
6f5c1ee953
api: Stop storing the http::Request in RequestDeserializationError 2021-04-12 20:38:22 +02:00
Jonas Platte
2ac020173b
api: Introduce IncomingResponse trait 2021-04-12 20:38:22 +02:00
Jonas Platte
effb53444d
api: Stop storing the http::Response in ResponseDeserializationError 2021-04-12 20:38:22 +02:00
Kévin Commaille
b89a18fa16
client-api: Fix check warnings and tests with no feature enabled 2021-04-12 18:57:04 +02:00
Kévin Commaille
19e849a82a
docs: Document uses of the unstable-pre-spec feature flag 2021-04-12 11:31:01 +02:00
Kévin Commaille
e2728a7081
identifiers: Make MxcUri less strict 2021-04-11 10:15:37 +02:00
Kévin Commaille
154f9b2d58
docs: Document compat feature uses 2021-04-07 12:47:44 +02:00
Kévin Commaille
963400979b
docs: Harmonize ruma modules descriptions 2021-04-07 12:14:49 +02:00
Jonas Platte
a310ccc318
client-api: Move some tests behind feature flags 2021-04-06 17:20:47 +02:00
Jonas Platte
c523fa0f74
Use ruma_api::try_deserialize in manual endpoint implementations 2021-04-05 22:33:05 +02:00
Jonas Platte
a07eb4ecff
client-api: Fix deserialization of recently changed state endpoint requests 2021-04-05 19:37:45 +02:00
Jonas Platte
2f1b9f0979
client-api: Merge _for_empty_key endpoints into their more general siblings 2021-04-05 16:04:28 +02:00
Jonas Platte
4b05ee5f0a
client-api: Use ruma_api! for endpoints with special request types 2021-04-05 15:11:59 +02:00