113 Commits

Author SHA1 Message Date
Jimmy Cuadra
f9e431b60a
Merge pull request #41 from ruma/simple-spec-updates
Implement some simple spec updates
2019-04-26 15:59:16 -07:00
Jonas Platte
af8fe42259 Update link in get_member_events doc comment
no code changes were necessary even though the spec was updated: we
already specified requires_authentication: true when the spec was
missing that information.
2019-04-22 22:33:37 +02:00
Jonas Platte
85236be89c Update get_filter endpoint to r0.4.0 2019-04-22 22:27:38 +02:00
Jonas Platte
4c3e5d3324 Update create_media_content to r0.4.0 2019-04-22 22:23:36 +02:00
Jonas Platte
7493353c5a Add missing request body to create_media_conent 2019-04-22 22:11:18 +02:00
Jonas Platte
27ec031689 Add /rooms/{roomId}/joined_members endpoint 2019-04-20 18:50:41 +02:00
Jonas Platte
e9febfedbc Add /account/whoami endpoint 2019-04-20 15:08:43 +02:00
Jimmy Cuadra
d5b6e7e322 Remove unused imports. 2019-04-11 18:22:09 -07:00
Jimmy Cuadra
87ae777549 Remove try_from feature. 2019-04-11 18:19:32 -07:00
Jonas Platte
af954220bd Replace serde_derive by re-exports in serde 2019-02-06 20:36:39 +01:00
Jonas Platte
71f6a93d76 r0::sync::sync_events: Fix (de)serialization of filter argument 2019-02-02 22:11:59 +01:00
Florian Jacob
14fbaf698f joined_rooms: new API call
that was added in r0.3.0
2019-01-23 20:22:05 +01:00
Alejandro Domínguez
d48fc54c96 Use folders instead of mods 2019-01-22 18:41:41 +01:00
Jonas Platte
bc968c8e14 Update to Rust 2018 2019-01-13 21:22:37 +01:00
Jonas Platte
f95b4b05bb Use nested imports 2019-01-13 21:13:18 +01:00
Jonas Platte
586bca680d Re-run 'cargo fmt' 2019-01-13 21:12:33 +01:00
Victor Berger
7a7697e9e2 InviteState in Sync response is stripped events 2019-01-08 18:34:40 +01:00
Jimmy Cuadra
9693c10328 Merge remote-tracking branch 'Johni0702/small-fixes' 2018-12-03 19:12:13 -08:00
Jonas Herzig
eb6f2518ef get_supported_versions does not require authentication 2018-09-11 14:13:58 +02:00
Jonas Herzig
ec8198964a get_state_events_for_key::Request::event_type should be of type EventType 2018-09-11 14:14:09 +02:00
Jonas Herzig
07e079bb8d get_subscribed_presences::Response::presence_events should be public 2018-09-11 14:13:58 +02:00
Jörg Sommer
58d06f82a2 Fix Rust's hint about proc_macro
The feature `proc_macro` has been stable since 1.29.0 and no longer
requires an attribute to enable
2018-08-31 14:09:45 +02:00
Jörg Sommer
7112b79859 Add hyper for new version of ruma-api 2018-08-31 14:09:38 +02:00
Jimmy Cuadra
d042f63146 Update dependencies and convert to ruma-api-macros 0.2. 2018-05-19 02:28:43 -07:00
Jimmy Cuadra
745d493e01
Merge pull request #24 from musoke/master
r0.3.0/login: Add device_id to request & response
2018-05-17 21:42:57 -07:00
Jimmy Cuadra
e314e51d00
Merge pull request #26 from florianjacob/room_members_require_authentication
/rooms/{room_id}/members requires authentication
2018-05-17 21:25:46 -07:00
Florian Jacob
ca99939ca6 /rooms/{room_id}/members requires authentication
it was just an omission from the spec.
See https://github.com/matrix-org/matrix-doc/pull/1244
2018-05-17 19:08:21 +02:00
Florian Jacob
000b4af1b2 RoomFilter: fix typo
nevertheless a breaking change
2018-05-17 17:48:09 +02:00
Nathan Musoke
acac994a18 r0.3.0/login: Add device_id to request & response
Version 0.3.0 of the client-server spec adds a `device_id` field to the
login request and response.  It is optional in the request.
See https://matrix.org/docs/spec/client_server/r0.3.0.html#post-matrix-client-r0-login for details.

I don't think this will be backwards compatible with ruma-client.
2018-01-25 17:50:09 +13:00
Nathan Musoke
60d0428730 associated_consts stabilized
Since rust 1.20
2017-10-17 23:52:05 +13:00
tilpner
478106fd42
Serialize sync_events::Filter untagged
This is to make Filter::FilterId(String::from("0")) serialize
as "0", instead of to a JSON object that cannot be passed
as a query paramater
2017-09-28 20:34:43 +02:00
tilpner
15bd7d2641
Pass sync request as query parameters instead of data
Before, it would silently ignore them for defaults,
so long-polling was not possible because no timeout
was passed
2017-09-28 20:34:29 +02:00
Jonas Platte
fcd2a50f4f UnreadNotificationsCount: Make fields optional 2017-08-03 22:42:08 +02:00
Jonas Platte
46fa6d21a2 Fix timeline.events type in sync_events response 2017-07-17 18:57:22 +02:00
Jimmy Cuadra
863fe814ef Use ruma-api-macros for the voip endpoints. 2017-07-07 01:08:03 -07:00
Jimmy Cuadra
0d9d1f8119 Use ruma-api-macros for the typing endpoints. 2017-07-07 01:02:03 -07:00
Jimmy Cuadra
995fa6e1ae Use ruma-api-macros for the tag endpoints. 2017-07-06 23:26:52 -07:00
Jimmy Cuadra
f94cb9d62a Use ruma-api-macros for the server endpoints. 2017-07-06 22:59:42 -07:00
Jimmy Cuadra
e71760bb65 Use ruma-api-macros for the search endpoints. 2017-07-06 22:50:56 -07:00
Jimmy Cuadra
fc29d7bf40 Use ruma-api-macros for the redact endpoints. 2017-07-06 01:11:11 -07:00
Jimmy Cuadra
651fe9b3e3 Use ruma-api-macros for the receipt endpoints. 2017-07-06 00:57:29 -07:00
Jimmy Cuadra
beacb5f268 Use ruma-api-macros for the profile endpoints. 2017-07-05 22:45:33 -07:00
Jimmy Cuadra
a5427a5daf Use UserId instead of String for the login endpoint. 2017-07-05 20:37:57 -07:00
Jimmy Cuadra
6aceca259e Add missing docs, fix a bunch of bugs and inconsistencies. 2017-07-04 22:47:14 -07:00
Jimmy Cuadra
c447a612d3 Use ruma-api-macros for the presence endpoints. 2017-07-04 16:39:30 -07:00
Jimmy Cuadra
ebb05dc076 Merge pull request #20 from jplatte/more-modules
Use ruma-api-macros for more endpoints
2017-07-04 12:09:55 -07:00
Jonas Platte
351a6dbd0c Add event body to send requests 2017-07-04 22:02:47 +10:00
Jonas Platte
5c43a32b00 Use ruma-api-macros for the create_room endpoint 2017-07-04 22:02:47 +10:00
Jonas Platte
0a997d28a4 Remove unused serde attributes 2017-07-04 22:02:47 +10:00
Ross Schulman
a1a9064d28 Squash a bunch of bugs 2017-07-04 22:02:47 +10:00