Implement WebAuthn (#967)
* implement webauthn * code review --------- Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
Madeline
parent
e98cdfbce0
commit
709dc7280e
+184
-4
@@ -903,11 +903,37 @@
|
||||
"payload_json": {
|
||||
"type": "string"
|
||||
},
|
||||
"file": {},
|
||||
"file": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"filename"
|
||||
]
|
||||
},
|
||||
"attachments": {
|
||||
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
||||
"type": "array",
|
||||
"items": {}
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"filename": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"filename",
|
||||
"id"
|
||||
]
|
||||
}
|
||||
},
|
||||
"sticker_ids": {
|
||||
"type": "array",
|
||||
@@ -962,6 +988,9 @@
|
||||
"BanCreateSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"delete_message_seconds": {
|
||||
"type": "string"
|
||||
},
|
||||
"delete_message_days": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1237,7 +1266,9 @@
|
||||
"client_build_number": {
|
||||
"type": "integer"
|
||||
},
|
||||
"client_event_source": {},
|
||||
"client_event_source": {
|
||||
"type": "string"
|
||||
},
|
||||
"client_version": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2284,6 +2315,129 @@
|
||||
"required": [
|
||||
"days"
|
||||
]
|
||||
},
|
||||
"TransportMakeRequestResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"statusCode": {
|
||||
"type": "integer"
|
||||
},
|
||||
"headers": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"properties": {
|
||||
"x-sentry-rate-limits": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"retry-after": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"retry-after",
|
||||
"x-sentry-rate-limits"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Partial<GenerateWebAuthnCredentialsSchema>": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Partial<CreateWebAuthnCredentialSchema>": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"credential": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"ticket": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UserDeleteSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user_id": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"user_id"
|
||||
]
|
||||
},
|
||||
"GenerateWebAuthnCredentialsSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"password"
|
||||
]
|
||||
},
|
||||
"CreateWebAuthnCredentialSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"credential": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"ticket": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"credential",
|
||||
"name",
|
||||
"ticket"
|
||||
]
|
||||
},
|
||||
"WebAuthnPostSchema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Partial<GenerateWebAuthnCredentialsSchema>"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/Partial<CreateWebAuthnCredentialSchema>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"WebAuthnTotpSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string"
|
||||
},
|
||||
"ticket": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"code",
|
||||
"ticket"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2377,6 +2531,9 @@
|
||||
},
|
||||
{
|
||||
"name": "-"
|
||||
},
|
||||
{
|
||||
"name": "read-states"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
@@ -4912,7 +5069,8 @@
|
||||
],
|
||||
"tags": [
|
||||
"guilds"
|
||||
]
|
||||
],
|
||||
"x-permission-required": "MANAGE_GUILD"
|
||||
}
|
||||
},
|
||||
"/guilds/{guild_id}/emojis/": {
|
||||
@@ -6850,6 +7008,28 @@
|
||||
"users"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/read-states/ack-bulk/": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"bearer": true
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AckBulkSchema"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"read-states"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+18096
-16202
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user