diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-23 13:51:29 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:06:21 -0400 |
commit | 777e7208dccb3e28f6c2fe85abb5a6d7aaa99ed2 (patch) | |
tree | eaaec58da7cad27f75191172c35540ef5b8c5516 /src/util | |
parent | gateway (diff) | |
download | server-777e7208dccb3e28f6c2fe85abb5a6d7aaa99ed2.tar.xz |
AAA
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/schemas/responses/GatewayBotResponse.ts | 10 | ||||
-rw-r--r-- | src/util/schemas/responses/GatewayResponse.ts | 3 | ||||
-rw-r--r-- | src/util/schemas/responses/UserProfileResponse.ts | 8 | ||||
-rw-r--r-- | src/util/schemas/responses/UserRelationsResponse.ts | 9 | ||||
-rw-r--r-- | src/util/schemas/responses/index.ts | 4 |
5 files changed, 34 insertions, 0 deletions
diff --git a/src/util/schemas/responses/GatewayBotResponse.ts b/src/util/schemas/responses/GatewayBotResponse.ts new file mode 100644 index 00000000..30f1f57f --- /dev/null +++ b/src/util/schemas/responses/GatewayBotResponse.ts @@ -0,0 +1,10 @@ +export interface GatewayBotResponse { + url: string; + shards: number; + session_start_limit: { + total: number; + remaining: number; + reset_after: number; + max_concurrency: number; + }; +} diff --git a/src/util/schemas/responses/GatewayResponse.ts b/src/util/schemas/responses/GatewayResponse.ts new file mode 100644 index 00000000..e909f7bd --- /dev/null +++ b/src/util/schemas/responses/GatewayResponse.ts @@ -0,0 +1,3 @@ +export interface GatewayResponse { + url: string; +} diff --git a/src/util/schemas/responses/UserProfileResponse.ts b/src/util/schemas/responses/UserProfileResponse.ts new file mode 100644 index 00000000..4e5cd8a6 --- /dev/null +++ b/src/util/schemas/responses/UserProfileResponse.ts @@ -0,0 +1,8 @@ +import { PublicConnectedAccount, UserPublic } from "../../entities"; + +export interface UserProfileResponse { + user: UserPublic; + connected_accounts: PublicConnectedAccount; + premium_guild_since?: Date; + premium_since?: Date; +} diff --git a/src/util/schemas/responses/UserRelationsResponse.ts b/src/util/schemas/responses/UserRelationsResponse.ts new file mode 100644 index 00000000..1ec15eca --- /dev/null +++ b/src/util/schemas/responses/UserRelationsResponse.ts @@ -0,0 +1,9 @@ +export interface UserRelationsResponse { + object: { + id?: string; + username?: string; + avatar?: string; + discriminator?: string; + public_flags?: number; + }; +} diff --git a/src/util/schemas/responses/index.ts b/src/util/schemas/responses/index.ts index 2a1180ad..49e8053b 100644 --- a/src/util/schemas/responses/index.ts +++ b/src/util/schemas/responses/index.ts @@ -9,7 +9,11 @@ export * from "./CaptchaRequiredResponse"; export * from "./ChannelInvitesResponse"; export * from "./ChannelPinsResponse"; export * from "./ChannelWebhooksResponse"; +export * from "./GatewayBotResponse"; +export * from "./GatewayResponse"; export * from "./GenerateRegistrationTokensResponse"; export * from "./LocationMetadataResponse"; export * from "./TokenResponse"; +export * from "./UserProfileResponse"; +export * from "./UserRelationsResponse"; export * from "./WebhookCreateResponse"; |