743 Commits

Author SHA1 Message Date
Jonas Platte
120f1f3b2a
events: Generate event type aliases 2021-09-30 00:47:13 +02:00
Jonas Platte
f0dff1c29a
events: Link to main content struct from redacted content struct docs 2021-09-29 00:30:39 +02:00
Amanda Graven
3b5f3cb5a6
events: Move JoinRulesEventContent.allow into JoinRules 2021-09-28 13:39:58 +00:00
Jonas Platte
c6144c2299
state-res: Fix state-res tests
Before, they wouldn't compile with the unstable-exhaustive-types feature
active on ruma-state-res, but not on ruma-events.
2021-09-28 14:27:42 +02:00
Jonas Platte
00ae571636
serde: Add missing period in docs 2021-09-28 14:22:17 +02:00
Johannes Becker
e2386b7b64 client-api: Add custom variant to LoginInfo 2021-09-28 11:23:11 +02:00
Jonas Platte
1e48e97cf5
serde: Fix docs for JsonObject 2021-09-27 19:57:06 +02:00
Jonas Platte
031dedebc9
client-api: Fix small mistakes in IncomingAuthData::new docs 2021-09-27 19:51:10 +02:00
Jonas Platte
d92e7b4ca7
client-api: Remove no-op attribute 2021-09-27 19:49:47 +02:00
Jonas Platte
b4eac98acc
events: Make OlmV1Keys::ed25519 public
It was never meant to be private.
2021-09-27 19:23:18 +02:00
Johannes Becker
224d8a18e8
client-api: Add IncomingAuthData::new and IncomingAuthData::to_outgoing 2021-09-27 16:57:34 +00:00
Jonas Platte
5d36a97b59
client-api: Make fields of doc(hidden) structs private 2021-09-27 13:30:17 +02:00
Jonas Platte
8f88386125
client-api: Add data accessor to [Incoming]AuthData 2021-09-27 13:26:56 +02:00
Jonas Platte
6353e06bd5
client-api: make ThirdpartyIdCredentials an owned type 2021-09-27 13:25:16 +02:00
Jonas Platte
27a3e70465
events: Don't return body as part of MessageType::data 2021-09-27 13:01:50 +02:00
Jonas Platte
af250cf108
Merge JsonObject type aliases 2021-09-27 12:55:31 +02:00
Jonas Platte
fde518ea89
events: Adjust docs for MessageType::data 2021-09-27 12:52:47 +02:00
gnieto
cd4344115d
federation-api: Make device name field in DeviceListUpdateContent optional
According to the spec, `device_display_name` should be absent if the
device does not have any display name. This also changes the  `DeviceListUpdateContent`
constructor and it initializes this field with a None.
2021-09-26 11:27:12 +02:00
Jonas Platte
7cbffe35da
identifiers: Add matrix.to URL formatting 2021-09-23 21:12:57 +02:00
Jonas Platte
8b44f279c8
Use server_name! macro in tests 2021-09-23 20:33:45 +02:00
Jonas Platte
fe5d31a9a6
identifiers: Improve readability of one more method 2021-09-23 20:33:28 +02:00
Jonas Platte
e147308277
identifiers: Improve readability of server_name methods 2021-09-23 18:54:03 +02:00
Jonas Platte
27a2e1f97f
identifiers: Merge more impl blocks 2021-09-23 18:50:09 +02:00
Jonas Platte
79cbce00cc
client-api: Update change log 2021-09-23 18:20:51 +02:00
Niklas Kunz
efd5ad52fa
client-api: Add the reason field for remaining endpoints (MSC2367) 2021-09-23 16:18:49 +00:00
Jonas Platte
a7be60d9eb
client-api: Use an enum for user-interactive auth stage type 2021-09-23 18:04:30 +02:00
Jonas Platte
36462694e6
client-api: Fix a spec link 2021-09-23 17:55:50 +02:00
Callum Brown
898ec65e77
client-api: Add registration token UIAA type (from MSC3231) 2021-09-22 12:18:03 +00:00
Jonas Platte
a2254562b9
identifiers: Rewrap doc comment 2021-09-22 13:40:34 +02:00
Jonas Platte
ef0e9c77c3
identifiers: Merge impl blocks 2021-09-22 13:40:01 +02:00
Jonas Platte
237b423996
Release ruma-api 0.18.5 2021-09-21 18:55:29 +02:00
Jonas Platte
4eb5783474
client-api: Move conditionally-used import so it's always used 2021-09-21 18:54:33 +02:00
Jonas Platte
7df5a0f09d
api: Fix inverse condition for sending application/json content-type 2021-09-21 18:54:10 +02:00
Jonas Platte
21e4c90cfa
Revert "client-api: Allow testing sync_events structs for exhaustiveness"
This reverts commit c816630058ab625d93ebab294e9e6c02dd9d866c.

Checking match exhaustiveness can now be done through the new
non_exhaustive_omitted_patterns lint.
2021-09-21 15:08:47 +02:00
Jonas Platte
9b8e6e8d96 ruma-client-api 0.12.3
* Add a `feature = "compat"` workaround for Element failing on `GET /_matrix/client/r0/account/3pid`
   response if the optional `threepids` field is missing
 -----BEGIN PGP SIGNATURE-----
 
 iIwEABYIADQWIQSYRl0lv78dXawPPq7MFU3g4wt8ZwUCYUnGGxYcanBsYXR0ZStn
 aXRAcG9zdGVvLmRlAAoJEMwVTeDjC3xnXEAA/jR+Jn+XK1TFLY4OhLym8VN+4mxb
 YLTg0p5mAsyqSXB8AQCXGpCjyYzV1bBFYRx8J2KMTTt0zWwqYRbsCsrUyP2vDQ==
 =LUOM
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iIwEABYIADQWIQSYRl0lv78dXawPPq7MFU3g4wt8ZwUCYUnHmxYcanBsYXR0ZStn
 aXRAcG9zdGVvLmRlAAoJEMwVTeDjC3xnn00A/04e0hPc/cnl5Lzb8Tvy6Xmzc/6W
 hmRfZdcABHGX0eV7AP4xO/LAeS5qVMfwCo8X0ypPLul+PK9faWgeR0O337ZjAw==
 =Skqn
 -----END PGP SIGNATURE-----

Merge tag 'ruma-client-api-0.12.3'

ruma-client-api 0.12.3

* Add a `feature = "compat"` workaround for Element failing on `GET /_matrix/client/r0/account/3pid`
  response if the optional `threepids` field is missing
2021-09-21 13:52:58 +02:00
Jonas Platte
2f9081cd81
Release ruma-client-api 0.12.3 2021-09-21 13:46:01 +02:00
Jonas Platte
630c1b1d01
client-api: Fix compat workaround for Element 2021-09-21 13:40:52 +02:00
Jonas Platte
1350f65dcb
client-api: Fix compat workaround for Element 2021-09-21 13:40:44 +02:00
Jonas Platte
8079e1c155
Release ruma-api 0.18.4 2021-09-21 11:33:18 +02:00
Jonas Platte
d16db420e3
api: Stop adding Content-Type to requests without any fields 2021-09-21 11:32:18 +02:00
Jonas Platte
e2d9bf5eba ruma-events 0.24.6
Improvements:
 
 * Add (unstable) support for [MSC3083](https://github.com/matrix-org/matrix-doc/blob/main/proposals/3083-restricted-rooms.md)
 -----BEGIN PGP SIGNATURE-----
 
 iIwEABYIADQWIQSYRl0lv78dXawPPq7MFU3g4wt8ZwUCYUjgYBYcanBsYXR0ZStn
 aXRAcG9zdGVvLmRlAAoJEMwVTeDjC3xnvF8A/0s7gcm4pijTII7wrIOxB0eWSUgc
 TSxXIOYpsiDcswnUAP9+PLx+ziy0oxtbPcWK5bil7JBcYwM1tlqIM+d9qlgiCQ==
 =W1O9
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iIwEABYIADQWIQSYRl0lv78dXawPPq7MFU3g4wt8ZwUCYUjgkBYcanBsYXR0ZStn
 aXRAcG9zdGVvLmRlAAoJEMwVTeDjC3xnrOkBALaAq5RRXvD2xdBD2Q6H9xEPsd/x
 KSknkjMjqgCJq2g8AQCql0S5QpH8PsmOKDmMO9X6lIHnnaqUxpSOOHIm83VKAA==
 =9Aii
 -----END PGP SIGNATURE-----

Merge tag 'ruma-events-0.24.6'

ruma-events 0.24.6

Improvements:

* Add (unstable) support for [MSC3083](https://github.com/matrix-org/matrix-doc/blob/main/proposals/3083-restricted-rooms.md)
2021-09-20 21:27:12 +02:00
Jonas Platte
d07cacb61d
Release ruma-events 0.24.6 2021-09-20 21:25:27 +02:00
Jonas Platte
a9f23f6638
Add allow to JoinRulesEventContent
Co-authored-by: Amanda Graven <amanda@amandag.net>
2021-09-20 21:23:46 +02:00
Jonas Platte
83b66ab8c2
Add allow to JoinRulesEventContent
Co-authored-by: Amanda Graven <amanda@amandag.net>
2021-09-20 20:34:53 +02:00
Jonas Platte
ca49cf802d
federation: Borrow more request fields 2021-09-19 19:59:18 +02:00
Jonas Platte
2bf17fd727
events: Further clean up tests 2021-09-19 19:10:52 +02:00
Jonas Platte
9929a3f8d5
events: Clean up some tests 2021-09-19 18:56:12 +02:00
Jonas Platte
69a97232b9
state-res: Clean up test code 2021-09-17 23:52:28 +02:00
Jonas Platte
62b0034a83
identifiers: Remove extraneous newlines 2021-09-17 20:21:16 +02:00
Jonas Platte
4f3eaa83a0
identifiers: Fix Debug output of opaque identifier types 2021-09-17 20:09:21 +02:00