@dynamic-labs/sdk-api-core 0.0.611 → 0.0.613
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 +20 -23
- package/src/apis/SDKApi.d.ts +10 -11
- package/src/apis/SDKApi.js +20 -23
- package/src/index.cjs +16 -4
- package/src/index.js +4 -1
- package/src/models/NetworkConfiguration.cjs +2 -0
- package/src/models/NetworkConfiguration.d.ts +6 -0
- package/src/models/NetworkConfiguration.js +2 -0
- package/src/models/RecoverMultipleClientKeySharesRequest.cjs +33 -0
- package/src/models/RecoverMultipleClientKeySharesRequest.d.ts +27 -0
- package/src/models/RecoverMultipleClientKeySharesRequest.js +27 -0
- package/src/models/RecoverMultipleClientKeySharesResponse.cjs +33 -0
- package/src/models/RecoverMultipleClientKeySharesResponse.d.ts +28 -0
- package/src/models/RecoverMultipleClientKeySharesResponse.js +27 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs +39 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.d.ts +45 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.js +33 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.cjs +33 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.d.ts +27 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.js +27 -0
- package/src/models/index.d.ts +4 -1
- package/src/models/RecoverKeyshareResponse.cjs +0 -43
- package/src/models/RecoverKeyshareResponse.d.ts +0 -27
- package/src/models/RecoverKeyshareResponse.js +0 -37
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -106,7 +106,8 @@ require('../models/SdkViewSectionType.cjs');
|
|
|
106
106
|
require('../models/SdkViewType.cjs');
|
|
107
107
|
var PublishEvents = require('../models/PublishEvents.cjs');
|
|
108
108
|
require('../models/PublishEventsEvents.cjs');
|
|
109
|
-
var
|
|
109
|
+
var RecoverMultipleClientKeySharesRequest = require('../models/RecoverMultipleClientKeySharesRequest.cjs');
|
|
110
|
+
var RecoverMultipleClientKeySharesResponse = require('../models/RecoverMultipleClientKeySharesResponse.cjs');
|
|
110
111
|
var RefreshKeySharesRequest = require('../models/RefreshKeySharesRequest.cjs');
|
|
111
112
|
var RegisterEmbeddedWalletSessionKeyResponse = require('../models/RegisterEmbeddedWalletSessionKeyResponse.cjs');
|
|
112
113
|
var RegisterSessionKeyRequest = require('../models/RegisterSessionKeyRequest.cjs');
|
|
@@ -3787,21 +3788,19 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3787
3788
|
});
|
|
3788
3789
|
}
|
|
3789
3790
|
/**
|
|
3790
|
-
* Recover
|
|
3791
|
+
* Recover multiple keyShares
|
|
3791
3792
|
*/
|
|
3792
|
-
|
|
3793
|
+
recoverKeySharesRaw(requestParameters, initOverrides) {
|
|
3793
3794
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3794
3795
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3795
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3796
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeyShares.');
|
|
3796
3797
|
}
|
|
3797
3798
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3798
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3799
|
-
}
|
|
3800
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3801
|
-
throw new runtime.RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshare.');
|
|
3799
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeyShares.');
|
|
3802
3800
|
}
|
|
3803
3801
|
const queryParameters = {};
|
|
3804
3802
|
const headerParameters = {};
|
|
3803
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3805
3804
|
if (this.configuration && this.configuration.accessToken) {
|
|
3806
3805
|
const token = this.configuration.accessToken;
|
|
3807
3806
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -3810,41 +3809,39 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3810
3809
|
}
|
|
3811
3810
|
}
|
|
3812
3811
|
const response = yield this.request({
|
|
3813
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3814
|
-
method: '
|
|
3812
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3813
|
+
method: 'POST',
|
|
3815
3814
|
headers: headerParameters,
|
|
3816
3815
|
query: queryParameters,
|
|
3816
|
+
body: RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestToJSON(requestParameters.recoverMultipleClientKeySharesRequest),
|
|
3817
3817
|
}, initOverrides);
|
|
3818
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3818
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
3819
3819
|
});
|
|
3820
3820
|
}
|
|
3821
3821
|
/**
|
|
3822
|
-
* Recover
|
|
3822
|
+
* Recover multiple keyShares
|
|
3823
3823
|
*/
|
|
3824
|
-
|
|
3824
|
+
recoverKeyShares(requestParameters, initOverrides) {
|
|
3825
3825
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3826
|
-
const response = yield this.
|
|
3826
|
+
const response = yield this.recoverKeySharesRaw(requestParameters, initOverrides);
|
|
3827
3827
|
return yield response.value();
|
|
3828
3828
|
});
|
|
3829
3829
|
}
|
|
3830
3830
|
/**
|
|
3831
3831
|
* Options call for this endpoint
|
|
3832
3832
|
*/
|
|
3833
|
-
|
|
3833
|
+
recoverKeySharesOptionsRaw(requestParameters, initOverrides) {
|
|
3834
3834
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3835
3835
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3836
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3836
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeySharesOptions.');
|
|
3837
3837
|
}
|
|
3838
3838
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3839
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3840
|
-
}
|
|
3841
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3842
|
-
throw new runtime.RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshareOptions.');
|
|
3839
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeySharesOptions.');
|
|
3843
3840
|
}
|
|
3844
3841
|
const queryParameters = {};
|
|
3845
3842
|
const headerParameters = {};
|
|
3846
3843
|
const response = yield this.request({
|
|
3847
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3844
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3848
3845
|
method: 'OPTIONS',
|
|
3849
3846
|
headers: headerParameters,
|
|
3850
3847
|
query: queryParameters,
|
|
@@ -3855,9 +3852,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3855
3852
|
/**
|
|
3856
3853
|
* Options call for this endpoint
|
|
3857
3854
|
*/
|
|
3858
|
-
|
|
3855
|
+
recoverKeySharesOptions(requestParameters, initOverrides) {
|
|
3859
3856
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3860
|
-
yield this.
|
|
3857
|
+
yield this.recoverKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
3861
3858
|
});
|
|
3862
3859
|
}
|
|
3863
3860
|
/**
|
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 { BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetUserPasskeysResponse, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthPasskeyDeviceGetResponse, MFAAuthPasskeyDevicePostRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents,
|
|
13
|
+
import { BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetUserPasskeysResponse, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthPasskeyDeviceGetResponse, MFAAuthPasskeyDevicePostRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface AuthMfaPasskeyDeviceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
mFAAuthPasskeyDevicePostRequest: MFAAuthPasskeyDevicePostRequest;
|
|
@@ -429,15 +429,14 @@ export interface PublishEventRequest {
|
|
|
429
429
|
environmentId: string;
|
|
430
430
|
publishEvents: PublishEvents;
|
|
431
431
|
}
|
|
432
|
-
export interface
|
|
432
|
+
export interface RecoverKeySharesRequest {
|
|
433
433
|
environmentId: string;
|
|
434
434
|
walletId: string;
|
|
435
|
-
|
|
435
|
+
recoverMultipleClientKeySharesRequest?: RecoverMultipleClientKeySharesRequest;
|
|
436
436
|
}
|
|
437
|
-
export interface
|
|
437
|
+
export interface RecoverKeySharesOptionsRequest {
|
|
438
438
|
environmentId: string;
|
|
439
439
|
walletId: string;
|
|
440
|
-
keyShareId: string;
|
|
441
440
|
}
|
|
442
441
|
export interface RecoveryCodesOptionsRequest {
|
|
443
442
|
environmentId: string;
|
|
@@ -1623,21 +1622,21 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1623
1622
|
*/
|
|
1624
1623
|
publishEvent(requestParameters: PublishEventRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1625
1624
|
/**
|
|
1626
|
-
* Recover
|
|
1625
|
+
* Recover multiple keyShares
|
|
1627
1626
|
*/
|
|
1628
|
-
|
|
1627
|
+
recoverKeySharesRaw(requestParameters: RecoverKeySharesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RecoverMultipleClientKeySharesResponse>>;
|
|
1629
1628
|
/**
|
|
1630
|
-
* Recover
|
|
1629
|
+
* Recover multiple keyShares
|
|
1631
1630
|
*/
|
|
1632
|
-
|
|
1631
|
+
recoverKeyShares(requestParameters: RecoverKeySharesRequest, initOverrides?: RequestInit): Promise<RecoverMultipleClientKeySharesResponse>;
|
|
1633
1632
|
/**
|
|
1634
1633
|
* Options call for this endpoint
|
|
1635
1634
|
*/
|
|
1636
|
-
|
|
1635
|
+
recoverKeySharesOptionsRaw(requestParameters: RecoverKeySharesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1637
1636
|
/**
|
|
1638
1637
|
* Options call for this endpoint
|
|
1639
1638
|
*/
|
|
1640
|
-
|
|
1639
|
+
recoverKeySharesOptions(requestParameters: RecoverKeySharesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1641
1640
|
/**
|
|
1642
1641
|
* Options call for this endpoint
|
|
1643
1642
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -102,7 +102,8 @@ import '../models/SdkViewSectionType.js';
|
|
|
102
102
|
import '../models/SdkViewType.js';
|
|
103
103
|
import { PublishEventsToJSON } from '../models/PublishEvents.js';
|
|
104
104
|
import '../models/PublishEventsEvents.js';
|
|
105
|
-
import {
|
|
105
|
+
import { RecoverMultipleClientKeySharesRequestToJSON } from '../models/RecoverMultipleClientKeySharesRequest.js';
|
|
106
|
+
import { RecoverMultipleClientKeySharesResponseFromJSON } from '../models/RecoverMultipleClientKeySharesResponse.js';
|
|
106
107
|
import { RefreshKeySharesRequestToJSON } from '../models/RefreshKeySharesRequest.js';
|
|
107
108
|
import { RegisterEmbeddedWalletSessionKeyResponseFromJSON } from '../models/RegisterEmbeddedWalletSessionKeyResponse.js';
|
|
108
109
|
import { RegisterSessionKeyRequestToJSON } from '../models/RegisterSessionKeyRequest.js';
|
|
@@ -3783,21 +3784,19 @@ class SDKApi extends BaseAPI {
|
|
|
3783
3784
|
});
|
|
3784
3785
|
}
|
|
3785
3786
|
/**
|
|
3786
|
-
* Recover
|
|
3787
|
+
* Recover multiple keyShares
|
|
3787
3788
|
*/
|
|
3788
|
-
|
|
3789
|
+
recoverKeySharesRaw(requestParameters, initOverrides) {
|
|
3789
3790
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3790
3791
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3791
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3792
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeyShares.');
|
|
3792
3793
|
}
|
|
3793
3794
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3794
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3795
|
-
}
|
|
3796
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3797
|
-
throw new RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshare.');
|
|
3795
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeyShares.');
|
|
3798
3796
|
}
|
|
3799
3797
|
const queryParameters = {};
|
|
3800
3798
|
const headerParameters = {};
|
|
3799
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3801
3800
|
if (this.configuration && this.configuration.accessToken) {
|
|
3802
3801
|
const token = this.configuration.accessToken;
|
|
3803
3802
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -3806,41 +3805,39 @@ class SDKApi extends BaseAPI {
|
|
|
3806
3805
|
}
|
|
3807
3806
|
}
|
|
3808
3807
|
const response = yield this.request({
|
|
3809
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3810
|
-
method: '
|
|
3808
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3809
|
+
method: 'POST',
|
|
3811
3810
|
headers: headerParameters,
|
|
3812
3811
|
query: queryParameters,
|
|
3812
|
+
body: RecoverMultipleClientKeySharesRequestToJSON(requestParameters.recoverMultipleClientKeySharesRequest),
|
|
3813
3813
|
}, initOverrides);
|
|
3814
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3814
|
+
return new JSONApiResponse(response, (jsonValue) => RecoverMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
3815
3815
|
});
|
|
3816
3816
|
}
|
|
3817
3817
|
/**
|
|
3818
|
-
* Recover
|
|
3818
|
+
* Recover multiple keyShares
|
|
3819
3819
|
*/
|
|
3820
|
-
|
|
3820
|
+
recoverKeyShares(requestParameters, initOverrides) {
|
|
3821
3821
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3822
|
-
const response = yield this.
|
|
3822
|
+
const response = yield this.recoverKeySharesRaw(requestParameters, initOverrides);
|
|
3823
3823
|
return yield response.value();
|
|
3824
3824
|
});
|
|
3825
3825
|
}
|
|
3826
3826
|
/**
|
|
3827
3827
|
* Options call for this endpoint
|
|
3828
3828
|
*/
|
|
3829
|
-
|
|
3829
|
+
recoverKeySharesOptionsRaw(requestParameters, initOverrides) {
|
|
3830
3830
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3831
3831
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3832
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3832
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeySharesOptions.');
|
|
3833
3833
|
}
|
|
3834
3834
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3835
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3836
|
-
}
|
|
3837
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3838
|
-
throw new RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshareOptions.');
|
|
3835
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeySharesOptions.');
|
|
3839
3836
|
}
|
|
3840
3837
|
const queryParameters = {};
|
|
3841
3838
|
const headerParameters = {};
|
|
3842
3839
|
const response = yield this.request({
|
|
3843
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3840
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3844
3841
|
method: 'OPTIONS',
|
|
3845
3842
|
headers: headerParameters,
|
|
3846
3843
|
query: queryParameters,
|
|
@@ -3851,9 +3848,9 @@ class SDKApi extends BaseAPI {
|
|
|
3851
3848
|
/**
|
|
3852
3849
|
* Options call for this endpoint
|
|
3853
3850
|
*/
|
|
3854
|
-
|
|
3851
|
+
recoverKeySharesOptions(requestParameters, initOverrides) {
|
|
3855
3852
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3856
|
-
yield this.
|
|
3853
|
+
yield this.recoverKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
3857
3854
|
});
|
|
3858
3855
|
}
|
|
3859
3856
|
/**
|
package/src/index.cjs
CHANGED
|
@@ -194,7 +194,8 @@ var PublicKeyCredentialUserEntity = require('./models/PublicKeyCredentialUserEnt
|
|
|
194
194
|
var PublishEvents = require('./models/PublishEvents.cjs');
|
|
195
195
|
var PublishEventsEvents = require('./models/PublishEventsEvents.cjs');
|
|
196
196
|
var ReactSettings = require('./models/ReactSettings.cjs');
|
|
197
|
-
var
|
|
197
|
+
var RecoverMultipleClientKeySharesRequest = require('./models/RecoverMultipleClientKeySharesRequest.cjs');
|
|
198
|
+
var RecoverMultipleClientKeySharesResponse = require('./models/RecoverMultipleClientKeySharesResponse.cjs');
|
|
198
199
|
var RefreshKeySharesRequest = require('./models/RefreshKeySharesRequest.cjs');
|
|
199
200
|
var RegisterEmbeddedWalletSessionKeyResponse = require('./models/RegisterEmbeddedWalletSessionKeyResponse.cjs');
|
|
200
201
|
var RegisterSessionKeyRequest = require('./models/RegisterSessionKeyRequest.cjs');
|
|
@@ -273,6 +274,8 @@ var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
|
273
274
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
274
275
|
var WalletAddressType = require('./models/WalletAddressType.cjs');
|
|
275
276
|
var WalletKeyShareInfo = require('./models/WalletKeyShareInfo.cjs');
|
|
277
|
+
var WalletKeyShareInfoWithEncryptedAccountCredential = require('./models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs');
|
|
278
|
+
var WalletKeyShareInfoWithEncryptedAccountCredentialAllOf = require('./models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.cjs');
|
|
276
279
|
var WalletProperties = require('./models/WalletProperties.cjs');
|
|
277
280
|
var WalletProviderEnum = require('./models/WalletProviderEnum.cjs');
|
|
278
281
|
|
|
@@ -1006,9 +1009,12 @@ Object.defineProperty(exports, 'PublishEventsEventsTypeEnum', {
|
|
|
1006
1009
|
exports.ReactSettingsFromJSON = ReactSettings.ReactSettingsFromJSON;
|
|
1007
1010
|
exports.ReactSettingsFromJSONTyped = ReactSettings.ReactSettingsFromJSONTyped;
|
|
1008
1011
|
exports.ReactSettingsToJSON = ReactSettings.ReactSettingsToJSON;
|
|
1009
|
-
exports.
|
|
1010
|
-
exports.
|
|
1011
|
-
exports.
|
|
1012
|
+
exports.RecoverMultipleClientKeySharesRequestFromJSON = RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestFromJSON;
|
|
1013
|
+
exports.RecoverMultipleClientKeySharesRequestFromJSONTyped = RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestFromJSONTyped;
|
|
1014
|
+
exports.RecoverMultipleClientKeySharesRequestToJSON = RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestToJSON;
|
|
1015
|
+
exports.RecoverMultipleClientKeySharesResponseFromJSON = RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseFromJSON;
|
|
1016
|
+
exports.RecoverMultipleClientKeySharesResponseFromJSONTyped = RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseFromJSONTyped;
|
|
1017
|
+
exports.RecoverMultipleClientKeySharesResponseToJSON = RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseToJSON;
|
|
1012
1018
|
exports.RefreshKeySharesRequestFromJSON = RefreshKeySharesRequest.RefreshKeySharesRequestFromJSON;
|
|
1013
1019
|
exports.RefreshKeySharesRequestFromJSONTyped = RefreshKeySharesRequest.RefreshKeySharesRequestFromJSONTyped;
|
|
1014
1020
|
exports.RefreshKeySharesRequestToJSON = RefreshKeySharesRequest.RefreshKeySharesRequestToJSON;
|
|
@@ -1299,6 +1305,12 @@ exports.WalletAddressTypeToJSON = WalletAddressType.WalletAddressTypeToJSON;
|
|
|
1299
1305
|
exports.WalletKeyShareInfoFromJSON = WalletKeyShareInfo.WalletKeyShareInfoFromJSON;
|
|
1300
1306
|
exports.WalletKeyShareInfoFromJSONTyped = WalletKeyShareInfo.WalletKeyShareInfoFromJSONTyped;
|
|
1301
1307
|
exports.WalletKeyShareInfoToJSON = WalletKeyShareInfo.WalletKeyShareInfoToJSON;
|
|
1308
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON = WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON;
|
|
1309
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped = WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped;
|
|
1310
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialToJSON = WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialToJSON;
|
|
1311
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON = WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON;
|
|
1312
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped = WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped;
|
|
1313
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON = WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON;
|
|
1302
1314
|
exports.WalletPropertiesFromJSON = WalletProperties.WalletPropertiesFromJSON;
|
|
1303
1315
|
exports.WalletPropertiesFromJSONTyped = WalletProperties.WalletPropertiesFromJSONTyped;
|
|
1304
1316
|
exports.WalletPropertiesToJSON = WalletProperties.WalletPropertiesToJSON;
|
package/src/index.js
CHANGED
|
@@ -190,7 +190,8 @@ export { PublicKeyCredentialUserEntityFromJSON, PublicKeyCredentialUserEntityFro
|
|
|
190
190
|
export { PublishEventsFromJSON, PublishEventsFromJSONTyped, PublishEventsToJSON } from './models/PublishEvents.js';
|
|
191
191
|
export { PublishEventsEventsFromJSON, PublishEventsEventsFromJSONTyped, PublishEventsEventsToJSON, PublishEventsEventsTypeEnum } from './models/PublishEventsEvents.js';
|
|
192
192
|
export { ReactSettingsFromJSON, ReactSettingsFromJSONTyped, ReactSettingsToJSON } from './models/ReactSettings.js';
|
|
193
|
-
export {
|
|
193
|
+
export { RecoverMultipleClientKeySharesRequestFromJSON, RecoverMultipleClientKeySharesRequestFromJSONTyped, RecoverMultipleClientKeySharesRequestToJSON } from './models/RecoverMultipleClientKeySharesRequest.js';
|
|
194
|
+
export { RecoverMultipleClientKeySharesResponseFromJSON, RecoverMultipleClientKeySharesResponseFromJSONTyped, RecoverMultipleClientKeySharesResponseToJSON } from './models/RecoverMultipleClientKeySharesResponse.js';
|
|
194
195
|
export { RefreshKeySharesRequestFromJSON, RefreshKeySharesRequestFromJSONTyped, RefreshKeySharesRequestToJSON } from './models/RefreshKeySharesRequest.js';
|
|
195
196
|
export { RegisterEmbeddedWalletSessionKeyResponseFromJSON, RegisterEmbeddedWalletSessionKeyResponseFromJSONTyped, RegisterEmbeddedWalletSessionKeyResponseToJSON } from './models/RegisterEmbeddedWalletSessionKeyResponse.js';
|
|
196
197
|
export { RegisterSessionKeyRequestFromJSON, RegisterSessionKeyRequestFromJSONTyped, RegisterSessionKeyRequestToJSON } from './models/RegisterSessionKeyRequest.js';
|
|
@@ -269,5 +270,7 @@ export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWa
|
|
|
269
270
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
|
270
271
|
export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
|
|
271
272
|
export { WalletKeyShareInfoFromJSON, WalletKeyShareInfoFromJSONTyped, WalletKeyShareInfoToJSON } from './models/WalletKeyShareInfo.js';
|
|
273
|
+
export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredential.js';
|
|
274
|
+
export { WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.js';
|
|
272
275
|
export { WalletPropertiesFromJSON, WalletPropertiesFromJSONTyped, WalletPropertiesToJSON } from './models/WalletProperties.js';
|
|
273
276
|
export { WalletProviderEnum, WalletProviderEnumFromJSON, WalletProviderEnumFromJSONTyped, WalletProviderEnumToJSON } from './models/WalletProviderEnum.js';
|
|
@@ -30,6 +30,7 @@ function NetworkConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'blockExplorerUrls': json['blockExplorerUrls'],
|
|
31
31
|
'vanityName': !runtime.exists(json, 'vanityName') ? undefined : json['vanityName'],
|
|
32
32
|
'bech32Prefix': !runtime.exists(json, 'bech32Prefix') ? undefined : json['bech32Prefix'],
|
|
33
|
+
'genesisHash': !runtime.exists(json, 'genesisHash') ? undefined : json['genesisHash'],
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
function NetworkConfigurationToJSON(value) {
|
|
@@ -55,6 +56,7 @@ function NetworkConfigurationToJSON(value) {
|
|
|
55
56
|
'blockExplorerUrls': value.blockExplorerUrls,
|
|
56
57
|
'vanityName': value.vanityName,
|
|
57
58
|
'bech32Prefix': value.bech32Prefix,
|
|
59
|
+
'genesisHash': value.genesisHash,
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
|
|
@@ -107,6 +107,12 @@ export interface NetworkConfiguration {
|
|
|
107
107
|
* @memberof NetworkConfiguration
|
|
108
108
|
*/
|
|
109
109
|
bech32Prefix?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof NetworkConfiguration
|
|
114
|
+
*/
|
|
115
|
+
genesisHash?: string;
|
|
110
116
|
}
|
|
111
117
|
export declare function NetworkConfigurationFromJSON(json: any): NetworkConfiguration;
|
|
112
118
|
export declare function NetworkConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkConfiguration;
|
|
@@ -26,6 +26,7 @@ function NetworkConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
'blockExplorerUrls': json['blockExplorerUrls'],
|
|
27
27
|
'vanityName': !exists(json, 'vanityName') ? undefined : json['vanityName'],
|
|
28
28
|
'bech32Prefix': !exists(json, 'bech32Prefix') ? undefined : json['bech32Prefix'],
|
|
29
|
+
'genesisHash': !exists(json, 'genesisHash') ? undefined : json['genesisHash'],
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
function NetworkConfigurationToJSON(value) {
|
|
@@ -51,6 +52,7 @@ function NetworkConfigurationToJSON(value) {
|
|
|
51
52
|
'blockExplorerUrls': value.blockExplorerUrls,
|
|
52
53
|
'vanityName': value.vanityName,
|
|
53
54
|
'bech32Prefix': value.bech32Prefix,
|
|
55
|
+
'genesisHash': value.genesisHash,
|
|
54
56
|
};
|
|
55
57
|
}
|
|
56
58
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function RecoverMultipleClientKeySharesRequestFromJSON(json) {
|
|
9
|
+
return RecoverMultipleClientKeySharesRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function RecoverMultipleClientKeySharesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'keyShareIds': !runtime.exists(json, 'keyShareIds') ? undefined : json['keyShareIds'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function RecoverMultipleClientKeySharesRequestToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'keyShareIds': value.keyShareIds,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.RecoverMultipleClientKeySharesRequestFromJSON = RecoverMultipleClientKeySharesRequestFromJSON;
|
|
32
|
+
exports.RecoverMultipleClientKeySharesRequestFromJSONTyped = RecoverMultipleClientKeySharesRequestFromJSONTyped;
|
|
33
|
+
exports.RecoverMultipleClientKeySharesRequestToJSON = RecoverMultipleClientKeySharesRequestToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RecoverMultipleClientKeySharesRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RecoverMultipleClientKeySharesRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof RecoverMultipleClientKeySharesRequest
|
|
22
|
+
*/
|
|
23
|
+
keyShareIds?: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
export declare function RecoverMultipleClientKeySharesRequestFromJSON(json: any): RecoverMultipleClientKeySharesRequest;
|
|
26
|
+
export declare function RecoverMultipleClientKeySharesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoverMultipleClientKeySharesRequest;
|
|
27
|
+
export declare function RecoverMultipleClientKeySharesRequestToJSON(value?: RecoverMultipleClientKeySharesRequest | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function RecoverMultipleClientKeySharesRequestFromJSON(json) {
|
|
5
|
+
return RecoverMultipleClientKeySharesRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function RecoverMultipleClientKeySharesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'keyShareIds': !exists(json, 'keyShareIds') ? undefined : json['keyShareIds'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function RecoverMultipleClientKeySharesRequestToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'keyShareIds': value.keyShareIds,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { RecoverMultipleClientKeySharesRequestFromJSON, RecoverMultipleClientKeySharesRequestFromJSONTyped, RecoverMultipleClientKeySharesRequestToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var WalletKeyShareInfoWithEncryptedAccountCredential = require('./WalletKeyShareInfoWithEncryptedAccountCredential.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function RecoverMultipleClientKeySharesResponseFromJSON(json) {
|
|
9
|
+
return RecoverMultipleClientKeySharesResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function RecoverMultipleClientKeySharesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'keyShares': (json['keyShares'].map(WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function RecoverMultipleClientKeySharesResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'keyShares': (value.keyShares.map(WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.RecoverMultipleClientKeySharesResponseFromJSON = RecoverMultipleClientKeySharesResponseFromJSON;
|
|
32
|
+
exports.RecoverMultipleClientKeySharesResponseFromJSONTyped = RecoverMultipleClientKeySharesResponseFromJSONTyped;
|
|
33
|
+
exports.RecoverMultipleClientKeySharesResponseToJSON = RecoverMultipleClientKeySharesResponseToJSON;
|
|
@@ -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 { WalletKeyShareInfoWithEncryptedAccountCredential } from './WalletKeyShareInfoWithEncryptedAccountCredential';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RecoverMultipleClientKeySharesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RecoverMultipleClientKeySharesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<WalletKeyShareInfoWithEncryptedAccountCredential>}
|
|
22
|
+
* @memberof RecoverMultipleClientKeySharesResponse
|
|
23
|
+
*/
|
|
24
|
+
keyShares: Array<WalletKeyShareInfoWithEncryptedAccountCredential>;
|
|
25
|
+
}
|
|
26
|
+
export declare function RecoverMultipleClientKeySharesResponseFromJSON(json: any): RecoverMultipleClientKeySharesResponse;
|
|
27
|
+
export declare function RecoverMultipleClientKeySharesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoverMultipleClientKeySharesResponse;
|
|
28
|
+
export declare function RecoverMultipleClientKeySharesResponseToJSON(value?: RecoverMultipleClientKeySharesResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialToJSON } from './WalletKeyShareInfoWithEncryptedAccountCredential.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function RecoverMultipleClientKeySharesResponseFromJSON(json) {
|
|
5
|
+
return RecoverMultipleClientKeySharesResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function RecoverMultipleClientKeySharesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'keyShares': (json['keyShares'].map(WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function RecoverMultipleClientKeySharesResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'keyShares': (value.keyShares.map(WalletKeyShareInfoWithEncryptedAccountCredentialToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { RecoverMultipleClientKeySharesResponseFromJSON, RecoverMultipleClientKeySharesResponseFromJSONTyped, RecoverMultipleClientKeySharesResponseToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON(json) {
|
|
9
|
+
return WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'id': json['id'],
|
|
17
|
+
'backupLocation': json['backupLocation'],
|
|
18
|
+
'passwordEncrypted': json['passwordEncrypted'],
|
|
19
|
+
'encryptedAccountCredential': !runtime.exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': value.id,
|
|
31
|
+
'backupLocation': value.backupLocation,
|
|
32
|
+
'passwordEncrypted': value.passwordEncrypted,
|
|
33
|
+
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON = WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON;
|
|
38
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped = WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped;
|
|
39
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialToJSON = WalletKeyShareInfoWithEncryptedAccountCredentialToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WalletKeyShareInfoWithEncryptedAccountCredential
|
|
16
|
+
*/
|
|
17
|
+
export interface WalletKeyShareInfoWithEncryptedAccountCredential {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
28
|
+
*/
|
|
29
|
+
backupLocation: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
34
|
+
*/
|
|
35
|
+
passwordEncrypted: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* A string with a max length of 1024 characters
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
40
|
+
*/
|
|
41
|
+
encryptedAccountCredential?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON(json: any): WalletKeyShareInfoWithEncryptedAccountCredential;
|
|
44
|
+
export declare function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletKeyShareInfoWithEncryptedAccountCredential;
|
|
45
|
+
export declare function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value?: WalletKeyShareInfoWithEncryptedAccountCredential | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON(json) {
|
|
5
|
+
return WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'id': json['id'],
|
|
13
|
+
'backupLocation': json['backupLocation'],
|
|
14
|
+
'passwordEncrypted': json['passwordEncrypted'],
|
|
15
|
+
'encryptedAccountCredential': !exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'id': value.id,
|
|
27
|
+
'backupLocation': value.backupLocation,
|
|
28
|
+
'passwordEncrypted': value.passwordEncrypted,
|
|
29
|
+
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON(json) {
|
|
9
|
+
return WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'encryptedAccountCredential': !runtime.exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON = WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON;
|
|
32
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped = WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped;
|
|
33
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON = WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WalletKeyShareInfoWithEncryptedAccountCredentialAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface WalletKeyShareInfoWithEncryptedAccountCredentialAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* A string with a max length of 1024 characters
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredentialAllOf
|
|
22
|
+
*/
|
|
23
|
+
encryptedAccountCredential?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON(json: any): WalletKeyShareInfoWithEncryptedAccountCredentialAllOf;
|
|
26
|
+
export declare function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletKeyShareInfoWithEncryptedAccountCredentialAllOf;
|
|
27
|
+
export declare function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON(value?: WalletKeyShareInfoWithEncryptedAccountCredentialAllOf | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON(json) {
|
|
5
|
+
return WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'encryptedAccountCredential': !exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -188,7 +188,8 @@ export * from './PublicKeyCredentialUserEntity';
|
|
|
188
188
|
export * from './PublishEvents';
|
|
189
189
|
export * from './PublishEventsEvents';
|
|
190
190
|
export * from './ReactSettings';
|
|
191
|
-
export * from './
|
|
191
|
+
export * from './RecoverMultipleClientKeySharesRequest';
|
|
192
|
+
export * from './RecoverMultipleClientKeySharesResponse';
|
|
192
193
|
export * from './RefreshKeySharesRequest';
|
|
193
194
|
export * from './RegisterEmbeddedWalletSessionKeyResponse';
|
|
194
195
|
export * from './RegisterSessionKeyRequest';
|
|
@@ -267,5 +268,7 @@ export * from './WaasWalletProperties';
|
|
|
267
268
|
export * from './WalletAdditionalAddress';
|
|
268
269
|
export * from './WalletAddressType';
|
|
269
270
|
export * from './WalletKeyShareInfo';
|
|
271
|
+
export * from './WalletKeyShareInfoWithEncryptedAccountCredential';
|
|
272
|
+
export * from './WalletKeyShareInfoWithEncryptedAccountCredentialAllOf';
|
|
270
273
|
export * from './WalletProperties';
|
|
271
274
|
export * from './WalletProviderEnum';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
/* 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
|
-
function RecoverKeyshareResponseFromJSON(json) {
|
|
19
|
-
return RecoverKeyshareResponseFromJSONTyped(json);
|
|
20
|
-
}
|
|
21
|
-
function RecoverKeyshareResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'encryptedAccountCredential': json['encryptedAccountCredential'],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function RecoverKeyshareResponseToJSON(value) {
|
|
30
|
-
if (value === undefined) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
if (value === null) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.RecoverKeyshareResponseFromJSON = RecoverKeyshareResponseFromJSON;
|
|
42
|
-
exports.RecoverKeyshareResponseFromJSONTyped = RecoverKeyshareResponseFromJSONTyped;
|
|
43
|
-
exports.RecoverKeyshareResponseToJSON = RecoverKeyshareResponseToJSON;
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RecoverKeyshareResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface RecoverKeyshareResponse {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RecoverKeyshareResponse
|
|
22
|
-
*/
|
|
23
|
-
encryptedAccountCredential: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function RecoverKeyshareResponseFromJSON(json: any): RecoverKeyshareResponse;
|
|
26
|
-
export declare function RecoverKeyshareResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoverKeyshareResponse;
|
|
27
|
-
export declare function RecoverKeyshareResponseToJSON(value?: RecoverKeyshareResponse | null): any;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* 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
|
-
function RecoverKeyshareResponseFromJSON(json) {
|
|
15
|
-
return RecoverKeyshareResponseFromJSONTyped(json);
|
|
16
|
-
}
|
|
17
|
-
function RecoverKeyshareResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
if ((json === undefined) || (json === null)) {
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
'encryptedAccountCredential': json['encryptedAccountCredential'],
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function RecoverKeyshareResponseToJSON(value) {
|
|
26
|
-
if (value === undefined) {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { RecoverKeyshareResponseFromJSON, RecoverKeyshareResponseFromJSONTyped, RecoverKeyshareResponseToJSON };
|