@dynamic-labs/sdk-api 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
|
@@ -122,7 +122,8 @@ require('../models/SdkViewSectionType.cjs');
|
|
|
122
122
|
require('../models/SdkViewType.cjs');
|
|
123
123
|
var PublishEvents = require('../models/PublishEvents.cjs');
|
|
124
124
|
require('../models/PublishEventsEvents.cjs');
|
|
125
|
-
var
|
|
125
|
+
var RecoverMultipleClientKeySharesRequest = require('../models/RecoverMultipleClientKeySharesRequest.cjs');
|
|
126
|
+
var RecoverMultipleClientKeySharesResponse = require('../models/RecoverMultipleClientKeySharesResponse.cjs');
|
|
126
127
|
var RefreshKeySharesRequest = require('../models/RefreshKeySharesRequest.cjs');
|
|
127
128
|
var RegisterEmbeddedWalletSessionKeyResponse = require('../models/RegisterEmbeddedWalletSessionKeyResponse.cjs');
|
|
128
129
|
var RegisterSessionKeyRequest = require('../models/RegisterSessionKeyRequest.cjs');
|
|
@@ -3854,21 +3855,19 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3854
3855
|
});
|
|
3855
3856
|
}
|
|
3856
3857
|
/**
|
|
3857
|
-
* Recover
|
|
3858
|
+
* Recover multiple keyShares
|
|
3858
3859
|
*/
|
|
3859
|
-
|
|
3860
|
+
recoverKeySharesRaw(requestParameters, initOverrides) {
|
|
3860
3861
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3861
3862
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3862
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3863
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeyShares.');
|
|
3863
3864
|
}
|
|
3864
3865
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3865
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3866
|
-
}
|
|
3867
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3868
|
-
throw new runtime.RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshare.');
|
|
3866
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeyShares.');
|
|
3869
3867
|
}
|
|
3870
3868
|
const queryParameters = {};
|
|
3871
3869
|
const headerParameters = {};
|
|
3870
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3872
3871
|
if (this.configuration && this.configuration.accessToken) {
|
|
3873
3872
|
const token = this.configuration.accessToken;
|
|
3874
3873
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -3877,41 +3876,39 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3877
3876
|
}
|
|
3878
3877
|
}
|
|
3879
3878
|
const response = yield this.request({
|
|
3880
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3881
|
-
method: '
|
|
3879
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3880
|
+
method: 'POST',
|
|
3882
3881
|
headers: headerParameters,
|
|
3883
3882
|
query: queryParameters,
|
|
3883
|
+
body: RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestToJSON(requestParameters.recoverMultipleClientKeySharesRequest),
|
|
3884
3884
|
}, initOverrides);
|
|
3885
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3885
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
3886
3886
|
});
|
|
3887
3887
|
}
|
|
3888
3888
|
/**
|
|
3889
|
-
* Recover
|
|
3889
|
+
* Recover multiple keyShares
|
|
3890
3890
|
*/
|
|
3891
|
-
|
|
3891
|
+
recoverKeyShares(requestParameters, initOverrides) {
|
|
3892
3892
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3893
|
-
const response = yield this.
|
|
3893
|
+
const response = yield this.recoverKeySharesRaw(requestParameters, initOverrides);
|
|
3894
3894
|
return yield response.value();
|
|
3895
3895
|
});
|
|
3896
3896
|
}
|
|
3897
3897
|
/**
|
|
3898
3898
|
* Options call for this endpoint
|
|
3899
3899
|
*/
|
|
3900
|
-
|
|
3900
|
+
recoverKeySharesOptionsRaw(requestParameters, initOverrides) {
|
|
3901
3901
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3902
3902
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3903
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3903
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeySharesOptions.');
|
|
3904
3904
|
}
|
|
3905
3905
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3906
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3907
|
-
}
|
|
3908
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3909
|
-
throw new runtime.RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshareOptions.');
|
|
3906
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeySharesOptions.');
|
|
3910
3907
|
}
|
|
3911
3908
|
const queryParameters = {};
|
|
3912
3909
|
const headerParameters = {};
|
|
3913
3910
|
const response = yield this.request({
|
|
3914
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3911
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3915
3912
|
method: 'OPTIONS',
|
|
3916
3913
|
headers: headerParameters,
|
|
3917
3914
|
query: queryParameters,
|
|
@@ -3922,9 +3919,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3922
3919
|
/**
|
|
3923
3920
|
* Options call for this endpoint
|
|
3924
3921
|
*/
|
|
3925
|
-
|
|
3922
|
+
recoverKeySharesOptions(requestParameters, initOverrides) {
|
|
3926
3923
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3927
|
-
yield this.
|
|
3924
|
+
yield this.recoverKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
3928
3925
|
});
|
|
3929
3926
|
}
|
|
3930
3927
|
/**
|
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;
|
|
@@ -1639,21 +1638,21 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1639
1638
|
*/
|
|
1640
1639
|
publishEvent(requestParameters: PublishEventRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1641
1640
|
/**
|
|
1642
|
-
* Recover
|
|
1641
|
+
* Recover multiple keyShares
|
|
1643
1642
|
*/
|
|
1644
|
-
|
|
1643
|
+
recoverKeySharesRaw(requestParameters: RecoverKeySharesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RecoverMultipleClientKeySharesResponse>>;
|
|
1645
1644
|
/**
|
|
1646
|
-
* Recover
|
|
1645
|
+
* Recover multiple keyShares
|
|
1647
1646
|
*/
|
|
1648
|
-
|
|
1647
|
+
recoverKeyShares(requestParameters: RecoverKeySharesRequest, initOverrides?: RequestInit): Promise<RecoverMultipleClientKeySharesResponse>;
|
|
1649
1648
|
/**
|
|
1650
1649
|
* Options call for this endpoint
|
|
1651
1650
|
*/
|
|
1652
|
-
|
|
1651
|
+
recoverKeySharesOptionsRaw(requestParameters: RecoverKeySharesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1653
1652
|
/**
|
|
1654
1653
|
* Options call for this endpoint
|
|
1655
1654
|
*/
|
|
1656
|
-
|
|
1655
|
+
recoverKeySharesOptions(requestParameters: RecoverKeySharesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1657
1656
|
/**
|
|
1658
1657
|
* Options call for this endpoint
|
|
1659
1658
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -118,7 +118,8 @@ import '../models/SdkViewSectionType.js';
|
|
|
118
118
|
import '../models/SdkViewType.js';
|
|
119
119
|
import { PublishEventsToJSON } from '../models/PublishEvents.js';
|
|
120
120
|
import '../models/PublishEventsEvents.js';
|
|
121
|
-
import {
|
|
121
|
+
import { RecoverMultipleClientKeySharesRequestToJSON } from '../models/RecoverMultipleClientKeySharesRequest.js';
|
|
122
|
+
import { RecoverMultipleClientKeySharesResponseFromJSON } from '../models/RecoverMultipleClientKeySharesResponse.js';
|
|
122
123
|
import { RefreshKeySharesRequestToJSON } from '../models/RefreshKeySharesRequest.js';
|
|
123
124
|
import { RegisterEmbeddedWalletSessionKeyResponseFromJSON } from '../models/RegisterEmbeddedWalletSessionKeyResponse.js';
|
|
124
125
|
import { RegisterSessionKeyRequestToJSON } from '../models/RegisterSessionKeyRequest.js';
|
|
@@ -3850,21 +3851,19 @@ class SDKApi extends BaseAPI {
|
|
|
3850
3851
|
});
|
|
3851
3852
|
}
|
|
3852
3853
|
/**
|
|
3853
|
-
* Recover
|
|
3854
|
+
* Recover multiple keyShares
|
|
3854
3855
|
*/
|
|
3855
|
-
|
|
3856
|
+
recoverKeySharesRaw(requestParameters, initOverrides) {
|
|
3856
3857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3857
3858
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3858
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3859
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeyShares.');
|
|
3859
3860
|
}
|
|
3860
3861
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3861
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3862
|
-
}
|
|
3863
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3864
|
-
throw new RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshare.');
|
|
3862
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeyShares.');
|
|
3865
3863
|
}
|
|
3866
3864
|
const queryParameters = {};
|
|
3867
3865
|
const headerParameters = {};
|
|
3866
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3868
3867
|
if (this.configuration && this.configuration.accessToken) {
|
|
3869
3868
|
const token = this.configuration.accessToken;
|
|
3870
3869
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -3873,41 +3872,39 @@ class SDKApi extends BaseAPI {
|
|
|
3873
3872
|
}
|
|
3874
3873
|
}
|
|
3875
3874
|
const response = yield this.request({
|
|
3876
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3877
|
-
method: '
|
|
3875
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3876
|
+
method: 'POST',
|
|
3878
3877
|
headers: headerParameters,
|
|
3879
3878
|
query: queryParameters,
|
|
3879
|
+
body: RecoverMultipleClientKeySharesRequestToJSON(requestParameters.recoverMultipleClientKeySharesRequest),
|
|
3880
3880
|
}, initOverrides);
|
|
3881
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3881
|
+
return new JSONApiResponse(response, (jsonValue) => RecoverMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
3882
3882
|
});
|
|
3883
3883
|
}
|
|
3884
3884
|
/**
|
|
3885
|
-
* Recover
|
|
3885
|
+
* Recover multiple keyShares
|
|
3886
3886
|
*/
|
|
3887
|
-
|
|
3887
|
+
recoverKeyShares(requestParameters, initOverrides) {
|
|
3888
3888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3889
|
-
const response = yield this.
|
|
3889
|
+
const response = yield this.recoverKeySharesRaw(requestParameters, initOverrides);
|
|
3890
3890
|
return yield response.value();
|
|
3891
3891
|
});
|
|
3892
3892
|
}
|
|
3893
3893
|
/**
|
|
3894
3894
|
* Options call for this endpoint
|
|
3895
3895
|
*/
|
|
3896
|
-
|
|
3896
|
+
recoverKeySharesOptionsRaw(requestParameters, initOverrides) {
|
|
3897
3897
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3898
3898
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3899
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3899
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeySharesOptions.');
|
|
3900
3900
|
}
|
|
3901
3901
|
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
3902
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling
|
|
3903
|
-
}
|
|
3904
|
-
if (requestParameters.keyShareId === null || requestParameters.keyShareId === undefined) {
|
|
3905
|
-
throw new RequiredError('keyShareId', 'Required parameter requestParameters.keyShareId was null or undefined when calling recoverKeyshareOptions.');
|
|
3902
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeySharesOptions.');
|
|
3906
3903
|
}
|
|
3907
3904
|
const queryParameters = {};
|
|
3908
3905
|
const headerParameters = {};
|
|
3909
3906
|
const response = yield this.request({
|
|
3910
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3907
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3911
3908
|
method: 'OPTIONS',
|
|
3912
3909
|
headers: headerParameters,
|
|
3913
3910
|
query: queryParameters,
|
|
@@ -3918,9 +3915,9 @@ class SDKApi extends BaseAPI {
|
|
|
3918
3915
|
/**
|
|
3919
3916
|
* Options call for this endpoint
|
|
3920
3917
|
*/
|
|
3921
|
-
|
|
3918
|
+
recoverKeySharesOptions(requestParameters, initOverrides) {
|
|
3922
3919
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3923
|
-
yield this.
|
|
3920
|
+
yield this.recoverKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
3924
3921
|
});
|
|
3925
3922
|
}
|
|
3926
3923
|
/**
|
package/src/index.cjs
CHANGED
|
@@ -334,7 +334,8 @@ var PublicKeyCredentialUserEntity = require('./models/PublicKeyCredentialUserEnt
|
|
|
334
334
|
var PublishEvents = require('./models/PublishEvents.cjs');
|
|
335
335
|
var PublishEventsEvents = require('./models/PublishEventsEvents.cjs');
|
|
336
336
|
var ReactSettings = require('./models/ReactSettings.cjs');
|
|
337
|
-
var
|
|
337
|
+
var RecoverMultipleClientKeySharesRequest = require('./models/RecoverMultipleClientKeySharesRequest.cjs');
|
|
338
|
+
var RecoverMultipleClientKeySharesResponse = require('./models/RecoverMultipleClientKeySharesResponse.cjs');
|
|
338
339
|
var RefreshKeySharesRequest = require('./models/RefreshKeySharesRequest.cjs');
|
|
339
340
|
var RegisterEmbeddedWalletSessionKeyResponse = require('./models/RegisterEmbeddedWalletSessionKeyResponse.cjs');
|
|
340
341
|
var RegisterSessionKeyRequest = require('./models/RegisterSessionKeyRequest.cjs');
|
|
@@ -438,6 +439,8 @@ var Wallet = require('./models/Wallet.cjs');
|
|
|
438
439
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
439
440
|
var WalletAddressType = require('./models/WalletAddressType.cjs');
|
|
440
441
|
var WalletKeyShareInfo = require('./models/WalletKeyShareInfo.cjs');
|
|
442
|
+
var WalletKeyShareInfoWithEncryptedAccountCredential = require('./models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs');
|
|
443
|
+
var WalletKeyShareInfoWithEncryptedAccountCredentialAllOf = require('./models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.cjs');
|
|
441
444
|
var WalletProperties = require('./models/WalletProperties.cjs');
|
|
442
445
|
var WalletProviderEnum = require('./models/WalletProviderEnum.cjs');
|
|
443
446
|
var Webhook = require('./models/Webhook.cjs');
|
|
@@ -1585,9 +1588,12 @@ Object.defineProperty(exports, 'PublishEventsEventsTypeEnum', {
|
|
|
1585
1588
|
exports.ReactSettingsFromJSON = ReactSettings.ReactSettingsFromJSON;
|
|
1586
1589
|
exports.ReactSettingsFromJSONTyped = ReactSettings.ReactSettingsFromJSONTyped;
|
|
1587
1590
|
exports.ReactSettingsToJSON = ReactSettings.ReactSettingsToJSON;
|
|
1588
|
-
exports.
|
|
1589
|
-
exports.
|
|
1590
|
-
exports.
|
|
1591
|
+
exports.RecoverMultipleClientKeySharesRequestFromJSON = RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestFromJSON;
|
|
1592
|
+
exports.RecoverMultipleClientKeySharesRequestFromJSONTyped = RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestFromJSONTyped;
|
|
1593
|
+
exports.RecoverMultipleClientKeySharesRequestToJSON = RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestToJSON;
|
|
1594
|
+
exports.RecoverMultipleClientKeySharesResponseFromJSON = RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseFromJSON;
|
|
1595
|
+
exports.RecoverMultipleClientKeySharesResponseFromJSONTyped = RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseFromJSONTyped;
|
|
1596
|
+
exports.RecoverMultipleClientKeySharesResponseToJSON = RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseToJSON;
|
|
1591
1597
|
exports.RefreshKeySharesRequestFromJSON = RefreshKeySharesRequest.RefreshKeySharesRequestFromJSON;
|
|
1592
1598
|
exports.RefreshKeySharesRequestFromJSONTyped = RefreshKeySharesRequest.RefreshKeySharesRequestFromJSONTyped;
|
|
1593
1599
|
exports.RefreshKeySharesRequestToJSON = RefreshKeySharesRequest.RefreshKeySharesRequestToJSON;
|
|
@@ -1973,6 +1979,12 @@ exports.WalletAddressTypeToJSON = WalletAddressType.WalletAddressTypeToJSON;
|
|
|
1973
1979
|
exports.WalletKeyShareInfoFromJSON = WalletKeyShareInfo.WalletKeyShareInfoFromJSON;
|
|
1974
1980
|
exports.WalletKeyShareInfoFromJSONTyped = WalletKeyShareInfo.WalletKeyShareInfoFromJSONTyped;
|
|
1975
1981
|
exports.WalletKeyShareInfoToJSON = WalletKeyShareInfo.WalletKeyShareInfoToJSON;
|
|
1982
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON = WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON;
|
|
1983
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped = WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped;
|
|
1984
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialToJSON = WalletKeyShareInfoWithEncryptedAccountCredential.WalletKeyShareInfoWithEncryptedAccountCredentialToJSON;
|
|
1985
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON = WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON;
|
|
1986
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped = WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped;
|
|
1987
|
+
exports.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON = WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON;
|
|
1976
1988
|
exports.WalletPropertiesFromJSON = WalletProperties.WalletPropertiesFromJSON;
|
|
1977
1989
|
exports.WalletPropertiesFromJSONTyped = WalletProperties.WalletPropertiesFromJSONTyped;
|
|
1978
1990
|
exports.WalletPropertiesToJSON = WalletProperties.WalletPropertiesToJSON;
|
package/src/index.js
CHANGED
|
@@ -330,7 +330,8 @@ export { PublicKeyCredentialUserEntityFromJSON, PublicKeyCredentialUserEntityFro
|
|
|
330
330
|
export { PublishEventsFromJSON, PublishEventsFromJSONTyped, PublishEventsToJSON } from './models/PublishEvents.js';
|
|
331
331
|
export { PublishEventsEventsFromJSON, PublishEventsEventsFromJSONTyped, PublishEventsEventsToJSON, PublishEventsEventsTypeEnum } from './models/PublishEventsEvents.js';
|
|
332
332
|
export { ReactSettingsFromJSON, ReactSettingsFromJSONTyped, ReactSettingsToJSON } from './models/ReactSettings.js';
|
|
333
|
-
export {
|
|
333
|
+
export { RecoverMultipleClientKeySharesRequestFromJSON, RecoverMultipleClientKeySharesRequestFromJSONTyped, RecoverMultipleClientKeySharesRequestToJSON } from './models/RecoverMultipleClientKeySharesRequest.js';
|
|
334
|
+
export { RecoverMultipleClientKeySharesResponseFromJSON, RecoverMultipleClientKeySharesResponseFromJSONTyped, RecoverMultipleClientKeySharesResponseToJSON } from './models/RecoverMultipleClientKeySharesResponse.js';
|
|
334
335
|
export { RefreshKeySharesRequestFromJSON, RefreshKeySharesRequestFromJSONTyped, RefreshKeySharesRequestToJSON } from './models/RefreshKeySharesRequest.js';
|
|
335
336
|
export { RegisterEmbeddedWalletSessionKeyResponseFromJSON, RegisterEmbeddedWalletSessionKeyResponseFromJSONTyped, RegisterEmbeddedWalletSessionKeyResponseToJSON } from './models/RegisterEmbeddedWalletSessionKeyResponse.js';
|
|
336
337
|
export { RegisterSessionKeyRequestFromJSON, RegisterSessionKeyRequestFromJSONTyped, RegisterSessionKeyRequestToJSON } from './models/RegisterSessionKeyRequest.js';
|
|
@@ -434,6 +435,8 @@ export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wall
|
|
|
434
435
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
|
435
436
|
export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
|
|
436
437
|
export { WalletKeyShareInfoFromJSON, WalletKeyShareInfoFromJSONTyped, WalletKeyShareInfoToJSON } from './models/WalletKeyShareInfo.js';
|
|
438
|
+
export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredential.js';
|
|
439
|
+
export { WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.js';
|
|
437
440
|
export { WalletPropertiesFromJSON, WalletPropertiesFromJSONTyped, WalletPropertiesToJSON } from './models/WalletProperties.js';
|
|
438
441
|
export { WalletProviderEnum, WalletProviderEnumFromJSON, WalletProviderEnumFromJSONTyped, WalletProviderEnumToJSON } from './models/WalletProviderEnum.js';
|
|
439
442
|
export { WebhookFromJSON, WebhookFromJSONTyped, WebhookToJSON } from './models/Webhook.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
|
@@ -297,7 +297,8 @@ export * from './PublicKeyCredentialUserEntity';
|
|
|
297
297
|
export * from './PublishEvents';
|
|
298
298
|
export * from './PublishEventsEvents';
|
|
299
299
|
export * from './ReactSettings';
|
|
300
|
-
export * from './
|
|
300
|
+
export * from './RecoverMultipleClientKeySharesRequest';
|
|
301
|
+
export * from './RecoverMultipleClientKeySharesResponse';
|
|
301
302
|
export * from './RefreshKeySharesRequest';
|
|
302
303
|
export * from './RegisterEmbeddedWalletSessionKeyResponse';
|
|
303
304
|
export * from './RegisterSessionKeyRequest';
|
|
@@ -401,6 +402,8 @@ export * from './Wallet';
|
|
|
401
402
|
export * from './WalletAdditionalAddress';
|
|
402
403
|
export * from './WalletAddressType';
|
|
403
404
|
export * from './WalletKeyShareInfo';
|
|
405
|
+
export * from './WalletKeyShareInfoWithEncryptedAccountCredential';
|
|
406
|
+
export * from './WalletKeyShareInfoWithEncryptedAccountCredentialAllOf';
|
|
404
407
|
export * from './WalletProperties';
|
|
405
408
|
export * from './WalletProviderEnum';
|
|
406
409
|
export * from './Webhook';
|
|
@@ -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 };
|