mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-16 05:31:52 -04:00
feat: update bot routes to match old spec
This commit is contained in:
+53
-5
@@ -808,7 +808,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Bot"
|
||||
"$ref": "#/components/schemas/BotResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -938,10 +938,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Bot"
|
||||
}
|
||||
"$ref": "#/components/schemas/OwnedBotsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5660,6 +5657,57 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"BotResponse": {
|
||||
"title": "Bot Response",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bot",
|
||||
"user"
|
||||
],
|
||||
"properties": {
|
||||
"bot": {
|
||||
"description": "Bot object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Bot"
|
||||
}
|
||||
]
|
||||
},
|
||||
"user": {
|
||||
"description": "User object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/User"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"OwnedBotsResponse": {
|
||||
"title": "Owned Bots Response",
|
||||
"description": "Both lists are sorted by their IDs.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"bots",
|
||||
"users"
|
||||
],
|
||||
"properties": {
|
||||
"bots": {
|
||||
"description": "Bot objects",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Bot"
|
||||
}
|
||||
},
|
||||
"users": {
|
||||
"description": "User objects",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/User"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"DataEditBot": {
|
||||
"title": "Bot Details",
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user