Skip to content

Commit 6f463a8

Browse files
committed
chore: generate OpenAPI specification
1 parent d572a90 commit 6f463a8

File tree

1 file changed

+128
-25
lines changed

1 file changed

+128
-25
lines changed

OpenAPI.json

Lines changed: 128 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
},
1212
"license": {
1313
"name": "AGPLv3",
14-
"url": "https://github.com/revoltchat/delta/blob/master/LICENSE"
14+
"url": "https://github.com/upryzing/parrot/blob/main/LICENSE"
1515
},
16-
"version": "0.7.16"
16+
"version": "0.1.0"
1717
},
1818
"servers": [
1919
{
@@ -25,7 +25,7 @@
2525
"description": "Revolt Staging"
2626
},
2727
{
28-
"url": "http://local.revolt.chat:8000",
28+
"url": "http://local.revolt.chat:14702",
2929
"description": "Local Revolt Environment"
3030
}
3131
],
@@ -744,7 +744,7 @@
744744
"Bots"
745745
],
746746
"summary": "Create Bot",
747-
"description": "Create a new Revolt bot.",
747+
"description": "Create a new Upryzing bot.",
748748
"operationId": "create_create_bot",
749749
"requestBody": {
750750
"content": {
@@ -2500,8 +2500,8 @@
25002500
"tags": [
25012501
"Server Information"
25022502
],
2503-
"summary": "Create Server",
2504-
"description": "Create a new server.",
2503+
"summary": "Create Space",
2504+
"description": "Create a new space.",
25052505
"operationId": "server_create_create_server",
25062506
"requestBody": {
25072507
"content": {
@@ -3829,7 +3829,7 @@
38293829
"Emojis"
38303830
],
38313831
"summary": "Create New Emoji",
3832-
"description": "Create an emoji by its Autumn upload id.",
3832+
"description": "Create an emoji by its Pigeon upload id.",
38333833
"operationId": "emoji_create_create_emoji",
38343834
"parameters": [
38353835
{
@@ -5314,11 +5314,11 @@
53145314
"title": "Feature Configuration",
53155315
"type": "object",
53165316
"required": [
5317-
"autumn",
53185317
"captcha",
5318+
"dove",
53195319
"email",
53205320
"invite_only",
5321-
"january",
5321+
"pigeon",
53225322
"voso"
53235323
],
53245324
"properties": {
@@ -5338,15 +5338,15 @@
53385338
"description": "Whether this server is invite only",
53395339
"type": "boolean"
53405340
},
5341-
"autumn": {
5341+
"pigeon": {
53425342
"description": "File server service configuration",
53435343
"allOf": [
53445344
{
53455345
"$ref": "#/components/schemas/Feature"
53465346
}
53475347
]
53485348
},
5349-
"january": {
5349+
"dove": {
53505350
"description": "Proxy service configuration",
53515351
"allOf": [
53525352
{
@@ -6260,6 +6260,20 @@
62606260
}
62616261
}
62626262
},
6263+
{
6264+
"type": "object",
6265+
"required": [
6266+
"type"
6267+
],
6268+
"properties": {
6269+
"type": {
6270+
"type": "string",
6271+
"enum": [
6272+
"NotAuthenticated"
6273+
]
6274+
}
6275+
}
6276+
},
62636277
{
62646278
"type": "object",
62656279
"required": [
@@ -6334,6 +6348,82 @@
63346348
}
63356349
}
63366350
},
6351+
{
6352+
"type": "object",
6353+
"required": [
6354+
"type"
6355+
],
6356+
"properties": {
6357+
"type": {
6358+
"type": "string",
6359+
"enum": [
6360+
"FileTooSmall"
6361+
]
6362+
}
6363+
}
6364+
},
6365+
{
6366+
"type": "object",
6367+
"required": [
6368+
"max",
6369+
"type"
6370+
],
6371+
"properties": {
6372+
"type": {
6373+
"type": "string",
6374+
"enum": [
6375+
"FileTooLarge"
6376+
]
6377+
},
6378+
"max": {
6379+
"type": "integer",
6380+
"format": "uint",
6381+
"minimum": 0.0
6382+
}
6383+
}
6384+
},
6385+
{
6386+
"type": "object",
6387+
"required": [
6388+
"type"
6389+
],
6390+
"properties": {
6391+
"type": {
6392+
"type": "string",
6393+
"enum": [
6394+
"FileTypeNotAllowed"
6395+
]
6396+
}
6397+
}
6398+
},
6399+
{
6400+
"type": "object",
6401+
"required": [
6402+
"type"
6403+
],
6404+
"properties": {
6405+
"type": {
6406+
"type": "string",
6407+
"enum": [
6408+
"ImageProcessingFailed"
6409+
]
6410+
}
6411+
}
6412+
},
6413+
{
6414+
"type": "object",
6415+
"required": [
6416+
"type"
6417+
],
6418+
"properties": {
6419+
"type": {
6420+
"type": "string",
6421+
"enum": [
6422+
"NoEmbedData"
6423+
]
6424+
}
6425+
}
6426+
},
63376427
{
63386428
"type": "object",
63396429
"required": [
@@ -6404,7 +6494,7 @@
64046494
}
64056495
},
64066496
"badges": {
6407-
"description": "Bitfield of user badges\n\nhttps://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserBadges.html",
6497+
"description": "Bitfield of user badges\n\nhttps://docs.rs/upryzing-models/latest/upryzing_models/v0/enum.UserBadges.html",
64086498
"type": "integer",
64096499
"format": "uint32",
64106500
"minimum": 0.0
@@ -6419,7 +6509,7 @@
64196509
"nullable": true
64206510
},
64216511
"flags": {
6422-
"description": "Enum of user flags\n\nhttps://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserFlags.html",
6512+
"description": "Enum of user flags\n\nhttps://docs.rs/upryzing-models/latest/upryzing_models/v0/enum.UserFlags.html",
64236513
"type": "integer",
64246514
"format": "uint32",
64256515
"minimum": 0.0
@@ -7493,7 +7583,7 @@
74937583
"nullable": true
74947584
},
74957585
"icon": {
7496-
"description": "Icon\n\nProvide an Autumn attachment Id.",
7586+
"description": "Icon\n\nProvide an Pigeon attachment Id.",
74977587
"type": "string",
74987588
"maxLength": 128,
74997589
"minLength": 1,
@@ -7741,7 +7831,7 @@
77417831
"nullable": true
77427832
},
77437833
"flags": {
7744-
"description": "Bitfield of message flags\n\nhttps://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html",
7834+
"description": "Bitfield of message flags\n\nhttps://docs.rs/upryzing-models/latest/upryzing_models/v0/enum.MessageFlags.html",
77457835
"type": "integer",
77467836
"format": "uint32",
77477837
"minimum": 0.0
@@ -8211,12 +8301,14 @@
82118301
"width": {
82128302
"description": "Width of the image",
82138303
"type": "integer",
8214-
"format": "int"
8304+
"format": "uint",
8305+
"minimum": 0.0
82158306
},
82168307
"height": {
82178308
"description": "Height of the image",
82188309
"type": "integer",
8219-
"format": "int"
8310+
"format": "uint",
8311+
"minimum": 0.0
82208312
},
82218313
"size": {
82228314
"description": "Positioning and size",
@@ -8251,12 +8343,14 @@
82518343
"width": {
82528344
"description": "Width of the video",
82538345
"type": "integer",
8254-
"format": "int"
8346+
"format": "uint",
8347+
"minimum": 0.0
82558348
},
82568349
"height": {
82578350
"description": "Height of the video",
82588351
"type": "integer",
8259-
"format": "int"
8352+
"format": "uint",
8353+
"minimum": 0.0
82608354
}
82618355
}
82628356
},
@@ -8294,7 +8388,7 @@
82948388
"nullable": true
82958389
},
82968390
"media": {
8297-
"description": "ID of uploaded autumn file",
8391+
"description": "ID of uploaded pigeon file",
82988392
"allOf": [
82998393
{
83008394
"$ref": "#/components/schemas/File"
@@ -8572,12 +8666,14 @@
85728666
"width": {
85738667
"description": "Width of the image",
85748668
"type": "integer",
8575-
"format": "int"
8669+
"format": "uint",
8670+
"minimum": 0.0
85768671
},
85778672
"height": {
85788673
"description": "Height of the image",
85798674
"type": "integer",
8580-
"format": "int"
8675+
"format": "uint",
8676+
"minimum": 0.0
85818677
},
85828678
"size": {
85838679
"description": "Positioning and size",
@@ -8613,12 +8709,14 @@
86138709
"width": {
86148710
"description": "Width of the video",
86158711
"type": "integer",
8616-
"format": "int"
8712+
"format": "uint",
8713+
"minimum": 0.0
86178714
},
86188715
"height": {
86198716
"description": "Height of the video",
86208717
"type": "integer",
8621-
"format": "int"
8718+
"format": "uint",
8719+
"minimum": 0.0
86228720
}
86238721
}
86248722
},
@@ -8730,7 +8828,7 @@
87308828
"nullable": true
87318829
},
87328830
"flags": {
8733-
"description": "Bitfield of message flags\n\nhttps://docs.rs/revolt-models/latest/revolt_models/v0/enum.MessageFlags.html",
8831+
"description": "Bitfield of message flags\n\nhttps://docs.rs/upryzing-models/latest/upryzing_models/v0/enum.MessageFlags.html",
87348832
"type": "integer",
87358833
"format": "uint32",
87368834
"minimum": 0.0,
@@ -9080,6 +9178,7 @@
90809178
"type": "object",
90819179
"required": [
90829180
"channel_id",
9181+
"creator_id",
90839182
"id",
90849183
"name",
90859184
"permissions"
@@ -9102,6 +9201,10 @@
91029201
],
91039202
"nullable": true
91049203
},
9204+
"creator_id": {
9205+
"description": "User that created this webhook",
9206+
"type": "string"
9207+
},
91059208
"channel_id": {
91069209
"description": "The channel this webhook belongs to",
91079210
"type": "string"

0 commit comments

Comments
 (0)