mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
migrate services.js to ts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user