@dynamic-labs/sdk-api-core 0.0.613 → 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
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -2572,9 +2572,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2572
2572
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2573
2573
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
|
|
2574
2574
|
}
|
|
2575
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2576
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
|
|
2577
|
-
}
|
|
2578
2575
|
if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
|
|
2579
2576
|
throw new runtime.RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
|
|
2580
2577
|
}
|
|
@@ -2589,7 +2586,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2589
2586
|
}
|
|
2590
2587
|
}
|
|
2591
2588
|
const response = yield this.request({
|
|
2592
|
-
path: `/sdk/{environmentId}/waas/
|
|
2589
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2593
2590
|
method: 'POST',
|
|
2594
2591
|
headers: headerParameters,
|
|
2595
2592
|
query: queryParameters,
|
|
@@ -2616,13 +2613,10 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2616
2613
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2617
2614
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
|
|
2618
2615
|
}
|
|
2619
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2620
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
|
|
2621
|
-
}
|
|
2622
2616
|
const queryParameters = {};
|
|
2623
2617
|
const headerParameters = {};
|
|
2624
2618
|
const response = yield this.request({
|
|
2625
|
-
path: `/sdk/{environmentId}/waas/
|
|
2619
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2626
2620
|
method: 'OPTIONS',
|
|
2627
2621
|
headers: headerParameters,
|
|
2628
2622
|
query: queryParameters,
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -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;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -2568,9 +2568,6 @@ class SDKApi extends BaseAPI {
|
|
|
2568
2568
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2569
2569
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
|
|
2570
2570
|
}
|
|
2571
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2572
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
|
|
2573
|
-
}
|
|
2574
2571
|
if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
|
|
2575
2572
|
throw new RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
|
|
2576
2573
|
}
|
|
@@ -2585,7 +2582,7 @@ class SDKApi extends BaseAPI {
|
|
|
2585
2582
|
}
|
|
2586
2583
|
}
|
|
2587
2584
|
const response = yield this.request({
|
|
2588
|
-
path: `/sdk/{environmentId}/waas/
|
|
2585
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2589
2586
|
method: 'POST',
|
|
2590
2587
|
headers: headerParameters,
|
|
2591
2588
|
query: queryParameters,
|
|
@@ -2612,13 +2609,10 @@ class SDKApi extends BaseAPI {
|
|
|
2612
2609
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2613
2610
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
|
|
2614
2611
|
}
|
|
2615
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2616
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
|
|
2617
|
-
}
|
|
2618
2612
|
const queryParameters = {};
|
|
2619
2613
|
const headerParameters = {};
|
|
2620
2614
|
const response = yield this.request({
|
|
2621
|
-
path: `/sdk/{environmentId}/waas/
|
|
2615
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2622
2616
|
method: 'OPTIONS',
|
|
2623
2617
|
headers: headerParameters,
|
|
2624
2618
|
query: queryParameters,
|
|
@@ -3,6 +3,7 @@
|
|
|
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) {
|
|
@@ -15,6 +16,7 @@ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
16
|
return {
|
|
16
17
|
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
17
18
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
19
|
+
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -27,6 +29,7 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
27
29
|
return {
|
|
28
30
|
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
29
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,4 +1,5 @@
|
|
|
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) {
|
|
@@ -11,6 +12,7 @@ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11
12
|
return {
|
|
12
13
|
'chain': ChainEnumFromJSON(json['chain']),
|
|
13
14
|
'clientKeygenIds': json['clientKeygenIds'],
|
|
15
|
+
'thresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
@@ -23,6 +25,7 @@ function ImportWaasPrivateKeyRequestToJSON(value) {
|
|
|
23
25
|
return {
|
|
24
26
|
'chain': ChainEnumToJSON(value.chain),
|
|
25
27
|
'clientKeygenIds': value.clientKeygenIds,
|
|
28
|
+
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
|