mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Add more keys endpoints and to-device events
This commit is contained in:
parent
e7d41d6fb9
commit
86aa914702
5 changed files with 67 additions and 2 deletions
18
requests.go
18
requests.go
|
|
@ -118,4 +118,22 @@ type DeviceKeys struct {
|
|||
Algorithms []string `json:"algorithms"`
|
||||
Keys map[id.KeyID]string `json:"keys"`
|
||||
Signatures map[id.UserID]map[string]string `json:"signatures"`
|
||||
Unsigned *UnsignedDeviceInfo `json:"unsigned,omitempty"`
|
||||
}
|
||||
|
||||
type UnsignedDeviceInfo struct {
|
||||
Name string `json:"device_display_name,omitempty"`
|
||||
}
|
||||
|
||||
type ReqQueryKeys struct {
|
||||
DeviceKeys map[id.UserID][]id.DeviceID `json:"device_keys"`
|
||||
|
||||
Timeout int64 `json:"timeout,omitempty"`
|
||||
Token string `json:"token,omitempty"`
|
||||
}
|
||||
|
||||
type ReqClaimKeys struct {
|
||||
OneTimeKeys map[id.UserID]map[id.DeviceID]string `json:"one_time_keys"`
|
||||
|
||||
Timeout int64 `json:"timeout,omitempty"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue