mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-29 01:09:20 +00:00
Remove APIBackupCodesArray
This commit is contained in:
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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
+9
-2
@@ -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[];
|
||||
@@ -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<
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user