@dynamic-labs/sdk-api-core 0.0.725 → 0.0.726
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 +1 -1
- package/src/apis/SDKApi.cjs +76 -1
- package/src/apis/SDKApi.d.ts +26 -1
- package/src/apis/SDKApi.js +76 -1
- package/src/index.cjs +16 -0
- package/src/index.js +4 -0
- package/src/models/BackupKeySharesToLocationsRequest.cjs +33 -0
- package/src/models/BackupKeySharesToLocationsRequest.d.ts +28 -0
- package/src/models/BackupKeySharesToLocationsRequest.js +27 -0
- package/src/models/BackupKeySharesToLocationsRequestLocations.cjs +35 -0
- package/src/models/BackupKeySharesToLocationsRequestLocations.d.ts +34 -0
- package/src/models/BackupKeySharesToLocationsRequestLocations.js +29 -0
- package/src/models/BackupKeySharesToLocationsResponse.cjs +37 -0
- package/src/models/BackupKeySharesToLocationsResponse.d.ts +40 -0
- package/src/models/BackupKeySharesToLocationsResponse.js +31 -0
- package/src/models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.cjs +37 -0
- package/src/models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.d.ts +40 -0
- package/src/models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.js +31 -0
- package/src/models/WalletKeyShareInfo.cjs +4 -12
- package/src/models/WalletKeyShareInfo.d.ts +6 -0
- package/src/models/WalletKeyShareInfo.js +4 -12
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs +2 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.d.ts +6 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.js +2 -0
- package/src/models/index.d.ts +4 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -14,6 +14,9 @@ require('../models/UserVerificationRequirement.cjs');
|
|
|
14
14
|
require('../models/AuthenticatorTransportProtocol.cjs');
|
|
15
15
|
var BackupKeySharesToLocationRequest = require('../models/BackupKeySharesToLocationRequest.cjs');
|
|
16
16
|
var BackupKeySharesToLocationResponse = require('../models/BackupKeySharesToLocationResponse.cjs');
|
|
17
|
+
var BackupKeySharesToLocationsRequest = require('../models/BackupKeySharesToLocationsRequest.cjs');
|
|
18
|
+
require('../models/WaasBackupOptionsEnum.cjs');
|
|
19
|
+
var BackupKeySharesToLocationsResponse = require('../models/BackupKeySharesToLocationsResponse.cjs');
|
|
17
20
|
var BackupMultipleClientKeySharesRequest = require('../models/BackupMultipleClientKeySharesRequest.cjs');
|
|
18
21
|
var BackupMultipleClientKeySharesResponse = require('../models/BackupMultipleClientKeySharesResponse.cjs');
|
|
19
22
|
require('../models/JwtVerifiedCredentialFormatEnum.cjs');
|
|
@@ -121,7 +124,6 @@ var PrefetchRequest = require('../models/PrefetchRequest.cjs');
|
|
|
121
124
|
var ProjectSettings = require('../models/ProjectSettings.cjs');
|
|
122
125
|
require('../models/SignInProviderEnum.cjs');
|
|
123
126
|
require('../models/SocialSignInProviderEnum.cjs');
|
|
124
|
-
require('../models/WaasBackupOptionsEnum.cjs');
|
|
125
127
|
require('../models/SdkViewSectionAlignment.cjs');
|
|
126
128
|
require('../models/SdkViewSectionType.cjs');
|
|
127
129
|
require('../models/SdkViewType.cjs');
|
|
@@ -683,6 +685,79 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
683
685
|
yield this.backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides);
|
|
684
686
|
});
|
|
685
687
|
}
|
|
688
|
+
/**
|
|
689
|
+
* Create backup action and event for multiple locations without performing actual backup
|
|
690
|
+
*/
|
|
691
|
+
backupKeySharesToLocationsRaw(requestParameters, initOverrides) {
|
|
692
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
693
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
694
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocations.');
|
|
695
|
+
}
|
|
696
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
697
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocations.');
|
|
698
|
+
}
|
|
699
|
+
if (requestParameters.backupKeySharesToLocationsRequest === null || requestParameters.backupKeySharesToLocationsRequest === undefined) {
|
|
700
|
+
throw new runtime.RequiredError('backupKeySharesToLocationsRequest', 'Required parameter requestParameters.backupKeySharesToLocationsRequest was null or undefined when calling backupKeySharesToLocations.');
|
|
701
|
+
}
|
|
702
|
+
const queryParameters = {};
|
|
703
|
+
const headerParameters = {};
|
|
704
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
705
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
706
|
+
const token = this.configuration.accessToken;
|
|
707
|
+
const tokenString = yield token("bearerAuth", []);
|
|
708
|
+
if (tokenString) {
|
|
709
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
const response = yield this.request({
|
|
713
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
714
|
+
method: 'POST',
|
|
715
|
+
headers: headerParameters,
|
|
716
|
+
query: queryParameters,
|
|
717
|
+
body: BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestToJSON(requestParameters.backupKeySharesToLocationsRequest),
|
|
718
|
+
}, initOverrides);
|
|
719
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSON(jsonValue));
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Create backup action and event for multiple locations without performing actual backup
|
|
724
|
+
*/
|
|
725
|
+
backupKeySharesToLocations(requestParameters, initOverrides) {
|
|
726
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
727
|
+
const response = yield this.backupKeySharesToLocationsRaw(requestParameters, initOverrides);
|
|
728
|
+
return yield response.value();
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Options call for this endpoint
|
|
733
|
+
*/
|
|
734
|
+
backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides) {
|
|
735
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
737
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationsOptions.');
|
|
738
|
+
}
|
|
739
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
740
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationsOptions.');
|
|
741
|
+
}
|
|
742
|
+
const queryParameters = {};
|
|
743
|
+
const headerParameters = {};
|
|
744
|
+
const response = yield this.request({
|
|
745
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
746
|
+
method: 'OPTIONS',
|
|
747
|
+
headers: headerParameters,
|
|
748
|
+
query: queryParameters,
|
|
749
|
+
}, initOverrides);
|
|
750
|
+
return new runtime.VoidApiResponse(response);
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Options call for this endpoint
|
|
755
|
+
*/
|
|
756
|
+
backupKeySharesToLocationsOptions(requestParameters, initOverrides) {
|
|
757
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
758
|
+
yield this.backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides);
|
|
759
|
+
});
|
|
760
|
+
}
|
|
686
761
|
/**
|
|
687
762
|
* This endpoint proxies requests to `/sdk/{environmentId}/providers/coinbasesocial/redirect` because Coinbase does not allow the string `coinbase` on the redirect URL path
|
|
688
763
|
* Redirect URL for sign-in with coinbase
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
13
|
+
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface AuthMfaEmailDeviceOptionsRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -68,6 +68,15 @@ export interface BackupKeySharesToLocationOptionsRequest {
|
|
|
68
68
|
environmentId: string;
|
|
69
69
|
walletId: string;
|
|
70
70
|
}
|
|
71
|
+
export interface BackupKeySharesToLocationsOperationRequest {
|
|
72
|
+
environmentId: string;
|
|
73
|
+
walletId: string;
|
|
74
|
+
backupKeySharesToLocationsRequest: BackupKeySharesToLocationsRequest;
|
|
75
|
+
}
|
|
76
|
+
export interface BackupKeySharesToLocationsOptionsRequest {
|
|
77
|
+
environmentId: string;
|
|
78
|
+
walletId: string;
|
|
79
|
+
}
|
|
71
80
|
export interface CbOauthRedirectRequest {
|
|
72
81
|
environmentId: string;
|
|
73
82
|
code?: string;
|
|
@@ -988,6 +997,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
988
997
|
* Options call for this endpoint
|
|
989
998
|
*/
|
|
990
999
|
backupKeySharesToLocationOptions(requestParameters: BackupKeySharesToLocationOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Create backup action and event for multiple locations without performing actual backup
|
|
1002
|
+
*/
|
|
1003
|
+
backupKeySharesToLocationsRaw(requestParameters: BackupKeySharesToLocationsOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BackupKeySharesToLocationsResponse>>;
|
|
1004
|
+
/**
|
|
1005
|
+
* Create backup action and event for multiple locations without performing actual backup
|
|
1006
|
+
*/
|
|
1007
|
+
backupKeySharesToLocations(requestParameters: BackupKeySharesToLocationsOperationRequest, initOverrides?: RequestInit): Promise<BackupKeySharesToLocationsResponse>;
|
|
1008
|
+
/**
|
|
1009
|
+
* Options call for this endpoint
|
|
1010
|
+
*/
|
|
1011
|
+
backupKeySharesToLocationsOptionsRaw(requestParameters: BackupKeySharesToLocationsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1012
|
+
/**
|
|
1013
|
+
* Options call for this endpoint
|
|
1014
|
+
*/
|
|
1015
|
+
backupKeySharesToLocationsOptions(requestParameters: BackupKeySharesToLocationsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
991
1016
|
/**
|
|
992
1017
|
* This endpoint proxies requests to `/sdk/{environmentId}/providers/coinbasesocial/redirect` because Coinbase does not allow the string `coinbase` on the redirect URL path
|
|
993
1018
|
* Redirect URL for sign-in with coinbase
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -10,6 +10,9 @@ import '../models/UserVerificationRequirement.js';
|
|
|
10
10
|
import '../models/AuthenticatorTransportProtocol.js';
|
|
11
11
|
import { BackupKeySharesToLocationRequestToJSON } from '../models/BackupKeySharesToLocationRequest.js';
|
|
12
12
|
import { BackupKeySharesToLocationResponseFromJSON } from '../models/BackupKeySharesToLocationResponse.js';
|
|
13
|
+
import { BackupKeySharesToLocationsRequestToJSON } from '../models/BackupKeySharesToLocationsRequest.js';
|
|
14
|
+
import '../models/WaasBackupOptionsEnum.js';
|
|
15
|
+
import { BackupKeySharesToLocationsResponseFromJSON } from '../models/BackupKeySharesToLocationsResponse.js';
|
|
13
16
|
import { BackupMultipleClientKeySharesRequestToJSON } from '../models/BackupMultipleClientKeySharesRequest.js';
|
|
14
17
|
import { BackupMultipleClientKeySharesResponseFromJSON } from '../models/BackupMultipleClientKeySharesResponse.js';
|
|
15
18
|
import '../models/JwtVerifiedCredentialFormatEnum.js';
|
|
@@ -117,7 +120,6 @@ import { PrefetchRequestToJSON } from '../models/PrefetchRequest.js';
|
|
|
117
120
|
import { ProjectSettingsFromJSON } from '../models/ProjectSettings.js';
|
|
118
121
|
import '../models/SignInProviderEnum.js';
|
|
119
122
|
import '../models/SocialSignInProviderEnum.js';
|
|
120
|
-
import '../models/WaasBackupOptionsEnum.js';
|
|
121
123
|
import '../models/SdkViewSectionAlignment.js';
|
|
122
124
|
import '../models/SdkViewSectionType.js';
|
|
123
125
|
import '../models/SdkViewType.js';
|
|
@@ -679,6 +681,79 @@ class SDKApi extends BaseAPI {
|
|
|
679
681
|
yield this.backupKeySharesToLocationOptionsRaw(requestParameters, initOverrides);
|
|
680
682
|
});
|
|
681
683
|
}
|
|
684
|
+
/**
|
|
685
|
+
* Create backup action and event for multiple locations without performing actual backup
|
|
686
|
+
*/
|
|
687
|
+
backupKeySharesToLocationsRaw(requestParameters, initOverrides) {
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
690
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocations.');
|
|
691
|
+
}
|
|
692
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
693
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocations.');
|
|
694
|
+
}
|
|
695
|
+
if (requestParameters.backupKeySharesToLocationsRequest === null || requestParameters.backupKeySharesToLocationsRequest === undefined) {
|
|
696
|
+
throw new RequiredError('backupKeySharesToLocationsRequest', 'Required parameter requestParameters.backupKeySharesToLocationsRequest was null or undefined when calling backupKeySharesToLocations.');
|
|
697
|
+
}
|
|
698
|
+
const queryParameters = {};
|
|
699
|
+
const headerParameters = {};
|
|
700
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
701
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
702
|
+
const token = this.configuration.accessToken;
|
|
703
|
+
const tokenString = yield token("bearerAuth", []);
|
|
704
|
+
if (tokenString) {
|
|
705
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
const response = yield this.request({
|
|
709
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
710
|
+
method: 'POST',
|
|
711
|
+
headers: headerParameters,
|
|
712
|
+
query: queryParameters,
|
|
713
|
+
body: BackupKeySharesToLocationsRequestToJSON(requestParameters.backupKeySharesToLocationsRequest),
|
|
714
|
+
}, initOverrides);
|
|
715
|
+
return new JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationsResponseFromJSON(jsonValue));
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Create backup action and event for multiple locations without performing actual backup
|
|
720
|
+
*/
|
|
721
|
+
backupKeySharesToLocations(requestParameters, initOverrides) {
|
|
722
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
723
|
+
const response = yield this.backupKeySharesToLocationsRaw(requestParameters, initOverrides);
|
|
724
|
+
return yield response.value();
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Options call for this endpoint
|
|
729
|
+
*/
|
|
730
|
+
backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides) {
|
|
731
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
732
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
733
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationsOptions.');
|
|
734
|
+
}
|
|
735
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
736
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationsOptions.');
|
|
737
|
+
}
|
|
738
|
+
const queryParameters = {};
|
|
739
|
+
const headerParameters = {};
|
|
740
|
+
const response = yield this.request({
|
|
741
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
742
|
+
method: 'OPTIONS',
|
|
743
|
+
headers: headerParameters,
|
|
744
|
+
query: queryParameters,
|
|
745
|
+
}, initOverrides);
|
|
746
|
+
return new VoidApiResponse(response);
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Options call for this endpoint
|
|
751
|
+
*/
|
|
752
|
+
backupKeySharesToLocationsOptions(requestParameters, initOverrides) {
|
|
753
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
754
|
+
yield this.backupKeySharesToLocationsOptionsRaw(requestParameters, initOverrides);
|
|
755
|
+
});
|
|
756
|
+
}
|
|
682
757
|
/**
|
|
683
758
|
* This endpoint proxies requests to `/sdk/{environmentId}/providers/coinbasesocial/redirect` because Coinbase does not allow the string `coinbase` on the redirect URL path
|
|
684
759
|
* Redirect URL for sign-in with coinbase
|
package/src/index.cjs
CHANGED
|
@@ -24,6 +24,10 @@ var AuthenticatorSelectionCriteria = require('./models/AuthenticatorSelectionCri
|
|
|
24
24
|
var AuthenticatorTransportProtocol = require('./models/AuthenticatorTransportProtocol.cjs');
|
|
25
25
|
var BackupKeySharesToLocationRequest = require('./models/BackupKeySharesToLocationRequest.cjs');
|
|
26
26
|
var BackupKeySharesToLocationResponse = require('./models/BackupKeySharesToLocationResponse.cjs');
|
|
27
|
+
var BackupKeySharesToLocationsRequest = require('./models/BackupKeySharesToLocationsRequest.cjs');
|
|
28
|
+
var BackupKeySharesToLocationsRequestLocations = require('./models/BackupKeySharesToLocationsRequestLocations.cjs');
|
|
29
|
+
var BackupKeySharesToLocationsResponse = require('./models/BackupKeySharesToLocationsResponse.cjs');
|
|
30
|
+
var BackupKeySharesToLocationsResponseLocationsWithKeyShares = require('./models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.cjs');
|
|
27
31
|
var BackupMultipleClientKeySharesRequest = require('./models/BackupMultipleClientKeySharesRequest.cjs');
|
|
28
32
|
var BackupMultipleClientKeySharesResponse = require('./models/BackupMultipleClientKeySharesResponse.cjs');
|
|
29
33
|
var BadGateway = require('./models/BadGateway.cjs');
|
|
@@ -415,6 +419,18 @@ exports.BackupKeySharesToLocationRequestToJSON = BackupKeySharesToLocationReques
|
|
|
415
419
|
exports.BackupKeySharesToLocationResponseFromJSON = BackupKeySharesToLocationResponse.BackupKeySharesToLocationResponseFromJSON;
|
|
416
420
|
exports.BackupKeySharesToLocationResponseFromJSONTyped = BackupKeySharesToLocationResponse.BackupKeySharesToLocationResponseFromJSONTyped;
|
|
417
421
|
exports.BackupKeySharesToLocationResponseToJSON = BackupKeySharesToLocationResponse.BackupKeySharesToLocationResponseToJSON;
|
|
422
|
+
exports.BackupKeySharesToLocationsRequestFromJSON = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestFromJSON;
|
|
423
|
+
exports.BackupKeySharesToLocationsRequestFromJSONTyped = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestFromJSONTyped;
|
|
424
|
+
exports.BackupKeySharesToLocationsRequestToJSON = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestToJSON;
|
|
425
|
+
exports.BackupKeySharesToLocationsRequestLocationsFromJSON = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSON;
|
|
426
|
+
exports.BackupKeySharesToLocationsRequestLocationsFromJSONTyped = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSONTyped;
|
|
427
|
+
exports.BackupKeySharesToLocationsRequestLocationsToJSON = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsToJSON;
|
|
428
|
+
exports.BackupKeySharesToLocationsResponseFromJSON = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSON;
|
|
429
|
+
exports.BackupKeySharesToLocationsResponseFromJSONTyped = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSONTyped;
|
|
430
|
+
exports.BackupKeySharesToLocationsResponseToJSON = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseToJSON;
|
|
431
|
+
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON = BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON;
|
|
432
|
+
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped = BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped;
|
|
433
|
+
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON = BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON;
|
|
418
434
|
exports.BackupMultipleClientKeySharesRequestFromJSON = BackupMultipleClientKeySharesRequest.BackupMultipleClientKeySharesRequestFromJSON;
|
|
419
435
|
exports.BackupMultipleClientKeySharesRequestFromJSONTyped = BackupMultipleClientKeySharesRequest.BackupMultipleClientKeySharesRequestFromJSONTyped;
|
|
420
436
|
exports.BackupMultipleClientKeySharesRequestToJSON = BackupMultipleClientKeySharesRequest.BackupMultipleClientKeySharesRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -20,6 +20,10 @@ export { AuthenticatorSelectionCriteriaFromJSON, AuthenticatorSelectionCriteriaF
|
|
|
20
20
|
export { AuthenticatorTransportProtocol, AuthenticatorTransportProtocolFromJSON, AuthenticatorTransportProtocolFromJSONTyped, AuthenticatorTransportProtocolToJSON } from './models/AuthenticatorTransportProtocol.js';
|
|
21
21
|
export { BackupKeySharesToLocationRequestFromJSON, BackupKeySharesToLocationRequestFromJSONTyped, BackupKeySharesToLocationRequestToJSON } from './models/BackupKeySharesToLocationRequest.js';
|
|
22
22
|
export { BackupKeySharesToLocationResponseFromJSON, BackupKeySharesToLocationResponseFromJSONTyped, BackupKeySharesToLocationResponseToJSON } from './models/BackupKeySharesToLocationResponse.js';
|
|
23
|
+
export { BackupKeySharesToLocationsRequestFromJSON, BackupKeySharesToLocationsRequestFromJSONTyped, BackupKeySharesToLocationsRequestToJSON } from './models/BackupKeySharesToLocationsRequest.js';
|
|
24
|
+
export { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsFromJSONTyped, BackupKeySharesToLocationsRequestLocationsToJSON } from './models/BackupKeySharesToLocationsRequestLocations.js';
|
|
25
|
+
export { BackupKeySharesToLocationsResponseFromJSON, BackupKeySharesToLocationsResponseFromJSONTyped, BackupKeySharesToLocationsResponseToJSON } from './models/BackupKeySharesToLocationsResponse.js';
|
|
26
|
+
export { BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON, BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped, BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON } from './models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.js';
|
|
23
27
|
export { BackupMultipleClientKeySharesRequestFromJSON, BackupMultipleClientKeySharesRequestFromJSONTyped, BackupMultipleClientKeySharesRequestToJSON } from './models/BackupMultipleClientKeySharesRequest.js';
|
|
24
28
|
export { BackupMultipleClientKeySharesResponseFromJSON, BackupMultipleClientKeySharesResponseFromJSONTyped, BackupMultipleClientKeySharesResponseToJSON } from './models/BackupMultipleClientKeySharesResponse.js';
|
|
25
29
|
export { BadGatewayFromJSON, BadGatewayFromJSONTyped, BadGatewayToJSON } from './models/BadGateway.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BackupKeySharesToLocationsRequestLocations = require('./BackupKeySharesToLocationsRequestLocations.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BackupKeySharesToLocationsRequestFromJSON(json) {
|
|
9
|
+
return BackupKeySharesToLocationsRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'locations': (json['locations'].map(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'locations': (value.locations.map(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.BackupKeySharesToLocationsRequestFromJSON = BackupKeySharesToLocationsRequestFromJSON;
|
|
32
|
+
exports.BackupKeySharesToLocationsRequestFromJSONTyped = BackupKeySharesToLocationsRequestFromJSONTyped;
|
|
33
|
+
exports.BackupKeySharesToLocationsRequestToJSON = BackupKeySharesToLocationsRequestToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BackupKeySharesToLocationsRequestLocations } from './BackupKeySharesToLocationsRequestLocations';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BackupKeySharesToLocationsRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface BackupKeySharesToLocationsRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<BackupKeySharesToLocationsRequestLocations>}
|
|
22
|
+
* @memberof BackupKeySharesToLocationsRequest
|
|
23
|
+
*/
|
|
24
|
+
locations: Array<BackupKeySharesToLocationsRequestLocations>;
|
|
25
|
+
}
|
|
26
|
+
export declare function BackupKeySharesToLocationsRequestFromJSON(json: any): BackupKeySharesToLocationsRequest;
|
|
27
|
+
export declare function BackupKeySharesToLocationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsRequest;
|
|
28
|
+
export declare function BackupKeySharesToLocationsRequestToJSON(value?: BackupKeySharesToLocationsRequest | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsToJSON } from './BackupKeySharesToLocationsRequestLocations.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BackupKeySharesToLocationsRequestFromJSON(json) {
|
|
5
|
+
return BackupKeySharesToLocationsRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'locations': (json['locations'].map(BackupKeySharesToLocationsRequestLocationsFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'locations': (value.locations.map(BackupKeySharesToLocationsRequestLocationsToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { BackupKeySharesToLocationsRequestFromJSON, BackupKeySharesToLocationsRequestFromJSONTyped, BackupKeySharesToLocationsRequestToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var WaasBackupOptionsEnum = require('./WaasBackupOptionsEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BackupKeySharesToLocationsRequestLocationsFromJSON(json) {
|
|
9
|
+
return BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'location': WaasBackupOptionsEnum.WaasBackupOptionsEnumFromJSON(json['location']),
|
|
17
|
+
'externalKeyShareId': json['externalKeyShareId'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'location': WaasBackupOptionsEnum.WaasBackupOptionsEnumToJSON(value.location),
|
|
29
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.BackupKeySharesToLocationsRequestLocationsFromJSON = BackupKeySharesToLocationsRequestLocationsFromJSON;
|
|
34
|
+
exports.BackupKeySharesToLocationsRequestLocationsFromJSONTyped = BackupKeySharesToLocationsRequestLocationsFromJSONTyped;
|
|
35
|
+
exports.BackupKeySharesToLocationsRequestLocationsToJSON = BackupKeySharesToLocationsRequestLocationsToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { WaasBackupOptionsEnum } from './WaasBackupOptionsEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BackupKeySharesToLocationsRequestLocations
|
|
17
|
+
*/
|
|
18
|
+
export interface BackupKeySharesToLocationsRequestLocations {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {WaasBackupOptionsEnum}
|
|
22
|
+
* @memberof BackupKeySharesToLocationsRequestLocations
|
|
23
|
+
*/
|
|
24
|
+
location: WaasBackupOptionsEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BackupKeySharesToLocationsRequestLocations
|
|
29
|
+
*/
|
|
30
|
+
externalKeyShareId: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function BackupKeySharesToLocationsRequestLocationsFromJSON(json: any): BackupKeySharesToLocationsRequestLocations;
|
|
33
|
+
export declare function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsRequestLocations;
|
|
34
|
+
export declare function BackupKeySharesToLocationsRequestLocationsToJSON(value?: BackupKeySharesToLocationsRequestLocations | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { WaasBackupOptionsEnumFromJSON, WaasBackupOptionsEnumToJSON } from './WaasBackupOptionsEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BackupKeySharesToLocationsRequestLocationsFromJSON(json) {
|
|
5
|
+
return BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'location': WaasBackupOptionsEnumFromJSON(json['location']),
|
|
13
|
+
'externalKeyShareId': json['externalKeyShareId'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'location': WaasBackupOptionsEnumToJSON(value.location),
|
|
25
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsFromJSONTyped, BackupKeySharesToLocationsRequestLocationsToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BackupKeySharesToLocationsResponseLocationsWithKeyShares = require('./BackupKeySharesToLocationsResponseLocationsWithKeyShares.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BackupKeySharesToLocationsResponseFromJSON(json) {
|
|
9
|
+
return BackupKeySharesToLocationsResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BackupKeySharesToLocationsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'message': json['message'],
|
|
17
|
+
'walletId': json['walletId'],
|
|
18
|
+
'locationsWithKeyShares': (json['locationsWithKeyShares'].map(BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON)),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BackupKeySharesToLocationsResponseToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'message': value.message,
|
|
30
|
+
'walletId': value.walletId,
|
|
31
|
+
'locationsWithKeyShares': (value.locationsWithKeyShares.map(BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.BackupKeySharesToLocationsResponseFromJSON = BackupKeySharesToLocationsResponseFromJSON;
|
|
36
|
+
exports.BackupKeySharesToLocationsResponseFromJSONTyped = BackupKeySharesToLocationsResponseFromJSONTyped;
|
|
37
|
+
exports.BackupKeySharesToLocationsResponseToJSON = BackupKeySharesToLocationsResponseToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BackupKeySharesToLocationsResponseLocationsWithKeyShares } from './BackupKeySharesToLocationsResponseLocationsWithKeyShares';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BackupKeySharesToLocationsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface BackupKeySharesToLocationsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BackupKeySharesToLocationsResponse
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BackupKeySharesToLocationsResponse
|
|
29
|
+
*/
|
|
30
|
+
walletId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<BackupKeySharesToLocationsResponseLocationsWithKeyShares>}
|
|
34
|
+
* @memberof BackupKeySharesToLocationsResponse
|
|
35
|
+
*/
|
|
36
|
+
locationsWithKeyShares: Array<BackupKeySharesToLocationsResponseLocationsWithKeyShares>;
|
|
37
|
+
}
|
|
38
|
+
export declare function BackupKeySharesToLocationsResponseFromJSON(json: any): BackupKeySharesToLocationsResponse;
|
|
39
|
+
export declare function BackupKeySharesToLocationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsResponse;
|
|
40
|
+
export declare function BackupKeySharesToLocationsResponseToJSON(value?: BackupKeySharesToLocationsResponse | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON, BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON } from './BackupKeySharesToLocationsResponseLocationsWithKeyShares.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BackupKeySharesToLocationsResponseFromJSON(json) {
|
|
5
|
+
return BackupKeySharesToLocationsResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BackupKeySharesToLocationsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'message': json['message'],
|
|
13
|
+
'walletId': json['walletId'],
|
|
14
|
+
'locationsWithKeyShares': (json['locationsWithKeyShares'].map(BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON)),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function BackupKeySharesToLocationsResponseToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'message': value.message,
|
|
26
|
+
'walletId': value.walletId,
|
|
27
|
+
'locationsWithKeyShares': (value.locationsWithKeyShares.map(BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { BackupKeySharesToLocationsResponseFromJSON, BackupKeySharesToLocationsResponseFromJSONTyped, BackupKeySharesToLocationsResponseToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var WaasBackupOptionsEnum = require('./WaasBackupOptionsEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON(json) {
|
|
9
|
+
return BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'location': WaasBackupOptionsEnum.WaasBackupOptionsEnumFromJSON(json['location']),
|
|
17
|
+
'keyShareId': json['keyShareId'],
|
|
18
|
+
'externalKeyShareId': json['externalKeyShareId'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'location': WaasBackupOptionsEnum.WaasBackupOptionsEnumToJSON(value.location),
|
|
30
|
+
'keyShareId': value.keyShareId,
|
|
31
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON = BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON;
|
|
36
|
+
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped = BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped;
|
|
37
|
+
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON = BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { WaasBackupOptionsEnum } from './WaasBackupOptionsEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BackupKeySharesToLocationsResponseLocationsWithKeyShares
|
|
17
|
+
*/
|
|
18
|
+
export interface BackupKeySharesToLocationsResponseLocationsWithKeyShares {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {WaasBackupOptionsEnum}
|
|
22
|
+
* @memberof BackupKeySharesToLocationsResponseLocationsWithKeyShares
|
|
23
|
+
*/
|
|
24
|
+
location: WaasBackupOptionsEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BackupKeySharesToLocationsResponseLocationsWithKeyShares
|
|
29
|
+
*/
|
|
30
|
+
keyShareId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BackupKeySharesToLocationsResponseLocationsWithKeyShares
|
|
35
|
+
*/
|
|
36
|
+
externalKeyShareId: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON(json: any): BackupKeySharesToLocationsResponseLocationsWithKeyShares;
|
|
39
|
+
export declare function BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsResponseLocationsWithKeyShares;
|
|
40
|
+
export declare function BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON(value?: BackupKeySharesToLocationsResponseLocationsWithKeyShares | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { WaasBackupOptionsEnumFromJSON, WaasBackupOptionsEnumToJSON } from './WaasBackupOptionsEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON(json) {
|
|
5
|
+
return BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'location': WaasBackupOptionsEnumFromJSON(json['location']),
|
|
13
|
+
'keyShareId': json['keyShareId'],
|
|
14
|
+
'externalKeyShareId': json['externalKeyShareId'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'location': WaasBackupOptionsEnumToJSON(value.location),
|
|
26
|
+
'keyShareId': value.keyShareId,
|
|
27
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON, BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped, BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON };
|
|
@@ -2,19 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
5
7
|
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
/**
|
|
8
|
-
* Dashboard API
|
|
9
|
-
* Dashboard API documentation
|
|
10
|
-
*
|
|
11
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
-
* https://openapi-generator.tech
|
|
16
|
-
* Do not edit the class manually.
|
|
17
|
-
*/
|
|
18
8
|
function WalletKeyShareInfoFromJSON(json) {
|
|
19
9
|
return WalletKeyShareInfoFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -26,6 +16,7 @@ function WalletKeyShareInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
16
|
'id': json['id'],
|
|
27
17
|
'backupLocation': json['backupLocation'],
|
|
28
18
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
19
|
+
'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
29
20
|
};
|
|
30
21
|
}
|
|
31
22
|
function WalletKeyShareInfoToJSON(value) {
|
|
@@ -39,6 +30,7 @@ function WalletKeyShareInfoToJSON(value) {
|
|
|
39
30
|
'id': value.id,
|
|
40
31
|
'backupLocation': value.backupLocation,
|
|
41
32
|
'passwordEncrypted': value.passwordEncrypted,
|
|
33
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
42
34
|
};
|
|
43
35
|
}
|
|
44
36
|
|
|
@@ -33,6 +33,12 @@ export interface WalletKeyShareInfo {
|
|
|
33
33
|
* @memberof WalletKeyShareInfo
|
|
34
34
|
*/
|
|
35
35
|
passwordEncrypted: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WalletKeyShareInfo
|
|
40
|
+
*/
|
|
41
|
+
externalKeyShareId?: string;
|
|
36
42
|
}
|
|
37
43
|
export declare function WalletKeyShareInfoFromJSON(json: any): WalletKeyShareInfo;
|
|
38
44
|
export declare function WalletKeyShareInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletKeyShareInfo;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
1
3
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dashboard API
|
|
5
|
-
* Dashboard API documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
4
|
function WalletKeyShareInfoFromJSON(json) {
|
|
15
5
|
return WalletKeyShareInfoFromJSONTyped(json);
|
|
16
6
|
}
|
|
@@ -22,6 +12,7 @@ function WalletKeyShareInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
12
|
'id': json['id'],
|
|
23
13
|
'backupLocation': json['backupLocation'],
|
|
24
14
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
15
|
+
'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
25
16
|
};
|
|
26
17
|
}
|
|
27
18
|
function WalletKeyShareInfoToJSON(value) {
|
|
@@ -35,6 +26,7 @@ function WalletKeyShareInfoToJSON(value) {
|
|
|
35
26
|
'id': value.id,
|
|
36
27
|
'backupLocation': value.backupLocation,
|
|
37
28
|
'passwordEncrypted': value.passwordEncrypted,
|
|
29
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
38
30
|
};
|
|
39
31
|
}
|
|
40
32
|
|
|
@@ -16,6 +16,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ign
|
|
|
16
16
|
'id': json['id'],
|
|
17
17
|
'backupLocation': json['backupLocation'],
|
|
18
18
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
19
|
+
'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
19
20
|
'encryptedAccountCredential': !runtime.exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
20
21
|
};
|
|
21
22
|
}
|
|
@@ -30,6 +31,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
|
30
31
|
'id': value.id,
|
|
31
32
|
'backupLocation': value.backupLocation,
|
|
32
33
|
'passwordEncrypted': value.passwordEncrypted,
|
|
34
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
33
35
|
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
34
36
|
};
|
|
35
37
|
}
|
|
@@ -33,6 +33,12 @@ export interface WalletKeyShareInfoWithEncryptedAccountCredential {
|
|
|
33
33
|
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
34
34
|
*/
|
|
35
35
|
passwordEncrypted: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
40
|
+
*/
|
|
41
|
+
externalKeyShareId?: string;
|
|
36
42
|
/**
|
|
37
43
|
* A string with a max length of 4096 characters
|
|
38
44
|
* @type {string}
|
|
@@ -12,6 +12,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ign
|
|
|
12
12
|
'id': json['id'],
|
|
13
13
|
'backupLocation': json['backupLocation'],
|
|
14
14
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
15
|
+
'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
15
16
|
'encryptedAccountCredential': !exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
16
17
|
};
|
|
17
18
|
}
|
|
@@ -26,6 +27,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
|
26
27
|
'id': value.id,
|
|
27
28
|
'backupLocation': value.backupLocation,
|
|
28
29
|
'passwordEncrypted': value.passwordEncrypted,
|
|
30
|
+
'externalKeyShareId': value.externalKeyShareId,
|
|
29
31
|
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
30
32
|
};
|
|
31
33
|
}
|
package/src/models/index.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ export * from './AuthenticatorSelectionCriteria';
|
|
|
18
18
|
export * from './AuthenticatorTransportProtocol';
|
|
19
19
|
export * from './BackupKeySharesToLocationRequest';
|
|
20
20
|
export * from './BackupKeySharesToLocationResponse';
|
|
21
|
+
export * from './BackupKeySharesToLocationsRequest';
|
|
22
|
+
export * from './BackupKeySharesToLocationsRequestLocations';
|
|
23
|
+
export * from './BackupKeySharesToLocationsResponse';
|
|
24
|
+
export * from './BackupKeySharesToLocationsResponseLocationsWithKeyShares';
|
|
21
25
|
export * from './BackupMultipleClientKeySharesRequest';
|
|
22
26
|
export * from './BackupMultipleClientKeySharesResponse';
|
|
23
27
|
export * from './BadGateway';
|