Remove APIBackupCodesArray

This commit is contained in:
Rory&
2026-07-15 12:50:53 +02:00
parent edcaa05be0
commit 06ea966591
7 changed files with 13 additions and 7 deletions
Binary file not shown.
Binary file not shown.
@@ -30,7 +30,7 @@ router.post(
requestBody: "CodesVerificationSchema",
responses: {
200: {
body: "APIBackupCodeArray",
body: "BackupCodeArray",
},
400: {
body: "APIErrorResponse",
+1 -1
View File
@@ -35,7 +35,7 @@ router.post(
description: "This route is replaced with users/@me/mfa/codes-verification in newer clients",
responses: {
200: {
body: "APIBackupCodeArray",
body: "BackupCodeArray",
},
400: {
body: "APIErrorResponse",
@@ -1,6 +1,6 @@
/*
Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
Copyright (C) 2023 Spacebar and Spacebar Contributors
Copyright (C) 2026 Spacebar and Spacebar Contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
@@ -16,7 +16,14 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
export interface BackupCodesChallengeResponse {
export interface BackupCodesResponses {
nonce: string;
regenerate_nonce: string;
}
export interface BackupCode {
code: string;
consumed: boolean;
}
export type BackupCodeArray = BackupCode[];
+1 -2
View File
@@ -30,7 +30,6 @@ export type APIPublicUser = PublicUser;
export type APIPrivateUser = PrivateUser;
export type APIGuildArray = APIGuild[];
export type APIDMChannelArray = DmChannelDTO[];
export type APIBackupCodeArray = BackupCode[];
export interface UserUpdateResponse extends APIPrivateUser {
newToken?: string;
@@ -43,7 +42,6 @@ export type APIApplicationArray = Application[];
export type APIInviteArray = Invite[];
export type APIWebhookArray = Webhook[];
export type APIDiscoveryCategoryArray = Categories[];
export type APIGeneralConfiguration = GeneralConfiguration;
export type APIChannelArray = Channel[];
export interface APIGuildWithJoinedAt extends GuildCreateResponse {
@@ -51,6 +49,7 @@ export interface APIGuildWithJoinedAt extends GuildCreateResponse {
}
export type APITemplateArray = Template[];
export type APIGeneralConfiguration = GeneralConfiguration;
export type APILimitsConfiguration = LimitsConfiguration;
export type APIConnectionsConfiguration = Record<
+1 -1
View File
@@ -19,7 +19,7 @@
export * from "./APIErrorOrCaptchaResponse";
export * from "./APIErrorResponse";
export * from "./AccountStandingResponse";
export * from "./BackupCodesChallengeResponse";
export * from "./BackupCodesResponses";
export * from "./CaptchaRequiredResponse";
export * from "./CollectiblesCategoriesResponse";
export * from "./CollectiblesMarketingResponse";