1748 Commits

Author SHA1 Message Date
Alex Gaynor
b4804ad95a
Bump itoa dep to 0.4.0 2018-03-19 09:53:30 -04: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
Konstantinos Sideris
3a62aaf4c7 Add m.room.pinned_events 2017-11-27 17:08:51 +02:00
Konstantinos Sideris
0635fbae53 Add m.direct event 2017-11-16 11:22:08 +02:00
Konstantinos Sideris
a9490dbee8 Update matrix events to their latest version 2017-11-16 11:22:07 +02:00
Jimmy Cuadra
b0199a0489 Merge pull request #23 from musoke/master
associated_consts stabilized
2017-10-17 06:42:06 -07:00
Nathan Musoke
60d0428730 associated_consts stabilized
Since rust 1.20
2017-10-17 23:52:05 +13:00
Jimmy Cuadra
72e6dc7ad7 Merge pull request #22 from tilpner/master
Pass sync endpoint parameters according to spec
2017-09-29 00:16:54 -07: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
Jimmy Cuadra
8970e3d83d Bump version to 0.5.0. 2017-09-08 17:33:18 -07:00
Jimmy Cuadra
474644ff66 Add a nonexhaustive variant to Error. 2017-09-08 17:32:42 -07:00
Jimmy Cuadra
9ff74ba776 Use the crates.io release of http. 2017-09-08 17:29:19 -07:00
Jimmy Cuadra
7d919bcee5 Merge pull request #21 from jplatte/master
Fix two types in the sync response "tree"
2017-08-04 03:56:00 -07:00
Jimmy Cuadra
a51448e09d Merge pull request #15 from jplatte/master
More bytesize fixes
2017-08-04 03:55:23 -07:00
Jonas Platte
b741ec3028 Use more descriptive names for properties with one-character-names in the spec 2017-08-04 10:35:56 +02:00
Jonas Platte
fcd2a50f4f UnreadNotificationsCount: Make fields optional 2017-08-03 22:42:08 +02:00
Jonas Platte
b852b15134 Fix grammar in doc comments 2017-08-03 22:16:52 +02:00
Jonas Platte
4a91932ea8 Fix a bunch more deserialization bugs 2017-08-03 22:16:52 +02:00
Jimmy Cuadra
6ef1776aed rustfmt 2017-08-01 18:17:09 -07:00
Jimmy Cuadra
35c2e6edd8 Swap hyper for the http crate. 2017-08-01 18:05:44 -07:00
Jimmy Cuadra
eca6d97690 Merge pull request #14 from jplatte/master
Fix two bytesize bugs (wrong json key, non-optional value that should be optional)
2017-08-01 10:00:05 -07:00
Jonas Platte
5a1ae50eaa Fix wrong json key in receipt event 2017-08-01 18:37:22 +02:00
Jonas Platte
46fa6d21a2 Fix timeline.events type in sync_events response 2017-07-17 18:57:22 +02:00
Jonas Platte
491188db2b Make PresenceEventContent::currently_active optional 2017-07-12 18:28:26 +10:00
Jimmy Cuadra
3cbbf10587 Use ruma-api 0.4.0 and ruma-api-macros 0.1.0. 2017-07-07 01:31:15 -07:00
Jimmy Cuadra
d3265f3251 Use ruma-api 0.4.0 and add missing crate metadata. 2017-07-07 01:26:51 -07:00
Jimmy Cuadra
37a5991fda Bump version to 0.4.0. 2017-07-07 01:19:03 -07: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
Ross Schulman
3a854bf64a Update lib.rs with newly available calls 2017-07-04 22:02:47 +10:00
Ross Schulman
a097aa02f2 Port session.rs to ruma_api_macro 2017-07-04 22:02:47 +10:00
Ross Schulman
f715124190 Implement ruma_api macro 2017-07-04 22:02:47 +10:00
Jimmy Cuadra
06ddfdd681 Use ruma-api-macros for the membership endpoints. 2017-07-03 16:41:25 -07:00
Jimmy Cuadra
7f78253539 Update ruma-client-macros for bug fix. 2017-07-01 17:24:00 -07:00
Jimmy Cuadra
0f32ca01db Add complete documentation. 2017-07-01 17:22:40 -07:00