@dynamic-labs/sdk-api 0.0.1038 → 0.0.1040

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.
Files changed (102) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +1 -1
  3. package/src/apis/AdminActionsApi.js +1 -1
  4. package/src/apis/AllowlistsApi.cjs +1 -1
  5. package/src/apis/AllowlistsApi.js +1 -1
  6. package/src/apis/AnalyticsApi.cjs +1 -1
  7. package/src/apis/AnalyticsApi.js +1 -1
  8. package/src/apis/AuthorizedClientsApi.cjs +1 -1
  9. package/src/apis/AuthorizedClientsApi.js +1 -1
  10. package/src/apis/ChainalysisApi.cjs +1 -1
  11. package/src/apis/ChainalysisApi.js +1 -1
  12. package/src/apis/ChainsApi.cjs +1 -1
  13. package/src/apis/ChainsApi.js +1 -1
  14. package/src/apis/CheckoutApi.cjs +128 -5
  15. package/src/apis/CheckoutApi.d.ts +61 -4
  16. package/src/apis/CheckoutApi.js +128 -5
  17. package/src/apis/ClientGrantApi.cjs +1 -1
  18. package/src/apis/ClientGrantApi.js +1 -1
  19. package/src/apis/CustomFieldsApi.cjs +1 -1
  20. package/src/apis/CustomFieldsApi.js +1 -1
  21. package/src/apis/CustomHostnamesApi.cjs +1 -1
  22. package/src/apis/CustomHostnamesApi.js +1 -1
  23. package/src/apis/CustomNetworksApi.cjs +1 -1
  24. package/src/apis/CustomNetworksApi.js +1 -1
  25. package/src/apis/DeeplinkUrlsApi.cjs +1 -1
  26. package/src/apis/DeeplinkUrlsApi.js +1 -1
  27. package/src/apis/EnvironmentsApi.cjs +1 -1
  28. package/src/apis/EnvironmentsApi.js +1 -1
  29. package/src/apis/EventsApi.cjs +1 -1
  30. package/src/apis/EventsApi.js +1 -1
  31. package/src/apis/ExchangesApi.cjs +1 -1
  32. package/src/apis/ExchangesApi.js +1 -1
  33. package/src/apis/ExportsApi.cjs +1 -1
  34. package/src/apis/ExportsApi.js +1 -1
  35. package/src/apis/ExternalJwtApi.cjs +1 -1
  36. package/src/apis/ExternalJwtApi.js +1 -1
  37. package/src/apis/GatesApi.cjs +1 -1
  38. package/src/apis/GatesApi.js +1 -1
  39. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -1
  40. package/src/apis/GlobalWalletAccessControlApi.js +1 -1
  41. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -1
  42. package/src/apis/GlobalWalletConnectionsApi.js +1 -1
  43. package/src/apis/GlobalWalletsApi.cjs +1 -1
  44. package/src/apis/GlobalWalletsApi.js +1 -1
  45. package/src/apis/InvitesApi.cjs +1 -1
  46. package/src/apis/InvitesApi.js +1 -1
  47. package/src/apis/MembersApi.cjs +1 -1
  48. package/src/apis/MembersApi.js +1 -1
  49. package/src/apis/MfaSettingsApi.cjs +1 -1
  50. package/src/apis/MfaSettingsApi.js +1 -1
  51. package/src/apis/NameServicesApi.cjs +1 -1
  52. package/src/apis/NameServicesApi.js +1 -1
  53. package/src/apis/OrganizationSettingsApi.cjs +1 -1
  54. package/src/apis/OrganizationSettingsApi.js +1 -1
  55. package/src/apis/OrganizationsApi.cjs +1 -1
  56. package/src/apis/OrganizationsApi.js +1 -1
  57. package/src/apis/OriginsApi.cjs +1 -1
  58. package/src/apis/OriginsApi.js +1 -1
  59. package/src/apis/ProjectsApi.cjs +1 -1
  60. package/src/apis/ProjectsApi.js +1 -1
  61. package/src/apis/ProvidersApi.cjs +1 -1
  62. package/src/apis/ProvidersApi.js +1 -1
  63. package/src/apis/SDKApi.cjs +434 -129
  64. package/src/apis/SDKApi.d.ts +202 -63
  65. package/src/apis/SDKApi.js +434 -129
  66. package/src/apis/SDKViewsApi.cjs +1 -1
  67. package/src/apis/SDKViewsApi.js +1 -1
  68. package/src/apis/SessionsApi.cjs +1 -1
  69. package/src/apis/SessionsApi.js +1 -1
  70. package/src/apis/TestAccountApi.cjs +1 -1
  71. package/src/apis/TestAccountApi.js +1 -1
  72. package/src/apis/TokensApi.cjs +1 -1
  73. package/src/apis/TokensApi.js +1 -1
  74. package/src/apis/UserApiTokensApi.cjs +1 -1
  75. package/src/apis/UserApiTokensApi.js +1 -1
  76. package/src/apis/UsersApi.cjs +1 -1
  77. package/src/apis/UsersApi.js +1 -1
  78. package/src/apis/VisitsApi.cjs +1 -1
  79. package/src/apis/VisitsApi.js +1 -1
  80. package/src/apis/WaasApi.cjs +1 -1
  81. package/src/apis/WaasApi.js +1 -1
  82. package/src/apis/WalletConnectApi.cjs +1 -1
  83. package/src/apis/WalletConnectApi.js +1 -1
  84. package/src/apis/WalletsApi.cjs +1 -1
  85. package/src/apis/WalletsApi.js +1 -1
  86. package/src/apis/WebhooksApi.cjs +1 -1
  87. package/src/apis/WebhooksApi.js +1 -1
  88. package/src/index.cjs +0 -12
  89. package/src/index.js +0 -3
  90. package/src/models/SanctionsWalletBlockedEventPayload.cjs +1 -0
  91. package/src/models/SanctionsWalletBlockedEventPayload.d.ts +2 -1
  92. package/src/models/SanctionsWalletBlockedEventPayload.js +1 -0
  93. package/src/models/index.d.ts +0 -3
  94. package/src/models/BackupKeySharesToLocationRequest.cjs +0 -33
  95. package/src/models/BackupKeySharesToLocationRequest.d.ts +0 -28
  96. package/src/models/BackupKeySharesToLocationRequest.js +0 -27
  97. package/src/models/BackupKeySharesToLocationResponse.cjs +0 -37
  98. package/src/models/BackupKeySharesToLocationResponse.d.ts +0 -40
  99. package/src/models/BackupKeySharesToLocationResponse.js +0 -31
  100. package/src/models/BackupMultipleClientKeySharesResponse.cjs +0 -33
  101. package/src/models/BackupMultipleClientKeySharesResponse.d.ts +0 -28
  102. package/src/models/BackupMultipleClientKeySharesResponse.js +0 -27
@@ -20,14 +20,11 @@ import '../models/ResidentKeyRequirement.js';
20
20
  import '../models/UserVerificationRequirement.js';
21
21
  import '../models/AuthenticatorTransportProtocol.js';
22
22
  import '../models/ClientTypeEnum.js';
23
- import { BackupKeySharesToLocationRequestToJSON } from '../models/BackupKeySharesToLocationRequest.js';
24
- import { BackupKeySharesToLocationResponseFromJSON } from '../models/BackupKeySharesToLocationResponse.js';
25
23
  import '../models/BackupKeySharesToLocationsPendingResponse.js';
26
24
  import { BackupKeySharesToLocationsRequestToJSON } from '../models/BackupKeySharesToLocationsRequest.js';
27
25
  import { BackupKeySharesToLocationsResponseFromJSON } from '../models/BackupKeySharesToLocationsResponse.js';
28
26
  import '../models/WaasBackupOptionsEnum.js';
29
27
  import '../models/ThresholdSignatureScheme.js';
30
- import { BackupMultipleClientKeySharesResponseFromJSON } from '../models/BackupMultipleClientKeySharesResponse.js';
31
28
  import '../models/JwtVerifiedCredentialFormatEnum.js';
32
29
  import '../models/ProviderEnum.js';
33
30
  import '../models/WalletAddressType.js';
@@ -299,6 +296,72 @@ class SDKApi extends BaseAPI {
299
296
  * Sets the source wallet address and chain for an initiated transaction.
300
297
  * Attach a source to a checkout transaction
301
298
  */
299
+ async attachFlowSourceRaw(requestParameters, initOverrides) {
300
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
301
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling attachFlowSource.');
302
+ }
303
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
304
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling attachFlowSource.');
305
+ }
306
+ if (requestParameters.xDynamicCheckoutSessionToken === null || requestParameters.xDynamicCheckoutSessionToken === undefined) {
307
+ throw new RequiredError('xDynamicCheckoutSessionToken', 'Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling attachFlowSource.');
308
+ }
309
+ if (requestParameters.attachSourceRequest === null || requestParameters.attachSourceRequest === undefined) {
310
+ throw new RequiredError('attachSourceRequest', 'Required parameter requestParameters.attachSourceRequest was null or undefined when calling attachFlowSource.');
311
+ }
312
+ const queryParameters = {};
313
+ const headerParameters = {};
314
+ headerParameters['Content-Type'] = 'application/json';
315
+ if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
316
+ headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
317
+ }
318
+ const response = await this.request({
319
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/source`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
320
+ method: 'POST',
321
+ headers: headerParameters,
322
+ query: queryParameters,
323
+ body: AttachSourceRequestToJSON(requestParameters.attachSourceRequest),
324
+ }, initOverrides);
325
+ return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
326
+ }
327
+ /**
328
+ * Sets the source wallet address and chain for an initiated transaction.
329
+ * Attach a source to a checkout transaction
330
+ */
331
+ async attachFlowSource(requestParameters, initOverrides) {
332
+ const response = await this.attachFlowSourceRaw(requestParameters, initOverrides);
333
+ return await response.value();
334
+ }
335
+ /**
336
+ * Options call for this endpoint
337
+ */
338
+ async attachFlowSourceOptionsRaw(requestParameters, initOverrides) {
339
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
340
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling attachFlowSourceOptions.');
341
+ }
342
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
343
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling attachFlowSourceOptions.');
344
+ }
345
+ const queryParameters = {};
346
+ const headerParameters = {};
347
+ const response = await this.request({
348
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/source`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
349
+ method: 'OPTIONS',
350
+ headers: headerParameters,
351
+ query: queryParameters,
352
+ }, initOverrides);
353
+ return new VoidApiResponse(response);
354
+ }
355
+ /**
356
+ * Options call for this endpoint
357
+ */
358
+ async attachFlowSourceOptions(requestParameters, initOverrides) {
359
+ await this.attachFlowSourceOptionsRaw(requestParameters, initOverrides);
360
+ }
361
+ /**
362
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/source instead. Sets the source wallet address and chain for an initiated transaction.
363
+ * Attach a source to a checkout transaction
364
+ */
302
365
  async attachSourceRaw(requestParameters, initOverrides) {
303
366
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
304
367
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling attachSource.');
@@ -328,7 +391,7 @@ class SDKApi extends BaseAPI {
328
391
  return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
329
392
  }
330
393
  /**
331
- * Sets the source wallet address and chain for an initiated transaction.
394
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/source instead. Sets the source wallet address and chain for an initiated transaction.
332
395
  * Attach a source to a checkout transaction
333
396
  */
334
397
  async attachSource(requestParameters, initOverrides) {
@@ -632,18 +695,22 @@ class SDKApi extends BaseAPI {
632
695
  await this.authenticatePasskeyOptionsRaw(requestParameters, initOverrides);
633
696
  }
634
697
  /**
635
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
636
- * Back up keyshares to Google Drive
698
+ * Records backup actions and events for multiple locations without performing the actual backups.
699
+ * Create backup action and event for multiple locations without performing actual backup
637
700
  */
638
- async backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides) {
701
+ async backupKeySharesToLocationsRaw(requestParameters, initOverrides) {
639
702
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
640
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDrive.');
703
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocations.');
641
704
  }
642
705
  if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
643
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDrive.');
706
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocations.');
707
+ }
708
+ if (requestParameters.backupKeySharesToLocationsRequest === null || requestParameters.backupKeySharesToLocationsRequest === undefined) {
709
+ throw new RequiredError('backupKeySharesToLocationsRequest', 'Required parameter requestParameters.backupKeySharesToLocationsRequest was null or undefined when calling backupKeySharesToLocations.');
644
710
  }
645
711
  const queryParameters = {};
646
712
  const headerParameters = {};
713
+ headerParameters['Content-Type'] = 'application/json';
647
714
  if (this.configuration && this.configuration.accessToken) {
648
715
  const token = this.configuration.accessToken;
649
716
  const tokenString = await token("bearerAuth", []);
@@ -652,35 +719,36 @@ class SDKApi extends BaseAPI {
652
719
  }
653
720
  }
654
721
  const response = await this.request({
655
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
722
+ path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
656
723
  method: 'POST',
657
724
  headers: headerParameters,
658
725
  query: queryParameters,
726
+ body: BackupKeySharesToLocationsRequestToJSON(requestParameters.backupKeySharesToLocationsRequest),
659
727
  }, initOverrides);
660
- return new JSONApiResponse(response, (jsonValue) => BackupMultipleClientKeySharesResponseFromJSON(jsonValue));
728
+ return new JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationsResponseFromJSON(jsonValue));
661
729
  }
662
730
  /**
663
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
664
- * Back up keyshares to Google Drive
731
+ * Records backup actions and events for multiple locations without performing the actual backups.
732
+ * Create backup action and event for multiple locations without performing actual backup
665
733
  */
666
- async backupKeySharesToGoogleDrive(requestParameters, initOverrides) {
667
- const response = await this.backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides);
734
+ async backupKeySharesToLocations(requestParameters, initOverrides) {
735
+ const response = await this.backupKeySharesToLocationsRaw(requestParameters, initOverrides);
668
736
  return await response.value();
669
737
  }
670
738
  /**
671
739
  * Options call for this endpoint
672
740
  */
673
- async backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides) {
741
+ async backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides) {
674
742
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
675
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
743
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationsOptions.');
676
744
  }
677
745
  if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
678
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
746
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationsOptions.');
679
747
  }
680
748
  const queryParameters = {};
681
749
  const headerParameters = {};
682
750
  const response = await this.request({
683
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
751
+ path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
684
752
  method: 'OPTIONS',
685
753
  headers: headerParameters,
686
754
  query: queryParameters,
@@ -690,64 +758,49 @@ class SDKApi extends BaseAPI {
690
758
  /**
691
759
  * Options call for this endpoint
692
760
  */
693
- async backupKeySharesToGoogleDriveOptions(requestParameters, initOverrides) {
694
- await this.backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides);
761
+ async backupKeySharesToLocationsOptions(requestParameters, initOverrides) {
762
+ await this.backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides);
695
763
  }
696
764
  /**
697
- * Records a backup action and event for the specified location without performing the actual backup.
698
- * Create backup action and event for a specified location without performing actual backup
765
+ * Options call for this endpoint
699
766
  */
700
- async backupKeySharesToLocationRaw(requestParameters, initOverrides) {
767
+ async broadcastCheckoutTransactionOptionsRaw(requestParameters, initOverrides) {
701
768
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
702
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocation.');
703
- }
704
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
705
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocation.');
769
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling broadcastCheckoutTransactionOptions.');
706
770
  }
707
- if (requestParameters.backupKeySharesToLocationRequest === null || requestParameters.backupKeySharesToLocationRequest === undefined) {
708
- throw new RequiredError('backupKeySharesToLocationRequest', 'Required parameter requestParameters.backupKeySharesToLocationRequest was null or undefined when calling backupKeySharesToLocation.');
771
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
772
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling broadcastCheckoutTransactionOptions.');
709
773
  }
710
774
  const queryParameters = {};
711
775
  const headerParameters = {};
712
- headerParameters['Content-Type'] = 'application/json';
713
- if (this.configuration && this.configuration.accessToken) {
714
- const token = this.configuration.accessToken;
715
- const tokenString = await token("bearerAuth", []);
716
- if (tokenString) {
717
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
718
- }
719
- }
720
776
  const response = await this.request({
721
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
722
- method: 'POST',
777
+ path: `/sdk/{environmentId}/transactions/{transactionId}/broadcast`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
778
+ method: 'OPTIONS',
723
779
  headers: headerParameters,
724
780
  query: queryParameters,
725
- body: BackupKeySharesToLocationRequestToJSON(requestParameters.backupKeySharesToLocationRequest),
726
781
  }, initOverrides);
727
- return new JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationResponseFromJSON(jsonValue));
782
+ return new VoidApiResponse(response);
728
783
  }
729
784
  /**
730
- * Records a backup action and event for the specified location without performing the actual backup.
731
- * Create backup action and event for a specified location without performing actual backup
785
+ * Options call for this endpoint
732
786
  */
733
- async backupKeySharesToLocation(requestParameters, initOverrides) {
734
- const response = await this.backupKeySharesToLocationRaw(requestParameters, initOverrides);
735
- return await response.value();
787
+ async broadcastCheckoutTransactionOptions(requestParameters, initOverrides) {
788
+ await this.broadcastCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
736
789
  }
737
790
  /**
738
791
  * Options call for this endpoint
739
792
  */
740
- async backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides) {
793
+ async broadcastFlowTransactionOptionsRaw(requestParameters, initOverrides) {
741
794
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
742
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationOptions.');
795
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling broadcastFlowTransactionOptions.');
743
796
  }
744
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
745
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationOptions.');
797
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
798
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling broadcastFlowTransactionOptions.');
746
799
  }
747
800
  const queryParameters = {};
748
801
  const headerParameters = {};
749
802
  const response = await this.request({
750
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
803
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/broadcast`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
751
804
  method: 'OPTIONS',
752
805
  headers: headerParameters,
753
806
  query: queryParameters,
@@ -757,90 +810,58 @@ class SDKApi extends BaseAPI {
757
810
  /**
758
811
  * Options call for this endpoint
759
812
  */
760
- async backupKeySharesToLocationOptions(requestParameters, initOverrides) {
761
- await this.backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides);
813
+ async broadcastFlowTransactionOptions(requestParameters, initOverrides) {
814
+ await this.broadcastFlowTransactionOptionsRaw(requestParameters, initOverrides);
762
815
  }
763
816
  /**
764
- * Records backup actions and events for multiple locations without performing the actual backups.
765
- * Create backup action and event for multiple locations without performing actual backup
817
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
818
+ * Cancel a checkout transaction
766
819
  */
767
- async backupKeySharesToLocationsRaw(requestParameters, initOverrides) {
820
+ async cancelCheckoutTransactionRaw(requestParameters, initOverrides) {
768
821
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
769
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocations.');
822
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling cancelCheckoutTransaction.');
770
823
  }
771
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
772
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocations.');
824
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
825
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling cancelCheckoutTransaction.');
773
826
  }
774
- if (requestParameters.backupKeySharesToLocationsRequest === null || requestParameters.backupKeySharesToLocationsRequest === undefined) {
775
- throw new RequiredError('backupKeySharesToLocationsRequest', 'Required parameter requestParameters.backupKeySharesToLocationsRequest was null or undefined when calling backupKeySharesToLocations.');
827
+ if (requestParameters.xDynamicCheckoutSessionToken === null || requestParameters.xDynamicCheckoutSessionToken === undefined) {
828
+ throw new RequiredError('xDynamicCheckoutSessionToken', 'Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling cancelCheckoutTransaction.');
776
829
  }
777
830
  const queryParameters = {};
778
831
  const headerParameters = {};
779
- headerParameters['Content-Type'] = 'application/json';
780
- if (this.configuration && this.configuration.accessToken) {
781
- const token = this.configuration.accessToken;
782
- const tokenString = await token("bearerAuth", []);
783
- if (tokenString) {
784
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
785
- }
832
+ if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
833
+ headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
786
834
  }
787
835
  const response = await this.request({
788
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
836
+ path: `/sdk/{environmentId}/transactions/{transactionId}/cancel`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
789
837
  method: 'POST',
790
838
  headers: headerParameters,
791
839
  query: queryParameters,
792
- body: BackupKeySharesToLocationsRequestToJSON(requestParameters.backupKeySharesToLocationsRequest),
793
840
  }, initOverrides);
794
- return new JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationsResponseFromJSON(jsonValue));
841
+ return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
795
842
  }
796
843
  /**
797
- * Records backup actions and events for multiple locations without performing the actual backups.
798
- * Create backup action and event for multiple locations without performing actual backup
844
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
845
+ * Cancel a checkout transaction
799
846
  */
800
- async backupKeySharesToLocations(requestParameters, initOverrides) {
801
- const response = await this.backupKeySharesToLocationsRaw(requestParameters, initOverrides);
847
+ async cancelCheckoutTransaction(requestParameters, initOverrides) {
848
+ const response = await this.cancelCheckoutTransactionRaw(requestParameters, initOverrides);
802
849
  return await response.value();
803
850
  }
804
851
  /**
805
852
  * Options call for this endpoint
806
853
  */
807
- async backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides) {
808
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
809
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationsOptions.');
810
- }
811
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
812
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationsOptions.');
813
- }
814
- const queryParameters = {};
815
- const headerParameters = {};
816
- const response = await this.request({
817
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
818
- method: 'OPTIONS',
819
- headers: headerParameters,
820
- query: queryParameters,
821
- }, initOverrides);
822
- return new VoidApiResponse(response);
823
- }
824
- /**
825
- * Options call for this endpoint
826
- */
827
- async backupKeySharesToLocationsOptions(requestParameters, initOverrides) {
828
- await this.backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides);
829
- }
830
- /**
831
- * Options call for this endpoint
832
- */
833
- async broadcastCheckoutTransactionOptionsRaw(requestParameters, initOverrides) {
854
+ async cancelCheckoutTransactionOptionsRaw(requestParameters, initOverrides) {
834
855
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
835
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling broadcastCheckoutTransactionOptions.');
856
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling cancelCheckoutTransactionOptions.');
836
857
  }
837
858
  if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
838
- throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling broadcastCheckoutTransactionOptions.');
859
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling cancelCheckoutTransactionOptions.');
839
860
  }
840
861
  const queryParameters = {};
841
862
  const headerParameters = {};
842
863
  const response = await this.request({
843
- path: `/sdk/{environmentId}/transactions/{transactionId}/broadcast`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
864
+ path: `/sdk/{environmentId}/transactions/{transactionId}/cancel`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
844
865
  method: 'OPTIONS',
845
866
  headers: headerParameters,
846
867
  query: queryParameters,
@@ -850,22 +871,22 @@ class SDKApi extends BaseAPI {
850
871
  /**
851
872
  * Options call for this endpoint
852
873
  */
853
- async broadcastCheckoutTransactionOptions(requestParameters, initOverrides) {
854
- await this.broadcastCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
874
+ async cancelCheckoutTransactionOptions(requestParameters, initOverrides) {
875
+ await this.cancelCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
855
876
  }
856
877
  /**
857
878
  * Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
858
879
  * Cancel a checkout transaction
859
880
  */
860
- async cancelCheckoutTransactionRaw(requestParameters, initOverrides) {
881
+ async cancelFlowTransactionRaw(requestParameters, initOverrides) {
861
882
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
862
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling cancelCheckoutTransaction.');
883
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling cancelFlowTransaction.');
863
884
  }
864
885
  if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
865
- throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling cancelCheckoutTransaction.');
886
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling cancelFlowTransaction.');
866
887
  }
867
888
  if (requestParameters.xDynamicCheckoutSessionToken === null || requestParameters.xDynamicCheckoutSessionToken === undefined) {
868
- throw new RequiredError('xDynamicCheckoutSessionToken', 'Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling cancelCheckoutTransaction.');
889
+ throw new RequiredError('xDynamicCheckoutSessionToken', 'Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling cancelFlowTransaction.');
869
890
  }
870
891
  const queryParameters = {};
871
892
  const headerParameters = {};
@@ -873,7 +894,7 @@ class SDKApi extends BaseAPI {
873
894
  headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
874
895
  }
875
896
  const response = await this.request({
876
- path: `/sdk/{environmentId}/transactions/{transactionId}/cancel`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
897
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/cancel`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
877
898
  method: 'POST',
878
899
  headers: headerParameters,
879
900
  query: queryParameters,
@@ -884,24 +905,24 @@ class SDKApi extends BaseAPI {
884
905
  * Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
885
906
  * Cancel a checkout transaction
886
907
  */
887
- async cancelCheckoutTransaction(requestParameters, initOverrides) {
888
- const response = await this.cancelCheckoutTransactionRaw(requestParameters, initOverrides);
908
+ async cancelFlowTransaction(requestParameters, initOverrides) {
909
+ const response = await this.cancelFlowTransactionRaw(requestParameters, initOverrides);
889
910
  return await response.value();
890
911
  }
891
912
  /**
892
913
  * Options call for this endpoint
893
914
  */
894
- async cancelCheckoutTransactionOptionsRaw(requestParameters, initOverrides) {
915
+ async cancelFlowTransactionOptionsRaw(requestParameters, initOverrides) {
895
916
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
896
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling cancelCheckoutTransactionOptions.');
917
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling cancelFlowTransactionOptions.');
897
918
  }
898
919
  if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
899
- throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling cancelCheckoutTransactionOptions.');
920
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling cancelFlowTransactionOptions.');
900
921
  }
901
922
  const queryParameters = {};
902
923
  const headerParameters = {};
903
924
  const response = await this.request({
904
- path: `/sdk/{environmentId}/transactions/{transactionId}/cancel`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
925
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/cancel`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
905
926
  method: 'OPTIONS',
906
927
  headers: headerParameters,
907
928
  query: queryParameters,
@@ -911,8 +932,8 @@ class SDKApi extends BaseAPI {
911
932
  /**
912
933
  * Options call for this endpoint
913
934
  */
914
- async cancelCheckoutTransactionOptions(requestParameters, initOverrides) {
915
- await this.cancelCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
935
+ async cancelFlowTransactionOptions(requestParameters, initOverrides) {
936
+ await this.cancelFlowTransactionOptionsRaw(requestParameters, initOverrides);
916
937
  }
917
938
  /**
918
939
  * This endpoint proxies requests to `/sdk/{environmentId}/providers/coinbasesocial/redirect` because Coinbase does not allow the string `coinbase` on the redirect URL path
@@ -1249,7 +1270,7 @@ class SDKApi extends BaseAPI {
1249
1270
  return await response.value();
1250
1271
  }
1251
1272
  /**
1252
- * Creates a new checkout transaction for the specified checkout.
1273
+ * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1253
1274
  * Create a checkout transaction
1254
1275
  */
1255
1276
  async createCheckoutTransactionRaw(requestParameters, initOverrides) {
@@ -1275,7 +1296,7 @@ class SDKApi extends BaseAPI {
1275
1296
  return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionCreateResponseFromJSON(jsonValue));
1276
1297
  }
1277
1298
  /**
1278
- * Creates a new checkout transaction for the specified checkout.
1299
+ * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1279
1300
  * Create a checkout transaction
1280
1301
  */
1281
1302
  async createCheckoutTransaction(requestParameters, initOverrides) {
@@ -1499,6 +1520,66 @@ class SDKApi extends BaseAPI {
1499
1520
  async createEmbeddedWalletsOptions(requestParameters, initOverrides) {
1500
1521
  await this.createEmbeddedWalletsOptionsRaw(requestParameters, initOverrides);
1501
1522
  }
1523
+ /**
1524
+ * Creates a new checkout transaction for the specified checkout.
1525
+ * Create a checkout transaction
1526
+ */
1527
+ async createFlowCheckoutTransactionRaw(requestParameters, initOverrides) {
1528
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1529
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createFlowCheckoutTransaction.');
1530
+ }
1531
+ if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
1532
+ throw new RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling createFlowCheckoutTransaction.');
1533
+ }
1534
+ if (requestParameters.checkoutTransactionCreateRequest === null || requestParameters.checkoutTransactionCreateRequest === undefined) {
1535
+ throw new RequiredError('checkoutTransactionCreateRequest', 'Required parameter requestParameters.checkoutTransactionCreateRequest was null or undefined when calling createFlowCheckoutTransaction.');
1536
+ }
1537
+ const queryParameters = {};
1538
+ const headerParameters = {};
1539
+ headerParameters['Content-Type'] = 'application/json';
1540
+ const response = await this.request({
1541
+ path: `/sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
1542
+ method: 'POST',
1543
+ headers: headerParameters,
1544
+ query: queryParameters,
1545
+ body: CheckoutTransactionCreateRequestToJSON(requestParameters.checkoutTransactionCreateRequest),
1546
+ }, initOverrides);
1547
+ return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionCreateResponseFromJSON(jsonValue));
1548
+ }
1549
+ /**
1550
+ * Creates a new checkout transaction for the specified checkout.
1551
+ * Create a checkout transaction
1552
+ */
1553
+ async createFlowCheckoutTransaction(requestParameters, initOverrides) {
1554
+ const response = await this.createFlowCheckoutTransactionRaw(requestParameters, initOverrides);
1555
+ return await response.value();
1556
+ }
1557
+ /**
1558
+ * Options call for this endpoint
1559
+ */
1560
+ async createFlowCheckoutTransactionOptionsRaw(requestParameters, initOverrides) {
1561
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1562
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createFlowCheckoutTransactionOptions.');
1563
+ }
1564
+ if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
1565
+ throw new RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling createFlowCheckoutTransactionOptions.');
1566
+ }
1567
+ const queryParameters = {};
1568
+ const headerParameters = {};
1569
+ const response = await this.request({
1570
+ path: `/sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
1571
+ method: 'OPTIONS',
1572
+ headers: headerParameters,
1573
+ query: queryParameters,
1574
+ }, initOverrides);
1575
+ return new VoidApiResponse(response);
1576
+ }
1577
+ /**
1578
+ * Options call for this endpoint
1579
+ */
1580
+ async createFlowCheckoutTransactionOptions(requestParameters, initOverrides) {
1581
+ await this.createFlowCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
1582
+ }
1502
1583
  /**
1503
1584
  * Creates a new global wallet connection for the authenticated user.
1504
1585
  * Create a global wallet connection
@@ -3552,6 +3633,7 @@ class SDKApi extends BaseAPI {
3552
3633
  await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
3553
3634
  }
3554
3635
  /**
3636
+ * Deprecated: use GET /sdk/{environmentId}/flow/transactions/{transactionId} instead.
3555
3637
  * Get a checkout transaction by ID
3556
3638
  */
3557
3639
  async getCheckoutTransactionRaw(requestParameters, initOverrides) {
@@ -3572,6 +3654,7 @@ class SDKApi extends BaseAPI {
3572
3654
  return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
3573
3655
  }
3574
3656
  /**
3657
+ * Deprecated: use GET /sdk/{environmentId}/flow/transactions/{transactionId} instead.
3575
3658
  * Get a checkout transaction by ID
3576
3659
  */
3577
3660
  async getCheckoutTransaction(requestParameters, initOverrides) {
@@ -4207,6 +4290,59 @@ class SDKApi extends BaseAPI {
4207
4290
  async getExchangeTransferDestinationsOptions(requestParameters, initOverrides) {
4208
4291
  await this.getExchangeTransferDestinationsOptionsRaw(requestParameters, initOverrides);
4209
4292
  }
4293
+ /**
4294
+ * Get a checkout transaction by ID
4295
+ */
4296
+ async getFlowCheckoutTransactionRaw(requestParameters, initOverrides) {
4297
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4298
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowCheckoutTransaction.');
4299
+ }
4300
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
4301
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling getFlowCheckoutTransaction.');
4302
+ }
4303
+ const queryParameters = {};
4304
+ const headerParameters = {};
4305
+ const response = await this.request({
4306
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
4307
+ method: 'GET',
4308
+ headers: headerParameters,
4309
+ query: queryParameters,
4310
+ }, initOverrides);
4311
+ return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
4312
+ }
4313
+ /**
4314
+ * Get a checkout transaction by ID
4315
+ */
4316
+ async getFlowCheckoutTransaction(requestParameters, initOverrides) {
4317
+ const response = await this.getFlowCheckoutTransactionRaw(requestParameters, initOverrides);
4318
+ return await response.value();
4319
+ }
4320
+ /**
4321
+ * Options call for this endpoint
4322
+ */
4323
+ async getFlowCheckoutTransactionOptionsRaw(requestParameters, initOverrides) {
4324
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4325
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowCheckoutTransactionOptions.');
4326
+ }
4327
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
4328
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling getFlowCheckoutTransactionOptions.');
4329
+ }
4330
+ const queryParameters = {};
4331
+ const headerParameters = {};
4332
+ const response = await this.request({
4333
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
4334
+ method: 'OPTIONS',
4335
+ headers: headerParameters,
4336
+ query: queryParameters,
4337
+ }, initOverrides);
4338
+ return new VoidApiResponse(response);
4339
+ }
4340
+ /**
4341
+ * Options call for this endpoint
4342
+ */
4343
+ async getFlowCheckoutTransactionOptions(requestParameters, initOverrides) {
4344
+ await this.getFlowCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
4345
+ }
4210
4346
  /**
4211
4347
  * Returns the global wallet settings configured for the specified environment.
4212
4348
  * Get the global wallet settings for the environment
@@ -6808,7 +6944,7 @@ class SDKApi extends BaseAPI {
6808
6944
  await this.prefetchRaw(requestParameters, initOverrides);
6809
6945
  }
6810
6946
  /**
6811
- * Validates quote freshness and risk clearance, then transitions the transaction to signing state.
6947
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/prepare instead. Validates quote freshness and risk clearance, then transitions the transaction to signing state.
6812
6948
  * Prepare a checkout transaction for signing
6813
6949
  */
6814
6950
  async prepareCheckoutTransactionRaw(requestParameters, initOverrides) {
@@ -6837,7 +6973,7 @@ class SDKApi extends BaseAPI {
6837
6973
  return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
6838
6974
  }
6839
6975
  /**
6840
- * Validates quote freshness and risk clearance, then transitions the transaction to signing state.
6976
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/prepare instead. Validates quote freshness and risk clearance, then transitions the transaction to signing state.
6841
6977
  * Prepare a checkout transaction for signing
6842
6978
  */
6843
6979
  async prepareCheckoutTransaction(requestParameters, initOverrides) {
@@ -6870,6 +7006,69 @@ class SDKApi extends BaseAPI {
6870
7006
  async prepareCheckoutTransactionOptions(requestParameters, initOverrides) {
6871
7007
  await this.prepareCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
6872
7008
  }
7009
+ /**
7010
+ * Validates quote freshness and risk clearance, then transitions the transaction to signing state.
7011
+ * Prepare a checkout transaction for signing
7012
+ */
7013
+ async prepareFlowTransactionRaw(requestParameters, initOverrides) {
7014
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7015
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling prepareFlowTransaction.');
7016
+ }
7017
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
7018
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling prepareFlowTransaction.');
7019
+ }
7020
+ if (requestParameters.xDynamicCheckoutSessionToken === null || requestParameters.xDynamicCheckoutSessionToken === undefined) {
7021
+ throw new RequiredError('xDynamicCheckoutSessionToken', 'Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling prepareFlowTransaction.');
7022
+ }
7023
+ const queryParameters = {};
7024
+ const headerParameters = {};
7025
+ headerParameters['Content-Type'] = 'application/json';
7026
+ if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
7027
+ headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
7028
+ }
7029
+ const response = await this.request({
7030
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/prepare`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
7031
+ method: 'POST',
7032
+ headers: headerParameters,
7033
+ query: queryParameters,
7034
+ body: PrepareSigningRequestToJSON(requestParameters.prepareSigningRequest),
7035
+ }, initOverrides);
7036
+ return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
7037
+ }
7038
+ /**
7039
+ * Validates quote freshness and risk clearance, then transitions the transaction to signing state.
7040
+ * Prepare a checkout transaction for signing
7041
+ */
7042
+ async prepareFlowTransaction(requestParameters, initOverrides) {
7043
+ const response = await this.prepareFlowTransactionRaw(requestParameters, initOverrides);
7044
+ return await response.value();
7045
+ }
7046
+ /**
7047
+ * Options call for this endpoint
7048
+ */
7049
+ async prepareFlowTransactionOptionsRaw(requestParameters, initOverrides) {
7050
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7051
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling prepareFlowTransactionOptions.');
7052
+ }
7053
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
7054
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling prepareFlowTransactionOptions.');
7055
+ }
7056
+ const queryParameters = {};
7057
+ const headerParameters = {};
7058
+ const response = await this.request({
7059
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/prepare`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
7060
+ method: 'OPTIONS',
7061
+ headers: headerParameters,
7062
+ query: queryParameters,
7063
+ }, initOverrides);
7064
+ return new VoidApiResponse(response);
7065
+ }
7066
+ /**
7067
+ * Options call for this endpoint
7068
+ */
7069
+ async prepareFlowTransactionOptions(requestParameters, initOverrides) {
7070
+ await this.prepareFlowTransactionOptionsRaw(requestParameters, initOverrides);
7071
+ }
6873
7072
  /**
6874
7073
  * Publishes SDK analytics events for the given environment.
6875
7074
  * Publish SDK events
@@ -6901,7 +7100,7 @@ class SDKApi extends BaseAPI {
6901
7100
  await this.publishEventRaw(requestParameters, initOverrides);
6902
7101
  }
6903
7102
  /**
6904
- * Fetches a swap quote and stores a snapshot on the transaction.
7103
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
6905
7104
  * Get a quote for a checkout transaction
6906
7105
  */
6907
7106
  async quoteCheckoutTransactionRaw(requestParameters, initOverrides) {
@@ -6933,7 +7132,7 @@ class SDKApi extends BaseAPI {
6933
7132
  return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
6934
7133
  }
6935
7134
  /**
6936
- * Fetches a swap quote and stores a snapshot on the transaction.
7135
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
6937
7136
  * Get a quote for a checkout transaction
6938
7137
  */
6939
7138
  async quoteCheckoutTransaction(requestParameters, initOverrides) {
@@ -6966,6 +7165,72 @@ class SDKApi extends BaseAPI {
6966
7165
  async quoteCheckoutTransactionOptions(requestParameters, initOverrides) {
6967
7166
  await this.quoteCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
6968
7167
  }
7168
+ /**
7169
+ * Fetches a swap quote and stores a snapshot on the transaction.
7170
+ * Get a quote for a checkout transaction
7171
+ */
7172
+ async quoteFlowTransactionRaw(requestParameters, initOverrides) {
7173
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7174
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling quoteFlowTransaction.');
7175
+ }
7176
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
7177
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling quoteFlowTransaction.');
7178
+ }
7179
+ if (requestParameters.xDynamicCheckoutSessionToken === null || requestParameters.xDynamicCheckoutSessionToken === undefined) {
7180
+ throw new RequiredError('xDynamicCheckoutSessionToken', 'Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling quoteFlowTransaction.');
7181
+ }
7182
+ if (requestParameters.quoteRequest === null || requestParameters.quoteRequest === undefined) {
7183
+ throw new RequiredError('quoteRequest', 'Required parameter requestParameters.quoteRequest was null or undefined when calling quoteFlowTransaction.');
7184
+ }
7185
+ const queryParameters = {};
7186
+ const headerParameters = {};
7187
+ headerParameters['Content-Type'] = 'application/json';
7188
+ if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
7189
+ headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
7190
+ }
7191
+ const response = await this.request({
7192
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/quote`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
7193
+ method: 'POST',
7194
+ headers: headerParameters,
7195
+ query: queryParameters,
7196
+ body: QuoteRequestToJSON(requestParameters.quoteRequest),
7197
+ }, initOverrides);
7198
+ return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
7199
+ }
7200
+ /**
7201
+ * Fetches a swap quote and stores a snapshot on the transaction.
7202
+ * Get a quote for a checkout transaction
7203
+ */
7204
+ async quoteFlowTransaction(requestParameters, initOverrides) {
7205
+ const response = await this.quoteFlowTransactionRaw(requestParameters, initOverrides);
7206
+ return await response.value();
7207
+ }
7208
+ /**
7209
+ * Options call for this endpoint
7210
+ */
7211
+ async quoteFlowTransactionOptionsRaw(requestParameters, initOverrides) {
7212
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7213
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling quoteFlowTransactionOptions.');
7214
+ }
7215
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
7216
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling quoteFlowTransactionOptions.');
7217
+ }
7218
+ const queryParameters = {};
7219
+ const headerParameters = {};
7220
+ const response = await this.request({
7221
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/quote`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
7222
+ method: 'OPTIONS',
7223
+ headers: headerParameters,
7224
+ query: queryParameters,
7225
+ }, initOverrides);
7226
+ return new VoidApiResponse(response);
7227
+ }
7228
+ /**
7229
+ * Options call for this endpoint
7230
+ */
7231
+ async quoteFlowTransactionOptions(requestParameters, initOverrides) {
7232
+ await this.quoteFlowTransactionOptionsRaw(requestParameters, initOverrides);
7233
+ }
6969
7234
  /**
6970
7235
  * Options call for this endpoint
6971
7236
  */
@@ -6990,7 +7255,7 @@ class SDKApi extends BaseAPI {
6990
7255
  await this.realtimeAuthOptionsRaw(requestParameters, initOverrides);
6991
7256
  }
6992
7257
  /**
6993
- * Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
7258
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/broadcast instead. Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
6994
7259
  * Record a broadcast for a checkout transaction
6995
7260
  */
6996
7261
  async recordCheckoutBroadcastRaw(requestParameters, initOverrides) {
@@ -7022,13 +7287,53 @@ class SDKApi extends BaseAPI {
7022
7287
  return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
7023
7288
  }
7024
7289
  /**
7025
- * Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
7290
+ * Deprecated: use POST /sdk/{environmentId}/flow/transactions/{transactionId}/broadcast instead. Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
7026
7291
  * Record a broadcast for a checkout transaction
7027
7292
  */
7028
7293
  async recordCheckoutBroadcast(requestParameters, initOverrides) {
7029
7294
  const response = await this.recordCheckoutBroadcastRaw(requestParameters, initOverrides);
7030
7295
  return await response.value();
7031
7296
  }
7297
+ /**
7298
+ * Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
7299
+ * Record a broadcast for a checkout transaction
7300
+ */
7301
+ async recordFlowBroadcastRaw(requestParameters, initOverrides) {
7302
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
7303
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recordFlowBroadcast.');
7304
+ }
7305
+ if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
7306
+ throw new RequiredError('transactionId', 'Required parameter requestParameters.transactionId was null or undefined when calling recordFlowBroadcast.');
7307
+ }
7308
+ if (requestParameters.xDynamicCheckoutSessionToken === null || requestParameters.xDynamicCheckoutSessionToken === undefined) {
7309
+ throw new RequiredError('xDynamicCheckoutSessionToken', 'Required parameter requestParameters.xDynamicCheckoutSessionToken was null or undefined when calling recordFlowBroadcast.');
7310
+ }
7311
+ if (requestParameters.recordBroadcastRequest === null || requestParameters.recordBroadcastRequest === undefined) {
7312
+ throw new RequiredError('recordBroadcastRequest', 'Required parameter requestParameters.recordBroadcastRequest was null or undefined when calling recordFlowBroadcast.');
7313
+ }
7314
+ const queryParameters = {};
7315
+ const headerParameters = {};
7316
+ headerParameters['Content-Type'] = 'application/json';
7317
+ if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
7318
+ headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
7319
+ }
7320
+ const response = await this.request({
7321
+ path: `/sdk/{environmentId}/flow/transactions/{transactionId}/broadcast`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"transactionId"}}`, encodeURIComponent(String(requestParameters.transactionId))),
7322
+ method: 'POST',
7323
+ headers: headerParameters,
7324
+ query: queryParameters,
7325
+ body: RecordBroadcastRequestToJSON(requestParameters.recordBroadcastRequest),
7326
+ }, initOverrides);
7327
+ return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionFromJSON(jsonValue));
7328
+ }
7329
+ /**
7330
+ * Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
7331
+ * Record a broadcast for a checkout transaction
7332
+ */
7333
+ async recordFlowBroadcast(requestParameters, initOverrides) {
7334
+ const response = await this.recordFlowBroadcastRaw(requestParameters, initOverrides);
7335
+ return await response.value();
7336
+ }
7032
7337
  /**
7033
7338
  * Recovers the client key shares for the specified WAAS wallet from backup.
7034
7339
  * Recover WAAS keyshares