752 Commits

Author SHA1 Message Date
Jonas Platte
de0b3e1cf3
events: Move RoomMemberEventContent reason field out of unstable-pre-spec
… stable since v1.1.
2022-02-01 21:28:19 +01:00
Jonas Platte
3ed7c8a643
state-res: Move knocking logic out of unstable-pre-spec 2022-02-01 21:08:19 +01:00
Jonas Platte
1a4e464422
Move restricted join rules and room versions 8, 9 from unstable-pre-spec to unstable-spec 2022-02-01 20:47:37 +01:00
Jonathan de Jong
8348b97091
Improve Synapse compatibility w.r.t. power levels 2022-02-01 15:26:30 +01:00
Jonathan de Jong
bdf4a86770
signatures: Add redact_in_place 2022-02-01 15:03:22 +01:00
Jonas Platte
89ae41166d
events: Move new verification events out of unstable-pre-spec
… since they were stabilized with v1.1.
2022-01-31 20:43:38 +01:00
Jonas Platte
90fe9edc32
events: Remove questionable trait implementations
They weren't really useful for user code.
2022-01-31 20:43:38 +01:00
Jonas Platte
f4a8ef6306
client-api: Fix todo comment formatting 2022-01-31 20:42:15 +01:00
Jonas Platte
d09c961a0b
state-res: Apply clippy suggestion 2022-01-31 20:16:41 +01:00
Jonathan de Jong
f631685389
client-api: Move token registration to new unstable-spec feature 2022-01-31 20:10:19 +01:00
Jonas Platte
21ef0a3c63
federation-api: Use TransactionId for DirectDeviceContent#message_id 2022-01-29 02:11:22 +01:00
Jonas Platte
392cf23d4b
events: Don't store data of unknown events in enums 2022-01-29 02:08:33 +01:00
Jonas Platte
38ba38228a
events: Use PrivOwnedStr for #[doc(hidden)] event_type field 2022-01-29 01:31:18 +01:00
Jonas Platte
b8396b9cc0
client-api: Fix response serde for get[_latest]_backup 2022-01-28 23:52:40 +01:00
Jonas Platte
e0d7ea3ed1
api: Add manual_body_serde derive attribute for responses 2022-01-28 23:52:36 +01:00
Jonas Platte
82becb86c8
client-api: Remove Raw nesting
… should be unnecessary.
2022-01-27 16:16:35 +01:00
Jonas Platte
fab5c9128f
client-api: Fix broken update_backup::Request deserialization 2022-01-27 15:41:33 +01:00
Jonas Platte
e906de7eee
client-api: Fix broken create_backup::Request deserialization 2022-01-27 15:39:48 +01:00
Jonas Platte
14de5dad29
client-api: Add missing import 2022-01-27 15:30:28 +01:00
Jonas Platte
16e18bdebf
client-api: Be consistent about Raw usage for backup key routes 2022-01-27 15:19:27 +01:00
Jonas Platte
37095f8855
events: Fix missing import 2022-01-23 17:22:25 +01:00
Jonas Platte
46d2957c29
events: Use TransactionId for secret request IDs 2022-01-23 17:21:53 +01:00
Jonas Platte
9aa748459a
Revert "identifiers: Add SecretRequestId"
This reverts commit aafbe14923a9272029652e7f56ef2aa809b03e34.
2022-01-23 17:20:59 +01:00
Jonas Platte
aafbe14923
identifiers: Add SecretRequestId 2022-01-23 17:01:24 +01:00
Jonas Platte
04ff192302
ruma: Re-export TransactionId from crate root 2022-01-23 16:12:18 +01:00
Jonas Platte
2bdcf8fdfe
serde: Fix Base64 not being Send + Sync 2022-01-23 14:29:44 +01:00
Jonas Platte
b7bcecbb77
serde: Fix lots of issues from previous commit 2022-01-23 14:10:57 +01:00
Jonas Platte
0dbeac8505
events: Fix wrong base64 character set for k field in JsonWebKey 2022-01-23 13:48:42 +01:00
Jonas Platte
47cc004e06
serde: Add Base64::into_inner 2022-01-23 12:01:45 +01:00
Jonas Platte
a39bee9949
client-api: Fix wrong HTTP methods on backup delete routes 2022-01-22 14:36:41 +01:00
Kévin Commaille
b8a741cb30
client-api: Move MSC2858 out of unstable-pre-spec 2022-01-20 13:29:22 +00:00
Andrej Kacian
e4a21580a2
Add M_WEAK_PASSWORD error code to ruma-client-api 2022-01-17 15:57:22 +01:00
Timo Kösters
08d60b3d37
events: Add is_allowed method to RoomServerAclEventContent 2022-01-17 11:47:39 +00:00
Jonas Platte
cb135f5982
state-res: Update spec link and linkify links 2022-01-17 12:13:00 +01:00
Jonathan de Jong
3b32577276
federation-api: Support MSC3618 2022-01-17 12:08:24 +01:00
Jonas Platte
7eb83f6b7a
identifiers: Update changelog 2022-01-17 12:07:07 +01:00
Jonas Platte
3c194ee43b
identifiers: Add port method to ServerName 2022-01-17 12:05:40 +01:00
Jonas Platte
4c2654c605
identifiers: Add host and is_ip_literal methods to ServerName
Co-authored-by: Timo Kösters <timo@koesters.xyz>
2022-01-17 12:05:14 +01:00
Jonas Platte
026c186b32
events: Fix non-public doc(hidden) fn 2022-01-17 11:16:51 +01:00
Jonas Platte
e387abda81
events: Raise an error when trying to serialize _Custom variant of event content enum 2022-01-17 00:43:00 +01:00
Jonas Platte
ef6728abde
Add a TransactionId type 2022-01-16 23:17:23 +01:00
Jonathan de Jong
9bdde6241e
serde: Update base64.rs with a comment
Some minimal comment after https://github.com/ruma/ruma/pull/773#discussion_r757822969.
2022-01-13 17:33:56 +00:00
Jonas Platte
4c859c5aeb
Introduce a Base64 type and use it where applicable 2022-01-13 16:22:21 +01:00
Jonas Platte
1bdeebbd00
state-res: Reduce indentation by adding early returns 2022-01-13 13:52:43 +01:00
Jonas Platte
ee977b48f0
Make the inner type of _Custom enum variants unusable
The variant itself would be private if possible, this is the solution
closest to that.
2022-01-13 11:38:48 +01:00
Julian Sparber
f8ba7f7957
ruma-events: Add CancelCode variants for SAS verification
See: https://spec.matrix.org/v1.1/client-server-api/#verification-messages-specific-to-sas
2022-01-12 21:48:06 +01:00
plustik
b3f7d0ed52
client-api: Update get_message_events for v1.1
* Remove serde(skip_serializing_if = ...) attribute from chunk response field
* Make the start response field required by changing its type from
  Option<String> to String
2022-01-11 16:28:11 +01:00
gnieto
824cefb3e9
Properly validate localpart when parsing UserId
When a `UserId` was created via `parse_with_server_name` (and its
variants), the localpart was not validated. This lead to invalid user
ids being constructed and lead to a crash when `is_historical` was
called.

This changes will prevent that this invalid user is can be constructed.
2022-01-03 14:58:38 +00:00
Jonas Platte
3cb728e61a
Enforce most serde_json import renames through clippy 2022-01-03 12:28:15 +01:00
Jonas Platte
9621b83d49
Use doc_auto_cfg for automatic cfg documentation 2022-01-02 19:22:42 +01:00