mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Update key upload structs
This commit is contained in:
parent
8b7fb1ed8b
commit
bb17582e1d
3 changed files with 26 additions and 11 deletions
14
requests.go
14
requests.go
|
|
@ -108,17 +108,17 @@ type ReqAliasCreate struct {
|
|||
}
|
||||
|
||||
type ReqUploadKeys struct {
|
||||
DeviceKeys DeviceKeys `json:"device_keys,omitempty"`
|
||||
DeviceKeys *DeviceKeys `json:"device_keys,omitempty"`
|
||||
OneTimeKeys map[id.KeyID]string `json:"one_time_keys"`
|
||||
}
|
||||
|
||||
type DeviceKeys struct {
|
||||
UserID id.UserID `json:"user_id"`
|
||||
DeviceID id.DeviceID `json:"device_id"`
|
||||
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"`
|
||||
UserID id.UserID `json:"user_id"`
|
||||
DeviceID id.DeviceID `json:"device_id"`
|
||||
Algorithms []string `json:"algorithms"`
|
||||
Keys map[id.DeviceKeyID]string `json:"keys"`
|
||||
Signatures map[id.UserID]map[id.DeviceKeyID]string `json:"signatures"`
|
||||
Unsigned *UnsignedDeviceInfo `json:"unsigned,omitempty"`
|
||||
}
|
||||
|
||||
type UnsignedDeviceInfo struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue