@dynamic-labs/sdk-api 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
|
@@ -2639,9 +2639,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2639
2639
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2640
2640
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
|
|
2641
2641
|
}
|
|
2642
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2643
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
|
|
2644
|
-
}
|
|
2645
2642
|
if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
|
|
2646
2643
|
throw new runtime.RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
|
|
2647
2644
|
}
|
|
@@ -2656,7 +2653,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2656
2653
|
}
|
|
2657
2654
|
}
|
|
2658
2655
|
const response = yield this.request({
|
|
2659
|
-
path: `/sdk/{environmentId}/waas/
|
|
2656
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2660
2657
|
method: 'POST',
|
|
2661
2658
|
headers: headerParameters,
|
|
2662
2659
|
query: queryParameters,
|
|
@@ -2683,13 +2680,10 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2683
2680
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2684
2681
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
|
|
2685
2682
|
}
|
|
2686
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2687
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
|
|
2688
|
-
}
|
|
2689
2683
|
const queryParameters = {};
|
|
2690
2684
|
const headerParameters = {};
|
|
2691
2685
|
const response = yield this.request({
|
|
2692
|
-
path: `/sdk/{environmentId}/waas/
|
|
2686
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2693
2687
|
method: 'OPTIONS',
|
|
2694
2688
|
headers: headerParameters,
|
|
2695
2689
|
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
|
@@ -2635,9 +2635,6 @@ class SDKApi extends BaseAPI {
|
|
|
2635
2635
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2636
2636
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKey.');
|
|
2637
2637
|
}
|
|
2638
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2639
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKey.');
|
|
2640
|
-
}
|
|
2641
2638
|
if (requestParameters.importWaasPrivateKeyRequest === null || requestParameters.importWaasPrivateKeyRequest === undefined) {
|
|
2642
2639
|
throw new RequiredError('importWaasPrivateKeyRequest', 'Required parameter requestParameters.importWaasPrivateKeyRequest was null or undefined when calling importPrivateKey.');
|
|
2643
2640
|
}
|
|
@@ -2652,7 +2649,7 @@ class SDKApi extends BaseAPI {
|
|
|
2652
2649
|
}
|
|
2653
2650
|
}
|
|
2654
2651
|
const response = yield this.request({
|
|
2655
|
-
path: `/sdk/{environmentId}/waas/
|
|
2652
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2656
2653
|
method: 'POST',
|
|
2657
2654
|
headers: headerParameters,
|
|
2658
2655
|
query: queryParameters,
|
|
@@ -2679,13 +2676,10 @@ class SDKApi extends BaseAPI {
|
|
|
2679
2676
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2680
2677
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling importPrivateKeyOptions.');
|
|
2681
2678
|
}
|
|
2682
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2683
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling importPrivateKeyOptions.');
|
|
2684
|
-
}
|
|
2685
2679
|
const queryParameters = {};
|
|
2686
2680
|
const headerParameters = {};
|
|
2687
2681
|
const response = yield this.request({
|
|
2688
|
-
path: `/sdk/{environmentId}/waas/
|
|
2682
|
+
path: `/sdk/{environmentId}/waas/privateKey/import`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2689
2683
|
method: 'OPTIONS',
|
|
2690
2684
|
headers: headerParameters,
|
|
2691
2685
|
query: queryParameters,
|
|
@@ -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
|
|