✨ feat(auth): Add type parameter to SendCode and update related API typings
This commit is contained in:
Vendored
+26
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user