@dynamic-labs/sdk-api 0.0.612 → 0.0.614
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 +22 -31
- package/src/apis/SDKApi.d.ts +10 -13
- package/src/apis/SDKApi.js +22 -31
- package/src/index.cjs +16 -4
- package/src/index.js +4 -1
- package/src/models/ImportWaasPrivateKeyRequest.cjs +8 -5
- package/src/models/ImportWaasPrivateKeyRequest.d.ts +7 -0
- package/src/models/ImportWaasPrivateKeyRequest.js +8 -5
- 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');
|
|
@@ -2638,9 +2639,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2638
2639
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2639
2640
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
|
|
2640
2641
|
}
|
|
2641
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2642
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
|
|
2643
|
-
}
|
|
2644
2642
|
if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
|
|
2645
2643
|
throw new runtime.RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
|
|
2646
2644
|
}
|
|
@@ -2655,7 +2653,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2655
2653
|
}
|
|
2656
2654
|
}
|
|
2657
2655
|
const response = yield this.request({
|
|
2658
|
-
path: `/sdk/{environmentId}/waas/
|
|
2656
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2659
2657
|
method: 'POST',
|
|
2660
2658
|
headers: headerParameters,
|
|
2661
2659
|
query: queryParameters,
|
|
@@ -2682,13 +2680,10 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2682
2680
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2683
2681
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
|
|
2684
2682
|
}
|
|
2685
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2686
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
|
|
2687
|
-
}
|
|
2688
2683
|
const queryParameters = {};
|
|
2689
2684
|
const headerParameters = {};
|
|
2690
2685
|
const response = yield this.request({
|
|
2691
|
-
path: `/sdk/{environmentId}/waas/
|
|
2686
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2692
2687
|
method: 'OPTIONS',
|
|
2693
2688
|
headers: headerParameters,
|
|
2694
2689
|
query: queryParameters,
|
|
@@ -3854,21 +3849,19 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3854
3849
|
});
|
|
3855
3850
|
}
|
|
3856
3851
|
/**
|
|
3857
|
-
* Recover
|
|
3852
|
+
* Recover multiple keyShares
|
|
3858
3853
|
*/
|
|
3859
|
-
|
|
3854
|
+
recoverKeySharesRaw(requestParameters, initOverrides) {
|
|
3860
3855
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3861
3856
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3862
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3857
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeyShares.');
|
|
3863
3858
|
}
|
|
3864
3859
|
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.');
|
|
3860
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeyShares.');
|
|
3869
3861
|
}
|
|
3870
3862
|
const queryParameters = {};
|
|
3871
3863
|
const headerParameters = {};
|
|
3864
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3872
3865
|
if (this.configuration && this.configuration.accessToken) {
|
|
3873
3866
|
const token = this.configuration.accessToken;
|
|
3874
3867
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -3877,41 +3870,39 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3877
3870
|
}
|
|
3878
3871
|
}
|
|
3879
3872
|
const response = yield this.request({
|
|
3880
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3881
|
-
method: '
|
|
3873
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3874
|
+
method: 'POST',
|
|
3882
3875
|
headers: headerParameters,
|
|
3883
3876
|
query: queryParameters,
|
|
3877
|
+
body: RecoverMultipleClientKeySharesRequest.RecoverMultipleClientKeySharesRequestToJSON(requestParameters.recoverMultipleClientKeySharesRequest),
|
|
3884
3878
|
}, initOverrides);
|
|
3885
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3879
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RecoverMultipleClientKeySharesResponse.RecoverMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
3886
3880
|
});
|
|
3887
3881
|
}
|
|
3888
3882
|
/**
|
|
3889
|
-
* Recover
|
|
3883
|
+
* Recover multiple keyShares
|
|
3890
3884
|
*/
|
|
3891
|
-
|
|
3885
|
+
recoverKeyShares(requestParameters, initOverrides) {
|
|
3892
3886
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3893
|
-
const response = yield this.
|
|
3887
|
+
const response = yield this.recoverKeySharesRaw(requestParameters, initOverrides);
|
|
3894
3888
|
return yield response.value();
|
|
3895
3889
|
});
|
|
3896
3890
|
}
|
|
3897
3891
|
/**
|
|
3898
3892
|
* Options call for this endpoint
|
|
3899
3893
|
*/
|
|
3900
|
-
|
|
3894
|
+
recoverKeySharesOptionsRaw(requestParameters, initOverrides) {
|
|
3901
3895
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3902
3896
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3903
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3897
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeySharesOptions.');
|
|
3904
3898
|
}
|
|
3905
3899
|
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.');
|
|
3900
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeySharesOptions.');
|
|
3910
3901
|
}
|
|
3911
3902
|
const queryParameters = {};
|
|
3912
3903
|
const headerParameters = {};
|
|
3913
3904
|
const response = yield this.request({
|
|
3914
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3905
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3915
3906
|
method: 'OPTIONS',
|
|
3916
3907
|
headers: headerParameters,
|
|
3917
3908
|
query: queryParameters,
|
|
@@ -3922,9 +3913,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3922
3913
|
/**
|
|
3923
3914
|
* Options call for this endpoint
|
|
3924
3915
|
*/
|
|
3925
|
-
|
|
3916
|
+
recoverKeySharesOptions(requestParameters, initOverrides) {
|
|
3926
3917
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3927
|
-
yield this.
|
|
3918
|
+
yield this.recoverKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
3928
3919
|
});
|
|
3929
3920
|
}
|
|
3930
3921
|
/**
|
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;
|
|
@@ -277,12 +277,10 @@ export interface GlobalWalletsSettingsOptionsRequest {
|
|
|
277
277
|
}
|
|
278
278
|
export interface ImportPrivateKeyRequest {
|
|
279
279
|
environmentId: string;
|
|
280
|
-
walletId: string;
|
|
281
280
|
importWaasPrivateKeyRequest: ImportWaasPrivateKeyRequest;
|
|
282
281
|
}
|
|
283
282
|
export interface ImportPrivateKeyOptionsRequest {
|
|
284
283
|
environmentId: string;
|
|
285
|
-
walletId: string;
|
|
286
284
|
}
|
|
287
285
|
export interface InitAuthRequest {
|
|
288
286
|
environmentId: string;
|
|
@@ -429,15 +427,14 @@ export interface PublishEventRequest {
|
|
|
429
427
|
environmentId: string;
|
|
430
428
|
publishEvents: PublishEvents;
|
|
431
429
|
}
|
|
432
|
-
export interface
|
|
430
|
+
export interface RecoverKeySharesRequest {
|
|
433
431
|
environmentId: string;
|
|
434
432
|
walletId: string;
|
|
435
|
-
|
|
433
|
+
recoverMultipleClientKeySharesRequest?: RecoverMultipleClientKeySharesRequest;
|
|
436
434
|
}
|
|
437
|
-
export interface
|
|
435
|
+
export interface RecoverKeySharesOptionsRequest {
|
|
438
436
|
environmentId: string;
|
|
439
437
|
walletId: string;
|
|
440
|
-
keyShareId: string;
|
|
441
438
|
}
|
|
442
439
|
export interface RecoveryCodesOptionsRequest {
|
|
443
440
|
environmentId: string;
|
|
@@ -1639,21 +1636,21 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1639
1636
|
*/
|
|
1640
1637
|
publishEvent(requestParameters: PublishEventRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1641
1638
|
/**
|
|
1642
|
-
* Recover
|
|
1639
|
+
* Recover multiple keyShares
|
|
1643
1640
|
*/
|
|
1644
|
-
|
|
1641
|
+
recoverKeySharesRaw(requestParameters: RecoverKeySharesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RecoverMultipleClientKeySharesResponse>>;
|
|
1645
1642
|
/**
|
|
1646
|
-
* Recover
|
|
1643
|
+
* Recover multiple keyShares
|
|
1647
1644
|
*/
|
|
1648
|
-
|
|
1645
|
+
recoverKeyShares(requestParameters: RecoverKeySharesRequest, initOverrides?: RequestInit): Promise<RecoverMultipleClientKeySharesResponse>;
|
|
1649
1646
|
/**
|
|
1650
1647
|
* Options call for this endpoint
|
|
1651
1648
|
*/
|
|
1652
|
-
|
|
1649
|
+
recoverKeySharesOptionsRaw(requestParameters: RecoverKeySharesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1653
1650
|
/**
|
|
1654
1651
|
* Options call for this endpoint
|
|
1655
1652
|
*/
|
|
1656
|
-
|
|
1653
|
+
recoverKeySharesOptions(requestParameters: RecoverKeySharesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1657
1654
|
/**
|
|
1658
1655
|
* Options call for this endpoint
|
|
1659
1656
|
*/
|
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';
|
|
@@ -2634,9 +2635,6 @@ class SDKApi extends BaseAPI {
|
|
|
2634
2635
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2635
2636
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
|
|
2636
2637
|
}
|
|
2637
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2638
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
|
|
2639
|
-
}
|
|
2640
2638
|
if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
|
|
2641
2639
|
throw new RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
|
|
2642
2640
|
}
|
|
@@ -2651,7 +2649,7 @@ class SDKApi extends BaseAPI {
|
|
|
2651
2649
|
}
|
|
2652
2650
|
}
|
|
2653
2651
|
const response = yield this.request({
|
|
2654
|
-
path: `/sdk/{environmentId}/waas/
|
|
2652
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2655
2653
|
method: 'POST',
|
|
2656
2654
|
headers: headerParameters,
|
|
2657
2655
|
query: queryParameters,
|
|
@@ -2678,13 +2676,10 @@ class SDKApi extends BaseAPI {
|
|
|
2678
2676
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2679
2677
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
|
|
2680
2678
|
}
|
|
2681
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2682
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
|
|
2683
|
-
}
|
|
2684
2679
|
const queryParameters = {};
|
|
2685
2680
|
const headerParameters = {};
|
|
2686
2681
|
const response = yield this.request({
|
|
2687
|
-
path: `/sdk/{environmentId}/waas/
|
|
2682
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2688
2683
|
method: 'OPTIONS',
|
|
2689
2684
|
headers: headerParameters,
|
|
2690
2685
|
query: queryParameters,
|
|
@@ -3850,21 +3845,19 @@ class SDKApi extends BaseAPI {
|
|
|
3850
3845
|
});
|
|
3851
3846
|
}
|
|
3852
3847
|
/**
|
|
3853
|
-
* Recover
|
|
3848
|
+
* Recover multiple keyShares
|
|
3854
3849
|
*/
|
|
3855
|
-
|
|
3850
|
+
recoverKeySharesRaw(requestParameters, initOverrides) {
|
|
3856
3851
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3857
3852
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3858
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3853
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeyShares.');
|
|
3859
3854
|
}
|
|
3860
3855
|
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.');
|
|
3856
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeyShares.');
|
|
3865
3857
|
}
|
|
3866
3858
|
const queryParameters = {};
|
|
3867
3859
|
const headerParameters = {};
|
|
3860
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3868
3861
|
if (this.configuration && this.configuration.accessToken) {
|
|
3869
3862
|
const token = this.configuration.accessToken;
|
|
3870
3863
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -3873,41 +3866,39 @@ class SDKApi extends BaseAPI {
|
|
|
3873
3866
|
}
|
|
3874
3867
|
}
|
|
3875
3868
|
const response = yield this.request({
|
|
3876
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3877
|
-
method: '
|
|
3869
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3870
|
+
method: 'POST',
|
|
3878
3871
|
headers: headerParameters,
|
|
3879
3872
|
query: queryParameters,
|
|
3873
|
+
body: RecoverMultipleClientKeySharesRequestToJSON(requestParameters.recoverMultipleClientKeySharesRequest),
|
|
3880
3874
|
}, initOverrides);
|
|
3881
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3875
|
+
return new JSONApiResponse(response, (jsonValue) => RecoverMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
3882
3876
|
});
|
|
3883
3877
|
}
|
|
3884
3878
|
/**
|
|
3885
|
-
* Recover
|
|
3879
|
+
* Recover multiple keyShares
|
|
3886
3880
|
*/
|
|
3887
|
-
|
|
3881
|
+
recoverKeyShares(requestParameters, initOverrides) {
|
|
3888
3882
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3889
|
-
const response = yield this.
|
|
3883
|
+
const response = yield this.recoverKeySharesRaw(requestParameters, initOverrides);
|
|
3890
3884
|
return yield response.value();
|
|
3891
3885
|
});
|
|
3892
3886
|
}
|
|
3893
3887
|
/**
|
|
3894
3888
|
* Options call for this endpoint
|
|
3895
3889
|
*/
|
|
3896
|
-
|
|
3890
|
+
recoverKeySharesOptionsRaw(requestParameters, initOverrides) {
|
|
3897
3891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3898
3892
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3899
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling
|
|
3893
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverKeySharesOptions.');
|
|
3900
3894
|
}
|
|
3901
3895
|
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.');
|
|
3896
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling recoverKeySharesOptions.');
|
|
3906
3897
|
}
|
|
3907
3898
|
const queryParameters = {};
|
|
3908
3899
|
const headerParameters = {};
|
|
3909
3900
|
const response = yield this.request({
|
|
3910
|
-
path: `/sdk/{environmentId}/waas/{walletId}/
|
|
3901
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
3911
3902
|
method: 'OPTIONS',
|
|
3912
3903
|
headers: headerParameters,
|
|
3913
3904
|
query: queryParameters,
|
|
@@ -3918,9 +3909,9 @@ class SDKApi extends BaseAPI {
|
|
|
3918
3909
|
/**
|
|
3919
3910
|
* Options call for this endpoint
|
|
3920
3911
|
*/
|
|
3921
|
-
|
|
3912
|
+
recoverKeySharesOptions(requestParameters, initOverrides) {
|
|
3922
3913
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3923
|
-
yield this.
|
|
3914
|
+
yield this.recoverKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
3924
3915
|
});
|
|
3925
3916
|
}
|
|
3926
3917
|
/**
|
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';
|
|
@@ -3,18 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
|
+
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function ImportWaasPrivateKeyRequestFromJSON(json) {
|
|
9
10
|
return ImportWaasPrivateKeyRequestFromJSONTyped(json);
|
|
10
11
|
}
|
|
11
12
|
function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if (
|
|
13
|
+
if (json === undefined || json === null) {
|
|
13
14
|
return json;
|
|
14
15
|
}
|
|
15
16
|
return {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
chain: ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
18
|
+
clientKeygenIds: json['clientKeygenIds'],
|
|
19
|
+
thresholdSignatureScheme: ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -25,8 +27,9 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
25
27
|
return null;
|
|
26
28
|
}
|
|
27
29
|
return {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
chain: ChainEnum.ChainEnumToJSON(value.chain),
|
|
31
|
+
clientKeygenIds: value.clientKeygenIds,
|
|
32
|
+
thresholdSignatureScheme: ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -28,6 +29,12 @@ export interface ImportWaasPrivateKeyRequest {
|
|
|
28
29
|
* @memberof ImportWaasPrivateKeyRequest
|
|
29
30
|
*/
|
|
30
31
|
clientKeygenIds: Array<string>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ThresholdSignatureScheme}
|
|
35
|
+
* @memberof ImportWaasPrivateKeyRequest
|
|
36
|
+
*/
|
|
37
|
+
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
31
38
|
}
|
|
32
39
|
export declare function ImportWaasPrivateKeyRequestFromJSON(json: any): ImportWaasPrivateKeyRequest;
|
|
33
40
|
export declare function ImportWaasPrivateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportWaasPrivateKeyRequest;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
|
+
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function ImportWaasPrivateKeyRequestFromJSON(json) {
|
|
5
6
|
return ImportWaasPrivateKeyRequestFromJSONTyped(json);
|
|
6
7
|
}
|
|
7
8
|
function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
-
if (
|
|
9
|
+
if (json === undefined || json === null) {
|
|
9
10
|
return json;
|
|
10
11
|
}
|
|
11
12
|
return {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
chain: ChainEnumFromJSON(json['chain']),
|
|
14
|
+
clientKeygenIds: json['clientKeygenIds'],
|
|
15
|
+
thresholdSignatureScheme: ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -21,8 +23,9 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
21
23
|
return null;
|
|
22
24
|
}
|
|
23
25
|
return {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
chain: ChainEnumToJSON(value.chain),
|
|
27
|
+
clientKeygenIds: value.clientKeygenIds,
|
|
28
|
+
thresholdSignatureScheme: ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
|
|
@@ -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 };
|