@dynamic-labs/sdk-api 0.0.630 → 0.0.632
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 +72 -1
- package/src/apis/SDKApi.d.ts +31 -5
- package/src/apis/SDKApi.js +72 -1
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/OpenRoomResponse.cjs +2 -0
- package/src/models/OpenRoomResponse.d.ts +6 -0
- package/src/models/OpenRoomResponse.js +2 -0
- package/src/models/OpenRoomResponseForReshare.cjs +39 -0
- package/src/models/OpenRoomResponseForReshare.d.ts +45 -0
- package/src/models/OpenRoomResponseForReshare.js +33 -0
- package/src/models/OpenRoomResponseWithServerKeygenIds.cjs +2 -0
- package/src/models/OpenRoomResponseWithServerKeygenIds.d.ts +6 -0
- package/src/models/OpenRoomResponseWithServerKeygenIds.js +2 -0
- package/src/models/ReshareRequest.cjs +4 -3
- package/src/models/ReshareRequest.d.ts +7 -1
- package/src/models/ReshareRequest.js +4 -3
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -112,6 +112,7 @@ var OauthResultRequest = require('../models/OauthResultRequest.cjs');
|
|
|
112
112
|
var OauthResultResponse = require('../models/OauthResultResponse.cjs');
|
|
113
113
|
require('../models/OauthResultStatus.cjs');
|
|
114
114
|
var OpenRoomResponse = require('../models/OpenRoomResponse.cjs');
|
|
115
|
+
var OpenRoomResponseForReshare = require('../models/OpenRoomResponseForReshare.cjs');
|
|
115
116
|
var OpenRoomResponseWithServerKeygenIds = require('../models/OpenRoomResponseWithServerKeygenIds.cjs');
|
|
116
117
|
require('../models/WhenToImplementEnum.cjs');
|
|
117
118
|
var PrefetchRequest = require('../models/PrefetchRequest.cjs');
|
|
@@ -476,6 +477,74 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
476
477
|
yield this.backupKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
477
478
|
});
|
|
478
479
|
}
|
|
480
|
+
/**
|
|
481
|
+
* Backup multiple keyShares for a waaS wallet to Google Drive
|
|
482
|
+
*/
|
|
483
|
+
backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides) {
|
|
484
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
485
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
486
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDrive.');
|
|
487
|
+
}
|
|
488
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
489
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDrive.');
|
|
490
|
+
}
|
|
491
|
+
const queryParameters = {};
|
|
492
|
+
const headerParameters = {};
|
|
493
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
494
|
+
const token = this.configuration.accessToken;
|
|
495
|
+
const tokenString = yield token("bearerAuth", []);
|
|
496
|
+
if (tokenString) {
|
|
497
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
const response = yield this.request({
|
|
501
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
502
|
+
method: 'POST',
|
|
503
|
+
headers: headerParameters,
|
|
504
|
+
query: queryParameters,
|
|
505
|
+
}, initOverrides);
|
|
506
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BackupMultipleClientKeySharesResponse.BackupMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Backup multiple keyShares for a waaS wallet to Google Drive
|
|
511
|
+
*/
|
|
512
|
+
backupKeySharesToGoogleDrive(requestParameters, initOverrides) {
|
|
513
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
const response = yield this.backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides);
|
|
515
|
+
return yield response.value();
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Options call for this endpoint
|
|
520
|
+
*/
|
|
521
|
+
backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides) {
|
|
522
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
523
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
524
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
|
|
525
|
+
}
|
|
526
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
527
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
|
|
528
|
+
}
|
|
529
|
+
const queryParameters = {};
|
|
530
|
+
const headerParameters = {};
|
|
531
|
+
const response = yield this.request({
|
|
532
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
533
|
+
method: 'OPTIONS',
|
|
534
|
+
headers: headerParameters,
|
|
535
|
+
query: queryParameters,
|
|
536
|
+
}, initOverrides);
|
|
537
|
+
return new runtime.VoidApiResponse(response);
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Options call for this endpoint
|
|
542
|
+
*/
|
|
543
|
+
backupKeySharesToGoogleDriveOptions(requestParameters, initOverrides) {
|
|
544
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
545
|
+
yield this.backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides);
|
|
546
|
+
});
|
|
547
|
+
}
|
|
479
548
|
/**
|
|
480
549
|
* Claim a pregenerated embedded wallet
|
|
481
550
|
*/
|
|
@@ -4472,7 +4541,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4472
4541
|
query: queryParameters,
|
|
4473
4542
|
body: ReshareRequest.ReshareRequestToJSON(requestParameters.reshareRequest),
|
|
4474
4543
|
}, initOverrides);
|
|
4475
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
4544
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OpenRoomResponseForReshare.OpenRoomResponseForReshareFromJSON(jsonValue));
|
|
4476
4545
|
});
|
|
4477
4546
|
}
|
|
4478
4547
|
/**
|
|
@@ -6373,6 +6442,7 @@ exports.GetAccountBalancesChainNameEnum = void 0;
|
|
|
6373
6442
|
(function (GetAccountBalancesChainNameEnum) {
|
|
6374
6443
|
GetAccountBalancesChainNameEnum["Evm"] = "EVM";
|
|
6375
6444
|
GetAccountBalancesChainNameEnum["Sol"] = "SOL";
|
|
6445
|
+
GetAccountBalancesChainNameEnum["Btc"] = "BTC";
|
|
6376
6446
|
})(exports.GetAccountBalancesChainNameEnum || (exports.GetAccountBalancesChainNameEnum = {}));
|
|
6377
6447
|
/**
|
|
6378
6448
|
* @export
|
|
@@ -6382,6 +6452,7 @@ exports.GetAccountBalancesOptionsChainNameEnum = void 0;
|
|
|
6382
6452
|
(function (GetAccountBalancesOptionsChainNameEnum) {
|
|
6383
6453
|
GetAccountBalancesOptionsChainNameEnum["Evm"] = "EVM";
|
|
6384
6454
|
GetAccountBalancesOptionsChainNameEnum["Sol"] = "SOL";
|
|
6455
|
+
GetAccountBalancesOptionsChainNameEnum["Btc"] = "BTC";
|
|
6385
6456
|
})(exports.GetAccountBalancesOptionsChainNameEnum || (exports.GetAccountBalancesOptionsChainNameEnum = {}));
|
|
6386
6457
|
|
|
6387
6458
|
exports.SDKApi = SDKApi;
|
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, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, 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';
|
|
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, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, 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;
|
|
@@ -44,6 +44,14 @@ export interface BackupKeySharesOptionsRequest {
|
|
|
44
44
|
environmentId: string;
|
|
45
45
|
walletId: string;
|
|
46
46
|
}
|
|
47
|
+
export interface BackupKeySharesToGoogleDriveRequest {
|
|
48
|
+
environmentId: string;
|
|
49
|
+
walletId: string;
|
|
50
|
+
}
|
|
51
|
+
export interface BackupKeySharesToGoogleDriveOptionsRequest {
|
|
52
|
+
environmentId: string;
|
|
53
|
+
walletId: string;
|
|
54
|
+
}
|
|
47
55
|
export interface ClaimEmbeddedWalletRequest {
|
|
48
56
|
environmentId: string;
|
|
49
57
|
embeddedWalletPasscodeClaimRequest: EmbeddedWalletPasscodeClaimRequest;
|
|
@@ -781,6 +789,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
781
789
|
* Options call for this endpoint
|
|
782
790
|
*/
|
|
783
791
|
backupKeySharesOptions(requestParameters: BackupKeySharesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
792
|
+
/**
|
|
793
|
+
* Backup multiple keyShares for a waaS wallet to Google Drive
|
|
794
|
+
*/
|
|
795
|
+
backupKeySharesToGoogleDriveRaw(requestParameters: BackupKeySharesToGoogleDriveRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BackupMultipleClientKeySharesResponse>>;
|
|
796
|
+
/**
|
|
797
|
+
* Backup multiple keyShares for a waaS wallet to Google Drive
|
|
798
|
+
*/
|
|
799
|
+
backupKeySharesToGoogleDrive(requestParameters: BackupKeySharesToGoogleDriveRequest, initOverrides?: RequestInit): Promise<BackupMultipleClientKeySharesResponse>;
|
|
800
|
+
/**
|
|
801
|
+
* Options call for this endpoint
|
|
802
|
+
*/
|
|
803
|
+
backupKeySharesToGoogleDriveOptionsRaw(requestParameters: BackupKeySharesToGoogleDriveOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
804
|
+
/**
|
|
805
|
+
* Options call for this endpoint
|
|
806
|
+
*/
|
|
807
|
+
backupKeySharesToGoogleDriveOptions(requestParameters: BackupKeySharesToGoogleDriveOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
784
808
|
/**
|
|
785
809
|
* Claim a pregenerated embedded wallet
|
|
786
810
|
*/
|
|
@@ -1796,11 +1820,11 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1796
1820
|
/**
|
|
1797
1821
|
* Reshare secret shares and update the threshold
|
|
1798
1822
|
*/
|
|
1799
|
-
reshareRaw(requestParameters: ReshareOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
1823
|
+
reshareRaw(requestParameters: ReshareOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OpenRoomResponseForReshare>>;
|
|
1800
1824
|
/**
|
|
1801
1825
|
* Reshare secret shares and update the threshold
|
|
1802
1826
|
*/
|
|
1803
|
-
reshare(requestParameters: ReshareOperationRequest, initOverrides?: RequestInit): Promise<
|
|
1827
|
+
reshare(requestParameters: ReshareOperationRequest, initOverrides?: RequestInit): Promise<OpenRoomResponseForReshare>;
|
|
1804
1828
|
/**
|
|
1805
1829
|
* Options call for this endpoint
|
|
1806
1830
|
*/
|
|
@@ -2296,7 +2320,8 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2296
2320
|
*/
|
|
2297
2321
|
export declare enum GetAccountBalancesChainNameEnum {
|
|
2298
2322
|
Evm = "EVM",
|
|
2299
|
-
Sol = "SOL"
|
|
2323
|
+
Sol = "SOL",
|
|
2324
|
+
Btc = "BTC"
|
|
2300
2325
|
}
|
|
2301
2326
|
/**
|
|
2302
2327
|
* @export
|
|
@@ -2304,5 +2329,6 @@ export declare enum GetAccountBalancesChainNameEnum {
|
|
|
2304
2329
|
*/
|
|
2305
2330
|
export declare enum GetAccountBalancesOptionsChainNameEnum {
|
|
2306
2331
|
Evm = "EVM",
|
|
2307
|
-
Sol = "SOL"
|
|
2332
|
+
Sol = "SOL",
|
|
2333
|
+
Btc = "BTC"
|
|
2308
2334
|
}
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -108,6 +108,7 @@ import { OauthResultRequestToJSON } from '../models/OauthResultRequest.js';
|
|
|
108
108
|
import { OauthResultResponseFromJSON } from '../models/OauthResultResponse.js';
|
|
109
109
|
import '../models/OauthResultStatus.js';
|
|
110
110
|
import { OpenRoomResponseFromJSON } from '../models/OpenRoomResponse.js';
|
|
111
|
+
import { OpenRoomResponseForReshareFromJSON } from '../models/OpenRoomResponseForReshare.js';
|
|
111
112
|
import { OpenRoomResponseWithServerKeygenIdsFromJSON } from '../models/OpenRoomResponseWithServerKeygenIds.js';
|
|
112
113
|
import '../models/WhenToImplementEnum.js';
|
|
113
114
|
import { PrefetchRequestToJSON } from '../models/PrefetchRequest.js';
|
|
@@ -472,6 +473,74 @@ class SDKApi extends BaseAPI {
|
|
|
472
473
|
yield this.backupKeySharesOptionsRaw(requestParameters, initOverrides);
|
|
473
474
|
});
|
|
474
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* Backup multiple keyShares for a waaS wallet to Google Drive
|
|
478
|
+
*/
|
|
479
|
+
backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides) {
|
|
480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
481
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
482
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDrive.');
|
|
483
|
+
}
|
|
484
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
485
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDrive.');
|
|
486
|
+
}
|
|
487
|
+
const queryParameters = {};
|
|
488
|
+
const headerParameters = {};
|
|
489
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
490
|
+
const token = this.configuration.accessToken;
|
|
491
|
+
const tokenString = yield token("bearerAuth", []);
|
|
492
|
+
if (tokenString) {
|
|
493
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
const response = yield this.request({
|
|
497
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
498
|
+
method: 'POST',
|
|
499
|
+
headers: headerParameters,
|
|
500
|
+
query: queryParameters,
|
|
501
|
+
}, initOverrides);
|
|
502
|
+
return new JSONApiResponse(response, (jsonValue) => BackupMultipleClientKeySharesResponseFromJSON(jsonValue));
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Backup multiple keyShares for a waaS wallet to Google Drive
|
|
507
|
+
*/
|
|
508
|
+
backupKeySharesToGoogleDrive(requestParameters, initOverrides) {
|
|
509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
510
|
+
const response = yield this.backupKeySharesToGoogleDriveRaw(requestParameters, initOverrides);
|
|
511
|
+
return yield response.value();
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Options call for this endpoint
|
|
516
|
+
*/
|
|
517
|
+
backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides) {
|
|
518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
519
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
520
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
|
|
521
|
+
}
|
|
522
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
523
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToGoogleDriveOptions.');
|
|
524
|
+
}
|
|
525
|
+
const queryParameters = {};
|
|
526
|
+
const headerParameters = {};
|
|
527
|
+
const response = yield this.request({
|
|
528
|
+
path: `/sdk/{environmentId}/waas/{walletId}/keyShares/backup/googleDrive`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
529
|
+
method: 'OPTIONS',
|
|
530
|
+
headers: headerParameters,
|
|
531
|
+
query: queryParameters,
|
|
532
|
+
}, initOverrides);
|
|
533
|
+
return new VoidApiResponse(response);
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Options call for this endpoint
|
|
538
|
+
*/
|
|
539
|
+
backupKeySharesToGoogleDriveOptions(requestParameters, initOverrides) {
|
|
540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
541
|
+
yield this.backupKeySharesToGoogleDriveOptionsRaw(requestParameters, initOverrides);
|
|
542
|
+
});
|
|
543
|
+
}
|
|
475
544
|
/**
|
|
476
545
|
* Claim a pregenerated embedded wallet
|
|
477
546
|
*/
|
|
@@ -4468,7 +4537,7 @@ class SDKApi extends BaseAPI {
|
|
|
4468
4537
|
query: queryParameters,
|
|
4469
4538
|
body: ReshareRequestToJSON(requestParameters.reshareRequest),
|
|
4470
4539
|
}, initOverrides);
|
|
4471
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
4540
|
+
return new JSONApiResponse(response, (jsonValue) => OpenRoomResponseForReshareFromJSON(jsonValue));
|
|
4472
4541
|
});
|
|
4473
4542
|
}
|
|
4474
4543
|
/**
|
|
@@ -6369,6 +6438,7 @@ var GetAccountBalancesChainNameEnum;
|
|
|
6369
6438
|
(function (GetAccountBalancesChainNameEnum) {
|
|
6370
6439
|
GetAccountBalancesChainNameEnum["Evm"] = "EVM";
|
|
6371
6440
|
GetAccountBalancesChainNameEnum["Sol"] = "SOL";
|
|
6441
|
+
GetAccountBalancesChainNameEnum["Btc"] = "BTC";
|
|
6372
6442
|
})(GetAccountBalancesChainNameEnum || (GetAccountBalancesChainNameEnum = {}));
|
|
6373
6443
|
/**
|
|
6374
6444
|
* @export
|
|
@@ -6378,6 +6448,7 @@ var GetAccountBalancesOptionsChainNameEnum;
|
|
|
6378
6448
|
(function (GetAccountBalancesOptionsChainNameEnum) {
|
|
6379
6449
|
GetAccountBalancesOptionsChainNameEnum["Evm"] = "EVM";
|
|
6380
6450
|
GetAccountBalancesOptionsChainNameEnum["Sol"] = "SOL";
|
|
6451
|
+
GetAccountBalancesOptionsChainNameEnum["Btc"] = "BTC";
|
|
6381
6452
|
})(GetAccountBalancesOptionsChainNameEnum || (GetAccountBalancesOptionsChainNameEnum = {}));
|
|
6382
6453
|
|
|
6383
6454
|
export { GetAccountBalancesChainNameEnum, GetAccountBalancesOptionsChainNameEnum, SDKApi };
|
package/src/index.cjs
CHANGED
|
@@ -270,6 +270,7 @@ var OauthResultStatus = require('./models/OauthResultStatus.cjs');
|
|
|
270
270
|
var OnrampConfiguration = require('./models/OnrampConfiguration.cjs');
|
|
271
271
|
var OnrampProviders = require('./models/OnrampProviders.cjs');
|
|
272
272
|
var OpenRoomResponse = require('./models/OpenRoomResponse.cjs');
|
|
273
|
+
var OpenRoomResponseForReshare = require('./models/OpenRoomResponseForReshare.cjs');
|
|
273
274
|
var OpenRoomResponseWithServerKeygenIds = require('./models/OpenRoomResponseWithServerKeygenIds.cjs');
|
|
274
275
|
var Organization = require('./models/Organization.cjs');
|
|
275
276
|
var OrganizationFields = require('./models/OrganizationFields.cjs');
|
|
@@ -1365,6 +1366,9 @@ exports.OnrampProvidersToJSON = OnrampProviders.OnrampProvidersToJSON;
|
|
|
1365
1366
|
exports.OpenRoomResponseFromJSON = OpenRoomResponse.OpenRoomResponseFromJSON;
|
|
1366
1367
|
exports.OpenRoomResponseFromJSONTyped = OpenRoomResponse.OpenRoomResponseFromJSONTyped;
|
|
1367
1368
|
exports.OpenRoomResponseToJSON = OpenRoomResponse.OpenRoomResponseToJSON;
|
|
1369
|
+
exports.OpenRoomResponseForReshareFromJSON = OpenRoomResponseForReshare.OpenRoomResponseForReshareFromJSON;
|
|
1370
|
+
exports.OpenRoomResponseForReshareFromJSONTyped = OpenRoomResponseForReshare.OpenRoomResponseForReshareFromJSONTyped;
|
|
1371
|
+
exports.OpenRoomResponseForReshareToJSON = OpenRoomResponseForReshare.OpenRoomResponseForReshareToJSON;
|
|
1368
1372
|
exports.OpenRoomResponseWithServerKeygenIdsFromJSON = OpenRoomResponseWithServerKeygenIds.OpenRoomResponseWithServerKeygenIdsFromJSON;
|
|
1369
1373
|
exports.OpenRoomResponseWithServerKeygenIdsFromJSONTyped = OpenRoomResponseWithServerKeygenIds.OpenRoomResponseWithServerKeygenIdsFromJSONTyped;
|
|
1370
1374
|
exports.OpenRoomResponseWithServerKeygenIdsToJSON = OpenRoomResponseWithServerKeygenIds.OpenRoomResponseWithServerKeygenIdsToJSON;
|
package/src/index.js
CHANGED
|
@@ -266,6 +266,7 @@ export { OauthResultStatus, OauthResultStatusFromJSON, OauthResultStatusFromJSON
|
|
|
266
266
|
export { OnrampConfigurationFromJSON, OnrampConfigurationFromJSONTyped, OnrampConfigurationToJSON } from './models/OnrampConfiguration.js';
|
|
267
267
|
export { OnrampProviders, OnrampProvidersFromJSON, OnrampProvidersFromJSONTyped, OnrampProvidersToJSON } from './models/OnrampProviders.js';
|
|
268
268
|
export { OpenRoomResponseFromJSON, OpenRoomResponseFromJSONTyped, OpenRoomResponseToJSON } from './models/OpenRoomResponse.js';
|
|
269
|
+
export { OpenRoomResponseForReshareFromJSON, OpenRoomResponseForReshareFromJSONTyped, OpenRoomResponseForReshareToJSON } from './models/OpenRoomResponseForReshare.js';
|
|
269
270
|
export { OpenRoomResponseWithServerKeygenIdsFromJSON, OpenRoomResponseWithServerKeygenIdsFromJSONTyped, OpenRoomResponseWithServerKeygenIdsToJSON } from './models/OpenRoomResponseWithServerKeygenIds.js';
|
|
270
271
|
export { OrganizationFromJSON, OrganizationFromJSONTyped, OrganizationToJSON } from './models/Organization.js';
|
|
271
272
|
export { OrganizationFieldsFromJSON, OrganizationFieldsFromJSONTyped, OrganizationFieldsToJSON } from './models/OrganizationFields.js';
|
|
@@ -15,6 +15,7 @@ function OpenRoomResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
return {
|
|
16
16
|
'roomId': json['roomId'],
|
|
17
17
|
'serverKeygenIds': !runtime.exists(json, 'serverKeygenIds') ? undefined : json['serverKeygenIds'],
|
|
18
|
+
'newServerKeygenIds': !runtime.exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
18
19
|
'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
|
|
19
20
|
};
|
|
20
21
|
}
|
|
@@ -28,6 +29,7 @@ function OpenRoomResponseToJSON(value) {
|
|
|
28
29
|
return {
|
|
29
30
|
'roomId': value.roomId,
|
|
30
31
|
'serverKeygenIds': value.serverKeygenIds,
|
|
32
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
31
33
|
'walletId': value.walletId,
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -27,6 +27,12 @@ export interface OpenRoomResponse {
|
|
|
27
27
|
* @memberof OpenRoomResponse
|
|
28
28
|
*/
|
|
29
29
|
serverKeygenIds?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof OpenRoomResponse
|
|
34
|
+
*/
|
|
35
|
+
newServerKeygenIds?: Array<string>;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -11,6 +11,7 @@ function OpenRoomResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11
11
|
return {
|
|
12
12
|
'roomId': json['roomId'],
|
|
13
13
|
'serverKeygenIds': !exists(json, 'serverKeygenIds') ? undefined : json['serverKeygenIds'],
|
|
14
|
+
'newServerKeygenIds': !exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
14
15
|
'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
|
|
15
16
|
};
|
|
16
17
|
}
|
|
@@ -24,6 +25,7 @@ function OpenRoomResponseToJSON(value) {
|
|
|
24
25
|
return {
|
|
25
26
|
'roomId': value.roomId,
|
|
26
27
|
'serverKeygenIds': value.serverKeygenIds,
|
|
28
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
27
29
|
'walletId': value.walletId,
|
|
28
30
|
};
|
|
29
31
|
}
|
|
@@ -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 OpenRoomResponseForReshareFromJSON(json) {
|
|
9
|
+
return OpenRoomResponseForReshareFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function OpenRoomResponseForReshareFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'roomId': json['roomId'],
|
|
17
|
+
'serverKeygenIds': json['serverKeygenIds'],
|
|
18
|
+
'newServerKeygenIds': json['newServerKeygenIds'],
|
|
19
|
+
'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function OpenRoomResponseForReshareToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'roomId': value.roomId,
|
|
31
|
+
'serverKeygenIds': value.serverKeygenIds,
|
|
32
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
33
|
+
'walletId': value.walletId,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.OpenRoomResponseForReshareFromJSON = OpenRoomResponseForReshareFromJSON;
|
|
38
|
+
exports.OpenRoomResponseForReshareFromJSONTyped = OpenRoomResponseForReshareFromJSONTyped;
|
|
39
|
+
exports.OpenRoomResponseForReshareToJSON = OpenRoomResponseForReshareToJSON;
|
|
@@ -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 OpenRoomResponseForReshare
|
|
16
|
+
*/
|
|
17
|
+
export interface OpenRoomResponseForReshare {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OpenRoomResponseForReshare
|
|
22
|
+
*/
|
|
23
|
+
roomId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof OpenRoomResponseForReshare
|
|
28
|
+
*/
|
|
29
|
+
serverKeygenIds: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof OpenRoomResponseForReshare
|
|
34
|
+
*/
|
|
35
|
+
newServerKeygenIds: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OpenRoomResponseForReshare
|
|
40
|
+
*/
|
|
41
|
+
walletId?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function OpenRoomResponseForReshareFromJSON(json: any): OpenRoomResponseForReshare;
|
|
44
|
+
export declare function OpenRoomResponseForReshareFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenRoomResponseForReshare;
|
|
45
|
+
export declare function OpenRoomResponseForReshareToJSON(value?: OpenRoomResponseForReshare | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function OpenRoomResponseForReshareFromJSON(json) {
|
|
5
|
+
return OpenRoomResponseForReshareFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function OpenRoomResponseForReshareFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'roomId': json['roomId'],
|
|
13
|
+
'serverKeygenIds': json['serverKeygenIds'],
|
|
14
|
+
'newServerKeygenIds': json['newServerKeygenIds'],
|
|
15
|
+
'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function OpenRoomResponseForReshareToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'roomId': value.roomId,
|
|
27
|
+
'serverKeygenIds': value.serverKeygenIds,
|
|
28
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
29
|
+
'walletId': value.walletId,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { OpenRoomResponseForReshareFromJSON, OpenRoomResponseForReshareFromJSONTyped, OpenRoomResponseForReshareToJSON };
|
|
@@ -15,6 +15,7 @@ function OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json, ignoreDiscrimina
|
|
|
15
15
|
return {
|
|
16
16
|
'roomId': json['roomId'],
|
|
17
17
|
'serverKeygenIds': json['serverKeygenIds'],
|
|
18
|
+
'newServerKeygenIds': !runtime.exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
18
19
|
'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
|
|
19
20
|
};
|
|
20
21
|
}
|
|
@@ -28,6 +29,7 @@ function OpenRoomResponseWithServerKeygenIdsToJSON(value) {
|
|
|
28
29
|
return {
|
|
29
30
|
'roomId': value.roomId,
|
|
30
31
|
'serverKeygenIds': value.serverKeygenIds,
|
|
32
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
31
33
|
'walletId': value.walletId,
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -27,6 +27,12 @@ export interface OpenRoomResponseWithServerKeygenIds {
|
|
|
27
27
|
* @memberof OpenRoomResponseWithServerKeygenIds
|
|
28
28
|
*/
|
|
29
29
|
serverKeygenIds: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof OpenRoomResponseWithServerKeygenIds
|
|
34
|
+
*/
|
|
35
|
+
newServerKeygenIds?: Array<string>;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -11,6 +11,7 @@ function OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json, ignoreDiscrimina
|
|
|
11
11
|
return {
|
|
12
12
|
'roomId': json['roomId'],
|
|
13
13
|
'serverKeygenIds': json['serverKeygenIds'],
|
|
14
|
+
'newServerKeygenIds': !exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
14
15
|
'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
|
|
15
16
|
};
|
|
16
17
|
}
|
|
@@ -24,6 +25,7 @@ function OpenRoomResponseWithServerKeygenIdsToJSON(value) {
|
|
|
24
25
|
return {
|
|
25
26
|
'roomId': value.roomId,
|
|
26
27
|
'serverKeygenIds': value.serverKeygenIds,
|
|
28
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
27
29
|
'walletId': value.walletId,
|
|
28
30
|
};
|
|
29
31
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
5
|
var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
7
6
|
|
|
8
7
|
/* tslint:disable */
|
|
@@ -15,7 +14,8 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
14
|
}
|
|
16
15
|
return {
|
|
17
16
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
18
|
-
'
|
|
17
|
+
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
18
|
+
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
function ReshareRequestToJSON(value) {
|
|
@@ -27,7 +27,8 @@ function ReshareRequestToJSON(value) {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
'clientKeygenIds': value.clientKeygenIds,
|
|
30
|
-
'
|
|
30
|
+
'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
31
|
+
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -27,7 +27,13 @@ export interface ReshareRequest {
|
|
|
27
27
|
* @type {ThresholdSignatureScheme}
|
|
28
28
|
* @memberof ReshareRequest
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
oldThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ThresholdSignatureScheme}
|
|
34
|
+
* @memberof ReshareRequest
|
|
35
|
+
*/
|
|
36
|
+
newThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
31
37
|
}
|
|
32
38
|
export declare function ReshareRequestFromJSON(json: any): ReshareRequest;
|
|
33
39
|
export declare function ReshareRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReshareRequest;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
1
|
import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
|
|
3
2
|
|
|
4
3
|
/* tslint:disable */
|
|
@@ -11,7 +10,8 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11
10
|
}
|
|
12
11
|
return {
|
|
13
12
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
14
|
-
'
|
|
13
|
+
'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
|
|
14
|
+
'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
function ReshareRequestToJSON(value) {
|
|
@@ -23,7 +23,8 @@ function ReshareRequestToJSON(value) {
|
|
|
23
23
|
}
|
|
24
24
|
return {
|
|
25
25
|
'clientKeygenIds': value.clientKeygenIds,
|
|
26
|
-
'
|
|
26
|
+
'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
|
|
27
|
+
'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -233,6 +233,7 @@ export * from './OauthResultStatus';
|
|
|
233
233
|
export * from './OnrampConfiguration';
|
|
234
234
|
export * from './OnrampProviders';
|
|
235
235
|
export * from './OpenRoomResponse';
|
|
236
|
+
export * from './OpenRoomResponseForReshare';
|
|
236
237
|
export * from './OpenRoomResponseWithServerKeygenIds';
|
|
237
238
|
export * from './Organization';
|
|
238
239
|
export * from './OrganizationFields';
|