257 Commits

Author SHA1 Message Date
iinuwa
301d38c104 Refactor send and sync modules
This commit moves the message, member and state event endpoints from the
send and sync modules to make interaction with those events more
consistent with how other events are used, for example,
`r0::<event type>::<create, get, update, delete>_event`.
2019-12-26 15:44:45 +01:00
Isaiah Inuwa
f434c70e87 Update summary of room module.
Now that the `r0::room` module includes more endpoints than just
`create_room`, the doc string should reflect that.
2019-12-25 16:43:12 +01:00
iinuwa
0a31182e59 Add room event endpoint 2019-12-24 22:45:16 +01:00
Isaiah Inuwa
16a8aa70d6 Use DeviceId identifier consistently. 2019-12-24 10:15:56 -05:00
Isaiah Inuwa
d025c3e26e Make style and naming convention for devices endpoint consistent. 2019-12-24 10:12:45 -05:00
Isaiah Inuwa
f58f4c073b Formatting fixes. 2019-12-24 00:20:59 -05:00
Isaiah Inuwa
f6bc55bd39 Use DeviceId instead of String. 2019-12-24 00:20:59 -05:00
Isaiah Inuwa
523e58a801 Add device endpoints. 2019-12-24 00:20:31 -05:00
Isaiah Inuwa
d749f7ebc1 Add delete_devices endpoint. 2019-12-23 22:46:42 -05:00
Isaiah Inuwa
f964dd3ede Remove presence lists.
Presence lists were removed in 0.5.0.
2019-12-21 22:41:51 +01:00
Jonas Platte
ec74c2d798
Fix MSRV, update CHANGELOG.md 2019-12-12 22:25:35 +01:00
Jonas Platte
c455020802
Update r0::account::change_password to r0.6.0 2019-11-29 00:27:29 +01:00
Jonas Platte
e7db530782
Add Default impls, ignore_all ctors to filter types 2019-11-29 00:10:33 +01:00
Jonas Platte
e30c82d248
Update ruma-api, restore request receiving / response sending support 2019-11-28 22:03:17 +01:00
Aaron DeVore
6e665efd1c Add contains_url to RoomEventFilter (r0.3.0 compatibility) 2019-11-24 23:52:25 +01:00
Wim de With
2ae14de8e5 Add application service extension
The application service specification defines a single extension for the
client-server API. This endpoint can only be used by application
services.
2019-11-24 16:41:41 +01:00
Aaron DeVore
886715b886 Add filter optional query param to /messages (r0.3.0 compatibility) 2019-11-23 12:03:55 +01:00
Jonas Platte
44387425ba
Bump MSRV 2019-11-22 11:08:29 +01:00
Wim de With
5a84d9ba26 Add third party network endpoints 2019-11-21 14:26:41 +01:00
Wim de With
48dcfe9315 Add user directory endpoints 2019-11-14 13:42:22 +01:00
Jonas Platte
d140eff324
Fix wrong parameter type in get_message_events 2019-11-11 22:55:37 +01:00
Jonas Platte
6026d960ce
Update get_content_thumbnail to r0.6.0 2019-11-11 21:11:07 +01:00
Jonas Platte
122aeccf96
Fix ruma_api attributes in r0::directory::* 2019-11-11 21:09:30 +01:00
Jonas Platte
4e319ae27e
Compact more serde attributes 2019-11-11 20:30:25 +01:00
Jonas Platte
71fc531897
Compact serde attributes 2019-11-11 20:22:54 +01:00
Jonas Platte
776ef79253
Rewrite r0.6.0 back to form without ending
since the server redirects to that form, even though some links refer to the .html form
2019-11-11 20:22:05 +01:00
Jonas Platte
2748142f41
Update doc comment URLs
* create_alias: No changes, bump to r0.6.0
* get_public_rooms_filtered: Use canonical URL
2019-11-11 20:13:09 +01:00
Jonas Platte
c56469eba5
Update public room list endpoints to r0.6.0 2019-11-11 19:54:24 +01:00
Jonas Platte
6ae72856d7 Remove #![deny(warnings)], #![warn(clippy::…)] 2019-10-31 22:38:01 +01:00
Jonas Platte
ad582de058 Allow clippy warning use_self 2019-10-29 20:49:09 +01:00
Jonas Platte
134738f676 Remove stuff only needed for server-side usage 2019-10-17 00:41:18 +02:00
Jonas Platte
98e0bad1b1 Update to the new ruma-events API 2019-08-15 23:25:01 +02:00
Jonas Platte
05f181d9f1 Make serde_json::Value usage consistent 2019-08-09 00:36:56 +02:00
Jonas Platte
6a5af6bf8b Make inclusion lists in event filters optional
to be able to distinguish between no inclusion list (everything is
included) and an empty inclusion list (nothing is included)
2019-08-05 20:55:38 +02:00
Jonas Platte
11eba71083 Remove remaining unused imports 2019-08-04 17:43:14 +02:00
Jonas Platte
90b850a60d Update dependencies (except ruma-events) 2019-08-03 19:43:09 +02:00
Jimmy Cuadra
e7e4d04244 Undo the change of storing FilterDefinition in a box.
On second thought, it doesn't make sense to change this just cause of a
clippy warning. We'll wait and see if it ever causes and real problems
before making the API less consistent just to avoid a potential space
saving issue.
2019-07-08 14:24:07 -07:00
Jimmy Cuadra
a16eb7cfe1 Use js_int types for numbers.
See https://github.com/ruma/ruma-events/issues/27 for rationale.
2019-06-16 16:32:56 -07:00
Jimmy Cuadra
4a4c2dd025 Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 18:14:37 -07:00
Jimmy Cuadra
21c2288d51 Fix serialization error due to url not supporting serde 1.x. 2019-06-02 18:00:23 -07:00
Jimmy Cuadra
94c368d2e6 Correct description of homeserver discovery endpoint. 2019-05-08 09:06:22 +02:00
Jimmy Cuadra
c9b7b986c6 Add logout all endpoint. 2019-05-01 21:23:50 -07:00
Jimmy Cuadra
3037b105c7 Add homeserver discovery endpoint. 2019-05-01 21:14:59 -07:00
Jimmy Cuadra
8f1d4a4d21 Update all spec links to the r0.4.0 version. 2019-05-01 20:46:57 -07:00
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