Jonas Platte
0babfb489c
Use AnyStateEventContent in send_state_event_for_empty_key
2020-08-15 00:40:11 +02:00
Jonas Platte
aead9fa852
Use AnyMessageEventContent in send_message_event
2020-08-15 00:37:39 +02:00
Devin Ragotzy
456505081b
Fix rooms/{roomId}/aliases and rooms/{roomId}/report endpoint metadata fields
2020-08-14 15:43:21 +02:00
Isaiah Inuwa
f420082b39
Add get_public_rooms_filtered endpoint to ruma-federation-api
2020-08-14 12:14:21 +02:00
Isaiah Inuwa
eaf3fd41cc
Use shared directory types from ruma-common in ruma-federation-api and ruma-client-api
2020-08-14 12:14:21 +02:00
Isaiah Inuwa
90af430d6b
Copy shared directory types to ruma-common
2020-08-14 12:14:21 +02:00
Jonas Platte
29e115cbce
Move all foo/mod.rs to foo.rs
2020-08-14 11:56:33 +02:00
Jonas Platte
d6c15e5769
client-api: More borrowing
2020-08-14 01:40:35 +02:00
Jonas Platte
7557ed438b
Replace last explicit use of Box<ServerName> outside ruma-identifiers
2020-08-14 01:08:16 +02:00
Jonas Platte
652c40a01b
fixup! Make some request and response types non-exhaustive
2020-08-14 00:34:42 +02:00
Jonas Platte
a165c43460
Make some request and response types non-exhaustive
2020-08-14 00:30:25 +02:00
Jonas Platte
157957ced6
client-api: Update more endpoints to new API conventions
2020-08-14 00:30:20 +02:00
Jonas Platte
a674afe512
client-api: Include add_3pid in r0::account
2020-08-14 00:20:06 +02:00
Devin Ragotzy
a6c1b8f0bd
Parse and emit attributes connected to the request/response defs in ruma_api macro
2020-08-14 00:01:19 +02:00
Jonas Platte
b68deabb86
Fix CI
2020-08-13 22:13:20 +02:00
Jonas Platte
6e2b76c528
Fixup for f210f916
2020-08-13 22:10:25 +02:00
Jonas Platte
148d876acb
Use ServerNameBox in ruma-events, ruma-*-api
2020-08-13 22:01:15 +02:00
Jonas Platte
b4b96e44fd
Borrow things in more endpoint requests
2020-08-13 22:01:12 +02:00
Jonas Platte
a00129fcfb
Borrow strings and identifiers in membership::ThirdPartySigned and dependent endpoints
2020-08-13 21:21:57 +02:00
Jonas Platte
4a1b6d5607
Use DeviceIdBox in ruma-events, ruma-*-api
2020-08-13 21:19:41 +02:00
Jonas Platte
f210f91611
Borrow strings and identifiers in uiaa::AuthData and dependent endpoints
2020-08-13 21:19:38 +02:00
Jonas Platte
a842c5ccdc
identifiers: Add DeviceIdBox and ServerNameBox
2020-08-13 20:42:03 +02:00
Jonas Platte
662ce82bc2
Add "(Type) Privacy and Forwards Compatiblity" to CONTRIBUTING.md
2020-08-13 20:40:22 +02:00
Jonas Platte
ed767d253b
Fix missing title case in CONTRIBUTING.md
2020-08-13 20:32:24 +02:00
Jonas Platte
5c025da37d
Add to ruma-events change log
2020-08-13 20:03:57 +02:00
Jonas Platte
b470d4d681
Fix ruma-events change log
2020-08-13 19:56:23 +02:00
Jonas Platte
221befe401
Add constructors to MessageEventContent
2020-08-13 19:51:02 +02:00
Jonas Platte
d36dcdb202
Add NoticeMessageEventContent::html and TextMessageEventContent::html
2020-08-13 19:46:05 +02:00
Jonas Platte
4a5272e37b
Fix doc typo
2020-08-13 19:45:03 +02:00
Florian Jacob
3dadd0a772
ruma: Export serde helpers for custom api creation
2020-08-13 18:08:19 +02:00
Florian Jacob
a719174592
serde: Repair minor docs typo
2020-08-13 18:08:18 +02:00
Jonas Platte
c1b4b77bbd
api: Update change log
2020-08-12 23:43:57 +02:00
Jonas Platte
987d48666c
Split Endpoint trait into OutgoingRequest, IncomingRequest
2020-08-12 23:33:27 +02:00
Jonas Platte
abc34eeb7e
Move manual endpoint impl test into its own file
2020-08-12 23:33:27 +02:00
Jonas Platte
52f7546c47
Make most things in ruma_api::error actually public (no more #[doc(hidden)]
)
...
So people can implement their own endpoints without the macros and
without using undocumented parts of the API
2020-08-12 23:33:27 +02:00
Jonas Platte
edc38b340c
federation-api: Update origin field type
2020-08-12 22:40:43 +02:00
q-b
c6e625a85f
federation-api: Add backfill endopint
2020-08-12 22:15:47 +02:00
q-b
656dc723ad
appservice-api: Fix endpoint versioning
2020-08-12 21:33:07 +02:00
Jonas Platte
0a538b53df
Update CONTRIBUTING.md
...
* Fix broken links
* Improve "Tracking Changes" section
2020-08-12 19:07:59 +02:00
Jonas Platte
0a1a381e6c
federation-api: Fix types in create_join_event_template::v1 request & response
2020-08-12 14:36:03 +02:00
Timo
835c41ce28
Fix canonical alias type
2020-08-12 14:33:44 +02:00
Jonas Platte
835c721a12
Fix non-empty Void
2020-08-12 14:21:50 +02:00
Jonas Platte
eca333a9ec
Fix doc link
2020-08-12 14:14:06 +02:00
Devin Ragotzy
906465d0c3
Replace all ::ruma_api:: with the discovered crate name or $crate
2020-08-12 14:01:43 +02:00
florianjacob
467e7afd5e
Require std::error::Error for EndpointError
...
and implement it for ruma_api::error::FromHttpResponseError and Void.
This allows integrating EndpointErrors in the common rust error
ecosystem like thiserror and anyhow.
2020-08-12 14:00:44 +02:00
Devin Ragotzy
342181ab1a
Use proc_macro_crate name in the event_enum! macro code-gen
2020-08-11 23:47:34 +02:00
Devin Ragotzy
e2f84679b3
Use proc_macro_crate name in the event content derives
2020-08-11 23:47:34 +02:00
Devin Ragotzy
9bc257b19e
Use proc_macro_crate name in the Event derive
2020-08-11 23:47:34 +02:00
Devin Ragotzy
cfe62f27d0
Re-export ruma-events-macros and deps in ruma-events
...
This also adds the dependency and function to find crate name at macro
expansion time.
2020-08-11 23:47:34 +02:00
Amanda Graven
636cc503ed
Add get_keys endpoint and changelog entry
2020-08-11 15:58:38 +02:00