@dynamic-labs/sdk-api 0.0.847 → 0.0.849

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.
@@ -108,6 +108,8 @@ import '../models/WaasPolicyRuleType.js';
108
108
  import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
109
109
  import { WaasVerifyApiKeyResponseFromJSON } from '../models/WaasVerifyApiKeyResponse.js';
110
110
  import { WaasWalletResponseFromJSON } from '../models/WaasWalletResponse.js';
111
+ import { WaasWalletSignaturePolicyTmpCreateRequestToJSON } from '../models/WaasWalletSignaturePolicyTmpCreateRequest.js';
112
+ import { WaasWalletSignaturePolicyTmpResponseFromJSON } from '../models/WaasWalletSignaturePolicyTmpResponse.js';
111
113
  import '../models/WalletTransactionType.js';
112
114
 
113
115
  /* tslint:disable */
@@ -261,6 +263,42 @@ class WaasApi extends BaseAPI {
261
263
  return yield response.value();
262
264
  });
263
265
  }
266
+ /**
267
+ * Create a new WAAS signature policy for a wallet
268
+ */
269
+ createWaasSignaturePolicyRaw(requestParameters, initOverrides) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
272
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createWaasSignaturePolicy.');
273
+ }
274
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
275
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling createWaasSignaturePolicy.');
276
+ }
277
+ if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
278
+ throw new RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling createWaasSignaturePolicy.');
279
+ }
280
+ const queryParameters = {};
281
+ const headerParameters = {};
282
+ headerParameters['Content-Type'] = 'application/json';
283
+ const response = yield this.request({
284
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
285
+ method: 'POST',
286
+ headers: headerParameters,
287
+ query: queryParameters,
288
+ body: WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
289
+ }, initOverrides);
290
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
291
+ });
292
+ }
293
+ /**
294
+ * Create a new WAAS signature policy for a wallet
295
+ */
296
+ createWaasSignaturePolicy(requestParameters, initOverrides) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ const response = yield this.createWaasSignaturePolicyRaw(requestParameters, initOverrides);
299
+ return yield response.value();
300
+ });
301
+ }
264
302
  /**
265
303
  * Creates a new WAAS wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
266
304
  * Create a new WAAS for a user given an identifier
@@ -404,6 +442,40 @@ class WaasApi extends BaseAPI {
404
442
  return yield response.value();
405
443
  });
406
444
  }
445
+ /**
446
+ * Delete a WAAS signature policy by walletId and policyId
447
+ */
448
+ deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
449
+ return __awaiter(this, void 0, void 0, function* () {
450
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
451
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
452
+ }
453
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
454
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
455
+ }
456
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
457
+ throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
458
+ }
459
+ const queryParameters = {};
460
+ const headerParameters = {};
461
+ const response = yield this.request({
462
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
463
+ method: 'DELETE',
464
+ headers: headerParameters,
465
+ query: queryParameters,
466
+ }, initOverrides);
467
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
468
+ });
469
+ }
470
+ /**
471
+ * Delete a WAAS signature policy by walletId and policyId
472
+ */
473
+ deleteWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
474
+ return __awaiter(this, void 0, void 0, function* () {
475
+ const response = yield this.deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
476
+ return yield response.value();
477
+ });
478
+ }
407
479
  /**
408
480
  * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
409
481
  * Get delegated access encryption public key for an environment
@@ -526,6 +598,71 @@ class WaasApi extends BaseAPI {
526
598
  return yield response.value();
527
599
  });
528
600
  }
601
+ /**
602
+ * Get all active WAAS signature policies for a wallet
603
+ */
604
+ getWaasSignaturePoliciesRaw(requestParameters, initOverrides) {
605
+ return __awaiter(this, void 0, void 0, function* () {
606
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
607
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicies.');
608
+ }
609
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
610
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicies.');
611
+ }
612
+ const queryParameters = {};
613
+ const headerParameters = {};
614
+ const response = yield this.request({
615
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
616
+ method: 'GET',
617
+ headers: headerParameters,
618
+ query: queryParameters,
619
+ }, initOverrides);
620
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(WaasWalletSignaturePolicyTmpResponseFromJSON));
621
+ });
622
+ }
623
+ /**
624
+ * Get all active WAAS signature policies for a wallet
625
+ */
626
+ getWaasSignaturePolicies(requestParameters, initOverrides) {
627
+ return __awaiter(this, void 0, void 0, function* () {
628
+ const response = yield this.getWaasSignaturePoliciesRaw(requestParameters, initOverrides);
629
+ return yield response.value();
630
+ });
631
+ }
632
+ /**
633
+ * Get a WAAS signature policy by walletId and policyId
634
+ */
635
+ getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
636
+ return __awaiter(this, void 0, void 0, function* () {
637
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
638
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
639
+ }
640
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
641
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
642
+ }
643
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
644
+ throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
645
+ }
646
+ const queryParameters = {};
647
+ const headerParameters = {};
648
+ const response = yield this.request({
649
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
650
+ method: 'GET',
651
+ headers: headerParameters,
652
+ query: queryParameters,
653
+ }, initOverrides);
654
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
655
+ });
656
+ }
657
+ /**
658
+ * Get a WAAS signature policy by walletId and policyId
659
+ */
660
+ getWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
661
+ return __awaiter(this, void 0, void 0, function* () {
662
+ const response = yield this.getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
663
+ return yield response.value();
664
+ });
665
+ }
529
666
  /**
530
667
  * Get a specific WAAS wallet by walletId
531
668
  */
@@ -654,6 +791,45 @@ class WaasApi extends BaseAPI {
654
791
  return yield response.value();
655
792
  });
656
793
  }
794
+ /**
795
+ * Update a WAAS signature policy by walletId and policyId
796
+ */
797
+ updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
798
+ return __awaiter(this, void 0, void 0, function* () {
799
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
800
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
801
+ }
802
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
803
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
804
+ }
805
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
806
+ throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
807
+ }
808
+ if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
809
+ throw new RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
810
+ }
811
+ const queryParameters = {};
812
+ const headerParameters = {};
813
+ headerParameters['Content-Type'] = 'application/json';
814
+ const response = yield this.request({
815
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
816
+ method: 'PUT',
817
+ headers: headerParameters,
818
+ query: queryParameters,
819
+ body: WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
820
+ }, initOverrides);
821
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
822
+ });
823
+ }
824
+ /**
825
+ * Update a WAAS signature policy by walletId and policyId
826
+ */
827
+ updateWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
828
+ return __awaiter(this, void 0, void 0, function* () {
829
+ const response = yield this.updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
830
+ return yield response.value();
831
+ });
832
+ }
657
833
  /**
658
834
  * Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
659
835
  * Verify if an API key is valid for a specific environment
package/src/index.cjs CHANGED
@@ -472,6 +472,7 @@ var SdkViewUpdateRequest = require('./models/SdkViewUpdateRequest.cjs');
472
472
  var SdkViewsResponse = require('./models/SdkViewsResponse.cjs');
473
473
  var Session = require('./models/Session.cjs');
474
474
  var SessionsHeatmapResult = require('./models/SessionsHeatmapResult.cjs');
475
+ var SessionsResponse = require('./models/SessionsResponse.cjs');
475
476
  var SessionsTrendResult = require('./models/SessionsTrendResult.cjs');
476
477
  var SignInProviderEnum = require('./models/SignInProviderEnum.cjs');
477
478
  var SignMessageAuthorizationSignature = require('./models/SignMessageAuthorizationSignature.cjs');
@@ -599,6 +600,8 @@ var WaasWallet = require('./models/WaasWallet.cjs');
599
600
  var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
600
601
  var WaasWalletResponse = require('./models/WaasWalletResponse.cjs');
601
602
  var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
603
+ var WaasWalletSignaturePolicyTmpCreateRequest = require('./models/WaasWalletSignaturePolicyTmpCreateRequest.cjs');
604
+ var WaasWalletSignaturePolicyTmpResponse = require('./models/WaasWalletSignaturePolicyTmpResponse.cjs');
602
605
  var Wallet = require('./models/Wallet.cjs');
603
606
  var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
604
607
  var WalletAddressType = require('./models/WalletAddressType.cjs');
@@ -2250,6 +2253,9 @@ exports.SessionToJSON = Session.SessionToJSON;
2250
2253
  exports.SessionsHeatmapResultFromJSON = SessionsHeatmapResult.SessionsHeatmapResultFromJSON;
2251
2254
  exports.SessionsHeatmapResultFromJSONTyped = SessionsHeatmapResult.SessionsHeatmapResultFromJSONTyped;
2252
2255
  exports.SessionsHeatmapResultToJSON = SessionsHeatmapResult.SessionsHeatmapResultToJSON;
2256
+ exports.SessionsResponseFromJSON = SessionsResponse.SessionsResponseFromJSON;
2257
+ exports.SessionsResponseFromJSONTyped = SessionsResponse.SessionsResponseFromJSONTyped;
2258
+ exports.SessionsResponseToJSON = SessionsResponse.SessionsResponseToJSON;
2253
2259
  exports.SessionsTrendResultFromJSON = SessionsTrendResult.SessionsTrendResultFromJSON;
2254
2260
  exports.SessionsTrendResultFromJSONTyped = SessionsTrendResult.SessionsTrendResultFromJSONTyped;
2255
2261
  exports.SessionsTrendResultToJSON = SessionsTrendResult.SessionsTrendResultToJSON;
@@ -2715,6 +2721,12 @@ exports.WaasWalletResponseToJSON = WaasWalletResponse.WaasWalletResponseToJSON;
2715
2721
  exports.WaasWalletSettingsFromJSON = WaasWalletSettings.WaasWalletSettingsFromJSON;
2716
2722
  exports.WaasWalletSettingsFromJSONTyped = WaasWalletSettings.WaasWalletSettingsFromJSONTyped;
2717
2723
  exports.WaasWalletSettingsToJSON = WaasWalletSettings.WaasWalletSettingsToJSON;
2724
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSON;
2725
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped;
2726
+ exports.WaasWalletSignaturePolicyTmpCreateRequestToJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON;
2727
+ exports.WaasWalletSignaturePolicyTmpResponseFromJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON;
2728
+ exports.WaasWalletSignaturePolicyTmpResponseFromJSONTyped = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSONTyped;
2729
+ exports.WaasWalletSignaturePolicyTmpResponseToJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseToJSON;
2718
2730
  exports.WalletFromJSON = Wallet.WalletFromJSON;
2719
2731
  exports.WalletFromJSONTyped = Wallet.WalletFromJSONTyped;
2720
2732
  exports.WalletToJSON = Wallet.WalletToJSON;
package/src/index.js CHANGED
@@ -468,6 +468,7 @@ export { SdkViewUpdateRequestFromJSON, SdkViewUpdateRequestFromJSONTyped, SdkVie
468
468
  export { SdkViewsResponseFromJSON, SdkViewsResponseFromJSONTyped, SdkViewsResponseToJSON } from './models/SdkViewsResponse.js';
469
469
  export { SessionFromJSON, SessionFromJSONTyped, SessionToJSON } from './models/Session.js';
470
470
  export { SessionsHeatmapResultFromJSON, SessionsHeatmapResultFromJSONTyped, SessionsHeatmapResultToJSON } from './models/SessionsHeatmapResult.js';
471
+ export { SessionsResponseFromJSON, SessionsResponseFromJSONTyped, SessionsResponseToJSON } from './models/SessionsResponse.js';
471
472
  export { SessionsTrendResultFromJSON, SessionsTrendResultFromJSONTyped, SessionsTrendResultToJSON } from './models/SessionsTrendResult.js';
472
473
  export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJSONTyped, SignInProviderEnumToJSON } from './models/SignInProviderEnum.js';
473
474
  export { SignMessageAuthorizationSignatureFromJSON, SignMessageAuthorizationSignatureFromJSONTyped, SignMessageAuthorizationSignatureToJSON } from './models/SignMessageAuthorizationSignature.js';
@@ -595,6 +596,8 @@ export { WaasWalletFromJSON, WaasWalletFromJSONTyped, WaasWalletToJSON } from '.
595
596
  export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
596
597
  export { WaasWalletResponseFromJSON, WaasWalletResponseFromJSONTyped, WaasWalletResponseToJSON } from './models/WaasWalletResponse.js';
597
598
  export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON } from './models/WaasWalletSettings.js';
599
+ export { WaasWalletSignaturePolicyTmpCreateRequestFromJSON, WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequest.js';
600
+ export { WaasWalletSignaturePolicyTmpResponseFromJSON, WaasWalletSignaturePolicyTmpResponseFromJSONTyped, WaasWalletSignaturePolicyTmpResponseToJSON } from './models/WaasWalletSignaturePolicyTmpResponse.js';
598
601
  export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
599
602
  export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
600
603
  export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
@@ -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),
@@ -35,6 +35,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'shopifyStore': !runtime.exists(json, 'shopifyStore') ? undefined : json['shopifyStore'],
36
36
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
37
37
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
38
+ 'twilioVerifyServiceSid': !runtime.exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
38
39
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
39
40
  'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
40
41
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -79,6 +80,7 @@ function ProviderCreateRequestToJSON(value) {
79
80
  'shopifyStore': value.shopifyStore,
80
81
  'accountSid': value.accountSid,
81
82
  'twilioNumber': value.twilioNumber,
83
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
82
84
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
83
85
  'sendgridIpPoolName': value.sendgridIpPoolName,
84
86
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -112,6 +112,12 @@ export interface ProviderCreateRequest {
112
112
  * @memberof ProviderCreateRequest
113
113
  */
114
114
  twilioNumber?: string;
115
+ /**
116
+ * Twilio Verify Service SID for SMS verification.
117
+ * @type {string}
118
+ * @memberof ProviderCreateRequest
119
+ */
120
+ twilioVerifyServiceSid?: string;
115
121
  /**
116
122
  *
117
123
  * @type {Array<SmsCountryCode>}
@@ -31,6 +31,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'shopifyStore': !exists(json, 'shopifyStore') ? undefined : json['shopifyStore'],
32
32
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
33
33
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
34
+ 'twilioVerifyServiceSid': !exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
34
35
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
35
36
  'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
36
37
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -75,6 +76,7 @@ function ProviderCreateRequestToJSON(value) {
75
76
  'shopifyStore': value.shopifyStore,
76
77
  'accountSid': value.accountSid,
77
78
  'twilioNumber': value.twilioNumber,
79
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
78
80
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
79
81
  'sendgridIpPoolName': value.sendgridIpPoolName,
80
82
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -33,6 +33,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
34
34
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
35
35
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
36
+ 'twilioVerifyServiceSid': !runtime.exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
36
37
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
37
38
  'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
38
39
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -75,6 +76,7 @@ function ProviderUpdateRequestToJSON(value) {
75
76
  'domain': value.domain,
76
77
  'accountSid': value.accountSid,
77
78
  'twilioNumber': value.twilioNumber,
79
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
78
80
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
79
81
  'sendgridIpPoolName': value.sendgridIpPoolName,
80
82
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -105,6 +105,12 @@ export interface ProviderUpdateRequest {
105
105
  * @memberof ProviderUpdateRequest
106
106
  */
107
107
  twilioNumber?: string;
108
+ /**
109
+ * Twilio Verify Service SID for SMS verification.
110
+ * @type {string}
111
+ * @memberof ProviderUpdateRequest
112
+ */
113
+ twilioVerifyServiceSid?: string;
108
114
  /**
109
115
  *
110
116
  * @type {Array<SmsCountryCode>}
@@ -29,6 +29,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'domain': !exists(json, 'domain') ? undefined : json['domain'],
30
30
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
31
31
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
32
+ 'twilioVerifyServiceSid': !exists(json, 'twilioVerifyServiceSid') ? undefined : json['twilioVerifyServiceSid'],
32
33
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
33
34
  'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
34
35
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
@@ -71,6 +72,7 @@ function ProviderUpdateRequestToJSON(value) {
71
72
  'domain': value.domain,
72
73
  'accountSid': value.accountSid,
73
74
  'twilioNumber': value.twilioNumber,
75
+ 'twilioVerifyServiceSid': value.twilioVerifyServiceSid,
74
76
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
75
77
  'sendgridIpPoolName': value.sendgridIpPoolName,
76
78
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Session = require('./Session.cjs');
6
+
7
+ /* tslint:disable */
8
+ function SessionsResponseFromJSON(json) {
9
+ return SessionsResponseFromJSONTyped(json);
10
+ }
11
+ function SessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'sessions': (json['sessions'].map(Session.SessionFromJSON)),
17
+ };
18
+ }
19
+ function SessionsResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'sessions': (value.sessions.map(Session.SessionToJSON)),
28
+ };
29
+ }
30
+
31
+ exports.SessionsResponseFromJSON = SessionsResponseFromJSON;
32
+ exports.SessionsResponseFromJSONTyped = SessionsResponseFromJSONTyped;
33
+ exports.SessionsResponseToJSON = SessionsResponseToJSON;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Session } from './Session';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SessionsResponse
17
+ */
18
+ export interface SessionsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Session>}
22
+ * @memberof SessionsResponse
23
+ */
24
+ sessions: Array<Session>;
25
+ }
26
+ export declare function SessionsResponseFromJSON(json: any): SessionsResponse;
27
+ export declare function SessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionsResponse;
28
+ export declare function SessionsResponseToJSON(value?: SessionsResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { SessionFromJSON, SessionToJSON } from './Session.js';
2
+
3
+ /* tslint:disable */
4
+ function SessionsResponseFromJSON(json) {
5
+ return SessionsResponseFromJSONTyped(json);
6
+ }
7
+ function SessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'sessions': (json['sessions'].map(SessionFromJSON)),
13
+ };
14
+ }
15
+ function SessionsResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'sessions': (value.sessions.map(SessionToJSON)),
24
+ };
25
+ }
26
+
27
+ export { SessionsResponseFromJSON, SessionsResponseFromJSONTyped, SessionsResponseToJSON };
@@ -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
 
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var WaasChainEnum = require('./WaasChainEnum.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasWalletSignaturePolicyTmpCreateRequestFromJSON(json) {
9
+ return WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json);
10
+ }
11
+ function WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
17
+ 'toAddresses': json['toAddresses'],
18
+ 'tokenAddresses': json['tokenAddresses'],
19
+ 'timeLimit': json['timeLimit'],
20
+ 'maxAmount': json['maxAmount'],
21
+ };
22
+ }
23
+ function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
32
+ 'toAddresses': value.toAddresses,
33
+ 'tokenAddresses': value.tokenAddresses,
34
+ 'timeLimit': value.timeLimit,
35
+ 'maxAmount': value.maxAmount,
36
+ };
37
+ }
38
+
39
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSON = WaasWalletSignaturePolicyTmpCreateRequestFromJSON;
40
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped;
41
+ exports.WaasWalletSignaturePolicyTmpCreateRequestToJSON = WaasWalletSignaturePolicyTmpCreateRequestToJSON;