3420 Commits

Author SHA1 Message Date
Jonas Platte
53162321c9
client-api: Update media endpoints to the new API standards 2020-09-03 17:31:50 +02:00
Nicholas Young
7ccdaa34d6 feature gate exhaustive types for all spec crates:
- ruma-appservice-api
- ruma-client-api
- ruma-events
- ruma-federation-api
2020-09-01 18:39:41 -06:00
Devin Ragotzy
8ca1726e98 Remove RedactAllowed enum in favor of bool 2020-09-01 15:14:09 -04:00
Devin Ragotzy
3cc4ae2bf7 Remove the last few synapse-ism using only spec event auth 2020-08-31 14:53:20 -04:00
Devin Ragotzy
1eb89941b7 Rename power_event -> control_event and add more docs 2020-08-31 07:21:30 -04:00
Jonas Platte
38913946eb
client-api: Update a few more endpoints to the new API standards 2020-08-30 22:53:13 +02:00
Jonas Platte
e2406cc8f0
client-api: Update directory endpoints to the new API standards 2020-08-30 22:44:27 +02:00
Jonas Platte
76058b8170
client-api: Update thirdparty endpoints to the new API standards 2020-08-30 22:33:05 +02:00
Jonas Platte
5407a95a99
client-api: Update tag endpoints to the new API standards 2020-08-30 22:20:38 +02:00
Jonas Platte
532e7a7233
events: Hide EventType::Custom 2020-08-29 23:39:08 +02:00
Jonas Platte
961d45a581
client-api: Update device endpoints to the new API standards 2020-08-29 23:13:42 +02:00
Jonas Platte
d1f409bcb6
client-api: Update config and contact endpoints to the new API standards 2020-08-29 22:56:27 +02:00
Jonas Platte
cf9b83495c
client-api: Update backup endpoints to the new API standards 2020-08-29 22:37:06 +02:00
Devin Ragotzy
8dbd9aae0b Add error type, more docs, and conduit sorting test
Not resolve sorting just topo/mainline
2020-08-29 16:33:40 -04:00
q-b
e3de44ef2f Fix StateStore get_event() signature in README
5f77bc11a2
2020-08-29 15:18:03 -04:00
Jonas Platte
fec07a7426
Update lots of types to the new API standards 2020-08-28 23:37:22 +02:00
Jonas Platte
bfe4e9fa27
Add ruma_serde::is_empty
This will be used for serde attributes that are copied to incoming types
and thus actually have to function for multiple types.
2020-08-28 22:53:40 +02:00
Jonas Platte
ab6c56b7de
Drop unnecessary named lifetimes 2020-08-28 21:32:58 +02:00
Devin Ragotzy
394d26744a Use own Error type for all errors 2020-08-27 20:03:19 -04:00
Devin Ragotzy
b846aec94a Replace membership auth with timo's logic 2020-08-27 15:46:36 -04:00
Devin Ragotzy
aadccdee64 Fix DM room creator rejoining
Check only the previous event is a RoomCreate event not that one exists
2020-08-27 09:08:52 -04:00
Devin Ragotzy
17958665f6 Update docs in event_auth and add first few event_auth tests 2020-08-26 20:51:39 -04:00
Devin Ragotzy
fbcd26c6d2 All of event_auth follows the spec strictly, all the synapse-isms removed 2020-08-26 20:08:48 -04:00
Devin Ragotzy
409fbcc9d7
Fixes get_turn_server_info path by prepending a "/" 2020-08-26 21:42:42 +02:00
Devin Ragotzy
025c2df752 Allow join room creator only if create event has no prev_events 2020-08-26 11:04:30 -04:00
Devin Ragotzy
36cec22cf3 Follow spec for is_membership_change_allowed
Add checks for caller in room and remove unspec'ed synapse check leave
-> join with join_rule = invite
2020-08-26 10:45:06 -04:00
Devin Ragotzy
e8acae05ff Add test testing conduits event sorting logic
This could possibly be turned into another public function for exporting.
A list of ruma::Pdu (events) and another list of ruma::Pdu (auth_events)
and returns the sorted list of events.
2020-08-26 07:10:47 -04:00
Jonas Platte
e4cd59e7e5
client-api: Various API updates 2020-08-26 11:30:39 +02:00
Jonas Platte
650438695a
Heavily reduce noise in CI output 2020-08-25 16:25:05 +02:00
Jonas Platte
7c31fceb61
client-api: Fix a bunch of issues for room::create_room 2020-08-25 16:20:07 +02:00
Jonas Platte
3b36a974fa
Clean up dependencies 2020-08-25 16:01:30 +02:00
Jonas Platte
01c7eef72f
Consistently put an empty line after inner module docs 2020-08-24 21:42:48 +02:00
Jonas Platte
21eb1e8e41
federation-api: Fix various issues 2020-08-24 21:39:50 +02:00
Jonas Platte
6aee819d5d
federation-api: get_public_rooms_filtered/mod.rs => get_public_rooms_filtered.rs 2020-08-24 21:14:07 +02:00
Jonas Platte
f84287038e
federation-api: Make remaining request / response types non-exhaustive 2020-08-23 18:00:58 +02:00
Devin Ragotzy
63be0b550f Add room version check to event auth and room_version to StateEvent 2020-08-22 06:36:22 -04:00
Jonas Platte
417b65def5
client-api: Make two more request / response pairs non-exhaustive 2020-08-21 20:40:14 +02:00
Jonas Platte
4215feb815
client-api: Add language field to search_users request 2020-08-21 20:40:14 +02:00
Alejandro Domínguez
d8340db310
Group fields in create_typing_event 2020-08-21 20:35:25 +02:00
Amanda Graven
dd87484a92
federation-api: Add get_missing_events endpoint v1 2020-08-21 20:30:11 +02:00
Devin Ragotzy
a8b4bad684
Support optional header values in request/response types 2020-08-21 19:53:46 +02:00
Devin Ragotzy
07807974f7 Update readme add docs 2020-08-21 07:39:02 -04:00
Devin Ragotzy
43e0f20d3b Remove self param from all StateResolution methods 2020-08-20 17:43:04 -04:00
Jonas Platte
5182015b76
appservice-api: Make remaining request / response types non-exhaustive 2020-08-20 20:59:41 +02:00
Jonas Platte
135bea8562
federation-api: More small improvements 2020-08-20 02:13:57 +02:00
Jonas Platte
64c5159f04
federation-api: Add lots of non_exhaustive attributes, other minor fixes 2020-08-19 02:04:10 +02:00
Jonas Platte
fbeae794c1
common: Make remaining fully public struct non-exhaustive 2020-08-19 01:38:23 +02:00
Jonas Platte
18c507bf49
federation-api: Make some types non-exhaustive 2020-08-18 22:29:13 +02:00
Jonas Platte
c798ef1fad
federation-api: Fix misssing path parameter in get_devices 2020-08-18 22:26:34 +02:00
Jonas Platte
c6b4fe1e50
federation-api: Wrap Pdu in Raw in get_event_authorization 2020-08-18 22:25:45 +02:00