488 Commits

Author SHA1 Message Date
Jonas Platte
956012b76b
Release ruma-client-api 0.17.0 2023-10-05 17:14:00 +02:00
Jonas Platte
2cec6b9997 client-api: Fix a typo in CHANGELOG.md 2023-10-04 13:22:45 +02:00
Kévin Commaille
4fa1846a88 client-api: Rename SessionData to EncryptedSessionData 2023-10-02 11:17:52 +02:00
Kévin Commaille
a53bd09b8a events: Make name required in RoomNameEventContent
The wording of the spec was confusing but it is indeed required
2023-09-18 15:05:26 +02:00
Benjamin Bouvier
d3245c287b
client-api: Allow receiving read receipts for all subscribed rooms in sync::v4
Given "rooms: '*'", the sliding sync proxy will return read receipts for all the subscribed rooms at any
time. This patch adds safe static support for this option, still allowing individual room ids too.
2023-08-28 18:26:43 +02:00
Jonas Platte
31331f3165
Bring back ruma-events
Co-authored-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-08-28 10:23:54 +02:00
Kévin Commaille
acfeb38e90 docs: Update spec links to point to v1.8 2023-08-24 12:16:29 +02:00
Jonas Platte
73b6113819
Rename test modules to tests
… for consistency.
2023-08-24 10:36:30 +02:00
Jonas Platte
8e10064364 Enforce import grouping
Includes a few manual changes to make rustfmt behave a bit better.
2023-08-22 12:31:49 +02:00
Ivan Enderlin
a9a6e67ed0
client-api: Add timestamp onto SlidingSyncRoom
This has been added in
https://github.com/matrix-org/sliding-sync/pull/247. This is not part of
the MSC yet.
2023-08-17 11:52:00 +02:00
Kévin Commaille
1701d9a803 events: Make creator field of RoomCreateEventContent optional and RedactedRoomreateEventContent a typedef
According to MSC2175
2023-08-14 15:33:39 +02:00
Damir Jelić
0a82459df6
Add support for the dehydrated devices endpoints (#1605)
This patch adds support for the endpoints used in [MSC3814].

One notable change to the MSC here is that the PUT endpoint uploads the
device and one-time keys as well.

[MSC3814]: https://github.com/matrix-org/matrix-spec-proposals/pull/3814

Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
2023-08-09 11:04:03 +02:00
Ivan Enderlin
201f0027d4
feat: Add SlidingSyncRoom::avatar
It's been recently added in the specification, 50ae2c8d65...kegan/sync-v3.
2023-07-26 16:02:28 +02:00
Jonas Platte
3dac70ead9
Remove most unreachable visibility modifiers 2023-07-19 14:32:14 +02:00
Kévin Commaille
77d94caf11 chore: Use workspace-defined MSRV 2023-07-04 15:40:37 +02:00
Jonas Platte
4d9781e05f client-api: Add missing serde(default) 2023-07-04 13:40:00 +02:00
Jonas Platte
bbdc0b68e8
client-api: Add a compat feature for Synapse's upload-signatures response 2023-07-04 13:11:46 +02:00
Kévin Commaille
86b999055e client-api: Move SpaceRoomJoinRule to ruma-common 2023-07-04 12:38:45 +02:00
Jonas Platte
c5782ab8aa
Use new owned ID macros throught the codebase 2023-06-20 11:47:50 +02:00
Benjamin Bouvier
1f8f62ecf6
client-api: Add lists and rooms to most extensions in sync::v4
Signed-off-by: Benjamin Bouvier <public@benj.me>
2023-06-16 10:41:25 +02:00
Jonas Platte
f964656a4d
Upgrade typos-ci, fix typos 2023-06-14 12:47:57 +02:00
Jonas Platte
82bfb2e4d2
client-api: Fix accidentally private response field 2023-06-08 11:37:11 +02:00
Jonas Platte
ba5bf8cfce
Replace assert_matches by assert_matches2 2023-06-08 11:37:11 +02:00
Nicolas Mauri
a2b64c20bc
client-api: Fix the http method of set_pushrule request serialization
… by using METADATA.method.
2023-06-05 19:23:20 +00:00
Benjamin Bouvier
e3282d8bfe
client-api: Move the sync v4 bump_event_types field to the list request
… as it's now per-list.

Signed-off-by: Benjamin Bouvier <public@benj.me>
2023-06-01 19:24:05 +02:00
Kévin Commaille
3b722c7faa client-api: Add support for the appservice ping mechanism
According to MSC2659
2023-05-30 20:58:24 +02:00
Kévin Commaille
915da3c983 client-api: Fix missing ErrCode deser variants 2023-05-30 20:58:24 +02:00
Kévin Commaille
38f600c602 docs: Update v1.6 spec links to v1.7 2023-05-30 16:38:30 +02:00
Benjamin Bouvier
89d12fa48a
client-api: Add conn_id to sync v4 request parameters
Signed-off-by: Benjamin Bouvier <public@benj.me>
2023-05-30 11:00:06 +02:00
Kévin Commaille
854d8076ef client-api: Stabilize async media uploads 2023-05-26 09:27:24 +02:00
Kévin Commaille
ce30aeb775 client-api: Stabilize annotations 2023-05-26 09:26:30 +02:00
Kévin Commaille
93ae0a3379 client-api: Add support for media download redirects
According to MSC3860
2023-05-25 20:33:44 +02:00
Kévin Commaille
0b390cc3c9 client-api: Add support for using an existing session to log in another
According to MSC3882
2023-05-25 20:23:07 +02:00
Jonathan de Jong
01344edc8d
Update Mutual Rooms (MSC2666) implementation (#1547) 2023-05-20 22:24:22 +02:00
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