Jonas Platte
c4d2eacc38
client-api: Update upload_signatures endpoint
2022-02-17 22:28:51 +01:00
Jonas Platte
7a70d96235
Remove PrivOwnedStr() from Debug formatting
2022-02-15 17:46:27 +01:00
Jonas Platte
ee99486978
client-api: Use new path metadata fields
2022-02-13 11:21:49 +01:00
Jonas Platte
ebb09589f9
Remove authors field from Cargo manifests
...
It's no longer necessary and authorship is much better tracked with git.
2022-02-12 13:46:44 +01:00
Jonathan de Jong
397727726e
api: Add multiple path support to OutgoingRequest
2022-02-12 13:44:11 +01:00
Jonas Platte
dad84ac1a0
client-api: Clean up invalid r0 paths
...
These routes never existed under r0.
2022-02-12 12:46:03 +01:00
Jonas Platte
d107e04096
client-api: Use Raw for knock_state.events
2022-02-12 01:07:57 +01:00
Kévin Commaille
b9f32bc632
client-api: Move blurhash to unstable-msc2448
2022-02-11 11:29:21 +00:00
Kévin Commaille
695b0c9ef4
client-api: Finalize moving knocking support out of unstable-pre-spec
2022-02-11 10:59:58 +00:00
Kévin Commaille
739c3d5b16
client-api: Move support for fallback keys out unstable-pre-spec
2022-02-11 10:42:48 +00:00
Kévin Commaille
7a82fc0330
client-api: Move support for room type out of unstable-pre-spec
2022-02-11 10:28:51 +00:00
Kévin Commaille
203e5136fd
client-api: Move reason in membership requests out of unstable-pre-spec
2022-02-11 11:10:38 +01:00
Jonas Platte
e93511e993
client-api: Sort versions in get_supported_versions::Response::known_versions
2022-02-10 14:18:05 +01:00
Jonas Platte
2de652049d
client-api: Remove Option around RoomEventFilter
2022-02-04 13:46:28 +01:00
Jonathan de Jong
19fd35d066
api: Add MatrixVersion enum
...
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2022-02-04 12:32:12 +01:00
Jonas Platte
9c4bf00f79
Remove remaining unstable-spec features
...
Everything that was gated behind it was stabilized with Matrix v1.2.
2022-02-02 23:32:27 +01:00
Jonas Platte
62f3d4a649
client-api: Move keys route changes out of unstable-pre-spec
2022-02-02 21:10:11 +01:00
Jonas Platte
39041286b9
Move from_raw_json_value to ruma-serde
...
… and remove unnecessary copies of it.
2022-02-02 20:58:47 +01:00
Jonas Platte
cbd4457f64
client-api: Move backup out of unstable-pre-spec
2022-02-02 19:45:17 +01:00
Jonas Platte
e6f025e037
client-api: Update spec links for backup endpoints
2022-02-02 19:45:01 +01:00
Jonas Platte
bfb6dc14d9
client-api: Update get_login_types tests
2022-02-02 16:52:22 +01:00
Jonas Platte
5668ebde5a
client-api: Fix serialized form of IdentityProviderBrand and improve its docs
2022-02-02 16:36:47 +01:00
Jonathan de Jong
abd702cfbc
api: Don't extract request path arguments in IncomingRequest impls
...
… instead requiring callers to pass them as a list of strings.
Parsing is still done within the trait implementations though.
2022-02-02 11:57:29 +01:00
Jonas Platte
f4a8ef6306
client-api: Fix todo comment formatting
2022-01-31 20:42:15 +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
b8396b9cc0
client-api: Fix response serde for get[_latest]_backup
2022-01-28 23:52:40 +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
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
Jonas Platte
ef6728abde
Add a TransactionId type
2022-01-16 23:17:23 +01:00
Jonas Platte
4c859c5aeb
Introduce a Base64 type and use it where applicable
2022-01-13 16:22:21 +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
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
Jonas Platte
9621b83d49
Use doc_auto_cfg for automatic cfg documentation
2022-01-02 19:22:42 +01:00
Kévin Commaille
fac7d53134
client-api: Fix get_login_types::CustomLoginType
...
Add test for it.
2022-01-01 12:54:59 +01:00
Jonas Platte
57e84f862b
client-api: Fix unnecessary allocation in URL construction
2021-12-18 20:05:28 +01:00
Jonas Platte
28371945de
client-api: Remove unused PublicRoomsChunk type
...
There's a copy of this type in ruma-common which is actually being used.
2021-12-09 12:37:56 +01:00
Damir Jelić
fdbc4d6d1d
ruma-client-api: Use just a BTreeMap for the /keys/upload fields
2021-12-06 11:26:14 +01:00
Damir Jelić
ee3c8f3335
ruma: Fix a bunch of typos
2021-12-06 11:26:14 +01:00
Damir Jelić
caa3c05db3
client-api: Add support for fallback keys
...
This implements support for MSC2732[1], fallback keys. Only support to
upload and get notifications about fallback keys via `/sync` is
implemented.
[1]: https://github.com/matrix-org/matrix-doc/pull/2732
2021-12-06 11:26:14 +01:00
Damir Jelić
af0a8f009c
client-api: Update the backup API to use raw variants of types
...
Similarly to the way structs holding public keys require signature
verification, the BackupAlgorithm struct may require verification as
well.
This lets users know if a certain device trusts the BackupAlgorithm and
if it should be used to upload room keys to the backup.
2021-12-06 11:26:14 +01:00
Damir Jelić
786ab15c0c
client-api: Use Raw variants to upload/download keys
...
Uploaded objects holding public keys tend to have the object signed by
the very same key that is part of the object. Users that download such
public keys are expected to verify the signature to confirm that the
public key and its surrounding fields in the object have not been
manipulated with.
The SignedKey, DeviceKeys, and CrossSigningKey structs
perform a lossy variant of deserialization, which removes the ability to
verify signatures of the aforementioned objects.
This patch changes the response types to a Raw variant, which let's the
user decide how to deserialize.
2021-12-06 11:26:14 +01:00
Jonas Platte
8923881678
identifiers: Rename RoomIdOrAliasId to RoomOrAliasId
2021-11-26 01:07:41 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names
2021-11-26 01:07:26 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
...
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00