Commit graph

105 commits

Author SHA1 Message Date
Toni Spets
a36f60a4f3 Parse Beeper inbox preview event in sync 2024-03-11 12:35:55 +02:00
Tulir Asokan
740c588b96 Add MSC4095 types 2024-02-17 14:46:10 +02:00
Toni Spets
11c2907f2e Database level support for key backup versioning
This doesn't plumb anything in yet but adds the columns and types for an
external implementation.

Key backup version is now typed.
2024-02-01 13:22:32 +02:00
Sumner Evans
385449c9cc
responses: make key backup structs generic over {session,auth}_data
Also update the Client to specify the types

Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-18 09:17:18 -07:00
Sumner Evans
96d1d16226
id/crypto: add KeyBackupAlgorithm
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-17 08:15:58 -07:00
Sumner Evans
4020e9c2ea
client: add key backup functions
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-17 08:15:58 -07:00
Tulir Asokan
11414eaa0b Remove last thing in util package 2023-08-11 14:20:40 +03:00
Tulir Asokan
fd1cdd8c94 Move remaining utilities 2023-08-05 19:24:45 +03:00
Tulir Asokan
c710d4aa8f Deprecate MSC2716 methods and add Beeper batch send methods 2023-06-19 01:24:44 +03:00
Tulir Asokan
2c9b28c84d
Stabilize async uploads (#130) 2023-06-10 16:25:31 +03:00
Tulir Asokan
df6c23c40d Rename appservice ping duration field 2023-05-01 10:54:54 +03:00
Tulir Asokan
c036250731 Implement MSC2659 2023-03-11 16:29:35 +02:00
Max Sandholm
f1d9a23e6e Rename Etag to ETag and change fields to json.RawMessage 2023-02-28 18:05:49 +02:00
Max Sandholm
3dc14858b9 Add request and response types for room key backup 2023-02-23 20:40:32 +02:00
Tulir Asokan
993bc5d49e Add wrapper to new /timestamp_to_event endpoint 2023-01-09 12:19:30 +02:00
Nick Barrett
490422c20b Add knocked rooms to sync rooms response 2023-01-03 17:00:44 +00:00
Tulir Asokan
9ef4f79b23 Use global profile when filling member events 2022-12-08 19:01:51 +02:00
Tulir Asokan
cb0a4ac56e Add device_unused_fallback_key_types to sync and transaction structs 2022-12-05 13:02:47 +02:00
Tulir Asokan
733e6daf9a Add wrappers for hungryserv room merging endpoints 2022-12-01 11:57:00 +02:00
Tulir Asokan
b134e213c4 Clean up RespHierarchy 2022-11-05 19:42:13 +02:00
Milton Moura
ece410aeda adding support for hierarchy pagination 2022-10-31 15:31:58 -01:00
Milton Moura
605b989b2d added room hierarchy related response structs, the M_INVALID_PARAM error and a wrapper for the GET /v1/rooms/:roomid/hierarchy endpoint 2022-10-31 12:21:46 -01:00
Tulir Asokan
3d31ee1033 Add RegisterAvailable wrapper with error handling example
Fixes #93
2022-10-11 22:32:57 +03:00
Tulir Asokan
9d56fdfe25 Use pointers in RespSyncRooms 2022-10-04 00:23:33 +03:00
Tulir Asokan
391353c291 Add method to fetch media repo config 2022-10-03 10:07:10 +03:00
Tulir Asokan
dd6e3e51b0 Omit empty end token in /messages responses 2022-09-28 20:42:57 +03:00
Tulir Asokan
3d8cfaf044 Move MarshalAndDeleteEmpty to util 2022-09-14 11:42:56 +03:00
Tulir Asokan
b868353797 Make unread notifications fields pointers to allow specifying zero value 2022-09-14 11:42:56 +03:00
finn
1fc17b50eb MSC3870: allow media create endpoint to specify alternate upload URL
also indicate to server that we will follow 3xx redirects when downloading media
2022-09-02 14:22:56 -07:00
Tulir Asokan
68d6c8dcbf Rename UnstableUnreadCount to MSC2654UnreadCount 2022-08-29 12:32:19 +03:00
Tulir Asokan
470f1112b5 Add unread_notifications and MSC2654 unread_count to SyncJoinedRoom 2022-08-29 12:17:42 +03:00
Tulir Asokan
05e4b6f109 Add omitempty for register response token/device ID
They can be empty if inhibit_login is set
2022-08-23 14:34:07 +03:00
Tulir Asokan
a9d9c9ba56 Don't omit required one_time_keys field 2022-08-22 13:52:14 +03:00
Tulir Asokan
6984af5cc7 Omit empty OTK counts too 2022-08-10 14:41:22 +03:00
Tulir Asokan
921d7afe19 Omit empty things when marshaling RespSync 2022-08-10 11:56:22 +03:00
Tulir Asokan
237d7d8c55 Add omitempty to a bunch of responses 2022-08-10 11:27:30 +03:00
Tulir Asokan
f4e72800b8 Update more structs 2022-08-04 18:47:09 +03:00
Tulir Asokan
fafd0c1463 Unnest UIA flow list struct 2022-08-04 16:16:58 +03:00
Tulir Asokan
e136c7898f Add omitemptys for some structs 2022-08-04 16:15:59 +03:00
Tulir Asokan
3b741b3dfc Fix bug 2022-08-04 15:03:05 +03:00
Tulir Asokan
c6df5e34ba Add wrapper for /capabilities endpoint 2022-08-04 14:59:22 +03:00
Sumner Evans
612001e327
extract joined member struct
Signed-off-by: Sumner Evans <sumner@beeper.com>
2022-07-25 12:14:17 -06:00
Tulir Asokan
b1a9b6b549 Parse spec version numbers in /versions response 2022-05-06 14:31:38 +03:00
Tulir Asokan
0eee489b64 Switch to /v3 paths everywhere 2022-04-17 12:59:34 +03:00
Toni Spets
3eb5dd2490 Add GetAliases call to Client 2022-04-01 10:40:21 +03:00
Tulir Asokan
3b99110291 Add support for asynchronous media uploads
See https://github.com/matrix-org/matrix-spec-proposals/pull/2246 for more info
2022-03-21 19:57:01 +02:00
Tulir Asokan
441b081274 Add wrapper for preview_url endpoint 2022-02-15 16:27:12 +02:00
qua3k
69beb7e658 Add /context API 2022-01-01 13:15:40 -05:00
Tulir Asokan
3ac08147c5 Add utility method for finding specific login flow 2021-11-15 13:35:08 +02:00
Tulir Asokan
6b5ccdfd46 Add wrapper for MSC2716 batch send 2021-10-26 17:00:30 +03:00