Work towards fixing openapi spec

This commit is contained in:
Madeline
2023-03-24 04:16:58 +11:00
parent 1fd01fa000
commit 0f928e479c
14 changed files with 8029 additions and 261 deletions
+10
View File
@@ -0,0 +1,10 @@
export interface GatewayBotResponse {
url: string;
shards: number;
session_start_limit: {
total: number;
remaining: number;
reset_after: number;
max_concurrency: number;
};
}
+3
View File
@@ -0,0 +1,3 @@
export interface GatewayResponse {
url: string;
}
+8
View File
@@ -0,0 +1,8 @@
import { PublicConnectedAccount, UserPublic } from "..";
export interface UserProfileResponse {
user: UserPublic;
connected_accounts: PublicConnectedAccount;
premium_guild_since?: Date;
premium_since?: Date;
}
@@ -0,0 +1,9 @@
export interface UserRelationsResponse {
object: {
id?: string;
username?: string;
avatar?: string;
discriminator?: string;
public_flags?: number;
};
}
+4
View File
@@ -76,3 +76,7 @@ export * from "./VoiceVideoSchema";
export * from "./WebAuthnSchema";
export * from "./WebhookCreateSchema";
export * from "./WidgetModifySchema";
export * from "./UserRelationsResponse";
export * from "./GatewayResponse";
export * from "./GatewayBotResponse";
export * from "./UserProfileResponse";