@dynamic-labs/sdk-api-core 0.0.1039 → 0.0.1041

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 (35) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +3 -134
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +1 -54
  5. package/src/apis/SDKApi.js +3 -134
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/apis/WaasApi.cjs +3 -2
  8. package/src/apis/WaasApi.cjs.map +1 -1
  9. package/src/apis/WaasApi.js +3 -2
  10. package/src/apis/WaasApi.js.map +1 -1
  11. package/src/index.cjs +4 -12
  12. package/src/index.cjs.map +1 -1
  13. package/src/index.js +1 -4
  14. package/src/index.js.map +1 -1
  15. package/src/models/BackupKeySharesToLocationsRequestLocations.cjs +11 -0
  16. package/src/models/BackupKeySharesToLocationsRequestLocations.cjs.map +1 -1
  17. package/src/models/BackupKeySharesToLocationsRequestLocations.d.ts +19 -0
  18. package/src/models/BackupKeySharesToLocationsRequestLocations.js +12 -1
  19. package/src/models/BackupKeySharesToLocationsRequestLocations.js.map +1 -1
  20. package/src/models/index.d.ts +0 -3
  21. package/src/models/BackupKeySharesToLocationRequest.cjs +0 -33
  22. package/src/models/BackupKeySharesToLocationRequest.cjs.map +0 -1
  23. package/src/models/BackupKeySharesToLocationRequest.d.ts +0 -28
  24. package/src/models/BackupKeySharesToLocationRequest.js +0 -27
  25. package/src/models/BackupKeySharesToLocationRequest.js.map +0 -1
  26. package/src/models/BackupKeySharesToLocationResponse.cjs +0 -37
  27. package/src/models/BackupKeySharesToLocationResponse.cjs.map +0 -1
  28. package/src/models/BackupKeySharesToLocationResponse.d.ts +0 -40
  29. package/src/models/BackupKeySharesToLocationResponse.js +0 -31
  30. package/src/models/BackupKeySharesToLocationResponse.js.map +0 -1
  31. package/src/models/BackupMultipleClientKeySharesResponse.cjs +0 -33
  32. package/src/models/BackupMultipleClientKeySharesResponse.cjs.map +0 -1
  33. package/src/models/BackupMultipleClientKeySharesResponse.d.ts +0 -28
  34. package/src/models/BackupMultipleClientKeySharesResponse.js +0 -27
  35. package/src/models/BackupMultipleClientKeySharesResponse.js.map +0 -1
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
13
+ import { Account, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
14
14
  export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  transactionId: string;
@@ -63,23 +63,6 @@ export interface AuthenticatePasskeyOptionsRequest {
63
63
  environmentId: string;
64
64
  relatedOriginRpId?: string;
65
65
  }
66
- export interface BackupKeySharesToGoogleDriveRequest {
67
- environmentId: string;
68
- walletId: string;
69
- }
70
- export interface BackupKeySharesToGoogleDriveOptionsRequest {
71
- environmentId: string;
72
- walletId: string;
73
- }
74
- export interface BackupKeySharesToLocationOperationRequest {
75
- environmentId: string;
76
- walletId: string;
77
- backupKeySharesToLocationRequest: BackupKeySharesToLocationRequest;
78
- }
79
- export interface BackupKeySharesToLocationOptionsRequest {
80
- environmentId: string;
81
- walletId: string;
82
- }
83
66
  export interface BackupKeySharesToLocationsOperationRequest {
84
67
  environmentId: string;
85
68
  walletId: string;
@@ -1479,42 +1462,6 @@ export declare class SDKApi extends runtime.BaseAPI {
1479
1462
  * Options call for this endpoint
1480
1463
  */
1481
1464
  authenticatePasskeyOptions(requestParameters: AuthenticatePasskeyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1482
- /**
1483
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
1484
- * Back up keyshares to Google Drive
1485
- */
1486
- backupKeySharesToGoogleDriveRaw(requestParameters: BackupKeySharesToGoogleDriveRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BackupMultipleClientKeySharesResponse>>;
1487
- /**
1488
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
1489
- * Back up keyshares to Google Drive
1490
- */
1491
- backupKeySharesToGoogleDrive(requestParameters: BackupKeySharesToGoogleDriveRequest, initOverrides?: RequestInit): Promise<BackupMultipleClientKeySharesResponse>;
1492
- /**
1493
- * Options call for this endpoint
1494
- */
1495
- backupKeySharesToGoogleDriveOptionsRaw(requestParameters: BackupKeySharesToGoogleDriveOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1496
- /**
1497
- * Options call for this endpoint
1498
- */
1499
- backupKeySharesToGoogleDriveOptions(requestParameters: BackupKeySharesToGoogleDriveOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1500
- /**
1501
- * Records a backup action and event for the specified location without performing the actual backup.
1502
- * Create backup action and event for a specified location without performing actual backup
1503
- */
1504
- backupKeySharesToLocationRaw(requestParameters: BackupKeySharesToLocationOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BackupKeySharesToLocationResponse>>;
1505
- /**
1506
- * Records a backup action and event for the specified location without performing the actual backup.
1507
- * Create backup action and event for a specified location without performing actual backup
1508
- */
1509
- backupKeySharesToLocation(requestParameters: BackupKeySharesToLocationOperationRequest, initOverrides?: RequestInit): Promise<BackupKeySharesToLocationResponse>;
1510
- /**
1511
- * Options call for this endpoint
1512
- */
1513
- backupKeySharesToLocationOptionsRaw(requestParameters: BackupKeySharesToLocationOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1514
- /**
1515
- * Options call for this endpoint
1516
- */
1517
- backupKeySharesToLocationOptions(requestParameters: BackupKeySharesToLocationOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1518
1465
  /**
1519
1466
  * Records backup actions and events for multiple locations without performing the actual backups.
1520
1467
  * Create backup action and event for multiple locations without performing actual backup
@@ -11,14 +11,11 @@ import '../models/AuthenticatorAttachment.js';
11
11
  import '../models/ResidentKeyRequirement.js';
12
12
  import '../models/UserVerificationRequirement.js';
13
13
  import '../models/AuthenticatorTransportProtocol.js';
14
- import { BackupKeySharesToLocationRequestToJSON } from '../models/BackupKeySharesToLocationRequest.js';
15
- import { BackupKeySharesToLocationResponseFromJSON } from '../models/BackupKeySharesToLocationResponse.js';
16
14
  import '../models/BackupKeySharesToLocationsPendingResponse.js';
17
15
  import { BackupKeySharesToLocationsRequestToJSON } from '../models/BackupKeySharesToLocationsRequest.js';
18
- import '../models/ThresholdSignatureScheme.js';
19
- import '../models/WaasBackupOptionsEnum.js';
16
+ import '../models/BackupKeySharesToLocationsRequestLocations.js';
20
17
  import { BackupKeySharesToLocationsResponseFromJSON } from '../models/BackupKeySharesToLocationsResponse.js';
21
- import { BackupMultipleClientKeySharesResponseFromJSON } from '../models/BackupMultipleClientKeySharesResponse.js';
18
+ import '../models/WaasBackupOptionsEnum.js';
22
19
  import '../models/JwtVerifiedCredentialFormatEnum.js';
23
20
  import '../models/ProviderEnum.js';
24
21
  import '../models/WalletAddressType.js';
@@ -28,6 +25,7 @@ import '../models/HardwareWalletEnum.js';
28
25
  import '../models/PasswordSourceTypeEnum.js';
29
26
  import '../models/ProviderEntryPointVersionEnum.js';
30
27
  import '../models/ProviderKernelVersionEnum.js';
28
+ import '../models/ThresholdSignatureScheme.js';
31
29
  import '../models/WaasWalletShareSetType.js';
32
30
  import '../models/WalletProviderEnum.js';
33
31
  import '../models/MfaBackupCodeAcknowledgement.js';
@@ -668,135 +666,6 @@ class SDKApi extends BaseAPI {
668
666
  async authenticatePasskeyOptions(requestParameters, initOverrides) {
669
667
  await this.authenticatePasskeyOptionsRaw(requestParameters, initOverrides);
670
668
  }
671
- /**
672
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
673
- * Back up keyshares to Google Drive
674
- */
675
- async backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides) {
676
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
677
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDrive.');
678
- }
679
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
680
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDrive.');
681
- }
682
- const queryParameters = {};
683
- const headerParameters = {};
684
- if (this.configuration && this.configuration.accessToken) {
685
- const token = this.configuration.accessToken;
686
- const tokenString = await token("bearerAuth", []);
687
- if (tokenString) {
688
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
689
- }
690
- }
691
- const response = await this.request({
692
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
693
- method: 'POST',
694
- headers: headerParameters,
695
- query: queryParameters,
696
- }, initOverrides);
697
- return new JSONApiResponse(response, (jsonValue) => BackupMultipleClientKeySharesResponseFromJSON(jsonValue));
698
- }
699
- /**
700
- * Backs up the client key shares for the specified WAAS wallet to Google Drive.
701
- * Back up keyshares to Google Drive
702
- */
703
- async backupKeySharesToGoogleDrive(requestParameters, initOverrides) {
704
- const response = await this.backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides);
705
- return await response.value();
706
- }
707
- /**
708
- * Options call for this endpoint
709
- */
710
- async backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides) {
711
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
712
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
713
- }
714
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
715
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
716
- }
717
- const queryParameters = {};
718
- const headerParameters = {};
719
- const response = await this.request({
720
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
721
- method: 'OPTIONS',
722
- headers: headerParameters,
723
- query: queryParameters,
724
- }, initOverrides);
725
- return new VoidApiResponse(response);
726
- }
727
- /**
728
- * Options call for this endpoint
729
- */
730
- async backupKeySharesToGoogleDriveOptions(requestParameters, initOverrides) {
731
- await this.backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides);
732
- }
733
- /**
734
- * Records a backup action and event for the specified location without performing the actual backup.
735
- * Create backup action and event for a specified location without performing actual backup
736
- */
737
- async backupKeySharesToLocationRaw(requestParameters, initOverrides) {
738
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
739
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocation.');
740
- }
741
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
742
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocation.');
743
- }
744
- if (requestParameters.backupKeySharesToLocationRequest === null || requestParameters.backupKeySharesToLocationRequest === undefined) {
745
- throw new RequiredError('backupKeySharesToLocationRequest', 'Required parameter requestParameters.backupKeySharesToLocationRequest was null or undefined when calling backupKeySharesToLocation.');
746
- }
747
- const queryParameters = {};
748
- const headerParameters = {};
749
- headerParameters['Content-Type'] = 'application/json';
750
- if (this.configuration && this.configuration.accessToken) {
751
- const token = this.configuration.accessToken;
752
- const tokenString = await token("bearerAuth", []);
753
- if (tokenString) {
754
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
755
- }
756
- }
757
- const response = await this.request({
758
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
759
- method: 'POST',
760
- headers: headerParameters,
761
- query: queryParameters,
762
- body: BackupKeySharesToLocationRequestToJSON(requestParameters.backupKeySharesToLocationRequest),
763
- }, initOverrides);
764
- return new JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationResponseFromJSON(jsonValue));
765
- }
766
- /**
767
- * Records a backup action and event for the specified location without performing the actual backup.
768
- * Create backup action and event for a specified location without performing actual backup
769
- */
770
- async backupKeySharesToLocation(requestParameters, initOverrides) {
771
- const response = await this.backupKeySharesToLocationRaw(requestParameters, initOverrides);
772
- return await response.value();
773
- }
774
- /**
775
- * Options call for this endpoint
776
- */
777
- async backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides) {
778
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
779
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationOptions.');
780
- }
781
- if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
782
- throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationOptions.');
783
- }
784
- const queryParameters = {};
785
- const headerParameters = {};
786
- const response = await this.request({
787
- path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/location`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
788
- method: 'OPTIONS',
789
- headers: headerParameters,
790
- query: queryParameters,
791
- }, initOverrides);
792
- return new VoidApiResponse(response);
793
- }
794
- /**
795
- * Options call for this endpoint
796
- */
797
- async backupKeySharesToLocationOptions(requestParameters, initOverrides) {
798
- await this.backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides);
799
- }
800
669
  /**
801
670
  * Records backup actions and events for multiple locations without performing the actual backups.
802
671
  * Create backup action and event for multiple locations without performing actual backup