chore: generate OpenAPI specification

This commit is contained in:
Revolt CI
2023-04-23 16:54:13 +00:00
parent 323a179210
commit 7f64cdc3a6
+46 -45
View File
@@ -955,7 +955,7 @@
]
}
},
"/bots/{target}": {
"/bots/{bot}": {
"get": {
"tags": [
"Bots"
@@ -965,7 +965,7 @@
"operationId": "fetch_fetch_bot",
"parameters": [
{
"name": "target",
"name": "bot",
"in": "path",
"required": true,
"schema": {
@@ -989,7 +989,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BotResponse"
"$ref": "#/components/schemas/FetchBotResponse"
}
}
}
@@ -1000,7 +1000,46 @@
"Session Token": []
}
]
},
}
},
"/bots/@me": {
"get": {
"tags": [
"Bots"
],
"summary": "Fetch Owned Bots",
"description": "Fetch all of the bots that you have control over.",
"operationId": "fetch_owned_fetch_owned_bots",
"responses": {
"default": {
"description": "An error occurred.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OwnedBotsResponse"
}
}
}
}
},
"security": [
{
"Session Token": []
}
]
}
},
"/bots/{target}": {
"delete": {
"tags": [
"Bots"
@@ -1095,43 +1134,6 @@
]
}
},
"/bots/@me": {
"get": {
"tags": [
"Bots"
],
"summary": "Fetch Owned Bots",
"description": "Fetch all of the bots that you have control over.",
"operationId": "fetch_owned_fetch_owned_bots",
"responses": {
"default": {
"description": "An error occurred.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OwnedBotsResponse"
}
}
}
}
},
"security": [
{
"Session Token": []
}
]
}
},
"/channels/{target}/ack/{message}": {
"put": {
"tags": [
@@ -9231,7 +9233,7 @@
]
},
"PublicBot": {
"title": "Public Bot",
"description": "Public Bot",
"type": "object",
"required": [
"_id",
@@ -9258,9 +9260,8 @@
}
}
},
"BotResponse": {
"title": "Bot Response",
"description": "TODO: move to revolt-models",
"FetchBotResponse": {
"description": "Bot Response",
"type": "object",
"required": [
"bot",