5505 Commits

Author SHA1 Message Date
Kévin Commaille
3997e445b5 client-api: Allow /versions to optionally accept authentication
According to MSC4026.
2024-03-07 12:30:28 +01:00
Kévin Commaille
f652cbb60f api: Add support for optional authentication 2024-03-07 12:30:28 +01:00
Kévin Commaille
a8f1440698 state-res: Refactor Knock membership transition 2024-03-05 10:43:52 +01:00
Kévin Commaille
f24cae17f5 client-api: Add support for local user erasure
According to MSC4025
2024-02-28 20:24:45 +01:00
Kévin Commaille
6c7fbb5e88 events: Disallow invite->knock membership change 2024-02-28 10:34:52 +01:00
Kévin Commaille
812625fab4 state-res: Disallow invite->knock membership transition
Due to a spec clarification that reverts the previous spec clarification
2024-02-28 10:34:52 +01:00
SpiritCroc
631911a1de
events: Add filename and formatted fields to media messages
For MSC2530 media captions
2024-02-27 11:40:56 +01:00
Matthias Ahouansou
1a1c61ee1e events: change type of state_key field of HierarchySpaceChildEvent to OwnedRoomId 2024-02-24 20:30:44 +01:00
avdb13
abebde0cf1
client-api: Add optional cookie field to sso_login*::Response 2024-02-23 14:22:49 +00:00
Damir Jelić
b8768c3f19
client-api: Don't require the failures field in the signatures upload response
The field is not marked as required in the spec[1] and at least one homeserver, namely Dendrite, omits the field if it's empty.

[1]: https://spec.matrix.org/unstable/client-server-api/#post_matrixclientv3keyssignaturesupload
2024-02-22 16:17:44 +01:00
strawberry
4d9f754657 client-api: add deprecated login fields to password and appservice login types
`user`, `medium`, and `address` for `m.login.password`
`user` for `m.login.appservice`

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-02-17 18:22:20 +01:00
Matthias Ahouansou
f1a8497ecb federation-api: Implement From<SpaceHierarchyParentSummary> for SpaceHierarchyChildSummary 2024-02-16 11:21:29 +01:00
Matthias Ahouansou
c00085b520 events: Implement From<JoinRule> for SpaceRoomJoinRule 2024-02-14 14:27:21 +01:00
Kévin Commaille
76c58b143a push: Don't use deprecated methods 2024-02-14 13:07:21 +01:00
Kévin Commaille
05c88d6afc state-res: Fix new clippy warnings 2024-02-14 13:07:21 +01:00
Kévin Commaille
201733ebe9 ci: Bump nightly toolchain 2024-02-14 13:07:21 +01:00
Stefan Ceriu
68c9bb0930
Add support for MSC2867 - Manually marking rooms as unread 2024-01-26 23:28:11 +00:00
Jonas Platte
684ffc7898 client: Use .to_owned() instead of .parse().unwrap()
… for &str to String conversion in examples.
2024-01-18 16:04:13 +01:00
Richard van der Hoff
9d81576af7
events: Correct properties of SecretStorageV1AesHmacSha2Properties
The `key` and `iv` properties of this type are, and have always been, optional according to the spec.
2024-01-18 13:54:39 +00:00
Jonas Platte
aa3acd88d2 Add error_kind accessor methods for client-server API errors 2024-01-13 11:16:09 +01:00
Jonas Platte
0453a27838 ci: Remove MSRV from job name
… so we don't have to update branch protection rules whenever we bump the MSRV.
2024-01-11 16:49:43 +01:00
Kévin Commaille
a7e1d7fa49 events: Split method to get power level to redact between own and others events 2024-01-11 16:46:36 +01:00
Jonas Platte
0b2a459400 client: Replace async-trait with RPITIT / AFIT
(return type position impl trait in traits / async fn in traits)
2024-01-10 16:31:25 +01:00
Jonas Platte
d77c0d0bd7 xtask: Fix clippy-wasm ci job
Looks like it is not run in CI currently.
2024-01-10 16:19:49 +01:00
Jonas Platte
36fec32640 xtask: Silence new clippy lint 2024-01-10 16:13:32 +01:00
Jonas Platte
8d9e96ed76 Simplify known_versions return types
Thanks to clippy for the lint!
2024-01-10 16:12:49 +01:00
Jonas Platte
157b36d305 xtask: Simplify match arm
Thanks to clippy for the lint!
2024-01-10 16:09:03 +01:00
Kévin Commaille
9a5142052c appservice-api: Make the url field of Registration an Option
It was always possible to set it to `null`, according to the Matrix
spec.
2024-01-03 18:40:40 +01:00
Kévin Commaille
7c49b84e6d events: Add convenience method to check if a user can changed another user's power level 2024-01-02 14:33:09 +01:00
Kévin Commaille
06ac62213c events: Add convenience methods to check if a user can unban users 2024-01-02 14:33:09 +01:00
Kévin Commaille
9d9827c165 events: Add convenience methods about actions to other users according to power levels
Some of these actions are limited by the power level of the other user.
2024-01-02 14:33:09 +01:00
Kévin Commaille
b7829d5607 Fix test 2023-12-26 17:28:43 +01:00
Kévin Commaille
00f8a6743b push: Allow to deserialize Ruleset with missing fields
According to the Matrix Specification, no field is required.
2023-12-26 17:28:43 +01:00
Kévin Commaille
4ae2455f80 client-api: Add GET /auth_issuer endpoint from MSC2965 2023-12-26 15:33:36 +01:00
Kévin Commaille
56d8a59c1b push: Add accessor for the RuleKind of Predefined{*}RuleId 2023-12-05 10:56:36 +01:00
Kévin Commaille
ba75b09a45 push: Implement AsRef<str> for PredefinedRuleId 2023-12-05 10:56:36 +01:00
Kévin Commaille
df1a63909a events: Implement From<RoomPowerLevels> for PushConditionPowerLevelsCtx 2023-12-03 13:03:06 +01:00
Kévin Commaille
90d3605b87 push: Make power levels optional in PushConditionRoomCtx 2023-12-03 13:03:06 +01:00
Kévin Commaille
4efca6fba5 docs: Point links to v1.9 of the spec 2023-11-30 14:42:14 +01:00
Kévin Commaille
ac2f725bcc api: Add support for Matrix 1.9 2023-11-30 14:42:14 +01:00
Kévin Commaille
b4133b7863 push: Stabilize support for MSC3958 2023-11-30 14:37:17 +01:00
Jonas Platte
ec54fd99de
Merge branch 'ruma-0.9.x' 2023-11-27 16:19:31 +01:00
Jonas Platte
5b6bb2632d
Release ruma 0.9.4 2023-11-27 16:18:37 +01:00
Jonas Platte
23c2b9546d
Release ruma-events 0.27.11 2023-11-27 16:17:39 +01:00
Timo
ef9f790928
events: Add CallNotify event as described by MSC4075
https://github.com/matrix-org/matrix-spec-proposals/pull/4075
2023-11-27 16:17:23 +01:00
Timo
8fc12b0324
events: Add CallNotify event as described by MSC4075
https://github.com/matrix-org/matrix-spec-proposals/pull/4075
2023-11-27 15:49:36 +01:00
Jonas Platte
6639c727ae
Merge branch 'ruma-0.9.x' 2023-11-22 20:02:17 +01:00
Jonas Platte
877b1c63fe
Release ruma-events 0.27.10 2023-11-22 19:52:20 +01:00
Jonas Platte
e90076162e
Release ruma 0.9.3 2023-11-22 19:40:31 +01:00
Jonas Platte
5abb225078
Release ruma-client-api 0.17.4 2023-11-20 22:55:57 +01:00