@dynamic-labs/sdk-api 0.75.0 → 0.77.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.
Files changed (144) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +1 -0
  3. package/src/apis/AdminActionsApi.js +1 -0
  4. package/src/apis/AllowlistsApi.cjs +1 -0
  5. package/src/apis/AllowlistsApi.js +1 -0
  6. package/src/apis/AnalyticsApi.cjs +1 -0
  7. package/src/apis/AnalyticsApi.js +1 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +1 -0
  9. package/src/apis/AuthorizedClientsApi.js +1 -0
  10. package/src/apis/BusinessAccountsApi.cjs +1 -0
  11. package/src/apis/BusinessAccountsApi.js +1 -0
  12. package/src/apis/CaptchaApi.cjs +1 -0
  13. package/src/apis/CaptchaApi.js +1 -0
  14. package/src/apis/ChainalysisApi.cjs +1 -0
  15. package/src/apis/ChainalysisApi.js +1 -0
  16. package/src/apis/ChainsApi.cjs +1 -0
  17. package/src/apis/ChainsApi.js +1 -0
  18. package/src/apis/CheckoutApi.cjs +1 -0
  19. package/src/apis/CheckoutApi.js +1 -0
  20. package/src/apis/ClientGrantApi.cjs +1 -0
  21. package/src/apis/ClientGrantApi.js +1 -0
  22. package/src/apis/CustomFieldsApi.cjs +1 -0
  23. package/src/apis/CustomFieldsApi.js +1 -0
  24. package/src/apis/CustomHostnamesApi.cjs +1 -0
  25. package/src/apis/CustomHostnamesApi.js +1 -0
  26. package/src/apis/CustomNetworksApi.cjs +1 -0
  27. package/src/apis/CustomNetworksApi.js +1 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +1 -0
  29. package/src/apis/DeeplinkUrlsApi.js +1 -0
  30. package/src/apis/EnvironmentsApi.cjs +1 -0
  31. package/src/apis/EnvironmentsApi.js +1 -0
  32. package/src/apis/EventsApi.cjs +1 -0
  33. package/src/apis/EventsApi.js +1 -0
  34. package/src/apis/ExchangesApi.cjs +1 -0
  35. package/src/apis/ExchangesApi.js +1 -0
  36. package/src/apis/ExportsApi.cjs +1 -0
  37. package/src/apis/ExportsApi.js +1 -0
  38. package/src/apis/ExternalJwtApi.cjs +1 -0
  39. package/src/apis/ExternalJwtApi.js +1 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +1 -0
  41. package/src/apis/FlowAnalyticsApi.js +1 -0
  42. package/src/apis/GaslessApi.cjs +1 -0
  43. package/src/apis/GaslessApi.js +1 -0
  44. package/src/apis/GatesApi.cjs +1 -0
  45. package/src/apis/GatesApi.js +1 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +1 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +1 -0
  50. package/src/apis/GlobalWalletsApi.cjs +1 -0
  51. package/src/apis/GlobalWalletsApi.js +1 -0
  52. package/src/apis/InvitesApi.cjs +1 -0
  53. package/src/apis/InvitesApi.js +1 -0
  54. package/src/apis/KybApi.cjs +1 -0
  55. package/src/apis/KybApi.js +1 -0
  56. package/src/apis/MembersApi.cjs +1 -0
  57. package/src/apis/MembersApi.js +1 -0
  58. package/src/apis/MfaSettingsApi.cjs +1 -0
  59. package/src/apis/MfaSettingsApi.js +1 -0
  60. package/src/apis/NameServicesApi.cjs +1 -0
  61. package/src/apis/NameServicesApi.js +1 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +1 -0
  63. package/src/apis/OrganizationSettingsApi.js +1 -0
  64. package/src/apis/OrganizationsApi.cjs +1 -0
  65. package/src/apis/OrganizationsApi.js +1 -0
  66. package/src/apis/OriginsApi.cjs +1 -0
  67. package/src/apis/OriginsApi.js +1 -0
  68. package/src/apis/ProjectsApi.cjs +1 -0
  69. package/src/apis/ProjectsApi.js +1 -0
  70. package/src/apis/ProvidersApi.cjs +1 -0
  71. package/src/apis/ProvidersApi.js +1 -0
  72. package/src/apis/SDKApi.cjs +277 -0
  73. package/src/apis/SDKApi.d.ts +118 -1
  74. package/src/apis/SDKApi.js +277 -0
  75. package/src/apis/SDKViewsApi.cjs +1 -0
  76. package/src/apis/SDKViewsApi.js +1 -0
  77. package/src/apis/ScreeningPoliciesApi.cjs +1 -0
  78. package/src/apis/ScreeningPoliciesApi.js +1 -0
  79. package/src/apis/ServerApi.cjs +66 -1
  80. package/src/apis/ServerApi.d.ts +30 -1
  81. package/src/apis/ServerApi.js +66 -1
  82. package/src/apis/SessionsApi.cjs +1 -0
  83. package/src/apis/SessionsApi.js +1 -0
  84. package/src/apis/TestAccountApi.cjs +1 -0
  85. package/src/apis/TestAccountApi.js +1 -0
  86. package/src/apis/TokensApi.cjs +1 -0
  87. package/src/apis/TokensApi.js +1 -0
  88. package/src/apis/UserApiTokensApi.cjs +1 -0
  89. package/src/apis/UserApiTokensApi.js +1 -0
  90. package/src/apis/UsersApi.cjs +1 -0
  91. package/src/apis/UsersApi.js +1 -0
  92. package/src/apis/VisitsApi.cjs +1 -0
  93. package/src/apis/VisitsApi.js +1 -0
  94. package/src/apis/WaasApi.cjs +1 -0
  95. package/src/apis/WaasApi.js +1 -0
  96. package/src/apis/WalletConnectApi.cjs +1 -0
  97. package/src/apis/WalletConnectApi.js +1 -0
  98. package/src/apis/WalletsApi.cjs +1 -0
  99. package/src/apis/WalletsApi.js +1 -0
  100. package/src/apis/WebhooksApi.cjs +1 -0
  101. package/src/apis/WebhooksApi.js +1 -0
  102. package/src/apis/YieldApi.cjs +1 -0
  103. package/src/apis/YieldApi.js +1 -0
  104. package/src/apis/ZendeskApi.cjs +1 -0
  105. package/src/apis/ZendeskApi.js +1 -0
  106. package/src/index.cjs +20 -0
  107. package/src/index.js +4 -0
  108. package/src/models/BusinessAccountActivityExport.cjs +53 -0
  109. package/src/models/BusinessAccountActivityExport.d.ts +66 -0
  110. package/src/models/BusinessAccountActivityExport.js +47 -0
  111. package/src/models/BusinessAccountActivityExportRequest.cjs +38 -0
  112. package/src/models/BusinessAccountActivityExportRequest.d.ts +40 -0
  113. package/src/models/BusinessAccountActivityExportRequest.js +32 -0
  114. package/src/models/Export.cjs +2 -0
  115. package/src/models/Export.d.ts +6 -0
  116. package/src/models/Export.js +2 -0
  117. package/src/models/ExportCreateRequest.cjs +4 -0
  118. package/src/models/ExportCreateRequest.d.ts +7 -0
  119. package/src/models/ExportCreateRequest.js +4 -0
  120. package/src/models/ExportCreateRequestFilter.cjs +44 -0
  121. package/src/models/ExportCreateRequestFilter.d.ts +62 -0
  122. package/src/models/ExportCreateRequestFilter.js +38 -0
  123. package/src/models/ExportModelEnum.cjs +1 -0
  124. package/src/models/ExportModelEnum.d.ts +2 -1
  125. package/src/models/ExportModelEnum.js +1 -0
  126. package/src/models/WaasPolicyAction.cjs +2 -1
  127. package/src/models/WaasPolicyAction.d.ts +3 -2
  128. package/src/models/WaasPolicyAction.js +2 -1
  129. package/src/models/WaasPolicyDeclarativeApprovalRequirement.cjs +47 -0
  130. package/src/models/WaasPolicyDeclarativeApprovalRequirement.d.ts +69 -0
  131. package/src/models/WaasPolicyDeclarativeApprovalRequirement.js +41 -0
  132. package/src/models/WaasPolicyDeclarativeRule.cjs +3 -0
  133. package/src/models/WaasPolicyDeclarativeRule.d.ts +7 -0
  134. package/src/models/WaasPolicyDeclarativeRule.js +3 -0
  135. package/src/models/WaasPolicyLayerRule.cjs +3 -3
  136. package/src/models/WaasPolicyLayerRule.d.ts +4 -4
  137. package/src/models/WaasPolicyLayerRule.js +3 -3
  138. package/src/models/WaasPolicyLayerUpdateRequest.cjs +4 -0
  139. package/src/models/WaasPolicyLayerUpdateRequest.d.ts +10 -2
  140. package/src/models/WaasPolicyLayerUpdateRequest.js +4 -0
  141. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +4 -0
  142. package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +10 -2
  143. package/src/models/WaasSignerPolicyLayerUpdateRequest.js +4 -0
  144. package/src/models/index.d.ts +4 -0
@@ -2,6 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
6
+ var ExportCreateRequestFilter = require('./ExportCreateRequestFilter.cjs');
5
7
  var ExportFormatEnum = require('./ExportFormatEnum.cjs');
6
8
  var ExportModelEnum = require('./ExportModelEnum.cjs');
7
9
 
@@ -16,6 +18,7 @@ function ExportCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
16
18
  return {
17
19
  'format': ExportFormatEnum.ExportFormatEnumFromJSON(json['format']),
18
20
  'model': ExportModelEnum.ExportModelEnumFromJSON(json['model']),
21
+ 'filter': !runtime.exists(json, 'filter') ? undefined : ExportCreateRequestFilter.ExportCreateRequestFilterFromJSON(json['filter']),
19
22
  };
20
23
  }
21
24
  function ExportCreateRequestToJSON(value) {
@@ -28,6 +31,7 @@ function ExportCreateRequestToJSON(value) {
28
31
  return {
29
32
  'format': ExportFormatEnum.ExportFormatEnumToJSON(value.format),
30
33
  'model': ExportModelEnum.ExportModelEnumToJSON(value.model),
34
+ 'filter': ExportCreateRequestFilter.ExportCreateRequestFilterToJSON(value.filter),
31
35
  };
32
36
  }
33
37
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ExportCreateRequestFilter } from './ExportCreateRequestFilter';
12
13
  import { ExportFormatEnum } from './ExportFormatEnum';
13
14
  import { ExportModelEnum } from './ExportModelEnum';
14
15
  /**
@@ -29,6 +30,12 @@ export interface ExportCreateRequest {
29
30
  * @memberof ExportCreateRequest
30
31
  */
31
32
  model: ExportModelEnum;
33
+ /**
34
+ *
35
+ * @type {ExportCreateRequestFilter}
36
+ * @memberof ExportCreateRequest
37
+ */
38
+ filter?: ExportCreateRequestFilter;
32
39
  }
33
40
  export declare function ExportCreateRequestFromJSON(json: any): ExportCreateRequest;
34
41
  export declare function ExportCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportCreateRequest;
@@ -1,3 +1,5 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ExportCreateRequestFilterFromJSON, ExportCreateRequestFilterToJSON } from './ExportCreateRequestFilter.js';
1
3
  import { ExportFormatEnumFromJSON, ExportFormatEnumToJSON } from './ExportFormatEnum.js';
2
4
  import { ExportModelEnumFromJSON, ExportModelEnumToJSON } from './ExportModelEnum.js';
3
5
 
@@ -12,6 +14,7 @@ function ExportCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
12
14
  return {
13
15
  'format': ExportFormatEnumFromJSON(json['format']),
14
16
  'model': ExportModelEnumFromJSON(json['model']),
17
+ 'filter': !exists(json, 'filter') ? undefined : ExportCreateRequestFilterFromJSON(json['filter']),
15
18
  };
16
19
  }
17
20
  function ExportCreateRequestToJSON(value) {
@@ -24,6 +27,7 @@ function ExportCreateRequestToJSON(value) {
24
27
  return {
25
28
  'format': ExportFormatEnumToJSON(value.format),
26
29
  'model': ExportModelEnumToJSON(value.model),
30
+ 'filter': ExportCreateRequestFilterToJSON(value.filter),
27
31
  };
28
32
  }
29
33
 
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var BusinessAccountActionEnum = require('./BusinessAccountActionEnum.cjs');
7
+
8
+ /* tslint:disable */
9
+ function ExportCreateRequestFilterFromJSON(json) {
10
+ return ExportCreateRequestFilterFromJSONTyped(json);
11
+ }
12
+ function ExportCreateRequestFilterFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'users': !runtime.exists(json, 'users') ? undefined : json['users'],
18
+ 'visits': !runtime.exists(json, 'visits') ? undefined : json['visits'],
19
+ 'businessAccountId': !runtime.exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
20
+ 'from': !runtime.exists(json, 'from') ? undefined : (new Date(json['from'])),
21
+ 'to': !runtime.exists(json, 'to') ? undefined : (new Date(json['to'])),
22
+ 'actions': !runtime.exists(json, 'actions') ? undefined : (json['actions'].map(BusinessAccountActionEnum.BusinessAccountActionEnumFromJSON)),
23
+ };
24
+ }
25
+ function ExportCreateRequestFilterToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'users': value.users,
34
+ 'visits': value.visits,
35
+ 'businessAccountId': value.businessAccountId,
36
+ 'from': value.from === undefined ? undefined : (value.from.toISOString()),
37
+ 'to': value.to === undefined ? undefined : (value.to.toISOString()),
38
+ 'actions': value.actions === undefined ? undefined : (value.actions.map(BusinessAccountActionEnum.BusinessAccountActionEnumToJSON)),
39
+ };
40
+ }
41
+
42
+ exports.ExportCreateRequestFilterFromJSON = ExportCreateRequestFilterFromJSON;
43
+ exports.ExportCreateRequestFilterFromJSONTyped = ExportCreateRequestFilterFromJSONTyped;
44
+ exports.ExportCreateRequestFilterToJSON = ExportCreateRequestFilterToJSON;
@@ -0,0 +1,62 @@
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 { BusinessAccountActionEnum } from './BusinessAccountActionEnum';
13
+ /**
14
+ * Model-specific filter criteria. For `businessAccountActivity`: `businessAccountId` (required), `from`/`to` (date-time), and `actions` (array of BusinessAccountActionEnum) are supported.
15
+ * @export
16
+ * @interface ExportCreateRequestFilter
17
+ */
18
+ export interface ExportCreateRequestFilter {
19
+ /**
20
+ * User export filters
21
+ * @type {{ [key: string]: object; }}
22
+ * @memberof ExportCreateRequestFilter
23
+ */
24
+ users?: {
25
+ [key: string]: object;
26
+ };
27
+ /**
28
+ * Visit export filters
29
+ * @type {{ [key: string]: object; }}
30
+ * @memberof ExportCreateRequestFilter
31
+ */
32
+ visits?: {
33
+ [key: string]: object;
34
+ };
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ExportCreateRequestFilter
39
+ */
40
+ businessAccountId?: string;
41
+ /**
42
+ *
43
+ * @type {Date}
44
+ * @memberof ExportCreateRequestFilter
45
+ */
46
+ from?: Date;
47
+ /**
48
+ *
49
+ * @type {Date}
50
+ * @memberof ExportCreateRequestFilter
51
+ */
52
+ to?: Date;
53
+ /**
54
+ *
55
+ * @type {Array<BusinessAccountActionEnum>}
56
+ * @memberof ExportCreateRequestFilter
57
+ */
58
+ actions?: Array<BusinessAccountActionEnum>;
59
+ }
60
+ export declare function ExportCreateRequestFilterFromJSON(json: any): ExportCreateRequestFilter;
61
+ export declare function ExportCreateRequestFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportCreateRequestFilter;
62
+ export declare function ExportCreateRequestFilterToJSON(value?: ExportCreateRequestFilter | null): any;
@@ -0,0 +1,38 @@
1
+ import { exists } from '../runtime.js';
2
+ import { BusinessAccountActionEnumFromJSON, BusinessAccountActionEnumToJSON } from './BusinessAccountActionEnum.js';
3
+
4
+ /* tslint:disable */
5
+ function ExportCreateRequestFilterFromJSON(json) {
6
+ return ExportCreateRequestFilterFromJSONTyped(json);
7
+ }
8
+ function ExportCreateRequestFilterFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'users': !exists(json, 'users') ? undefined : json['users'],
14
+ 'visits': !exists(json, 'visits') ? undefined : json['visits'],
15
+ 'businessAccountId': !exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
16
+ 'from': !exists(json, 'from') ? undefined : (new Date(json['from'])),
17
+ 'to': !exists(json, 'to') ? undefined : (new Date(json['to'])),
18
+ 'actions': !exists(json, 'actions') ? undefined : (json['actions'].map(BusinessAccountActionEnumFromJSON)),
19
+ };
20
+ }
21
+ function ExportCreateRequestFilterToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'users': value.users,
30
+ 'visits': value.visits,
31
+ 'businessAccountId': value.businessAccountId,
32
+ 'from': value.from === undefined ? undefined : (value.from.toISOString()),
33
+ 'to': value.to === undefined ? undefined : (value.to.toISOString()),
34
+ 'actions': value.actions === undefined ? undefined : (value.actions.map(BusinessAccountActionEnumToJSON)),
35
+ };
36
+ }
37
+
38
+ export { ExportCreateRequestFilterFromJSON, ExportCreateRequestFilterFromJSONTyped, ExportCreateRequestFilterToJSON };
@@ -24,6 +24,7 @@ exports.ExportModelEnum = void 0;
24
24
  (function (ExportModelEnum) {
25
25
  ExportModelEnum["Users"] = "users";
26
26
  ExportModelEnum["Visits"] = "visits";
27
+ ExportModelEnum["BusinessAccountActivity"] = "businessAccountActivity";
27
28
  })(exports.ExportModelEnum || (exports.ExportModelEnum = {}));
28
29
  function ExportModelEnumFromJSON(json) {
29
30
  return ExportModelEnumFromJSONTyped(json);
@@ -16,7 +16,8 @@
16
16
  */
17
17
  export declare enum ExportModelEnum {
18
18
  Users = "users",
19
- Visits = "visits"
19
+ Visits = "visits",
20
+ BusinessAccountActivity = "businessAccountActivity"
20
21
  }
21
22
  export declare function ExportModelEnumFromJSON(json: any): ExportModelEnum;
22
23
  export declare function ExportModelEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportModelEnum;
@@ -20,6 +20,7 @@ var ExportModelEnum;
20
20
  (function (ExportModelEnum) {
21
21
  ExportModelEnum["Users"] = "users";
22
22
  ExportModelEnum["Visits"] = "visits";
23
+ ExportModelEnum["BusinessAccountActivity"] = "businessAccountActivity";
23
24
  })(ExportModelEnum || (ExportModelEnum = {}));
24
25
  function ExportModelEnumFromJSON(json) {
25
26
  return ExportModelEnumFromJSONTyped(json);
@@ -16,7 +16,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
16
16
  * Do not edit the class manually.
17
17
  */
18
18
  /**
19
- * What a rule in the policy rule language decides when it matches
19
+ * What a rule in the policy rule language decides when it matches. REQUIRE_APPROVAL neither allows nor denies; it applies the Rule's approvalRequirements to a matching transaction, and is valid in the transaction phase only.
20
20
  * @export
21
21
  * @enum {string}
22
22
  */
@@ -24,6 +24,7 @@ exports.WaasPolicyAction = void 0;
24
24
  (function (WaasPolicyAction) {
25
25
  WaasPolicyAction["Allow"] = "ALLOW";
26
26
  WaasPolicyAction["Deny"] = "DENY";
27
+ WaasPolicyAction["RequireApproval"] = "REQUIRE_APPROVAL";
27
28
  })(exports.WaasPolicyAction || (exports.WaasPolicyAction = {}));
28
29
  function WaasPolicyActionFromJSON(json) {
29
30
  return WaasPolicyActionFromJSONTyped(json);
@@ -10,13 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * What a rule in the policy rule language decides when it matches
13
+ * What a rule in the policy rule language decides when it matches. REQUIRE_APPROVAL neither allows nor denies; it applies the Rule's approvalRequirements to a matching transaction, and is valid in the transaction phase only.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum WaasPolicyAction {
18
18
  Allow = "ALLOW",
19
- Deny = "DENY"
19
+ Deny = "DENY",
20
+ RequireApproval = "REQUIRE_APPROVAL"
20
21
  }
21
22
  export declare function WaasPolicyActionFromJSON(json: any): WaasPolicyAction;
22
23
  export declare function WaasPolicyActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyAction;
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * What a rule in the policy rule language decides when it matches
15
+ * What a rule in the policy rule language decides when it matches. REQUIRE_APPROVAL neither allows nor denies; it applies the Rule's approvalRequirements to a matching transaction, and is valid in the transaction phase only.
16
16
  * @export
17
17
  * @enum {string}
18
18
  */
@@ -20,6 +20,7 @@ var WaasPolicyAction;
20
20
  (function (WaasPolicyAction) {
21
21
  WaasPolicyAction["Allow"] = "ALLOW";
22
22
  WaasPolicyAction["Deny"] = "DENY";
23
+ WaasPolicyAction["RequireApproval"] = "REQUIRE_APPROVAL";
23
24
  })(WaasPolicyAction || (WaasPolicyAction = {}));
24
25
  function WaasPolicyActionFromJSON(json) {
25
26
  return WaasPolicyActionFromJSONTyped(json);
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasPolicyDeclarativeApprovalRequirementFromJSON(json) {
9
+ return WaasPolicyDeclarativeApprovalRequirementFromJSONTyped(json);
10
+ }
11
+ function WaasPolicyDeclarativeApprovalRequirementFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'v': json['v'],
17
+ 'id': json['id'],
18
+ 'eligibleApproverRoles': !runtime.exists(json, 'eligibleApproverRoles') ? undefined : json['eligibleApproverRoles'],
19
+ 'mandatoryApproverRoles': !runtime.exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
20
+ 'eligibleApproverRole': !runtime.exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
21
+ 'mandatoryApproverRole': !runtime.exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
22
+ 'requiredApprovals': json['requiredApprovals'],
23
+ 'completeWithinSeconds': !runtime.exists(json, 'completeWithinSeconds') ? undefined : json['completeWithinSeconds'],
24
+ };
25
+ }
26
+ function WaasPolicyDeclarativeApprovalRequirementToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'v': value.v,
35
+ 'id': value.id,
36
+ 'eligibleApproverRoles': value.eligibleApproverRoles,
37
+ 'mandatoryApproverRoles': value.mandatoryApproverRoles,
38
+ 'eligibleApproverRole': value.eligibleApproverRole,
39
+ 'mandatoryApproverRole': value.mandatoryApproverRole,
40
+ 'requiredApprovals': value.requiredApprovals,
41
+ 'completeWithinSeconds': value.completeWithinSeconds,
42
+ };
43
+ }
44
+
45
+ exports.WaasPolicyDeclarativeApprovalRequirementFromJSON = WaasPolicyDeclarativeApprovalRequirementFromJSON;
46
+ exports.WaasPolicyDeclarativeApprovalRequirementFromJSONTyped = WaasPolicyDeclarativeApprovalRequirementFromJSONTyped;
47
+ exports.WaasPolicyDeclarativeApprovalRequirementToJSON = WaasPolicyDeclarativeApprovalRequirementToJSON;
@@ -0,0 +1,69 @@
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
+ /**
13
+ * One approval requirement on a Rule in the policy rule language. It has no condition of its own: the Rule's own condition decides when it applies.
14
+ * @export
15
+ * @interface WaasPolicyDeclarativeApprovalRequirement
16
+ */
17
+ export interface WaasPolicyDeclarativeApprovalRequirement {
18
+ /**
19
+ * Schema version for this requirement. An unknown value rejects the Composition.
20
+ * @type {number}
21
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
22
+ */
23
+ v: number;
24
+ /**
25
+ * Stable handle for this requirement, carried as requirementId in the deny reason.
26
+ * @type {string}
27
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
28
+ */
29
+ id: string;
30
+ /**
31
+ * Names of the roles whose holders may satisfy this requirement. A holder of any listed role may approve. An empty array means no restriction.
32
+ * @type {Array<string>}
33
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
34
+ */
35
+ eligibleApproverRoles?: Array<string>;
36
+ /**
37
+ * Names of the roles that must each be represented among the approvers, regardless of eligibleApproverRoles. An empty array means none.
38
+ * @type {Array<string>}
39
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
40
+ */
41
+ mandatoryApproverRoles?: Array<string>;
42
+ /**
43
+ * Deprecated. Use eligibleApproverRoles. Do not send both.
44
+ * @type {string}
45
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
46
+ */
47
+ eligibleApproverRole?: string;
48
+ /**
49
+ * Deprecated. Use mandatoryApproverRoles. Do not send both.
50
+ * @type {string}
51
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
52
+ */
53
+ mandatoryApproverRole?: string;
54
+ /**
55
+ * Total approvals required. Never counts the Initiator.
56
+ * @type {number}
57
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
58
+ */
59
+ requiredApprovals: number;
60
+ /**
61
+ * How long a collected-approvals proposal remains valid.
62
+ * @type {number}
63
+ * @memberof WaasPolicyDeclarativeApprovalRequirement
64
+ */
65
+ completeWithinSeconds?: number;
66
+ }
67
+ export declare function WaasPolicyDeclarativeApprovalRequirementFromJSON(json: any): WaasPolicyDeclarativeApprovalRequirement;
68
+ export declare function WaasPolicyDeclarativeApprovalRequirementFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyDeclarativeApprovalRequirement;
69
+ export declare function WaasPolicyDeclarativeApprovalRequirementToJSON(value?: WaasPolicyDeclarativeApprovalRequirement | null): any;
@@ -0,0 +1,41 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasPolicyDeclarativeApprovalRequirementFromJSON(json) {
5
+ return WaasPolicyDeclarativeApprovalRequirementFromJSONTyped(json);
6
+ }
7
+ function WaasPolicyDeclarativeApprovalRequirementFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'v': json['v'],
13
+ 'id': json['id'],
14
+ 'eligibleApproverRoles': !exists(json, 'eligibleApproverRoles') ? undefined : json['eligibleApproverRoles'],
15
+ 'mandatoryApproverRoles': !exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
16
+ 'eligibleApproverRole': !exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
17
+ 'mandatoryApproverRole': !exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
18
+ 'requiredApprovals': json['requiredApprovals'],
19
+ 'completeWithinSeconds': !exists(json, 'completeWithinSeconds') ? undefined : json['completeWithinSeconds'],
20
+ };
21
+ }
22
+ function WaasPolicyDeclarativeApprovalRequirementToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'v': value.v,
31
+ 'id': value.id,
32
+ 'eligibleApproverRoles': value.eligibleApproverRoles,
33
+ 'mandatoryApproverRoles': value.mandatoryApproverRoles,
34
+ 'eligibleApproverRole': value.eligibleApproverRole,
35
+ 'mandatoryApproverRole': value.mandatoryApproverRole,
36
+ 'requiredApprovals': value.requiredApprovals,
37
+ 'completeWithinSeconds': value.completeWithinSeconds,
38
+ };
39
+ }
40
+
41
+ export { WaasPolicyDeclarativeApprovalRequirementFromJSON, WaasPolicyDeclarativeApprovalRequirementFromJSONTyped, WaasPolicyDeclarativeApprovalRequirementToJSON };
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
6
  var WaasPolicyAction = require('./WaasPolicyAction.cjs');
7
+ var WaasPolicyDeclarativeApprovalRequirement = require('./WaasPolicyDeclarativeApprovalRequirement.cjs');
7
8
 
8
9
  /* tslint:disable */
9
10
  /**
@@ -28,6 +29,7 @@ function WaasPolicyDeclarativeRuleFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'phase': json['phase'],
29
30
  'when': json['when'],
30
31
  'then': WaasPolicyAction.WaasPolicyActionFromJSON(json['then']),
32
+ 'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementFromJSON)),
31
33
  'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
32
34
  };
33
35
  }
@@ -44,6 +46,7 @@ function WaasPolicyDeclarativeRuleToJSON(value) {
44
46
  'phase': value.phase,
45
47
  'when': value.when,
46
48
  'then': WaasPolicyAction.WaasPolicyActionToJSON(value.then),
49
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementToJSON)),
47
50
  'modifiableBySigner': value.modifiableBySigner,
48
51
  };
49
52
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { WaasPolicyAction } from './WaasPolicyAction';
13
+ import { WaasPolicyDeclarativeApprovalRequirement } from './WaasPolicyDeclarativeApprovalRequirement';
13
14
  /**
14
15
  * A Rule authored in the policy rule language, evaluated by the engine as stored rather than compiled from WaasPolicyRule. Shares identity and authorship with a legacy Rule so the Layer machinery — deletion markers, authorship stamping, the edit guard — keys on the same fields and needs no second code path for anything but evaluation.
15
16
  * @export
@@ -46,6 +47,12 @@ export interface WaasPolicyDeclarativeRule {
46
47
  * @memberof WaasPolicyDeclarativeRule
47
48
  */
48
49
  then: WaasPolicyAction;
50
+ /**
51
+ * The approvals a matching transaction needs. Required when then is REQUIRE_APPROVAL and refused on any other action. A deny in the same Layer wins first; otherwise every REQUIRE_APPROVAL Rule whose when holds, or cannot be decided, applies. A message or raw sign has no transaction to test, so every such Rule applies. Enforced only for business-account wallets. Valid on business-account, wallet and signer Layers and refused on the environment Layer. Only admins and business-account admins may author one. May not read spendWindows.
52
+ * @type {Array<WaasPolicyDeclarativeApprovalRequirement>}
53
+ * @memberof WaasPolicyDeclarativeRule
54
+ */
55
+ approvalRequirements?: Array<WaasPolicyDeclarativeApprovalRequirement>;
49
56
  /**
50
57
  * When true, a Signer may adjust this Rule within its recognised shape
51
58
  * @type {boolean}
@@ -1,5 +1,6 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { WaasPolicyActionFromJSON, WaasPolicyActionToJSON } from './WaasPolicyAction.js';
3
+ import { WaasPolicyDeclarativeApprovalRequirementFromJSON, WaasPolicyDeclarativeApprovalRequirementToJSON } from './WaasPolicyDeclarativeApprovalRequirement.js';
3
4
 
4
5
  /* tslint:disable */
5
6
  /**
@@ -24,6 +25,7 @@ function WaasPolicyDeclarativeRuleFromJSONTyped(json, ignoreDiscriminator) {
24
25
  'phase': json['phase'],
25
26
  'when': json['when'],
26
27
  'then': WaasPolicyActionFromJSON(json['then']),
28
+ 'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirementFromJSON)),
27
29
  'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
28
30
  };
29
31
  }
@@ -40,6 +42,7 @@ function WaasPolicyDeclarativeRuleToJSON(value) {
40
42
  'phase': value.phase,
41
43
  'when': value.when,
42
44
  'then': WaasPolicyActionToJSON(value.then),
45
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirementToJSON)),
43
46
  'modifiableBySigner': value.modifiableBySigner,
44
47
  };
45
48
  }
@@ -6,7 +6,7 @@ var runtime = require('../runtime.cjs');
6
6
  var WaasChainEnum = require('./WaasChainEnum.cjs');
7
7
  var WaasPolicyAction = require('./WaasPolicyAction.cjs');
8
8
  var WaasPolicyArgumentConstraint = require('./WaasPolicyArgumentConstraint.cjs');
9
- var WaasPolicyRuleApprovalRequirements = require('./WaasPolicyRuleApprovalRequirements.cjs');
9
+ var WaasPolicyDeclarativeApprovalRequirement = require('./WaasPolicyDeclarativeApprovalRequirement.cjs');
10
10
  var WaasPolicyRuleOperationRestrictions = require('./WaasPolicyRuleOperationRestrictions.cjs');
11
11
  var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
12
12
  var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
@@ -44,7 +44,7 @@ function WaasPolicyLayerRuleFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'operationRestrictions': !runtime.exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
45
45
  'disableBlockaidSecurityChecks': !runtime.exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
46
46
  'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
47
- 'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsFromJSON)),
47
+ 'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementFromJSON)),
48
48
  'phase': json['phase'],
49
49
  'when': json['when'],
50
50
  'then': WaasPolicyAction.WaasPolicyActionFromJSON(json['then']),
@@ -73,7 +73,7 @@ function WaasPolicyLayerRuleToJSON(value) {
73
73
  'operationRestrictions': WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
74
74
  'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
75
75
  'modifiableBySigner': value.modifiableBySigner,
76
- 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsToJSON)),
76
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirement.WaasPolicyDeclarativeApprovalRequirementToJSON)),
77
77
  'phase': value.phase,
78
78
  'when': value.when,
79
79
  'then': WaasPolicyAction.WaasPolicyActionToJSON(value.then),
@@ -12,7 +12,7 @@
12
12
  import { WaasChainEnum } from './WaasChainEnum';
13
13
  import { WaasPolicyAction } from './WaasPolicyAction';
14
14
  import { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
15
- import { WaasPolicyRuleApprovalRequirements } from './WaasPolicyRuleApprovalRequirements';
15
+ import { WaasPolicyDeclarativeApprovalRequirement } from './WaasPolicyDeclarativeApprovalRequirement';
16
16
  import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
17
17
  import { WaasPolicyRuleType } from './WaasPolicyRuleType';
18
18
  import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
@@ -113,11 +113,11 @@ export interface WaasPolicyLayerRule {
113
113
  */
114
114
  modifiableBySigner?: boolean;
115
115
  /**
116
- * Multi-party approval requirements for this Rule. Enforced only for accounts that support them; ignored for other accounts. when.initiatorRole and when.actionTypes are not yet resolved — until they are, a requirement that sets either field applies to all approvers, not just the named role.
117
- * @type {Array<WaasPolicyRuleApprovalRequirements>}
116
+ * The approvals a matching transaction needs. Required when then is REQUIRE_APPROVAL and refused on any other action. A deny in the same Layer wins first; otherwise every REQUIRE_APPROVAL Rule whose when holds, or cannot be decided, applies. A message or raw sign has no transaction to test, so every such Rule applies. Enforced only for business-account wallets. Valid on business-account, wallet and signer Layers and refused on the environment Layer. Only admins and business-account admins may author one. May not read spendWindows.
117
+ * @type {Array<WaasPolicyDeclarativeApprovalRequirement>}
118
118
  * @memberof WaasPolicyLayerRule
119
119
  */
120
- approvalRequirements?: Array<WaasPolicyRuleApprovalRequirements>;
120
+ approvalRequirements?: Array<WaasPolicyDeclarativeApprovalRequirement>;
121
121
  /**
122
122
  * Which question this Rule answers. A Layer is one flat list, so the phase travels on the Rule rather than being implied by its position.
123
123
  * @type {string}
@@ -2,7 +2,7 @@ import { exists } from '../runtime.js';
2
2
  import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
3
3
  import { WaasPolicyActionFromJSON, WaasPolicyActionToJSON } from './WaasPolicyAction.js';
4
4
  import { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintToJSON } from './WaasPolicyArgumentConstraint.js';
5
- import { WaasPolicyRuleApprovalRequirementsFromJSON, WaasPolicyRuleApprovalRequirementsToJSON } from './WaasPolicyRuleApprovalRequirements.js';
5
+ import { WaasPolicyDeclarativeApprovalRequirementFromJSON, WaasPolicyDeclarativeApprovalRequirementToJSON } from './WaasPolicyDeclarativeApprovalRequirement.js';
6
6
  import { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsToJSON } from './WaasPolicyRuleOperationRestrictions.js';
7
7
  import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
8
8
  import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
@@ -40,7 +40,7 @@ function WaasPolicyLayerRuleFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'operationRestrictions': !exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
41
41
  'disableBlockaidSecurityChecks': !exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
42
42
  'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
43
- 'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyRuleApprovalRequirementsFromJSON)),
43
+ 'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyDeclarativeApprovalRequirementFromJSON)),
44
44
  'phase': json['phase'],
45
45
  'when': json['when'],
46
46
  'then': WaasPolicyActionFromJSON(json['then']),
@@ -69,7 +69,7 @@ function WaasPolicyLayerRuleToJSON(value) {
69
69
  'operationRestrictions': WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
70
70
  'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
71
71
  'modifiableBySigner': value.modifiableBySigner,
72
- 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyRuleApprovalRequirementsToJSON)),
72
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyDeclarativeApprovalRequirementToJSON)),
73
73
  'phase': value.phase,
74
74
  'when': value.when,
75
75
  'then': WaasPolicyActionToJSON(value.then),
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var WaasPolicyLayerRule = require('./WaasPolicyLayerRule.cjs');
6
7
  var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
7
8
  var WaasPolicyRule = require('./WaasPolicyRule.cjs');
8
9
 
@@ -16,6 +17,7 @@ exports.WaasPolicyLayerUpdateRequestOpEnum = void 0;
16
17
  WaasPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
17
18
  WaasPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
18
19
  WaasPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
20
+ WaasPolicyLayerUpdateRequestOpEnum["Replace"] = "replace";
19
21
  })(exports.WaasPolicyLayerUpdateRequestOpEnum || (exports.WaasPolicyLayerUpdateRequestOpEnum = {}));
20
22
  function WaasPolicyLayerUpdateRequestFromJSON(json) {
21
23
  return WaasPolicyLayerUpdateRequestFromJSONTyped(json);
@@ -29,6 +31,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
29
31
  'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
30
32
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
31
33
  'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
34
+ 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerRule.WaasPolicyLayerRuleFromJSON)),
32
35
  };
33
36
  }
34
37
  function WaasPolicyLayerUpdateRequestToJSON(value) {
@@ -43,6 +46,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
43
46
  'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
44
47
  'ruleId': value.ruleId,
45
48
  'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
49
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerRule.WaasPolicyLayerRuleToJSON)),
46
50
  };
47
51
  }
48
52