migrate services.js to ts

This commit is contained in:
MaysWind
2025-01-05 17:00:25 +08:00
parent 41d34af4c7
commit 454e97c9f1
37 changed files with 1294 additions and 764 deletions
+27
View File
@@ -0,0 +1,27 @@
export interface TwoFactorEnableConfirmRequest {
readonly secret: string;
readonly passcode: string;
}
export interface TwoFactorEnableResponse {
readonly secret: string;
readonly qrcode: string;
}
export interface TwoFactorEnableConfirmResponse {
readonly token?: string;
readonly recoveryCodes: string[];
}
export interface TwoFactorDisableRequest {
readonly password?: string;
}
export interface TwoFactorRegenerateRecoveryCodeRequest {
readonly password?: string;
}
export interface TwoFactorStatusResponse {
readonly enable: boolean;
readonly createdAt?: number;
}