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 Dec 22, 2024
1 parent 23665b1 commit d2e9f28
Showing 1 changed file with 112 additions and 9 deletions.
121 changes: 112 additions & 9 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.16"
"version": "0.8.0"
},
"servers": [
{
Expand Down Expand Up @@ -6260,6 +6260,20 @@
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"NotAuthenticated"
]
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -6334,6 +6348,82 @@
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"FileTooSmall"
]
}
}
},
{
"type": "object",
"required": [
"max",
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"FileTooLarge"
]
},
"max": {
"type": "integer",
"format": "uint",
"minimum": 0.0
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"FileTypeNotAllowed"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"ImageProcessingFailed"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"NoEmbedData"
]
}
}
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -8211,12 +8301,14 @@
"width": {
"description": "Width of the image",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
},
"height": {
"description": "Height of the image",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
},
"size": {
"description": "Positioning and size",
Expand Down Expand Up @@ -8251,12 +8343,14 @@
"width": {
"description": "Width of the video",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
},
"height": {
"description": "Height of the video",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
}
}
},
Expand Down Expand Up @@ -8572,12 +8666,14 @@
"width": {
"description": "Width of the image",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
},
"height": {
"description": "Height of the image",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
},
"size": {
"description": "Positioning and size",
Expand Down Expand Up @@ -8613,12 +8709,14 @@
"width": {
"description": "Width of the video",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
},
"height": {
"description": "Height of the video",
"type": "integer",
"format": "int"
"format": "uint",
"minimum": 0.0
}
}
},
Expand Down Expand Up @@ -9080,6 +9178,7 @@
"type": "object",
"required": [
"channel_id",
"creator_id",
"id",
"name",
"permissions"
Expand All @@ -9102,6 +9201,10 @@
],
"nullable": true
},
"creator_id": {
"description": "User that created this webhook",
"type": "string"
},
"channel_id": {
"description": "The channel this webhook belongs to",
"type": "string"
Expand Down

0 comments on commit d2e9f28

Please sign in to comment.