Jonas Platte
ff8ab6b085
Replace ruma_common::serde::urlencoded with serde_html_form
2023-01-02 17:47:33 +01:00
Matthew Hodgson
8a7ef60c2c
client-api: Derive PartialEq on ExtensionsConfig
...
… to support sticky extensions.
2022-12-29 00:01:12 +01:00
Jonas Platte
67cc8e9e9c
Box rarely-used variants to reduce enum stack size
2022-12-15 11:46:30 +01:00
Kévin Commaille
803fdc52f7
client-api: Clarify that get_context always returns 'event' even if limit is zero
2022-12-14 13:08:34 +01:00
Jonas Platte
3211fccab0
Remove borrowing in requests
2022-11-28 14:02:35 +01:00
Jonas Platte
a6ba268796
client-api: Make UiaaResponse enum exhaustive
2022-11-25 20:50:58 +01:00
Benjamin Kampmann
9c46d1143d
client-api: Add M_UNKNOWN_POS error kind (MSC3575)
2022-11-15 15:01:09 +00:00
Kévin Commaille
e8bec10c6d
push: Make SimplePushRule generic over the type of the rule_id
2022-11-12 10:59:52 +01:00
Jonas Platte
ae3394a6df
api: Turn metadata name and description fields into docstrings
2022-11-12 10:17:24 +01:00
Jonas Platte
80c060cb69
Remove usage of ruma_api!
2022-11-12 10:17:24 +01:00
Jonas Platte
2500e8f8fa
api: Make query_string parameter of make_endpoint_url non-optional
...
When Some(_), the argument would often be an empty string. By always
using the empty string to mean "no query", we avoid trailing a `?` on
URLs without having two parameter values that mean the same thing.
2022-11-11 11:27:07 +01:00
Jonas Platte
d25e40764b
client-api: Fix warnings when compiling with client and without server feature
2022-11-11 11:09:32 +01:00
Jonas Platte
9f11510427
client-api: Fix serialization of endpoints with optional path segment
2022-11-11 10:48:15 +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
Kévin Commaille
aa2e905ce3
client-api: Use an enum to construct set_pushrule's Request
2022-11-09 14:45:12 +01:00
Kévin Commaille
f31530e02c
client-api: Use an enum for the scope of the push rule endpoints
2022-11-09 14:45:12 +01:00
Kévin Commaille
cb122e755c
push: Move RuleKind to ruma-common
2022-11-09 14:45:12 +01:00
Kévin Commaille
2bd5c131f4
client-api: Make PusherKind contain the pusher data
...
Since it depends on the kind
2022-11-07 10:21:48 +01:00
Kévin Commaille
801d9bf212
client-api: Use an enum to differentiate when deleting a pusher
2022-11-07 10:21:48 +01:00
Jonas Platte
d3a8a8c2e0
client-api: Future-proof Debug implementations of login types
...
Make sure we don't forget to update them when there are new fields.
2022-11-01 11:13:36 +01:00
Jonas Platte
e271af0140
client-api: Simplify Debug output of uiaa::AuthData
2022-11-01 11:13:36 +01:00
Jonas Platte
c68791a5d8
client-api: Don't include sensitive data in Debug-format of UIAA types
2022-11-01 11:13:36 +01:00
Jonas Platte
2b624c264e
client-api: Simplify Debug output for LoginInfo
2022-11-01 11:13:36 +01:00
Jonas Platte
c7e84c5249
Fix clippy lints
...
Automated using `cargo clippy --fix`.
2022-10-26 13:38:29 +02:00
Jonas Platte
54183bd748
Fix double space
2022-10-24 15:25:26 +02:00
Kévin Commaille
045861441a
doc: Update Matrix spec links to v1.4
2022-10-21 10:41:20 +02:00
Jonas Platte
6ec01bfdb4
client-api: Reorder path fields
2022-10-20 20:51:09 +02:00
Jonas Platte
bb9742e84c
client-api: Don't include extra field in Debug-format of login::CustomLoginInfo
2022-10-17 17:16:38 +02:00
Jonas Platte
fe2d0c93e2
client-api: Don't include token in Debug-format of login::Token
2022-10-17 17:16:38 +02:00
Jonas Platte
70b0d249a8
client-api: Don't include password in Debug-format of login::Password
2022-10-17 17:16:38 +02:00
Timo Kösters
00315d9c48
client-api: Remove serde aliases
2022-10-12 16:52:26 +02:00
Timo Kösters
d6b858c5fa
client-api: Add missing default attribute to create_receipt::Request#thread
2022-10-12 10:46:02 +02:00
Kévin Commaille
f9958ae2e3
client-api: Add support for read receipts for threads
...
According to MSC3771
2022-10-10 20:49:04 +02:00
Kévin Commaille
e6e7e52034
client-api: Send CORP headers by default for media responses
...
According to MSC3828.
2022-10-10 19:09:39 +02:00
Kévin Commaille
739c35aaca
api: Allow to use any HeaderName with the header keyword of ruma_api
2022-10-10 19:09:39 +02:00
Kévin Commaille
b57338c1cf
client-api: Add support for notifications for threads
...
According to MSC 3773
2022-10-10 18:39:55 +02:00
Kévin Commaille
b695dee787
client-api: Add support for dir parameter to /relations
...
According to MSC3715
2022-10-10 18:04:04 +02:00
Kévin Commaille
e2e123dd89
client-api: Move Direction to the root of the crate
2022-10-10 18:04:04 +02:00
Kévin Commaille
a7e10770fa
client-api: Remove direct association between transaction ID and access token
2022-10-02 13:29:30 +02:00
Kévin Commaille
489820303e
client-api: Stabilize support for private read receipts
2022-10-01 11:21:18 +02:00
Kévin Commaille
fa64b36c11
client-api: Add support for the threads list API
...
According to MSC3856
2022-09-30 21:17:20 +02:00
Kévin Commaille
a091faa7d2
client-api: Remove thread event filters
...
According to MSC3856
2022-09-30 17:27:28 +02:00
Jonas Platte
715c226975
api: Make select_path and make_endpoint_url methods on Metadata
...
… and remove #[doc(hidden)] attribute.
2022-09-29 15:49:39 +02:00
Jonas Platte
8290d712f2
api: Move the majority of endpoint URL building out of macro code
2022-09-29 15:49:39 +02:00
gnieto
a4a14aa9dc
client-api: Add M_BAD_ALIAS to ErrorKind
2022-09-29 14:37:30 +02:00
Jonas Platte
289821aa07
client-api: Remove DeviceLists re-export
2022-09-22 13:21:55 +02:00
Benjamin Kampmann
efc5e61021
client-api: Update sliding sync to latest
2022-09-21 18:11:32 +02:00
Jonas Platte
4fb051ba0f
Use Default derive for enums
2022-09-20 13:49:16 +02: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
Jonas Platte
914e5c21e9
events: Rename Any[Sync]RoomEvent to Any[Sync]TimelineEvent
2022-08-24 17:43:42 +02:00