read-states/ack-bulk (#969)

This commit is contained in:
Madeline
2023-01-30 13:34:27 +11:00
committed by GitHub
parent 709dc7280e
commit 71258f6487
5 changed files with 209 additions and 0 deletions
+107
View File
@@ -2316,6 +2316,41 @@
"days"
]
},
"AckBulkSchema": {
"type": "object",
"properties": {
"read_states": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"channel_id": {
"type": "string"
},
"message_id": {
"type": "string"
},
"read_state_type": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"channel_id",
"message_id",
"read_state_type"
]
}
],
"minItems": 1,
"maxItems": 1
}
},
"required": [
"read_states"
]
},
"TransportMakeRequestResponse": {
"type": "object",
"properties": {
@@ -7030,6 +7065,78 @@
"read-states"
]
}
},
"/users/@me/mfa/webauthn/credentials/": {
"get": {
"security": [
{
"bearer": true
}
],
"tags": [
"users"
]
},
"post": {
"security": [
{
"bearer": true
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebAuthnPostSchema"
}
}
}
},
"tags": [
"users"
]
}
},
"/users/@me/mfa/webauthn/credentials/{key_id}/": {
"delete": {
"security": [
{
"bearer": true
}
],
"parameters": [
{
"name": "key_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "key_id"
}
],
"tags": [
"users"
]
}
},
"/auth/mfa/webauthn/": {
"post": {
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WebAuthnTotpSchema"
}
}
}
},
"tags": [
"auth"
]
}
}
}
}
+37
View File
@@ -1,4 +1,41 @@
{
"AckBulkSchema": {
"type": "object",
"properties": {
"read_states": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"channel_id": {
"type": "string"
},
"message_id": {
"type": "string"
},
"read_state_type": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"channel_id",
"message_id",
"read_state_type"
]
}
],
"minItems": 1,
"maxItems": 1
}
},
"additionalProperties": false,
"required": [
"read_states"
],
"$schema": "http://json-schema.org/draft-07/schema#"
},
"TransportMakeRequestResponse": {
"type": "object",
"properties": {