feat(auth): Add type parameter to SendCode and update related API typings

This commit is contained in:
web@ppanel
2025-02-10 14:39:31 +07:00
parent e5455aa1dc
commit 4198871eef
14 changed files with 135 additions and 9 deletions
+26
View File
@@ -70,6 +70,16 @@ declare namespace API {
enabled: boolean;
};
type BindEmailRequest = {
email: string;
};
type BindMobileRequest = {
area_code: string;
mobile: string;
code: string;
};
type BindOAuthCallbackRequest = {
method: string;
callback: Record<string, any>;
@@ -89,6 +99,16 @@ declare namespace API {
expired_at: number;
};
type ChangebindEmailRequest = {
email: string;
};
type ChangebindMobileRequest = {
area_code: string;
mobile: string;
code: string;
};
type CheckoutOrderRequest = {
orderNo: string;
};
@@ -783,6 +803,7 @@ declare namespace API {
auth_type: string;
auth_identifier: string;
verified: boolean;
area_code?: string;
};
type UserBalanceLog = {
@@ -851,6 +872,11 @@ declare namespace API {
enable_reset_password_verify: boolean;
};
type VerifyEmailRequest = {
email: string;
code: string;
};
type Vless = {
port: number;
flow: string;