@dynamic-labs/sdk-api 0.0.848 → 0.0.850

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.848",
3
+ "version": "0.0.850",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -112,6 +112,8 @@ require('../models/WaasPolicyRuleType.cjs');
112
112
  var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
113
113
  var WaasVerifyApiKeyResponse = require('../models/WaasVerifyApiKeyResponse.cjs');
114
114
  var WaasWalletResponse = require('../models/WaasWalletResponse.cjs');
115
+ var WaasWalletSignaturePolicyTmpCreateRequest = require('../models/WaasWalletSignaturePolicyTmpCreateRequest.cjs');
116
+ var WaasWalletSignaturePolicyTmpResponse = require('../models/WaasWalletSignaturePolicyTmpResponse.cjs');
115
117
  require('../models/WalletTransactionType.cjs');
116
118
 
117
119
  /* tslint:disable */
@@ -265,6 +267,42 @@ class WaasApi extends runtime.BaseAPI {
265
267
  return yield response.value();
266
268
  });
267
269
  }
270
+ /**
271
+ * Create a new WAAS signature policy for a wallet
272
+ */
273
+ createWaasSignaturePolicyRaw(requestParameters, initOverrides) {
274
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
275
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
276
+ throw new runtime.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 runtime.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 runtime.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 = yield 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: WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
293
+ }, initOverrides);
294
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
295
+ });
296
+ }
297
+ /**
298
+ * Create a new WAAS signature policy for a wallet
299
+ */
300
+ createWaasSignaturePolicy(requestParameters, initOverrides) {
301
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
302
+ const response = yield this.createWaasSignaturePolicyRaw(requestParameters, initOverrides);
303
+ return yield response.value();
304
+ });
305
+ }
268
306
  /**
269
307
  * 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.
270
308
  * Create a new WAAS for a user given an identifier
@@ -408,6 +446,40 @@ class WaasApi extends runtime.BaseAPI {
408
446
  return yield response.value();
409
447
  });
410
448
  }
449
+ /**
450
+ * Delete a WAAS signature policy by walletId and policyId
451
+ */
452
+ deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
453
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
454
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
455
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
456
+ }
457
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
458
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
459
+ }
460
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
461
+ throw new runtime.RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
462
+ }
463
+ const queryParameters = {};
464
+ const headerParameters = {};
465
+ const response = yield this.request({
466
+ 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))),
467
+ method: 'DELETE',
468
+ headers: headerParameters,
469
+ query: queryParameters,
470
+ }, initOverrides);
471
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
472
+ });
473
+ }
474
+ /**
475
+ * Delete a WAAS signature policy by walletId and policyId
476
+ */
477
+ deleteWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
478
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
479
+ const response = yield this.deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
480
+ return yield response.value();
481
+ });
482
+ }
411
483
  /**
412
484
  * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
413
485
  * Get delegated access encryption public key for an environment
@@ -530,6 +602,71 @@ class WaasApi extends runtime.BaseAPI {
530
602
  return yield response.value();
531
603
  });
532
604
  }
605
+ /**
606
+ * Get all active WAAS signature policies for a wallet
607
+ */
608
+ getWaasSignaturePoliciesRaw(requestParameters, initOverrides) {
609
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
610
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
611
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicies.');
612
+ }
613
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
614
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicies.');
615
+ }
616
+ const queryParameters = {};
617
+ const headerParameters = {};
618
+ const response = yield this.request({
619
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
620
+ method: 'GET',
621
+ headers: headerParameters,
622
+ query: queryParameters,
623
+ }, initOverrides);
624
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON));
625
+ });
626
+ }
627
+ /**
628
+ * Get all active WAAS signature policies for a wallet
629
+ */
630
+ getWaasSignaturePolicies(requestParameters, initOverrides) {
631
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
632
+ const response = yield this.getWaasSignaturePoliciesRaw(requestParameters, initOverrides);
633
+ return yield response.value();
634
+ });
635
+ }
636
+ /**
637
+ * Get a WAAS signature policy by walletId and policyId
638
+ */
639
+ getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
640
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
641
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
642
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
643
+ }
644
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
645
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
646
+ }
647
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
648
+ throw new runtime.RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
649
+ }
650
+ const queryParameters = {};
651
+ const headerParameters = {};
652
+ const response = yield this.request({
653
+ 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))),
654
+ method: 'GET',
655
+ headers: headerParameters,
656
+ query: queryParameters,
657
+ }, initOverrides);
658
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
659
+ });
660
+ }
661
+ /**
662
+ * Get a WAAS signature policy by walletId and policyId
663
+ */
664
+ getWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
665
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
666
+ const response = yield this.getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
667
+ return yield response.value();
668
+ });
669
+ }
533
670
  /**
534
671
  * Get a specific WAAS wallet by walletId
535
672
  */
@@ -658,6 +795,45 @@ class WaasApi extends runtime.BaseAPI {
658
795
  return yield response.value();
659
796
  });
660
797
  }
798
+ /**
799
+ * Update a WAAS signature policy by walletId and policyId
800
+ */
801
+ updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
802
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
803
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
804
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
805
+ }
806
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
807
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
808
+ }
809
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
810
+ throw new runtime.RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
811
+ }
812
+ if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
813
+ throw new runtime.RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
814
+ }
815
+ const queryParameters = {};
816
+ const headerParameters = {};
817
+ headerParameters['Content-Type'] = 'application/json';
818
+ const response = yield this.request({
819
+ 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))),
820
+ method: 'PUT',
821
+ headers: headerParameters,
822
+ query: queryParameters,
823
+ body: WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
824
+ }, initOverrides);
825
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
826
+ });
827
+ }
828
+ /**
829
+ * Update a WAAS signature policy by walletId and policyId
830
+ */
831
+ updateWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
832
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
833
+ const response = yield this.updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
834
+ return yield response.value();
835
+ });
836
+ }
661
837
  /**
662
838
  * 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.
663
839
  * Verify if an API key is valid for a specific environment
@@ -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 } from '../models';
13
+ import { BackupKeySharesToLocationsResponse, BackupKeySharesToLocationsWithUserIdRequest, CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasVerifyApiKeyResponse, WaasWalletResponse, WaasWalletSignaturePolicyTmpCreateRequest, WaasWalletSignaturePolicyTmpResponse } from '../models';
14
14
  export interface AuthenticateWaasRequest {
15
15
  environmentId: string;
16
16
  }
@@ -27,6 +27,11 @@ 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
+ }
30
35
  export interface CreateWaasWalletRequest {
31
36
  environmentId: string;
32
37
  createUserWaasWalletsRequest: CreateUserWaasWalletsRequest;
@@ -44,6 +49,11 @@ export interface DeleteWaasPolicyRequest {
44
49
  environmentId: string;
45
50
  waasPolicyDeleteRequest: WaasPolicyDeleteRequest;
46
51
  }
52
+ export interface DeleteWaasSignaturePolicyByWalletIdAndPolicyIdRequest {
53
+ environmentId: string;
54
+ walletId: string;
55
+ policyId: string;
56
+ }
47
57
  export interface GetDelegatedAccessEncryptionPublicKeyRequest {
48
58
  environmentId: string;
49
59
  }
@@ -58,6 +68,15 @@ export interface GetDelegatedAccessEncryptionPublicKeysRequest {
58
68
  export interface GetWaasPolicyRequest {
59
69
  environmentId: string;
60
70
  }
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
+ }
61
80
  export interface GetWaasWalletByWalletIdRequest {
62
81
  environmentId: string;
63
82
  walletId: string;
@@ -73,6 +92,12 @@ export interface UpdateWaasPolicyRequest {
73
92
  environmentId: string;
74
93
  waasPolicyUpdateRequest: WaasPolicyUpdateRequest;
75
94
  }
95
+ export interface UpdateWaasSignaturePolicyByWalletIdAndPolicyIdRequest {
96
+ environmentId: string;
97
+ walletId: string;
98
+ policyId: string;
99
+ waasWalletSignaturePolicyTmpCreateRequest: WaasWalletSignaturePolicyTmpCreateRequest;
100
+ }
76
101
  export interface VerifyApiKeyRequest {
77
102
  environmentId: string;
78
103
  }
@@ -114,6 +139,14 @@ export declare class WaasApi extends runtime.BaseAPI {
114
139
  * Create a new WAAS policy for an environment or add new rules to an existing policy
115
140
  */
116
141
  createWaasPolicy(requestParameters: CreateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
142
+ /**
143
+ * Create a new WAAS signature policy for a wallet
144
+ */
145
+ createWaasSignaturePolicyRaw(requestParameters: CreateWaasSignaturePolicyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
146
+ /**
147
+ * Create a new WAAS signature policy for a wallet
148
+ */
149
+ createWaasSignaturePolicy(requestParameters: CreateWaasSignaturePolicyRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
117
150
  /**
118
151
  * 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.
119
152
  * Create a new WAAS for a user given an identifier
@@ -150,6 +183,14 @@ export declare class WaasApi extends runtime.BaseAPI {
150
183
  * Delete a WAAS policy rule by ruleId
151
184
  */
152
185
  deleteWaasPolicy(requestParameters: DeleteWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
186
+ /**
187
+ * Delete a WAAS signature policy by walletId and policyId
188
+ */
189
+ deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters: DeleteWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
190
+ /**
191
+ * Delete a WAAS signature policy by walletId and policyId
192
+ */
193
+ deleteWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters: DeleteWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
153
194
  /**
154
195
  * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
155
196
  * Get delegated access encryption public key for an environment
@@ -186,6 +227,22 @@ export declare class WaasApi extends runtime.BaseAPI {
186
227
  * Get the WAAS policy for an environment
187
228
  */
188
229
  getWaasPolicy(requestParameters: GetWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
230
+ /**
231
+ * Get all active WAAS signature policies for a wallet
232
+ */
233
+ getWaasSignaturePoliciesRaw(requestParameters: GetWaasSignaturePoliciesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<WaasWalletSignaturePolicyTmpResponse>>>;
234
+ /**
235
+ * Get all active WAAS signature policies for a wallet
236
+ */
237
+ getWaasSignaturePolicies(requestParameters: GetWaasSignaturePoliciesRequest, initOverrides?: RequestInit): Promise<Array<WaasWalletSignaturePolicyTmpResponse>>;
238
+ /**
239
+ * Get a WAAS signature policy by walletId and policyId
240
+ */
241
+ getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters: GetWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
242
+ /**
243
+ * Get a WAAS signature policy by walletId and policyId
244
+ */
245
+ getWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters: GetWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
189
246
  /**
190
247
  * Get a specific WAAS wallet by walletId
191
248
  */
@@ -222,6 +279,14 @@ export declare class WaasApi extends runtime.BaseAPI {
222
279
  * Update the WAAS policy for an environment by ruleId
223
280
  */
224
281
  updateWaasPolicy(requestParameters: UpdateWaasPolicyRequest, initOverrides?: RequestInit): Promise<WaasPolicyResponse>;
282
+ /**
283
+ * Update a WAAS signature policy by walletId and policyId
284
+ */
285
+ updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters: UpdateWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasWalletSignaturePolicyTmpResponse>>;
286
+ /**
287
+ * Update a WAAS signature policy by walletId and policyId
288
+ */
289
+ updateWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters: UpdateWaasSignaturePolicyByWalletIdAndPolicyIdRequest, initOverrides?: RequestInit): Promise<WaasWalletSignaturePolicyTmpResponse>;
225
290
  /**
226
291
  * 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.
227
292
  * Verify if an API key is valid for a specific environment
@@ -108,6 +108,8 @@ import '../models/WaasPolicyRuleType.js';
108
108
  import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
109
109
  import { WaasVerifyApiKeyResponseFromJSON } from '../models/WaasVerifyApiKeyResponse.js';
110
110
  import { WaasWalletResponseFromJSON } from '../models/WaasWalletResponse.js';
111
+ import { WaasWalletSignaturePolicyTmpCreateRequestToJSON } from '../models/WaasWalletSignaturePolicyTmpCreateRequest.js';
112
+ import { WaasWalletSignaturePolicyTmpResponseFromJSON } from '../models/WaasWalletSignaturePolicyTmpResponse.js';
111
113
  import '../models/WalletTransactionType.js';
112
114
 
113
115
  /* tslint:disable */
@@ -261,6 +263,42 @@ class WaasApi extends BaseAPI {
261
263
  return yield response.value();
262
264
  });
263
265
  }
266
+ /**
267
+ * Create a new WAAS signature policy for a wallet
268
+ */
269
+ createWaasSignaturePolicyRaw(requestParameters, initOverrides) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
272
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createWaasSignaturePolicy.');
273
+ }
274
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
275
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling createWaasSignaturePolicy.');
276
+ }
277
+ if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
278
+ throw new RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling createWaasSignaturePolicy.');
279
+ }
280
+ const queryParameters = {};
281
+ const headerParameters = {};
282
+ headerParameters['Content-Type'] = 'application/json';
283
+ const response = yield this.request({
284
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
285
+ method: 'POST',
286
+ headers: headerParameters,
287
+ query: queryParameters,
288
+ body: WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
289
+ }, initOverrides);
290
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
291
+ });
292
+ }
293
+ /**
294
+ * Create a new WAAS signature policy for a wallet
295
+ */
296
+ createWaasSignaturePolicy(requestParameters, initOverrides) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ const response = yield this.createWaasSignaturePolicyRaw(requestParameters, initOverrides);
299
+ return yield response.value();
300
+ });
301
+ }
264
302
  /**
265
303
  * 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.
266
304
  * Create a new WAAS for a user given an identifier
@@ -404,6 +442,40 @@ class WaasApi extends BaseAPI {
404
442
  return yield response.value();
405
443
  });
406
444
  }
445
+ /**
446
+ * Delete a WAAS signature policy by walletId and policyId
447
+ */
448
+ deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
449
+ return __awaiter(this, void 0, void 0, function* () {
450
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
451
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
452
+ }
453
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
454
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
455
+ }
456
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
457
+ throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling deleteWaasSignaturePolicyByWalletIdAndPolicyId.');
458
+ }
459
+ const queryParameters = {};
460
+ const headerParameters = {};
461
+ const response = yield this.request({
462
+ 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))),
463
+ method: 'DELETE',
464
+ headers: headerParameters,
465
+ query: queryParameters,
466
+ }, initOverrides);
467
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
468
+ });
469
+ }
470
+ /**
471
+ * Delete a WAAS signature policy by walletId and policyId
472
+ */
473
+ deleteWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
474
+ return __awaiter(this, void 0, void 0, function* () {
475
+ const response = yield this.deleteWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
476
+ return yield response.value();
477
+ });
478
+ }
407
479
  /**
408
480
  * Fetches the encryption public key used for delegated access in a WAAS environment. By default, returns only the latest active key.
409
481
  * Get delegated access encryption public key for an environment
@@ -526,6 +598,71 @@ class WaasApi extends BaseAPI {
526
598
  return yield response.value();
527
599
  });
528
600
  }
601
+ /**
602
+ * Get all active WAAS signature policies for a wallet
603
+ */
604
+ getWaasSignaturePoliciesRaw(requestParameters, initOverrides) {
605
+ return __awaiter(this, void 0, void 0, function* () {
606
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
607
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicies.');
608
+ }
609
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
610
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicies.');
611
+ }
612
+ const queryParameters = {};
613
+ const headerParameters = {};
614
+ const response = yield this.request({
615
+ path: `/environments/{environmentId}/waas/{walletId}/signaturePolicy`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
616
+ method: 'GET',
617
+ headers: headerParameters,
618
+ query: queryParameters,
619
+ }, initOverrides);
620
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(WaasWalletSignaturePolicyTmpResponseFromJSON));
621
+ });
622
+ }
623
+ /**
624
+ * Get all active WAAS signature policies for a wallet
625
+ */
626
+ getWaasSignaturePolicies(requestParameters, initOverrides) {
627
+ return __awaiter(this, void 0, void 0, function* () {
628
+ const response = yield this.getWaasSignaturePoliciesRaw(requestParameters, initOverrides);
629
+ return yield response.value();
630
+ });
631
+ }
632
+ /**
633
+ * Get a WAAS signature policy by walletId and policyId
634
+ */
635
+ getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
636
+ return __awaiter(this, void 0, void 0, function* () {
637
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
638
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
639
+ }
640
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
641
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
642
+ }
643
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
644
+ throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling getWaasSignaturePolicyByWalletIdAndPolicyId.');
645
+ }
646
+ const queryParameters = {};
647
+ const headerParameters = {};
648
+ const response = yield this.request({
649
+ 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))),
650
+ method: 'GET',
651
+ headers: headerParameters,
652
+ query: queryParameters,
653
+ }, initOverrides);
654
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
655
+ });
656
+ }
657
+ /**
658
+ * Get a WAAS signature policy by walletId and policyId
659
+ */
660
+ getWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
661
+ return __awaiter(this, void 0, void 0, function* () {
662
+ const response = yield this.getWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
663
+ return yield response.value();
664
+ });
665
+ }
529
666
  /**
530
667
  * Get a specific WAAS wallet by walletId
531
668
  */
@@ -654,6 +791,45 @@ class WaasApi extends BaseAPI {
654
791
  return yield response.value();
655
792
  });
656
793
  }
794
+ /**
795
+ * Update a WAAS signature policy by walletId and policyId
796
+ */
797
+ updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides) {
798
+ return __awaiter(this, void 0, void 0, function* () {
799
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
800
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
801
+ }
802
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
803
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
804
+ }
805
+ if (requestParameters.policyId === null || requestParameters.policyId === undefined) {
806
+ throw new RequiredError('policyId', 'Required parameter requestParameters.policyId was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
807
+ }
808
+ if (requestParameters.waasWalletSignaturePolicyTmpCreateRequest === null || requestParameters.waasWalletSignaturePolicyTmpCreateRequest === undefined) {
809
+ throw new RequiredError('waasWalletSignaturePolicyTmpCreateRequest', 'Required parameter requestParameters.waasWalletSignaturePolicyTmpCreateRequest was null or undefined when calling updateWaasSignaturePolicyByWalletIdAndPolicyId.');
810
+ }
811
+ const queryParameters = {};
812
+ const headerParameters = {};
813
+ headerParameters['Content-Type'] = 'application/json';
814
+ const response = yield this.request({
815
+ 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))),
816
+ method: 'PUT',
817
+ headers: headerParameters,
818
+ query: queryParameters,
819
+ body: WaasWalletSignaturePolicyTmpCreateRequestToJSON(requestParameters.waasWalletSignaturePolicyTmpCreateRequest),
820
+ }, initOverrides);
821
+ return new JSONApiResponse(response, (jsonValue) => WaasWalletSignaturePolicyTmpResponseFromJSON(jsonValue));
822
+ });
823
+ }
824
+ /**
825
+ * Update a WAAS signature policy by walletId and policyId
826
+ */
827
+ updateWaasSignaturePolicyByWalletIdAndPolicyId(requestParameters, initOverrides) {
828
+ return __awaiter(this, void 0, void 0, function* () {
829
+ const response = yield this.updateWaasSignaturePolicyByWalletIdAndPolicyIdRaw(requestParameters, initOverrides);
830
+ return yield response.value();
831
+ });
832
+ }
657
833
  /**
658
834
  * 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.
659
835
  * Verify if an API key is valid for a specific environment
package/src/index.cjs CHANGED
@@ -600,6 +600,8 @@ var WaasWallet = require('./models/WaasWallet.cjs');
600
600
  var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
601
601
  var WaasWalletResponse = require('./models/WaasWalletResponse.cjs');
602
602
  var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
603
+ var WaasWalletSignaturePolicyTmpCreateRequest = require('./models/WaasWalletSignaturePolicyTmpCreateRequest.cjs');
604
+ var WaasWalletSignaturePolicyTmpResponse = require('./models/WaasWalletSignaturePolicyTmpResponse.cjs');
603
605
  var Wallet = require('./models/Wallet.cjs');
604
606
  var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
605
607
  var WalletAddressType = require('./models/WalletAddressType.cjs');
@@ -2719,6 +2721,12 @@ exports.WaasWalletResponseToJSON = WaasWalletResponse.WaasWalletResponseToJSON;
2719
2721
  exports.WaasWalletSettingsFromJSON = WaasWalletSettings.WaasWalletSettingsFromJSON;
2720
2722
  exports.WaasWalletSettingsFromJSONTyped = WaasWalletSettings.WaasWalletSettingsFromJSONTyped;
2721
2723
  exports.WaasWalletSettingsToJSON = WaasWalletSettings.WaasWalletSettingsToJSON;
2724
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSON;
2725
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped;
2726
+ exports.WaasWalletSignaturePolicyTmpCreateRequestToJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON;
2727
+ exports.WaasWalletSignaturePolicyTmpResponseFromJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON;
2728
+ exports.WaasWalletSignaturePolicyTmpResponseFromJSONTyped = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSONTyped;
2729
+ exports.WaasWalletSignaturePolicyTmpResponseToJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseToJSON;
2722
2730
  exports.WalletFromJSON = Wallet.WalletFromJSON;
2723
2731
  exports.WalletFromJSONTyped = Wallet.WalletFromJSONTyped;
2724
2732
  exports.WalletToJSON = Wallet.WalletToJSON;
package/src/index.js CHANGED
@@ -596,6 +596,8 @@ export { WaasWalletFromJSON, WaasWalletFromJSONTyped, WaasWalletToJSON } from '.
596
596
  export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWalletPropertiesToJSON } from './models/WaasWalletProperties.js';
597
597
  export { WaasWalletResponseFromJSON, WaasWalletResponseFromJSONTyped, WaasWalletResponseToJSON } from './models/WaasWalletResponse.js';
598
598
  export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON } from './models/WaasWalletSettings.js';
599
+ export { WaasWalletSignaturePolicyTmpCreateRequestFromJSON, WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequest.js';
600
+ export { WaasWalletSignaturePolicyTmpResponseFromJSON, WaasWalletSignaturePolicyTmpResponseFromJSONTyped, WaasWalletSignaturePolicyTmpResponseToJSON } from './models/WaasWalletSignaturePolicyTmpResponse.js';
599
601
  export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
600
602
  export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
601
603
  export { WalletAddressType, WalletAddressTypeFromJSON, WalletAddressTypeFromJSONTyped, WalletAddressTypeToJSON } from './models/WalletAddressType.js';
@@ -63,6 +63,8 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'info': !runtime.exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoFromJSON(json['info']),
64
64
  'serverAuth': !runtime.exists(json, 'server_auth') ? undefined : json['server_auth'],
65
65
  'hashedIp': !runtime.exists(json, 'hashed_ip') ? undefined : json['hashed_ip'],
66
+ 'originalSid': !runtime.exists(json, 'originalSid') ? undefined : json['originalSid'],
67
+ 'refreshExp': !runtime.exists(json, 'refreshExp') ? undefined : json['refreshExp'],
66
68
  };
67
69
  }
68
70
  function DynamicJwtToJSON(value) {
@@ -118,6 +120,8 @@ function DynamicJwtToJSON(value) {
118
120
  'info': JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoToJSON(value.info),
119
121
  'server_auth': value.serverAuth,
120
122
  'hashed_ip': value.hashedIp,
123
+ 'originalSid': value.originalSid,
124
+ 'refreshExp': value.refreshExp,
121
125
  };
122
126
  }
123
127
 
@@ -290,6 +290,18 @@ export interface DynamicJwt {
290
290
  * @memberof DynamicJwt
291
291
  */
292
292
  hashedIp?: string;
293
+ /**
294
+ * Original session ID
295
+ * @type {string}
296
+ * @memberof DynamicJwt
297
+ */
298
+ originalSid?: string;
299
+ /**
300
+ * Refresh expiration timestamp
301
+ * @type {number}
302
+ * @memberof DynamicJwt
303
+ */
304
+ refreshExp?: number;
293
305
  }
294
306
  export declare function DynamicJwtFromJSON(json: any): DynamicJwt;
295
307
  export declare function DynamicJwtFromJSONTyped(json: any, ignoreDiscriminator: boolean): DynamicJwt;
@@ -59,6 +59,8 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'info': !exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfoFromJSON(json['info']),
60
60
  'serverAuth': !exists(json, 'server_auth') ? undefined : json['server_auth'],
61
61
  'hashedIp': !exists(json, 'hashed_ip') ? undefined : json['hashed_ip'],
62
+ 'originalSid': !exists(json, 'originalSid') ? undefined : json['originalSid'],
63
+ 'refreshExp': !exists(json, 'refreshExp') ? undefined : json['refreshExp'],
62
64
  };
63
65
  }
64
66
  function DynamicJwtToJSON(value) {
@@ -114,6 +116,8 @@ function DynamicJwtToJSON(value) {
114
116
  'info': JwtPayloadDeprecatedInfoToJSON(value.info),
115
117
  'server_auth': value.serverAuth,
116
118
  'hashed_ip': value.hashedIp,
119
+ 'originalSid': value.originalSid,
120
+ 'refreshExp': value.refreshExp,
117
121
  };
118
122
  }
119
123
 
@@ -30,6 +30,8 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'username': !runtime.exists(json, 'username') ? undefined : json['username'],
31
31
  'serverAuth': !runtime.exists(json, 'server_auth') ? undefined : json['server_auth'],
32
32
  'hashedIp': !runtime.exists(json, 'hashed_ip') ? undefined : json['hashed_ip'],
33
+ 'originalSid': !runtime.exists(json, 'originalSid') ? undefined : json['originalSid'],
34
+ 'refreshExp': !runtime.exists(json, 'refreshExp') ? undefined : json['refreshExp'],
33
35
  };
34
36
  }
35
37
  function MinifiedDynamicJwtToJSON(value) {
@@ -56,6 +58,8 @@ function MinifiedDynamicJwtToJSON(value) {
56
58
  'username': value.username,
57
59
  'server_auth': value.serverAuth,
58
60
  'hashed_ip': value.hashedIp,
61
+ 'originalSid': value.originalSid,
62
+ 'refreshExp': value.refreshExp,
59
63
  };
60
64
  }
61
65
 
@@ -112,6 +112,18 @@ export interface MinifiedDynamicJwt {
112
112
  * @memberof MinifiedDynamicJwt
113
113
  */
114
114
  hashedIp?: string;
115
+ /**
116
+ * Original session ID
117
+ * @type {string}
118
+ * @memberof MinifiedDynamicJwt
119
+ */
120
+ originalSid?: string;
121
+ /**
122
+ * Refresh expiration timestamp
123
+ * @type {number}
124
+ * @memberof MinifiedDynamicJwt
125
+ */
126
+ refreshExp?: number;
115
127
  }
116
128
  export declare function MinifiedDynamicJwtFromJSON(json: any): MinifiedDynamicJwt;
117
129
  export declare function MinifiedDynamicJwtFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinifiedDynamicJwt;
@@ -26,6 +26,8 @@ function MinifiedDynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
26
26
  'username': !exists(json, 'username') ? undefined : json['username'],
27
27
  'serverAuth': !exists(json, 'server_auth') ? undefined : json['server_auth'],
28
28
  'hashedIp': !exists(json, 'hashed_ip') ? undefined : json['hashed_ip'],
29
+ 'originalSid': !exists(json, 'originalSid') ? undefined : json['originalSid'],
30
+ 'refreshExp': !exists(json, 'refreshExp') ? undefined : json['refreshExp'],
29
31
  };
30
32
  }
31
33
  function MinifiedDynamicJwtToJSON(value) {
@@ -52,6 +54,8 @@ function MinifiedDynamicJwtToJSON(value) {
52
54
  'username': value.username,
53
55
  'server_auth': value.serverAuth,
54
56
  'hashed_ip': value.hashedIp,
57
+ 'originalSid': value.originalSid,
58
+ 'refreshExp': value.refreshExp,
55
59
  };
56
60
  }
57
61
 
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var WaasChainEnum = require('./WaasChainEnum.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasWalletSignaturePolicyTmpCreateRequestFromJSON(json) {
9
+ return WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json);
10
+ }
11
+ function WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
17
+ 'toAddresses': json['toAddresses'],
18
+ 'tokenAddresses': json['tokenAddresses'],
19
+ 'timeLimit': json['timeLimit'],
20
+ 'maxAmount': json['maxAmount'],
21
+ };
22
+ }
23
+ function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
32
+ 'toAddresses': value.toAddresses,
33
+ 'tokenAddresses': value.tokenAddresses,
34
+ 'timeLimit': value.timeLimit,
35
+ 'maxAmount': value.maxAmount,
36
+ };
37
+ }
38
+
39
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSON = WaasWalletSignaturePolicyTmpCreateRequestFromJSON;
40
+ exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped;
41
+ exports.WaasWalletSignaturePolicyTmpCreateRequestToJSON = WaasWalletSignaturePolicyTmpCreateRequestToJSON;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { WaasChainEnum } from './WaasChainEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasWalletSignaturePolicyTmpCreateRequest
17
+ */
18
+ export interface WaasWalletSignaturePolicyTmpCreateRequest {
19
+ /**
20
+ *
21
+ * @type {WaasChainEnum}
22
+ * @memberof WaasWalletSignaturePolicyTmpCreateRequest
23
+ */
24
+ chain: WaasChainEnum;
25
+ /**
26
+ * Array of allowed destination addresses
27
+ * @type {Array<string>}
28
+ * @memberof WaasWalletSignaturePolicyTmpCreateRequest
29
+ */
30
+ toAddresses: Array<string>;
31
+ /**
32
+ * Array of allowed token contract addresses
33
+ * @type {Array<string>}
34
+ * @memberof WaasWalletSignaturePolicyTmpCreateRequest
35
+ */
36
+ tokenAddresses: Array<string>;
37
+ /**
38
+ * Time limit in seconds until the policy expires. Must be greater than 0 seconds.
39
+ * @type {number}
40
+ * @memberof WaasWalletSignaturePolicyTmpCreateRequest
41
+ */
42
+ timeLimit: number;
43
+ /**
44
+ * Maximum amount allowed for transactions (as string to handle bigint). Must be a non-negative integer.
45
+ * @type {string}
46
+ * @memberof WaasWalletSignaturePolicyTmpCreateRequest
47
+ */
48
+ maxAmount: string;
49
+ }
50
+ export declare function WaasWalletSignaturePolicyTmpCreateRequestFromJSON(json: any): WaasWalletSignaturePolicyTmpCreateRequest;
51
+ export declare function WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSignaturePolicyTmpCreateRequest;
52
+ export declare function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value?: WaasWalletSignaturePolicyTmpCreateRequest | null): any;
@@ -0,0 +1,35 @@
1
+ import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasWalletSignaturePolicyTmpCreateRequestFromJSON(json) {
5
+ return WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json);
6
+ }
7
+ function WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'chain': WaasChainEnumFromJSON(json['chain']),
13
+ 'toAddresses': json['toAddresses'],
14
+ 'tokenAddresses': json['tokenAddresses'],
15
+ 'timeLimit': json['timeLimit'],
16
+ 'maxAmount': json['maxAmount'],
17
+ };
18
+ }
19
+ function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'chain': WaasChainEnumToJSON(value.chain),
28
+ 'toAddresses': value.toAddresses,
29
+ 'tokenAddresses': value.tokenAddresses,
30
+ 'timeLimit': value.timeLimit,
31
+ 'maxAmount': value.maxAmount,
32
+ };
33
+ }
34
+
35
+ export { WaasWalletSignaturePolicyTmpCreateRequestFromJSON, WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestToJSON };
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var WaasChainEnum = require('./WaasChainEnum.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasWalletSignaturePolicyTmpResponseFromJSON(json) {
9
+ return WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json);
10
+ }
11
+ function WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'id': json['id'],
17
+ 'walletId': json['walletId'],
18
+ 'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
19
+ 'toAddresses': json['toAddresses'],
20
+ 'tokenAddresses': json['tokenAddresses'],
21
+ 'expiresAt': (new Date(json['expiresAt'])),
22
+ 'maxAmount': json['maxAmount'],
23
+ };
24
+ }
25
+ function WaasWalletSignaturePolicyTmpResponseToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'id': value.id,
34
+ 'walletId': value.walletId,
35
+ 'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
36
+ 'toAddresses': value.toAddresses,
37
+ 'tokenAddresses': value.tokenAddresses,
38
+ 'expiresAt': (value.expiresAt.toISOString()),
39
+ 'maxAmount': value.maxAmount,
40
+ };
41
+ }
42
+
43
+ exports.WaasWalletSignaturePolicyTmpResponseFromJSON = WaasWalletSignaturePolicyTmpResponseFromJSON;
44
+ exports.WaasWalletSignaturePolicyTmpResponseFromJSONTyped = WaasWalletSignaturePolicyTmpResponseFromJSONTyped;
45
+ exports.WaasWalletSignaturePolicyTmpResponseToJSON = WaasWalletSignaturePolicyTmpResponseToJSON;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { WaasChainEnum } from './WaasChainEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasWalletSignaturePolicyTmpResponse
17
+ */
18
+ export interface WaasWalletSignaturePolicyTmpResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof WaasWalletSignaturePolicyTmpResponse
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof WaasWalletSignaturePolicyTmpResponse
29
+ */
30
+ walletId: string;
31
+ /**
32
+ *
33
+ * @type {WaasChainEnum}
34
+ * @memberof WaasWalletSignaturePolicyTmpResponse
35
+ */
36
+ chain: WaasChainEnum;
37
+ /**
38
+ * Array of allowed destination addresses
39
+ * @type {Array<string>}
40
+ * @memberof WaasWalletSignaturePolicyTmpResponse
41
+ */
42
+ toAddresses: Array<string>;
43
+ /**
44
+ * Array of allowed token contract addresses
45
+ * @type {Array<string>}
46
+ * @memberof WaasWalletSignaturePolicyTmpResponse
47
+ */
48
+ tokenAddresses: Array<string>;
49
+ /**
50
+ * Timestamp when the policy expires
51
+ * @type {Date}
52
+ * @memberof WaasWalletSignaturePolicyTmpResponse
53
+ */
54
+ expiresAt: Date;
55
+ /**
56
+ * Maximum amount allowed for transactions (as string to handle bigint). Must be a non-negative integer.
57
+ * @type {string}
58
+ * @memberof WaasWalletSignaturePolicyTmpResponse
59
+ */
60
+ maxAmount: string;
61
+ }
62
+ export declare function WaasWalletSignaturePolicyTmpResponseFromJSON(json: any): WaasWalletSignaturePolicyTmpResponse;
63
+ export declare function WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSignaturePolicyTmpResponse;
64
+ export declare function WaasWalletSignaturePolicyTmpResponseToJSON(value?: WaasWalletSignaturePolicyTmpResponse | null): any;
@@ -0,0 +1,39 @@
1
+ import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasWalletSignaturePolicyTmpResponseFromJSON(json) {
5
+ return WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json);
6
+ }
7
+ function WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'id': json['id'],
13
+ 'walletId': json['walletId'],
14
+ 'chain': WaasChainEnumFromJSON(json['chain']),
15
+ 'toAddresses': json['toAddresses'],
16
+ 'tokenAddresses': json['tokenAddresses'],
17
+ 'expiresAt': (new Date(json['expiresAt'])),
18
+ 'maxAmount': json['maxAmount'],
19
+ };
20
+ }
21
+ function WaasWalletSignaturePolicyTmpResponseToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'id': value.id,
30
+ 'walletId': value.walletId,
31
+ 'chain': WaasChainEnumToJSON(value.chain),
32
+ 'toAddresses': value.toAddresses,
33
+ 'tokenAddresses': value.tokenAddresses,
34
+ 'expiresAt': (value.expiresAt.toISOString()),
35
+ 'maxAmount': value.maxAmount,
36
+ };
37
+ }
38
+
39
+ export { WaasWalletSignaturePolicyTmpResponseFromJSON, WaasWalletSignaturePolicyTmpResponseFromJSONTyped, WaasWalletSignaturePolicyTmpResponseToJSON };
@@ -559,6 +559,8 @@ export * from './WaasWallet';
559
559
  export * from './WaasWalletProperties';
560
560
  export * from './WaasWalletResponse';
561
561
  export * from './WaasWalletSettings';
562
+ export * from './WaasWalletSignaturePolicyTmpCreateRequest';
563
+ export * from './WaasWalletSignaturePolicyTmpResponse';
562
564
  export * from './Wallet';
563
565
  export * from './WalletAdditionalAddress';
564
566
  export * from './WalletAddressType';