@rulebricks/sdk 1.0.0 → 1.1.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 (896) hide show
  1. package/README.md +2 -2
  2. package/api/errors/BadRequestError.js +24 -12
  3. package/api/errors/ForbiddenError.js +24 -12
  4. package/api/errors/InternalServerError.js +24 -12
  5. package/api/errors/NotFoundError.js +24 -12
  6. package/api/resources/assets/client/Client.d.ts +53 -18
  7. package/api/resources/assets/client/Client.js +147 -95
  8. package/api/resources/assets/index.js +0 -1
  9. package/api/resources/decisions/client/Client.d.ts +7 -2
  10. package/api/resources/decisions/client/Client.js +45 -23
  11. package/api/resources/decisions/index.js +0 -1
  12. package/api/resources/flows/client/Client.d.ts +8 -2
  13. package/api/resources/flows/client/Client.js +47 -24
  14. package/api/resources/index.d.ts +3 -3
  15. package/api/resources/index.js +27 -19
  16. package/api/resources/rules/client/Client.d.ts +23 -14
  17. package/api/resources/rules/client/Client.js +75 -51
  18. package/api/resources/tests/client/Client.d.ts +41 -12
  19. package/api/resources/tests/client/Client.js +110 -64
  20. package/api/resources/tests/client/index.js +0 -19
  21. package/api/resources/tests/index.js +0 -1
  22. package/api/resources/users/client/Client.d.ts +22 -24
  23. package/api/resources/users/client/Client.js +74 -59
  24. package/api/resources/users/types/UserInviteRequestRole.d.ts +7 -0
  25. package/api/resources/users/types/{InviteRequestRole.js → UserInviteRequestRole.js} +4 -2
  26. package/api/resources/users/types/index.js +1 -4
  27. package/api/resources/values/client/Client.d.ts +27 -6
  28. package/api/resources/values/client/Client.js +80 -42
  29. package/api/resources/values/types/index.js +1 -9
  30. package/{dist/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts → api/types/SchemaFieldType.d.ts} +3 -2
  31. package/api/{resources/values/types/UpdateResponseItemType.js → types/SchemaFieldType.js} +4 -3
  32. package/api/types/index.js +47 -4
  33. package/core/fetcher/Fetcher.d.ts +1 -1
  34. package/core/fetcher/Fetcher.js +30 -81
  35. package/core/fetcher/createRequestUrl.d.ts +2 -0
  36. package/core/fetcher/createRequestUrl.js +12 -0
  37. package/core/fetcher/getFetchFn.d.ts +5 -0
  38. package/core/fetcher/getFetchFn.js +86 -0
  39. package/core/fetcher/getHeader.js +1 -2
  40. package/core/fetcher/getRequestBody.d.ts +2 -0
  41. package/core/fetcher/getRequestBody.js +33 -0
  42. package/core/fetcher/getResponseBody.d.ts +2 -0
  43. package/core/fetcher/getResponseBody.js +64 -0
  44. package/core/fetcher/makeRequest.d.ts +2 -0
  45. package/core/fetcher/makeRequest.js +52 -0
  46. package/core/fetcher/requestWithRetries.d.ts +2 -0
  47. package/core/fetcher/requestWithRetries.js +50 -0
  48. package/core/fetcher/signals.d.ts +12 -0
  49. package/core/fetcher/signals.js +36 -0
  50. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +40 -0
  51. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +257 -0
  52. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +23 -0
  53. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +143 -0
  54. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +40 -0
  55. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +239 -0
  56. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +2 -0
  57. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +77 -0
  58. package/core/index.js +24 -11
  59. package/core/json.d.ts +16 -0
  60. package/core/json.js +24 -0
  61. package/core/runtime/index.d.ts +3 -0
  62. package/core/runtime/index.js +5 -0
  63. package/core/runtime/runtime.d.ts +14 -0
  64. package/core/runtime/runtime.js +103 -0
  65. package/core/schemas/Schema.d.ts +3 -0
  66. package/core/schemas/Schema.js +3 -0
  67. package/core/schemas/builders/bigint/bigint.d.ts +4 -0
  68. package/core/schemas/builders/bigint/bigint.js +53 -0
  69. package/core/schemas/builders/bigint/index.d.ts +3 -0
  70. package/core/schemas/builders/bigint/index.js +5 -0
  71. package/core/schemas/builders/date/date.js +1 -2
  72. package/core/schemas/builders/enum/enum.js +1 -2
  73. package/core/schemas/builders/index.js +1 -0
  74. package/core/schemas/builders/lazy/lazy.js +11 -33
  75. package/core/schemas/builders/lazy/lazyObject.js +2 -22
  76. package/core/schemas/builders/list/list.js +32 -56
  77. package/core/schemas/builders/literals/booleanLiteral.js +1 -2
  78. package/core/schemas/builders/literals/stringLiteral.js +1 -2
  79. package/core/schemas/builders/object/object.d.ts +48 -7
  80. package/core/schemas/builders/object/object.js +132 -139
  81. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  82. package/core/schemas/builders/object/property.js +2 -3
  83. package/core/schemas/builders/object-like/getObjectLikeUtils.js +5 -25
  84. package/core/schemas/builders/record/record.d.ts +2 -5
  85. package/core/schemas/builders/record/record.js +49 -72
  86. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +86 -0
  87. package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -35
  88. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  89. package/core/schemas/builders/set/set.d.ts +2 -5
  90. package/core/schemas/builders/set/set.js +7 -27
  91. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +22 -44
  92. package/core/schemas/builders/union/discriminant.js +1 -2
  93. package/core/schemas/builders/union/union.js +52 -74
  94. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  95. package/core/schemas/utils/entries.js +1 -2
  96. package/core/schemas/utils/filterObject.js +1 -2
  97. package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
  98. package/core/schemas/utils/isPlainObject.js +1 -2
  99. package/core/schemas/utils/keys.js +1 -2
  100. package/core/schemas/utils/maybeSkipValidation.js +4 -24
  101. package/core/schemas/utils/partition.js +1 -2
  102. package/dist/api/errors/BadRequestError.js +24 -12
  103. package/dist/api/errors/ForbiddenError.js +24 -12
  104. package/dist/api/errors/InternalServerError.js +24 -12
  105. package/dist/api/errors/NotFoundError.js +24 -12
  106. package/dist/api/resources/assets/client/Client.d.ts +53 -18
  107. package/dist/api/resources/assets/client/Client.js +147 -95
  108. package/dist/api/resources/assets/index.js +0 -1
  109. package/dist/api/resources/decisions/client/Client.d.ts +7 -2
  110. package/dist/api/resources/decisions/client/Client.js +45 -23
  111. package/dist/api/resources/decisions/index.js +0 -1
  112. package/dist/api/resources/flows/client/Client.d.ts +8 -2
  113. package/dist/api/resources/flows/client/Client.js +47 -24
  114. package/dist/api/resources/index.d.ts +3 -3
  115. package/dist/api/resources/index.js +27 -19
  116. package/dist/api/resources/rules/client/Client.d.ts +23 -14
  117. package/dist/api/resources/rules/client/Client.js +75 -51
  118. package/dist/api/resources/tests/client/Client.d.ts +41 -12
  119. package/dist/api/resources/tests/client/Client.js +110 -64
  120. package/dist/api/resources/tests/client/index.js +0 -19
  121. package/dist/api/resources/tests/index.js +0 -1
  122. package/dist/api/resources/users/client/Client.d.ts +22 -24
  123. package/dist/api/resources/users/client/Client.js +74 -59
  124. package/dist/api/resources/users/types/UserInviteRequestRole.d.ts +7 -0
  125. package/dist/api/resources/users/types/{InviteRequestRole.js → UserInviteRequestRole.js} +4 -2
  126. package/dist/api/resources/users/types/index.js +1 -4
  127. package/dist/api/resources/values/client/Client.d.ts +27 -6
  128. package/dist/api/resources/values/client/Client.js +80 -42
  129. package/dist/api/resources/values/types/index.js +1 -9
  130. package/dist/api/types/DynamicValueBase.js +5 -0
  131. package/dist/api/types/DynamicValueListResponse.js +5 -0
  132. package/dist/api/types/Error_.js +5 -0
  133. package/dist/api/types/FlowBase.js +5 -0
  134. package/dist/api/types/FlowDetail.js +5 -0
  135. package/dist/api/types/FlowExecutionError.js +5 -0
  136. package/dist/api/types/FlowListResponse.js +5 -0
  137. package/dist/api/types/Folder.js +5 -0
  138. package/dist/api/types/FolderListResponse.js +5 -0
  139. package/dist/api/types/ListValue.js +5 -0
  140. package/dist/api/types/NumberValue.js +5 -0
  141. package/dist/api/types/ParallelSolveRequest.js +5 -0
  142. package/dist/api/types/ParallelSolveRequestValue.js +5 -0
  143. package/dist/api/types/ParallelSolveResponse.js +5 -0
  144. package/dist/api/types/RuleBase.js +5 -0
  145. package/dist/api/types/RuleDetail.js +5 -0
  146. package/dist/api/types/RuleExport.js +5 -0
  147. package/dist/api/types/RuleListResponse.js +5 -0
  148. package/dist/api/types/RuleUsage.js +5 -0
  149. package/dist/api/types/SchemaField.js +5 -0
  150. package/dist/api/types/SchemaFieldDefaultValue.d.ts +1 -0
  151. package/dist/api/types/SchemaFieldDefaultValue.js +5 -0
  152. package/{api/resources/values/types/ListDynamicValuesResponseItemType.d.ts → dist/api/types/SchemaFieldType.d.ts} +3 -2
  153. package/dist/api/{resources/values/types/UpdateResponseItemType.js → types/SchemaFieldType.js} +4 -3
  154. package/dist/api/types/StringValue.d.ts +1 -0
  155. package/dist/api/types/StringValue.js +5 -0
  156. package/dist/api/types/SuccessMessage.d.ts +1 -0
  157. package/dist/api/types/SuccessMessage.js +5 -0
  158. package/dist/api/types/Test.d.ts +1 -0
  159. package/dist/api/types/Test.js +5 -0
  160. package/dist/api/types/TestListResponse.d.ts +1 -0
  161. package/dist/api/types/TestListResponse.js +5 -0
  162. package/dist/api/types/TestTestState.d.ts +1 -0
  163. package/dist/api/types/TestTestState.js +5 -0
  164. package/dist/api/types/TestTestStateConditionsItemValue.d.ts +1 -0
  165. package/dist/api/types/TestTestStateConditionsItemValue.js +5 -0
  166. package/dist/api/types/TestTestStateEvaluationError.d.ts +1 -0
  167. package/dist/api/types/TestTestStateEvaluationError.js +5 -0
  168. package/dist/api/types/UsageStatistics.d.ts +1 -0
  169. package/dist/api/types/UsageStatistics.js +5 -0
  170. package/dist/api/types/UserGroup.d.ts +1 -0
  171. package/dist/api/types/UserGroup.js +5 -0
  172. package/dist/api/types/UserGroupListResponse.d.ts +1 -0
  173. package/dist/api/types/UserGroupListResponse.js +5 -0
  174. package/dist/api/types/UserInviteResponse.d.ts +1 -0
  175. package/dist/api/types/UserInviteResponse.js +5 -0
  176. package/dist/api/types/UserInviteResponseUser.d.ts +1 -0
  177. package/dist/api/types/UserInviteResponseUser.js +5 -0
  178. package/dist/api/types/ValueLimits.d.ts +1 -0
  179. package/dist/api/types/ValueLimits.js +5 -0
  180. package/dist/api/types/index.js +47 -4
  181. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  182. package/dist/core/fetcher/Fetcher.js +30 -81
  183. package/dist/core/fetcher/createRequestUrl.d.ts +2 -0
  184. package/dist/core/fetcher/createRequestUrl.js +12 -0
  185. package/dist/core/fetcher/getFetchFn.d.ts +5 -0
  186. package/dist/core/fetcher/getFetchFn.js +86 -0
  187. package/dist/core/fetcher/getHeader.js +1 -2
  188. package/dist/core/fetcher/getRequestBody.d.ts +2 -0
  189. package/dist/core/fetcher/getRequestBody.js +33 -0
  190. package/dist/core/fetcher/getResponseBody.d.ts +2 -0
  191. package/dist/core/fetcher/getResponseBody.js +64 -0
  192. package/dist/core/fetcher/makeRequest.d.ts +2 -0
  193. package/dist/core/fetcher/makeRequest.js +52 -0
  194. package/dist/core/fetcher/requestWithRetries.d.ts +2 -0
  195. package/dist/core/fetcher/requestWithRetries.js +50 -0
  196. package/dist/core/fetcher/signals.d.ts +12 -0
  197. package/dist/core/fetcher/signals.js +36 -0
  198. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +40 -0
  199. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +257 -0
  200. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +23 -0
  201. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +143 -0
  202. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +40 -0
  203. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +239 -0
  204. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +2 -0
  205. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +77 -0
  206. package/dist/core/index.js +24 -11
  207. package/dist/core/json.d.ts +16 -0
  208. package/dist/core/json.js +24 -0
  209. package/dist/core/runtime/index.d.ts +3 -0
  210. package/dist/core/runtime/index.js +5 -0
  211. package/dist/core/runtime/runtime.d.ts +14 -0
  212. package/dist/core/runtime/runtime.js +103 -0
  213. package/dist/core/schemas/Schema.d.ts +3 -0
  214. package/dist/core/schemas/Schema.js +3 -0
  215. package/dist/core/schemas/builders/bigint/bigint.d.ts +4 -0
  216. package/dist/core/schemas/builders/bigint/bigint.js +53 -0
  217. package/dist/core/schemas/builders/bigint/index.d.ts +3 -0
  218. package/dist/core/schemas/builders/bigint/index.js +5 -0
  219. package/dist/core/schemas/builders/date/date.js +1 -2
  220. package/dist/core/schemas/builders/enum/enum.js +1 -2
  221. package/dist/core/schemas/builders/index.js +1 -0
  222. package/dist/core/schemas/builders/lazy/lazy.js +11 -33
  223. package/dist/core/schemas/builders/lazy/lazyObject.js +2 -22
  224. package/dist/core/schemas/builders/list/list.js +32 -56
  225. package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
  226. package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
  227. package/dist/core/schemas/builders/object/object.d.ts +48 -7
  228. package/dist/core/schemas/builders/object/object.js +132 -139
  229. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  230. package/dist/core/schemas/builders/object/property.js +2 -3
  231. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +5 -25
  232. package/dist/core/schemas/builders/record/record.d.ts +2 -5
  233. package/dist/core/schemas/builders/record/record.js +49 -72
  234. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +86 -0
  235. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -35
  236. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  237. package/dist/core/schemas/builders/set/set.d.ts +2 -5
  238. package/dist/core/schemas/builders/set/set.js +7 -27
  239. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +22 -44
  240. package/dist/core/schemas/builders/union/discriminant.js +1 -2
  241. package/dist/core/schemas/builders/union/union.js +52 -74
  242. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  243. package/dist/core/schemas/utils/entries.js +1 -2
  244. package/dist/core/schemas/utils/filterObject.js +1 -2
  245. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
  246. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  247. package/dist/core/schemas/utils/keys.js +1 -2
  248. package/dist/core/schemas/utils/maybeSkipValidation.js +4 -24
  249. package/dist/core/schemas/utils/partition.js +1 -2
  250. package/dist/errors/RulebricksApiError.js +2 -1
  251. package/dist/errors/RulebricksApiTimeoutError.d.ts +1 -1
  252. package/dist/errors/RulebricksApiTimeoutError.js +2 -2
  253. package/dist/index.d.ts +8 -8
  254. package/dist/index.js +32 -16
  255. package/dist/serialization/resources/assets/client/index.d.ts +0 -5
  256. package/dist/serialization/resources/assets/client/index.js +0 -22
  257. package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.js +23 -11
  258. package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.js +24 -12
  259. package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.js +23 -11
  260. package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.js +23 -11
  261. package/dist/serialization/resources/assets/index.js +0 -1
  262. package/dist/serialization/resources/index.d.ts +1 -4
  263. package/dist/serialization/resources/index.js +26 -20
  264. package/dist/serialization/resources/rules/client/bulkSolve.js +27 -13
  265. package/dist/serialization/resources/rules/client/index.d.ts +0 -2
  266. package/dist/serialization/resources/rules/client/index.js +24 -14
  267. package/dist/serialization/resources/users/client/index.d.ts +0 -1
  268. package/dist/serialization/resources/users/client/index.js +0 -18
  269. package/dist/serialization/resources/users/client/requests/CreateUserGroupRequest.d.ts +2 -0
  270. package/{serialization/resources/users/client/requests/CreateGroupRequest.js → dist/serialization/resources/users/client/requests/CreateUserGroupRequest.js} +25 -13
  271. package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -0
  272. package/dist/serialization/resources/users/client/requests/UserInviteRequest.js +54 -0
  273. package/dist/serialization/resources/users/client/requests/index.d.ts +4 -4
  274. package/dist/serialization/resources/users/client/requests/index.js +5 -5
  275. package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -0
  276. package/dist/serialization/resources/{assets/types/DeleteRuleResponse.js → users/types/UserInviteRequestRole.js} +25 -15
  277. package/dist/serialization/resources/users/types/index.js +1 -4
  278. package/dist/serialization/resources/values/client/index.d.ts +0 -2
  279. package/dist/serialization/resources/values/client/index.js +5 -18
  280. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -0
  281. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +53 -0
  282. package/dist/serialization/resources/values/client/requests/index.d.ts +3 -0
  283. package/dist/serialization/resources/values/client/requests/index.js +5 -0
  284. package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -0
  285. package/{serialization/resources/values/types/ListDynamicValuesResponseItemValue.js → dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.js} +26 -14
  286. package/dist/serialization/resources/values/types/index.js +1 -9
  287. package/dist/serialization/types/BooleanValue.d.ts +2 -0
  288. package/dist/serialization/types/BooleanValue.js +54 -0
  289. package/dist/serialization/types/BulkRuleResponseItem.d.ts +2 -0
  290. package/dist/serialization/types/BulkRuleResponseItem.js +51 -0
  291. package/dist/serialization/types/BulkRuleResponseItemError.d.ts +2 -0
  292. package/dist/serialization/types/{ForbiddenErrorBody.js → BulkRuleResponseItemError.js} +25 -13
  293. package/dist/serialization/types/CreateTestRequest.d.ts +2 -0
  294. package/dist/serialization/{resources/tests/client/requests/CreateFlowTestRequest.js → types/CreateTestRequest.js} +26 -14
  295. package/dist/serialization/types/DecisionLog.d.ts +2 -0
  296. package/dist/serialization/types/DecisionLog.js +56 -0
  297. package/dist/serialization/types/DecisionLogDecision.d.ts +2 -0
  298. package/dist/serialization/types/DecisionLogDecision.js +55 -0
  299. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -0
  300. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.js +52 -0
  301. package/dist/serialization/types/DecisionLogRequest.d.ts +2 -0
  302. package/dist/serialization/types/DecisionLogRequest.js +58 -0
  303. package/dist/serialization/types/DecisionLogResponse.d.ts +2 -0
  304. package/dist/serialization/types/DecisionLogResponse.js +53 -0
  305. package/dist/serialization/types/DynamicRequestPayload.d.ts +2 -0
  306. package/dist/serialization/types/DynamicRequestPayload.js +49 -0
  307. package/dist/serialization/types/DynamicResponsePayload.d.ts +2 -0
  308. package/dist/serialization/types/DynamicResponsePayload.js +49 -0
  309. package/dist/serialization/types/DynamicValue.d.ts +2 -0
  310. package/dist/serialization/types/DynamicValue.js +63 -0
  311. package/dist/serialization/types/DynamicValueBase.d.ts +2 -0
  312. package/dist/serialization/types/DynamicValueBase.js +55 -0
  313. package/dist/serialization/types/DynamicValueListResponse.d.ts +2 -0
  314. package/dist/serialization/types/DynamicValueListResponse.js +50 -0
  315. package/dist/serialization/types/Error_.d.ts +2 -0
  316. package/dist/serialization/types/{NotFoundErrorBody.js → Error_.js} +25 -13
  317. package/dist/serialization/types/FlowBase.d.ts +2 -0
  318. package/{serialization/resources/assets/types/ListFlowsResponseItem.js → dist/serialization/types/FlowBase.js} +26 -16
  319. package/dist/serialization/types/FlowDetail.d.ts +2 -0
  320. package/dist/serialization/types/FlowDetail.js +55 -0
  321. package/dist/serialization/types/FlowExecutionError.d.ts +2 -0
  322. package/dist/serialization/types/FlowExecutionError.js +53 -0
  323. package/dist/serialization/types/FlowListResponse.d.ts +2 -0
  324. package/dist/serialization/types/FlowListResponse.js +50 -0
  325. package/dist/serialization/types/Folder.d.ts +2 -0
  326. package/dist/serialization/{resources/assets/types/DeleteFolderResponse.js → types/Folder.js} +26 -14
  327. package/dist/serialization/types/FolderListResponse.d.ts +2 -0
  328. package/dist/serialization/types/FolderListResponse.js +50 -0
  329. package/dist/serialization/types/ListValue.d.ts +2 -0
  330. package/dist/serialization/types/ListValue.js +54 -0
  331. package/dist/serialization/types/NumberValue.d.ts +2 -0
  332. package/dist/serialization/types/NumberValue.js +54 -0
  333. package/dist/serialization/types/ParallelSolveRequest.d.ts +2 -0
  334. package/dist/serialization/types/ParallelSolveRequest.js +50 -0
  335. package/dist/serialization/types/ParallelSolveRequestValue.d.ts +2 -0
  336. package/dist/serialization/types/ParallelSolveRequestValue.js +54 -0
  337. package/dist/serialization/types/ParallelSolveResponse.d.ts +2 -0
  338. package/dist/serialization/types/ParallelSolveResponse.js +50 -0
  339. package/dist/serialization/types/RuleBase.d.ts +2 -0
  340. package/{serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → dist/serialization/types/RuleBase.js} +26 -16
  341. package/dist/serialization/types/RuleDetail.d.ts +2 -0
  342. package/dist/serialization/types/RuleDetail.js +59 -0
  343. package/dist/serialization/types/RuleExport.d.ts +2 -0
  344. package/dist/serialization/types/RuleExport.js +49 -0
  345. package/dist/serialization/types/RuleListResponse.d.ts +2 -0
  346. package/dist/serialization/types/RuleListResponse.js +50 -0
  347. package/dist/serialization/types/RuleUsage.d.ts +2 -0
  348. package/dist/serialization/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → types/RuleUsage.js} +28 -16
  349. package/dist/serialization/types/SchemaField.d.ts +2 -0
  350. package/dist/serialization/types/SchemaField.js +60 -0
  351. package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +2 -0
  352. package/{serialization/resources/values/types/UpdateResponseItemValue.js → dist/serialization/types/SchemaFieldDefaultValue.js} +27 -14
  353. package/dist/serialization/types/SchemaFieldType.d.ts +2 -0
  354. package/dist/serialization/types/SchemaFieldType.js +49 -0
  355. package/dist/serialization/types/StringValue.d.ts +2 -0
  356. package/dist/serialization/types/StringValue.js +54 -0
  357. package/dist/serialization/types/SuccessMessage.d.ts +2 -0
  358. package/{serialization/resources/values/types/DeleteDynamicValueResponse.js → dist/serialization/types/SuccessMessage.js} +26 -14
  359. package/dist/serialization/types/Test.d.ts +2 -0
  360. package/dist/serialization/{resources/tests/types/DeleteFlowTestResponse.js → types/Test.js} +28 -15
  361. package/dist/serialization/types/TestListResponse.d.ts +2 -0
  362. package/dist/serialization/types/TestListResponse.js +50 -0
  363. package/dist/serialization/types/TestTestState.d.ts +2 -0
  364. package/dist/serialization/types/TestTestState.js +60 -0
  365. package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -0
  366. package/dist/serialization/types/TestTestStateConditionsItemValue.js +52 -0
  367. package/dist/serialization/types/TestTestStateEvaluationError.d.ts +2 -0
  368. package/dist/serialization/types/TestTestStateEvaluationError.js +49 -0
  369. package/dist/serialization/types/UsageStatistics.d.ts +2 -0
  370. package/dist/serialization/{resources/assets/types/UsageResponse.js → types/UsageStatistics.js} +26 -14
  371. package/dist/serialization/types/UserGroup.d.ts +2 -0
  372. package/dist/serialization/{resources/users/types/CreateGroupResponse.js → types/UserGroup.js} +26 -14
  373. package/dist/serialization/types/UserGroupListResponse.d.ts +2 -0
  374. package/dist/serialization/types/UserGroupListResponse.js +50 -0
  375. package/dist/serialization/types/UserInviteResponse.d.ts +2 -0
  376. package/dist/serialization/types/UserInviteResponse.js +53 -0
  377. package/dist/serialization/types/UserInviteResponseUser.d.ts +2 -0
  378. package/dist/serialization/types/UserInviteResponseUser.js +53 -0
  379. package/dist/serialization/types/ValueLimits.d.ts +2 -0
  380. package/dist/serialization/types/ValueLimits.js +54 -0
  381. package/dist/serialization/types/index.js +47 -4
  382. package/errors/RulebricksApiError.js +2 -1
  383. package/errors/RulebricksApiTimeoutError.d.ts +1 -1
  384. package/errors/RulebricksApiTimeoutError.js +2 -2
  385. package/index.d.ts +8 -8
  386. package/index.js +32 -16
  387. package/package.json +1 -1
  388. package/serialization/resources/assets/client/index.d.ts +0 -5
  389. package/serialization/resources/assets/client/index.js +0 -22
  390. package/serialization/resources/assets/client/requests/DeleteFolderRequest.js +23 -11
  391. package/serialization/resources/assets/client/requests/DeleteRuleRequest.js +24 -12
  392. package/serialization/resources/assets/client/requests/ImportRuleRequest.js +23 -11
  393. package/serialization/resources/assets/client/requests/UpsertFolderRequest.js +23 -11
  394. package/serialization/resources/assets/index.js +0 -1
  395. package/serialization/resources/index.d.ts +1 -4
  396. package/serialization/resources/index.js +26 -20
  397. package/serialization/resources/rules/client/bulkSolve.js +27 -13
  398. package/serialization/resources/rules/client/index.d.ts +0 -2
  399. package/serialization/resources/rules/client/index.js +24 -14
  400. package/serialization/resources/users/client/index.d.ts +0 -1
  401. package/serialization/resources/users/client/index.js +0 -18
  402. package/serialization/resources/users/client/requests/CreateUserGroupRequest.d.ts +2 -0
  403. package/{dist/serialization/resources/users/client/requests/CreateGroupRequest.js → serialization/resources/users/client/requests/CreateUserGroupRequest.js} +25 -13
  404. package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -0
  405. package/serialization/resources/users/client/requests/UserInviteRequest.js +54 -0
  406. package/serialization/resources/users/client/requests/index.d.ts +4 -4
  407. package/serialization/resources/users/client/requests/index.js +5 -5
  408. package/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -0
  409. package/{dist/serialization/resources/assets/client/importRule.js → serialization/resources/users/types/UserInviteRequestRole.js} +25 -13
  410. package/serialization/resources/users/types/index.js +1 -4
  411. package/serialization/resources/values/client/index.d.ts +0 -2
  412. package/serialization/resources/values/client/index.js +5 -18
  413. package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -0
  414. package/serialization/resources/values/client/requests/UpdateValuesRequest.js +53 -0
  415. package/serialization/resources/values/client/requests/index.d.ts +3 -0
  416. package/serialization/resources/values/client/requests/index.js +5 -0
  417. package/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -0
  418. package/{dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js → serialization/resources/values/types/UpdateValuesRequestValuesValue.js} +26 -14
  419. package/serialization/resources/values/types/index.js +1 -9
  420. package/serialization/types/BooleanValue.d.ts +2 -0
  421. package/serialization/types/BooleanValue.js +54 -0
  422. package/serialization/types/BulkRuleResponseItem.d.ts +2 -0
  423. package/serialization/types/BulkRuleResponseItem.js +51 -0
  424. package/serialization/types/BulkRuleResponseItemError.d.ts +2 -0
  425. package/{dist/serialization/types/InternalServerErrorBody.js → serialization/types/BulkRuleResponseItemError.js} +25 -13
  426. package/serialization/types/CreateTestRequest.d.ts +2 -0
  427. package/{dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.js → serialization/types/CreateTestRequest.js} +26 -14
  428. package/serialization/types/DecisionLog.d.ts +2 -0
  429. package/serialization/types/DecisionLog.js +56 -0
  430. package/serialization/types/DecisionLogDecision.d.ts +2 -0
  431. package/serialization/types/DecisionLogDecision.js +55 -0
  432. package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -0
  433. package/serialization/types/DecisionLogDecisionConditionsItemValue.js +52 -0
  434. package/serialization/types/DecisionLogRequest.d.ts +2 -0
  435. package/serialization/types/DecisionLogRequest.js +58 -0
  436. package/serialization/types/DecisionLogResponse.d.ts +2 -0
  437. package/serialization/types/DecisionLogResponse.js +53 -0
  438. package/serialization/types/DynamicRequestPayload.d.ts +2 -0
  439. package/serialization/types/DynamicRequestPayload.js +49 -0
  440. package/serialization/types/DynamicResponsePayload.d.ts +2 -0
  441. package/serialization/types/DynamicResponsePayload.js +49 -0
  442. package/serialization/types/DynamicValue.d.ts +2 -0
  443. package/serialization/types/DynamicValue.js +63 -0
  444. package/serialization/types/DynamicValueBase.d.ts +2 -0
  445. package/serialization/types/DynamicValueBase.js +55 -0
  446. package/serialization/types/DynamicValueListResponse.d.ts +2 -0
  447. package/serialization/types/DynamicValueListResponse.js +50 -0
  448. package/serialization/types/Error_.d.ts +2 -0
  449. package/{dist/serialization/types/BadRequestErrorBody.js → serialization/types/Error_.js} +25 -13
  450. package/serialization/types/FlowBase.d.ts +2 -0
  451. package/serialization/types/FlowBase.js +54 -0
  452. package/serialization/types/FlowDetail.d.ts +2 -0
  453. package/serialization/types/FlowDetail.js +55 -0
  454. package/serialization/types/FlowExecutionError.d.ts +2 -0
  455. package/serialization/types/FlowExecutionError.js +53 -0
  456. package/serialization/types/FlowListResponse.d.ts +2 -0
  457. package/serialization/types/FlowListResponse.js +50 -0
  458. package/serialization/types/Folder.d.ts +2 -0
  459. package/{dist/serialization/resources/assets/types/UpsertFolderResponse.js → serialization/types/Folder.js} +26 -14
  460. package/serialization/types/FolderListResponse.d.ts +2 -0
  461. package/serialization/types/FolderListResponse.js +50 -0
  462. package/serialization/types/ListValue.d.ts +2 -0
  463. package/serialization/types/ListValue.js +54 -0
  464. package/serialization/types/NumberValue.d.ts +2 -0
  465. package/serialization/types/NumberValue.js +54 -0
  466. package/serialization/types/ParallelSolveRequest.d.ts +2 -0
  467. package/serialization/types/ParallelSolveRequest.js +50 -0
  468. package/serialization/types/ParallelSolveRequestValue.d.ts +2 -0
  469. package/serialization/types/ParallelSolveRequestValue.js +54 -0
  470. package/serialization/types/ParallelSolveResponse.d.ts +2 -0
  471. package/serialization/types/ParallelSolveResponse.js +50 -0
  472. package/serialization/types/RuleBase.d.ts +2 -0
  473. package/serialization/types/RuleBase.js +54 -0
  474. package/serialization/types/RuleDetail.d.ts +2 -0
  475. package/serialization/types/RuleDetail.js +59 -0
  476. package/serialization/types/RuleExport.d.ts +2 -0
  477. package/serialization/types/RuleExport.js +49 -0
  478. package/serialization/types/RuleListResponse.d.ts +2 -0
  479. package/serialization/types/RuleListResponse.js +50 -0
  480. package/serialization/types/RuleUsage.d.ts +2 -0
  481. package/{dist/serialization/resources/assets/types/ListFlowsResponseItem.js → serialization/types/RuleUsage.js} +28 -16
  482. package/serialization/types/SchemaField.d.ts +2 -0
  483. package/serialization/types/SchemaField.js +60 -0
  484. package/serialization/types/SchemaFieldDefaultValue.d.ts +2 -0
  485. package/{dist/serialization/resources/values/types/UpdateResponseItemValue.js → serialization/types/SchemaFieldDefaultValue.js} +27 -14
  486. package/serialization/types/SchemaFieldType.d.ts +2 -0
  487. package/serialization/types/SchemaFieldType.js +49 -0
  488. package/serialization/types/StringValue.d.ts +2 -0
  489. package/serialization/types/StringValue.js +54 -0
  490. package/serialization/types/SuccessMessage.d.ts +2 -0
  491. package/{dist/serialization/resources/values/types/DeleteDynamicValueResponse.js → serialization/types/SuccessMessage.js} +26 -14
  492. package/serialization/types/Test.d.ts +2 -0
  493. package/{dist/serialization/resources/tests/types/DeleteRuleTestResponse.js → serialization/types/Test.js} +28 -15
  494. package/serialization/types/TestListResponse.d.ts +2 -0
  495. package/serialization/types/TestListResponse.js +50 -0
  496. package/serialization/types/TestTestState.d.ts +2 -0
  497. package/serialization/types/TestTestState.js +60 -0
  498. package/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -0
  499. package/serialization/types/TestTestStateConditionsItemValue.js +52 -0
  500. package/serialization/types/TestTestStateEvaluationError.d.ts +2 -0
  501. package/serialization/types/TestTestStateEvaluationError.js +49 -0
  502. package/serialization/types/UsageStatistics.d.ts +2 -0
  503. package/serialization/{resources/assets/types/UsageResponse.js → types/UsageStatistics.js} +26 -14
  504. package/serialization/types/UserGroup.d.ts +2 -0
  505. package/{dist/serialization/resources/users/types/ListGroupsResponseItem.js → serialization/types/UserGroup.js} +26 -14
  506. package/serialization/types/UserGroupListResponse.d.ts +2 -0
  507. package/serialization/types/UserGroupListResponse.js +50 -0
  508. package/serialization/types/UserInviteResponse.d.ts +2 -0
  509. package/serialization/types/UserInviteResponse.js +53 -0
  510. package/serialization/types/UserInviteResponseUser.d.ts +2 -0
  511. package/serialization/types/UserInviteResponseUser.js +53 -0
  512. package/serialization/types/ValueLimits.d.ts +2 -0
  513. package/serialization/types/ValueLimits.js +54 -0
  514. package/serialization/types/index.js +47 -4
  515. package/api/resources/assets/types/index.js +0 -28
  516. package/api/resources/decisions/types/index.js +0 -21
  517. package/api/resources/tests/client/requests/index.js +0 -2
  518. package/api/resources/tests/types/index.js +0 -26
  519. package/api/resources/users/types/InviteRequestRole.d.ts +0 -5
  520. package/api/resources/values/types/ListDynamicValuesResponseItemType.js +0 -12
  521. package/api/resources/values/types/UpdateResponseItemType.d.ts +0 -7
  522. package/dist/api/resources/assets/types/index.js +0 -28
  523. package/dist/api/resources/decisions/types/index.js +0 -21
  524. package/dist/api/resources/tests/client/requests/index.js +0 -2
  525. package/dist/api/resources/tests/types/index.js +0 -26
  526. package/dist/api/resources/users/types/InviteRequestRole.d.ts +0 -5
  527. package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.js +0 -12
  528. package/dist/api/resources/values/types/UpdateResponseItemType.d.ts +0 -7
  529. package/dist/forge/index.d.ts +0 -4
  530. package/dist/forge/index.js +0 -31
  531. package/dist/forge/operators.d.ts +0 -136
  532. package/dist/forge/operators.js +0 -938
  533. package/dist/forge/rule.d.ts +0 -129
  534. package/dist/forge/rule.js +0 -702
  535. package/dist/forge/types.d.ts +0 -53
  536. package/dist/forge/types.js +0 -34
  537. package/dist/forge/values.d.ts +0 -21
  538. package/dist/forge/values.js +0 -88
  539. package/dist/serialization/resources/assets/client/exportRule.d.ts +0 -2
  540. package/dist/serialization/resources/assets/client/exportRule.js +0 -37
  541. package/dist/serialization/resources/assets/client/importRule.d.ts +0 -2
  542. package/dist/serialization/resources/assets/client/listFlows.d.ts +0 -2
  543. package/dist/serialization/resources/assets/client/listFlows.js +0 -56
  544. package/dist/serialization/resources/assets/client/listFolders.d.ts +0 -2
  545. package/dist/serialization/resources/assets/client/listFolders.js +0 -56
  546. package/dist/serialization/resources/assets/client/listRules.d.ts +0 -2
  547. package/dist/serialization/resources/assets/client/listRules.js +0 -56
  548. package/dist/serialization/resources/assets/types/DeleteFolderResponse.d.ts +0 -2
  549. package/dist/serialization/resources/assets/types/DeleteRuleResponse.d.ts +0 -2
  550. package/dist/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +0 -2
  551. package/dist/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +0 -2
  552. package/dist/serialization/resources/assets/types/ListFoldersResponseItem.js +0 -42
  553. package/dist/serialization/resources/assets/types/ListRulesResponseItem.d.ts +0 -2
  554. package/dist/serialization/resources/assets/types/ListRulesResponseItem.js +0 -67
  555. package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +0 -2
  556. package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.js +0 -42
  557. package/dist/serialization/resources/assets/types/UpsertFolderResponse.d.ts +0 -2
  558. package/dist/serialization/resources/assets/types/UsageResponse.d.ts +0 -2
  559. package/dist/serialization/resources/assets/types/index.js +0 -28
  560. package/dist/serialization/resources/decisions/index.js +0 -21
  561. package/dist/serialization/resources/decisions/types/QueryResponse.d.ts +0 -2
  562. package/dist/serialization/resources/decisions/types/QueryResponse.js +0 -42
  563. package/dist/serialization/resources/decisions/types/index.js +0 -21
  564. package/dist/serialization/resources/flows/client/execute.d.ts +0 -3
  565. package/dist/serialization/resources/flows/client/execute.js +0 -38
  566. package/dist/serialization/resources/flows/client/index.d.ts +0 -2
  567. package/dist/serialization/resources/flows/client/index.js +0 -33
  568. package/dist/serialization/resources/flows/index.js +0 -21
  569. package/dist/serialization/resources/rules/client/parallelSolve.d.ts +0 -3
  570. package/dist/serialization/resources/rules/client/parallelSolve.js +0 -38
  571. package/dist/serialization/resources/rules/client/solve.d.ts +0 -3
  572. package/dist/serialization/resources/rules/client/solve.js +0 -38
  573. package/dist/serialization/resources/tests/client/index.d.ts +0 -3
  574. package/dist/serialization/resources/tests/client/index.js +0 -40
  575. package/dist/serialization/resources/tests/client/listFlowTests.d.ts +0 -2
  576. package/dist/serialization/resources/tests/client/listFlowTests.js +0 -56
  577. package/dist/serialization/resources/tests/client/listRuleTests.d.ts +0 -2
  578. package/dist/serialization/resources/tests/client/listRuleTests.js +0 -56
  579. package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +0 -2
  580. package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +0 -2
  581. package/dist/serialization/resources/tests/client/requests/index.d.ts +0 -5
  582. package/dist/serialization/resources/tests/client/requests/index.js +0 -7
  583. package/dist/serialization/resources/tests/index.js +0 -22
  584. package/dist/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +0 -2
  585. package/dist/serialization/resources/tests/types/CreateFlowTestResponse.js +0 -47
  586. package/dist/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +0 -2
  587. package/dist/serialization/resources/tests/types/CreateRuleTestResponse.js +0 -47
  588. package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +0 -2
  589. package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +0 -2
  590. package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +0 -2
  591. package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.js +0 -47
  592. package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +0 -2
  593. package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.js +0 -47
  594. package/dist/serialization/resources/tests/types/index.js +0 -26
  595. package/dist/serialization/resources/users/client/listGroups.d.ts +0 -2
  596. package/dist/serialization/resources/users/client/listGroups.js +0 -56
  597. package/dist/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +0 -2
  598. package/dist/serialization/resources/users/client/requests/InviteRequest.d.ts +0 -2
  599. package/dist/serialization/resources/users/client/requests/InviteRequest.js +0 -60
  600. package/dist/serialization/resources/users/types/CreateGroupResponse.d.ts +0 -2
  601. package/dist/serialization/resources/users/types/InviteRequestRole.d.ts +0 -2
  602. package/dist/serialization/resources/users/types/InviteRequestRole.js +0 -37
  603. package/dist/serialization/resources/users/types/InviteResponse.d.ts +0 -2
  604. package/dist/serialization/resources/users/types/InviteResponse.js +0 -39
  605. package/dist/serialization/resources/users/types/ListGroupsResponseItem.d.ts +0 -2
  606. package/dist/serialization/resources/values/client/listDynamicValues.d.ts +0 -2
  607. package/dist/serialization/resources/values/client/listDynamicValues.js +0 -56
  608. package/dist/serialization/resources/values/client/update.d.ts +0 -3
  609. package/dist/serialization/resources/values/client/update.js +0 -57
  610. package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +0 -2
  611. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +0 -2
  612. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.js +0 -66
  613. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +0 -2
  614. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +0 -37
  615. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +0 -2
  616. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +0 -2
  617. package/dist/serialization/resources/values/types/UpdateRequestValue.d.ts +0 -2
  618. package/dist/serialization/resources/values/types/UpdateRequestValue.js +0 -42
  619. package/dist/serialization/resources/values/types/UpdateResponseItem.d.ts +0 -2
  620. package/dist/serialization/resources/values/types/UpdateResponseItem.js +0 -61
  621. package/dist/serialization/resources/values/types/UpdateResponseItemType.d.ts +0 -2
  622. package/dist/serialization/resources/values/types/UpdateResponseItemType.js +0 -37
  623. package/dist/serialization/resources/values/types/UpdateResponseItemValue.d.ts +0 -2
  624. package/dist/serialization/types/BadRequestErrorBody.d.ts +0 -2
  625. package/dist/serialization/types/ForbiddenErrorBody.d.ts +0 -2
  626. package/dist/serialization/types/InternalServerErrorBody.d.ts +0 -2
  627. package/dist/serialization/types/NotFoundErrorBody.d.ts +0 -2
  628. package/forge/index.d.ts +0 -4
  629. package/forge/index.js +0 -31
  630. package/forge/operators.d.ts +0 -136
  631. package/forge/operators.js +0 -938
  632. package/forge/rule.d.ts +0 -129
  633. package/forge/rule.js +0 -702
  634. package/forge/types.d.ts +0 -53
  635. package/forge/types.js +0 -34
  636. package/forge/values.d.ts +0 -21
  637. package/forge/values.js +0 -88
  638. package/serialization/resources/assets/client/exportRule.d.ts +0 -2
  639. package/serialization/resources/assets/client/exportRule.js +0 -37
  640. package/serialization/resources/assets/client/importRule.d.ts +0 -2
  641. package/serialization/resources/assets/client/importRule.js +0 -37
  642. package/serialization/resources/assets/client/listFlows.d.ts +0 -2
  643. package/serialization/resources/assets/client/listFlows.js +0 -56
  644. package/serialization/resources/assets/client/listFolders.d.ts +0 -2
  645. package/serialization/resources/assets/client/listFolders.js +0 -56
  646. package/serialization/resources/assets/client/listRules.d.ts +0 -2
  647. package/serialization/resources/assets/client/listRules.js +0 -56
  648. package/serialization/resources/assets/types/DeleteFolderResponse.d.ts +0 -2
  649. package/serialization/resources/assets/types/DeleteFolderResponse.js +0 -42
  650. package/serialization/resources/assets/types/DeleteRuleResponse.d.ts +0 -2
  651. package/serialization/resources/assets/types/DeleteRuleResponse.js +0 -39
  652. package/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +0 -2
  653. package/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +0 -2
  654. package/serialization/resources/assets/types/ListFoldersResponseItem.js +0 -42
  655. package/serialization/resources/assets/types/ListRulesResponseItem.d.ts +0 -2
  656. package/serialization/resources/assets/types/ListRulesResponseItem.js +0 -67
  657. package/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +0 -2
  658. package/serialization/resources/assets/types/ListRulesResponseItemFolder.js +0 -42
  659. package/serialization/resources/assets/types/UpsertFolderResponse.d.ts +0 -2
  660. package/serialization/resources/assets/types/UpsertFolderResponse.js +0 -42
  661. package/serialization/resources/assets/types/UsageResponse.d.ts +0 -2
  662. package/serialization/resources/assets/types/index.js +0 -28
  663. package/serialization/resources/decisions/index.js +0 -21
  664. package/serialization/resources/decisions/types/QueryResponse.d.ts +0 -2
  665. package/serialization/resources/decisions/types/QueryResponse.js +0 -42
  666. package/serialization/resources/decisions/types/index.js +0 -21
  667. package/serialization/resources/flows/client/execute.d.ts +0 -3
  668. package/serialization/resources/flows/client/execute.js +0 -38
  669. package/serialization/resources/flows/client/index.d.ts +0 -2
  670. package/serialization/resources/flows/client/index.js +0 -33
  671. package/serialization/resources/flows/index.js +0 -21
  672. package/serialization/resources/rules/client/parallelSolve.d.ts +0 -3
  673. package/serialization/resources/rules/client/parallelSolve.js +0 -38
  674. package/serialization/resources/rules/client/solve.d.ts +0 -3
  675. package/serialization/resources/rules/client/solve.js +0 -38
  676. package/serialization/resources/tests/client/index.d.ts +0 -3
  677. package/serialization/resources/tests/client/index.js +0 -40
  678. package/serialization/resources/tests/client/listFlowTests.d.ts +0 -2
  679. package/serialization/resources/tests/client/listFlowTests.js +0 -56
  680. package/serialization/resources/tests/client/listRuleTests.d.ts +0 -2
  681. package/serialization/resources/tests/client/listRuleTests.js +0 -56
  682. package/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +0 -2
  683. package/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +0 -42
  684. package/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +0 -2
  685. package/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +0 -42
  686. package/serialization/resources/tests/client/requests/index.d.ts +0 -5
  687. package/serialization/resources/tests/client/requests/index.js +0 -7
  688. package/serialization/resources/tests/index.js +0 -22
  689. package/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +0 -2
  690. package/serialization/resources/tests/types/CreateFlowTestResponse.js +0 -47
  691. package/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +0 -2
  692. package/serialization/resources/tests/types/CreateRuleTestResponse.js +0 -47
  693. package/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +0 -2
  694. package/serialization/resources/tests/types/DeleteFlowTestResponse.js +0 -47
  695. package/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +0 -2
  696. package/serialization/resources/tests/types/DeleteRuleTestResponse.js +0 -47
  697. package/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +0 -2
  698. package/serialization/resources/tests/types/ListFlowTestsResponseItem.js +0 -47
  699. package/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +0 -2
  700. package/serialization/resources/tests/types/ListRuleTestsResponseItem.js +0 -47
  701. package/serialization/resources/tests/types/index.js +0 -26
  702. package/serialization/resources/users/client/listGroups.d.ts +0 -2
  703. package/serialization/resources/users/client/listGroups.js +0 -56
  704. package/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +0 -2
  705. package/serialization/resources/users/client/requests/InviteRequest.d.ts +0 -2
  706. package/serialization/resources/users/client/requests/InviteRequest.js +0 -60
  707. package/serialization/resources/users/types/CreateGroupResponse.d.ts +0 -2
  708. package/serialization/resources/users/types/CreateGroupResponse.js +0 -42
  709. package/serialization/resources/users/types/InviteRequestRole.d.ts +0 -2
  710. package/serialization/resources/users/types/InviteRequestRole.js +0 -37
  711. package/serialization/resources/users/types/InviteResponse.d.ts +0 -2
  712. package/serialization/resources/users/types/InviteResponse.js +0 -39
  713. package/serialization/resources/users/types/ListGroupsResponseItem.d.ts +0 -2
  714. package/serialization/resources/users/types/ListGroupsResponseItem.js +0 -42
  715. package/serialization/resources/values/client/listDynamicValues.d.ts +0 -2
  716. package/serialization/resources/values/client/listDynamicValues.js +0 -56
  717. package/serialization/resources/values/client/update.d.ts +0 -3
  718. package/serialization/resources/values/client/update.js +0 -57
  719. package/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +0 -2
  720. package/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +0 -2
  721. package/serialization/resources/values/types/ListDynamicValuesResponseItem.js +0 -66
  722. package/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +0 -2
  723. package/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +0 -37
  724. package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +0 -2
  725. package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +0 -2
  726. package/serialization/resources/values/types/UpdateRequestValue.d.ts +0 -2
  727. package/serialization/resources/values/types/UpdateRequestValue.js +0 -42
  728. package/serialization/resources/values/types/UpdateResponseItem.d.ts +0 -2
  729. package/serialization/resources/values/types/UpdateResponseItem.js +0 -61
  730. package/serialization/resources/values/types/UpdateResponseItemType.d.ts +0 -2
  731. package/serialization/resources/values/types/UpdateResponseItemType.js +0 -37
  732. package/serialization/resources/values/types/UpdateResponseItemValue.d.ts +0 -2
  733. package/serialization/types/BadRequestErrorBody.d.ts +0 -2
  734. package/serialization/types/BadRequestErrorBody.js +0 -39
  735. package/serialization/types/ForbiddenErrorBody.d.ts +0 -2
  736. package/serialization/types/ForbiddenErrorBody.js +0 -39
  737. package/serialization/types/InternalServerErrorBody.d.ts +0 -2
  738. package/serialization/types/InternalServerErrorBody.js +0 -39
  739. package/serialization/types/NotFoundErrorBody.d.ts +0 -2
  740. package/serialization/types/NotFoundErrorBody.js +0 -39
  741. /package/api/resources/{assets/types/DeleteFolderResponse.d.ts → decisions/client/requests/QueryDecisionsRequest.d.ts} +0 -0
  742. /package/api/resources/{assets/types/DeleteFolderResponse.js → decisions/client/requests/QueryDecisionsRequest.js} +0 -0
  743. /package/api/resources/{assets/types/DeleteRuleResponse.d.ts → users/client/requests/CreateUserGroupRequest.d.ts} +0 -0
  744. /package/api/resources/{assets/types/DeleteRuleResponse.js → users/client/requests/CreateUserGroupRequest.js} +0 -0
  745. /package/api/resources/{assets/types/ListFlowsResponseItem.d.ts → users/client/requests/UserInviteRequest.d.ts} +0 -0
  746. /package/api/resources/{assets/types/ListFlowsResponseItem.js → users/client/requests/UserInviteRequest.js} +0 -0
  747. /package/api/resources/{assets/types/ListFoldersResponseItem.d.ts → values/client/requests/UpdateValuesRequest.d.ts} +0 -0
  748. /package/api/resources/{assets/types/ListFoldersResponseItem.js → values/client/requests/UpdateValuesRequest.js} +0 -0
  749. /package/api/resources/{assets/types/ListRulesResponseItem.d.ts → values/types/UpdateValuesRequestValuesValue.d.ts} +0 -0
  750. /package/api/resources/{assets/types/ListRulesResponseItem.js → values/types/UpdateValuesRequestValuesValue.js} +0 -0
  751. /package/api/{resources/assets/types/ListRulesResponseItemFolder.d.ts → types/BooleanValue.d.ts} +0 -0
  752. /package/api/{resources/assets/types/ListRulesResponseItemFolder.js → types/BooleanValue.js} +0 -0
  753. /package/api/{resources/assets/types/UpsertFolderResponse.d.ts → types/BulkRuleResponseItem.d.ts} +0 -0
  754. /package/api/{resources/assets/types/UpsertFolderResponse.js → types/BulkRuleResponseItem.js} +0 -0
  755. /package/api/{resources/assets/types/UsageResponse.d.ts → types/BulkRuleResponseItemError.d.ts} +0 -0
  756. /package/api/{resources/assets/types/UsageResponse.js → types/BulkRuleResponseItemError.js} +0 -0
  757. /package/api/{resources/assets/types/index.d.ts → types/CreateTestRequest.d.ts} +0 -0
  758. /package/api/{resources/decisions/client/requests/QueryRequest.js → types/CreateTestRequest.js} +0 -0
  759. /package/api/{resources/decisions/client/requests/QueryRequest.d.ts → types/DecisionLog.d.ts} +0 -0
  760. /package/api/{resources/decisions/types/QueryResponse.js → types/DecisionLog.js} +0 -0
  761. /package/api/{resources/decisions/types/QueryResponse.d.ts → types/DecisionLogDecision.d.ts} +0 -0
  762. /package/api/{resources/tests/client/requests/CreateFlowTestRequest.js → types/DecisionLogDecision.js} +0 -0
  763. /package/api/{resources/decisions/types/index.d.ts → types/DecisionLogDecisionConditionsItemValue.d.ts} +0 -0
  764. /package/api/{resources/tests/client/requests/CreateRuleTestRequest.js → types/DecisionLogDecisionConditionsItemValue.js} +0 -0
  765. /package/api/{resources/tests/client/requests/CreateFlowTestRequest.d.ts → types/DecisionLogRequest.d.ts} +0 -0
  766. /package/api/{resources/tests/types/CreateFlowTestResponse.js → types/DecisionLogRequest.js} +0 -0
  767. /package/api/{resources/tests/client/requests/CreateRuleTestRequest.d.ts → types/DecisionLogResponse.d.ts} +0 -0
  768. /package/api/{resources/tests/types/CreateRuleTestResponse.js → types/DecisionLogResponse.js} +0 -0
  769. /package/api/{resources/tests/client/requests/index.d.ts → types/DynamicRequestPayload.d.ts} +0 -0
  770. /package/api/{resources/tests/types/DeleteFlowTestResponse.js → types/DynamicRequestPayload.js} +0 -0
  771. /package/api/{resources/tests/types/CreateFlowTestResponse.d.ts → types/DynamicResponsePayload.d.ts} +0 -0
  772. /package/api/{resources/tests/types/DeleteRuleTestResponse.js → types/DynamicResponsePayload.js} +0 -0
  773. /package/api/{resources/tests/types/CreateRuleTestResponse.d.ts → types/DynamicValue.d.ts} +0 -0
  774. /package/api/{resources/tests/types/ListFlowTestsResponseItem.js → types/DynamicValue.js} +0 -0
  775. /package/api/{resources/tests/types/DeleteFlowTestResponse.d.ts → types/DynamicValueBase.d.ts} +0 -0
  776. /package/api/{resources/tests/types/ListRuleTestsResponseItem.js → types/DynamicValueBase.js} +0 -0
  777. /package/api/{resources/tests/types/DeleteRuleTestResponse.d.ts → types/DynamicValueListResponse.d.ts} +0 -0
  778. /package/api/{resources/users/client/requests/CreateGroupRequest.js → types/DynamicValueListResponse.js} +0 -0
  779. /package/api/{resources/tests/types/ListFlowTestsResponseItem.d.ts → types/Error_.d.ts} +0 -0
  780. /package/api/{resources/users/client/requests/InviteRequest.js → types/Error_.js} +0 -0
  781. /package/api/{resources/tests/types/ListRuleTestsResponseItem.d.ts → types/FlowBase.d.ts} +0 -0
  782. /package/api/{resources/users/types/CreateGroupResponse.js → types/FlowBase.js} +0 -0
  783. /package/api/{resources/tests/types/index.d.ts → types/FlowDetail.d.ts} +0 -0
  784. /package/api/{resources/users/types/InviteResponse.js → types/FlowDetail.js} +0 -0
  785. /package/api/{resources/users/client/requests/CreateGroupRequest.d.ts → types/FlowExecutionError.d.ts} +0 -0
  786. /package/api/{resources/users/types/ListGroupsResponseItem.js → types/FlowExecutionError.js} +0 -0
  787. /package/api/{resources/users/client/requests/InviteRequest.d.ts → types/FlowListResponse.d.ts} +0 -0
  788. /package/api/{resources/values/types/DeleteDynamicValueResponse.js → types/FlowListResponse.js} +0 -0
  789. /package/api/{resources/users/types/CreateGroupResponse.d.ts → types/Folder.d.ts} +0 -0
  790. /package/api/{resources/values/types/ListDynamicValuesResponseItem.js → types/Folder.js} +0 -0
  791. /package/api/{resources/users/types/InviteResponse.d.ts → types/FolderListResponse.d.ts} +0 -0
  792. /package/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → types/FolderListResponse.js} +0 -0
  793. /package/api/{resources/users/types/ListGroupsResponseItem.d.ts → types/ListValue.d.ts} +0 -0
  794. /package/api/{resources/values/types/ListDynamicValuesResponseItemValue.js → types/ListValue.js} +0 -0
  795. /package/api/{resources/values/types/DeleteDynamicValueResponse.d.ts → types/NumberValue.d.ts} +0 -0
  796. /package/api/{resources/values/types/UpdateRequestValue.js → types/NumberValue.js} +0 -0
  797. /package/api/{resources/values/types/ListDynamicValuesResponseItem.d.ts → types/ParallelSolveRequest.d.ts} +0 -0
  798. /package/api/{resources/values/types/UpdateResponseItem.js → types/ParallelSolveRequest.js} +0 -0
  799. /package/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts → types/ParallelSolveRequestValue.d.ts} +0 -0
  800. /package/api/{resources/values/types/UpdateResponseItemValue.js → types/ParallelSolveRequestValue.js} +0 -0
  801. /package/api/{resources/values/types/ListDynamicValuesResponseItemValue.d.ts → types/ParallelSolveResponse.d.ts} +0 -0
  802. /package/api/types/{BadRequestErrorBody.js → ParallelSolveResponse.js} +0 -0
  803. /package/api/{resources/values/types/UpdateRequestValue.d.ts → types/RuleBase.d.ts} +0 -0
  804. /package/api/types/{ForbiddenErrorBody.js → RuleBase.js} +0 -0
  805. /package/api/{resources/values/types/UpdateResponseItem.d.ts → types/RuleDetail.d.ts} +0 -0
  806. /package/api/types/{InternalServerErrorBody.js → RuleDetail.js} +0 -0
  807. /package/api/{resources/values/types/UpdateResponseItemValue.d.ts → types/RuleExport.d.ts} +0 -0
  808. /package/api/types/{NotFoundErrorBody.js → RuleExport.js} +0 -0
  809. /package/api/types/{BadRequestErrorBody.d.ts → RuleListResponse.d.ts} +0 -0
  810. /package/{dist/api/resources/assets/types/DeleteFolderResponse.js → api/types/RuleListResponse.js} +0 -0
  811. /package/api/types/{ForbiddenErrorBody.d.ts → RuleUsage.d.ts} +0 -0
  812. /package/{dist/api/resources/assets/types/DeleteRuleResponse.js → api/types/RuleUsage.js} +0 -0
  813. /package/api/types/{InternalServerErrorBody.d.ts → SchemaField.d.ts} +0 -0
  814. /package/{dist/api/resources/assets/types/ListFlowsResponseItem.js → api/types/SchemaField.js} +0 -0
  815. /package/api/types/{NotFoundErrorBody.d.ts → SchemaFieldDefaultValue.d.ts} +0 -0
  816. /package/{dist/api/resources/assets/types/ListFoldersResponseItem.js → api/types/SchemaFieldDefaultValue.js} +0 -0
  817. /package/{dist/api/resources/assets/types/DeleteFolderResponse.d.ts → api/types/StringValue.d.ts} +0 -0
  818. /package/{dist/api/resources/assets/types/ListRulesResponseItem.js → api/types/StringValue.js} +0 -0
  819. /package/{dist/api/resources/assets/types/DeleteRuleResponse.d.ts → api/types/SuccessMessage.d.ts} +0 -0
  820. /package/{dist/api/resources/assets/types/ListRulesResponseItemFolder.js → api/types/SuccessMessage.js} +0 -0
  821. /package/{dist/api/resources/assets/types/ListFlowsResponseItem.d.ts → api/types/Test.d.ts} +0 -0
  822. /package/{dist/api/resources/assets/types/UpsertFolderResponse.js → api/types/Test.js} +0 -0
  823. /package/{dist/api/resources/assets/types/ListFoldersResponseItem.d.ts → api/types/TestListResponse.d.ts} +0 -0
  824. /package/{dist/api/resources/assets/types/UsageResponse.js → api/types/TestListResponse.js} +0 -0
  825. /package/{dist/api/resources/assets/types/ListRulesResponseItem.d.ts → api/types/TestTestState.d.ts} +0 -0
  826. /package/{dist/api/resources/decisions/client/requests/QueryRequest.js → api/types/TestTestState.js} +0 -0
  827. /package/{dist/api/resources/assets/types/ListRulesResponseItemFolder.d.ts → api/types/TestTestStateConditionsItemValue.d.ts} +0 -0
  828. /package/{dist/api/resources/decisions/types/QueryResponse.js → api/types/TestTestStateConditionsItemValue.js} +0 -0
  829. /package/{dist/api/resources/assets/types/UpsertFolderResponse.d.ts → api/types/TestTestStateEvaluationError.d.ts} +0 -0
  830. /package/{dist/api/resources/tests/client/requests/CreateFlowTestRequest.js → api/types/TestTestStateEvaluationError.js} +0 -0
  831. /package/{dist/api/resources/assets/types/UsageResponse.d.ts → api/types/UsageStatistics.d.ts} +0 -0
  832. /package/{dist/api/resources/tests/client/requests/CreateRuleTestRequest.js → api/types/UsageStatistics.js} +0 -0
  833. /package/{dist/api/resources/assets/types/index.d.ts → api/types/UserGroup.d.ts} +0 -0
  834. /package/{dist/api/resources/tests/types/CreateFlowTestResponse.js → api/types/UserGroup.js} +0 -0
  835. /package/{dist/api/resources/decisions/client/requests/QueryRequest.d.ts → api/types/UserGroupListResponse.d.ts} +0 -0
  836. /package/{dist/api/resources/tests/types/CreateRuleTestResponse.js → api/types/UserGroupListResponse.js} +0 -0
  837. /package/{dist/api/resources/decisions/types/QueryResponse.d.ts → api/types/UserInviteResponse.d.ts} +0 -0
  838. /package/{dist/api/resources/tests/types/DeleteFlowTestResponse.js → api/types/UserInviteResponse.js} +0 -0
  839. /package/{dist/api/resources/decisions/types/index.d.ts → api/types/UserInviteResponseUser.d.ts} +0 -0
  840. /package/{dist/api/resources/tests/types/DeleteRuleTestResponse.js → api/types/UserInviteResponseUser.js} +0 -0
  841. /package/{dist/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts → api/types/ValueLimits.d.ts} +0 -0
  842. /package/{dist/api/resources/tests/types/ListFlowTestsResponseItem.js → api/types/ValueLimits.js} +0 -0
  843. /package/dist/api/resources/{tests/client/requests/CreateRuleTestRequest.d.ts → decisions/client/requests/QueryDecisionsRequest.d.ts} +0 -0
  844. /package/dist/api/resources/{tests/types/ListRuleTestsResponseItem.js → decisions/client/requests/QueryDecisionsRequest.js} +0 -0
  845. /package/dist/api/resources/{tests/client/requests/index.d.ts → users/client/requests/CreateUserGroupRequest.d.ts} +0 -0
  846. /package/dist/api/resources/users/client/requests/{CreateGroupRequest.js → CreateUserGroupRequest.js} +0 -0
  847. /package/dist/api/resources/{tests/types/CreateFlowTestResponse.d.ts → users/client/requests/UserInviteRequest.d.ts} +0 -0
  848. /package/dist/api/resources/users/client/requests/{InviteRequest.js → UserInviteRequest.js} +0 -0
  849. /package/dist/api/resources/{tests/types/CreateRuleTestResponse.d.ts → values/client/requests/UpdateValuesRequest.d.ts} +0 -0
  850. /package/dist/api/resources/{users/types/CreateGroupResponse.js → values/client/requests/UpdateValuesRequest.js} +0 -0
  851. /package/dist/api/resources/{tests/types/DeleteFlowTestResponse.d.ts → values/types/UpdateValuesRequestValuesValue.d.ts} +0 -0
  852. /package/dist/api/resources/{users/types/InviteResponse.js → values/types/UpdateValuesRequestValuesValue.js} +0 -0
  853. /package/dist/api/{resources/tests/types/DeleteRuleTestResponse.d.ts → types/BooleanValue.d.ts} +0 -0
  854. /package/dist/api/{resources/users/types/ListGroupsResponseItem.js → types/BooleanValue.js} +0 -0
  855. /package/dist/api/{resources/tests/types/ListFlowTestsResponseItem.d.ts → types/BulkRuleResponseItem.d.ts} +0 -0
  856. /package/dist/api/{resources/values/types/DeleteDynamicValueResponse.js → types/BulkRuleResponseItem.js} +0 -0
  857. /package/dist/api/{resources/tests/types/ListRuleTestsResponseItem.d.ts → types/BulkRuleResponseItemError.d.ts} +0 -0
  858. /package/dist/api/{resources/values/types/ListDynamicValuesResponseItem.js → types/BulkRuleResponseItemError.js} +0 -0
  859. /package/dist/api/{resources/tests/types/index.d.ts → types/CreateTestRequest.d.ts} +0 -0
  860. /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → types/CreateTestRequest.js} +0 -0
  861. /package/dist/api/{resources/users/client/requests/CreateGroupRequest.d.ts → types/DecisionLog.d.ts} +0 -0
  862. /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemValue.js → types/DecisionLog.js} +0 -0
  863. /package/dist/api/{resources/users/client/requests/InviteRequest.d.ts → types/DecisionLogDecision.d.ts} +0 -0
  864. /package/dist/api/{resources/values/types/UpdateRequestValue.js → types/DecisionLogDecision.js} +0 -0
  865. /package/dist/api/{resources/users/types/CreateGroupResponse.d.ts → types/DecisionLogDecisionConditionsItemValue.d.ts} +0 -0
  866. /package/dist/api/{resources/values/types/UpdateResponseItem.js → types/DecisionLogDecisionConditionsItemValue.js} +0 -0
  867. /package/dist/api/{resources/users/types/InviteResponse.d.ts → types/DecisionLogRequest.d.ts} +0 -0
  868. /package/dist/api/{resources/values/types/UpdateResponseItemValue.js → types/DecisionLogRequest.js} +0 -0
  869. /package/dist/api/{resources/users/types/ListGroupsResponseItem.d.ts → types/DecisionLogResponse.d.ts} +0 -0
  870. /package/dist/api/types/{BadRequestErrorBody.js → DecisionLogResponse.js} +0 -0
  871. /package/dist/api/{resources/values/types/DeleteDynamicValueResponse.d.ts → types/DynamicRequestPayload.d.ts} +0 -0
  872. /package/dist/api/types/{ForbiddenErrorBody.js → DynamicRequestPayload.js} +0 -0
  873. /package/dist/api/{resources/values/types/ListDynamicValuesResponseItem.d.ts → types/DynamicResponsePayload.d.ts} +0 -0
  874. /package/dist/api/types/{InternalServerErrorBody.js → DynamicResponsePayload.js} +0 -0
  875. /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts → types/DynamicValue.d.ts} +0 -0
  876. /package/dist/api/types/{NotFoundErrorBody.js → DynamicValue.js} +0 -0
  877. /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemValue.d.ts → types/DynamicValueBase.d.ts} +0 -0
  878. /package/dist/api/{resources/values/types/UpdateRequestValue.d.ts → types/DynamicValueListResponse.d.ts} +0 -0
  879. /package/dist/api/{resources/values/types/UpdateResponseItem.d.ts → types/Error_.d.ts} +0 -0
  880. /package/dist/api/{resources/values/types/UpdateResponseItemValue.d.ts → types/FlowBase.d.ts} +0 -0
  881. /package/dist/api/types/{BadRequestErrorBody.d.ts → FlowDetail.d.ts} +0 -0
  882. /package/dist/api/types/{ForbiddenErrorBody.d.ts → FlowExecutionError.d.ts} +0 -0
  883. /package/dist/api/types/{InternalServerErrorBody.d.ts → FlowListResponse.d.ts} +0 -0
  884. /package/dist/api/types/{NotFoundErrorBody.d.ts → Folder.d.ts} +0 -0
  885. /package/dist/{serialization/resources/assets/types/index.d.ts → api/types/FolderListResponse.d.ts} +0 -0
  886. /package/dist/{serialization/resources/decisions/index.d.ts → api/types/ListValue.d.ts} +0 -0
  887. /package/dist/{serialization/resources/decisions/types/index.d.ts → api/types/NumberValue.d.ts} +0 -0
  888. /package/dist/{serialization/resources/flows/index.d.ts → api/types/ParallelSolveRequest.d.ts} +0 -0
  889. /package/dist/{serialization/resources/tests/index.d.ts → api/types/ParallelSolveRequestValue.d.ts} +0 -0
  890. /package/dist/{serialization/resources/tests/types/index.d.ts → api/types/ParallelSolveResponse.d.ts} +0 -0
  891. /package/{serialization/resources/assets/types/index.d.ts → dist/api/types/RuleBase.d.ts} +0 -0
  892. /package/{serialization/resources/decisions/index.d.ts → dist/api/types/RuleDetail.d.ts} +0 -0
  893. /package/{serialization/resources/decisions/types/index.d.ts → dist/api/types/RuleExport.d.ts} +0 -0
  894. /package/{serialization/resources/flows/index.d.ts → dist/api/types/RuleListResponse.d.ts} +0 -0
  895. /package/{serialization/resources/tests/index.d.ts → dist/api/types/RuleUsage.d.ts} +0 -0
  896. /package/{serialization/resources/tests/types/index.d.ts → dist/api/types/SchemaField.d.ts} +0 -0
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
3
+ if (k2 === undefined)
4
+ k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function () { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function (o, m, k, k2) {
11
+ if (k2 === undefined)
12
+ k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function (o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function (o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o)
25
+ if (Object.prototype.hasOwnProperty.call(o, k))
26
+ ar[ar.length] = k;
27
+ return ar;
28
+ };
29
+ return ownKeys(o);
30
+ };
31
+ return function (mod) {
32
+ if (mod && mod.__esModule)
33
+ return mod;
34
+ var result = {};
35
+ if (mod != null)
36
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++)
37
+ if (k[i] !== "default")
38
+ __createBinding(result, mod, k[i]);
39
+ __setModuleDefault(result, mod);
40
+ return result;
41
+ };
42
+ })();
43
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
44
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
45
+ return new (P || (P = Promise))(function (resolve, reject) {
46
+ function fulfilled(value) { try {
47
+ step(generator.next(value));
48
+ }
49
+ catch (e) {
50
+ reject(e);
51
+ } }
52
+ function rejected(value) { try {
53
+ step(generator["throw"](value));
54
+ }
55
+ catch (e) {
56
+ reject(e);
57
+ } }
58
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
59
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
60
+ });
61
+ };
62
+ Object.defineProperty(exports, "__esModule", { value: true });
63
+ exports.chooseStreamWrapper = chooseStreamWrapper;
64
+ const runtime_1 = require("../../runtime");
65
+ function chooseStreamWrapper(responseBody) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ if (runtime_1.RUNTIME.type === "node" && runtime_1.RUNTIME.parsedVersion != null && runtime_1.RUNTIME.parsedVersion >= 18) {
68
+ return new (yield Promise.resolve().then(() => __importStar(require("./Node18UniversalStreamWrapper")))).Node18UniversalStreamWrapper(responseBody);
69
+ }
70
+ else if (runtime_1.RUNTIME.type !== "node" && typeof fetch === "function") {
71
+ return new (yield Promise.resolve().then(() => __importStar(require("./UndiciStreamWrapper")))).UndiciStreamWrapper(responseBody);
72
+ }
73
+ else {
74
+ return new (yield Promise.resolve().then(() => __importStar(require("./NodePre18StreamWrapper")))).NodePre18StreamWrapper(responseBody);
75
+ }
76
+ });
77
+ }
package/core/index.js CHANGED
@@ -22,18 +22,31 @@ var __exportStar = (this && this.__exportStar) || function (m, exports) {
22
22
  if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
23
23
  __createBinding(exports, m, p);
24
24
  };
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule)
27
- return mod;
28
- var result = {};
29
- if (mod != null)
30
- for (var k in mod)
31
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
32
- __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
25
+ var __importStar = (this && this.__importStar) || (function () {
26
+ var ownKeys = function (o) {
27
+ ownKeys = Object.getOwnPropertyNames || function (o) {
28
+ var ar = [];
29
+ for (var k in o)
30
+ if (Object.prototype.hasOwnProperty.call(o, k))
31
+ ar[ar.length] = k;
32
+ return ar;
33
+ };
34
+ return ownKeys(o);
35
+ };
36
+ return function (mod) {
37
+ if (mod && mod.__esModule)
38
+ return mod;
39
+ var result = {};
40
+ if (mod != null)
41
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++)
42
+ if (k[i] !== "default")
43
+ __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
36
48
  Object.defineProperty(exports, "__esModule", { value: true });
37
49
  exports.serialization = void 0;
38
50
  __exportStar(require("./fetcher"), exports);
51
+ __exportStar(require("./runtime"), exports);
39
52
  exports.serialization = __importStar(require("./schemas"));
package/core/json.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ export var __esModule: boolean;
2
+ /**
3
+ * Parse JSON string to object, array, or other type
4
+ * @param text A valid JSON string.
5
+ * @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
6
+ * @returns Parsed object, array, or other type
7
+ */
8
+ export function fromJson(text: any, reviver: any): any;
9
+ /**
10
+ * Serialize a value to JSON
11
+ * @param value A JavaScript value, usually an object or array, to be converted.
12
+ * @param replacer A function that transforms the results.
13
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
14
+ * @returns JSON string
15
+ */
16
+ export function toJson(value: any, replacer: any, space: any): string;
package/core/json.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toJson = void 0;
4
+ exports.fromJson = fromJson;
5
+ /**
6
+ * Serialize a value to JSON
7
+ * @param value A JavaScript value, usually an object or array, to be converted.
8
+ * @param replacer A function that transforms the results.
9
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
10
+ * @returns JSON string
11
+ */
12
+ const toJson = (value, replacer, space) => {
13
+ return JSON.stringify(value, replacer, space);
14
+ };
15
+ exports.toJson = toJson;
16
+ /**
17
+ * Parse JSON string to object, array, or other type
18
+ * @param text A valid JSON string.
19
+ * @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
20
+ * @returns Parsed object, array, or other type
21
+ */
22
+ function fromJson(text, reviver) {
23
+ return JSON.parse(text, reviver);
24
+ }
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var RUNTIME: runtime_1.Runtime;
3
+ import runtime_1 = require("./runtime");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RUNTIME = void 0;
4
+ var runtime_1 = require("./runtime");
5
+ Object.defineProperty(exports, "RUNTIME", { enumerable: true, get: function () { return runtime_1.RUNTIME; } });
@@ -0,0 +1,14 @@
1
+ export var __esModule: boolean;
2
+ export var RUNTIME: {
3
+ type: string;
4
+ version?: undefined;
5
+ parsedVersion?: undefined;
6
+ } | {
7
+ type: string;
8
+ version: any;
9
+ parsedVersion?: undefined;
10
+ } | {
11
+ type: string;
12
+ version: string;
13
+ parsedVersion: number;
14
+ };
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RUNTIME = void 0;
4
+ /**
5
+ * A constant that indicates which environment and version the SDK is running in.
6
+ */
7
+ exports.RUNTIME = evaluateRuntime();
8
+ function evaluateRuntime() {
9
+ var _a, _b, _c, _d, _e;
10
+ /**
11
+ * A constant that indicates whether the environment the code is running is a Web Browser.
12
+ */
13
+ const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
14
+ if (isBrowser) {
15
+ return {
16
+ type: "browser",
17
+ version: window.navigator.userAgent,
18
+ };
19
+ }
20
+ /**
21
+ * A constant that indicates whether the environment the code is running is Cloudflare.
22
+ * https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
23
+ */
24
+ const isCloudflare = typeof globalThis !== "undefined" && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === "Cloudflare-Workers";
25
+ if (isCloudflare) {
26
+ return {
27
+ type: "workerd",
28
+ };
29
+ }
30
+ /**
31
+ * A constant that indicates whether the environment the code is running is Edge Runtime.
32
+ * https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
33
+ */
34
+ const isEdgeRuntime = typeof EdgeRuntime === "string";
35
+ if (isEdgeRuntime) {
36
+ return {
37
+ type: "edge-runtime",
38
+ };
39
+ }
40
+ /**
41
+ * A constant that indicates whether the environment the code is running is a Web Worker.
42
+ */
43
+ const isWebWorker = typeof self === "object" &&
44
+ // @ts-ignore
45
+ typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
46
+ (((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "DedicatedWorkerGlobalScope" ||
47
+ ((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "ServiceWorkerGlobalScope" ||
48
+ ((_d = self.constructor) === null || _d === void 0 ? void 0 : _d.name) === "SharedWorkerGlobalScope");
49
+ if (isWebWorker) {
50
+ return {
51
+ type: "web-worker",
52
+ };
53
+ }
54
+ /**
55
+ * A constant that indicates whether the environment the code is running is Deno.
56
+ * FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
57
+ */
58
+ const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
59
+ if (isDeno) {
60
+ return {
61
+ type: "deno",
62
+ version: Deno.version.deno,
63
+ };
64
+ }
65
+ /**
66
+ * A constant that indicates whether the environment the code is running is Bun.sh.
67
+ */
68
+ const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
69
+ if (isBun) {
70
+ return {
71
+ type: "bun",
72
+ version: Bun.version,
73
+ };
74
+ }
75
+ /**
76
+ * A constant that indicates whether the environment the code is running is Node.JS.
77
+ */
78
+ const isNode = typeof process !== "undefined" &&
79
+ "version" in process &&
80
+ !!process.version &&
81
+ "versions" in process &&
82
+ !!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
83
+ if (isNode) {
84
+ return {
85
+ type: "node",
86
+ version: process.versions.node,
87
+ parsedVersion: Number(process.versions.node.split(".")[0]),
88
+ };
89
+ }
90
+ /**
91
+ * A constant that indicates whether the environment the code is running is in React-Native.
92
+ * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
93
+ */
94
+ const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
95
+ if (isReactNative) {
96
+ return {
97
+ type: "react-native",
98
+ };
99
+ }
100
+ return {
101
+ type: "unknown",
102
+ };
103
+ }
@@ -1,5 +1,6 @@
1
1
  export var __esModule: boolean;
2
2
  export namespace SchemaType {
3
+ const BIGINT: string;
3
4
  const DATE: string;
4
5
  const ENUM: string;
5
6
  const LIST: string;
@@ -15,5 +16,7 @@ export namespace SchemaType {
15
16
  const SET: string;
16
17
  const UNION: string;
17
18
  const UNDISCRIMINATED_UNION: string;
19
+ const NULLABLE: string;
18
20
  const OPTIONAL: string;
21
+ const OPTIONAL_NULLABLE: string;
19
22
  }
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SchemaType = void 0;
4
4
  exports.SchemaType = {
5
+ BIGINT: "bigint",
5
6
  DATE: "date",
6
7
  ENUM: "enum",
7
8
  LIST: "list",
@@ -17,5 +18,7 @@ exports.SchemaType = {
17
18
  SET: "set",
18
19
  UNION: "union",
19
20
  UNDISCRIMINATED_UNION: "undiscriminatedUnion",
21
+ NULLABLE: "nullable",
20
22
  OPTIONAL: "optional",
23
+ OPTIONAL_NULLABLE: "optionalNullable",
21
24
  };
@@ -0,0 +1,4 @@
1
+ export var __esModule: boolean;
2
+ export function bigint(): Schema_1.BaseSchema<any, any> & schema_utils_1.SchemaUtils<bigint, bigint>;
3
+ import Schema_1 = require("../../Schema");
4
+ import schema_utils_1 = require("../schema-utils");
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = bigint;
4
+ const Schema_1 = require("../../Schema");
5
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
7
+ const schema_utils_1 = require("../schema-utils");
8
+ function bigint() {
9
+ const baseSchema = {
10
+ parse: (raw, { breadcrumbsPrefix = [] } = {}) => {
11
+ if (typeof raw === "bigint") {
12
+ return {
13
+ ok: true,
14
+ value: raw,
15
+ };
16
+ }
17
+ if (typeof raw === "number") {
18
+ return {
19
+ ok: true,
20
+ value: BigInt(raw),
21
+ };
22
+ }
23
+ return {
24
+ ok: false,
25
+ errors: [
26
+ {
27
+ path: breadcrumbsPrefix,
28
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(raw, "bigint | number"),
29
+ },
30
+ ],
31
+ };
32
+ },
33
+ json: (bigint, { breadcrumbsPrefix = [] } = {}) => {
34
+ if (typeof bigint !== "bigint") {
35
+ return {
36
+ ok: false,
37
+ errors: [
38
+ {
39
+ path: breadcrumbsPrefix,
40
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(bigint, "bigint"),
41
+ },
42
+ ],
43
+ };
44
+ }
45
+ return {
46
+ ok: true,
47
+ value: bigint,
48
+ };
49
+ },
50
+ getType: () => Schema_1.SchemaType.BIGINT,
51
+ };
52
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
53
+ }
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var bigint: typeof bigint_1.bigint;
3
+ import bigint_1 = require("./bigint");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = void 0;
4
+ var bigint_1 = require("./bigint");
5
+ Object.defineProperty(exports, "bigint", { enumerable: true, get: function () { return bigint_1.bigint; } });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.date = void 0;
3
+ exports.date = date;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
6
  const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
@@ -60,4 +60,3 @@ function date() {
60
60
  };
61
61
  return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
62
62
  }
63
- exports.date = date;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.enum_ = void 0;
3
+ exports.enum_ = enum_;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
6
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
@@ -36,4 +36,3 @@ function enum_(values) {
36
36
  });
37
37
  return schemaCreator();
38
38
  }
39
- exports.enum_ = enum_;
@@ -18,6 +18,7 @@ var __exportStar = (this && this.__exportStar) || function (m, exports) {
18
18
  __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
+ __exportStar(require("./bigint"), exports);
21
22
  __exportStar(require("./date"), exports);
22
23
  __exportStar(require("./enum"), exports);
23
24
  __exportStar(require("./lazy"), exports);
@@ -1,46 +1,24 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try {
6
- step(generator.next(value));
7
- }
8
- catch (e) {
9
- reject(e);
10
- } }
11
- function rejected(value) { try {
12
- step(generator["throw"](value));
13
- }
14
- catch (e) {
15
- reject(e);
16
- } }
17
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19
- });
20
- };
21
2
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.getMemoizedSchema = exports.constructLazyBaseSchema = exports.lazy = void 0;
3
+ exports.lazy = lazy;
4
+ exports.constructLazyBaseSchema = constructLazyBaseSchema;
5
+ exports.getMemoizedSchema = getMemoizedSchema;
23
6
  const schema_utils_1 = require("../schema-utils");
24
7
  function lazy(getter) {
25
8
  const baseSchema = constructLazyBaseSchema(getter);
26
9
  return Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema));
27
10
  }
28
- exports.lazy = lazy;
29
11
  function constructLazyBaseSchema(getter) {
30
12
  return {
31
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).parse(raw, opts); }),
32
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).json(parsed, opts); }),
33
- getType: () => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).getType(); }),
13
+ parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
14
+ json: (parsed, opts) => getMemoizedSchema(getter).json(parsed, opts),
15
+ getType: () => getMemoizedSchema(getter).getType(),
34
16
  };
35
17
  }
36
- exports.constructLazyBaseSchema = constructLazyBaseSchema;
37
18
  function getMemoizedSchema(getter) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- const castedGetter = getter;
40
- if (castedGetter.__zurg_memoized == null) {
41
- castedGetter.__zurg_memoized = yield getter();
42
- }
43
- return castedGetter.__zurg_memoized;
44
- });
19
+ const castedGetter = getter;
20
+ if (castedGetter.__zurg_memoized == null) {
21
+ castedGetter.__zurg_memoized = getter();
22
+ }
23
+ return castedGetter.__zurg_memoized;
45
24
  }
46
- exports.getMemoizedSchema = getMemoizedSchema;
@@ -1,31 +1,11 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try {
6
- step(generator.next(value));
7
- }
8
- catch (e) {
9
- reject(e);
10
- } }
11
- function rejected(value) { try {
12
- step(generator["throw"](value));
13
- }
14
- catch (e) {
15
- reject(e);
16
- } }
17
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19
- });
20
- };
21
2
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.lazyObject = void 0;
3
+ exports.lazyObject = lazyObject;
23
4
  const object_1 = require("../object");
24
5
  const object_like_1 = require("../object-like");
25
6
  const schema_utils_1 = require("../schema-utils");
26
7
  const lazy_1 = require("./lazy");
27
8
  function lazyObject(getter) {
28
- const baseSchema = Object.assign(Object.assign({}, (0, lazy_1.constructLazyBaseSchema)(getter)), { _getRawProperties: () => __awaiter(this, void 0, void 0, function* () { return (yield (0, lazy_1.getMemoizedSchema)(getter))._getRawProperties(); }), _getParsedProperties: () => __awaiter(this, void 0, void 0, function* () { return (yield (0, lazy_1.getMemoizedSchema)(getter))._getParsedProperties(); }) });
9
+ const baseSchema = Object.assign(Object.assign({}, (0, lazy_1.constructLazyBaseSchema)(getter)), { _getRawProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getRawProperties(), _getParsedProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getParsedProperties() });
29
10
  return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), (0, object_1.getObjectUtils)(baseSchema));
30
11
  }
31
- exports.lazyObject = lazyObject;
@@ -1,36 +1,15 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try {
6
- step(generator.next(value));
7
- }
8
- catch (e) {
9
- reject(e);
10
- } }
11
- function rejected(value) { try {
12
- step(generator["throw"](value));
13
- }
14
- catch (e) {
15
- reject(e);
16
- } }
17
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19
- });
20
- };
21
2
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.list = void 0;
3
+ exports.list = list;
23
4
  const Schema_1 = require("../../Schema");
24
5
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
25
6
  const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
26
7
  const schema_utils_1 = require("../schema-utils");
27
8
  function list(schema) {
28
9
  const baseSchema = {
29
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
30
- return validateAndTransformArray(raw, (item, index) => {
31
- var _a;
32
- return schema.parse(item, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `[${index}]`] }));
33
- });
10
+ parse: (raw, opts) => validateAndTransformArray(raw, (item, index) => {
11
+ var _a;
12
+ return schema.parse(item, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `[${index}]`] }));
34
13
  }),
35
14
  json: (parsed, opts) => validateAndTransformArray(parsed, (item, index) => {
36
15
  var _a;
@@ -40,39 +19,36 @@ function list(schema) {
40
19
  };
41
20
  return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
42
21
  }
43
- exports.list = list;
44
22
  function validateAndTransformArray(value, transformItem) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- if (!Array.isArray(value)) {
23
+ if (!Array.isArray(value)) {
24
+ return {
25
+ ok: false,
26
+ errors: [
27
+ {
28
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "list"),
29
+ path: [],
30
+ },
31
+ ],
32
+ };
33
+ }
34
+ const maybeValidItems = value.map((item, index) => transformItem(item, index));
35
+ return maybeValidItems.reduce((acc, item) => {
36
+ if (acc.ok && item.ok) {
47
37
  return {
48
- ok: false,
49
- errors: [
50
- {
51
- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "list"),
52
- path: [],
53
- },
54
- ],
38
+ ok: true,
39
+ value: [...acc.value, item.value],
55
40
  };
56
41
  }
57
- const maybeValidItems = yield Promise.all(value.map((item, index) => transformItem(item, index)));
58
- return maybeValidItems.reduce((acc, item) => {
59
- if (acc.ok && item.ok) {
60
- return {
61
- ok: true,
62
- value: [...acc.value, item.value],
63
- };
64
- }
65
- const errors = [];
66
- if (!acc.ok) {
67
- errors.push(...acc.errors);
68
- }
69
- if (!item.ok) {
70
- errors.push(...item.errors);
71
- }
72
- return {
73
- ok: false,
74
- errors,
75
- };
76
- }, { ok: true, value: [] });
77
- });
42
+ const errors = [];
43
+ if (!acc.ok) {
44
+ errors.push(...acc.errors);
45
+ }
46
+ if (!item.ok) {
47
+ errors.push(...item.errors);
48
+ }
49
+ return {
50
+ ok: false,
51
+ errors,
52
+ };
53
+ }, { ok: true, value: [] });
78
54
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.booleanLiteral = void 0;
3
+ exports.booleanLiteral = booleanLiteral;
4
4
  const Schema_1 = require("../../Schema");
5
5
  const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
6
  const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
@@ -26,4 +26,3 @@ function booleanLiteral(literal) {
26
26
  });
27
27
  return schemaCreator();
28
28
  }
29
- exports.booleanLiteral = booleanLiteral;