@dynamic-labs/sdk-api 0.0.847 → 0.0.849

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.847",
3
+ "version": "0.0.849",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -87,6 +87,7 @@ require('../models/NextViewEnum.cjs');
87
87
  require('../models/OauthResultStatus.cjs');
88
88
  require('../models/WhenToImplementEnum.cjs');
89
89
  require('../models/PublishEventsEvents.cjs');
90
+ var SessionsResponse = require('../models/SessionsResponse.cjs');
90
91
  require('../models/SsoProviderEnum.cjs');
91
92
  require('../models/SsoProviderCheckResponse.cjs');
92
93
  require('../models/SubscriptionAdvancedScopeEnum.cjs');
@@ -420,6 +421,50 @@ class UsersApi extends runtime.BaseAPI {
420
421
  return yield response.value();
421
422
  });
422
423
  }
424
+ /**
425
+ * Get all sessions for a user by user ID
426
+ */
427
+ getUserSessionsRaw(requestParameters, initOverrides) {
428
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
429
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
430
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserSessions.');
431
+ }
432
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
433
+ throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getUserSessions.');
434
+ }
435
+ const queryParameters = {};
436
+ if (requestParameters.limit !== undefined) {
437
+ queryParameters['limit'] = requestParameters.limit;
438
+ }
439
+ if (requestParameters.offset !== undefined) {
440
+ queryParameters['offset'] = requestParameters.offset;
441
+ }
442
+ const headerParameters = {};
443
+ if (this.configuration && this.configuration.accessToken) {
444
+ const token = this.configuration.accessToken;
445
+ const tokenString = yield token("bearerAuth", []);
446
+ if (tokenString) {
447
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
448
+ }
449
+ }
450
+ const response = yield this.request({
451
+ path: `/environments/{environmentId}/users/{userId}/sessions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
452
+ method: 'GET',
453
+ headers: headerParameters,
454
+ query: queryParameters,
455
+ }, initOverrides);
456
+ return new runtime.JSONApiResponse(response, (jsonValue) => SessionsResponse.SessionsResponseFromJSON(jsonValue));
457
+ });
458
+ }
459
+ /**
460
+ * Get all sessions for a user by user ID
461
+ */
462
+ getUserSessions(requestParameters, initOverrides) {
463
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
464
+ const response = yield this.getUserSessionsRaw(requestParameters, initOverrides);
465
+ return yield response.value();
466
+ });
467
+ }
423
468
  /**
424
469
  * Revoke sessions by user ID
425
470
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { BulkUserCreateResponse, InternalBulkUpdateUserFields, InternalUpdatableUserFields, InternalUserFields, UserOauthAccessTokenResponse, UserResponse, UserSearchFilterParams, UsersResponse } from '../models';
13
+ import { BulkUserCreateResponse, InternalBulkUpdateUserFields, InternalUpdatableUserFields, InternalUserFields, SessionsResponse, UserOauthAccessTokenResponse, UserResponse, UserSearchFilterParams, UsersResponse } from '../models';
14
14
  export interface BulkCreateUserRequest {
15
15
  environmentId: string;
16
16
  internalUserFields: Array<InternalUserFields>;
@@ -45,6 +45,12 @@ export interface GetUserLegacyRequest {
45
45
  export interface GetUserOauthAccessTokenRequest {
46
46
  oauthAccountId: string;
47
47
  }
48
+ export interface GetUserSessionsRequest {
49
+ environmentId: string;
50
+ userId: string;
51
+ limit?: number;
52
+ offset?: number;
53
+ }
48
54
  export interface RevokeUserSessionsRequest {
49
55
  environmentId: string;
50
56
  userId: string;
@@ -129,6 +135,14 @@ export declare class UsersApi extends runtime.BaseAPI {
129
135
  * Get the access token for a user OAuth account
130
136
  */
131
137
  getUserOauthAccessToken(requestParameters: GetUserOauthAccessTokenRequest, initOverrides?: RequestInit): Promise<UserOauthAccessTokenResponse>;
138
+ /**
139
+ * Get all sessions for a user by user ID
140
+ */
141
+ getUserSessionsRaw(requestParameters: GetUserSessionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SessionsResponse>>;
142
+ /**
143
+ * Get all sessions for a user by user ID
144
+ */
145
+ getUserSessions(requestParameters: GetUserSessionsRequest, initOverrides?: RequestInit): Promise<SessionsResponse>;
132
146
  /**
133
147
  * Revoke sessions by user ID
134
148
  */
@@ -83,6 +83,7 @@ import '../models/NextViewEnum.js';
83
83
  import '../models/OauthResultStatus.js';
84
84
  import '../models/WhenToImplementEnum.js';
85
85
  import '../models/PublishEventsEvents.js';
86
+ import { SessionsResponseFromJSON } from '../models/SessionsResponse.js';
86
87
  import '../models/SsoProviderEnum.js';
87
88
  import '../models/SsoProviderCheckResponse.js';
88
89
  import '../models/SubscriptionAdvancedScopeEnum.js';
@@ -416,6 +417,50 @@ class UsersApi extends BaseAPI {
416
417
  return yield response.value();
417
418
  });
418
419
  }
420
+ /**
421
+ * Get all sessions for a user by user ID
422
+ */
423
+ getUserSessionsRaw(requestParameters, initOverrides) {
424
+ return __awaiter(this, void 0, void 0, function* () {
425
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
426
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserSessions.');
427
+ }
428
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
429
+ throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getUserSessions.');
430
+ }
431
+ const queryParameters = {};
432
+ if (requestParameters.limit !== undefined) {
433
+ queryParameters['limit'] = requestParameters.limit;
434
+ }
435
+ if (requestParameters.offset !== undefined) {
436
+ queryParameters['offset'] = requestParameters.offset;
437
+ }
438
+ const headerParameters = {};
439
+ if (this.configuration && this.configuration.accessToken) {
440
+ const token = this.configuration.accessToken;
441
+ const tokenString = yield token("bearerAuth", []);
442
+ if (tokenString) {
443
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
444
+ }
445
+ }
446
+ const response = yield this.request({
447
+ path: `/environments/{environmentId}/users/{userId}/sessions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
448
+ method: 'GET',
449
+ headers: headerParameters,
450
+ query: queryParameters,
451
+ }, initOverrides);
452
+ return new JSONApiResponse(response, (jsonValue) => SessionsResponseFromJSON(jsonValue));
453
+ });
454
+ }
455
+ /**
456
+ * Get all sessions for a user by user ID
457
+ */
458
+ getUserSessions(requestParameters, initOverrides) {
459
+ return __awaiter(this, void 0, void 0, function* () {
460
+ const response = yield this.getUserSessionsRaw(requestParameters, initOverrides);
461
+ return yield response.value();
462
+ });
463
+ }
419
464
  /**
420
465
  * Revoke sessions by user ID
421
466
  */
@@ -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