@dynamic-labs/sdk-api 0.122.0 → 0.124.0

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.122.0",
3
+ "version": "0.124.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -105,6 +105,10 @@ export interface UpdateWaasEnvPolicyLayerRequest {
105
105
  environmentId: string;
106
106
  waasEnvPolicyLayerUpdateRequest: WaasEnvPolicyLayerUpdateRequest;
107
107
  }
108
+ export interface UpdateWaasEnvPolicyLayerRulesRequest {
109
+ environmentId: string;
110
+ waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
111
+ }
108
112
  export interface UpdateWaasPolicyRequest {
109
113
  environmentId: string;
110
114
  waasPolicyUpdateRequest: WaasPolicyUpdateRequest;
@@ -378,6 +382,16 @@ export declare class WaasApi extends runtime.BaseAPI {
378
382
  * Write the environment-Layer\'s Rules
379
383
  */
380
384
  updateWaasEnvPolicyLayer(requestParameters: UpdateWaasEnvPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
385
+ /**
386
+ * Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
387
+ * Update the environment-Layer\'s Rules by ruleId
388
+ */
389
+ updateWaasEnvPolicyLayerRulesRaw(requestParameters: UpdateWaasEnvPolicyLayerRulesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
390
+ /**
391
+ * Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
392
+ * Update the environment-Layer\'s Rules by ruleId
393
+ */
394
+ updateWaasEnvPolicyLayerRules(requestParameters: UpdateWaasEnvPolicyLayerRulesRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
381
395
  /**
382
396
  * Updates the WaaS policy for the specified environment.
383
397
  * Update the WAAS policy for an environment by ruleId
@@ -982,6 +982,37 @@ class WaasApi extends BaseAPI {
982
982
  const response = await this.updateWaasEnvPolicyLayerRaw(requestParameters, initOverrides);
983
983
  return await response.value();
984
984
  }
985
+ /**
986
+ * Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
987
+ * Update the environment-Layer\'s Rules by ruleId
988
+ */
989
+ async updateWaasEnvPolicyLayerRulesRaw(requestParameters, initOverrides) {
990
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
991
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateWaasEnvPolicyLayerRules.');
992
+ }
993
+ if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
994
+ throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateWaasEnvPolicyLayerRules.');
995
+ }
996
+ const queryParameters = {};
997
+ const headerParameters = {};
998
+ headerParameters['Content-Type'] = 'application/json';
999
+ const response = await this.request({
1000
+ path: `/environments/{environmentId}/waas/policies/env-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1001
+ method: 'PATCH',
1002
+ headers: headerParameters,
1003
+ query: queryParameters,
1004
+ body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
1005
+ }, initOverrides);
1006
+ return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
1007
+ }
1008
+ /**
1009
+ * Applies a single per-Rule upsert or remove operation, or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle, or, with op set to replace, a full rules list that replaces the Layer\'s Rules, to the environment Composition Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. A concurrent edit of the same Layer is retried; if it still conflicts the call returns 409 and can be sent again. PUT remains the whole-list write.
1010
+ * Update the environment-Layer\'s Rules by ruleId
1011
+ */
1012
+ async updateWaasEnvPolicyLayerRules(requestParameters, initOverrides) {
1013
+ const response = await this.updateWaasEnvPolicyLayerRulesRaw(requestParameters, initOverrides);
1014
+ return await response.value();
1015
+ }
985
1016
  /**
986
1017
  * Updates the WaaS policy for the specified environment.
987
1018
  * Update the WAAS policy for an environment by ruleId
@@ -62,6 +62,8 @@ export interface GetWalletsListRequest {
62
62
  limit?: number;
63
63
  cursor?: string;
64
64
  direction?: GetWalletsListDirectionEnum;
65
+ userId?: string;
66
+ address?: string;
65
67
  }
66
68
  export interface RecoverDeletedWalletsWithEnvironmentRequest {
67
69
  environmentId: string;
@@ -672,6 +672,12 @@ class WalletsApi extends BaseAPI {
672
672
  if (requestParameters.direction !== undefined) {
673
673
  queryParameters['direction'] = requestParameters.direction;
674
674
  }
675
+ if (requestParameters.userId !== undefined) {
676
+ queryParameters['userId'] = requestParameters.userId;
677
+ }
678
+ if (requestParameters.address !== undefined) {
679
+ queryParameters['address'] = requestParameters.address;
680
+ }
675
681
  const headerParameters = {};
676
682
  if (this.configuration && this.configuration.accessToken) {
677
683
  const token = this.configuration.accessToken;
@@ -17,7 +17,7 @@ import { WaasPolicyLayerRule } from './WaasPolicyLayerRule';
17
17
  */
18
18
  export interface WaasEnvPolicyLayerUpdateRequest {
19
19
  /**
20
- * The environment-Layer's full Rule list, in either syntax; a PUT always replaces it whole rather than patching one Rule at a time. Each Rule must structurally be one syntax or the other, so a malformed Rule is refused here rather than deep in the enclave.
20
+ * The environment-Layer's full Rule list, in either syntax; a PUT always replaces it whole. To change one Rule at a time, use PATCH. Each Rule must structurally be one syntax or the other, so a malformed Rule is refused here rather than deep in the enclave.
21
21
  * @type {Array<WaasPolicyLayerRule>}
22
22
  * @memberof WaasEnvPolicyLayerUpdateRequest
23
23
  */