From 41c3781bae3d9425db2eff9a5e225590c8f8b7f5 Mon Sep 17 00:00:00 2001 From: Stoat CI Date: Tue, 3 Mar 2026 04:51:50 +0000 Subject: [PATCH] chore: build library from latest spec [skip ci] --- src/schema.ts | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/types.ts | 3 ++ 2 files changed, 94 insertions(+) diff --git a/src/schema.ts b/src/schema.ts index 98e5431..e55ccb1 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -501,6 +501,8 @@ export interface components { january: components["schemas"]["Feature"]; /** @description Voice server configuration */ livekit: components["schemas"]["VoiceFeature"]; + /** @description Limits */ + limits: components["schemas"]["LimitsConfig"]; }; /** hCaptcha Configuration */ CaptchaFeature: { @@ -532,6 +534,95 @@ export interface components { lon: number; public_url: string; }; + /** Limits For Users */ + LimitsConfig: { + /** @description Global Limits */ + global: components["schemas"]["GlobalLimits"]; + /** @description New User Limits */ + new_user: components["schemas"]["UserLimits"]; + /** @description Default User Limits */ + default: components["schemas"]["UserLimits"]; + }; + /** Global limits */ + GlobalLimits: { + /** + * Format: int64 + * @description max group size + */ + group_size: number; + /** + * Format: int64 + * @description max message embeds + */ + message_embeds: number; + /** + * Format: int64 + * @description max replies + */ + message_replies: number; + /** + * Format: int64 + * @description max reactions per message + */ + message_reactions: number; + /** + * Format: int64 + * @description max server emoji + */ + server_emoji: number; + /** + * Format: int64 + * @description max server roles + */ + server_roles: number; + /** + * Format: int64 + * @description max server channels + */ + server_channels: number; + /** Format: int64 */ + body_limit_size: number; + }; + /** User Limits */ + UserLimits: { + /** + * Format: int64 + * @description Max Outgoing Friend Requests + */ + outgoing_friend_requests: number; + /** + * Format: int64 + * @description Max Owned Bots + */ + bots: number; + /** + * Format: int64 + * @description Max message content length + */ + message_length: number; + /** + * Format: int64 + * @description max message attachments + */ + message_attachments: number; + /** + * Format: int64 + * @description max servers + */ + servers: number; + /** + * Format: int64 + * @description max audio quality + */ + voice_quality: number; + /** @description video streaming enabled */ + video: boolean; + /** @description max video resolution (vertical, horizontal) */ + video_resolution: number[]; + /** @description min/max aspect ratios */ + video_aspect_ratio: number[]; + file_upload_size_limits: { [key: string]: number }; + }; /** Build Information */ BuildInformation: { /** @description Commit Hash */ diff --git a/src/types.ts b/src/types.ts index d2a3e8f..d2bc3d5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -6,6 +6,9 @@ export type CaptchaFeature = components['schemas']['CaptchaFeature']; export type Feature = components['schemas']['Feature']; export type VoiceFeature = components['schemas']['VoiceFeature']; export type VoiceNode = components['schemas']['VoiceNode']; +export type LimitsConfig = components['schemas']['LimitsConfig']; +export type GlobalLimits = components['schemas']['GlobalLimits']; +export type UserLimits = components['schemas']['UserLimits']; export type BuildInformation = components['schemas']['BuildInformation']; export type Error = components['schemas']['Error']; export type User = components['schemas']['User'];