22 Commits

Author SHA1 Message Date
Kévin Commaille
917584e0ca client-api: Move Error authenticate field to ErrorKind::Forbidden 2024-03-31 21:04:18 +02:00
Jonas Platte
ba5bf8cfce
Replace assert_matches by assert_matches2 2023-06-08 11:37:11 +02:00
Jonas Platte
3211fccab0
Remove borrowing in requests 2022-11-28 14:02:35 +01:00
Jonas Platte
a8ba82d585 api: Make EndpointError construction infallible
Simplifies error matching and preserves more information for
non-spec-compliant server errors.
2022-11-10 13:10:57 +01:00
Jonas Platte
9dd4014750
client-api: Export nothing with neither client nor server feature active
… to work around a build failure in that configuration.
This configuration is useful either way.
2022-09-12 20:51:50 +02:00
Kévin Commaille
c1d10b1061 client-api: Split some test assertions 2022-06-07 15:30:49 +02:00
Jonas Platte
b34bfaf1f6
Replace matches crate with assert_matches 2022-05-24 18:07:29 +02:00
Kévin Commaille
fbe07e8636
client-api: Rename discover module to discovery
Align with federation-api
2022-03-13 09:45:02 +01:00
Kévin Commaille
f32dcb9254
common: Merge ruma-api into ruma-common 2022-03-03 14:01:51 +01:00
Kévin Commaille
c5a6cf033f
client-api: Rename UserIdentifier::MatrixId to UserIdOrLocalpart 2022-02-18 14:58:38 +00:00
Jonas Platte
48da0a1a12
client-api: Remove UIAA types m.login.oauth2 and m.login.token
Removed from the specification in v1.1.
2022-02-18 15:50:33 +01:00
Jonathan de Jong
4787bab6ac
client-api: Transition from r0 to versioned endpoints 2022-02-18 11:03:55 +01:00
Jonas Platte
ee99486978
client-api: Use new path metadata fields 2022-02-13 11:21:49 +01:00
Jonathan de Jong
397727726e
api: Add multiple path support to OutgoingRequest 2022-02-12 13:44:11 +01:00
Jonas Platte
9c4bf00f79
Remove remaining unstable-spec features
Everything that was gated behind it was stabilized with Matrix v1.2.
2022-02-02 23:32:27 +01:00
Jonas Platte
f4a8ef6306
client-api: Fix todo comment formatting 2022-01-31 20:42:15 +01:00
Jonathan de Jong
f631685389
client-api: Move token registration to new unstable-spec feature 2022-01-31 20:10:19 +01:00
Jonas Platte
ef6728abde
Add a TransactionId type 2022-01-16 23:17:23 +01:00
Jonas Platte
a7be60d9eb
client-api: Use an enum for user-interactive auth stage type 2021-09-23 18:04:30 +02:00
Callum Brown
898ec65e77
client-api: Add registration token UIAA type (from MSC3231) 2021-09-22 12:18:03 +00:00
Jonas Platte
7df5a0f09d
api: Fix inverse condition for sending application/json content-type 2021-09-21 18:54:10 +02:00
Jonas Platte
552fc32b32
client-api: Make uiaa::AuthData more helpful / strongly-typed 2021-08-11 16:38:01 +02:00