chore: generate OpenAPI specification

This commit is contained in:
Revolt CI
2024-06-25 20:09:00 +00:00
parent 9c756c0ec0
commit 5c8442d7ca
+99 -81
View File
@@ -13,7 +13,7 @@
"name": "AGPLv3",
"url": "https://github.com/revoltchat/delta/blob/master/LICENSE"
},
"version": "0.7.10"
"version": "0.7.11"
},
"servers": [
{
@@ -7424,6 +7424,24 @@
"description": "Id of the user or webhook that sent this message",
"type": "string"
},
"user": {
"description": "The user that sent this message",
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"nullable": true
},
"member": {
"description": "The member that sent this message",
"allOf": [
{
"$ref": "#/components/schemas/Member"
}
],
"nullable": true
},
"webhook": {
"description": "The webhook that sent this message",
"allOf": [
@@ -7518,6 +7536,86 @@
}
}
},
"Member": {
"description": "Server Member",
"type": "object",
"required": [
"_id",
"joined_at"
],
"properties": {
"_id": {
"description": "Unique member id",
"allOf": [
{
"$ref": "#/components/schemas/MemberCompositeKey"
}
]
},
"joined_at": {
"description": "Time at which this user joined the server",
"allOf": [
{
"$ref": "#/components/schemas/ISO8601 Timestamp"
}
]
},
"nickname": {
"description": "Member's nickname",
"type": "string",
"nullable": true
},
"avatar": {
"description": "Avatar attachment",
"allOf": [
{
"$ref": "#/components/schemas/File"
}
],
"nullable": true
},
"roles": {
"description": "Member's roles",
"type": "array",
"items": {
"type": "string"
}
},
"timeout": {
"description": "Timestamp this member is timed out until",
"allOf": [
{
"$ref": "#/components/schemas/ISO8601 Timestamp"
}
],
"nullable": true
}
}
},
"MemberCompositeKey": {
"description": "Composite primary key consisting of server and user id",
"type": "object",
"required": [
"server",
"user"
],
"properties": {
"server": {
"description": "Server Id",
"type": "string"
},
"user": {
"description": "User Id",
"type": "string"
}
}
},
"ISO8601 Timestamp": {
"description": "ISO8601 formatted timestamp",
"type": "string",
"format": "date-time",
"example": "1970-01-01T00:00:00Z"
},
"MessageWebhook": {
"description": "Information about the webhook bundled with Message",
"type": "object",
@@ -7753,12 +7851,6 @@
}
]
},
"ISO8601 Timestamp": {
"description": "ISO8601 formatted timestamp",
"type": "string",
"format": "date-time",
"example": "1970-01-01T00:00:00Z"
},
"Embed": {
"description": "Embed",
"oneOf": [
@@ -8462,80 +8554,6 @@
}
]
},
"Member": {
"description": "Server Member",
"type": "object",
"required": [
"_id",
"joined_at"
],
"properties": {
"_id": {
"description": "Unique member id",
"allOf": [
{
"$ref": "#/components/schemas/MemberCompositeKey"
}
]
},
"joined_at": {
"description": "Time at which this user joined the server",
"allOf": [
{
"$ref": "#/components/schemas/ISO8601 Timestamp"
}
]
},
"nickname": {
"description": "Member's nickname",
"type": "string",
"nullable": true
},
"avatar": {
"description": "Avatar attachment",
"allOf": [
{
"$ref": "#/components/schemas/File"
}
],
"nullable": true
},
"roles": {
"description": "Member's roles",
"type": "array",
"items": {
"type": "string"
}
},
"timeout": {
"description": "Timestamp this member is timed out until",
"allOf": [
{
"$ref": "#/components/schemas/ISO8601 Timestamp"
}
],
"nullable": true
}
}
},
"MemberCompositeKey": {
"description": "Composite primary key consisting of server and user id",
"type": "object",
"required": [
"server",
"user"
],
"properties": {
"server": {
"description": "Server Id",
"type": "string"
},
"user": {
"description": "User Id",
"type": "string"
}
}
},
"MessageSort": {
"description": "Message Sort\n\nSort used for retrieving messages",
"type": "string",