From 1848c1917e919fafe9b0fdd5737c25d0174b1496 Mon Sep 17 00:00:00 2001 From: Revolt CI Date: Sat, 28 Oct 2023 14:05:15 +0000 Subject: [PATCH] chore: build library from latest spec [skip ci] --- src/schema.ts | 20 ++++++++++---------- src/types.ts | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/schema.ts b/src/schema.ts index 72f5e62..e28ff35 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -210,7 +210,7 @@ export interface paths { }; "/servers/create": { /** Create a new server. */ - post: operations["server_create_req"]; + post: operations["server_create_create_server"]; }; "/servers/{target}": { /** Fetch a server by its id. */ @@ -2094,14 +2094,14 @@ export interface components { name: string; avatar?: string | null; }; - /** Create Server Response */ - CreateServerResponse: { + /** @description Information returned when creating server */ + CreateServerLegacyResponse: { /** @description Server object */ server: components["schemas"]["Server"]; /** @description Default channels */ channels: components["schemas"]["Channel"][]; }; - /** @description Representation of a server on Revolt */ + /** @description Server */ Server: { /** @description Unique Id */ _id: string; @@ -2129,10 +2129,10 @@ export interface components { /** @description Banner attachment */ banner?: components["schemas"]["File"] | null; /** - * Format: int32 + * Format: uint32 * @description Bitfield of server flags */ - flags?: number | null; + flags?: number; /** @description Whether this server is flagged as not safe for work */ nsfw?: boolean; /** @description Whether to enable analytics */ @@ -2160,7 +2160,7 @@ export interface components { /** @description ID of channel to send user banned messages in */ user_banned?: string | null; }; - /** @description Representation of a server role */ + /** @description Role */ Role: { /** @description Role name */ name: string; @@ -2180,7 +2180,7 @@ export interface components { */ rank?: number; }; - /** Server Data */ + /** @description Information about new server to create */ DataCreateServer: { /** @description Server name */ name: string; @@ -3987,11 +3987,11 @@ export interface operations { }; }; /** Create a new server. */ - server_create_req: { + server_create_create_server: { responses: { 200: { content: { - "application/json": components["schemas"]["CreateServerResponse"]; + "application/json": components["schemas"]["CreateServerLegacyResponse"]; }; }; /** An error occurred. */ diff --git a/src/types.ts b/src/types.ts index 6db0600..2ea68a7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -78,7 +78,7 @@ export type Override = components['schemas']['Override']; export type DataDefaultChannelPermissions = components['schemas']['DataDefaultChannelPermissions']; export type Webhook = components['schemas']['Webhook']; export type CreateWebhookBody = components['schemas']['CreateWebhookBody']; -export type CreateServerResponse = components['schemas']['CreateServerResponse']; +export type CreateServerLegacyResponse = components['schemas']['CreateServerLegacyResponse']; export type Server = components['schemas']['Server']; export type Category = components['schemas']['Category']; export type SystemMessageChannels = components['schemas']['SystemMessageChannels'];