diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-27 15:51:34 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:44:39 -0400 |
commit | 866eb15d90f35cc789bfacea4b70b904471d8eae (patch) | |
tree | e63e01e5860c8190e2829a0919c76c5bd7b535df /src/api/routes | |
parent | oapi: fix a few response types in auth (diff) | |
download | server-866eb15d90f35cc789bfacea4b70b904471d8eae.tar.xz |
clusterfuck
Diffstat (limited to 'src/api/routes')
25 files changed, 25 insertions, 25 deletions
diff --git a/src/api/routes/applications/index.ts b/src/api/routes/applications/index.ts index dba0a499..1e536a06 100644 --- a/src/api/routes/applications/index.ts +++ b/src/api/routes/applications/index.ts @@ -32,7 +32,7 @@ router.get( route({ responses: { 200: { - body: "ApplicationsResponse", + body: "APIApplicationArray", }, }, }), diff --git a/src/api/routes/channels/#channel_id/invites.ts b/src/api/routes/channels/#channel_id/invites.ts index d2874872..f608cca2 100644 --- a/src/api/routes/channels/#channel_id/invites.ts +++ b/src/api/routes/channels/#channel_id/invites.ts @@ -96,7 +96,7 @@ router.get( permission: "MANAGE_CHANNELS", responses: { 200: { - body: "ChannelInvitesResponse", + body: "APIInviteArray", }, 404: {}, }, diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 3d6cc596..551efb4e 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -94,7 +94,7 @@ router.get( }, responses: { 200: { - body: "ChannelMessagesResponse", + body: "APIMessageArray", }, 400: { body: "APIErrorResponse", diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 7b379c30..724ebffd 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -138,7 +138,7 @@ router.get( permission: ["READ_MESSAGE_HISTORY"], responses: { 200: { - body: "ChannelPinsResponse", + body: "APIMessageArray", }, 400: { body: "APIErrorResponse", diff --git a/src/api/routes/channels/#channel_id/webhooks.ts b/src/api/routes/channels/#channel_id/webhooks.ts index 17437301..6b81298f 100644 --- a/src/api/routes/channels/#channel_id/webhooks.ts +++ b/src/api/routes/channels/#channel_id/webhooks.ts @@ -41,7 +41,7 @@ router.get( route({ responses: { 200: { - body: "ChannelWebhooksResponse", + body: "APIWebhookArray", }, }, }), diff --git a/src/api/routes/discovery.ts b/src/api/routes/discovery.ts index 79bbc686..a045c191 100644 --- a/src/api/routes/discovery.ts +++ b/src/api/routes/discovery.ts @@ -27,7 +27,7 @@ router.get( route({ responses: { 200: { - body: "DiscoveryCategoriesResponse", + body: "APIDiscoveryCategoryArray", }, }, }), diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 0cbfca00..1d5897a5 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.ts @@ -33,7 +33,7 @@ router.get( route({ responses: { 201: { - body: "GuildChannelsResponse", + body: "APIChannelArray", }, }, }), diff --git a/src/api/routes/guilds/#guild_id/emojis.ts b/src/api/routes/guilds/#guild_id/emojis.ts index b1f3c7bf..ef28f989 100644 --- a/src/api/routes/guilds/#guild_id/emojis.ts +++ b/src/api/routes/guilds/#guild_id/emojis.ts @@ -39,7 +39,7 @@ router.get( route({ responses: { 200: { - body: "GuildEmojisResponse", + body: "APIEmojiArray", }, 403: { body: "APIErrorResponse", diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts index 7c8f583e..e87a5e45 100644 --- a/src/api/routes/guilds/#guild_id/index.ts +++ b/src/api/routes/guilds/#guild_id/index.ts @@ -39,7 +39,7 @@ router.get( route({ responses: { "200": { - body: "GuildResponse", + body: "GuildWithJoinedAt", }, 401: { body: "APIErrorResponse", diff --git a/src/api/routes/guilds/#guild_id/invites.ts b/src/api/routes/guilds/#guild_id/invites.ts index 219b6a4f..a0ffa3f4 100644 --- a/src/api/routes/guilds/#guild_id/invites.ts +++ b/src/api/routes/guilds/#guild_id/invites.ts @@ -28,7 +28,7 @@ router.get( permission: "MANAGE_GUILD", responses: { 200: { - body: "GuildInvitesResponse", + body: "APIInviteArray", }, }, }), diff --git a/src/api/routes/guilds/#guild_id/members/index.ts b/src/api/routes/guilds/#guild_id/members/index.ts index 1ab9dd28..9260308d 100644 --- a/src/api/routes/guilds/#guild_id/members/index.ts +++ b/src/api/routes/guilds/#guild_id/members/index.ts @@ -42,7 +42,7 @@ router.get( }, responses: { 200: { - body: "GuildMembersResponse", + body: "APIMemberArray", }, 403: { body: "APIErrorResponse", diff --git a/src/api/routes/guilds/#guild_id/regions.ts b/src/api/routes/guilds/#guild_id/regions.ts index 166c9625..b0ae0602 100644 --- a/src/api/routes/guilds/#guild_id/regions.ts +++ b/src/api/routes/guilds/#guild_id/regions.ts @@ -27,7 +27,7 @@ router.get( route({ responses: { 200: { - body: "GuildVoiceRegionsResponse", + body: "APIGuildVoiceRegion", }, 404: { body: "APIErrorResponse", diff --git a/src/api/routes/guilds/#guild_id/roles/index.ts b/src/api/routes/guilds/#guild_id/roles/index.ts index 77d84347..e2c34e7f 100644 --- a/src/api/routes/guilds/#guild_id/roles/index.ts +++ b/src/api/routes/guilds/#guild_id/roles/index.ts @@ -122,7 +122,7 @@ router.patch( permission: "MANAGE_ROLES", responses: { 200: { - body: "GuildRolesResponse", + body: "APIRoleArray", }, 400: { body: "APIErrorResponse", diff --git a/src/api/routes/guilds/#guild_id/stickers.ts b/src/api/routes/guilds/#guild_id/stickers.ts index 38b10e7d..2da9a21e 100644 --- a/src/api/routes/guilds/#guild_id/stickers.ts +++ b/src/api/routes/guilds/#guild_id/stickers.ts @@ -38,7 +38,7 @@ router.get( route({ responses: { 200: { - body: "GuildStickersResponse", + body: "APIStickerArray", }, 403: { body: "APIErrorResponse", diff --git a/src/api/routes/guilds/#guild_id/templates.ts b/src/api/routes/guilds/#guild_id/templates.ts index 12b235c7..85ae0ac9 100644 --- a/src/api/routes/guilds/#guild_id/templates.ts +++ b/src/api/routes/guilds/#guild_id/templates.ts @@ -45,7 +45,7 @@ router.get( route({ responses: { 200: { - body: "GuildTemplatesResponse", + body: "APITemplateArray", }, }, }), diff --git a/src/api/routes/policies/instance/index.ts b/src/api/routes/policies/instance/index.ts index 4b4bc194..6e269a5c 100644 --- a/src/api/routes/policies/instance/index.ts +++ b/src/api/routes/policies/instance/index.ts @@ -26,7 +26,7 @@ router.get( route({ responses: { 200: { - body: "GeneralConfigurationResponse", + body: "APIGeneralConfiguration", }, }, }), diff --git a/src/api/routes/policies/instance/limits.ts b/src/api/routes/policies/instance/limits.ts index e144a5bc..9852459d 100644 --- a/src/api/routes/policies/instance/limits.ts +++ b/src/api/routes/policies/instance/limits.ts @@ -26,7 +26,7 @@ router.get( route({ responses: { 200: { - body: "LimitsConfigurationResponse", + body: "APILimitsConfiguration", }, }, }), diff --git a/src/api/routes/sticker-packs/index.ts b/src/api/routes/sticker-packs/index.ts index 627ce061..569d1104 100644 --- a/src/api/routes/sticker-packs/index.ts +++ b/src/api/routes/sticker-packs/index.ts @@ -27,7 +27,7 @@ router.get( route({ responses: { 200: { - body: "StickerPacksResponse", + body: "APIStickerPackArray", }, }, }), diff --git a/src/api/routes/users/#id/index.ts b/src/api/routes/users/#id/index.ts index 4e3625a4..1bd413d3 100644 --- a/src/api/routes/users/#id/index.ts +++ b/src/api/routes/users/#id/index.ts @@ -27,7 +27,7 @@ router.get( route({ responses: { 200: { - body: "PublicUserResponse", + body: "APIPublicUser", }, }, }), diff --git a/src/api/routes/users/@me/channels.ts b/src/api/routes/users/@me/channels.ts index 9354d0cf..8a8fadd9 100644 --- a/src/api/routes/users/@me/channels.ts +++ b/src/api/routes/users/@me/channels.ts @@ -32,7 +32,7 @@ router.get( route({ responses: { 200: { - body: "UserChannelsResponse", + body: "APIDMChannelArray", }, }, }), diff --git a/src/api/routes/users/@me/guilds.ts b/src/api/routes/users/@me/guilds.ts index b5fdca26..0bce432b 100644 --- a/src/api/routes/users/@me/guilds.ts +++ b/src/api/routes/users/@me/guilds.ts @@ -36,7 +36,7 @@ router.get( route({ responses: { 200: { - body: "UserGuildsResponse", + body: "APIGuildArray", }, }, }), diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 14feb1b1..8fe86265 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -39,7 +39,7 @@ router.get( route({ responses: { 200: { - body: "PrivateUserResponse", + body: "APIPrivateUser", }, }, }), diff --git a/src/api/routes/users/@me/mfa/codes-verification.ts b/src/api/routes/users/@me/mfa/codes-verification.ts index 7e336e5a..f71704a9 100644 --- a/src/api/routes/users/@me/mfa/codes-verification.ts +++ b/src/api/routes/users/@me/mfa/codes-verification.ts @@ -34,7 +34,7 @@ router.post( requestBody: "CodesVerificationSchema", responses: { 200: { - body: "UserBackupCodesResponse", + body: "APIBackupCodeArray", }, 400: { body: "APIErrorResponse", diff --git a/src/api/routes/users/@me/mfa/codes.ts b/src/api/routes/users/@me/mfa/codes.ts index 7a60522a..f9cfc4c4 100644 --- a/src/api/routes/users/@me/mfa/codes.ts +++ b/src/api/routes/users/@me/mfa/codes.ts @@ -40,7 +40,7 @@ router.post( "This route is replaced with users/@me/mfa/codes-verification in newer clients", responses: { 200: { - body: "UserBackupCodesResponse", + body: "APIBackupCodeArray", }, 400: { body: "APIErrorResponse", diff --git a/src/api/routes/voice/regions.ts b/src/api/routes/voice/regions.ts index 9fb58fbe..10a8b21d 100644 --- a/src/api/routes/voice/regions.ts +++ b/src/api/routes/voice/regions.ts @@ -26,7 +26,7 @@ router.get( route({ responses: { 200: { - body: "GuildVoiceRegionsResponse", + body: "APIGuildVoiceRegion", }, }, }), |