@dynamic-labs/sdk-api-core 0.0.847 → 0.0.848

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.847",
3
+ "version": "0.0.848",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -41,6 +41,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
42
42
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
43
43
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
44
+ 'twilioVerifyServiceSid': !runtime.exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
44
45
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
45
46
  'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
46
47
  'entryPointVersion': !runtime.exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
@@ -91,6 +92,7 @@ function ProviderToJSON(value) {
91
92
  'domain': value.domain,
92
93
  'accountSid': value.accountSid,
93
94
  'twilioNumber': value.twilioNumber,
95
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
94
96
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
95
97
  'sendgridIpPoolName': value.sendgridIpPoolName,
96
98
  'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
@@ -143,6 +143,12 @@ export interface Provider {
143
143
  * @memberof Provider
144
144
  */
145
145
  twilioNumber?: string;
146
+ /**
147
+ * Twilio Verify Service SID for SMS verification.
148
+ * @type {string}
149
+ * @memberof Provider
150
+ */
151
+ twilioVerifyServiceSid?: string;
146
152
  /**
147
153
  *
148
154
  * @type {Array<SmsCountryCode>}
@@ -37,6 +37,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'domain': !exists(json, 'domain') ? undefined : json['domain'],
38
38
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
39
39
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
40
+ 'twilioVerifyServiceSid': !exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
40
41
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
41
42
  'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
42
43
  'entryPointVersion': !exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
@@ -87,6 +88,7 @@ function ProviderToJSON(value) {
87
88
  'domain': value.domain,
88
89
  'accountSid': value.accountSid,
89
90
  'twilioNumber': value.twilioNumber,
91
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
90
92
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
91
93
  'sendgridIpPoolName': value.sendgridIpPoolName,
92
94
  'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
@@ -25,6 +25,8 @@ function SsoProviderFromJSONTyped(json, ignoreDiscriminator) {
25
25
  'enforceOnlySSO': json['enforceOnlySSO'],
26
26
  'createdAt': (new Date(json['createdAt'])),
27
27
  'updatedAt': (new Date(json['updatedAt'])),
28
+ 'ssoDomainVerifiedAt': !runtime.exists(json, 'ssoDomainVerifiedAt') ? undefined : (new Date(json['ssoDomainVerifiedAt'])),
29
+ 'ssoDomainVerificationChallenge': !runtime.exists(json, 'ssoDomainVerificationChallenge') ? undefined : json['ssoDomainVerificationChallenge'],
28
30
  };
29
31
  }
30
32
  function SsoProviderToJSON(value) {
@@ -46,6 +48,8 @@ function SsoProviderToJSON(value) {
46
48
  'enforceOnlySSO': value.enforceOnlySSO,
47
49
  'createdAt': (value.createdAt.toISOString()),
48
50
  'updatedAt': (value.updatedAt.toISOString()),
51
+ 'ssoDomainVerifiedAt': value.ssoDomainVerifiedAt === undefined ? undefined : (value.ssoDomainVerifiedAt.toISOString()),
52
+ 'ssoDomainVerificationChallenge': value.ssoDomainVerificationChallenge,
49
53
  };
50
54
  }
51
55
 
@@ -82,6 +82,18 @@ export interface SsoProvider {
82
82
  * @memberof SsoProvider
83
83
  */
84
84
  updatedAt: Date;
85
+ /**
86
+ * Timestamp when the SSO domain was verified by Dynamic API. This will be present when the SSO domain ownership has been verified by setting a TXT record in DNS.
87
+ * @type {Date}
88
+ * @memberof SsoProvider
89
+ */
90
+ ssoDomainVerifiedAt?: Date;
91
+ /**
92
+ * TXT record challenge string for the SSO domain verification. This will be provided when the SSO provider domain ownership needs to be verified by setting a TXT record in DNS.
93
+ * @type {string}
94
+ * @memberof SsoProvider
95
+ */
96
+ ssoDomainVerificationChallenge?: string;
85
97
  }
86
98
  export declare function SsoProviderFromJSON(json: any): SsoProvider;
87
99
  export declare function SsoProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SsoProvider;
@@ -21,6 +21,8 @@ function SsoProviderFromJSONTyped(json, ignoreDiscriminator) {
21
21
  'enforceOnlySSO': json['enforceOnlySSO'],
22
22
  'createdAt': (new Date(json['createdAt'])),
23
23
  'updatedAt': (new Date(json['updatedAt'])),
24
+ 'ssoDomainVerifiedAt': !exists(json, 'ssoDomainVerifiedAt') ? undefined : (new Date(json['ssoDomainVerifiedAt'])),
25
+ 'ssoDomainVerificationChallenge': !exists(json, 'ssoDomainVerificationChallenge') ? undefined : json['ssoDomainVerificationChallenge'],
24
26
  };
25
27
  }
26
28
  function SsoProviderToJSON(value) {
@@ -42,6 +44,8 @@ function SsoProviderToJSON(value) {
42
44
  'enforceOnlySSO': value.enforceOnlySSO,
43
45
  'createdAt': (value.createdAt.toISOString()),
44
46
  'updatedAt': (value.updatedAt.toISOString()),
47
+ 'ssoDomainVerifiedAt': value.ssoDomainVerifiedAt === undefined ? undefined : (value.ssoDomainVerifiedAt.toISOString()),
48
+ 'ssoDomainVerificationChallenge': value.ssoDomainVerificationChallenge,
45
49
  };
46
50
  }
47
51