Kévin Commaille
10d70c6055
client-api: Fix timeout field in media download endpoint requests
...
According to the stabilization spec PR.
2023-05-04 13:12:43 +02:00
Kévin Commaille
f3ba40a56f
client-api: Use Request::new() in Request::from_url() for get_content_as_filename
2023-05-04 13:12:43 +02:00
Kévin Commaille
67019c7f48
client-api: Fix the type of unused_expires_at for create_mxc_uri
2023-05-04 13:12:43 +02:00
Kévin Commaille
0e5503ed88
client-api: Add filename field for create_content_async
2023-05-04 13:12:43 +02:00
Jonas Platte
54a4223caa
client-api: Fix type of SlidingSyncRoom#invite_state
2023-04-27 19:27:05 +02:00
Jonas Platte
44ed922ba2
events: Remove unnecessary Option around sliding sync extension types
2023-04-27 17:56:29 +02:00
Kévin Commaille
af2407e98a
client-api: Add M_DUPLICATE_ANNOTATION error kind
...
According to MSC2677
2023-04-26 16:02:19 +02:00
Jonas Platte
4c85fe9c78
Replace compat feature with more fine-grained compat-* features
...
… and document them.
2023-04-20 14:00:27 +02:00
Jonas Platte
57b7b2d0f5
Add context to compat attribute
2023-04-20 13:02:30 +02:00
Kévin Commaille
2bf33def5c
client-api: Remove token from keys::get_keys::Request
...
According to a spec clarification.
2023-04-17 16:11:38 +02:00
Kévin Commaille
c1a36a2047
client-api: Mention that backslashes should be escaped in filter event_fields
...
According to MSC3980
2023-04-11 11:18:20 +02:00
Ivan Enderlin
fe3a8ff669
feat(client-api): Support bump_event_types
in sync::sync_events::v4::Request
.
...
This patch updates `sync::sync_events::v4::Request` to add the new
`bump_event_types` field, as described in [MSC3575] (more precisely in
this [diff]).
That's the first step to address https://github.com/matrix-org/matrix-rust-sdk/issues/1728 .
[MSC3575]: https://github.com/matrix-org/matrix-spec-proposals/blob/kegan/sync-v3/proposals/3575-sync.md
[diff]: 35b79f6ebe...5bd13e66df (diff-1f7276cbbee4eeaaca06b07d2fe58312eab735259f2490e28e04710dde77fdccL78)
2023-04-06 14:51:25 +02:00
Jonas Platte
f79c51f18f
Fix a typo
2023-03-15 11:07:27 +01:00
Kévin Commaille
8a3bccaef1
client-api: Fix type of rank in search::search_events::v3::SearchResult
...
It is defined in the spec as a number, not an integer.
2023-03-10 11:19:32 +01:00
kegsay
543c03f8f2
client-api: Use the right EDU types in sliding sync
2023-03-08 13:28:53 +01:00
kegsay
471c46273a
client-api: Fix typo in sliding sync extensions
...
It has always been `receipts` not `receipt`.
2023-03-06 18:42:03 +01:00
Kévin Commaille
44daf84e46
client-api: Allow to convert AnyPushRule(Ref) to PushRule
2023-03-02 11:30:48 +01:00
Ivan Enderlin
2edfe5bc5f
client-api: Add missing sync::sync_events::v4::Response::txn_id
field
...
In the [specification], if the request contains a `txn_id` value, the response
must echo the same `txn_id`. Unfortunately, this field is missing from
`sync::sync_events::v4::Response::txn_id`. This patch addresses that problem by
adding the missing field.
[specification]: 89cf0341b5/proposals/3575-sync.md
2023-03-01 09:02:53 +00:00
Kévin Commaille
ba237a9cfd
client-api: Add convenience constructors for enabling lazy-loading in filters
2023-02-27 20:20:07 +01:00
Jonas Platte
145356217d
Release ruma-client-api 0.16.2
2023-02-16 19:37:28 +01:00
Jonas Platte
b50ef4864c
client-api: Don't serialize None
as null
in report_content
2023-02-16 19:25:07 +01:00
Kévin Commaille
5fae3ff34e
Release ruma-client-api 0.16.1
2023-02-15 12:59:01 +01:00
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