@dynamic-labs/sdk-api 0.0.926 → 0.0.928
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/WaasApi.cjs
CHANGED
|
@@ -126,8 +126,6 @@ require('../models/WaasPolicyRuleType.cjs');
|
|
|
126
126
|
var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
|
|
127
127
|
var WaasVerifyApiKeyResponse = require('../models/WaasVerifyApiKeyResponse.cjs');
|
|
128
128
|
var WaasWalletResponse = require('../models/WaasWalletResponse.cjs');
|
|
129
|
-
var WaasWalletSignaturePolicyTmpCreateRequest = require('../models/WaasWalletSignaturePolicyTmpCreateRequest.cjs');
|
|
130
|
-
var WaasWalletSignaturePolicyTmpResponse = require('../models/WaasWalletSignaturePolicyTmpResponse.cjs');
|
|
131
129
|
require('../models/WalletTransactionType.cjs');
|
|
132
130
|
|
|
133
131
|
/* tslint:disable */
|
|
@@ -271,40 +269,6 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
271
269
|
const response = await this.createWaasPolicyRaw(requestParameters, initOverrides);
|
|
272
270
|
return await response.value();
|
|
273
271
|
}
|
|
274
|
-
/**
|
|
275
|
-
* Creates a new WaaS signature policy for the specified wallet.
|
|
276
|
-
* Create a new WAAS signature policy for a wallet
|
|
277
|
-
*/
|
|
278
|
-
async createWaasSignaturePolicyRaw(requestParameters, initOverrides) {
|
|
279
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
280
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createWaasSignaturePolicy.');
|
|
281
|
-
}
|
|
282
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
283
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling createWaasSignaturePolicy.');
|
|
284
|
-
}
|
|
285
|
-
if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
|
|
286
|
-
throw new runtime.RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling createWaasSignaturePolicy.');
|
|
287
|
-
}
|
|
288
|
-
const queryParameters = {};
|
|
289
|
-
const headerParameters = {};
|
|
290
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
291
|
-
const response = await this.request({
|
|
292
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
293
|
-
method: 'POST',
|
|
294
|
-
headers: headerParameters,
|
|
295
|
-
query: queryParameters,
|
|
296
|
-
body: WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
|
|
297
|
-
}, initOverrides);
|
|
298
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Creates a new WaaS signature policy for the specified wallet.
|
|
302
|
-
* Create a new WAAS signature policy for a wallet
|
|
303
|
-
*/
|
|
304
|
-
async createWaasSignaturePolicy(requestParameters, initOverrides) {
|
|
305
|
-
const response = await this.createWaasSignaturePolicyRaw(requestParameters, initOverrides);
|
|
306
|
-
return await response.value();
|
|
307
|
-
}
|
|
308
272
|
/**
|
|
309
273
|
* Creates a new WAAS wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
310
274
|
* Create a WAAS wallet for a user
|
|
@@ -436,38 +400,6 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
436
400
|
const response = await this.deleteWaasPolicyRaw(requestParameters, initOverrides);
|
|
437
401
|
return await response.value();
|
|
438
402
|
}
|
|
439
|
-
/**
|
|
440
|
-
* Permanently removes a WaaS signature policy by wallet ID and policy ID.
|
|
441
|
-
* Delete a WAAS signature policy by walletId and policyId
|
|
442
|
-
*/
|
|
443
|
-
async deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
|
|
444
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
445
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
446
|
-
}
|
|
447
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
448
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
449
|
-
}
|
|
450
|
-
if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
|
|
451
|
-
throw new runtime.RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
452
|
-
}
|
|
453
|
-
const queryParameters = {};
|
|
454
|
-
const headerParameters = {};
|
|
455
|
-
const response = await this.request({
|
|
456
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
|
|
457
|
-
method: 'DELETE',
|
|
458
|
-
headers: headerParameters,
|
|
459
|
-
query: queryParameters,
|
|
460
|
-
}, initOverrides);
|
|
461
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Permanently removes a WaaS signature policy by wallet ID and policy ID.
|
|
465
|
-
* Delete a WAAS signature policy by walletId and policyId
|
|
466
|
-
*/
|
|
467
|
-
async deleteWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
|
|
468
|
-
const response = await this.deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
|
|
469
|
-
return await response.value();
|
|
470
|
-
}
|
|
471
403
|
/**
|
|
472
404
|
* Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
|
|
473
405
|
* Get delegated access encryption public key for an environment
|
|
@@ -578,67 +510,6 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
578
510
|
const response = await this.getWaasPolicyRaw(requestParameters, initOverrides);
|
|
579
511
|
return await response.value();
|
|
580
512
|
}
|
|
581
|
-
/**
|
|
582
|
-
* Returns all active WaaS signature policies for the specified wallet.
|
|
583
|
-
* Get all active WAAS signature policies for a wallet
|
|
584
|
-
*/
|
|
585
|
-
async getWaasSignaturePoliciesRaw(requestParameters, initOverrides) {
|
|
586
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
587
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicies.');
|
|
588
|
-
}
|
|
589
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
590
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicies.');
|
|
591
|
-
}
|
|
592
|
-
const queryParameters = {};
|
|
593
|
-
const headerParameters = {};
|
|
594
|
-
const response = await this.request({
|
|
595
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
596
|
-
method: 'GET',
|
|
597
|
-
headers: headerParameters,
|
|
598
|
-
query: queryParameters,
|
|
599
|
-
}, initOverrides);
|
|
600
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON));
|
|
601
|
-
}
|
|
602
|
-
/**
|
|
603
|
-
* Returns all active WaaS signature policies for the specified wallet.
|
|
604
|
-
* Get all active WAAS signature policies for a wallet
|
|
605
|
-
*/
|
|
606
|
-
async getWaasSignaturePolicies(requestParameters, initOverrides) {
|
|
607
|
-
const response = await this.getWaasSignaturePoliciesRaw(requestParameters, initOverrides);
|
|
608
|
-
return await response.value();
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* Returns a WaaS signature policy by wallet ID and policy ID.
|
|
612
|
-
* Get a WAAS signature policy by walletId and policyId
|
|
613
|
-
*/
|
|
614
|
-
async getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
|
|
615
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
616
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
617
|
-
}
|
|
618
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
619
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
620
|
-
}
|
|
621
|
-
if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
|
|
622
|
-
throw new runtime.RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
623
|
-
}
|
|
624
|
-
const queryParameters = {};
|
|
625
|
-
const headerParameters = {};
|
|
626
|
-
const response = await this.request({
|
|
627
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
|
|
628
|
-
method: 'GET',
|
|
629
|
-
headers: headerParameters,
|
|
630
|
-
query: queryParameters,
|
|
631
|
-
}, initOverrides);
|
|
632
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* Returns a WaaS signature policy by wallet ID and policy ID.
|
|
636
|
-
* Get a WAAS signature policy by walletId and policyId
|
|
637
|
-
*/
|
|
638
|
-
async getWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
|
|
639
|
-
const response = await this.getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
|
|
640
|
-
return await response.value();
|
|
641
|
-
}
|
|
642
513
|
/**
|
|
643
514
|
* Returns a WaaS wallet by its wallet ID.
|
|
644
515
|
* Get a specific WAAS wallet by walletId
|
|
@@ -755,43 +626,6 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
755
626
|
const response = await this.updateWaasPolicyRaw(requestParameters, initOverrides);
|
|
756
627
|
return await response.value();
|
|
757
628
|
}
|
|
758
|
-
/**
|
|
759
|
-
* Updates a WaaS signature policy by wallet ID and policy ID.
|
|
760
|
-
* Update a WAAS signature policy by walletId and policyId
|
|
761
|
-
*/
|
|
762
|
-
async updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
|
|
763
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
764
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
765
|
-
}
|
|
766
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
767
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
768
|
-
}
|
|
769
|
-
if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
|
|
770
|
-
throw new runtime.RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
771
|
-
}
|
|
772
|
-
if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
|
|
773
|
-
throw new runtime.RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
774
|
-
}
|
|
775
|
-
const queryParameters = {};
|
|
776
|
-
const headerParameters = {};
|
|
777
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
778
|
-
const response = await this.request({
|
|
779
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
|
|
780
|
-
method: 'PUT',
|
|
781
|
-
headers: headerParameters,
|
|
782
|
-
query: queryParameters,
|
|
783
|
-
body: WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
|
|
784
|
-
}, initOverrides);
|
|
785
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
* Updates a WaaS signature policy by wallet ID and policy ID.
|
|
789
|
-
* Update a WAAS signature policy by walletId and policyId
|
|
790
|
-
*/
|
|
791
|
-
async updateWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
|
|
792
|
-
const response = await this.updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
|
|
793
|
-
return await response.value();
|
|
794
|
-
}
|
|
795
629
|
/**
|
|
796
630
|
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
797
631
|
* Verify if an API key is valid for a specific environment
|
package/src/apis/WaasApi.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 { BackupKeySharesToLocationsResponse, BackupKeySharesToLocationsWithUserIdRequest, CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasVerifyApiKeyResponse, WaasWalletResponse
|
|
13
|
+
import { BackupKeySharesToLocationsResponse, BackupKeySharesToLocationsWithUserIdRequest, CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasVerifyApiKeyResponse, WaasWalletResponse } from '../models';
|
|
14
14
|
export interface AuthenticateWaasRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -27,11 +27,6 @@ export interface CreateWaasPolicyRequest {
|
|
|
27
27
|
environmentId: string;
|
|
28
28
|
waasPolicyCreateRequest: WaasPolicyCreateRequest;
|
|
29
29
|
}
|
|
30
|
-
export interface CreateWaasSignaturePolicyRequest {
|
|
31
|
-
environmentId: string;
|
|
32
|
-
walletId: string;
|
|
33
|
-
waasWalletSignaturePolicyTmpCreateRequest: WaasWalletSignaturePolicyTmpCreateRequest;
|
|
34
|
-
}
|
|
35
30
|
export interface CreateWaasWalletRequest {
|
|
36
31
|
environmentId: string;
|
|
37
32
|
createUserWaasWalletsRequest: CreateUserWaasWalletsRequest;
|
|
@@ -49,11 +44,6 @@ export interface DeleteWaasPolicyRequest {
|
|
|
49
44
|
environmentId: string;
|
|
50
45
|
waasPolicyDeleteRequest: WaasPolicyDeleteRequest;
|
|
51
46
|
}
|
|
52
|
-
export interface DeleteWaasSignaturePolicyByWalletIdAndPolicyIdRequest {
|
|
53
|
-
environmentId: string;
|
|
54
|
-
walletId: string;
|
|
55
|
-
policyId: string;
|
|
56
|
-
}
|
|
57
47
|
export interface GetDelegatedAccessEncryptionPublicKeyRequest {
|
|
58
48
|
environmentId: string;
|
|
59
49
|
}
|
|
@@ -68,15 +58,6 @@ export interface GetDelegatedAccessEncryptionPublicKeysRequest {
|
|
|
68
58
|
export interface GetWaasPolicyRequest {
|
|
69
59
|
environmentId: string;
|
|
70
60
|
}
|
|
71
|
-
export interface GetWaasSignaturePoliciesRequest {
|
|
72
|
-
environmentId: string;
|
|
73
|
-
walletId: string;
|
|
74
|
-
}
|
|
75
|
-
export interface GetWaasSignaturePolicyByWalletIdAndPolicyIdRequest {
|
|
76
|
-
environmentId: string;
|
|
77
|
-
walletId: string;
|
|
78
|
-
policyId: string;
|
|
79
|
-
}
|
|
80
61
|
export interface GetWaasWalletByWalletIdRequest {
|
|
81
62
|
environmentId: string;
|
|
82
63
|
walletId: string;
|
|
@@ -92,12 +73,6 @@ export interface UpdateWaasPolicyRequest {
|
|
|
92
73
|
environmentId: string;
|
|
93
74
|
waasPolicyUpdateRequest: WaasPolicyUpdateRequest;
|
|
94
75
|
}
|
|
95
|
-
export interface UpdateWaasSignaturePolicyByWalletIdAndPolicyIdRequest {
|
|
96
|
-
environmentId: string;
|
|
97
|
-
walletId: string;
|
|
98
|
-
policyId: string;
|
|
99
|
-
waasWalletSignaturePolicyTmpCreateRequest: WaasWalletSignaturePolicyTmpCreateRequest;
|
|
100
|
-
}
|
|
101
76
|
export interface WaasVerifyApiKeyRequest {
|
|
102
77
|
environmentId: string;
|
|
103
78
|
}
|
|
@@ -145,16 +120,6 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
145
120
|
* Create a new WAAS policy for an environment or add new rules to an existing policy
|
|
146
121
|
*/
|
|
147
122
|
createWaasPolicy(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
148
|
-
/**
|
|
149
|
-
* Creates a new WaaS signature policy for the specified wallet.
|
|
150
|
-
* Create a new WAAS signature policy for a wallet
|
|
151
|
-
*/
|
|
152
|
-
createWaasSignaturePolicyRaw(requestParameters: CreateWaasSignaturePolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
|
|
153
|
-
/**
|
|
154
|
-
* Creates a new WaaS signature policy for the specified wallet.
|
|
155
|
-
* Create a new WAAS signature policy for a wallet
|
|
156
|
-
*/
|
|
157
|
-
createWaasSignaturePolicy(requestParameters: CreateWaasSignaturePolicyRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
|
|
158
123
|
/**
|
|
159
124
|
* Creates a new WAAS wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
160
125
|
* Create a WAAS wallet for a user
|
|
@@ -195,16 +160,6 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
195
160
|
* Delete a WAAS policy rule by ruleId
|
|
196
161
|
*/
|
|
197
162
|
deleteWaasPolicy(requestParameters: DeleteWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
198
|
-
/**
|
|
199
|
-
* Permanently removes a WaaS signature policy by wallet ID and policy ID.
|
|
200
|
-
* Delete a WAAS signature policy by walletId and policyId
|
|
201
|
-
*/
|
|
202
|
-
deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters: DeleteWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
|
|
203
|
-
/**
|
|
204
|
-
* Permanently removes a WaaS signature policy by wallet ID and policy ID.
|
|
205
|
-
* Delete a WAAS signature policy by walletId and policyId
|
|
206
|
-
*/
|
|
207
|
-
deleteWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters: DeleteWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
|
|
208
163
|
/**
|
|
209
164
|
* Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
|
|
210
165
|
* Get delegated access encryption public key for an environment
|
|
@@ -245,26 +200,6 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
245
200
|
* Get the WAAS policy for an environment
|
|
246
201
|
*/
|
|
247
202
|
getWaasPolicy(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
248
|
-
/**
|
|
249
|
-
* Returns all active WaaS signature policies for the specified wallet.
|
|
250
|
-
* Get all active WAAS signature policies for a wallet
|
|
251
|
-
*/
|
|
252
|
-
getWaasSignaturePoliciesRaw(requestParameters: GetWaasSignaturePoliciesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<WaasWalletSignaturePolicyTmpResponse>>>;
|
|
253
|
-
/**
|
|
254
|
-
* Returns all active WaaS signature policies for the specified wallet.
|
|
255
|
-
* Get all active WAAS signature policies for a wallet
|
|
256
|
-
*/
|
|
257
|
-
getWaasSignaturePolicies(requestParameters: GetWaasSignaturePoliciesRequest, initOverrides?: RequestInit): Promise<Array<WaasWalletSignaturePolicyTmpResponse>>;
|
|
258
|
-
/**
|
|
259
|
-
* Returns a WaaS signature policy by wallet ID and policy ID.
|
|
260
|
-
* Get a WAAS signature policy by walletId and policyId
|
|
261
|
-
*/
|
|
262
|
-
getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters: GetWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
|
|
263
|
-
/**
|
|
264
|
-
* Returns a WaaS signature policy by wallet ID and policy ID.
|
|
265
|
-
* Get a WAAS signature policy by walletId and policyId
|
|
266
|
-
*/
|
|
267
|
-
getWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters: GetWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
|
|
268
203
|
/**
|
|
269
204
|
* Returns a WaaS wallet by its wallet ID.
|
|
270
205
|
* Get a specific WAAS wallet by walletId
|
|
@@ -305,16 +240,6 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
305
240
|
* Update the WAAS policy for an environment by ruleId
|
|
306
241
|
*/
|
|
307
242
|
updateWaasPolicy(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
|
|
308
|
-
/**
|
|
309
|
-
* Updates a WaaS signature policy by wallet ID and policy ID.
|
|
310
|
-
* Update a WAAS signature policy by walletId and policyId
|
|
311
|
-
*/
|
|
312
|
-
updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters: UpdateWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
|
|
313
|
-
/**
|
|
314
|
-
* Updates a WaaS signature policy by wallet ID and policy ID.
|
|
315
|
-
* Update a WAAS signature policy by walletId and policyId
|
|
316
|
-
*/
|
|
317
|
-
updateWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters: UpdateWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
|
|
318
243
|
/**
|
|
319
244
|
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
320
245
|
* Verify if an API key is valid for a specific environment
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -122,8 +122,6 @@ import '../models/WaasPolicyRuleType.js';
|
|
|
122
122
|
import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
|
|
123
123
|
import { WaasVerifyApiKeyResponseFromJSON } from '../models/WaasVerifyApiKeyResponse.js';
|
|
124
124
|
import { WaasWalletResponseFromJSON } from '../models/WaasWalletResponse.js';
|
|
125
|
-
import { WaasWalletSignaturePolicyTmpCreateRequestToJSON } from '../models/WaasWalletSignaturePolicyTmpCreateRequest.js';
|
|
126
|
-
import { WaasWalletSignaturePolicyTmpResponseFromJSON } from '../models/WaasWalletSignaturePolicyTmpResponse.js';
|
|
127
125
|
import '../models/WalletTransactionType.js';
|
|
128
126
|
|
|
129
127
|
/* tslint:disable */
|
|
@@ -267,40 +265,6 @@ class WaasApi extends BaseAPI {
|
|
|
267
265
|
const response = await this.createWaasPolicyRaw(requestParameters, initOverrides);
|
|
268
266
|
return await response.value();
|
|
269
267
|
}
|
|
270
|
-
/**
|
|
271
|
-
* Creates a new WaaS signature policy for the specified wallet.
|
|
272
|
-
* Create a new WAAS signature policy for a wallet
|
|
273
|
-
*/
|
|
274
|
-
async createWaasSignaturePolicyRaw(requestParameters, initOverrides) {
|
|
275
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
276
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createWaasSignaturePolicy.');
|
|
277
|
-
}
|
|
278
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
279
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling createWaasSignaturePolicy.');
|
|
280
|
-
}
|
|
281
|
-
if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
|
|
282
|
-
throw new RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling createWaasSignaturePolicy.');
|
|
283
|
-
}
|
|
284
|
-
const queryParameters = {};
|
|
285
|
-
const headerParameters = {};
|
|
286
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
287
|
-
const response = await this.request({
|
|
288
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
289
|
-
method: 'POST',
|
|
290
|
-
headers: headerParameters,
|
|
291
|
-
query: queryParameters,
|
|
292
|
-
body: WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
|
|
293
|
-
}, initOverrides);
|
|
294
|
-
return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* Creates a new WaaS signature policy for the specified wallet.
|
|
298
|
-
* Create a new WAAS signature policy for a wallet
|
|
299
|
-
*/
|
|
300
|
-
async createWaasSignaturePolicy(requestParameters, initOverrides) {
|
|
301
|
-
const response = await this.createWaasSignaturePolicyRaw(requestParameters, initOverrides);
|
|
302
|
-
return await response.value();
|
|
303
|
-
}
|
|
304
268
|
/**
|
|
305
269
|
* Creates a new WAAS wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
306
270
|
* Create a WAAS wallet for a user
|
|
@@ -432,38 +396,6 @@ class WaasApi extends BaseAPI {
|
|
|
432
396
|
const response = await this.deleteWaasPolicyRaw(requestParameters, initOverrides);
|
|
433
397
|
return await response.value();
|
|
434
398
|
}
|
|
435
|
-
/**
|
|
436
|
-
* Permanently removes a WaaS signature policy by wallet ID and policy ID.
|
|
437
|
-
* Delete a WAAS signature policy by walletId and policyId
|
|
438
|
-
*/
|
|
439
|
-
async deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
|
|
440
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
441
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
442
|
-
}
|
|
443
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
444
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
445
|
-
}
|
|
446
|
-
if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
|
|
447
|
-
throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
448
|
-
}
|
|
449
|
-
const queryParameters = {};
|
|
450
|
-
const headerParameters = {};
|
|
451
|
-
const response = await this.request({
|
|
452
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
|
|
453
|
-
method: 'DELETE',
|
|
454
|
-
headers: headerParameters,
|
|
455
|
-
query: queryParameters,
|
|
456
|
-
}, initOverrides);
|
|
457
|
-
return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Permanently removes a WaaS signature policy by wallet ID and policy ID.
|
|
461
|
-
* Delete a WAAS signature policy by walletId and policyId
|
|
462
|
-
*/
|
|
463
|
-
async deleteWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
|
|
464
|
-
const response = await this.deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
|
|
465
|
-
return await response.value();
|
|
466
|
-
}
|
|
467
399
|
/**
|
|
468
400
|
* Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
|
|
469
401
|
* Get delegated access encryption public key for an environment
|
|
@@ -574,67 +506,6 @@ class WaasApi extends BaseAPI {
|
|
|
574
506
|
const response = await this.getWaasPolicyRaw(requestParameters, initOverrides);
|
|
575
507
|
return await response.value();
|
|
576
508
|
}
|
|
577
|
-
/**
|
|
578
|
-
* Returns all active WaaS signature policies for the specified wallet.
|
|
579
|
-
* Get all active WAAS signature policies for a wallet
|
|
580
|
-
*/
|
|
581
|
-
async getWaasSignaturePoliciesRaw(requestParameters, initOverrides) {
|
|
582
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
583
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicies.');
|
|
584
|
-
}
|
|
585
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
586
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicies.');
|
|
587
|
-
}
|
|
588
|
-
const queryParameters = {};
|
|
589
|
-
const headerParameters = {};
|
|
590
|
-
const response = await this.request({
|
|
591
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
592
|
-
method: 'GET',
|
|
593
|
-
headers: headerParameters,
|
|
594
|
-
query: queryParameters,
|
|
595
|
-
}, initOverrides);
|
|
596
|
-
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(WaasWalletSignaturePolicyTmpResponseFromJSON));
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Returns all active WaaS signature policies for the specified wallet.
|
|
600
|
-
* Get all active WAAS signature policies for a wallet
|
|
601
|
-
*/
|
|
602
|
-
async getWaasSignaturePolicies(requestParameters, initOverrides) {
|
|
603
|
-
const response = await this.getWaasSignaturePoliciesRaw(requestParameters, initOverrides);
|
|
604
|
-
return await response.value();
|
|
605
|
-
}
|
|
606
|
-
/**
|
|
607
|
-
* Returns a WaaS signature policy by wallet ID and policy ID.
|
|
608
|
-
* Get a WAAS signature policy by walletId and policyId
|
|
609
|
-
*/
|
|
610
|
-
async getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
|
|
611
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
612
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
613
|
-
}
|
|
614
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
615
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
616
|
-
}
|
|
617
|
-
if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
|
|
618
|
-
throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
619
|
-
}
|
|
620
|
-
const queryParameters = {};
|
|
621
|
-
const headerParameters = {};
|
|
622
|
-
const response = await this.request({
|
|
623
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
|
|
624
|
-
method: 'GET',
|
|
625
|
-
headers: headerParameters,
|
|
626
|
-
query: queryParameters,
|
|
627
|
-
}, initOverrides);
|
|
628
|
-
return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* Returns a WaaS signature policy by wallet ID and policy ID.
|
|
632
|
-
* Get a WAAS signature policy by walletId and policyId
|
|
633
|
-
*/
|
|
634
|
-
async getWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
|
|
635
|
-
const response = await this.getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
|
|
636
|
-
return await response.value();
|
|
637
|
-
}
|
|
638
509
|
/**
|
|
639
510
|
* Returns a WaaS wallet by its wallet ID.
|
|
640
511
|
* Get a specific WAAS wallet by walletId
|
|
@@ -751,43 +622,6 @@ class WaasApi extends BaseAPI {
|
|
|
751
622
|
const response = await this.updateWaasPolicyRaw(requestParameters, initOverrides);
|
|
752
623
|
return await response.value();
|
|
753
624
|
}
|
|
754
|
-
/**
|
|
755
|
-
* Updates a WaaS signature policy by wallet ID and policy ID.
|
|
756
|
-
* Update a WAAS signature policy by walletId and policyId
|
|
757
|
-
*/
|
|
758
|
-
async updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
|
|
759
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
760
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
761
|
-
}
|
|
762
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
763
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
764
|
-
}
|
|
765
|
-
if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
|
|
766
|
-
throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
767
|
-
}
|
|
768
|
-
if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
|
|
769
|
-
throw new RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
|
|
770
|
-
}
|
|
771
|
-
const queryParameters = {};
|
|
772
|
-
const headerParameters = {};
|
|
773
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
774
|
-
const response = await this.request({
|
|
775
|
-
path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"policyId"}}`, encodeURIComponent(String(requestParameters.policyId))),
|
|
776
|
-
method: 'PUT',
|
|
777
|
-
headers: headerParameters,
|
|
778
|
-
query: queryParameters,
|
|
779
|
-
body: WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
|
|
780
|
-
}, initOverrides);
|
|
781
|
-
return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
* Updates a WaaS signature policy by wallet ID and policy ID.
|
|
785
|
-
* Update a WAAS signature policy by walletId and policyId
|
|
786
|
-
*/
|
|
787
|
-
async updateWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
|
|
788
|
-
const response = await this.updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
|
|
789
|
-
return await response.value();
|
|
790
|
-
}
|
|
791
625
|
/**
|
|
792
626
|
* Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.
|
|
793
627
|
* Verify if an API key is valid for a specific environment
|
|
@@ -34,6 +34,8 @@ function NetworkConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'bech32Prefix': !runtime.exists(json, 'bech32Prefix') ? undefined : json['bech32Prefix'],
|
|
35
35
|
'genesisHash': !runtime.exists(json, 'genesisHash') ? undefined : json['genesisHash'],
|
|
36
36
|
'cluster': !runtime.exists(json, 'cluster') ? undefined : json['cluster'],
|
|
37
|
+
'hasNativeToken': !runtime.exists(json, 'hasNativeToken') ? undefined : json['hasNativeToken'],
|
|
38
|
+
'supportsFeeTokenSelection': !runtime.exists(json, 'supportsFeeTokenSelection') ? undefined : json['supportsFeeTokenSelection'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
function NetworkConfigurationToJSON(value) {
|
|
@@ -63,6 +65,8 @@ function NetworkConfigurationToJSON(value) {
|
|
|
63
65
|
'bech32Prefix': value.bech32Prefix,
|
|
64
66
|
'genesisHash': value.genesisHash,
|
|
65
67
|
'cluster': value.cluster,
|
|
68
|
+
'hasNativeToken': value.hasNativeToken,
|
|
69
|
+
'supportsFeeTokenSelection': value.supportsFeeTokenSelection,
|
|
66
70
|
};
|
|
67
71
|
}
|
|
68
72
|
|
|
@@ -131,6 +131,18 @@ export interface NetworkConfiguration {
|
|
|
131
131
|
* @memberof NetworkConfiguration
|
|
132
132
|
*/
|
|
133
133
|
cluster?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Whether this network has a native token. Defaults to true if not specified.
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof NetworkConfiguration
|
|
138
|
+
*/
|
|
139
|
+
hasNativeToken?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Whether this network supports selecting a fee token for transactions. Defaults to false if not specified.
|
|
142
|
+
* @type {boolean}
|
|
143
|
+
* @memberof NetworkConfiguration
|
|
144
|
+
*/
|
|
145
|
+
supportsFeeTokenSelection?: boolean;
|
|
134
146
|
}
|
|
135
147
|
export declare function NetworkConfigurationFromJSON(json: any): NetworkConfiguration;
|
|
136
148
|
export declare function NetworkConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkConfiguration;
|
|
@@ -30,6 +30,8 @@ function NetworkConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'bech32Prefix': !exists(json, 'bech32Prefix') ? undefined : json['bech32Prefix'],
|
|
31
31
|
'genesisHash': !exists(json, 'genesisHash') ? undefined : json['genesisHash'],
|
|
32
32
|
'cluster': !exists(json, 'cluster') ? undefined : json['cluster'],
|
|
33
|
+
'hasNativeToken': !exists(json, 'hasNativeToken') ? undefined : json['hasNativeToken'],
|
|
34
|
+
'supportsFeeTokenSelection': !exists(json, 'supportsFeeTokenSelection') ? undefined : json['supportsFeeTokenSelection'],
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
function NetworkConfigurationToJSON(value) {
|
|
@@ -59,6 +61,8 @@ function NetworkConfigurationToJSON(value) {
|
|
|
59
61
|
'bech32Prefix': value.bech32Prefix,
|
|
60
62
|
'genesisHash': value.genesisHash,
|
|
61
63
|
'cluster': value.cluster,
|
|
64
|
+
'hasNativeToken': value.hasNativeToken,
|
|
65
|
+
'supportsFeeTokenSelection': value.supportsFeeTokenSelection,
|
|
62
66
|
};
|
|
63
67
|
}
|
|
64
68
|
|