@dynamic-labs/sdk-api-core 0.0.1039 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.1039",
3
+ "version": "0.0.1040",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -15,14 +15,11 @@ require('../models/AuthenticatorAttachment.cjs');
15
15
  require('../models/ResidentKeyRequirement.cjs');
16
16
  require('../models/UserVerificationRequirement.cjs');
17
17
  require('../models/AuthenticatorTransportProtocol.cjs');
18
- var BackupKeySharesToLocationRequest = require('../models/BackupKeySharesToLocationRequest.cjs');
19
- var BackupKeySharesToLocationResponse = require('../models/BackupKeySharesToLocationResponse.cjs');
20
18
  require('../models/BackupKeySharesToLocationsPendingResponse.cjs');
21
19
  var BackupKeySharesToLocationsRequest = require('../models/BackupKeySharesToLocationsRequest.cjs');
22
20
  require('../models/ThresholdSignatureScheme.cjs');
23
21
  require('../models/WaasBackupOptionsEnum.cjs');
24
22
  var BackupKeySharesToLocationsResponse = require('../models/BackupKeySharesToLocationsResponse.cjs');
25
- var BackupMultipleClientKeySharesResponse = require('../models/BackupMultipleClientKeySharesResponse.cjs');
26
23
  require('../models/JwtVerifiedCredentialFormatEnum.cjs');
27
24
  require('../models/ProviderEnum.cjs');
28
25
  require('../models/WalletAddressType.cjs');
@@ -672,135 +669,6 @@ class SDKApi extends runtime.BaseAPI {
672
669
  async authenticatePasskeyOptions(requestParameters, initOverrides) {
673
670
  await this.authenticatePasskeyOptionsRaw(requestParameters, initOverrides);
674
671
  }
675
- /**
676
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
677
- * Back up keyshares to Google Drive
678
- */
679
- async backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides) {
680
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
681
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDrive.');
682
- }
683
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
684
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDrive.');
685
- }
686
- const queryParameters = {};
687
- const headerParameters = {};
688
- if (this.configuration && this.configuration.accessToken) {
689
- const token = this.configuration.accessToken;
690
- const tokenString = await token("bearerAuth", []);
691
- if (tokenString) {
692
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
693
- }
694
- }
695
- const response = await this.request({
696
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
697
- method: 'POST',
698
- headers: headerParameters,
699
- query: queryParameters,
700
- }, initOverrides);
701
- return new runtime.JSONApiResponse(response, (jsonValue) => BackupMultipleClientKeySharesResponse.BackupMultipleClientKeySharesResponseFromJSON(jsonValue));
702
- }
703
- /**
704
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
705
- * Back up keyshares to Google Drive
706
- */
707
- async backupKeySharesToGoogleDrive(requestParameters, initOverrides) {
708
- const response = await this.backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides);
709
- return await response.value();
710
- }
711
- /**
712
- * Options call for this endpoint
713
- */
714
- async backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides) {
715
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
716
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
717
- }
718
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
719
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
720
- }
721
- const queryParameters = {};
722
- const headerParameters = {};
723
- const response = await this.request({
724
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
725
- method: 'OPTIONS',
726
- headers: headerParameters,
727
- query: queryParameters,
728
- }, initOverrides);
729
- return new runtime.VoidApiResponse(response);
730
- }
731
- /**
732
- * Options call for this endpoint
733
- */
734
- async backupKeySharesToGoogleDriveOptions(requestParameters, initOverrides) {
735
- await this.backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides);
736
- }
737
- /**
738
- * Records a backup action and event for the specified location without performing the actual backup.
739
- * Create backup action and event for a specified location without performing actual backup
740
- */
741
- async backupKeySharesToLocationRaw(requestParameters, initOverrides) {
742
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
743
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocation.');
744
- }
745
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
746
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocation.');
747
- }
748
- if (requestParameters.backupKeySharesToLocationRequest === null || requestParameters.backupKeySharesToLocationRequest === undefined) {
749
- throw new runtime.RequiredError('backupKeySharesToLocationRequest', 'Required parameter requestParameters.backupKeySharesToLocationRequest was null or undefined when calling backupKeySharesToLocation.');
750
- }
751
- const queryParameters = {};
752
- const headerParameters = {};
753
- headerParameters['Content-Type'] = 'application/json';
754
- if (this.configuration && this.configuration.accessToken) {
755
- const token = this.configuration.accessToken;
756
- const tokenString = await token("bearerAuth", []);
757
- if (tokenString) {
758
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
759
- }
760
- }
761
- const response = await this.request({
762
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
763
- method: 'POST',
764
- headers: headerParameters,
765
- query: queryParameters,
766
- body: BackupKeySharesToLocationRequest.BackupKeySharesToLocationRequestToJSON(requestParameters.backupKeySharesToLocationRequest),
767
- }, initOverrides);
768
- return new runtime.JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationResponse.BackupKeySharesToLocationResponseFromJSON(jsonValue));
769
- }
770
- /**
771
- * Records a backup action and event for the specified location without performing the actual backup.
772
- * Create backup action and event for a specified location without performing actual backup
773
- */
774
- async backupKeySharesToLocation(requestParameters, initOverrides) {
775
- const response = await this.backupKeySharesToLocationRaw(requestParameters, initOverrides);
776
- return await response.value();
777
- }
778
- /**
779
- * Options call for this endpoint
780
- */
781
- async backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides) {
782
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
783
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationOptions.');
784
- }
785
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
786
- throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationOptions.');
787
- }
788
- const queryParameters = {};
789
- const headerParameters = {};
790
- const response = await this.request({
791
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
792
- method: 'OPTIONS',
793
- headers: headerParameters,
794
- query: queryParameters,
795
- }, initOverrides);
796
- return new runtime.VoidApiResponse(response);
797
- }
798
- /**
799
- * Options call for this endpoint
800
- */
801
- async backupKeySharesToLocationOptions(requestParameters, initOverrides) {
802
- await this.backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides);
803
- }
804
672
  /**
805
673
  * Records backup actions and events for multiple locations without performing the actual backups.
806
674
  * Create backup action and event for multiple locations without performing actual backup