5468 Commits

Author SHA1 Message Date
Kévin Commaille
6c4d1c0fd7 events: Add methods to get required power level for given actions 2024-03-18 21:57:13 +01:00
Jonas Platte
95707b86c3 Provide a more helpful Debug impl for timestamps 2024-03-16 00:23:31 +01: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
Matthias Ahouansou
bbf81544f2 api: support for appservice-exclusive authentication 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
Jonas Platte
a80caa4c21 events: Remove recently-introduced builder-style methods
It's unclear whether they are that important, and whether their argument
types make sense as-is.
2024-03-11 20:51:54 +01:00
Jonas Platte
0d72acd5e9 events: Improve media event content formatted field docs 2024-03-11 20:51:54 +01:00
Jonas Platte
65d0880dc9 Fix a typo 2024-03-11 20:51:54 +01: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
Kévin Commaille
22e89bde2b events: Make some fields of Candidate optional
For compatiblity with the WebRTC spec.

Notably the last Candidate should only contain the `candidate` field
with an empty string.
2024-03-08 15:12:02 +01:00
Tulir Asokan
b2c3df421d
identifiers: Fix MXC URI validation 2024-03-07 13:39:57 +01:00
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