Kévin Commaille
1aa2eadd70
client-api: Remove RuleScope
...
The `global` scope is hardcoded due to a clarification in the spec.
2024-10-19 14:58:59 -04:00
Charles Hall
7a8ca45bbe
client-api: allow constructing ErrorBody::NotJson
2024-10-19 14:58:40 -04:00
strawberry
506b340302
add r0 endpoint to PUT /_matrix/client/r0/room_keys/keys
...
there's no reason to be needlessly pessimistic, they are
functionally the same.
see https://github.com/element-hq/hydrogen-web/issues/741
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-10-16 14:57:41 -04:00
strawberry
e81ed2741b
add room reporting as per MSC4151
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-10-01 23:49:00 -04:00
strawberry
0738b7f72d
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-10-01 10:46:37 -04:00
Kévin Commaille
a9267360cb
client-api: Add support for account locking
...
According to MSC3939.
2024-09-29 11:11:18 +02:00
strawberry
ade2f1daf0
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-09-28 17:09:18 -04:00
Kévin Commaille
12a2e9342b
client-api: Add m.get_login_token capability
...
According to a clarification in the spec.
2024-09-28 20:34:46 +02:00
Ivan Enderlin
85b412ffed
client-api: sync::v5::Request::timeline_limit
is not optional. ( #1914 )
...
Contrary to MSC3575, MSC4186 has `timeline_limit` which is not optional.
This patch changes `timeline_limit: Option<UInt>` to `Int` directly.
2024-09-27 08:17:02 +02:00
Ivan Enderlin
463904db31
client-api: Remove sync::v5::Response::initial
. ( #1913 )
...
This patch removes the `initial` field from the `Response` for
MSC4186. There is no top-level `initial` value. This field exists for
`response::Room` though.
2024-09-27 08:16:47 +02:00
Ivan Enderlin
c06af4385e
client-api: Add unstable-msc4186
inside the CHANGELOG.md
. ( #1911 )
2024-09-24 09:30:31 +02:00
strawberry
9900d06765
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-09-17 17:55:49 -04:00
Benjamin Lee
92a35381b5
client-api: fix build when unstable-msc4168 feature is disabled ( #1910 )
...
Without this feature, the v5 module does not exist.
2024-09-16 08:17:11 +02:00
strawberry
b6f82a72b6
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-09-13 16:35:24 -04:00
Ivan Enderlin
7cfa3be0c6
client-api: Implement MSC4186. ( #1907 )
...
* client-api: Derive `Default` for `v4::SyncList`.
* client-api: Implement MSC4186.
2024-09-12 07:12:49 +00:00
Jonas Platte
1a138ed6c9
Use workspace lint configuration instead of rustflags hack
2024-09-11 07:13:32 +00:00
strawberry
25c6d8b2ad
cargo fmt
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-09 22:40:40 -04:00
strawberry
f621b318c5
support generic KV pairs of MSC4133
...
still GET/PUT/DELETE for now
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-09 22:40:32 -04:00
Johannes Marbach
0c00b90b22
client-api: Replace server_name with via in knock_room and join_room_by_id_or_alias
...
According to MSC4156
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
2024-09-09 11:26:23 +02:00
morguldir
b432789838
use RoomTypeFilter
instead of Option<RoomType>
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-07 12:19:59 -04:00
strawberry
83a9bf7366
add DELETE impl of MSC4133 for MSC4175
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 23:25:12 -04:00
strawberry
bf93f9caa6
partial impl GET/PUT for MSC4133 and MSC4175
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 23:13:31 -04:00
strawberry
c8a2d06e24
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 21:10:32 -04:00
morguldir
d6890ef00c
client-api: use a RoomTypeFilter for syncv3 (not_)room_types filters
...
Signed-off-by: morguldir <morguldir@protonmail.com>
2024-09-05 19:48:18 +00:00
morguldir
f1fbfb12ea
client-api: use RoomType for syncv3 filters instead of strings
...
(cherry picked from commit 5b2ce304010d7c4d1dc1b53af5d49eb1171422ed)
Signed-off-by: morguldir <morguldir@protonmail.com>
2024-09-05 19:48:18 +00:00
strawberry
000d1e3732
add missing other piece to ThreepidMediumNotSupported
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-08-24 13:15:34 -04:00
morguldir
5b2ce30401
syncv3: use RoomType in sync filters
...
Signed-off-by: morguldir <morguldir@protonmail.com>
2024-08-23 20:45:20 +02:00
strawberry
cd2de49c87
add M_THREEPID_MEDIUM_NOT_SUPPORTED, per MSC4178
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-08-17 02:19:44 -04:00
Jason Volk
2d2deb4ca7
structured Mxc type
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-16 00:37:51 +00:00
Jason Volk
3f06ade0fd
Revert "Revert "optimize for optional static response headers zero-copy zero-alloc""
...
This reverts commit 6bdc5ad326029e84fe05ed2591d9ba442bab8ff5.
Revert "Revert "Fix assumptions about header value types""
This reverts commit 03037f6c92ffb43388022d288e5a36f20a8559dd.
2024-08-15 05:20:21 +00:00
Jason Volk
6e5e96cba3
add missing ContentDisposition header; fix non-upstreamed ContentDisposition strong type
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-15 01:07:28 +00:00
Jason Volk
e312768a66
add missing corp/cache-control headers to client authenticated media
...
Signed-off-by: Jason Volk <jason@zemos.net>
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-08-14 02:09:52 -04:00
strawberry
69b2bc4b8c
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-08-14 01:47:43 -04:00
strawberry
6bdc5ad326
Revert "optimize for optional static response headers zero-copy zero-alloc"
...
This reverts commit fd11fee88d937d69f557fa3d6ef09639c7b2e2f7.
2024-08-14 01:46:35 -04:00
strawberry
959048c0c4
Revert "add missing corp/cache-control headers to authenticated media"
...
This reverts commit 9d25b0d5c27dbcc62a70fbaacb80632bf6bc9ebc.
2024-08-14 01:46:10 -04:00
Jason Volk
9d25b0d5c2
add missing corp/cache-control headers to authenticated media
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 23:03:07 +00:00
Jason Volk
fd11fee88d
optimize for optional static response headers zero-copy zero-alloc
...
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 22:59:57 +00:00
Timo
878d2b287b
events: update future endpoints and rename future to delay
...
To match the latest version of the MSC
2024-07-29 16:38:38 +02:00
Kévin Commaille
14d7415f0d
client-api: Do not send request body for logout and logout_all
...
Due to a clarification in the spec.
2024-07-16 20:21:29 +02:00
Kévin Commaille
586668806e
client-api: Move some media types and helpers to ruma-common
...
Without breaking changes.
2024-07-16 15:02:45 +02:00
Kévin Commaille
f9ae582b27
chore: Make bytes a workspace dependency
2024-07-16 15:02:45 +02:00
Kévin Commaille
463f89b0eb
client-api: Add a type for the Content-Disposition HTTP header
2024-07-14 12:28:48 +02:00
strawberry
c51ccb2c68
fix incorrect MSC3266 room summary API endpoint
...
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-07-03 15:42:44 -04:00
strawberry
9a5bfad849
Merge remote-tracking branch 'upstream/main' into conduwuit-changes
2024-06-30 11:54:39 -04:00
Timo
862be071d2
client-api: Add future endpoints
2024-06-25 12:45:15 +02:00
Kévin Commaille
bc39c04af9
client-api: Add support for terms of service at registration
...
According to MSC1692 / Matrix 1.11
2024-06-22 11:05:57 +02:00
Kévin Commaille
ba76e0ee3a
client-api: Stabilize support for animated thumbnails
...
According to Matrix 1.11
2024-06-22 10:58:13 +02:00
Kévin Commaille
968c52b117
api: Rename request macro attribute query_map to query_all
...
Remove its IntoIterator bound to allow to represent
the query fields as a single struct or enum.
2024-06-21 19:15:59 +02:00
Kévin Commaille
b8e4d5b6a2
misc: Update spec links to latest version
2024-06-21 18:10:14 +02:00
Kévin Commaille
46781d70ef
client-api: Deprecate non-authenticated media endpoints
...
According to MSC3916 / Matrix 1.11
2024-06-21 17:55:34 +02:00