54 Commits

Author SHA1 Message Date
timokoesters
d5d2d1d893
Make is_empty helpers in sync_events public 2020-07-27 10:34:17 +02:00
Jonas Platte
42e07308e1
Remove unused import 2020-07-26 17:02:42 +02:00
Jonas Platte
e047c647dd
fixup 2020-07-26 16:34:56 +02:00
Jonas Platte
d7463ce37d
Remove things that can't be properly deprecated
See https://github.com/rust-lang/rust/issues/47236
2020-07-26 16:24:36 +02:00
Jonas Platte
2e0a765820
Fix mistakenly renamed struct 2020-07-26 16:04:12 +02:00
Jonas Platte
c363494905
Release ruma-identifiers 0.17.1 2020-07-26 15:04:20 +02:00
Jonas Platte
85e2ae3d48
Remove ugly commas 2020-07-24 21:13:41 +02:00
Jonas Platte
360628067b
Release ruma-common 0.2.0 2020-07-24 21:08:46 +02:00
Jonas Platte
6286a2c692
Change deny attribute to warn in ruma-client-api 2020-07-24 20:31:07 +02:00
Jonas Platte
080a537664
Release ruma-identifiers 0.17.0 2020-07-22 23:06:44 +02:00
Jonas Platte
851560314c
Merge contributing notes into toplevel README.md 2020-07-22 23:05:50 +02:00
Jonas Platte
4238c91e24
Update MSRV policy 2020-07-22 23:05:50 +02:00
Kinrany
580aaf4858 Add trailing comma 2020-07-22 21:16:41 +02:00
Kinrany
dca8e8c53e Move PushRule from ruma_client_api to ruma_common
Moves ruma_client_api::r0::PushRule to ruma_common::push::AnyPushRule
2020-07-22 21:16:41 +02:00
Jonas Platte
4cbdc079b0
Improve string comparison impls 2020-07-22 19:17:24 +02:00
Bernardo Yusti
c74b737fa5
Add logout_devices parameter to change_password::Request 2020-07-21 01:40:23 +02:00
Isaiah Inuwa
ade43c8516 Use ServerName everywhere 2020-07-18 07:50:53 -05:00
Isaiah Inuwa
b6045d16a4 Use DeviceId instead of String for login response. 2020-07-18 07:25:28 -05:00
Jonas Platte
1e17afbc52
fixup! Mark types in ruma_events::room::create as non_exhaustive 2020-07-17 01:28:03 +02:00
skim
b260a13d4b
move and rename ruma_events::json::EventJson to ruma_common::raw::Raw 2020-07-16 07:31:36 -07:00
Devin R
101b8689a5 Add unstable-synapse-quirks feature for Sessions struct and fields 2020-07-15 19:17:03 -04:00
Devin R
254b24fb20 Add pre-spec fields to r0::keys::get_keys::Response 2020-07-15 19:14:57 -04:00
Ragotzy.devin
24b0068213
Add unstable backup and keys/upload_signing/signature endpoints
Co-authored-by: Timo Kosters <timo@koesters.xyz>
2020-07-15 15:53:35 +02:00
Jonas Platte
1a1884ce81
identifiers: Bump version (prerelease), update change log 2020-07-15 00:45:47 +02:00
Jonas Platte
a3e5d679a1
Revert making identifier types generic over the underlying string type
At the same time, this commit makes `ServerName` a newtype around str so
other identifier types can borrow out their server name part as a
`&ServerName`. This technique works for `ServerName` because it keeps no
additional metadata. For the other identifier types to support being
created in borrowed form from a string slice, custom DSTs first have to
be added to Rust.
2020-07-14 23:02:51 +02:00
Jonas Platte
8683901e14
Don't to_string() string literals 2020-07-14 22:11:05 +02:00
Devin R
204a90ac43 Rename *EventStub -> Sync*Event 2020-07-14 13:44:39 -04:00
skim
7b909efccc
update type of limited in r0::sync::sync_events::Timeline from Option<bool> to bool 2020-07-13 14:35:27 -07:00
gnieto
6fd4b9b8b0
Properly serialize get_tags Response
`get_tags` route response was adding the `tags` property twice, which is
not the expected behaviour. This is an example of the previous
serialization of the `get_tags` route:

`{"tags":{"tags":{"u.example":{"order":0.55},"u.another":{"order":0.11}}}}`

The new serialization removes the outer `tags` property.
2020-07-05 13:20:47 +02:00
Jonas Platte
9ecc7c11cf
Add a constructor for get_message_events::Request 2020-07-03 22:06:47 +02:00
Jonas Platte
ba95fd6c4e
Add a constructor for create_room::Request 2020-07-03 22:03:15 +02:00
Ragotzy.devin
5376a3fc6e
Add colons to ruma_api! macro after each keyword 2020-06-30 13:06:37 +02:00
Ragotzy.devin
87fb2c1e00
Add #[ruma_api(body)] attr to get_room_event endpoint 2020-06-27 22:26:20 +02:00
Ragotzy.devin
928fe6ce26
Add AnyEphemeralRoomEventStub and use it in sync response 2020-06-25 13:19:39 +02:00
Philippe Laflamme
567cfea7ac
Use UserId instead of string in r0::account::whoami 2020-06-24 16:19:25 +02:00
Jonas Platte
034a9b6926
Use js_int::uint macro for UInt constants 2020-06-19 23:00:57 +02:00
Jonas Platte
c621f220b9
Bump dependency versions 2020-06-19 22:53:07 +02:00
Jonas Platte
f9639e110e
client-api: Add constructors for the types in unversioned 2020-06-18 21:33:22 +02:00
Alan Darmasaputra
4abcc4c0bd
Change get_message_events Request limit field from Option<UInt> to UInt 2020-06-18 17:18:17 +02:00
Jonas Platte
418f92153d
ruma-client-api: Re-add r0::push::Action as deprecated, update change log 2020-06-15 19:21:04 +02:00
Jonas Platte
1d954f3089
Deprecate / remove re-exports from ruma_common 2020-06-15 19:20:34 +02:00
Jonas Platte
83d8f8c43e
Move some types from ruma_events::push_rules to ruma_common::push 2020-06-15 19:05:17 +02:00
Isaiah Inuwa
9074e4c17a Update event creation endpoints to r0.6.1 2020-06-14 20:35:44 -05:00
Jonas Platte
43ae129ce2
Add a test to get_member_events 2020-06-14 01:09:52 +02:00
Devin R
a6feed7dcb Convert Timeline's events field AnyRoomEvent -> AnyRoomEventStub 2020-06-12 22:31:56 +02:00
Devin R
a4dd53ef98 Use AnyStateEventStub for /sync response state events 2020-06-12 01:42:24 +02:00
Jonas Platte
9f93d20a34
Add back temporarily commented-out modules 2020-06-11 22:30:58 +02:00
Jonas Platte
0a788c1273
Integrate ruma-events 2020-06-10 22:20:41 +02:00
Jonas Platte
29a6c94a4f
Remove all but the toplevel .gitignore 2020-06-07 18:53:53 +02:00
Jonas Platte
7a6264e0ff
Integrate ruma-identifiers 2020-06-07 17:26:33 +02:00