updated deps; updated healthchecks.io integration
This commit is contained in:
52
vendor/maunium.net/go/mautrix/requests.go
generated
vendored
52
vendor/maunium.net/go/mautrix/requests.go
generated
vendored
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"strconv"
|
||||
|
||||
"maunium.net/go/mautrix/crypto/signatures"
|
||||
"maunium.net/go/mautrix/event"
|
||||
"maunium.net/go/mautrix/id"
|
||||
"maunium.net/go/mautrix/pushrules"
|
||||
@@ -96,8 +97,9 @@ type ReqUIAuthFallback struct {
|
||||
|
||||
type ReqUIAuthLogin struct {
|
||||
BaseAuthData
|
||||
User string `json:"user"`
|
||||
Password string `json:"password"`
|
||||
User string `json:"user,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
Token string `json:"token,omitempty"`
|
||||
}
|
||||
|
||||
// ReqCreateRoom is the JSON request for https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3createroom
|
||||
@@ -184,11 +186,11 @@ type ReqAliasCreate struct {
|
||||
}
|
||||
|
||||
type OneTimeKey struct {
|
||||
Key id.Curve25519 `json:"key"`
|
||||
Fallback bool `json:"fallback,omitempty"`
|
||||
Signatures Signatures `json:"signatures,omitempty"`
|
||||
Unsigned map[string]any `json:"unsigned,omitempty"`
|
||||
IsSigned bool `json:"-"`
|
||||
Key id.Curve25519 `json:"key"`
|
||||
Fallback bool `json:"fallback,omitempty"`
|
||||
Signatures signatures.Signatures `json:"signatures,omitempty"`
|
||||
Unsigned map[string]any `json:"unsigned,omitempty"`
|
||||
IsSigned bool `json:"-"`
|
||||
|
||||
// Raw data in the one-time key. This must be used for signature verification to ensure unrecognized fields
|
||||
// aren't thrown away (because that would invalidate the signature).
|
||||
@@ -230,7 +232,7 @@ type ReqKeysSignatures struct {
|
||||
Algorithms []id.Algorithm `json:"algorithms,omitempty"`
|
||||
Usage []id.CrossSigningUsage `json:"usage,omitempty"`
|
||||
Keys map[id.KeyID]string `json:"keys"`
|
||||
Signatures Signatures `json:"signatures"`
|
||||
Signatures signatures.Signatures `json:"signatures"`
|
||||
}
|
||||
|
||||
type ReqUploadSignatures map[id.UserID]map[string]ReqKeysSignatures
|
||||
@@ -240,15 +242,15 @@ type DeviceKeys struct {
|
||||
DeviceID id.DeviceID `json:"device_id"`
|
||||
Algorithms []id.Algorithm `json:"algorithms"`
|
||||
Keys KeyMap `json:"keys"`
|
||||
Signatures Signatures `json:"signatures"`
|
||||
Signatures signatures.Signatures `json:"signatures"`
|
||||
Unsigned map[string]interface{} `json:"unsigned,omitempty"`
|
||||
}
|
||||
|
||||
type CrossSigningKeys struct {
|
||||
UserID id.UserID `json:"user_id"`
|
||||
Usage []id.CrossSigningUsage `json:"usage"`
|
||||
Keys map[id.KeyID]id.Ed25519 `json:"keys"`
|
||||
Signatures map[id.UserID]map[id.KeyID]string `json:"signatures,omitempty"`
|
||||
UserID id.UserID `json:"user_id"`
|
||||
Usage []id.CrossSigningUsage `json:"usage"`
|
||||
Keys map[id.KeyID]id.Ed25519 `json:"keys"`
|
||||
Signatures signatures.Signatures `json:"signatures,omitempty"`
|
||||
}
|
||||
|
||||
func (csk *CrossSigningKeys) FirstKey() id.Ed25519 {
|
||||
@@ -283,8 +285,6 @@ func (km KeyMap) GetCurve25519(deviceID id.DeviceID) id.Curve25519 {
|
||||
return id.Curve25519(val)
|
||||
}
|
||||
|
||||
type Signatures map[id.UserID]map[id.KeyID]string
|
||||
|
||||
type ReqQueryKeys struct {
|
||||
DeviceKeys DeviceKeysRequest `json:"device_keys"`
|
||||
Timeout int64 `json:"timeout,omitempty"`
|
||||
@@ -429,20 +429,26 @@ type ReqBeeperSplitRoom struct {
|
||||
Parts []BeeperSplitRoomPart `json:"parts"`
|
||||
}
|
||||
|
||||
type ReqRoomKeysVersionCreate struct {
|
||||
Algorithm string `json:"algorithm"`
|
||||
AuthData json.RawMessage `json:"auth_data"`
|
||||
type ReqRoomKeysVersionCreate[A any] struct {
|
||||
Algorithm id.KeyBackupAlgorithm `json:"algorithm"`
|
||||
AuthData A `json:"auth_data"`
|
||||
}
|
||||
|
||||
type ReqRoomKeysUpdate struct {
|
||||
Rooms map[id.RoomID]ReqRoomKeysRoomUpdate `json:"rooms"`
|
||||
type ReqRoomKeysVersionUpdate[A any] struct {
|
||||
Algorithm id.KeyBackupAlgorithm `json:"algorithm"`
|
||||
AuthData A `json:"auth_data"`
|
||||
Version id.KeyBackupVersion `json:"version,omitempty"`
|
||||
}
|
||||
|
||||
type ReqRoomKeysRoomUpdate struct {
|
||||
Sessions map[id.SessionID]ReqRoomKeysSessionUpdate `json:"sessions"`
|
||||
type ReqKeyBackup struct {
|
||||
Rooms map[id.RoomID]ReqRoomKeyBackup `json:"rooms"`
|
||||
}
|
||||
|
||||
type ReqRoomKeysSessionUpdate struct {
|
||||
type ReqRoomKeyBackup struct {
|
||||
Sessions map[id.SessionID]ReqKeyBackupData `json:"sessions"`
|
||||
}
|
||||
|
||||
type ReqKeyBackupData struct {
|
||||
FirstMessageIndex int `json:"first_message_index"`
|
||||
ForwardedCount int `json:"forwarded_count"`
|
||||
IsVerified bool `json:"is_verified"`
|
||||
|
||||
Reference in New Issue
Block a user