569 Commits

Author SHA1 Message Date
Kévin Commaille
48288865db
api: Only percent-encode reserved characters in endpoint URL path 2023-01-16 13:07:33 +01:00
Jonas Platte
b859d9c8b0
common: Derive Debug via StringEnum derive 2023-01-13 13:49:59 +01:00
Kévin Commaille
9a9bd2c933 events: Remove Raw::deserialize_content
Replace it with deserialize_as or deserialize_with_type.
2023-01-10 11:37:31 +01:00
Kévin Commaille
89e06adecf client-api: Use ToDeviceEventType in send_event_to_device 2023-01-04 15:58:34 +01:00
Kévin Commaille
6b31f66afc client-api: Use RoomAccountDataEventType in get_room_account_data 2023-01-04 15:58:34 +01:00
Kévin Commaille
423c03f5d2 client-api: Use GlobalAccountDataEventType in get_global_account_data 2023-01-04 15:58:34 +01:00
Kévin Commaille
74c6e38a6b client-api: Move Direction to ruma-common::api 2023-01-03 11:24:47 +01:00
Kévin Commaille
d0b2ed3609 client-api: Add support to get an event by timestamp
According to MSC3030
2023-01-03 11:24:47 +01:00
Kévin Commaille
ca78825e94 events: rename RoomEventType to TimelineEventType 2023-01-03 10:36:13 +01:00
Jonas Platte
022a0c0475
Remove unused dependencies 2023-01-02 18:30:01 +01:00
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
d18bea570c Use Cargo workspace dependencies
… for most external dependencies that are used from multiple workspace
crates.
2022-11-01 11:13:21 +01:00
Jonathan de Jong
7e1fd603e6
Bump MSRV to 1.64 2022-10-26 17:22:23 +02: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
3c3c6f388f
Merge branch 'ruma-0.7' 2022-10-18 09:14:16 +02:00
Jonas Platte
bc67b9aae3
Release ruma-client-api 0.15.3 2022-10-18 09:12:14 +02:00
Jonas Platte
67b2ec7d34
Release ruma-common 0.10.5 2022-10-18 09:09:59 +02:00
Jonas Platte
6ec7fc09ea
Merge branch 'ruma-0.7' 2022-10-17 18:05:42 +02:00
Jonas Platte
c8dacdbbab
Release ruma-client-api 0.15.2 2022-10-17 18:03:29 +02:00
Jonas Platte
7dd567a7c7
client-api: Don't include extra field in Debug-format of login::CustomLoginInfo 2022-10-17 18:01:40 +02:00
Jonas Platte
88a6e9995d
client-api: Don't include token in Debug-format of login::Token 2022-10-17 18:01:39 +02:00
Jonas Platte
d14cd4e697
client-api: Don't include password in Debug-format of login::Password 2022-10-17 18:01:39 +02:00
Jonas Platte
83d60d1fab
Release ruma-common 0.10.4 2022-10-17 17:27:27 +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