@rulebricks/sdk 1.0.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 (942) hide show
  1. package/Client.d.ts +26 -0
  2. package/Client.js +47 -0
  3. package/LICENSE.txt +21 -0
  4. package/README.md +83 -0
  5. package/api/errors/BadRequestError.d.ts +7 -0
  6. package/api/errors/BadRequestError.js +47 -0
  7. package/api/errors/ForbiddenError.d.ts +7 -0
  8. package/api/errors/ForbiddenError.js +47 -0
  9. package/api/errors/InternalServerError.d.ts +7 -0
  10. package/api/errors/InternalServerError.js +47 -0
  11. package/api/errors/NotFoundError.d.ts +7 -0
  12. package/api/errors/NotFoundError.js +47 -0
  13. package/api/errors/index.d.ts +1 -0
  14. package/api/errors/index.js +24 -0
  15. package/api/index.d.ts +1 -0
  16. package/api/index.js +23 -0
  17. package/api/resources/assets/client/Client.d.ts +100 -0
  18. package/api/resources/assets/client/Client.js +611 -0
  19. package/api/resources/assets/client/index.d.ts +1 -0
  20. package/api/resources/assets/client/index.js +21 -0
  21. package/api/resources/assets/client/requests/DeleteFolderRequest.d.ts +1 -0
  22. package/api/resources/assets/client/requests/DeleteFolderRequest.js +5 -0
  23. package/api/resources/assets/client/requests/DeleteRuleRequest.d.ts +1 -0
  24. package/api/resources/assets/client/requests/DeleteRuleRequest.js +5 -0
  25. package/api/resources/assets/client/requests/ExportRuleRequest.d.ts +1 -0
  26. package/api/resources/assets/client/requests/ExportRuleRequest.js +5 -0
  27. package/api/resources/assets/client/requests/ImportRuleRequest.d.ts +1 -0
  28. package/api/resources/assets/client/requests/ImportRuleRequest.js +5 -0
  29. package/api/resources/assets/client/requests/ListRulesRequest.d.ts +1 -0
  30. package/api/resources/assets/client/requests/ListRulesRequest.js +5 -0
  31. package/api/resources/assets/client/requests/UpsertFolderRequest.d.ts +1 -0
  32. package/api/resources/assets/client/requests/UpsertFolderRequest.js +5 -0
  33. package/api/resources/assets/client/requests/index.d.ts +1 -0
  34. package/api/resources/assets/client/requests/index.js +2 -0
  35. package/api/resources/assets/index.d.ts +1 -0
  36. package/api/resources/assets/index.js +22 -0
  37. package/api/resources/assets/types/DeleteFolderResponse.d.ts +1 -0
  38. package/api/resources/assets/types/DeleteFolderResponse.js +5 -0
  39. package/api/resources/assets/types/DeleteRuleResponse.d.ts +1 -0
  40. package/api/resources/assets/types/DeleteRuleResponse.js +5 -0
  41. package/api/resources/assets/types/ListFlowsResponseItem.d.ts +1 -0
  42. package/api/resources/assets/types/ListFlowsResponseItem.js +5 -0
  43. package/api/resources/assets/types/ListFoldersResponseItem.d.ts +1 -0
  44. package/api/resources/assets/types/ListFoldersResponseItem.js +5 -0
  45. package/api/resources/assets/types/ListRulesResponseItem.d.ts +1 -0
  46. package/api/resources/assets/types/ListRulesResponseItem.js +5 -0
  47. package/api/resources/assets/types/ListRulesResponseItemFolder.d.ts +1 -0
  48. package/api/resources/assets/types/ListRulesResponseItemFolder.js +5 -0
  49. package/api/resources/assets/types/UpsertFolderResponse.d.ts +1 -0
  50. package/api/resources/assets/types/UpsertFolderResponse.js +5 -0
  51. package/api/resources/assets/types/UsageResponse.d.ts +1 -0
  52. package/api/resources/assets/types/UsageResponse.js +5 -0
  53. package/api/resources/assets/types/index.d.ts +1 -0
  54. package/api/resources/assets/types/index.js +28 -0
  55. package/api/resources/decisions/client/Client.d.ts +19 -0
  56. package/api/resources/decisions/client/Client.js +146 -0
  57. package/api/resources/decisions/client/index.d.ts +1 -0
  58. package/api/resources/decisions/client/index.js +21 -0
  59. package/api/resources/decisions/client/requests/QueryRequest.d.ts +1 -0
  60. package/api/resources/decisions/client/requests/QueryRequest.js +5 -0
  61. package/api/resources/decisions/client/requests/index.d.ts +1 -0
  62. package/api/resources/decisions/client/requests/index.js +2 -0
  63. package/api/resources/decisions/index.d.ts +1 -0
  64. package/api/resources/decisions/index.js +22 -0
  65. package/api/resources/decisions/types/QueryResponse.d.ts +1 -0
  66. package/api/resources/decisions/types/QueryResponse.js +5 -0
  67. package/api/resources/decisions/types/index.d.ts +1 -0
  68. package/api/resources/decisions/types/index.js +21 -0
  69. package/api/resources/flows/client/Client.d.ts +21 -0
  70. package/api/resources/flows/client/Client.js +133 -0
  71. package/api/resources/flows/client/index.d.ts +1 -0
  72. package/api/resources/flows/client/index.js +2 -0
  73. package/api/resources/flows/index.d.ts +1 -0
  74. package/api/resources/flows/index.js +21 -0
  75. package/api/resources/index.d.ts +8 -0
  76. package/api/resources/index.js +54 -0
  77. package/api/resources/rules/client/Client.d.ts +60 -0
  78. package/api/resources/rules/client/Client.js +272 -0
  79. package/api/resources/rules/client/index.d.ts +1 -0
  80. package/api/resources/rules/client/index.js +2 -0
  81. package/api/resources/rules/index.d.ts +1 -0
  82. package/api/resources/rules/index.js +21 -0
  83. package/api/resources/tests/client/Client.d.ts +82 -0
  84. package/api/resources/tests/client/Client.js +439 -0
  85. package/api/resources/tests/client/index.d.ts +1 -0
  86. package/api/resources/tests/client/index.js +21 -0
  87. package/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts +1 -0
  88. package/api/resources/tests/client/requests/CreateFlowTestRequest.js +5 -0
  89. package/api/resources/tests/client/requests/CreateRuleTestRequest.d.ts +1 -0
  90. package/api/resources/tests/client/requests/CreateRuleTestRequest.js +5 -0
  91. package/api/resources/tests/client/requests/index.d.ts +1 -0
  92. package/api/resources/tests/client/requests/index.js +2 -0
  93. package/api/resources/tests/index.d.ts +1 -0
  94. package/api/resources/tests/index.js +22 -0
  95. package/api/resources/tests/types/CreateFlowTestResponse.d.ts +1 -0
  96. package/api/resources/tests/types/CreateFlowTestResponse.js +5 -0
  97. package/api/resources/tests/types/CreateRuleTestResponse.d.ts +1 -0
  98. package/api/resources/tests/types/CreateRuleTestResponse.js +5 -0
  99. package/api/resources/tests/types/DeleteFlowTestResponse.d.ts +1 -0
  100. package/api/resources/tests/types/DeleteFlowTestResponse.js +5 -0
  101. package/api/resources/tests/types/DeleteRuleTestResponse.d.ts +1 -0
  102. package/api/resources/tests/types/DeleteRuleTestResponse.js +5 -0
  103. package/api/resources/tests/types/ListFlowTestsResponseItem.d.ts +1 -0
  104. package/api/resources/tests/types/ListFlowTestsResponseItem.js +5 -0
  105. package/api/resources/tests/types/ListRuleTestsResponseItem.d.ts +1 -0
  106. package/api/resources/tests/types/ListRuleTestsResponseItem.js +5 -0
  107. package/api/resources/tests/types/index.d.ts +1 -0
  108. package/api/resources/tests/types/index.js +26 -0
  109. package/api/resources/users/client/Client.d.ts +62 -0
  110. package/api/resources/users/client/Client.js +269 -0
  111. package/api/resources/users/client/index.d.ts +1 -0
  112. package/api/resources/users/client/index.js +21 -0
  113. package/api/resources/users/client/requests/CreateGroupRequest.d.ts +1 -0
  114. package/api/resources/users/client/requests/CreateGroupRequest.js +5 -0
  115. package/api/resources/users/client/requests/InviteRequest.d.ts +1 -0
  116. package/api/resources/users/client/requests/InviteRequest.js +5 -0
  117. package/api/resources/users/client/requests/index.d.ts +1 -0
  118. package/api/resources/users/client/requests/index.js +2 -0
  119. package/api/resources/users/index.d.ts +1 -0
  120. package/api/resources/users/index.js +22 -0
  121. package/api/resources/users/types/CreateGroupResponse.d.ts +1 -0
  122. package/api/resources/users/types/CreateGroupResponse.js +5 -0
  123. package/api/resources/users/types/InviteRequestRole.d.ts +5 -0
  124. package/api/resources/users/types/InviteRequestRole.js +10 -0
  125. package/api/resources/users/types/InviteResponse.d.ts +1 -0
  126. package/api/resources/users/types/InviteResponse.js +5 -0
  127. package/api/resources/users/types/ListGroupsResponseItem.d.ts +1 -0
  128. package/api/resources/users/types/ListGroupsResponseItem.js +5 -0
  129. package/api/resources/users/types/index.d.ts +1 -0
  130. package/api/resources/users/types/index.js +24 -0
  131. package/api/resources/values/client/Client.d.ts +37 -0
  132. package/api/resources/values/client/Client.js +255 -0
  133. package/api/resources/values/client/index.d.ts +1 -0
  134. package/api/resources/values/client/index.js +21 -0
  135. package/api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts +1 -0
  136. package/api/resources/values/client/requests/DeleteDynamicValueRequest.js +5 -0
  137. package/api/resources/values/client/requests/ListDynamicValuesRequest.d.ts +1 -0
  138. package/api/resources/values/client/requests/ListDynamicValuesRequest.js +5 -0
  139. package/api/resources/values/client/requests/index.d.ts +1 -0
  140. package/api/resources/values/client/requests/index.js +2 -0
  141. package/api/resources/values/index.d.ts +1 -0
  142. package/api/resources/values/index.js +22 -0
  143. package/api/resources/values/types/DeleteDynamicValueResponse.d.ts +1 -0
  144. package/api/resources/values/types/DeleteDynamicValueResponse.js +5 -0
  145. package/api/resources/values/types/ListDynamicValuesResponseItem.d.ts +1 -0
  146. package/api/resources/values/types/ListDynamicValuesResponseItem.js +5 -0
  147. package/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts +7 -0
  148. package/api/resources/values/types/ListDynamicValuesResponseItemType.js +12 -0
  149. package/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +1 -0
  150. package/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +5 -0
  151. package/api/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +1 -0
  152. package/api/resources/values/types/ListDynamicValuesResponseItemValue.js +5 -0
  153. package/api/resources/values/types/UpdateRequestValue.d.ts +1 -0
  154. package/api/resources/values/types/UpdateRequestValue.js +5 -0
  155. package/api/resources/values/types/UpdateResponseItem.d.ts +1 -0
  156. package/api/resources/values/types/UpdateResponseItem.js +5 -0
  157. package/api/resources/values/types/UpdateResponseItemType.d.ts +7 -0
  158. package/api/resources/values/types/UpdateResponseItemType.js +12 -0
  159. package/api/resources/values/types/UpdateResponseItemValue.d.ts +1 -0
  160. package/api/resources/values/types/UpdateResponseItemValue.js +5 -0
  161. package/api/resources/values/types/index.d.ts +1 -0
  162. package/api/resources/values/types/index.js +29 -0
  163. package/api/types/BadRequestErrorBody.d.ts +1 -0
  164. package/api/types/BadRequestErrorBody.js +5 -0
  165. package/api/types/ForbiddenErrorBody.d.ts +1 -0
  166. package/api/types/ForbiddenErrorBody.js +5 -0
  167. package/api/types/InternalServerErrorBody.d.ts +1 -0
  168. package/api/types/InternalServerErrorBody.js +5 -0
  169. package/api/types/NotFoundErrorBody.d.ts +1 -0
  170. package/api/types/NotFoundErrorBody.js +5 -0
  171. package/api/types/index.d.ts +1 -0
  172. package/api/types/index.js +24 -0
  173. package/banner.png +0 -0
  174. package/core/fetcher/APIResponse.d.ts +1 -0
  175. package/core/fetcher/APIResponse.js +2 -0
  176. package/core/fetcher/Fetcher.d.ts +3 -0
  177. package/core/fetcher/Fetcher.js +161 -0
  178. package/core/fetcher/Supplier.d.ts +4 -0
  179. package/core/fetcher/Supplier.js +32 -0
  180. package/core/fetcher/getHeader.d.ts +2 -0
  181. package/core/fetcher/getHeader.js +12 -0
  182. package/core/fetcher/index.d.ts +9 -0
  183. package/core/fetcher/index.js +9 -0
  184. package/core/index.d.ts +2 -0
  185. package/core/index.js +39 -0
  186. package/core/schemas/Schema.d.ts +19 -0
  187. package/core/schemas/Schema.js +21 -0
  188. package/core/schemas/builders/date/date.d.ts +4 -0
  189. package/core/schemas/builders/date/date.js +63 -0
  190. package/core/schemas/builders/date/index.d.ts +3 -0
  191. package/core/schemas/builders/date/index.js +5 -0
  192. package/core/schemas/builders/enum/enum.d.ts +3 -0
  193. package/core/schemas/builders/enum/enum.js +39 -0
  194. package/core/schemas/builders/enum/index.d.ts +3 -0
  195. package/core/schemas/builders/enum/index.js +5 -0
  196. package/core/schemas/builders/index.d.ts +1 -0
  197. package/core/schemas/builders/index.js +33 -0
  198. package/core/schemas/builders/lazy/index.d.ts +5 -0
  199. package/core/schemas/builders/lazy/index.js +7 -0
  200. package/core/schemas/builders/lazy/lazy.d.ts +13 -0
  201. package/core/schemas/builders/lazy/lazy.js +46 -0
  202. package/core/schemas/builders/lazy/lazyObject.d.ts +8 -0
  203. package/core/schemas/builders/lazy/lazyObject.js +31 -0
  204. package/core/schemas/builders/list/index.d.ts +3 -0
  205. package/core/schemas/builders/list/index.js +5 -0
  206. package/core/schemas/builders/list/list.d.ts +7 -0
  207. package/core/schemas/builders/list/list.js +78 -0
  208. package/core/schemas/builders/literals/booleanLiteral.d.ts +3 -0
  209. package/core/schemas/builders/literals/booleanLiteral.js +29 -0
  210. package/core/schemas/builders/literals/index.d.ts +5 -0
  211. package/core/schemas/builders/literals/index.js +7 -0
  212. package/core/schemas/builders/literals/stringLiteral.d.ts +3 -0
  213. package/core/schemas/builders/literals/stringLiteral.js +29 -0
  214. package/core/schemas/builders/object/index.d.ts +9 -0
  215. package/core/schemas/builders/object/index.js +11 -0
  216. package/core/schemas/builders/object/object.d.ts +27 -0
  217. package/core/schemas/builders/object/object.js +268 -0
  218. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +2 -0
  219. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  220. package/core/schemas/builders/object/property.d.ts +7 -0
  221. package/core/schemas/builders/object/property.js +16 -0
  222. package/core/schemas/builders/object/types.d.ts +1 -0
  223. package/core/schemas/builders/object/types.js +2 -0
  224. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +23 -0
  225. package/core/schemas/builders/object-like/getObjectLikeUtils.js +73 -0
  226. package/core/schemas/builders/object-like/index.d.ts +4 -0
  227. package/core/schemas/builders/object-like/index.js +6 -0
  228. package/core/schemas/builders/object-like/types.d.ts +1 -0
  229. package/core/schemas/builders/object-like/types.js +2 -0
  230. package/core/schemas/builders/primitives/any.d.ts +3 -0
  231. package/core/schemas/builders/primitives/any.js +6 -0
  232. package/core/schemas/builders/primitives/boolean.d.ts +3 -0
  233. package/core/schemas/builders/primitives/boolean.js +25 -0
  234. package/core/schemas/builders/primitives/index.d.ts +6 -0
  235. package/core/schemas/builders/primitives/index.js +13 -0
  236. package/core/schemas/builders/primitives/number.d.ts +3 -0
  237. package/core/schemas/builders/primitives/number.js +25 -0
  238. package/core/schemas/builders/primitives/string.d.ts +3 -0
  239. package/core/schemas/builders/primitives/string.js +25 -0
  240. package/core/schemas/builders/primitives/unknown.d.ts +3 -0
  241. package/core/schemas/builders/primitives/unknown.js +6 -0
  242. package/core/schemas/builders/record/index.d.ts +3 -0
  243. package/core/schemas/builders/record/index.js +5 -0
  244. package/core/schemas/builders/record/record.d.ts +7 -0
  245. package/core/schemas/builders/record/record.js +116 -0
  246. package/core/schemas/builders/record/types.d.ts +1 -0
  247. package/core/schemas/builders/record/types.js +2 -0
  248. package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  249. package/core/schemas/builders/schema-utils/JsonError.js +12 -0
  250. package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  251. package/core/schemas/builders/schema-utils/ParseError.js +12 -0
  252. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +54 -0
  253. package/core/schemas/builders/schema-utils/getSchemaUtils.js +95 -0
  254. package/core/schemas/builders/schema-utils/index.d.ts +9 -0
  255. package/core/schemas/builders/schema-utils/index.js +11 -0
  256. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  257. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  258. package/core/schemas/builders/set/index.d.ts +3 -0
  259. package/core/schemas/builders/set/index.js +5 -0
  260. package/core/schemas/builders/set/set.d.ts +7 -0
  261. package/core/schemas/builders/set/set.js +63 -0
  262. package/core/schemas/builders/undiscriminated-union/index.d.ts +3 -0
  263. package/core/schemas/builders/undiscriminated-union/index.js +5 -0
  264. package/core/schemas/builders/undiscriminated-union/types.d.ts +1 -0
  265. package/core/schemas/builders/undiscriminated-union/types.js +2 -0
  266. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +7 -0
  267. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +61 -0
  268. package/core/schemas/builders/union/discriminant.d.ts +5 -0
  269. package/core/schemas/builders/union/discriminant.js +10 -0
  270. package/core/schemas/builders/union/index.d.ts +5 -0
  271. package/core/schemas/builders/union/index.js +7 -0
  272. package/core/schemas/builders/union/types.d.ts +1 -0
  273. package/core/schemas/builders/union/types.js +2 -0
  274. package/core/schemas/builders/union/union.d.ts +8 -0
  275. package/core/schemas/builders/union/union.js +152 -0
  276. package/core/schemas/index.d.ts +1 -0
  277. package/core/schemas/index.js +21 -0
  278. package/core/schemas/utils/MaybePromise.d.ts +1 -0
  279. package/core/schemas/utils/MaybePromise.js +2 -0
  280. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +1 -0
  281. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  282. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +7 -0
  283. package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
  284. package/core/schemas/utils/entries.d.ts +2 -0
  285. package/core/schemas/utils/entries.js +7 -0
  286. package/core/schemas/utils/filterObject.d.ts +2 -0
  287. package/core/schemas/utils/filterObject.js +14 -0
  288. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +2 -0
  289. package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  290. package/core/schemas/utils/isPlainObject.d.ts +2 -0
  291. package/core/schemas/utils/isPlainObject.js +18 -0
  292. package/core/schemas/utils/keys.d.ts +2 -0
  293. package/core/schemas/utils/keys.js +7 -0
  294. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  295. package/core/schemas/utils/maybeSkipValidation.js +47 -0
  296. package/core/schemas/utils/partition.d.ts +2 -0
  297. package/core/schemas/utils/partition.js +16 -0
  298. package/dist/Client.d.ts +26 -0
  299. package/dist/Client.js +47 -0
  300. package/dist/api/errors/BadRequestError.d.ts +7 -0
  301. package/dist/api/errors/BadRequestError.js +47 -0
  302. package/dist/api/errors/ForbiddenError.d.ts +7 -0
  303. package/dist/api/errors/ForbiddenError.js +47 -0
  304. package/dist/api/errors/InternalServerError.d.ts +7 -0
  305. package/dist/api/errors/InternalServerError.js +47 -0
  306. package/dist/api/errors/NotFoundError.d.ts +7 -0
  307. package/dist/api/errors/NotFoundError.js +47 -0
  308. package/dist/api/errors/index.d.ts +1 -0
  309. package/dist/api/errors/index.js +24 -0
  310. package/dist/api/index.d.ts +1 -0
  311. package/dist/api/index.js +23 -0
  312. package/dist/api/resources/assets/client/Client.d.ts +100 -0
  313. package/dist/api/resources/assets/client/Client.js +611 -0
  314. package/dist/api/resources/assets/client/index.d.ts +1 -0
  315. package/dist/api/resources/assets/client/index.js +21 -0
  316. package/dist/api/resources/assets/client/requests/DeleteFolderRequest.d.ts +1 -0
  317. package/dist/api/resources/assets/client/requests/DeleteFolderRequest.js +5 -0
  318. package/dist/api/resources/assets/client/requests/DeleteRuleRequest.d.ts +1 -0
  319. package/dist/api/resources/assets/client/requests/DeleteRuleRequest.js +5 -0
  320. package/dist/api/resources/assets/client/requests/ExportRuleRequest.d.ts +1 -0
  321. package/dist/api/resources/assets/client/requests/ExportRuleRequest.js +5 -0
  322. package/dist/api/resources/assets/client/requests/ImportRuleRequest.d.ts +1 -0
  323. package/dist/api/resources/assets/client/requests/ImportRuleRequest.js +5 -0
  324. package/dist/api/resources/assets/client/requests/ListRulesRequest.d.ts +1 -0
  325. package/dist/api/resources/assets/client/requests/ListRulesRequest.js +5 -0
  326. package/dist/api/resources/assets/client/requests/UpsertFolderRequest.d.ts +1 -0
  327. package/dist/api/resources/assets/client/requests/UpsertFolderRequest.js +5 -0
  328. package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
  329. package/dist/api/resources/assets/client/requests/index.js +2 -0
  330. package/dist/api/resources/assets/index.d.ts +1 -0
  331. package/dist/api/resources/assets/index.js +22 -0
  332. package/dist/api/resources/assets/types/DeleteFolderResponse.d.ts +1 -0
  333. package/dist/api/resources/assets/types/DeleteFolderResponse.js +5 -0
  334. package/dist/api/resources/assets/types/DeleteRuleResponse.d.ts +1 -0
  335. package/dist/api/resources/assets/types/DeleteRuleResponse.js +5 -0
  336. package/dist/api/resources/assets/types/ListFlowsResponseItem.d.ts +1 -0
  337. package/dist/api/resources/assets/types/ListFlowsResponseItem.js +5 -0
  338. package/dist/api/resources/assets/types/ListFoldersResponseItem.d.ts +1 -0
  339. package/dist/api/resources/assets/types/ListFoldersResponseItem.js +5 -0
  340. package/dist/api/resources/assets/types/ListRulesResponseItem.d.ts +1 -0
  341. package/dist/api/resources/assets/types/ListRulesResponseItem.js +5 -0
  342. package/dist/api/resources/assets/types/ListRulesResponseItemFolder.d.ts +1 -0
  343. package/dist/api/resources/assets/types/ListRulesResponseItemFolder.js +5 -0
  344. package/dist/api/resources/assets/types/UpsertFolderResponse.d.ts +1 -0
  345. package/dist/api/resources/assets/types/UpsertFolderResponse.js +5 -0
  346. package/dist/api/resources/assets/types/UsageResponse.d.ts +1 -0
  347. package/dist/api/resources/assets/types/UsageResponse.js +5 -0
  348. package/dist/api/resources/assets/types/index.d.ts +1 -0
  349. package/dist/api/resources/assets/types/index.js +28 -0
  350. package/dist/api/resources/decisions/client/Client.d.ts +19 -0
  351. package/dist/api/resources/decisions/client/Client.js +146 -0
  352. package/dist/api/resources/decisions/client/index.d.ts +1 -0
  353. package/dist/api/resources/decisions/client/index.js +21 -0
  354. package/dist/api/resources/decisions/client/requests/QueryRequest.d.ts +1 -0
  355. package/dist/api/resources/decisions/client/requests/QueryRequest.js +5 -0
  356. package/dist/api/resources/decisions/client/requests/index.d.ts +1 -0
  357. package/dist/api/resources/decisions/client/requests/index.js +2 -0
  358. package/dist/api/resources/decisions/index.d.ts +1 -0
  359. package/dist/api/resources/decisions/index.js +22 -0
  360. package/dist/api/resources/decisions/types/QueryResponse.d.ts +1 -0
  361. package/dist/api/resources/decisions/types/QueryResponse.js +5 -0
  362. package/dist/api/resources/decisions/types/index.d.ts +1 -0
  363. package/dist/api/resources/decisions/types/index.js +21 -0
  364. package/dist/api/resources/flows/client/Client.d.ts +21 -0
  365. package/dist/api/resources/flows/client/Client.js +133 -0
  366. package/dist/api/resources/flows/client/index.d.ts +1 -0
  367. package/dist/api/resources/flows/client/index.js +2 -0
  368. package/dist/api/resources/flows/index.d.ts +1 -0
  369. package/dist/api/resources/flows/index.js +21 -0
  370. package/dist/api/resources/index.d.ts +8 -0
  371. package/dist/api/resources/index.js +54 -0
  372. package/dist/api/resources/rules/client/Client.d.ts +60 -0
  373. package/dist/api/resources/rules/client/Client.js +272 -0
  374. package/dist/api/resources/rules/client/index.d.ts +1 -0
  375. package/dist/api/resources/rules/client/index.js +2 -0
  376. package/dist/api/resources/rules/index.d.ts +1 -0
  377. package/dist/api/resources/rules/index.js +21 -0
  378. package/dist/api/resources/tests/client/Client.d.ts +82 -0
  379. package/dist/api/resources/tests/client/Client.js +439 -0
  380. package/dist/api/resources/tests/client/index.d.ts +1 -0
  381. package/dist/api/resources/tests/client/index.js +21 -0
  382. package/dist/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts +1 -0
  383. package/dist/api/resources/tests/client/requests/CreateFlowTestRequest.js +5 -0
  384. package/dist/api/resources/tests/client/requests/CreateRuleTestRequest.d.ts +1 -0
  385. package/dist/api/resources/tests/client/requests/CreateRuleTestRequest.js +5 -0
  386. package/dist/api/resources/tests/client/requests/index.d.ts +1 -0
  387. package/dist/api/resources/tests/client/requests/index.js +2 -0
  388. package/dist/api/resources/tests/index.d.ts +1 -0
  389. package/dist/api/resources/tests/index.js +22 -0
  390. package/dist/api/resources/tests/types/CreateFlowTestResponse.d.ts +1 -0
  391. package/dist/api/resources/tests/types/CreateFlowTestResponse.js +5 -0
  392. package/dist/api/resources/tests/types/CreateRuleTestResponse.d.ts +1 -0
  393. package/dist/api/resources/tests/types/CreateRuleTestResponse.js +5 -0
  394. package/dist/api/resources/tests/types/DeleteFlowTestResponse.d.ts +1 -0
  395. package/dist/api/resources/tests/types/DeleteFlowTestResponse.js +5 -0
  396. package/dist/api/resources/tests/types/DeleteRuleTestResponse.d.ts +1 -0
  397. package/dist/api/resources/tests/types/DeleteRuleTestResponse.js +5 -0
  398. package/dist/api/resources/tests/types/ListFlowTestsResponseItem.d.ts +1 -0
  399. package/dist/api/resources/tests/types/ListFlowTestsResponseItem.js +5 -0
  400. package/dist/api/resources/tests/types/ListRuleTestsResponseItem.d.ts +1 -0
  401. package/dist/api/resources/tests/types/ListRuleTestsResponseItem.js +5 -0
  402. package/dist/api/resources/tests/types/index.d.ts +1 -0
  403. package/dist/api/resources/tests/types/index.js +26 -0
  404. package/dist/api/resources/users/client/Client.d.ts +62 -0
  405. package/dist/api/resources/users/client/Client.js +269 -0
  406. package/dist/api/resources/users/client/index.d.ts +1 -0
  407. package/dist/api/resources/users/client/index.js +21 -0
  408. package/dist/api/resources/users/client/requests/CreateGroupRequest.d.ts +1 -0
  409. package/dist/api/resources/users/client/requests/CreateGroupRequest.js +5 -0
  410. package/dist/api/resources/users/client/requests/InviteRequest.d.ts +1 -0
  411. package/dist/api/resources/users/client/requests/InviteRequest.js +5 -0
  412. package/dist/api/resources/users/client/requests/index.d.ts +1 -0
  413. package/dist/api/resources/users/client/requests/index.js +2 -0
  414. package/dist/api/resources/users/index.d.ts +1 -0
  415. package/dist/api/resources/users/index.js +22 -0
  416. package/dist/api/resources/users/types/CreateGroupResponse.d.ts +1 -0
  417. package/dist/api/resources/users/types/CreateGroupResponse.js +5 -0
  418. package/dist/api/resources/users/types/InviteRequestRole.d.ts +5 -0
  419. package/dist/api/resources/users/types/InviteRequestRole.js +10 -0
  420. package/dist/api/resources/users/types/InviteResponse.d.ts +1 -0
  421. package/dist/api/resources/users/types/InviteResponse.js +5 -0
  422. package/dist/api/resources/users/types/ListGroupsResponseItem.d.ts +1 -0
  423. package/dist/api/resources/users/types/ListGroupsResponseItem.js +5 -0
  424. package/dist/api/resources/users/types/index.d.ts +1 -0
  425. package/dist/api/resources/users/types/index.js +24 -0
  426. package/dist/api/resources/values/client/Client.d.ts +37 -0
  427. package/dist/api/resources/values/client/Client.js +255 -0
  428. package/dist/api/resources/values/client/index.d.ts +1 -0
  429. package/dist/api/resources/values/client/index.js +21 -0
  430. package/dist/api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts +1 -0
  431. package/dist/api/resources/values/client/requests/DeleteDynamicValueRequest.js +5 -0
  432. package/dist/api/resources/values/client/requests/ListDynamicValuesRequest.d.ts +1 -0
  433. package/dist/api/resources/values/client/requests/ListDynamicValuesRequest.js +5 -0
  434. package/dist/api/resources/values/client/requests/index.d.ts +1 -0
  435. package/dist/api/resources/values/client/requests/index.js +2 -0
  436. package/dist/api/resources/values/index.d.ts +1 -0
  437. package/dist/api/resources/values/index.js +22 -0
  438. package/dist/api/resources/values/types/DeleteDynamicValueResponse.d.ts +1 -0
  439. package/dist/api/resources/values/types/DeleteDynamicValueResponse.js +5 -0
  440. package/dist/api/resources/values/types/ListDynamicValuesResponseItem.d.ts +1 -0
  441. package/dist/api/resources/values/types/ListDynamicValuesResponseItem.js +5 -0
  442. package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts +7 -0
  443. package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.js +12 -0
  444. package/dist/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +1 -0
  445. package/dist/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +5 -0
  446. package/dist/api/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +1 -0
  447. package/dist/api/resources/values/types/ListDynamicValuesResponseItemValue.js +5 -0
  448. package/dist/api/resources/values/types/UpdateRequestValue.d.ts +1 -0
  449. package/dist/api/resources/values/types/UpdateRequestValue.js +5 -0
  450. package/dist/api/resources/values/types/UpdateResponseItem.d.ts +1 -0
  451. package/dist/api/resources/values/types/UpdateResponseItem.js +5 -0
  452. package/dist/api/resources/values/types/UpdateResponseItemType.d.ts +7 -0
  453. package/dist/api/resources/values/types/UpdateResponseItemType.js +12 -0
  454. package/dist/api/resources/values/types/UpdateResponseItemValue.d.ts +1 -0
  455. package/dist/api/resources/values/types/UpdateResponseItemValue.js +5 -0
  456. package/dist/api/resources/values/types/index.d.ts +1 -0
  457. package/dist/api/resources/values/types/index.js +29 -0
  458. package/dist/api/types/BadRequestErrorBody.d.ts +1 -0
  459. package/dist/api/types/BadRequestErrorBody.js +5 -0
  460. package/dist/api/types/ForbiddenErrorBody.d.ts +1 -0
  461. package/dist/api/types/ForbiddenErrorBody.js +5 -0
  462. package/dist/api/types/InternalServerErrorBody.d.ts +1 -0
  463. package/dist/api/types/InternalServerErrorBody.js +5 -0
  464. package/dist/api/types/NotFoundErrorBody.d.ts +1 -0
  465. package/dist/api/types/NotFoundErrorBody.js +5 -0
  466. package/dist/api/types/index.d.ts +1 -0
  467. package/dist/api/types/index.js +24 -0
  468. package/dist/core/fetcher/APIResponse.d.ts +1 -0
  469. package/dist/core/fetcher/APIResponse.js +2 -0
  470. package/dist/core/fetcher/Fetcher.d.ts +3 -0
  471. package/dist/core/fetcher/Fetcher.js +161 -0
  472. package/dist/core/fetcher/Supplier.d.ts +4 -0
  473. package/dist/core/fetcher/Supplier.js +32 -0
  474. package/dist/core/fetcher/getHeader.d.ts +2 -0
  475. package/dist/core/fetcher/getHeader.js +12 -0
  476. package/dist/core/fetcher/index.d.ts +9 -0
  477. package/dist/core/fetcher/index.js +9 -0
  478. package/dist/core/index.d.ts +2 -0
  479. package/dist/core/index.js +39 -0
  480. package/dist/core/schemas/Schema.d.ts +19 -0
  481. package/dist/core/schemas/Schema.js +21 -0
  482. package/dist/core/schemas/builders/date/date.d.ts +4 -0
  483. package/dist/core/schemas/builders/date/date.js +63 -0
  484. package/dist/core/schemas/builders/date/index.d.ts +3 -0
  485. package/dist/core/schemas/builders/date/index.js +5 -0
  486. package/dist/core/schemas/builders/enum/enum.d.ts +3 -0
  487. package/dist/core/schemas/builders/enum/enum.js +39 -0
  488. package/dist/core/schemas/builders/enum/index.d.ts +3 -0
  489. package/dist/core/schemas/builders/enum/index.js +5 -0
  490. package/dist/core/schemas/builders/index.d.ts +1 -0
  491. package/dist/core/schemas/builders/index.js +33 -0
  492. package/dist/core/schemas/builders/lazy/index.d.ts +5 -0
  493. package/dist/core/schemas/builders/lazy/index.js +7 -0
  494. package/dist/core/schemas/builders/lazy/lazy.d.ts +13 -0
  495. package/dist/core/schemas/builders/lazy/lazy.js +46 -0
  496. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +8 -0
  497. package/dist/core/schemas/builders/lazy/lazyObject.js +31 -0
  498. package/dist/core/schemas/builders/list/index.d.ts +3 -0
  499. package/dist/core/schemas/builders/list/index.js +5 -0
  500. package/dist/core/schemas/builders/list/list.d.ts +7 -0
  501. package/dist/core/schemas/builders/list/list.js +78 -0
  502. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +3 -0
  503. package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
  504. package/dist/core/schemas/builders/literals/index.d.ts +5 -0
  505. package/dist/core/schemas/builders/literals/index.js +7 -0
  506. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +3 -0
  507. package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
  508. package/dist/core/schemas/builders/object/index.d.ts +9 -0
  509. package/dist/core/schemas/builders/object/index.js +11 -0
  510. package/dist/core/schemas/builders/object/object.d.ts +27 -0
  511. package/dist/core/schemas/builders/object/object.js +268 -0
  512. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +2 -0
  513. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  514. package/dist/core/schemas/builders/object/property.d.ts +7 -0
  515. package/dist/core/schemas/builders/object/property.js +16 -0
  516. package/dist/core/schemas/builders/object/types.d.ts +1 -0
  517. package/dist/core/schemas/builders/object/types.js +2 -0
  518. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +23 -0
  519. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +73 -0
  520. package/dist/core/schemas/builders/object-like/index.d.ts +4 -0
  521. package/dist/core/schemas/builders/object-like/index.js +6 -0
  522. package/dist/core/schemas/builders/object-like/types.d.ts +1 -0
  523. package/dist/core/schemas/builders/object-like/types.js +2 -0
  524. package/dist/core/schemas/builders/primitives/any.d.ts +3 -0
  525. package/dist/core/schemas/builders/primitives/any.js +6 -0
  526. package/dist/core/schemas/builders/primitives/boolean.d.ts +3 -0
  527. package/dist/core/schemas/builders/primitives/boolean.js +25 -0
  528. package/dist/core/schemas/builders/primitives/index.d.ts +6 -0
  529. package/dist/core/schemas/builders/primitives/index.js +13 -0
  530. package/dist/core/schemas/builders/primitives/number.d.ts +3 -0
  531. package/dist/core/schemas/builders/primitives/number.js +25 -0
  532. package/dist/core/schemas/builders/primitives/string.d.ts +3 -0
  533. package/dist/core/schemas/builders/primitives/string.js +25 -0
  534. package/dist/core/schemas/builders/primitives/unknown.d.ts +3 -0
  535. package/dist/core/schemas/builders/primitives/unknown.js +6 -0
  536. package/dist/core/schemas/builders/record/index.d.ts +3 -0
  537. package/dist/core/schemas/builders/record/index.js +5 -0
  538. package/dist/core/schemas/builders/record/record.d.ts +7 -0
  539. package/dist/core/schemas/builders/record/record.js +116 -0
  540. package/dist/core/schemas/builders/record/types.d.ts +1 -0
  541. package/dist/core/schemas/builders/record/types.js +2 -0
  542. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  543. package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
  544. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  545. package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
  546. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +54 -0
  547. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +95 -0
  548. package/dist/core/schemas/builders/schema-utils/index.d.ts +9 -0
  549. package/dist/core/schemas/builders/schema-utils/index.js +11 -0
  550. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  551. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  552. package/dist/core/schemas/builders/set/index.d.ts +3 -0
  553. package/dist/core/schemas/builders/set/index.js +5 -0
  554. package/dist/core/schemas/builders/set/set.d.ts +7 -0
  555. package/dist/core/schemas/builders/set/set.js +63 -0
  556. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +3 -0
  557. package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
  558. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +1 -0
  559. package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
  560. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +7 -0
  561. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +61 -0
  562. package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
  563. package/dist/core/schemas/builders/union/discriminant.js +10 -0
  564. package/dist/core/schemas/builders/union/index.d.ts +5 -0
  565. package/dist/core/schemas/builders/union/index.js +7 -0
  566. package/dist/core/schemas/builders/union/types.d.ts +1 -0
  567. package/dist/core/schemas/builders/union/types.js +2 -0
  568. package/dist/core/schemas/builders/union/union.d.ts +8 -0
  569. package/dist/core/schemas/builders/union/union.js +152 -0
  570. package/dist/core/schemas/index.d.ts +1 -0
  571. package/dist/core/schemas/index.js +21 -0
  572. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
  573. package/dist/core/schemas/utils/MaybePromise.js +2 -0
  574. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +1 -0
  575. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  576. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +7 -0
  577. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
  578. package/dist/core/schemas/utils/entries.d.ts +2 -0
  579. package/dist/core/schemas/utils/entries.js +7 -0
  580. package/dist/core/schemas/utils/filterObject.d.ts +2 -0
  581. package/dist/core/schemas/utils/filterObject.js +14 -0
  582. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +2 -0
  583. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  584. package/dist/core/schemas/utils/isPlainObject.d.ts +2 -0
  585. package/dist/core/schemas/utils/isPlainObject.js +18 -0
  586. package/dist/core/schemas/utils/keys.d.ts +2 -0
  587. package/dist/core/schemas/utils/keys.js +7 -0
  588. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  589. package/dist/core/schemas/utils/maybeSkipValidation.js +47 -0
  590. package/dist/core/schemas/utils/partition.d.ts +2 -0
  591. package/dist/core/schemas/utils/partition.js +16 -0
  592. package/dist/errors/RulebricksApiError.d.ts +10 -0
  593. package/dist/errors/RulebricksApiError.js +32 -0
  594. package/dist/errors/RulebricksApiTimeoutError.d.ts +4 -0
  595. package/dist/errors/RulebricksApiTimeoutError.js +13 -0
  596. package/dist/errors/index.d.ts +5 -0
  597. package/dist/errors/index.js +7 -0
  598. package/dist/forge/index.d.ts +4 -0
  599. package/dist/forge/index.js +31 -0
  600. package/dist/forge/operators.d.ts +136 -0
  601. package/dist/forge/operators.js +938 -0
  602. package/dist/forge/rule.d.ts +129 -0
  603. package/dist/forge/rule.js +702 -0
  604. package/dist/forge/types.d.ts +53 -0
  605. package/dist/forge/types.js +34 -0
  606. package/dist/forge/values.d.ts +21 -0
  607. package/dist/forge/values.js +88 -0
  608. package/dist/index.d.ts +15 -0
  609. package/dist/index.js +113 -0
  610. package/dist/serialization/index.d.ts +1 -0
  611. package/dist/serialization/index.js +22 -0
  612. package/dist/serialization/resources/assets/client/exportRule.d.ts +2 -0
  613. package/dist/serialization/resources/assets/client/exportRule.js +37 -0
  614. package/dist/serialization/resources/assets/client/importRule.d.ts +2 -0
  615. package/dist/serialization/resources/assets/client/importRule.js +37 -0
  616. package/dist/serialization/resources/assets/client/index.d.ts +6 -0
  617. package/dist/serialization/resources/assets/client/index.js +43 -0
  618. package/dist/serialization/resources/assets/client/listFlows.d.ts +2 -0
  619. package/dist/serialization/resources/assets/client/listFlows.js +56 -0
  620. package/dist/serialization/resources/assets/client/listFolders.d.ts +2 -0
  621. package/dist/serialization/resources/assets/client/listFolders.js +56 -0
  622. package/dist/serialization/resources/assets/client/listRules.d.ts +2 -0
  623. package/dist/serialization/resources/assets/client/listRules.js +56 -0
  624. package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +2 -0
  625. package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.js +39 -0
  626. package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +2 -0
  627. package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.js +39 -0
  628. package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +2 -0
  629. package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.js +39 -0
  630. package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.d.ts +2 -0
  631. package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.js +41 -0
  632. package/dist/serialization/resources/assets/client/requests/index.d.ts +9 -0
  633. package/dist/serialization/resources/assets/client/requests/index.js +11 -0
  634. package/dist/serialization/resources/assets/index.d.ts +1 -0
  635. package/dist/serialization/resources/assets/index.js +22 -0
  636. package/dist/serialization/resources/assets/types/DeleteFolderResponse.d.ts +2 -0
  637. package/dist/serialization/resources/assets/types/DeleteFolderResponse.js +42 -0
  638. package/dist/serialization/resources/assets/types/DeleteRuleResponse.d.ts +2 -0
  639. package/dist/serialization/resources/assets/types/DeleteRuleResponse.js +39 -0
  640. package/dist/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +2 -0
  641. package/dist/serialization/resources/assets/types/ListFlowsResponseItem.js +44 -0
  642. package/dist/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +2 -0
  643. package/dist/serialization/resources/assets/types/ListFoldersResponseItem.js +42 -0
  644. package/dist/serialization/resources/assets/types/ListRulesResponseItem.d.ts +2 -0
  645. package/dist/serialization/resources/assets/types/ListRulesResponseItem.js +67 -0
  646. package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +2 -0
  647. package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.js +42 -0
  648. package/dist/serialization/resources/assets/types/UpsertFolderResponse.d.ts +2 -0
  649. package/dist/serialization/resources/assets/types/UpsertFolderResponse.js +42 -0
  650. package/dist/serialization/resources/assets/types/UsageResponse.d.ts +2 -0
  651. package/dist/serialization/resources/assets/types/UsageResponse.js +44 -0
  652. package/dist/serialization/resources/assets/types/index.d.ts +1 -0
  653. package/dist/serialization/resources/assets/types/index.js +28 -0
  654. package/dist/serialization/resources/decisions/index.d.ts +1 -0
  655. package/dist/serialization/resources/decisions/index.js +21 -0
  656. package/dist/serialization/resources/decisions/types/QueryResponse.d.ts +2 -0
  657. package/dist/serialization/resources/decisions/types/QueryResponse.js +42 -0
  658. package/dist/serialization/resources/decisions/types/index.d.ts +1 -0
  659. package/dist/serialization/resources/decisions/types/index.js +21 -0
  660. package/dist/serialization/resources/flows/client/execute.d.ts +3 -0
  661. package/dist/serialization/resources/flows/client/execute.js +38 -0
  662. package/dist/serialization/resources/flows/client/index.d.ts +2 -0
  663. package/dist/serialization/resources/flows/client/index.js +33 -0
  664. package/dist/serialization/resources/flows/index.d.ts +1 -0
  665. package/dist/serialization/resources/flows/index.js +21 -0
  666. package/dist/serialization/resources/index.d.ts +8 -0
  667. package/dist/serialization/resources/index.js +52 -0
  668. package/dist/serialization/resources/rules/client/bulkSolve.d.ts +3 -0
  669. package/dist/serialization/resources/rules/client/bulkSolve.js +38 -0
  670. package/dist/serialization/resources/rules/client/index.d.ts +4 -0
  671. package/dist/serialization/resources/rules/client/index.js +35 -0
  672. package/dist/serialization/resources/rules/client/parallelSolve.d.ts +3 -0
  673. package/dist/serialization/resources/rules/client/parallelSolve.js +38 -0
  674. package/dist/serialization/resources/rules/client/solve.d.ts +3 -0
  675. package/dist/serialization/resources/rules/client/solve.js +38 -0
  676. package/dist/serialization/resources/rules/index.d.ts +1 -0
  677. package/dist/serialization/resources/rules/index.js +21 -0
  678. package/dist/serialization/resources/tests/client/index.d.ts +3 -0
  679. package/dist/serialization/resources/tests/client/index.js +40 -0
  680. package/dist/serialization/resources/tests/client/listFlowTests.d.ts +2 -0
  681. package/dist/serialization/resources/tests/client/listFlowTests.js +56 -0
  682. package/dist/serialization/resources/tests/client/listRuleTests.d.ts +2 -0
  683. package/dist/serialization/resources/tests/client/listRuleTests.js +56 -0
  684. package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +2 -0
  685. package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +42 -0
  686. package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +2 -0
  687. package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +42 -0
  688. package/dist/serialization/resources/tests/client/requests/index.d.ts +5 -0
  689. package/dist/serialization/resources/tests/client/requests/index.js +7 -0
  690. package/dist/serialization/resources/tests/index.d.ts +1 -0
  691. package/dist/serialization/resources/tests/index.js +22 -0
  692. package/dist/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +2 -0
  693. package/dist/serialization/resources/tests/types/CreateFlowTestResponse.js +47 -0
  694. package/dist/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +2 -0
  695. package/dist/serialization/resources/tests/types/CreateRuleTestResponse.js +47 -0
  696. package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +2 -0
  697. package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.js +47 -0
  698. package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +2 -0
  699. package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.js +47 -0
  700. package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +2 -0
  701. package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.js +47 -0
  702. package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +2 -0
  703. package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.js +47 -0
  704. package/dist/serialization/resources/tests/types/index.d.ts +1 -0
  705. package/dist/serialization/resources/tests/types/index.js +26 -0
  706. package/dist/serialization/resources/users/client/index.d.ts +2 -0
  707. package/dist/serialization/resources/users/client/index.js +39 -0
  708. package/dist/serialization/resources/users/client/listGroups.d.ts +2 -0
  709. package/dist/serialization/resources/users/client/listGroups.js +56 -0
  710. package/dist/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +2 -0
  711. package/dist/serialization/resources/users/client/requests/CreateGroupRequest.js +40 -0
  712. package/dist/serialization/resources/users/client/requests/InviteRequest.d.ts +2 -0
  713. package/dist/serialization/resources/users/client/requests/InviteRequest.js +60 -0
  714. package/dist/serialization/resources/users/client/requests/index.d.ts +5 -0
  715. package/dist/serialization/resources/users/client/requests/index.js +7 -0
  716. package/dist/serialization/resources/users/index.d.ts +1 -0
  717. package/dist/serialization/resources/users/index.js +22 -0
  718. package/dist/serialization/resources/users/types/CreateGroupResponse.d.ts +2 -0
  719. package/dist/serialization/resources/users/types/CreateGroupResponse.js +42 -0
  720. package/dist/serialization/resources/users/types/InviteRequestRole.d.ts +2 -0
  721. package/dist/serialization/resources/users/types/InviteRequestRole.js +37 -0
  722. package/dist/serialization/resources/users/types/InviteResponse.d.ts +2 -0
  723. package/dist/serialization/resources/users/types/InviteResponse.js +39 -0
  724. package/dist/serialization/resources/users/types/ListGroupsResponseItem.d.ts +2 -0
  725. package/dist/serialization/resources/users/types/ListGroupsResponseItem.js +42 -0
  726. package/dist/serialization/resources/users/types/index.d.ts +1 -0
  727. package/dist/serialization/resources/users/types/index.js +24 -0
  728. package/dist/serialization/resources/values/client/index.d.ts +3 -0
  729. package/dist/serialization/resources/values/client/index.js +34 -0
  730. package/dist/serialization/resources/values/client/listDynamicValues.d.ts +2 -0
  731. package/dist/serialization/resources/values/client/listDynamicValues.js +56 -0
  732. package/dist/serialization/resources/values/client/update.d.ts +3 -0
  733. package/dist/serialization/resources/values/client/update.js +57 -0
  734. package/dist/serialization/resources/values/index.d.ts +1 -0
  735. package/dist/serialization/resources/values/index.js +22 -0
  736. package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +2 -0
  737. package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.js +39 -0
  738. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +2 -0
  739. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.js +66 -0
  740. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +2 -0
  741. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +37 -0
  742. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +2 -0
  743. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +44 -0
  744. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +2 -0
  745. package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js +42 -0
  746. package/dist/serialization/resources/values/types/UpdateRequestValue.d.ts +2 -0
  747. package/dist/serialization/resources/values/types/UpdateRequestValue.js +42 -0
  748. package/dist/serialization/resources/values/types/UpdateResponseItem.d.ts +2 -0
  749. package/dist/serialization/resources/values/types/UpdateResponseItem.js +61 -0
  750. package/dist/serialization/resources/values/types/UpdateResponseItemType.d.ts +2 -0
  751. package/dist/serialization/resources/values/types/UpdateResponseItemType.js +37 -0
  752. package/dist/serialization/resources/values/types/UpdateResponseItemValue.d.ts +2 -0
  753. package/dist/serialization/resources/values/types/UpdateResponseItemValue.js +42 -0
  754. package/dist/serialization/resources/values/types/index.d.ts +1 -0
  755. package/dist/serialization/resources/values/types/index.js +29 -0
  756. package/dist/serialization/types/BadRequestErrorBody.d.ts +2 -0
  757. package/dist/serialization/types/BadRequestErrorBody.js +39 -0
  758. package/dist/serialization/types/ForbiddenErrorBody.d.ts +2 -0
  759. package/dist/serialization/types/ForbiddenErrorBody.js +39 -0
  760. package/dist/serialization/types/InternalServerErrorBody.d.ts +2 -0
  761. package/dist/serialization/types/InternalServerErrorBody.js +39 -0
  762. package/dist/serialization/types/NotFoundErrorBody.d.ts +2 -0
  763. package/dist/serialization/types/NotFoundErrorBody.js +39 -0
  764. package/dist/serialization/types/index.d.ts +1 -0
  765. package/dist/serialization/types/index.js +24 -0
  766. package/errors/RulebricksApiError.d.ts +10 -0
  767. package/errors/RulebricksApiError.js +32 -0
  768. package/errors/RulebricksApiTimeoutError.d.ts +4 -0
  769. package/errors/RulebricksApiTimeoutError.js +13 -0
  770. package/errors/index.d.ts +5 -0
  771. package/errors/index.js +7 -0
  772. package/forge/index.d.ts +4 -0
  773. package/forge/index.js +31 -0
  774. package/forge/operators.d.ts +136 -0
  775. package/forge/operators.js +938 -0
  776. package/forge/rule.d.ts +129 -0
  777. package/forge/rule.js +702 -0
  778. package/forge/types.d.ts +53 -0
  779. package/forge/types.js +34 -0
  780. package/forge/values.d.ts +21 -0
  781. package/forge/values.js +88 -0
  782. package/index.d.ts +15 -0
  783. package/index.js +113 -0
  784. package/jest.config.js +5 -0
  785. package/package.json +43 -0
  786. package/serialization/index.d.ts +1 -0
  787. package/serialization/index.js +22 -0
  788. package/serialization/resources/assets/client/exportRule.d.ts +2 -0
  789. package/serialization/resources/assets/client/exportRule.js +37 -0
  790. package/serialization/resources/assets/client/importRule.d.ts +2 -0
  791. package/serialization/resources/assets/client/importRule.js +37 -0
  792. package/serialization/resources/assets/client/index.d.ts +6 -0
  793. package/serialization/resources/assets/client/index.js +43 -0
  794. package/serialization/resources/assets/client/listFlows.d.ts +2 -0
  795. package/serialization/resources/assets/client/listFlows.js +56 -0
  796. package/serialization/resources/assets/client/listFolders.d.ts +2 -0
  797. package/serialization/resources/assets/client/listFolders.js +56 -0
  798. package/serialization/resources/assets/client/listRules.d.ts +2 -0
  799. package/serialization/resources/assets/client/listRules.js +56 -0
  800. package/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +2 -0
  801. package/serialization/resources/assets/client/requests/DeleteFolderRequest.js +39 -0
  802. package/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +2 -0
  803. package/serialization/resources/assets/client/requests/DeleteRuleRequest.js +39 -0
  804. package/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +2 -0
  805. package/serialization/resources/assets/client/requests/ImportRuleRequest.js +39 -0
  806. package/serialization/resources/assets/client/requests/UpsertFolderRequest.d.ts +2 -0
  807. package/serialization/resources/assets/client/requests/UpsertFolderRequest.js +41 -0
  808. package/serialization/resources/assets/client/requests/index.d.ts +9 -0
  809. package/serialization/resources/assets/client/requests/index.js +11 -0
  810. package/serialization/resources/assets/index.d.ts +1 -0
  811. package/serialization/resources/assets/index.js +22 -0
  812. package/serialization/resources/assets/types/DeleteFolderResponse.d.ts +2 -0
  813. package/serialization/resources/assets/types/DeleteFolderResponse.js +42 -0
  814. package/serialization/resources/assets/types/DeleteRuleResponse.d.ts +2 -0
  815. package/serialization/resources/assets/types/DeleteRuleResponse.js +39 -0
  816. package/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +2 -0
  817. package/serialization/resources/assets/types/ListFlowsResponseItem.js +44 -0
  818. package/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +2 -0
  819. package/serialization/resources/assets/types/ListFoldersResponseItem.js +42 -0
  820. package/serialization/resources/assets/types/ListRulesResponseItem.d.ts +2 -0
  821. package/serialization/resources/assets/types/ListRulesResponseItem.js +67 -0
  822. package/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +2 -0
  823. package/serialization/resources/assets/types/ListRulesResponseItemFolder.js +42 -0
  824. package/serialization/resources/assets/types/UpsertFolderResponse.d.ts +2 -0
  825. package/serialization/resources/assets/types/UpsertFolderResponse.js +42 -0
  826. package/serialization/resources/assets/types/UsageResponse.d.ts +2 -0
  827. package/serialization/resources/assets/types/UsageResponse.js +44 -0
  828. package/serialization/resources/assets/types/index.d.ts +1 -0
  829. package/serialization/resources/assets/types/index.js +28 -0
  830. package/serialization/resources/decisions/index.d.ts +1 -0
  831. package/serialization/resources/decisions/index.js +21 -0
  832. package/serialization/resources/decisions/types/QueryResponse.d.ts +2 -0
  833. package/serialization/resources/decisions/types/QueryResponse.js +42 -0
  834. package/serialization/resources/decisions/types/index.d.ts +1 -0
  835. package/serialization/resources/decisions/types/index.js +21 -0
  836. package/serialization/resources/flows/client/execute.d.ts +3 -0
  837. package/serialization/resources/flows/client/execute.js +38 -0
  838. package/serialization/resources/flows/client/index.d.ts +2 -0
  839. package/serialization/resources/flows/client/index.js +33 -0
  840. package/serialization/resources/flows/index.d.ts +1 -0
  841. package/serialization/resources/flows/index.js +21 -0
  842. package/serialization/resources/index.d.ts +8 -0
  843. package/serialization/resources/index.js +52 -0
  844. package/serialization/resources/rules/client/bulkSolve.d.ts +3 -0
  845. package/serialization/resources/rules/client/bulkSolve.js +38 -0
  846. package/serialization/resources/rules/client/index.d.ts +4 -0
  847. package/serialization/resources/rules/client/index.js +35 -0
  848. package/serialization/resources/rules/client/parallelSolve.d.ts +3 -0
  849. package/serialization/resources/rules/client/parallelSolve.js +38 -0
  850. package/serialization/resources/rules/client/solve.d.ts +3 -0
  851. package/serialization/resources/rules/client/solve.js +38 -0
  852. package/serialization/resources/rules/index.d.ts +1 -0
  853. package/serialization/resources/rules/index.js +21 -0
  854. package/serialization/resources/tests/client/index.d.ts +3 -0
  855. package/serialization/resources/tests/client/index.js +40 -0
  856. package/serialization/resources/tests/client/listFlowTests.d.ts +2 -0
  857. package/serialization/resources/tests/client/listFlowTests.js +56 -0
  858. package/serialization/resources/tests/client/listRuleTests.d.ts +2 -0
  859. package/serialization/resources/tests/client/listRuleTests.js +56 -0
  860. package/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +2 -0
  861. package/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +42 -0
  862. package/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +2 -0
  863. package/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +42 -0
  864. package/serialization/resources/tests/client/requests/index.d.ts +5 -0
  865. package/serialization/resources/tests/client/requests/index.js +7 -0
  866. package/serialization/resources/tests/index.d.ts +1 -0
  867. package/serialization/resources/tests/index.js +22 -0
  868. package/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +2 -0
  869. package/serialization/resources/tests/types/CreateFlowTestResponse.js +47 -0
  870. package/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +2 -0
  871. package/serialization/resources/tests/types/CreateRuleTestResponse.js +47 -0
  872. package/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +2 -0
  873. package/serialization/resources/tests/types/DeleteFlowTestResponse.js +47 -0
  874. package/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +2 -0
  875. package/serialization/resources/tests/types/DeleteRuleTestResponse.js +47 -0
  876. package/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +2 -0
  877. package/serialization/resources/tests/types/ListFlowTestsResponseItem.js +47 -0
  878. package/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +2 -0
  879. package/serialization/resources/tests/types/ListRuleTestsResponseItem.js +47 -0
  880. package/serialization/resources/tests/types/index.d.ts +1 -0
  881. package/serialization/resources/tests/types/index.js +26 -0
  882. package/serialization/resources/users/client/index.d.ts +2 -0
  883. package/serialization/resources/users/client/index.js +39 -0
  884. package/serialization/resources/users/client/listGroups.d.ts +2 -0
  885. package/serialization/resources/users/client/listGroups.js +56 -0
  886. package/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +2 -0
  887. package/serialization/resources/users/client/requests/CreateGroupRequest.js +40 -0
  888. package/serialization/resources/users/client/requests/InviteRequest.d.ts +2 -0
  889. package/serialization/resources/users/client/requests/InviteRequest.js +60 -0
  890. package/serialization/resources/users/client/requests/index.d.ts +5 -0
  891. package/serialization/resources/users/client/requests/index.js +7 -0
  892. package/serialization/resources/users/index.d.ts +1 -0
  893. package/serialization/resources/users/index.js +22 -0
  894. package/serialization/resources/users/types/CreateGroupResponse.d.ts +2 -0
  895. package/serialization/resources/users/types/CreateGroupResponse.js +42 -0
  896. package/serialization/resources/users/types/InviteRequestRole.d.ts +2 -0
  897. package/serialization/resources/users/types/InviteRequestRole.js +37 -0
  898. package/serialization/resources/users/types/InviteResponse.d.ts +2 -0
  899. package/serialization/resources/users/types/InviteResponse.js +39 -0
  900. package/serialization/resources/users/types/ListGroupsResponseItem.d.ts +2 -0
  901. package/serialization/resources/users/types/ListGroupsResponseItem.js +42 -0
  902. package/serialization/resources/users/types/index.d.ts +1 -0
  903. package/serialization/resources/users/types/index.js +24 -0
  904. package/serialization/resources/values/client/index.d.ts +3 -0
  905. package/serialization/resources/values/client/index.js +34 -0
  906. package/serialization/resources/values/client/listDynamicValues.d.ts +2 -0
  907. package/serialization/resources/values/client/listDynamicValues.js +56 -0
  908. package/serialization/resources/values/client/update.d.ts +3 -0
  909. package/serialization/resources/values/client/update.js +57 -0
  910. package/serialization/resources/values/index.d.ts +1 -0
  911. package/serialization/resources/values/index.js +22 -0
  912. package/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +2 -0
  913. package/serialization/resources/values/types/DeleteDynamicValueResponse.js +39 -0
  914. package/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +2 -0
  915. package/serialization/resources/values/types/ListDynamicValuesResponseItem.js +66 -0
  916. package/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +2 -0
  917. package/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +37 -0
  918. package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +2 -0
  919. package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +44 -0
  920. package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +2 -0
  921. package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js +42 -0
  922. package/serialization/resources/values/types/UpdateRequestValue.d.ts +2 -0
  923. package/serialization/resources/values/types/UpdateRequestValue.js +42 -0
  924. package/serialization/resources/values/types/UpdateResponseItem.d.ts +2 -0
  925. package/serialization/resources/values/types/UpdateResponseItem.js +61 -0
  926. package/serialization/resources/values/types/UpdateResponseItemType.d.ts +2 -0
  927. package/serialization/resources/values/types/UpdateResponseItemType.js +37 -0
  928. package/serialization/resources/values/types/UpdateResponseItemValue.d.ts +2 -0
  929. package/serialization/resources/values/types/UpdateResponseItemValue.js +42 -0
  930. package/serialization/resources/values/types/index.d.ts +1 -0
  931. package/serialization/resources/values/types/index.js +29 -0
  932. package/serialization/types/BadRequestErrorBody.d.ts +2 -0
  933. package/serialization/types/BadRequestErrorBody.js +39 -0
  934. package/serialization/types/ForbiddenErrorBody.d.ts +2 -0
  935. package/serialization/types/ForbiddenErrorBody.js +39 -0
  936. package/serialization/types/InternalServerErrorBody.d.ts +2 -0
  937. package/serialization/types/InternalServerErrorBody.js +39 -0
  938. package/serialization/types/NotFoundErrorBody.d.ts +2 -0
  939. package/serialization/types/NotFoundErrorBody.js +39 -0
  940. package/serialization/types/index.d.ts +1 -0
  941. package/serialization/types/index.js +24 -0
  942. package/tests/client.test.ts +11 -0
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.any = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
+ exports.any = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.ANY, (value) => ({ ok: true, value }));
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var boolean: () => Schema_1.Schema<boolean, boolean>;
3
+ import Schema_1 = require("../../Schema");
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.boolean = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
7
+ exports.boolean = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.BOOLEAN, (value, { breadcrumbsPrefix = [] } = {}) => {
8
+ if (typeof value === "boolean") {
9
+ return {
10
+ ok: true,
11
+ value,
12
+ };
13
+ }
14
+ else {
15
+ return {
16
+ ok: false,
17
+ errors: [
18
+ {
19
+ path: breadcrumbsPrefix,
20
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "boolean"),
21
+ },
22
+ ],
23
+ };
24
+ }
25
+ });
@@ -0,0 +1,6 @@
1
+ export var __esModule: boolean;
2
+ export var any: () => import("../..").Schema<any, any>;
3
+ export var boolean: () => import("../..").Schema<boolean, boolean>;
4
+ export var number: () => import("../..").Schema<number, number>;
5
+ export var string: () => import("../..").Schema<string, string>;
6
+ export var unknown: () => import("../..").Schema<unknown, unknown>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unknown = exports.string = exports.number = exports.boolean = exports.any = void 0;
4
+ var any_1 = require("./any");
5
+ Object.defineProperty(exports, "any", { enumerable: true, get: function () { return any_1.any; } });
6
+ var boolean_1 = require("./boolean");
7
+ Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return boolean_1.boolean; } });
8
+ var number_1 = require("./number");
9
+ Object.defineProperty(exports, "number", { enumerable: true, get: function () { return number_1.number; } });
10
+ var string_1 = require("./string");
11
+ Object.defineProperty(exports, "string", { enumerable: true, get: function () { return string_1.string; } });
12
+ var unknown_1 = require("./unknown");
13
+ Object.defineProperty(exports, "unknown", { enumerable: true, get: function () { return unknown_1.unknown; } });
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var number: () => Schema_1.Schema<number, number>;
3
+ import Schema_1 = require("../../Schema");
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.number = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
7
+ exports.number = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.NUMBER, (value, { breadcrumbsPrefix = [] } = {}) => {
8
+ if (typeof value === "number") {
9
+ return {
10
+ ok: true,
11
+ value,
12
+ };
13
+ }
14
+ else {
15
+ return {
16
+ ok: false,
17
+ errors: [
18
+ {
19
+ path: breadcrumbsPrefix,
20
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "number"),
21
+ },
22
+ ],
23
+ };
24
+ }
25
+ });
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var string: () => Schema_1.Schema<string, string>;
3
+ import Schema_1 = require("../../Schema");
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.string = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
7
+ exports.string = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.STRING, (value, { breadcrumbsPrefix = [] } = {}) => {
8
+ if (typeof value === "string") {
9
+ return {
10
+ ok: true,
11
+ value,
12
+ };
13
+ }
14
+ else {
15
+ return {
16
+ ok: false,
17
+ errors: [
18
+ {
19
+ path: breadcrumbsPrefix,
20
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "string"),
21
+ },
22
+ ],
23
+ };
24
+ }
25
+ });
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var unknown: () => Schema_1.Schema<unknown, unknown>;
3
+ import Schema_1 = require("../../Schema");
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unknown = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
+ exports.unknown = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.UNKNOWN, (value) => ({ ok: true, value }));
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var record: typeof record_1.record;
3
+ import record_1 = require("./record");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.record = void 0;
4
+ var record_1 = require("./record");
5
+ Object.defineProperty(exports, "record", { enumerable: true, get: function () { return record_1.record; } });
@@ -0,0 +1,7 @@
1
+ export var __esModule: boolean;
2
+ export function record(keySchema: any, valueSchema: any): {
3
+ parse: (raw: any, opts: any) => any;
4
+ json: (parsed: any, opts: any) => any;
5
+ getType: () => "record";
6
+ } & schema_utils_1.SchemaUtils<any, any>;
7
+ import schema_utils_1 = require("../schema-utils");
@@ -0,0 +1,116 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.record = void 0;
23
+ const Schema_1 = require("../../Schema");
24
+ const entries_1 = require("../../utils/entries");
25
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
26
+ const isPlainObject_1 = require("../../utils/isPlainObject");
27
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
28
+ const schema_utils_1 = require("../schema-utils");
29
+ function record(keySchema, valueSchema) {
30
+ const baseSchema = {
31
+ parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
32
+ return validateAndTransformRecord({
33
+ value: raw,
34
+ isKeyNumeric: (yield keySchema.getType()) === Schema_1.SchemaType.NUMBER,
35
+ transformKey: (key) => {
36
+ var _a;
37
+ return keySchema.parse(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
38
+ },
39
+ transformValue: (value, key) => {
40
+ var _a;
41
+ return valueSchema.parse(value, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key}`] }));
42
+ },
43
+ breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
44
+ });
45
+ }),
46
+ json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
47
+ return validateAndTransformRecord({
48
+ value: parsed,
49
+ isKeyNumeric: (yield keySchema.getType()) === Schema_1.SchemaType.NUMBER,
50
+ transformKey: (key) => {
51
+ var _a;
52
+ return keySchema.json(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
53
+ },
54
+ transformValue: (value, key) => {
55
+ var _a;
56
+ return valueSchema.json(value, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key}`] }));
57
+ },
58
+ breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
59
+ });
60
+ }),
61
+ getType: () => Schema_1.SchemaType.RECORD,
62
+ };
63
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
64
+ }
65
+ exports.record = record;
66
+ function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [], }) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ if (!(0, isPlainObject_1.isPlainObject)(value)) {
69
+ return {
70
+ ok: false,
71
+ errors: [
72
+ {
73
+ path: breadcrumbsPrefix,
74
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
75
+ },
76
+ ],
77
+ };
78
+ }
79
+ return (0, entries_1.entries)(value).reduce((accPromise, [stringKey, value]) => __awaiter(this, void 0, void 0, function* () {
80
+ // skip nullish keys
81
+ if (value == null) {
82
+ return accPromise;
83
+ }
84
+ const acc = yield accPromise;
85
+ let key = stringKey;
86
+ if (isKeyNumeric) {
87
+ const numberKey = stringKey.length > 0 ? Number(stringKey) : NaN;
88
+ if (!isNaN(numberKey)) {
89
+ key = numberKey;
90
+ }
91
+ }
92
+ const transformedKey = yield transformKey(key);
93
+ const transformedValue = yield transformValue(value, key);
94
+ if (acc.ok && transformedKey.ok && transformedValue.ok) {
95
+ return {
96
+ ok: true,
97
+ value: Object.assign(Object.assign({}, acc.value), { [transformedKey.value]: transformedValue.value }),
98
+ };
99
+ }
100
+ const errors = [];
101
+ if (!acc.ok) {
102
+ errors.push(...acc.errors);
103
+ }
104
+ if (!transformedKey.ok) {
105
+ errors.push(...transformedKey.errors);
106
+ }
107
+ if (!transformedValue.ok) {
108
+ errors.push(...transformedValue.errors);
109
+ }
110
+ return {
111
+ ok: false,
112
+ errors,
113
+ };
114
+ }), Promise.resolve({ ok: true, value: {} }));
115
+ });
116
+ }
@@ -0,0 +1 @@
1
+ export var __esModule: boolean;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export var __esModule: boolean;
2
+ export class JsonError extends Error {
3
+ constructor(errors: any);
4
+ errors: any;
5
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JsonError = void 0;
4
+ const stringifyValidationErrors_1 = require("./stringifyValidationErrors");
5
+ class JsonError extends Error {
6
+ constructor(errors) {
7
+ super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));
8
+ this.errors = errors;
9
+ Object.setPrototypeOf(this, JsonError.prototype);
10
+ }
11
+ }
12
+ exports.JsonError = JsonError;
@@ -0,0 +1,5 @@
1
+ export var __esModule: boolean;
2
+ export class ParseError extends Error {
3
+ constructor(errors: any);
4
+ errors: any;
5
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParseError = void 0;
4
+ const stringifyValidationErrors_1 = require("./stringifyValidationErrors");
5
+ class ParseError extends Error {
6
+ constructor(errors) {
7
+ super(errors.map(stringifyValidationErrors_1.stringifyValidationError).join("; "));
8
+ this.errors = errors;
9
+ Object.setPrototypeOf(this, ParseError.prototype);
10
+ }
11
+ }
12
+ exports.ParseError = ParseError;
@@ -0,0 +1,54 @@
1
+ export var __esModule: boolean;
2
+ export function getSchemaUtils(schema: any): {
3
+ optional: () => {
4
+ parse: (raw: any, opts: any) => any;
5
+ json: (parsed: any, opts: any) => any;
6
+ getType: () => "optional";
7
+ } & any;
8
+ transform: (transformer: any) => {
9
+ parse: (raw: any, opts: any) => any;
10
+ json: (transformed: any, opts: any) => any;
11
+ getType: () => any;
12
+ } & any;
13
+ parseOrThrow: (raw: any, opts: any) => any;
14
+ jsonOrThrow: (parsed: any, opts: any) => any;
15
+ };
16
+ /**
17
+ * schema utils are defined in one file to resolve issues with circular imports
18
+ */
19
+ export function optional(schema: any): {
20
+ parse: (raw: any, opts: any) => any;
21
+ json: (parsed: any, opts: any) => any;
22
+ getType: () => "optional";
23
+ } & {
24
+ optional: () => {
25
+ parse: (raw: any, opts: any) => any;
26
+ json: (parsed: any, opts: any) => any;
27
+ getType: () => "optional";
28
+ } & any;
29
+ transform: (transformer: any) => {
30
+ parse: (raw: any, opts: any) => any;
31
+ json: (transformed: any, opts: any) => any;
32
+ getType: () => any;
33
+ } & any;
34
+ parseOrThrow: (raw: any, opts: any) => any;
35
+ jsonOrThrow: (parsed: any, opts: any) => any;
36
+ };
37
+ export function transform(schema: any, transformer: any): {
38
+ parse: (raw: any, opts: any) => any;
39
+ json: (transformed: any, opts: any) => any;
40
+ getType: () => any;
41
+ } & {
42
+ optional: () => {
43
+ parse: (raw: any, opts: any) => any;
44
+ json: (parsed: any, opts: any) => any;
45
+ getType: () => "optional";
46
+ } & any;
47
+ transform: (transformer: any) => {
48
+ parse: (raw: any, opts: any) => any;
49
+ json: (transformed: any, opts: any) => any;
50
+ getType: () => any;
51
+ } & any;
52
+ parseOrThrow: (raw: any, opts: any) => any;
53
+ jsonOrThrow: (parsed: any, opts: any) => any;
54
+ };
@@ -0,0 +1,95 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.transform = exports.optional = exports.getSchemaUtils = void 0;
23
+ const Schema_1 = require("../../Schema");
24
+ const JsonError_1 = require("./JsonError");
25
+ const ParseError_1 = require("./ParseError");
26
+ function getSchemaUtils(schema) {
27
+ return {
28
+ optional: () => optional(schema),
29
+ transform: (transformer) => transform(schema, transformer),
30
+ parseOrThrow: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
31
+ const parsed = yield schema.parse(raw, opts);
32
+ if (parsed.ok) {
33
+ return parsed.value;
34
+ }
35
+ throw new ParseError_1.ParseError(parsed.errors);
36
+ }),
37
+ jsonOrThrow: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
38
+ const raw = yield schema.json(parsed, opts);
39
+ if (raw.ok) {
40
+ return raw.value;
41
+ }
42
+ throw new JsonError_1.JsonError(raw.errors);
43
+ }),
44
+ };
45
+ }
46
+ exports.getSchemaUtils = getSchemaUtils;
47
+ /**
48
+ * schema utils are defined in one file to resolve issues with circular imports
49
+ */
50
+ function optional(schema) {
51
+ const baseSchema = {
52
+ parse: (raw, opts) => {
53
+ if (raw == null) {
54
+ return {
55
+ ok: true,
56
+ value: undefined,
57
+ };
58
+ }
59
+ return schema.parse(raw, opts);
60
+ },
61
+ json: (parsed, opts) => {
62
+ if (parsed == null) {
63
+ return {
64
+ ok: true,
65
+ value: null,
66
+ };
67
+ }
68
+ return schema.json(parsed, opts);
69
+ },
70
+ getType: () => Schema_1.SchemaType.OPTIONAL,
71
+ };
72
+ return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
73
+ }
74
+ exports.optional = optional;
75
+ function transform(schema, transformer) {
76
+ const baseSchema = {
77
+ parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
78
+ const parsed = yield schema.parse(raw, opts);
79
+ if (!parsed.ok) {
80
+ return parsed;
81
+ }
82
+ return {
83
+ ok: true,
84
+ value: transformer.transform(parsed.value),
85
+ };
86
+ }),
87
+ json: (transformed, opts) => __awaiter(this, void 0, void 0, function* () {
88
+ const parsed = yield transformer.untransform(transformed);
89
+ return schema.json(parsed, opts);
90
+ }),
91
+ getType: () => schema.getType(),
92
+ };
93
+ return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
94
+ }
95
+ exports.transform = transform;
@@ -0,0 +1,9 @@
1
+ export var __esModule: boolean;
2
+ export var getSchemaUtils: typeof getSchemaUtils_1.getSchemaUtils;
3
+ export var optional: typeof getSchemaUtils_1.optional;
4
+ export var transform: typeof getSchemaUtils_1.transform;
5
+ export var JsonError: typeof JsonError_1.JsonError;
6
+ export var ParseError: typeof ParseError_1.ParseError;
7
+ import getSchemaUtils_1 = require("./getSchemaUtils");
8
+ import JsonError_1 = require("./JsonError");
9
+ import ParseError_1 = require("./ParseError");
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParseError = exports.JsonError = exports.transform = exports.optional = exports.getSchemaUtils = void 0;
4
+ var getSchemaUtils_1 = require("./getSchemaUtils");
5
+ Object.defineProperty(exports, "getSchemaUtils", { enumerable: true, get: function () { return getSchemaUtils_1.getSchemaUtils; } });
6
+ Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return getSchemaUtils_1.optional; } });
7
+ Object.defineProperty(exports, "transform", { enumerable: true, get: function () { return getSchemaUtils_1.transform; } });
8
+ var JsonError_1 = require("./JsonError");
9
+ Object.defineProperty(exports, "JsonError", { enumerable: true, get: function () { return JsonError_1.JsonError; } });
10
+ var ParseError_1 = require("./ParseError");
11
+ Object.defineProperty(exports, "ParseError", { enumerable: true, get: function () { return ParseError_1.ParseError; } });
@@ -0,0 +1,2 @@
1
+ export var __esModule: boolean;
2
+ export function stringifyValidationError(error: any): any;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringifyValidationError = void 0;
4
+ function stringifyValidationError(error) {
5
+ if (error.path.length === 0) {
6
+ return error.message;
7
+ }
8
+ return `${error.path.join(" -> ")}: ${error.message}`;
9
+ }
10
+ exports.stringifyValidationError = stringifyValidationError;
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var set: typeof set_1.set;
3
+ import set_1 = require("./set");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.set = void 0;
4
+ var set_1 = require("./set");
5
+ Object.defineProperty(exports, "set", { enumerable: true, get: function () { return set_1.set; } });
@@ -0,0 +1,7 @@
1
+ export var __esModule: boolean;
2
+ export function set(schema: any): {
3
+ parse: (raw: any, opts: any) => any;
4
+ json: (parsed: any, opts: any) => any;
5
+ getType: () => "set";
6
+ } & schema_utils_1.SchemaUtils<any, any>;
7
+ import schema_utils_1 = require("../schema-utils");
@@ -0,0 +1,63 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.set = void 0;
23
+ const Schema_1 = require("../../Schema");
24
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
25
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
26
+ const list_1 = require("../list");
27
+ const schema_utils_1 = require("../schema-utils");
28
+ function set(schema) {
29
+ const listSchema = (0, list_1.list)(schema);
30
+ const baseSchema = {
31
+ parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
32
+ const parsedList = yield listSchema.parse(raw, opts);
33
+ if (parsedList.ok) {
34
+ return {
35
+ ok: true,
36
+ value: new Set(parsedList.value),
37
+ };
38
+ }
39
+ else {
40
+ return parsedList;
41
+ }
42
+ }),
43
+ json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
44
+ var _a;
45
+ if (!(parsed instanceof Set)) {
46
+ return {
47
+ ok: false,
48
+ errors: [
49
+ {
50
+ path: (_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : [],
51
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(parsed, "Set"),
52
+ },
53
+ ],
54
+ };
55
+ }
56
+ const jsonList = yield listSchema.json([...parsed], opts);
57
+ return jsonList;
58
+ }),
59
+ getType: () => Schema_1.SchemaType.SET,
60
+ };
61
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
62
+ }
63
+ exports.set = set;
@@ -0,0 +1,3 @@
1
+ export var __esModule: boolean;
2
+ export var undiscriminatedUnion: typeof undiscriminatedUnion_1.undiscriminatedUnion;
3
+ import undiscriminatedUnion_1 = require("./undiscriminatedUnion");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.undiscriminatedUnion = void 0;
4
+ var undiscriminatedUnion_1 = require("./undiscriminatedUnion");
5
+ Object.defineProperty(exports, "undiscriminatedUnion", { enumerable: true, get: function () { return undiscriminatedUnion_1.undiscriminatedUnion; } });
@@ -0,0 +1 @@
1
+ export var __esModule: boolean;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export var __esModule: boolean;
2
+ export function undiscriminatedUnion(schemas: any): {
3
+ parse: (raw: any, opts: any) => any;
4
+ json: (parsed: any, opts: any) => any;
5
+ getType: () => "undiscriminatedUnion";
6
+ } & schema_utils_1.SchemaUtils<any, any>;
7
+ import schema_utils_1 = require("../schema-utils");