632 Commits

Author SHA1 Message Date
Kévin Commaille
a859567487 docs: Migrate spec links to v1.6 2023-02-15 09:59:05 +01:00
Kévin Commaille
fc7cc74789 docs: Don't use since with the deprecated attribute 2023-02-14 22:50:20 +01:00
Kévin Commaille
9f92794294 client-api: Move get_event_by_timestamp out of unstable-msc3030
According to Matrix 1.6
2023-02-14 22:05:37 +01:00
HKalbasi
ca99c97a0c
Use #[deprecated] instead of doc comments 2023-02-12 19:18:06 +01:00
Kévin Commaille
e653912e22 xtask: Disallow linking to the latest spec when a link uses a non-unique ID
These IDs can change from one version to the other if another heading
with the same name is added before, so the link would not
point to the proper part of the spec anymore.
2023-02-12 12:39:24 +01:00
Kévin Commaille
f159776f52 chore: Make all applicable spec links use the latest spec instead of a specific version 2023-02-12 12:39:24 +01:00
Benjamin Kampmann
6cd3935280
client-api: Fix event type inside sync_events::v4 required_state fields 2023-02-08 09:03:31 +01:00
Jonas Platte
a6c8a4eddd
Release ruma-client-api 0.16.0 2023-02-01 14:02:40 +01:00
Jonas Platte
b6f0a43fa3
Use workspace dependencies for path dependencies 2023-02-01 12:37:45 +01:00
Benjamin Kampmann
00045e559f
client-api: Upgrade to Sliding Sync JSON Layout 0.99
… and implement typing and receipt extensions.
2023-01-31 12:48:47 +00:00
Doug
47450cecc9
Add unstable support for discovering a sliding sync proxy (MSC3575) 2023-01-24 20:53:22 +01:00
digital
c79f9a97e1 client-api: add support for appservice login 2023-01-19 16:12:22 +01:00
digital
6c00e03c19 client-api: correct typos in comments 2023-01-19 16:12:22 +01:00
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