chore: bump api spec

This commit is contained in:
Paul Makles
2022-05-18 22:18:41 +01:00
parent 8539b39e9c
commit cee0d94b0f
3 changed files with 56 additions and 1 deletions
+37
View File
@@ -6272,6 +6272,11 @@
"type": "string",
"nullable": true
},
"original_url": {
"description": "Original direct URL",
"type": "string",
"nullable": true
},
"special": {
"description": "Remote content",
"allOf": [
@@ -6367,6 +6372,38 @@
}
}
},
{
"description": "Video",
"type": "object",
"required": [
"height",
"type",
"url",
"width"
],
"properties": {
"type": {
"type": "string",
"enum": [
"Video"
]
},
"url": {
"description": "URL to the original video",
"type": "string"
},
"width": {
"description": "Width of the video",
"type": "integer",
"format": "int"
},
"height": {
"description": "Height of the video",
"type": "integer",
"format": "int"
}
}
},
{
"description": "Text Embed",
"type": "object",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "revolt-api",
"version": "0.5.3-5",
"version": "0.5.3-5-patch.3",
"description": "Revolt API Library",
"main": "dist/index.js",
"module": "esm/index.js",
+18
View File
@@ -1134,6 +1134,8 @@ export interface components {
type: "Website";
/** @description Direct URL to web page */
url?: string | null;
/** @description Original direct URL */
original_url?: string | null;
/** @description Remote content */
special?: components["schemas"]["Special"] | null;
/** @description Title of website */
@@ -1169,6 +1171,22 @@ export interface components {
/** @description Positioning and size */
size: components["schemas"]["ImageSize"];
}
| {
/** @enum {string} */
type: "Video";
/** @description URL to the original video */
url: string;
/**
* Format: int
* @description Width of the video
*/
width: number;
/**
* Format: int
* @description Height of the video
*/
height: number;
}
| {
/** @enum {string} */
type: "Text";