@@ -24,6 +24,7 @@ import {
2424 MultiFactorAuthConfig , SmsRegionConfig , SmsRegionsAuthConfig , RecaptchaAuthConfig , RecaptchaConfig ,
2525 PasswordPolicyConfig ,
2626 PasswordPolicyAuthConfig , PasswordPolicyAuthServerConfig , EmailPrivacyConfig , EmailPrivacyAuthConfig ,
27+ MobileLinksConfig , MobileLinksAuthConfig
2728} from './auth-config' ;
2829
2930/**
@@ -77,6 +78,11 @@ export interface UpdateTenantRequest {
7778 * The email privacy configuration for the tenant
7879 */
7980 emailPrivacyConfig ?: EmailPrivacyConfig ;
81+
82+ /**
83+ * The mobile links configuration for the project
84+ */
85+ mobileLinksConfig ?: MobileLinksConfig ;
8086}
8187
8288/**
@@ -95,6 +101,7 @@ export interface TenantOptionsServerRequest extends EmailSignInConfigServerReque
95101 recaptchaConfig ?: RecaptchaConfig ;
96102 passwordPolicyConfig ?: PasswordPolicyAuthServerConfig ;
97103 emailPrivacyConfig ?: EmailPrivacyConfig ;
104+ mobileLinksConfig ?: MobileLinksConfig ;
98105}
99106
100107/** The tenant server response interface. */
@@ -110,6 +117,7 @@ export interface TenantServerResponse {
110117 recaptchaConfig ? : RecaptchaConfig ;
111118 passwordPolicyConfig ?: PasswordPolicyAuthServerConfig ;
112119 emailPrivacyConfig ?: EmailPrivacyConfig ;
120+ mobileLinksConfig ?: MobileLinksConfig ;
113121}
114122
115123/**
@@ -175,6 +183,11 @@ export class Tenant {
175183 * The email privacy configuration for the tenant
176184 */
177185 public readonly emailPrivacyConfig ?: EmailPrivacyConfig ;
186+ /**
187+ * The mobile links configuration for the tenant
188+ */
189+ public readonly mobileLinksConfig ?: MobileLinksConfig
190+
178191
179192 /**
180193 * Builds the corresponding server request for a TenantOptions object.
@@ -217,6 +230,9 @@ export class Tenant {
217230 if ( typeof tenantOptions . emailPrivacyConfig !== 'undefined' ) {
218231 request . emailPrivacyConfig = tenantOptions . emailPrivacyConfig ;
219232 }
233+ if ( typeof tenantOptions . mobileLinksConfig !== 'undefined' ) {
234+ request . mobileLinksConfig = tenantOptions . mobileLinksConfig ;
235+ }
220236 return request ;
221237 }
222238
@@ -254,6 +270,7 @@ export class Tenant {
254270 recaptchaConfig : true ,
255271 passwordPolicyConfig : true ,
256272 emailPrivacyConfig : true ,
273+ mobileLinksConfig : true ,
257274 } ;
258275 const label = createRequest ? 'CreateTenantRequest' : 'UpdateTenantRequest' ;
259276 if ( ! validator . isNonNullObject ( request ) ) {
@@ -317,6 +334,10 @@ export class Tenant {
317334 if ( typeof request . emailPrivacyConfig !== 'undefined' ) {
318335 EmailPrivacyAuthConfig . validate ( request . emailPrivacyConfig ) ;
319336 }
337+ // Validate Mobile Links Config if provided.
338+ if ( typeof request . mobileLinksConfig !== 'undefined' ) {
339+ MobileLinksAuthConfig . validate ( request . mobileLinksConfig ) ;
340+ }
320341 }
321342
322343 /**
@@ -363,6 +384,9 @@ export class Tenant {
363384 if ( typeof response . emailPrivacyConfig !== 'undefined' ) {
364385 this . emailPrivacyConfig = deepCopy ( response . emailPrivacyConfig ) ;
365386 }
387+ if ( typeof response . mobileLinksConfig !== 'undefined' ) {
388+ this . mobileLinksConfig = deepCopy ( response . mobileLinksConfig ) ;
389+ }
366390 }
367391
368392 /**
@@ -403,6 +427,7 @@ export class Tenant {
403427 recaptchaConfig : this . recaptchaConfig_ ?. toJSON ( ) ,
404428 passwordPolicyConfig : deepCopy ( this . passwordPolicyConfig ) ,
405429 emailPrivacyConfig : deepCopy ( this . emailPrivacyConfig ) ,
430+ mobileLinksConfig : deepCopy ( this . mobileLinksConfig ) ,
406431 } ;
407432 if ( typeof json . multiFactorConfig === 'undefined' ) {
408433 delete json . multiFactorConfig ;
@@ -422,6 +447,9 @@ export class Tenant {
422447 if ( typeof json . emailPrivacyConfig === 'undefined' ) {
423448 delete json . emailPrivacyConfig ;
424449 }
450+ if ( typeof json . mobileLinksConfig === 'undefined' ) {
451+ delete json . mobileLinksConfig ;
452+ }
425453 return json ;
426454 }
427455}
0 commit comments