214 Commits

Author SHA1 Message Date
Isaiah Inuwa
abcc8ec1d2
Update register endpoint to r0.6.0 2020-04-07 11:19:20 +02:00
iinuwa
dc582758e4
Add server_name parameter to join_room_by_id_or_alias 2020-04-06 17:28:55 +02:00
timokoesters
d6e4bd9ddc
Fix create_room and sync_events deserialization 2020-04-06 12:23:17 +02:00
Jonas Platte
abc5b5d446
Merge serde attributes 2020-04-03 18:38:16 +02:00
Jonas Platte
cf40608b78
Add missing attribute to timeout field
… in sync_events' Request type, plus a regression test
2020-04-03 18:37:25 +02:00
Jonas Platte
0c44e73a78
Bump js_int, add regression test
The version bump fixes an issue where `UInt`s or `Duration`s in the
query string would fail
to deserialize
2020-04-03 18:22:52 +02:00
poljar
3dfb500bba
sync_events: Fix RoomSummary serde attributes
* Create an empty heroes vector if the response doesn't contain it.

  The heroes map is strictly optional and as is deserialization might fail
  for the whole response unless we allow it to be optional.

* Rename the room summary fields during (de)serialization.
2020-04-03 14:01:12 +02:00
Jonas Platte
09ac2404de
Add a test for sync_events::Request serialization 2020-04-03 11:56:49 +02:00
Isaiah Inuwa
67257e15e8
Remove stray TODO comment 2020-03-29 18:58:31 +02:00
Jonas Platte
78744a3a98
Further refine the sync endpoint's types 2020-03-29 18:55:24 +02:00
Isaiah Inuwa
e607587a67
Format code 2020-03-29 18:51:44 +02:00
Isaiah Inuwa
2cced78edf
Update sync endpoint 2020-03-29 18:51:44 +02:00
Akshay
57f5e8d661
Add missing query parameters to members list endpoint 2020-03-27 16:40:40 +01:00
Akshay
ea94bab93e
Remove outdated comment 2020-03-27 15:24:04 +01:00
Ragotzy.devin
1e3769a0f1
impl EndpointError for Error
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2020-03-22 03:08:08 +01:00
iinuwa
122097cfef
Use Duration over UInt for timeouts and similar fields 2020-03-20 11:29:51 +01:00
Damir Jelić
7307c695e0 sync_events: Parse the to-device events. 2020-03-13 16:53:02 +01:00
Jonas Platte
e7526b88cb
Update ruma-events to 0.17.0 2020-03-12 21:38:51 +01:00
iinuwa
21f9922b9e
Update r0::context::get_context::Request and r0::filter::RoomEventFilter
* Add lazy-loading options to RoomEventFilter
* Use UInt instead of u8 for get_context limit
* Add filter option to get_context endpoint
* Add more tests

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-09 22:00:03 +01:00
iinuwa
8fb01a193e
Add SSO login endpoint 2020-02-26 15:11:32 +01:00
Jonas Platte
19bf8dbd77
Add trailing comma 2020-02-26 15:02:07 +01:00
iinuwa
d36ec95fb7
Export request and response fields as public 2020-02-26 07:39:41 -06:00
Isaiah Inuwa
4b05e7e361 Add request and response parameters for account deactiviation 2020-02-25 20:00:22 -06:00
iinuwa
e16049b5b3
Add invite-by-3pid endpoint 2020-02-22 23:14:10 +01:00
iinuwa
7d677f690e
Add unstable_features to version endpoint 2020-02-22 23:12:34 +01:00
Jonas Platte
9665abbaf2
Make accidentally private things public 2020-02-22 01:51:42 +01:00
Jonas Platte
4939078954
Fix missing #[ruma_api(body)] 2020-02-22 01:51:42 +01:00
Isaiah Inuwa
59bbef5a35 Remove deprecate account bind endpoint. 2020-02-22 01:28:12 +01:00
Jonas Platte
aca4915e8c
Add a login request serialization test 2020-02-22 01:27:46 +01:00
iinuwa
fc59bf4b55
Update create room endpoint 2020-02-21 01:15:17 +01:00
Isaiah Inuwa
052b3a199d Add media preview endpoint.
Fixes #39.
2020-02-19 13:51:46 -06:00
Isaiah Inuwa
ed508c043e Add missing media endpoints
Fixes #73.
2020-02-19 13:51:23 -06:00
Isaiah Inuwa
bb52edf1e0 Add allow_remote parameter to content fetching endpoint.
Fixes #92.
2020-02-19 12:55:22 -06:00
iinuwa
959e10fd15
Add client config retrieval endpoints 2020-02-19 11:00:12 +01:00
Jonas Platte
8e9a6ffede
Update ruma-api to 0.14.0 2020-02-18 21:26:41 +01:00
Jonas Platte
a7ca7b1e8d
Remove redundant import 2020-02-18 20:51:10 +01:00
Isaiah Inuwa
fc0d8ee8e7
Add send-to-device endpoint 2020-02-18 19:19:10 +01:00
iinuwa
0139ebc41a
Add OpenID request token endpoint 2020-02-18 19:15:32 +01:00
timokoesters
dffe376aeb feat: add MatrixError struct 2020-02-16 16:54:09 +01:00
Emily
1c2ab9e768 Fix r0::session::get_login_types::Response
The previous version was expecting one level of nesting too many, i.e.:

    {"type": {"type": "m.login.password"}}

This is a breaking change, so bump the version number too.
2020-02-14 00:33:52 +00:00
Jonas Platte
45b64aabf5
Remove outdated parts from comments 2020-02-09 21:20:47 +01:00
Jonas Platte
1e88e3f90c
Remove redundant import 2020-02-08 21:28:27 +01:00
Jonas Platte
01dd745a06
Update login endpoint to r0.6.0 2020-01-28 20:36:39 +01:00
Isaiah Inuwa
8b752bba85 Add room upgrade endpoint. 2020-01-18 14:54:44 -06:00
Karlinde
505721bdad Add endpoints for push notifications 2020-01-14 21:58:28 +01:00
iinuwa
0314384c60 Add content reporting endpoint 2020-01-14 15:20:31 +01:00
iinuwa
4bc52af69a Add missing 3PID endpoints 2020-01-13 23:22:09 +01:00
Jonas Platte
258fbf5a01
Use #[ruma_api(raw_body)] for r0::media::{get,create}_media 2020-01-13 20:20:17 +01:00
Jonas Platte
246de19790
Update get_presence to r0.6.0 2020-01-13 11:47:00 +01:00
iinuwa
097bd6a86c Add/update endpoints for requesting account management tokens 2020-01-09 12:45:28 +01:00