Skip to content

Commit

Permalink
chore: generate OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
revolt-ci committed Jun 29, 2024
1 parent b42cc67 commit 7d75da5
Showing 1 changed file with 64 additions and 6 deletions.
70 changes: 64 additions & 6 deletions OpenAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "AGPLv3",
"url": "https://github.com/revoltchat/delta/blob/master/LICENSE"
},
"version": "0.7.12"
"version": "0.7.13"
},
"servers": [
{
Expand Down Expand Up @@ -772,7 +772,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Bot"
"$ref": "#/components/schemas/BotWithUserResponse"
}
}
}
Expand Down Expand Up @@ -1046,7 +1046,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Bot"
"$ref": "#/components/schemas/BotWithUserResponse"
}
}
}
Expand Down Expand Up @@ -7044,16 +7044,20 @@
}
}
},
"Bot": {
"description": "Bot",
"BotWithUserResponse": {
"description": "Bot with user response",
"type": "object",
"required": [
"_id",
"owner",
"public",
"token"
"token",
"user"
],
"properties": {
"user": {
"$ref": "#/components/schemas/User"
},
"_id": {
"description": "Bot Id",
"type": "string"
Expand Down Expand Up @@ -7197,6 +7201,60 @@
}
}
},
"Bot": {
"description": "Bot",
"type": "object",
"required": [
"_id",
"owner",
"public",
"token"
],
"properties": {
"_id": {
"description": "Bot Id",
"type": "string"
},
"owner": {
"description": "User Id of the bot owner",
"type": "string"
},
"token": {
"description": "Token used to authenticate requests for this bot",
"type": "string"
},
"public": {
"description": "Whether the bot is public (may be invited by anyone)",
"type": "boolean"
},
"analytics": {
"description": "Whether to enable analytics",
"type": "boolean"
},
"discoverable": {
"description": "Whether this bot should be publicly discoverable",
"type": "boolean"
},
"interactions_url": {
"description": "Reserved; URL for handling interactions",
"type": "string"
},
"terms_of_service_url": {
"description": "URL for terms of service",
"type": "string"
},
"privacy_policy_url": {
"description": "URL for privacy policy",
"type": "string"
},
"flags": {
"description": "Enum of bot flags",
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
}
},
"OwnedBotsResponse": {
"description": "Owned Bots Response\n\nBoth lists are sorted by their IDs.\n\nTODO: user should be in bot object",
"type": "object",
Expand Down

0 comments on commit 7d75da5

Please sign in to comment.