Commit graph

77 commits

Author SHA1 Message Date
Tulir Asokan
9254a5d6c1 Add base for v2 bridge architecture 2024-05-27 13:53:18 +03:00
Toni Spets
b131dab9de Allow any UI auth for uploading cross signing keys
Fix endless loop with UI auth causing 401 when uploading keys. Use any
type for key backup setup request auth data so that unmarshaled objects
can be used that have signatures embedded.

Generating keys will now also return them if we also want to setup key
backup without storing the keys in-between.
2024-02-06 13:39:53 +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
18bb31e1c7
crypto/signatures: move Signatures type alias to separate package and add helper method
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
fe88d04768 Remove Token field in ReqQueryKeys
It was removed in v1.7 of the spec
2024-01-13 19:42:56 +02:00
Tulir Asokan
ac5c2c2210 Add bridge double puppeting utility 2023-08-21 13:51:06 +03:00
Tulir Asokan
4ada13372f Add SendNotification field to beeper batch send 2023-08-10 12:20:23 +03:00
Sumner Evans
8f69bbf79b
batch send: add forward_if_no_messages field
Signed-off-by: Sumner Evans <sumner@beeper.com>
2023-07-10 10:40:35 -06:00
Tulir Asokan
c710d4aa8f Deprecate MSC2716 methods and add Beeper batch send methods 2023-06-19 01:24:44 +03:00
Tulir Asokan
12c01c7026 Add constant for synapse jwt login 2023-05-21 14:30:32 +03:00
Tulir Asokan
ff65890b79 Add id parameter to appservice ping 2023-03-11 16:47:18 +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
Tulir Asokan
94ae1f6470 Omit empty fields in /read_markers request 2022-12-09 12:48:39 +02:00
Tulir Asokan
733e6daf9a Add wrappers for hungryserv room merging endpoints 2022-12-01 11:57:00 +02:00
Tulir Asokan
cc9ac2e321 Add request body struct for SendReceipt 2022-11-30 16:33:09 +02:00
Tulir Asokan
352f13afd8 Add BeeperMarkUnread to ReqBatchSend
Closes #101
2022-11-09 17:44:47 +02:00
Tulir Asokan
0a5167dfe5 Clean up Hierarchy function parameters 2022-11-05 19:51:30 +02:00
Tulir Asokan
bb905d565d Fix verifying fallback OTK signatures 2022-11-04 20:53:11 +02:00
Tulir Asokan
b595ccc496 Add BeeperAutoJoinInvites field to m.room.create 2022-10-10 15:54:06 +03:00
Tulir Asokan
74a27d5925 Add custom fields to set room and event ID when sending 2022-08-14 18:55:26 +03:00
Tulir Asokan
5cea718763 Update read receipt event content to be more dynamic 2022-08-09 12:41:16 +03:00
Tulir Asokan
f4e72800b8 Update more structs 2022-08-04 18:47:09 +03:00
Tulir Asokan
15e3d69b6e Add room version to create room request 2022-08-03 13:42:38 +03:00
Tulir Asokan
804565778c Add com.beeper.new_messages flag for batch send 2022-05-18 20:32:00 +03:00
Tulir Asokan
58e10ec2ac Remove unstable prefixed constant for appservice login 2022-04-29 22:03:32 +03:00
Tulir Asokan
0eee489b64 Switch to /v3 paths everywhere 2022-04-17 12:59:34 +03:00
Tulir Asokan
6d9d537973 Add wrapper for /read_markers endpoint 2022-01-17 22:01:25 +02:00
Tulir Asokan
0b31804ef8 Allow passing reason in LeaveRoom 2022-01-15 13:46:38 +02:00
Tulir Asokan
c1b2329a60 Add PL override to ReqCreateRoom 2021-12-30 12:23:21 +02:00
Sumner Evans
fa533521ab
client.RedactEvent: allow arbitrary fields in redaction request 2021-12-15 10:23:43 -07:00
Paul Tötterman
a6b154c035 Add reason-field to some membership requests
https://github.com/matrix-org/matrix-doc/blob/erikj/invite_reject_reasons/proposals/2367-membership-reasons.md

What about 3pid invite?
2021-11-19 22:25:56 +02:00
Tulir Asokan
6b5ccdfd46 Add wrapper for MSC2716 batch send 2021-10-26 17:00:30 +03:00
Tulir Asokan
ddd5a8be96 Fix type of AuthType constants 2021-09-30 16:06:02 +03:00
Tulir Asokan
9807731a9a Add option to update homeserver URL after login 2021-09-19 21:35:29 -04:00
Tulir Asokan
b87e026581 Update comment and add missing omitempty tag 2021-03-04 19:34:49 +02:00
Tulir Asokan
2ab811a476 Add type when registering AS users
Also renamed uk.half-shot.msc2778 constant to AuthTypeHalfyAppservice
2021-03-04 19:31:49 +02:00
David Florness
93eac986d6
Add client wrapper functions for Device Management endpoints
https://matrix.org/docs/spec/client_server/r0.6.1#id73

Signed-off-by: David Florness <david@florness.com>
2021-02-20 15:37:19 -05:00
Tulir Asokan
495d77b3a0 Merge branch 'master' into cross-sign 2020-10-27 00:38:52 +02:00
Tulir Asokan
03c15a4297 Add appservice auth type constant 2020-10-16 16:51:13 +03:00
Tulir Asokan
a585557b37 Add struct for UI auth fallback request 2020-09-12 02:46:25 +03:00
Tulir Asokan
b40ab761fa More changes 2020-09-12 01:32:56 +03:00
Nikos Filippakis
21964b47ee Functions to sign own master key and devices
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
f5e1f1e414 Sign and upload master keys of other users
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
c4c4b2c61d Upload cross-signing keys to the server as well besides SSSS
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
50bb209da7 Checking of trust for devices and users based on cross-signing
signatures

Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
83f2636582 Store received cross-signing keys and their signatures
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:45:26 +02:00
Nikos Filippakis
211495722d DB changes for storing cross-signing keys and signatures
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:45:26 +02:00