612 Commits

Author SHA1 Message Date
Kévin Commaille
00a332b037
Release ruma-client-api 0.18.0 2024-05-09 12:53:11 +02:00
Kévin Commaille
10c7e59c57 client-api: Add helper methods to convert SystemTime from/to a HTTP date 2024-05-08 19:09:13 +02:00
Kévin Commaille
b4d0ab42a3
client-api: Make get_uiaa_fallback::v3::Response an enum
It is now either a redirect or a HTML page,
with the proper status code, headers and body.
2024-05-07 17:22:17 +02:00
Kévin Commaille
fcaf4bd54a client-api: Return proper status code for SSO login endpoints 2024-05-07 08:59:08 +02:00
Kévin Commaille
cae00cfff8 client-api: Return proper content type in login_fallback::Response 2024-05-07 08:49:16 +02:00
strawberry
ef92d8b2f5 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-05-06 03:15:45 -04:00
strawberry
b8f30d4da4 add content_disposition to /thumbnail
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-05 15:30:30 -04:00
Benjamin Lee
16de61357e client-api: Don't skip the events field serializing timeline in sync response
This field is marked as required in the spec. Before
7caa8f2739e38c43effd8a215e788cc1aece13c8, the fact that we had it marked
as `skip_serializing_if` didn't really matter, because we were skipping
the entire timeline object when `events` was empty. Now that we can
serialize timelines with zero events, we always need to include the
field.
2024-05-05 03:09:56 -04:00
Benjamin Lee
3f67772dd3 client-api: Don't skip all no-event timelines serializing sync response
There are some cases where a timeline can have zero events but should
still be included in the api response. For example, when calling `/sync`
with a filter that rejects all events after `since`, but does not
necessarily reject all events in the room's history, the response should
include a `prev_batch` field so that the client can search for earlier
events matching the filter using `/messages`.
2024-05-05 03:09:56 -04:00
strawberry
1c291e18ef add custom room ID field to room creation request body
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 15:27:48 -04:00
strawberry
b10df150a2 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-05-01 15:25:44 -04:00
strawberry
cab4d5e18f skip serialising identity_server if None, and return empty string for base_url identity server if null
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 22:29:19 -04:00
Kévin Commaille
19a29934fa client-api: Add unstable support for animated thumbnails
According to MSC2705
2024-04-27 16:15:21 +02:00
strawberry
7136799881 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-04-24 15:22:18 -04:00
Benjamin Bouvier
cc44459117
client-api: add unstable MSC3266 support (room summary) (#1776)
This implements experimental support for MSC3266 for getting a room summary, which is really nice to get room previews even for rooms one is not part of.
2024-04-21 12:47:22 +02:00
strawberry
5194ea1861 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-04-18 19:45:17 -04:00
Matthias Ahouansou
becc4ac0b3 federation-api: add unstable support for MSC3843 2024-04-17 14:51:23 +02:00
Jason Volk
23535bc153 client-api: Allow empty failures object in response to upload_signatures.
Signed-off-by: Jason Volk <jason@zemos.net>
2024-04-08 07:04:56 -04:00
strawberry
580eefe1c6 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-04-07 11:04:24 -04:00
strawberry
047764bc15 client-api: add unstable MSC4121 support (moderator role definition)
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-07 16:58:07 +02:00
Kévin Commaille
31dc4a2dfb
client-api: Add support for the Retry-After header
According to MSC4041 / Matrix 1.10

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2024-04-07 13:52:43 +00:00
Jason Volk
eb970d044d client-api: Add cache-control header to media responses. 2024-04-05 11:34:47 -04:00
strawberry
31851540e9 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-04-05 11:34:23 -04:00
Jonas Platte
4a02b97aa3
Update website URL 2024-04-04 13:20:58 +02:00
strawberry
3a9c8fb87d Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-04-03 13:56:50 -04:00
Kévin Commaille
917584e0ca client-api: Move Error authenticate field to ErrorKind::Forbidden 2024-03-31 21:04:18 +02:00
Kévin Commaille
4f4085a013 client-api: Make Error non-exhaustive 2024-03-31 21:04:18 +02:00
strawberry
fd26b59718 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-03-27 13:24:52 -04:00
strawberry
7b0056b3ab client-api: make recursion_depth field public
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-03-27 18:07:06 +01:00
strawberry
85ecb1b11b client-api: add missing dir field on the relations endpoints
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-03-27 18:07:06 +01:00
strawberry
aee12dfde3 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-03-23 13:29:04 -04:00
Kévin Commaille
e249f08f4b client-api: Add server support discovery endpoint
According to MSC1929 / Matrix 1.10
2024-03-23 09:34:36 +01:00
Kévin Commaille
1d66031f8b client-api: Add support for recursion on the get_relating_events endpoints
According to MSC3981 / Matrix 1.10
2024-03-23 09:30:06 +01:00
strawberry
c988b5ff15 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-03-22 20:02:19 -04:00
Kévin Commaille
cab3b99ba7 docs: Mark changelog entries for Matrix 1.10 2024-03-22 21:28:39 +01:00
Kévin Commaille
0e7c91d789 docs: Point links to v1.10 of the spec 2024-03-22 21:28:39 +01:00
strawberry
5ab81eef0a dont skip serialising default values for capabilities
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-03-18 23:04:43 -04:00
strawberry
b36cacb4d1 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-03-13 21:11:05 -04:00
Matthias Ahouansou
4ffbed0e06 client-api: allow /login to support authentication from appservices 2024-03-13 22:06:58 +01:00
Matthias Ahouansou
93c1605a46 client-api: allow /register to support authentication from appservices 2024-03-13 22:06:58 +01:00
Levitating Pineapple
a57ec8190f Update changelog 2024-03-13 10:11:23 +01:00
Levitating Pineapple
2655624e35 client-api: Update the query parameter of check_registration_token_validity request 2024-03-13 10:11:23 +01:00
strawberry
13b8386812 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-03-08 17:10:49 -05:00
strawberry
b2542df2bb client-api: don't require ts request parameter for URL previews
spec does not say this is required and Element Android (legacy)
is a client known to *not* send this query parameter.

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-03-08 23:08:59 +01:00
strawberry
88e857db7d Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-03-08 00:07:10 -05:00
Kévin Commaille
3997e445b5 client-api: Allow /versions to optionally accept authentication
According to MSC4026.
2024-03-07 12:30:28 +01:00
strawberry
1623fffe15 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-03-02 10:51:18 -05:00
Kévin Commaille
f24cae17f5 client-api: Add support for local user erasure
According to MSC4025
2024-02-28 20:24:45 +01:00
strawberry
3b4946d66e feat: query param to return the full room state event or just the content
`?format=event|content`

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-02-23 19:30:36 -05:00
avdb13
abebde0cf1
client-api: Add optional cookie field to sso_login*::Response 2024-02-23 14:22:49 +00:00