@rulebricks/sdk 1.3.0 → 1.5.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 (152) hide show
  1. package/README.md +3 -3
  2. package/api/errors/ForbiddenError.d.ts +1 -2
  3. package/api/resources/assets/resources/rules/client/Client.js +1 -6
  4. package/api/resources/index.d.ts +1 -2
  5. package/api/resources/index.js +2 -3
  6. package/api/resources/values/client/Client.d.ts +58 -4
  7. package/api/resources/values/client/Client.js +66 -5
  8. package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +81 -4
  9. package/api/resources/values/client/requests/ValuesListRequest.d.ts +12 -1
  10. package/api/resources/values/index.d.ts +0 -1
  11. package/api/resources/values/index.js +0 -1
  12. package/api/types/DecisionLog.d.ts +4 -6
  13. package/api/types/DynamicValue.d.ts +12 -14
  14. package/api/types/index.d.ts +1 -10
  15. package/api/types/index.js +1 -10
  16. package/dist/api/errors/ForbiddenError.d.ts +1 -2
  17. package/dist/api/resources/assets/resources/rules/client/Client.js +1 -6
  18. package/dist/api/resources/index.d.ts +1 -2
  19. package/dist/api/resources/index.js +2 -3
  20. package/dist/api/resources/values/client/Client.d.ts +58 -4
  21. package/dist/api/resources/values/client/Client.js +66 -5
  22. package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +81 -4
  23. package/dist/api/resources/values/client/requests/ValuesListRequest.d.ts +12 -1
  24. package/dist/api/resources/values/index.d.ts +0 -1
  25. package/dist/api/resources/values/index.js +0 -1
  26. package/dist/api/types/DecisionLog.d.ts +4 -6
  27. package/dist/api/types/DynamicValue.d.ts +12 -14
  28. package/dist/api/types/index.d.ts +1 -10
  29. package/dist/api/types/index.js +1 -10
  30. package/dist/forge/types.d.ts +3 -1
  31. package/dist/forge/types.js +2 -0
  32. package/dist/forge/values.js +1 -0
  33. package/dist/serialization/resources/index.d.ts +1 -2
  34. package/dist/serialization/resources/index.js +2 -3
  35. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +1 -2
  36. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +1 -2
  37. package/dist/serialization/resources/values/index.d.ts +0 -1
  38. package/dist/serialization/resources/values/index.js +0 -1
  39. package/dist/serialization/types/DecisionLog.d.ts +2 -8
  40. package/dist/serialization/types/DecisionLog.js +1 -8
  41. package/dist/serialization/types/DecisionLogResponse.d.ts +2 -1
  42. package/dist/serialization/types/DecisionLogResponse.js +2 -2
  43. package/dist/serialization/types/DynamicValue.d.ts +9 -17
  44. package/dist/serialization/types/DynamicValue.js +8 -14
  45. package/dist/serialization/types/index.d.ts +1 -10
  46. package/dist/serialization/types/index.js +1 -10
  47. package/forge/types.d.ts +3 -1
  48. package/forge/types.js +2 -0
  49. package/forge/values.js +1 -0
  50. package/package.json +39 -44
  51. package/serialization/resources/index.d.ts +1 -2
  52. package/serialization/resources/index.js +2 -3
  53. package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +1 -2
  54. package/serialization/resources/values/client/requests/UpdateValuesRequest.js +1 -2
  55. package/serialization/resources/values/index.d.ts +0 -1
  56. package/serialization/resources/values/index.js +0 -1
  57. package/serialization/types/DecisionLog.d.ts +2 -8
  58. package/serialization/types/DecisionLog.js +1 -8
  59. package/serialization/types/DecisionLogResponse.d.ts +2 -1
  60. package/serialization/types/DecisionLogResponse.js +2 -2
  61. package/serialization/types/DynamicValue.d.ts +9 -17
  62. package/serialization/types/DynamicValue.js +8 -14
  63. package/serialization/types/index.d.ts +1 -10
  64. package/serialization/types/index.js +1 -10
  65. package/api/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -4
  66. package/api/resources/values/types/UpdateValuesRequestValuesValue.js +0 -5
  67. package/api/resources/values/types/index.d.ts +0 -1
  68. package/api/resources/values/types/index.js +0 -17
  69. package/api/types/BooleanValue.d.ts +0 -8
  70. package/api/types/BooleanValue.js +0 -5
  71. package/api/types/DecisionLogDecision.d.ts +0 -8
  72. package/api/types/DecisionLogDecision.js +0 -5
  73. package/api/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -7
  74. package/api/types/DecisionLogDecisionConditionsItemValue.js +0 -5
  75. package/api/types/DecisionLogRequest.d.ts +0 -15
  76. package/api/types/DecisionLogRequest.js +0 -5
  77. package/api/types/DynamicValueBase.d.ts +0 -14
  78. package/api/types/DynamicValueBase.js +0 -5
  79. package/api/types/ListValue.d.ts +0 -8
  80. package/api/types/ListValue.js +0 -5
  81. package/api/types/ListValueValueItem.d.ts +0 -4
  82. package/api/types/ListValueValueItem.js +0 -5
  83. package/api/types/NumberValue.d.ts +0 -8
  84. package/api/types/NumberValue.js +0 -5
  85. package/api/types/StringValue.d.ts +0 -8
  86. package/api/types/StringValue.js +0 -5
  87. package/dist/api/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -4
  88. package/dist/api/resources/values/types/UpdateValuesRequestValuesValue.js +0 -5
  89. package/dist/api/resources/values/types/index.d.ts +0 -1
  90. package/dist/api/resources/values/types/index.js +0 -17
  91. package/dist/api/types/BooleanValue.d.ts +0 -8
  92. package/dist/api/types/BooleanValue.js +0 -5
  93. package/dist/api/types/DecisionLogDecision.d.ts +0 -8
  94. package/dist/api/types/DecisionLogDecision.js +0 -5
  95. package/dist/api/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -7
  96. package/dist/api/types/DecisionLogDecisionConditionsItemValue.js +0 -5
  97. package/dist/api/types/DecisionLogRequest.d.ts +0 -15
  98. package/dist/api/types/DecisionLogRequest.js +0 -5
  99. package/dist/api/types/DynamicValueBase.d.ts +0 -14
  100. package/dist/api/types/DynamicValueBase.js +0 -5
  101. package/dist/api/types/ListValue.d.ts +0 -8
  102. package/dist/api/types/ListValue.js +0 -5
  103. package/dist/api/types/ListValueValueItem.d.ts +0 -4
  104. package/dist/api/types/ListValueValueItem.js +0 -5
  105. package/dist/api/types/NumberValue.d.ts +0 -8
  106. package/dist/api/types/NumberValue.js +0 -5
  107. package/dist/api/types/StringValue.d.ts +0 -8
  108. package/dist/api/types/StringValue.js +0 -5
  109. package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -10
  110. package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.js +0 -36
  111. package/dist/serialization/resources/values/types/index.d.ts +0 -1
  112. package/dist/serialization/resources/values/types/index.js +0 -17
  113. package/dist/serialization/types/BooleanValue.d.ts +0 -13
  114. package/dist/serialization/types/BooleanValue.js +0 -36
  115. package/dist/serialization/types/DecisionLogDecision.d.ts +0 -14
  116. package/dist/serialization/types/DecisionLogDecision.js +0 -37
  117. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -13
  118. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.js +0 -34
  119. package/dist/serialization/types/DecisionLogRequest.d.ts +0 -17
  120. package/dist/serialization/types/DecisionLogRequest.js +0 -40
  121. package/dist/serialization/types/DynamicValueBase.d.ts +0 -16
  122. package/dist/serialization/types/DynamicValueBase.js +0 -37
  123. package/dist/serialization/types/ListValue.d.ts +0 -14
  124. package/dist/serialization/types/ListValue.js +0 -37
  125. package/dist/serialization/types/ListValueValueItem.d.ts +0 -10
  126. package/dist/serialization/types/ListValueValueItem.js +0 -37
  127. package/dist/serialization/types/NumberValue.d.ts +0 -13
  128. package/dist/serialization/types/NumberValue.js +0 -36
  129. package/dist/serialization/types/StringValue.d.ts +0 -13
  130. package/dist/serialization/types/StringValue.js +0 -36
  131. package/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -10
  132. package/serialization/resources/values/types/UpdateValuesRequestValuesValue.js +0 -36
  133. package/serialization/resources/values/types/index.d.ts +0 -1
  134. package/serialization/resources/values/types/index.js +0 -17
  135. package/serialization/types/BooleanValue.d.ts +0 -13
  136. package/serialization/types/BooleanValue.js +0 -36
  137. package/serialization/types/DecisionLogDecision.d.ts +0 -14
  138. package/serialization/types/DecisionLogDecision.js +0 -37
  139. package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -13
  140. package/serialization/types/DecisionLogDecisionConditionsItemValue.js +0 -34
  141. package/serialization/types/DecisionLogRequest.d.ts +0 -17
  142. package/serialization/types/DecisionLogRequest.js +0 -40
  143. package/serialization/types/DynamicValueBase.d.ts +0 -16
  144. package/serialization/types/DynamicValueBase.js +0 -37
  145. package/serialization/types/ListValue.d.ts +0 -14
  146. package/serialization/types/ListValue.js +0 -37
  147. package/serialization/types/ListValueValueItem.d.ts +0 -10
  148. package/serialization/types/ListValueValueItem.js +0 -37
  149. package/serialization/types/NumberValue.d.ts +0 -13
  150. package/serialization/types/NumberValue.js +0 -36
  151. package/serialization/types/StringValue.d.ts +0 -13
  152. package/serialization/types/StringValue.js +0 -36
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicValueBase } from "./DynamicValueBase";
8
- export declare const NumberValue: core.serialization.ObjectSchema<serializers.NumberValue.Raw, Rulebricks.NumberValue>;
9
- export declare namespace NumberValue {
10
- interface Raw extends DynamicValueBase.Raw {
11
- value?: number | null;
12
- }
13
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.NumberValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DynamicValueBase_1 = require("./DynamicValueBase");
32
- exports.NumberValue = core.serialization
33
- .object({
34
- value: core.serialization.number().optional(),
35
- })
36
- .extend(DynamicValueBase_1.DynamicValueBase);
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicValueBase } from "./DynamicValueBase";
8
- export declare const StringValue: core.serialization.ObjectSchema<serializers.StringValue.Raw, Rulebricks.StringValue>;
9
- export declare namespace StringValue {
10
- interface Raw extends DynamicValueBase.Raw {
11
- value?: string | null;
12
- }
13
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.StringValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DynamicValueBase_1 = require("./DynamicValueBase");
32
- exports.StringValue = core.serialization
33
- .object({
34
- value: core.serialization.string().optional(),
35
- })
36
- .extend(DynamicValueBase_1.DynamicValueBase);
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as Rulebricks from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- export declare const UpdateValuesRequestValuesValue: core.serialization.Schema<serializers.UpdateValuesRequestValuesValue.Raw, Rulebricks.UpdateValuesRequestValuesValue>;
8
- export declare namespace UpdateValuesRequestValuesValue {
9
- type Raw = string | number | boolean | string[];
10
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.UpdateValuesRequestValuesValue = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- exports.UpdateValuesRequestValuesValue = core.serialization.undiscriminatedUnion([
32
- core.serialization.string(),
33
- core.serialization.number(),
34
- core.serialization.boolean(),
35
- core.serialization.list(core.serialization.string()),
36
- ]);
@@ -1 +0,0 @@
1
- export * from "./UpdateValuesRequestValuesValue";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./UpdateValuesRequestValuesValue"), exports);
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicValueBase } from "./DynamicValueBase";
8
- export declare const BooleanValue: core.serialization.ObjectSchema<serializers.BooleanValue.Raw, Rulebricks.BooleanValue>;
9
- export declare namespace BooleanValue {
10
- interface Raw extends DynamicValueBase.Raw {
11
- value?: boolean | null;
12
- }
13
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.BooleanValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DynamicValueBase_1 = require("./DynamicValueBase");
32
- exports.BooleanValue = core.serialization
33
- .object({
34
- value: core.serialization.boolean().optional(),
35
- })
36
- .extend(DynamicValueBase_1.DynamicValueBase);
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DecisionLogDecisionConditionsItemValue } from "./DecisionLogDecisionConditionsItemValue";
8
- export declare const DecisionLogDecision: core.serialization.ObjectSchema<serializers.DecisionLogDecision.Raw, Rulebricks.DecisionLogDecision>;
9
- export declare namespace DecisionLogDecision {
10
- interface Raw {
11
- conditions?: Record<string, DecisionLogDecisionConditionsItemValue.Raw>[] | null;
12
- successIdxs?: number[] | null;
13
- }
14
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogDecision = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DecisionLogDecisionConditionsItemValue_1 = require("./DecisionLogDecisionConditionsItemValue");
32
- exports.DecisionLogDecision = core.serialization.object({
33
- conditions: core.serialization
34
- .list(core.serialization.record(core.serialization.string(), DecisionLogDecisionConditionsItemValue_1.DecisionLogDecisionConditionsItemValue))
35
- .optional(),
36
- successIdxs: core.serialization.list(core.serialization.number()).optional(),
37
- });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const DecisionLogDecisionConditionsItemValue: core.serialization.ObjectSchema<serializers.DecisionLogDecisionConditionsItemValue.Raw, Rulebricks.DecisionLogDecisionConditionsItemValue>;
8
- export declare namespace DecisionLogDecisionConditionsItemValue {
9
- interface Raw {
10
- result?: boolean | null;
11
- err?: string | null;
12
- }
13
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogDecisionConditionsItemValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.DecisionLogDecisionConditionsItemValue = core.serialization.object({
32
- result: core.serialization.boolean().optional(),
33
- err: core.serialization.string().optional(),
34
- });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const DecisionLogRequest: core.serialization.ObjectSchema<serializers.DecisionLogRequest.Raw, Rulebricks.DecisionLogRequest>;
8
- export declare namespace DecisionLogRequest {
9
- interface Raw {
10
- ip?: string | null;
11
- method?: string | null;
12
- name?: string | null;
13
- endpoint?: string | null;
14
- params?: Record<string, string[]> | null;
15
- data?: unknown | null;
16
- }
17
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DecisionLogRequest = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.DecisionLogRequest = core.serialization.object({
32
- ip: core.serialization.string().optional(),
33
- method: core.serialization.string().optional(),
34
- name: core.serialization.string().optional(),
35
- endpoint: core.serialization.string().optional(),
36
- params: core.serialization
37
- .record(core.serialization.string(), core.serialization.list(core.serialization.string()))
38
- .optional(),
39
- data: core.serialization.unknown().optional(),
40
- });
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { RuleUsage } from "./RuleUsage";
8
- export declare const DynamicValueBase: core.serialization.ObjectSchema<serializers.DynamicValueBase.Raw, Rulebricks.DynamicValueBase>;
9
- export declare namespace DynamicValueBase {
10
- interface Raw {
11
- id?: string | null;
12
- name?: string | null;
13
- usages?: RuleUsage.Raw[] | null;
14
- accessGroups?: string[] | null;
15
- }
16
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.DynamicValueBase = void 0;
30
- const core = __importStar(require("../../core"));
31
- const RuleUsage_1 = require("./RuleUsage");
32
- exports.DynamicValueBase = core.serialization.object({
33
- id: core.serialization.string().optional(),
34
- name: core.serialization.string().optional(),
35
- usages: core.serialization.list(RuleUsage_1.RuleUsage).optional(),
36
- accessGroups: core.serialization.list(core.serialization.string()).optional(),
37
- });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { ListValueValueItem } from "./ListValueValueItem";
8
- import { DynamicValueBase } from "./DynamicValueBase";
9
- export declare const ListValue: core.serialization.ObjectSchema<serializers.ListValue.Raw, Rulebricks.ListValue>;
10
- export declare namespace ListValue {
11
- interface Raw extends DynamicValueBase.Raw {
12
- value?: ListValueValueItem.Raw[] | null;
13
- }
14
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ListValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- const ListValueValueItem_1 = require("./ListValueValueItem");
32
- const DynamicValueBase_1 = require("./DynamicValueBase");
33
- exports.ListValue = core.serialization
34
- .object({
35
- value: core.serialization.list(ListValueValueItem_1.ListValueValueItem).optional(),
36
- })
37
- .extend(DynamicValueBase_1.DynamicValueBase);
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const ListValueValueItem: core.serialization.Schema<serializers.ListValueValueItem.Raw, Rulebricks.ListValueValueItem>;
8
- export declare namespace ListValueValueItem {
9
- type Raw = string | number | boolean | Record<string, unknown> | unknown[];
10
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ListValueValueItem = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.ListValueValueItem = core.serialization.undiscriminatedUnion([
32
- core.serialization.string(),
33
- core.serialization.number(),
34
- core.serialization.boolean(),
35
- core.serialization.record(core.serialization.string(), core.serialization.unknown()),
36
- core.serialization.list(core.serialization.unknown()),
37
- ]);
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicValueBase } from "./DynamicValueBase";
8
- export declare const NumberValue: core.serialization.ObjectSchema<serializers.NumberValue.Raw, Rulebricks.NumberValue>;
9
- export declare namespace NumberValue {
10
- interface Raw extends DynamicValueBase.Raw {
11
- value?: number | null;
12
- }
13
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.NumberValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DynamicValueBase_1 = require("./DynamicValueBase");
32
- exports.NumberValue = core.serialization
33
- .object({
34
- value: core.serialization.number().optional(),
35
- })
36
- .extend(DynamicValueBase_1.DynamicValueBase);
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Rulebricks from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicValueBase } from "./DynamicValueBase";
8
- export declare const StringValue: core.serialization.ObjectSchema<serializers.StringValue.Raw, Rulebricks.StringValue>;
9
- export declare namespace StringValue {
10
- interface Raw extends DynamicValueBase.Raw {
11
- value?: string | null;
12
- }
13
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.StringValue = void 0;
30
- const core = __importStar(require("../../core"));
31
- const DynamicValueBase_1 = require("./DynamicValueBase");
32
- exports.StringValue = core.serialization
33
- .object({
34
- value: core.serialization.string().optional(),
35
- })
36
- .extend(DynamicValueBase_1.DynamicValueBase);