✨ feat(auth): Add SMS and email configuration options to global store and update localization
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as announcement from './announcement';
|
||||
|
||||
+22
-4
@@ -35,6 +35,12 @@ declare namespace API {
|
||||
ios: Application[];
|
||||
};
|
||||
|
||||
type AuthConfig = {
|
||||
sms: SmsAuthenticateConfig;
|
||||
email: EmailAuthticateConfig;
|
||||
register: RegisterConfig;
|
||||
};
|
||||
|
||||
type BatchDeleteCouponRequest = {
|
||||
ids: number[];
|
||||
};
|
||||
@@ -122,6 +128,8 @@ declare namespace API {
|
||||
type CreateNodeRequest = {
|
||||
name: string;
|
||||
tags: string[];
|
||||
country: string;
|
||||
city: string;
|
||||
server_addr: string;
|
||||
relay_mode: string;
|
||||
relay_node: NodeRelay[];
|
||||
@@ -252,7 +260,14 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type EmailAuthticateConfig = {
|
||||
email_enable_verify: boolean;
|
||||
email_enable_domain_suffix: boolean;
|
||||
email_domain_suffix_list: string;
|
||||
};
|
||||
|
||||
type EmailSmtpConfig = {
|
||||
email_enabled: boolean;
|
||||
email_smtp_host: string;
|
||||
email_smtp_port: number;
|
||||
email_smtp_user: string;
|
||||
@@ -262,6 +277,9 @@ declare namespace API {
|
||||
verify_email_template: string;
|
||||
maintenance_email_template: string;
|
||||
expiration_email_template: string;
|
||||
email_enable_verify: boolean;
|
||||
email_enable_domain_suffix: boolean;
|
||||
email_domain_suffix_list: string;
|
||||
};
|
||||
|
||||
type EpayConfig = {
|
||||
@@ -634,13 +652,9 @@ declare namespace API {
|
||||
type RegisterConfig = {
|
||||
stop_register: boolean;
|
||||
enable_trial: boolean;
|
||||
enable_email_verify: boolean;
|
||||
enable_email_domain_suffix: boolean;
|
||||
email_domain_suffix_list: string;
|
||||
enable_ip_register_limit: boolean;
|
||||
ip_register_limit: number;
|
||||
ip_register_limit_duration: number;
|
||||
sms: SmsAuthenticateConfig;
|
||||
};
|
||||
|
||||
type Response = {
|
||||
@@ -678,6 +692,8 @@ declare namespace API {
|
||||
type Server = {
|
||||
id: number;
|
||||
tags: string[];
|
||||
country: string;
|
||||
city: string;
|
||||
name: string;
|
||||
server_addr: string;
|
||||
relay_mode: string;
|
||||
@@ -1018,6 +1034,8 @@ declare namespace API {
|
||||
type UpdateNodeRequest = {
|
||||
id: number;
|
||||
tags: string[];
|
||||
country: string;
|
||||
city: string;
|
||||
name: string;
|
||||
server_addr: string;
|
||||
relay_mode: string;
|
||||
|
||||
Reference in New Issue
Block a user