@rulebricks/sdk 1.5.0 → 2.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 (1483) hide show
  1. package/BaseClient.d.ts +39 -0
  2. package/BaseClient.js +59 -0
  3. package/Client.d.ts +30 -43
  4. package/Client.js +23 -19
  5. package/api/errors/BadRequestError.d.ts +3 -5
  6. package/api/errors/BadRequestError.js +26 -13
  7. package/api/errors/ForbiddenError.d.ts +3 -5
  8. package/api/errors/ForbiddenError.js +26 -13
  9. package/api/errors/InternalServerError.d.ts +3 -5
  10. package/api/errors/InternalServerError.js +26 -13
  11. package/api/errors/NotFoundError.d.ts +3 -5
  12. package/api/errors/NotFoundError.js +26 -13
  13. package/api/errors/index.d.ts +4 -4
  14. package/api/errors/index.js +4 -4
  15. package/api/index.d.ts +3 -3
  16. package/api/index.js +3 -3
  17. package/api/resources/assets/client/Client.d.ts +76 -39
  18. package/api/resources/assets/client/Client.js +184 -59
  19. package/api/resources/assets/client/index.d.ts +1 -1
  20. package/api/resources/assets/client/index.js +15 -0
  21. package/api/resources/assets/client/requests/ExportManifestRequest.d.ts +23 -0
  22. package/api/resources/assets/client/requests/ExportManifestRequest.js +3 -0
  23. package/api/resources/assets/client/requests/ImportManifestRequest.d.ts +48 -0
  24. package/api/resources/assets/client/requests/ImportManifestRequest.js +3 -0
  25. package/api/resources/assets/client/requests/index.d.ts +2 -0
  26. package/api/resources/assets/index.d.ts +3 -2
  27. package/api/resources/assets/index.js +3 -2
  28. package/api/resources/assets/resources/flows/client/Client.d.ts +13 -30
  29. package/api/resources/assets/resources/flows/client/Client.js +48 -58
  30. package/api/resources/assets/resources/flows/index.d.ts +1 -1
  31. package/api/resources/assets/resources/flows/index.js +1 -1
  32. package/api/resources/assets/resources/folders/client/Client.d.ts +19 -34
  33. package/api/resources/assets/resources/folders/client/Client.js +89 -115
  34. package/api/resources/assets/resources/folders/client/index.d.ts +1 -1
  35. package/api/resources/assets/resources/folders/client/index.js +1 -1
  36. package/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -3
  37. package/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +1 -3
  38. package/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -3
  39. package/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +1 -3
  40. package/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -2
  41. package/api/resources/assets/resources/folders/index.d.ts +1 -1
  42. package/api/resources/assets/resources/folders/index.js +1 -1
  43. package/api/resources/assets/resources/index.d.ts +5 -5
  44. package/api/resources/assets/resources/index.js +23 -13
  45. package/api/resources/assets/resources/rules/client/Client.d.ts +31 -42
  46. package/api/resources/assets/resources/rules/client/Client.js +123 -158
  47. package/api/resources/assets/resources/rules/client/index.d.ts +1 -1
  48. package/api/resources/assets/resources/rules/client/index.js +1 -1
  49. package/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +1 -4
  50. package/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +1 -3
  51. package/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +2 -4
  52. package/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +1 -3
  53. package/api/resources/assets/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  54. package/api/resources/assets/resources/rules/client/requests/ListRulesRequest.js +3 -0
  55. package/api/resources/assets/resources/rules/client/requests/PullRulesRequest.d.ts +10 -0
  56. package/api/resources/assets/resources/rules/client/requests/PullRulesRequest.js +3 -0
  57. package/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -4
  58. package/api/resources/assets/resources/rules/index.d.ts +1 -1
  59. package/api/resources/assets/resources/rules/index.js +1 -1
  60. package/api/resources/assets/types/ExportAssetsResponse.d.ts +2 -0
  61. package/api/resources/assets/types/ExportAssetsResponse.js +3 -0
  62. package/api/resources/assets/types/index.d.ts +1 -0
  63. package/api/resources/assets/types/index.js +17 -0
  64. package/api/resources/contexts/client/Client.d.ts +167 -0
  65. package/api/resources/contexts/client/Client.js +563 -0
  66. package/api/resources/contexts/client/index.d.ts +1 -0
  67. package/api/resources/contexts/client/index.js +17 -0
  68. package/api/resources/contexts/client/requests/CascadeContextRequest.d.ts +15 -0
  69. package/api/resources/contexts/client/requests/CascadeContextRequest.js +3 -0
  70. package/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.d.ts +13 -0
  71. package/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.js +3 -0
  72. package/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
  73. package/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
  74. package/api/resources/contexts/client/requests/GetInstanceContextsRequest.d.ts +13 -0
  75. package/api/resources/contexts/client/requests/GetInstanceContextsRequest.js +3 -0
  76. package/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
  77. package/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
  78. package/api/resources/contexts/client/requests/SolveContextFlowRequest.d.ts +20 -0
  79. package/api/resources/contexts/client/requests/SolveContextFlowRequest.js +3 -0
  80. package/api/resources/contexts/client/requests/SolveContextRuleRequest.d.ts +20 -0
  81. package/api/resources/contexts/client/requests/SolveContextRuleRequest.js +3 -0
  82. package/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
  83. package/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
  84. package/api/resources/contexts/client/requests/index.d.ts +8 -0
  85. package/api/resources/contexts/index.d.ts +2 -0
  86. package/api/resources/contexts/index.js +18 -0
  87. package/api/resources/contexts/resources/admin/client/Client.d.ts +102 -0
  88. package/api/resources/contexts/resources/admin/client/Client.js +353 -0
  89. package/api/resources/contexts/resources/admin/client/index.d.ts +1 -0
  90. package/api/resources/contexts/resources/admin/client/index.js +17 -0
  91. package/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.d.ts +55 -0
  92. package/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.js +12 -0
  93. package/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.d.ts +10 -0
  94. package/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.js +3 -0
  95. package/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.d.ts +10 -0
  96. package/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.js +3 -0
  97. package/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.d.ts +49 -0
  98. package/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.js +12 -0
  99. package/api/resources/contexts/resources/admin/client/requests/index.d.ts +4 -0
  100. package/api/resources/contexts/resources/admin/index.d.ts +1 -0
  101. package/api/resources/contexts/resources/admin/index.js +17 -0
  102. package/api/resources/contexts/resources/index.d.ts +4 -0
  103. package/api/resources/contexts/resources/index.js +43 -0
  104. package/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
  105. package/api/resources/contexts/resources/relationships/client/Client.js +252 -0
  106. package/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
  107. package/api/resources/contexts/resources/relationships/client/index.js +17 -0
  108. package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
  109. package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
  110. package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
  111. package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
  112. package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
  113. package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
  114. package/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
  115. package/api/resources/contexts/resources/relationships/index.d.ts +1 -0
  116. package/api/resources/contexts/resources/relationships/index.js +17 -0
  117. package/api/resources/decisions/client/Client.d.ts +19 -34
  118. package/api/resources/decisions/client/Client.js +79 -74
  119. package/api/resources/decisions/client/index.d.ts +1 -1
  120. package/api/resources/decisions/client/index.js +1 -1
  121. package/api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts +36 -0
  122. package/api/resources/decisions/client/requests/QueryDecisionsRequest.js +3 -0
  123. package/api/resources/decisions/client/requests/index.d.ts +1 -1
  124. package/api/resources/decisions/index.d.ts +2 -1
  125. package/api/resources/decisions/index.js +2 -1
  126. package/api/resources/decisions/types/QueryDecisionsRequestCount.d.ts +5 -0
  127. package/api/resources/decisions/types/QueryDecisionsRequestCount.js +8 -0
  128. package/api/resources/decisions/types/index.d.ts +1 -0
  129. package/api/resources/decisions/types/index.js +17 -0
  130. package/api/resources/flows/client/Client.d.ts +23 -36
  131. package/api/resources/flows/client/Client.js +62 -65
  132. package/api/resources/flows/client/index.d.ts +1 -1
  133. package/api/resources/flows/client/index.js +15 -0
  134. package/api/resources/flows/client/requests/ExecuteFlowsRequest.d.ts +19 -0
  135. package/api/resources/flows/client/requests/ExecuteFlowsRequest.js +3 -0
  136. package/api/resources/flows/client/requests/index.d.ts +1 -0
  137. package/api/resources/flows/index.d.ts +1 -1
  138. package/api/resources/flows/index.js +1 -1
  139. package/api/resources/index.d.ts +17 -11
  140. package/api/resources/index.js +35 -19
  141. package/api/resources/rules/client/Client.d.ts +55 -56
  142. package/api/resources/rules/client/Client.js +130 -138
  143. package/api/resources/rules/client/index.d.ts +1 -1
  144. package/api/resources/rules/client/index.js +15 -0
  145. package/api/resources/rules/client/requests/BulkSolveRulesRequest.d.ts +21 -0
  146. package/api/resources/rules/client/requests/BulkSolveRulesRequest.js +3 -0
  147. package/api/resources/rules/client/requests/SolveRulesRequest.d.ts +19 -0
  148. package/api/resources/rules/client/requests/SolveRulesRequest.js +3 -0
  149. package/api/resources/rules/client/requests/index.d.ts +2 -0
  150. package/api/resources/rules/index.d.ts +1 -1
  151. package/api/resources/rules/index.js +1 -1
  152. package/api/resources/tests/client/Client.d.ts +13 -21
  153. package/api/resources/tests/client/Client.js +11 -12
  154. package/api/resources/tests/index.d.ts +2 -2
  155. package/api/resources/tests/index.js +2 -2
  156. package/api/resources/tests/resources/flows/client/Client.d.ts +41 -50
  157. package/api/resources/tests/resources/flows/client/Client.js +117 -136
  158. package/api/resources/tests/resources/flows/client/index.d.ts +1 -1
  159. package/api/resources/tests/resources/flows/client/index.js +15 -0
  160. package/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.d.ts +22 -0
  161. package/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.js +3 -0
  162. package/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.d.ts +13 -0
  163. package/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.js +3 -0
  164. package/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.d.ts +10 -0
  165. package/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.js +3 -0
  166. package/api/resources/tests/resources/flows/client/requests/index.d.ts +3 -0
  167. package/api/resources/tests/resources/flows/index.d.ts +1 -1
  168. package/api/resources/tests/resources/flows/index.js +1 -1
  169. package/api/resources/tests/resources/index.d.ts +4 -2
  170. package/api/resources/tests/resources/index.js +24 -9
  171. package/api/resources/tests/resources/rules/client/Client.d.ts +41 -50
  172. package/api/resources/tests/resources/rules/client/Client.js +117 -136
  173. package/api/resources/tests/resources/rules/client/index.d.ts +1 -1
  174. package/api/resources/tests/resources/rules/client/index.js +15 -0
  175. package/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.d.ts +22 -0
  176. package/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.js +3 -0
  177. package/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.d.ts +13 -0
  178. package/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.js +3 -0
  179. package/api/resources/tests/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  180. package/api/resources/tests/resources/rules/client/requests/ListRulesRequest.js +3 -0
  181. package/api/resources/tests/resources/rules/client/requests/index.d.ts +3 -0
  182. package/api/resources/tests/resources/rules/index.d.ts +1 -1
  183. package/api/resources/tests/resources/rules/index.js +1 -1
  184. package/api/resources/users/client/Client.d.ts +57 -35
  185. package/api/resources/users/client/Client.js +166 -58
  186. package/api/resources/users/client/index.d.ts +1 -1
  187. package/api/resources/users/client/index.js +1 -1
  188. package/api/resources/users/client/requests/CreateUserRequest.d.ts +28 -0
  189. package/api/resources/users/client/requests/CreateUserRequest.js +3 -0
  190. package/api/resources/users/client/requests/UserInviteRequest.d.ts +17 -11
  191. package/api/resources/users/client/requests/UserInviteRequest.js +12 -3
  192. package/api/resources/users/client/requests/index.d.ts +2 -1
  193. package/api/resources/users/index.d.ts +2 -3
  194. package/api/resources/users/index.js +2 -3
  195. package/api/resources/users/resources/groups/client/Client.d.ts +16 -32
  196. package/api/resources/users/resources/groups/client/Client.js +68 -86
  197. package/api/resources/users/resources/groups/client/index.d.ts +1 -1
  198. package/api/resources/users/resources/groups/client/index.js +1 -1
  199. package/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -3
  200. package/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +1 -3
  201. package/api/resources/users/resources/groups/client/requests/index.d.ts +1 -1
  202. package/api/resources/users/resources/groups/index.d.ts +1 -1
  203. package/api/resources/users/resources/groups/index.js +1 -1
  204. package/api/resources/users/resources/index.d.ts +2 -2
  205. package/api/resources/users/resources/index.js +19 -9
  206. package/api/resources/values/client/Client.d.ts +24 -39
  207. package/api/resources/values/client/Client.js +99 -129
  208. package/api/resources/values/client/index.d.ts +1 -1
  209. package/api/resources/values/client/index.js +1 -1
  210. package/api/resources/values/client/requests/DeleteValuesRequest.d.ts +10 -0
  211. package/api/resources/values/client/requests/DeleteValuesRequest.js +3 -0
  212. package/api/resources/values/client/requests/ListValuesRequest.d.ts +17 -0
  213. package/api/resources/values/client/requests/ListValuesRequest.js +3 -0
  214. package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +6 -9
  215. package/api/resources/values/client/requests/UpdateValuesRequest.js +1 -3
  216. package/api/resources/values/client/requests/index.d.ts +3 -3
  217. package/api/resources/values/index.d.ts +1 -1
  218. package/api/resources/values/index.js +1 -1
  219. package/api/types/BulkRuleResponseItem.d.ts +4 -5
  220. package/api/types/BulkRuleResponseItem.js +1 -3
  221. package/api/types/CascadeContextResponse.d.ts +10 -0
  222. package/api/types/CascadeContextResponse.js +3 -0
  223. package/api/types/CascadeResult.d.ts +29 -0
  224. package/api/types/CascadeResult.js +12 -0
  225. package/api/types/ContextBase.d.ts +33 -0
  226. package/api/types/ContextBase.js +12 -0
  227. package/api/types/ContextDetail.d.ts +58 -0
  228. package/api/types/ContextDetail.js +3 -0
  229. package/api/types/ContextInstanceHistory.d.ts +10 -0
  230. package/api/types/ContextInstanceHistory.js +3 -0
  231. package/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
  232. package/api/types/ContextInstanceHistoryEntry.js +3 -0
  233. package/api/types/ContextInstancePendingEvaluation.d.ts +29 -0
  234. package/api/types/ContextInstancePendingEvaluation.js +12 -0
  235. package/api/types/ContextInstancePendingResponse.d.ts +8 -0
  236. package/api/types/ContextInstancePendingResponse.js +3 -0
  237. package/api/types/ContextInstanceState.d.ts +31 -0
  238. package/api/types/ContextInstanceState.js +12 -0
  239. package/api/types/ContextListResponse.d.ts +2 -0
  240. package/api/types/ContextListResponse.js +3 -0
  241. package/api/types/ContextRelationshipBase.d.ts +21 -0
  242. package/api/types/ContextRelationshipBase.js +13 -0
  243. package/api/types/ContextRelationshipIncoming.d.ts +11 -0
  244. package/api/types/ContextRelationshipIncoming.js +3 -0
  245. package/api/types/ContextRelationshipOutgoing.d.ts +11 -0
  246. package/api/types/ContextRelationshipOutgoing.js +3 -0
  247. package/api/types/ContextRelationshipsResponse.d.ts +5 -0
  248. package/api/types/ContextRelationshipsResponse.js +3 -0
  249. package/api/types/ContextSchema.d.ts +10 -0
  250. package/api/types/ContextSchema.js +3 -0
  251. package/api/types/ContextSchemaField.d.ts +35 -0
  252. package/api/types/ContextSchemaField.js +16 -0
  253. package/api/types/CreateContextResponse.d.ts +2 -0
  254. package/api/types/CreateContextResponse.js +3 -0
  255. package/api/types/CreateRelationshipResponse.d.ts +2 -0
  256. package/api/types/CreateRelationshipResponse.js +3 -0
  257. package/api/types/CreateTestRequest.d.ts +0 -3
  258. package/api/types/CreateTestRequest.js +1 -3
  259. package/api/types/CreateUserResponse.d.ts +26 -0
  260. package/api/types/CreateUserResponse.js +3 -0
  261. package/api/types/DecisionLog.d.ts +21 -5
  262. package/api/types/DecisionLog.js +1 -3
  263. package/api/types/DecisionLogResponse.d.ts +7 -4
  264. package/api/types/DecisionLogResponse.js +1 -3
  265. package/api/types/DeleteContextInstanceResponse.d.ts +9 -0
  266. package/api/types/DeleteContextInstanceResponse.js +3 -0
  267. package/api/types/DeleteContextResponse.d.ts +13 -0
  268. package/api/types/DeleteContextResponse.js +3 -0
  269. package/api/types/DeleteRelationshipResponse.d.ts +4 -0
  270. package/api/types/DeleteRelationshipResponse.js +3 -0
  271. package/api/types/DynamicRequestPayload.d.ts +1 -4
  272. package/api/types/DynamicRequestPayload.js +1 -3
  273. package/api/types/DynamicResponsePayload.d.ts +1 -4
  274. package/api/types/DynamicResponsePayload.js +1 -3
  275. package/api/types/DynamicValue.d.ts +11 -7
  276. package/api/types/DynamicValue.js +1 -3
  277. package/api/types/DynamicValueListResponse.d.ts +2 -5
  278. package/api/types/DynamicValueListResponse.js +1 -3
  279. package/api/types/Error_.d.ts +0 -3
  280. package/api/types/Error_.js +1 -3
  281. package/api/types/ExportManifestPreviewResponse.d.ts +51 -0
  282. package/api/types/ExportManifestPreviewResponse.js +3 -0
  283. package/api/types/ExportManifestResponse.d.ts +9 -0
  284. package/api/types/ExportManifestResponse.js +3 -0
  285. package/api/types/FlowBase.d.ts +0 -3
  286. package/api/types/FlowBase.js +1 -3
  287. package/api/types/FlowDetail.d.ts +30 -5
  288. package/api/types/FlowDetail.js +1 -3
  289. package/api/types/FlowExecutionError.d.ts +0 -3
  290. package/api/types/FlowExecutionError.js +1 -3
  291. package/api/types/FlowListResponse.d.ts +2 -5
  292. package/api/types/FlowListResponse.js +1 -3
  293. package/api/types/Folder.d.ts +1 -4
  294. package/api/types/Folder.js +1 -3
  295. package/api/types/FolderListResponse.d.ts +2 -5
  296. package/api/types/FolderListResponse.js +1 -3
  297. package/api/types/ImportManifestResponse.d.ts +38 -0
  298. package/api/types/ImportManifestResponse.js +3 -0
  299. package/api/types/ParallelSolveRequest.d.ts +11 -5
  300. package/api/types/ParallelSolveRequest.js +1 -3
  301. package/api/types/ParallelSolveResponse.d.ts +2 -5
  302. package/api/types/ParallelSolveResponse.js +1 -3
  303. package/api/types/RuleBase.d.ts +0 -3
  304. package/api/types/RuleBase.js +1 -3
  305. package/api/types/RuleDetail.d.ts +21 -7
  306. package/api/types/RuleDetail.js +1 -3
  307. package/api/types/RuleExport.d.ts +1 -4
  308. package/api/types/RuleExport.js +1 -3
  309. package/api/types/RuleListResponse.d.ts +2 -5
  310. package/api/types/RuleListResponse.js +1 -3
  311. package/api/types/RuleUsage.d.ts +1 -4
  312. package/api/types/RuleUsage.js +1 -3
  313. package/api/types/SchemaField.d.ts +18 -7
  314. package/api/types/SchemaField.js +13 -3
  315. package/api/types/SolveContextFlowResponse.d.ts +23 -0
  316. package/api/types/SolveContextFlowResponse.js +12 -0
  317. package/api/types/SolveContextRuleResponse.d.ts +26 -0
  318. package/api/types/SolveContextRuleResponse.js +12 -0
  319. package/api/types/SubmitContextDataRequest.d.ts +4 -0
  320. package/api/types/SubmitContextDataRequest.js +3 -0
  321. package/api/types/SubmitContextDataResponse.d.ts +30 -0
  322. package/api/types/SubmitContextDataResponse.js +12 -0
  323. package/api/types/SuccessMessage.d.ts +0 -3
  324. package/api/types/SuccessMessage.js +1 -3
  325. package/api/types/Test.d.ts +25 -6
  326. package/api/types/Test.js +1 -3
  327. package/api/types/TestListResponse.d.ts +2 -5
  328. package/api/types/TestListResponse.js +1 -3
  329. package/api/types/UpdateContextResponse.d.ts +2 -0
  330. package/api/types/UpdateContextResponse.js +3 -0
  331. package/api/types/UsageStatistics.d.ts +5 -8
  332. package/api/types/UsageStatistics.js +1 -3
  333. package/api/types/UserDetail.d.ts +19 -0
  334. package/api/types/UserDetail.js +3 -0
  335. package/api/types/UserGroup.d.ts +0 -3
  336. package/api/types/UserGroup.js +1 -3
  337. package/api/types/UserGroupListResponse.d.ts +2 -5
  338. package/api/types/UserGroupListResponse.js +1 -3
  339. package/api/types/UserInviteResponse.d.ts +11 -5
  340. package/api/types/UserInviteResponse.js +1 -3
  341. package/api/types/UserListResponse.d.ts +5 -0
  342. package/api/types/UserListResponse.js +3 -0
  343. package/api/types/ValueLimits.d.ts +4 -7
  344. package/api/types/ValueLimits.js +1 -3
  345. package/api/types/index.d.ts +63 -39
  346. package/api/types/index.js +63 -39
  347. package/auth/HeaderAuthProvider.d.ts +16 -0
  348. package/auth/HeaderAuthProvider.js +71 -0
  349. package/auth/index.d.ts +1 -0
  350. package/auth/index.js +5 -0
  351. package/core/auth/AuthProvider.d.ts +7 -0
  352. package/core/auth/AuthRequest.d.ts +9 -0
  353. package/core/auth/BasicAuth.d.ts +8 -0
  354. package/core/auth/BasicAuth.js +27 -0
  355. package/core/auth/BearerToken.d.ts +7 -0
  356. package/core/auth/BearerToken.js +16 -0
  357. package/core/auth/NoOpAuthProvider.d.ts +5 -0
  358. package/core/auth/NoOpAuthProvider.js +9 -0
  359. package/core/auth/index.d.ts +5 -0
  360. package/core/auth/index.js +9 -0
  361. package/core/base64.d.ts +2 -0
  362. package/core/base64.js +26 -0
  363. package/core/exports.d.ts +1 -0
  364. package/core/exports.js +17 -0
  365. package/core/fetcher/APIResponse.d.ts +11 -1
  366. package/core/fetcher/BinaryResponse.d.ts +19 -0
  367. package/core/fetcher/BinaryResponse.js +17 -0
  368. package/core/fetcher/EndpointMetadata.d.ts +13 -0
  369. package/core/fetcher/EndpointSupplier.d.ts +12 -0
  370. package/core/fetcher/EndpointSupplier.js +22 -0
  371. package/core/fetcher/Fetcher.d.ts +17 -7
  372. package/core/fetcher/Fetcher.js +244 -28
  373. package/core/fetcher/Headers.d.ts +2 -0
  374. package/core/fetcher/Headers.js +84 -0
  375. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  376. package/core/fetcher/HttpResponsePromise.js +103 -0
  377. package/core/fetcher/RawResponse.d.ts +29 -0
  378. package/core/fetcher/RawResponse.js +44 -0
  379. package/core/fetcher/Supplier.d.ts +1 -1
  380. package/core/fetcher/createRequestUrl.d.ts +1 -1
  381. package/core/fetcher/createRequestUrl.js +4 -9
  382. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  383. package/core/fetcher/getErrorResponseBody.js +45 -0
  384. package/core/fetcher/getFetchFn.d.ts +1 -4
  385. package/core/fetcher/getFetchFn.js +2 -44
  386. package/core/fetcher/getHeader.js +1 -2
  387. package/core/fetcher/getRequestBody.d.ts +1 -1
  388. package/core/fetcher/getRequestBody.js +9 -6
  389. package/core/fetcher/getResponseBody.js +43 -29
  390. package/core/fetcher/index.d.ts +11 -5
  391. package/core/fetcher/index.js +15 -7
  392. package/core/fetcher/makeRequest.d.ts +1 -1
  393. package/core/fetcher/makeRequest.js +4 -6
  394. package/core/fetcher/requestWithRetries.js +38 -12
  395. package/core/fetcher/signals.d.ts +1 -8
  396. package/core/fetcher/signals.js +2 -15
  397. package/core/headers.d.ts +2 -0
  398. package/core/headers.js +31 -0
  399. package/core/index.d.ts +6 -3
  400. package/core/index.js +24 -11
  401. package/core/json.d.ts +1 -1
  402. package/core/json.js +2 -2
  403. package/core/logging/exports.d.ts +18 -0
  404. package/core/logging/exports.js +45 -0
  405. package/core/logging/index.d.ts +1 -0
  406. package/core/logging/index.js +17 -0
  407. package/core/logging/logger.d.ts +126 -0
  408. package/core/logging/logger.js +144 -0
  409. package/core/runtime/index.d.ts +1 -1
  410. package/core/runtime/index.js +2 -2
  411. package/core/runtime/runtime.js +11 -11
  412. package/core/url/encodePathParam.d.ts +1 -0
  413. package/core/url/encodePathParam.js +21 -0
  414. package/core/url/index.d.ts +3 -0
  415. package/core/url/index.js +9 -0
  416. package/core/url/join.d.ts +1 -0
  417. package/core/url/join.js +68 -0
  418. package/core/url/qs.d.ts +6 -0
  419. package/core/url/qs.js +64 -0
  420. package/dist/BaseClient.d.ts +39 -0
  421. package/dist/BaseClient.js +59 -0
  422. package/dist/Client.d.ts +30 -43
  423. package/dist/Client.js +23 -19
  424. package/dist/api/errors/BadRequestError.d.ts +3 -5
  425. package/dist/api/errors/BadRequestError.js +26 -13
  426. package/dist/api/errors/ForbiddenError.d.ts +3 -5
  427. package/dist/api/errors/ForbiddenError.js +26 -13
  428. package/dist/api/errors/InternalServerError.d.ts +3 -5
  429. package/dist/api/errors/InternalServerError.js +26 -13
  430. package/dist/api/errors/NotFoundError.d.ts +3 -5
  431. package/dist/api/errors/NotFoundError.js +26 -13
  432. package/dist/api/errors/index.d.ts +4 -4
  433. package/dist/api/errors/index.js +4 -4
  434. package/dist/api/index.d.ts +3 -3
  435. package/dist/api/index.js +3 -3
  436. package/dist/api/resources/assets/client/Client.d.ts +76 -39
  437. package/dist/api/resources/assets/client/Client.js +184 -59
  438. package/dist/api/resources/assets/client/index.d.ts +1 -1
  439. package/dist/api/resources/assets/client/index.js +15 -0
  440. package/dist/api/resources/assets/client/requests/ExportManifestRequest.d.ts +23 -0
  441. package/dist/api/resources/assets/client/requests/ExportManifestRequest.js +3 -0
  442. package/dist/api/resources/assets/client/requests/ImportManifestRequest.d.ts +48 -0
  443. package/dist/api/resources/assets/client/requests/ImportManifestRequest.js +3 -0
  444. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  445. package/dist/api/resources/assets/index.d.ts +3 -2
  446. package/dist/api/resources/assets/index.js +3 -2
  447. package/dist/api/resources/assets/resources/flows/client/Client.d.ts +13 -30
  448. package/dist/api/resources/assets/resources/flows/client/Client.js +48 -58
  449. package/dist/api/resources/assets/resources/flows/index.d.ts +1 -1
  450. package/dist/api/resources/assets/resources/flows/index.js +1 -1
  451. package/dist/api/resources/assets/resources/folders/client/Client.d.ts +19 -34
  452. package/dist/api/resources/assets/resources/folders/client/Client.js +89 -115
  453. package/dist/api/resources/assets/resources/folders/client/index.d.ts +1 -1
  454. package/dist/api/resources/assets/resources/folders/client/index.js +1 -1
  455. package/dist/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -3
  456. package/dist/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +1 -3
  457. package/dist/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -3
  458. package/dist/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +1 -3
  459. package/dist/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -2
  460. package/dist/api/resources/assets/resources/folders/index.d.ts +1 -1
  461. package/dist/api/resources/assets/resources/folders/index.js +1 -1
  462. package/dist/api/resources/assets/resources/index.d.ts +5 -5
  463. package/dist/api/resources/assets/resources/index.js +23 -13
  464. package/dist/api/resources/assets/resources/rules/client/Client.d.ts +31 -42
  465. package/dist/api/resources/assets/resources/rules/client/Client.js +123 -158
  466. package/dist/api/resources/assets/resources/rules/client/index.d.ts +1 -1
  467. package/dist/api/resources/assets/resources/rules/client/index.js +1 -1
  468. package/dist/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +1 -4
  469. package/dist/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +1 -3
  470. package/dist/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +2 -4
  471. package/dist/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +1 -3
  472. package/dist/api/resources/assets/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  473. package/dist/api/resources/assets/resources/rules/client/requests/ListRulesRequest.js +3 -0
  474. package/dist/api/resources/assets/resources/rules/client/requests/PullRulesRequest.d.ts +10 -0
  475. package/dist/api/resources/assets/resources/rules/client/requests/PullRulesRequest.js +3 -0
  476. package/dist/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -4
  477. package/dist/api/resources/assets/resources/rules/index.d.ts +1 -1
  478. package/dist/api/resources/assets/resources/rules/index.js +1 -1
  479. package/dist/api/resources/assets/types/ExportAssetsResponse.d.ts +2 -0
  480. package/dist/api/resources/assets/types/ExportAssetsResponse.js +3 -0
  481. package/dist/api/resources/assets/types/index.d.ts +1 -0
  482. package/dist/api/resources/assets/types/index.js +17 -0
  483. package/dist/api/resources/contexts/client/Client.d.ts +167 -0
  484. package/dist/api/resources/contexts/client/Client.js +563 -0
  485. package/dist/api/resources/contexts/client/index.d.ts +1 -0
  486. package/dist/api/resources/contexts/client/index.js +17 -0
  487. package/dist/api/resources/contexts/client/requests/CascadeContextRequest.d.ts +15 -0
  488. package/dist/api/resources/contexts/client/requests/CascadeContextRequest.js +3 -0
  489. package/dist/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.d.ts +13 -0
  490. package/dist/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.js +3 -0
  491. package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
  492. package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
  493. package/dist/api/resources/contexts/client/requests/GetInstanceContextsRequest.d.ts +13 -0
  494. package/dist/api/resources/contexts/client/requests/GetInstanceContextsRequest.js +3 -0
  495. package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
  496. package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
  497. package/dist/api/resources/contexts/client/requests/SolveContextFlowRequest.d.ts +20 -0
  498. package/dist/api/resources/contexts/client/requests/SolveContextFlowRequest.js +3 -0
  499. package/dist/api/resources/contexts/client/requests/SolveContextRuleRequest.d.ts +20 -0
  500. package/dist/api/resources/contexts/client/requests/SolveContextRuleRequest.js +3 -0
  501. package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
  502. package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
  503. package/dist/api/resources/contexts/client/requests/index.d.ts +8 -0
  504. package/dist/api/resources/contexts/index.d.ts +2 -0
  505. package/dist/api/resources/contexts/index.js +18 -0
  506. package/dist/api/resources/contexts/resources/admin/client/Client.d.ts +102 -0
  507. package/dist/api/resources/contexts/resources/admin/client/Client.js +353 -0
  508. package/dist/api/resources/contexts/resources/admin/client/index.d.ts +1 -0
  509. package/dist/api/resources/contexts/resources/admin/client/index.js +17 -0
  510. package/dist/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.d.ts +55 -0
  511. package/dist/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.js +12 -0
  512. package/dist/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.d.ts +10 -0
  513. package/dist/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.js +3 -0
  514. package/dist/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.d.ts +10 -0
  515. package/dist/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.js +3 -0
  516. package/dist/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.d.ts +49 -0
  517. package/dist/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.js +12 -0
  518. package/dist/api/resources/contexts/resources/admin/client/requests/index.d.ts +4 -0
  519. package/dist/api/resources/contexts/resources/admin/index.d.ts +1 -0
  520. package/dist/api/resources/contexts/resources/admin/index.js +17 -0
  521. package/dist/api/resources/contexts/resources/index.d.ts +4 -0
  522. package/dist/api/resources/contexts/resources/index.js +43 -0
  523. package/dist/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
  524. package/dist/api/resources/contexts/resources/relationships/client/Client.js +252 -0
  525. package/dist/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
  526. package/dist/api/resources/contexts/resources/relationships/client/index.js +17 -0
  527. package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
  528. package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
  529. package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
  530. package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
  531. package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
  532. package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
  533. package/dist/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
  534. package/dist/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
  535. package/dist/api/resources/contexts/resources/relationships/index.d.ts +1 -0
  536. package/dist/api/resources/contexts/resources/relationships/index.js +17 -0
  537. package/dist/api/resources/decisions/client/Client.d.ts +19 -34
  538. package/dist/api/resources/decisions/client/Client.js +79 -74
  539. package/dist/api/resources/decisions/client/index.d.ts +1 -1
  540. package/dist/api/resources/decisions/client/index.js +1 -1
  541. package/dist/api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts +36 -0
  542. package/dist/api/resources/decisions/client/requests/QueryDecisionsRequest.js +3 -0
  543. package/dist/api/resources/decisions/client/requests/index.d.ts +1 -1
  544. package/dist/api/resources/decisions/index.d.ts +2 -1
  545. package/dist/api/resources/decisions/index.js +2 -1
  546. package/dist/api/resources/decisions/types/QueryDecisionsRequestCount.d.ts +5 -0
  547. package/dist/api/resources/decisions/types/QueryDecisionsRequestCount.js +8 -0
  548. package/dist/api/resources/decisions/types/index.d.ts +1 -0
  549. package/dist/api/resources/decisions/types/index.js +17 -0
  550. package/dist/api/resources/flows/client/Client.d.ts +23 -36
  551. package/dist/api/resources/flows/client/Client.js +62 -65
  552. package/dist/api/resources/flows/client/index.d.ts +1 -1
  553. package/dist/api/resources/flows/client/index.js +15 -0
  554. package/dist/api/resources/flows/client/requests/ExecuteFlowsRequest.d.ts +19 -0
  555. package/dist/api/resources/flows/client/requests/ExecuteFlowsRequest.js +3 -0
  556. package/dist/api/resources/flows/client/requests/index.d.ts +1 -0
  557. package/dist/api/resources/flows/client/requests/index.js +2 -0
  558. package/dist/api/resources/flows/index.d.ts +1 -1
  559. package/dist/api/resources/flows/index.js +1 -1
  560. package/dist/api/resources/index.d.ts +17 -11
  561. package/dist/api/resources/index.js +35 -19
  562. package/dist/api/resources/rules/client/Client.d.ts +55 -56
  563. package/dist/api/resources/rules/client/Client.js +130 -138
  564. package/dist/api/resources/rules/client/index.d.ts +1 -1
  565. package/dist/api/resources/rules/client/index.js +15 -0
  566. package/dist/api/resources/rules/client/requests/BulkSolveRulesRequest.d.ts +21 -0
  567. package/dist/api/resources/rules/client/requests/BulkSolveRulesRequest.js +3 -0
  568. package/dist/api/resources/rules/client/requests/SolveRulesRequest.d.ts +19 -0
  569. package/dist/api/resources/rules/client/requests/SolveRulesRequest.js +3 -0
  570. package/dist/api/resources/rules/client/requests/index.d.ts +2 -0
  571. package/dist/api/resources/rules/client/requests/index.js +2 -0
  572. package/dist/api/resources/rules/index.d.ts +1 -1
  573. package/dist/api/resources/rules/index.js +1 -1
  574. package/dist/api/resources/tests/client/Client.d.ts +13 -21
  575. package/dist/api/resources/tests/client/Client.js +11 -12
  576. package/dist/api/resources/tests/index.d.ts +2 -2
  577. package/dist/api/resources/tests/index.js +2 -2
  578. package/dist/api/resources/tests/resources/flows/client/Client.d.ts +41 -50
  579. package/dist/api/resources/tests/resources/flows/client/Client.js +117 -136
  580. package/dist/api/resources/tests/resources/flows/client/index.d.ts +1 -1
  581. package/dist/api/resources/tests/resources/flows/client/index.js +15 -0
  582. package/dist/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.d.ts +22 -0
  583. package/dist/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.js +3 -0
  584. package/dist/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.d.ts +13 -0
  585. package/dist/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.js +3 -0
  586. package/dist/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.d.ts +10 -0
  587. package/dist/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.js +3 -0
  588. package/dist/api/resources/tests/resources/flows/client/requests/index.d.ts +3 -0
  589. package/dist/api/resources/tests/resources/flows/client/requests/index.js +2 -0
  590. package/dist/api/resources/tests/resources/flows/index.d.ts +1 -1
  591. package/dist/api/resources/tests/resources/flows/index.js +1 -1
  592. package/dist/api/resources/tests/resources/index.d.ts +4 -2
  593. package/dist/api/resources/tests/resources/index.js +24 -9
  594. package/dist/api/resources/tests/resources/rules/client/Client.d.ts +41 -50
  595. package/dist/api/resources/tests/resources/rules/client/Client.js +117 -136
  596. package/dist/api/resources/tests/resources/rules/client/index.d.ts +1 -1
  597. package/dist/api/resources/tests/resources/rules/client/index.js +15 -0
  598. package/dist/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.d.ts +22 -0
  599. package/dist/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.js +3 -0
  600. package/dist/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.d.ts +13 -0
  601. package/dist/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.js +3 -0
  602. package/dist/api/resources/tests/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  603. package/dist/api/resources/tests/resources/rules/client/requests/ListRulesRequest.js +3 -0
  604. package/dist/api/resources/tests/resources/rules/client/requests/index.d.ts +3 -0
  605. package/dist/api/resources/tests/resources/rules/client/requests/index.js +2 -0
  606. package/dist/api/resources/tests/resources/rules/index.d.ts +1 -1
  607. package/dist/api/resources/tests/resources/rules/index.js +1 -1
  608. package/dist/api/resources/users/client/Client.d.ts +57 -35
  609. package/dist/api/resources/users/client/Client.js +166 -58
  610. package/dist/api/resources/users/client/index.d.ts +1 -1
  611. package/dist/api/resources/users/client/index.js +1 -1
  612. package/dist/api/resources/users/client/requests/CreateUserRequest.d.ts +28 -0
  613. package/dist/api/resources/users/client/requests/CreateUserRequest.js +3 -0
  614. package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +17 -11
  615. package/dist/api/resources/users/client/requests/UserInviteRequest.js +12 -3
  616. package/dist/api/resources/users/client/requests/index.d.ts +2 -1
  617. package/dist/api/resources/users/index.d.ts +2 -3
  618. package/dist/api/resources/users/index.js +2 -3
  619. package/dist/api/resources/users/resources/groups/client/Client.d.ts +16 -32
  620. package/dist/api/resources/users/resources/groups/client/Client.js +68 -86
  621. package/dist/api/resources/users/resources/groups/client/index.d.ts +1 -1
  622. package/dist/api/resources/users/resources/groups/client/index.js +1 -1
  623. package/dist/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -3
  624. package/dist/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +1 -3
  625. package/dist/api/resources/users/resources/groups/client/requests/index.d.ts +1 -1
  626. package/dist/api/resources/users/resources/groups/index.d.ts +1 -1
  627. package/dist/api/resources/users/resources/groups/index.js +1 -1
  628. package/dist/api/resources/users/resources/index.d.ts +2 -2
  629. package/dist/api/resources/users/resources/index.js +19 -9
  630. package/dist/api/resources/values/client/Client.d.ts +24 -39
  631. package/dist/api/resources/values/client/Client.js +99 -129
  632. package/dist/api/resources/values/client/index.d.ts +1 -1
  633. package/dist/api/resources/values/client/index.js +1 -1
  634. package/dist/api/resources/values/client/requests/DeleteValuesRequest.d.ts +10 -0
  635. package/dist/api/resources/values/client/requests/DeleteValuesRequest.js +3 -0
  636. package/dist/api/resources/values/client/requests/ListValuesRequest.d.ts +17 -0
  637. package/dist/api/resources/values/client/requests/ListValuesRequest.js +3 -0
  638. package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +6 -9
  639. package/dist/api/resources/values/client/requests/UpdateValuesRequest.js +1 -3
  640. package/dist/api/resources/values/client/requests/index.d.ts +3 -3
  641. package/dist/api/resources/values/index.d.ts +1 -1
  642. package/dist/api/resources/values/index.js +1 -1
  643. package/dist/api/types/BulkRuleResponseItem.d.ts +4 -5
  644. package/dist/api/types/BulkRuleResponseItem.js +1 -3
  645. package/dist/api/types/CascadeContextResponse.d.ts +10 -0
  646. package/dist/api/types/CascadeContextResponse.js +3 -0
  647. package/dist/api/types/CascadeResult.d.ts +29 -0
  648. package/dist/api/types/CascadeResult.js +12 -0
  649. package/dist/api/types/ContextBase.d.ts +33 -0
  650. package/dist/api/types/ContextBase.js +12 -0
  651. package/dist/api/types/ContextDetail.d.ts +58 -0
  652. package/dist/api/types/ContextDetail.js +3 -0
  653. package/dist/api/types/ContextInstanceHistory.d.ts +10 -0
  654. package/dist/api/types/ContextInstanceHistory.js +3 -0
  655. package/dist/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
  656. package/dist/api/types/ContextInstanceHistoryEntry.js +3 -0
  657. package/dist/api/types/ContextInstancePendingEvaluation.d.ts +29 -0
  658. package/dist/api/types/ContextInstancePendingEvaluation.js +12 -0
  659. package/dist/api/types/ContextInstancePendingResponse.d.ts +8 -0
  660. package/dist/api/types/ContextInstancePendingResponse.js +3 -0
  661. package/dist/api/types/ContextInstanceState.d.ts +31 -0
  662. package/dist/api/types/ContextInstanceState.js +12 -0
  663. package/dist/api/types/ContextListResponse.d.ts +2 -0
  664. package/dist/api/types/ContextListResponse.js +3 -0
  665. package/dist/api/types/ContextRelationshipBase.d.ts +21 -0
  666. package/dist/api/types/ContextRelationshipBase.js +13 -0
  667. package/dist/api/types/ContextRelationshipIncoming.d.ts +11 -0
  668. package/dist/api/types/ContextRelationshipIncoming.js +3 -0
  669. package/dist/api/types/ContextRelationshipOutgoing.d.ts +11 -0
  670. package/dist/api/types/ContextRelationshipOutgoing.js +3 -0
  671. package/dist/api/types/ContextRelationshipsResponse.d.ts +5 -0
  672. package/dist/api/types/ContextRelationshipsResponse.js +3 -0
  673. package/dist/api/types/ContextSchema.d.ts +10 -0
  674. package/dist/api/types/ContextSchema.js +3 -0
  675. package/dist/api/types/ContextSchemaField.d.ts +35 -0
  676. package/dist/api/types/ContextSchemaField.js +16 -0
  677. package/dist/api/types/CreateContextResponse.d.ts +2 -0
  678. package/dist/api/types/CreateContextResponse.js +3 -0
  679. package/dist/api/types/CreateRelationshipResponse.d.ts +2 -0
  680. package/dist/api/types/CreateRelationshipResponse.js +3 -0
  681. package/dist/api/types/CreateTestRequest.d.ts +0 -3
  682. package/dist/api/types/CreateTestRequest.js +1 -3
  683. package/dist/api/types/CreateUserResponse.d.ts +26 -0
  684. package/dist/api/types/CreateUserResponse.js +3 -0
  685. package/dist/api/types/DecisionLog.d.ts +21 -5
  686. package/dist/api/types/DecisionLog.js +1 -3
  687. package/dist/api/types/DecisionLogResponse.d.ts +7 -4
  688. package/dist/api/types/DecisionLogResponse.js +1 -3
  689. package/dist/api/types/DeleteContextInstanceResponse.d.ts +9 -0
  690. package/dist/api/types/DeleteContextInstanceResponse.js +3 -0
  691. package/dist/api/types/DeleteContextResponse.d.ts +13 -0
  692. package/dist/api/types/DeleteContextResponse.js +3 -0
  693. package/dist/api/types/DeleteRelationshipResponse.d.ts +4 -0
  694. package/dist/api/types/DeleteRelationshipResponse.js +3 -0
  695. package/dist/api/types/DynamicRequestPayload.d.ts +1 -4
  696. package/dist/api/types/DynamicRequestPayload.js +1 -3
  697. package/dist/api/types/DynamicResponsePayload.d.ts +1 -4
  698. package/dist/api/types/DynamicResponsePayload.js +1 -3
  699. package/dist/api/types/DynamicValue.d.ts +11 -7
  700. package/dist/api/types/DynamicValue.js +1 -3
  701. package/dist/api/types/DynamicValueListResponse.d.ts +2 -5
  702. package/dist/api/types/DynamicValueListResponse.js +1 -3
  703. package/dist/api/types/Error_.d.ts +0 -3
  704. package/dist/api/types/Error_.js +1 -3
  705. package/dist/api/types/ExportManifestPreviewResponse.d.ts +51 -0
  706. package/dist/api/types/ExportManifestPreviewResponse.js +3 -0
  707. package/dist/api/types/ExportManifestResponse.d.ts +9 -0
  708. package/dist/api/types/ExportManifestResponse.js +3 -0
  709. package/dist/api/types/FlowBase.d.ts +0 -3
  710. package/dist/api/types/FlowBase.js +1 -3
  711. package/dist/api/types/FlowDetail.d.ts +30 -5
  712. package/dist/api/types/FlowDetail.js +1 -3
  713. package/dist/api/types/FlowExecutionError.d.ts +0 -3
  714. package/dist/api/types/FlowExecutionError.js +1 -3
  715. package/dist/api/types/FlowListResponse.d.ts +2 -5
  716. package/dist/api/types/FlowListResponse.js +1 -3
  717. package/dist/api/types/Folder.d.ts +1 -4
  718. package/dist/api/types/Folder.js +1 -3
  719. package/dist/api/types/FolderListResponse.d.ts +2 -5
  720. package/dist/api/types/FolderListResponse.js +1 -3
  721. package/dist/api/types/ImportManifestResponse.d.ts +38 -0
  722. package/dist/api/types/ImportManifestResponse.js +3 -0
  723. package/dist/api/types/ParallelSolveRequest.d.ts +11 -5
  724. package/dist/api/types/ParallelSolveRequest.js +1 -3
  725. package/dist/api/types/ParallelSolveResponse.d.ts +2 -5
  726. package/dist/api/types/ParallelSolveResponse.js +1 -3
  727. package/dist/api/types/RuleBase.d.ts +0 -3
  728. package/dist/api/types/RuleBase.js +1 -3
  729. package/dist/api/types/RuleDetail.d.ts +21 -7
  730. package/dist/api/types/RuleDetail.js +1 -3
  731. package/dist/api/types/RuleExport.d.ts +1 -4
  732. package/dist/api/types/RuleExport.js +1 -3
  733. package/dist/api/types/RuleListResponse.d.ts +2 -5
  734. package/dist/api/types/RuleListResponse.js +1 -3
  735. package/dist/api/types/RuleUsage.d.ts +1 -4
  736. package/dist/api/types/RuleUsage.js +1 -3
  737. package/dist/api/types/SchemaField.d.ts +18 -7
  738. package/dist/api/types/SchemaField.js +13 -3
  739. package/dist/api/types/SolveContextFlowResponse.d.ts +23 -0
  740. package/dist/api/types/SolveContextFlowResponse.js +12 -0
  741. package/dist/api/types/SolveContextRuleResponse.d.ts +26 -0
  742. package/dist/api/types/SolveContextRuleResponse.js +12 -0
  743. package/dist/api/types/SubmitContextDataRequest.d.ts +4 -0
  744. package/dist/api/types/SubmitContextDataRequest.js +3 -0
  745. package/dist/api/types/SubmitContextDataResponse.d.ts +30 -0
  746. package/dist/api/types/SubmitContextDataResponse.js +12 -0
  747. package/dist/api/types/SuccessMessage.d.ts +0 -3
  748. package/dist/api/types/SuccessMessage.js +1 -3
  749. package/dist/api/types/Test.d.ts +25 -6
  750. package/dist/api/types/Test.js +1 -3
  751. package/dist/api/types/TestListResponse.d.ts +2 -5
  752. package/dist/api/types/TestListResponse.js +1 -3
  753. package/dist/api/types/UpdateContextResponse.d.ts +2 -0
  754. package/dist/api/types/UpdateContextResponse.js +3 -0
  755. package/dist/api/types/UsageStatistics.d.ts +5 -8
  756. package/dist/api/types/UsageStatistics.js +1 -3
  757. package/dist/api/types/UserDetail.d.ts +19 -0
  758. package/dist/api/types/UserDetail.js +3 -0
  759. package/dist/api/types/UserGroup.d.ts +0 -3
  760. package/dist/api/types/UserGroup.js +1 -3
  761. package/dist/api/types/UserGroupListResponse.d.ts +2 -5
  762. package/dist/api/types/UserGroupListResponse.js +1 -3
  763. package/dist/api/types/UserInviteResponse.d.ts +11 -5
  764. package/dist/api/types/UserInviteResponse.js +1 -3
  765. package/dist/api/types/UserListResponse.d.ts +5 -0
  766. package/dist/api/types/UserListResponse.js +3 -0
  767. package/dist/api/types/ValueLimits.d.ts +4 -7
  768. package/dist/api/types/ValueLimits.js +1 -3
  769. package/dist/api/types/index.d.ts +63 -39
  770. package/dist/api/types/index.js +63 -39
  771. package/dist/auth/HeaderAuthProvider.d.ts +16 -0
  772. package/dist/auth/HeaderAuthProvider.js +71 -0
  773. package/dist/auth/index.d.ts +1 -0
  774. package/dist/auth/index.js +5 -0
  775. package/dist/core/auth/AuthProvider.d.ts +7 -0
  776. package/dist/core/auth/AuthProvider.js +2 -0
  777. package/dist/core/auth/AuthRequest.d.ts +9 -0
  778. package/dist/core/auth/AuthRequest.js +2 -0
  779. package/dist/core/auth/BasicAuth.d.ts +8 -0
  780. package/dist/core/auth/BasicAuth.js +27 -0
  781. package/dist/core/auth/BearerToken.d.ts +7 -0
  782. package/dist/core/auth/BearerToken.js +16 -0
  783. package/dist/core/auth/NoOpAuthProvider.d.ts +5 -0
  784. package/dist/core/auth/NoOpAuthProvider.js +9 -0
  785. package/dist/core/auth/index.d.ts +5 -0
  786. package/dist/core/auth/index.js +9 -0
  787. package/dist/core/base64.d.ts +2 -0
  788. package/dist/core/base64.js +26 -0
  789. package/dist/core/exports.d.ts +1 -0
  790. package/dist/core/exports.js +17 -0
  791. package/dist/core/fetcher/APIResponse.d.ts +11 -1
  792. package/dist/core/fetcher/BinaryResponse.d.ts +19 -0
  793. package/dist/core/fetcher/BinaryResponse.js +17 -0
  794. package/dist/core/fetcher/EndpointMetadata.d.ts +13 -0
  795. package/dist/core/fetcher/EndpointMetadata.js +2 -0
  796. package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
  797. package/dist/core/fetcher/EndpointSupplier.js +22 -0
  798. package/dist/core/fetcher/Fetcher.d.ts +17 -7
  799. package/dist/core/fetcher/Fetcher.js +244 -28
  800. package/dist/core/fetcher/Headers.d.ts +2 -0
  801. package/dist/core/fetcher/Headers.js +84 -0
  802. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  803. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  804. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  805. package/dist/core/fetcher/RawResponse.js +44 -0
  806. package/dist/core/fetcher/Supplier.d.ts +1 -1
  807. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  808. package/dist/core/fetcher/createRequestUrl.js +4 -9
  809. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  810. package/dist/core/fetcher/getErrorResponseBody.js +45 -0
  811. package/dist/core/fetcher/getFetchFn.d.ts +1 -4
  812. package/dist/core/fetcher/getFetchFn.js +2 -44
  813. package/dist/core/fetcher/getHeader.js +1 -2
  814. package/dist/core/fetcher/getRequestBody.d.ts +1 -1
  815. package/dist/core/fetcher/getRequestBody.js +9 -6
  816. package/dist/core/fetcher/getResponseBody.js +43 -29
  817. package/dist/core/fetcher/index.d.ts +11 -5
  818. package/dist/core/fetcher/index.js +15 -7
  819. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  820. package/dist/core/fetcher/makeRequest.js +4 -6
  821. package/dist/core/fetcher/requestWithRetries.js +38 -12
  822. package/dist/core/fetcher/signals.d.ts +1 -8
  823. package/dist/core/fetcher/signals.js +2 -15
  824. package/dist/core/headers.d.ts +2 -0
  825. package/dist/core/headers.js +31 -0
  826. package/dist/core/index.d.ts +6 -3
  827. package/dist/core/index.js +24 -11
  828. package/dist/core/json.d.ts +1 -1
  829. package/dist/core/json.js +2 -2
  830. package/dist/core/logging/exports.d.ts +18 -0
  831. package/dist/core/logging/exports.js +45 -0
  832. package/dist/core/logging/index.d.ts +1 -0
  833. package/dist/core/logging/index.js +17 -0
  834. package/dist/core/logging/logger.d.ts +126 -0
  835. package/dist/core/logging/logger.js +144 -0
  836. package/dist/core/runtime/index.d.ts +1 -1
  837. package/dist/core/runtime/index.js +2 -2
  838. package/dist/core/runtime/runtime.js +11 -11
  839. package/dist/core/url/encodePathParam.d.ts +1 -0
  840. package/dist/core/url/encodePathParam.js +21 -0
  841. package/dist/core/url/index.d.ts +3 -0
  842. package/dist/core/url/index.js +9 -0
  843. package/dist/core/url/join.d.ts +1 -0
  844. package/dist/core/url/join.js +68 -0
  845. package/dist/core/url/qs.d.ts +6 -0
  846. package/dist/core/url/qs.js +64 -0
  847. package/dist/environments.d.ts +2 -5
  848. package/dist/environments.js +2 -4
  849. package/dist/errors/RulebricksError.d.ts +4 -4
  850. package/dist/errors/RulebricksError.js +12 -13
  851. package/dist/errors/RulebricksTimeoutError.d.ts +0 -3
  852. package/dist/errors/RulebricksTimeoutError.js +6 -4
  853. package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
  854. package/dist/errors/handleNonStatusCodeError.js +65 -0
  855. package/dist/errors/index.d.ts +2 -2
  856. package/dist/errors/index.js +4 -4
  857. package/dist/exports.d.ts +1 -0
  858. package/dist/exports.js +17 -0
  859. package/dist/forge/operators.d.ts +1 -1
  860. package/dist/forge/rule.js +4 -4
  861. package/dist/forge/types.d.ts +1 -1
  862. package/dist/forge/types.js +2 -2
  863. package/dist/forge/values.d.ts +1 -1
  864. package/dist/forge/values.js +3 -3
  865. package/dist/index.d.ts +6 -5
  866. package/dist/index.js +29 -16
  867. package/environments.d.ts +2 -5
  868. package/environments.js +2 -4
  869. package/errors/RulebricksError.d.ts +4 -4
  870. package/errors/RulebricksError.js +12 -13
  871. package/errors/RulebricksTimeoutError.d.ts +0 -3
  872. package/errors/RulebricksTimeoutError.js +6 -4
  873. package/errors/handleNonStatusCodeError.d.ts +2 -0
  874. package/errors/handleNonStatusCodeError.js +65 -0
  875. package/errors/index.d.ts +2 -2
  876. package/errors/index.js +4 -4
  877. package/exports.d.ts +1 -0
  878. package/exports.js +17 -0
  879. package/forge/operators.d.ts +1 -1
  880. package/forge/rule.js +4 -4
  881. package/forge/types.d.ts +1 -1
  882. package/forge/types.js +2 -2
  883. package/forge/values.d.ts +1 -1
  884. package/forge/values.js +3 -3
  885. package/index.d.ts +6 -5
  886. package/index.js +29 -16
  887. package/package.json +43 -39
  888. package/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts +0 -13
  889. package/api/resources/assets/resources/rules/client/requests/RulesListRequest.js +0 -5
  890. package/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts +0 -15
  891. package/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js +0 -5
  892. package/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts +0 -31
  893. package/api/resources/decisions/client/requests/DecisionsQueryRequest.js +0 -5
  894. package/api/resources/users/types/UserInviteRequestRole.d.ts +0 -13
  895. package/api/resources/users/types/UserInviteRequestRole.js +0 -12
  896. package/api/resources/users/types/index.d.ts +0 -1
  897. package/api/resources/users/types/index.js +0 -17
  898. package/api/resources/values/client/requests/ValuesDeleteRequest.d.ts +0 -15
  899. package/api/resources/values/client/requests/ValuesDeleteRequest.js +0 -5
  900. package/api/resources/values/client/requests/ValuesListRequest.d.ts +0 -24
  901. package/api/resources/values/client/requests/ValuesListRequest.js +0 -5
  902. package/api/types/BulkRuleResponseItemError.d.ts +0 -7
  903. package/api/types/BulkRuleResponseItemError.js +0 -5
  904. package/api/types/ParallelSolveRequestValue.d.ts +0 -11
  905. package/api/types/ParallelSolveRequestValue.js +0 -5
  906. package/api/types/SchemaFieldDefaultValue.d.ts +0 -7
  907. package/api/types/SchemaFieldDefaultValue.js +0 -5
  908. package/api/types/SchemaFieldType.d.ts +0 -14
  909. package/api/types/SchemaFieldType.js +0 -13
  910. package/api/types/TestTestState.d.ts +0 -19
  911. package/api/types/TestTestState.js +0 -5
  912. package/api/types/TestTestStateConditionsItemValue.d.ts +0 -7
  913. package/api/types/TestTestStateConditionsItemValue.js +0 -5
  914. package/api/types/TestTestStateEvaluationError.d.ts +0 -7
  915. package/api/types/TestTestStateEvaluationError.js +0 -5
  916. package/api/types/UserInviteResponseUser.d.ts +0 -11
  917. package/api/types/UserInviteResponseUser.js +0 -5
  918. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  919. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  920. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
  921. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
  922. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  923. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  924. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  925. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
  926. package/core/schemas/Schema.d.ts +0 -87
  927. package/core/schemas/Schema.js +0 -24
  928. package/core/schemas/builders/bigint/bigint.d.ts +0 -2
  929. package/core/schemas/builders/bigint/bigint.js +0 -54
  930. package/core/schemas/builders/bigint/index.d.ts +0 -1
  931. package/core/schemas/builders/bigint/index.js +0 -5
  932. package/core/schemas/builders/date/date.d.ts +0 -2
  933. package/core/schemas/builders/date/date.js +0 -63
  934. package/core/schemas/builders/date/index.d.ts +0 -1
  935. package/core/schemas/builders/date/index.js +0 -5
  936. package/core/schemas/builders/enum/enum.d.ts +0 -2
  937. package/core/schemas/builders/enum/enum.js +0 -39
  938. package/core/schemas/builders/enum/index.d.ts +0 -1
  939. package/core/schemas/builders/enum/index.js +0 -5
  940. package/core/schemas/builders/index.d.ts +0 -14
  941. package/core/schemas/builders/index.js +0 -30
  942. package/core/schemas/builders/lazy/index.d.ts +0 -3
  943. package/core/schemas/builders/lazy/index.js +0 -7
  944. package/core/schemas/builders/lazy/lazy.d.ts +0 -5
  945. package/core/schemas/builders/lazy/lazy.js +0 -25
  946. package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
  947. package/core/schemas/builders/lazy/lazyObject.js +0 -12
  948. package/core/schemas/builders/list/index.d.ts +0 -1
  949. package/core/schemas/builders/list/index.js +0 -5
  950. package/core/schemas/builders/list/list.d.ts +0 -2
  951. package/core/schemas/builders/list/list.js +0 -55
  952. package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
  953. package/core/schemas/builders/literals/booleanLiteral.js +0 -29
  954. package/core/schemas/builders/literals/index.d.ts +0 -2
  955. package/core/schemas/builders/literals/index.js +0 -7
  956. package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
  957. package/core/schemas/builders/literals/stringLiteral.js +0 -29
  958. package/core/schemas/builders/object/index.d.ts +0 -6
  959. package/core/schemas/builders/object/index.js +0 -11
  960. package/core/schemas/builders/object/object.d.ts +0 -3
  961. package/core/schemas/builders/object/object.js +0 -262
  962. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
  963. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
  964. package/core/schemas/builders/object/property.d.ts +0 -8
  965. package/core/schemas/builders/object/property.js +0 -16
  966. package/core/schemas/builders/object/types.d.ts +0 -31
  967. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
  968. package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
  969. package/core/schemas/builders/object-like/index.d.ts +0 -2
  970. package/core/schemas/builders/object-like/index.js +0 -6
  971. package/core/schemas/builders/object-like/types.d.ts +0 -7
  972. package/core/schemas/builders/primitives/any.d.ts +0 -1
  973. package/core/schemas/builders/primitives/any.js +0 -6
  974. package/core/schemas/builders/primitives/boolean.d.ts +0 -1
  975. package/core/schemas/builders/primitives/boolean.js +0 -25
  976. package/core/schemas/builders/primitives/index.d.ts +0 -5
  977. package/core/schemas/builders/primitives/index.js +0 -13
  978. package/core/schemas/builders/primitives/number.d.ts +0 -1
  979. package/core/schemas/builders/primitives/number.js +0 -25
  980. package/core/schemas/builders/primitives/string.d.ts +0 -1
  981. package/core/schemas/builders/primitives/string.js +0 -25
  982. package/core/schemas/builders/primitives/unknown.d.ts +0 -1
  983. package/core/schemas/builders/primitives/unknown.js +0 -6
  984. package/core/schemas/builders/record/index.d.ts +0 -2
  985. package/core/schemas/builders/record/index.js +0 -5
  986. package/core/schemas/builders/record/record.d.ts +0 -3
  987. package/core/schemas/builders/record/record.js +0 -94
  988. package/core/schemas/builders/record/types.d.ts +0 -4
  989. package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
  990. package/core/schemas/builders/schema-utils/JsonError.js +0 -12
  991. package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
  992. package/core/schemas/builders/schema-utils/ParseError.js +0 -12
  993. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
  994. package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -146
  995. package/core/schemas/builders/schema-utils/index.d.ts +0 -4
  996. package/core/schemas/builders/schema-utils/index.js +0 -11
  997. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
  998. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
  999. package/core/schemas/builders/set/index.d.ts +0 -1
  1000. package/core/schemas/builders/set/index.js +0 -5
  1001. package/core/schemas/builders/set/set.d.ts +0 -2
  1002. package/core/schemas/builders/set/set.js +0 -44
  1003. package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
  1004. package/core/schemas/builders/undiscriminated-union/index.js +0 -5
  1005. package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
  1006. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
  1007. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
  1008. package/core/schemas/builders/union/discriminant.d.ts +0 -5
  1009. package/core/schemas/builders/union/discriminant.js +0 -10
  1010. package/core/schemas/builders/union/index.d.ts +0 -4
  1011. package/core/schemas/builders/union/index.js +0 -7
  1012. package/core/schemas/builders/union/types.d.ts +0 -13
  1013. package/core/schemas/builders/union/union.d.ts +0 -4
  1014. package/core/schemas/builders/union/union.js +0 -130
  1015. package/core/schemas/index.d.ts +0 -2
  1016. package/core/schemas/index.js +0 -17
  1017. package/core/schemas/utils/MaybePromise.d.ts +0 -1
  1018. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
  1019. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
  1020. package/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
  1021. package/core/schemas/utils/entries.d.ts +0 -1
  1022. package/core/schemas/utils/entries.js +0 -7
  1023. package/core/schemas/utils/filterObject.d.ts +0 -1
  1024. package/core/schemas/utils/filterObject.js +0 -14
  1025. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
  1026. package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
  1027. package/core/schemas/utils/isPlainObject.d.ts +0 -1
  1028. package/core/schemas/utils/isPlainObject.js +0 -18
  1029. package/core/schemas/utils/keys.d.ts +0 -1
  1030. package/core/schemas/utils/keys.js +0 -7
  1031. package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
  1032. package/core/schemas/utils/maybeSkipValidation.js +0 -28
  1033. package/core/schemas/utils/partition.d.ts +0 -1
  1034. package/core/schemas/utils/partition.js +0 -16
  1035. package/dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts +0 -13
  1036. package/dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.js +0 -5
  1037. package/dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts +0 -15
  1038. package/dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js +0 -5
  1039. package/dist/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts +0 -31
  1040. package/dist/api/resources/decisions/client/requests/DecisionsQueryRequest.js +0 -5
  1041. package/dist/api/resources/users/types/UserInviteRequestRole.d.ts +0 -13
  1042. package/dist/api/resources/users/types/UserInviteRequestRole.js +0 -12
  1043. package/dist/api/resources/users/types/index.d.ts +0 -1
  1044. package/dist/api/resources/users/types/index.js +0 -17
  1045. package/dist/api/resources/values/client/requests/ValuesDeleteRequest.d.ts +0 -15
  1046. package/dist/api/resources/values/client/requests/ValuesDeleteRequest.js +0 -5
  1047. package/dist/api/resources/values/client/requests/ValuesListRequest.d.ts +0 -24
  1048. package/dist/api/resources/values/client/requests/ValuesListRequest.js +0 -5
  1049. package/dist/api/types/BulkRuleResponseItemError.d.ts +0 -7
  1050. package/dist/api/types/BulkRuleResponseItemError.js +0 -5
  1051. package/dist/api/types/ParallelSolveRequestValue.d.ts +0 -11
  1052. package/dist/api/types/ParallelSolveRequestValue.js +0 -5
  1053. package/dist/api/types/SchemaFieldDefaultValue.d.ts +0 -7
  1054. package/dist/api/types/SchemaFieldDefaultValue.js +0 -5
  1055. package/dist/api/types/SchemaFieldType.d.ts +0 -14
  1056. package/dist/api/types/SchemaFieldType.js +0 -13
  1057. package/dist/api/types/TestTestState.d.ts +0 -19
  1058. package/dist/api/types/TestTestState.js +0 -5
  1059. package/dist/api/types/TestTestStateConditionsItemValue.d.ts +0 -7
  1060. package/dist/api/types/TestTestStateConditionsItemValue.js +0 -5
  1061. package/dist/api/types/TestTestStateEvaluationError.d.ts +0 -7
  1062. package/dist/api/types/TestTestStateEvaluationError.js +0 -5
  1063. package/dist/api/types/UserInviteResponseUser.d.ts +0 -11
  1064. package/dist/api/types/UserInviteResponseUser.js +0 -5
  1065. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1066. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1067. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
  1068. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
  1069. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1070. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1071. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1072. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
  1073. package/dist/core/schemas/Schema.d.ts +0 -87
  1074. package/dist/core/schemas/Schema.js +0 -24
  1075. package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
  1076. package/dist/core/schemas/builders/bigint/bigint.js +0 -54
  1077. package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
  1078. package/dist/core/schemas/builders/bigint/index.js +0 -5
  1079. package/dist/core/schemas/builders/date/date.d.ts +0 -2
  1080. package/dist/core/schemas/builders/date/date.js +0 -63
  1081. package/dist/core/schemas/builders/date/index.d.ts +0 -1
  1082. package/dist/core/schemas/builders/date/index.js +0 -5
  1083. package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
  1084. package/dist/core/schemas/builders/enum/enum.js +0 -39
  1085. package/dist/core/schemas/builders/enum/index.d.ts +0 -1
  1086. package/dist/core/schemas/builders/enum/index.js +0 -5
  1087. package/dist/core/schemas/builders/index.d.ts +0 -14
  1088. package/dist/core/schemas/builders/index.js +0 -30
  1089. package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
  1090. package/dist/core/schemas/builders/lazy/index.js +0 -7
  1091. package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
  1092. package/dist/core/schemas/builders/lazy/lazy.js +0 -25
  1093. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
  1094. package/dist/core/schemas/builders/lazy/lazyObject.js +0 -12
  1095. package/dist/core/schemas/builders/list/index.d.ts +0 -1
  1096. package/dist/core/schemas/builders/list/index.js +0 -5
  1097. package/dist/core/schemas/builders/list/list.d.ts +0 -2
  1098. package/dist/core/schemas/builders/list/list.js +0 -55
  1099. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
  1100. package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -29
  1101. package/dist/core/schemas/builders/literals/index.d.ts +0 -2
  1102. package/dist/core/schemas/builders/literals/index.js +0 -7
  1103. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
  1104. package/dist/core/schemas/builders/literals/stringLiteral.js +0 -29
  1105. package/dist/core/schemas/builders/object/index.d.ts +0 -6
  1106. package/dist/core/schemas/builders/object/index.js +0 -11
  1107. package/dist/core/schemas/builders/object/object.d.ts +0 -3
  1108. package/dist/core/schemas/builders/object/object.js +0 -262
  1109. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
  1110. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
  1111. package/dist/core/schemas/builders/object/property.d.ts +0 -8
  1112. package/dist/core/schemas/builders/object/property.js +0 -16
  1113. package/dist/core/schemas/builders/object/types.d.ts +0 -31
  1114. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
  1115. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
  1116. package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
  1117. package/dist/core/schemas/builders/object-like/index.js +0 -6
  1118. package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
  1119. package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
  1120. package/dist/core/schemas/builders/primitives/any.js +0 -6
  1121. package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
  1122. package/dist/core/schemas/builders/primitives/boolean.js +0 -25
  1123. package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
  1124. package/dist/core/schemas/builders/primitives/index.js +0 -13
  1125. package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
  1126. package/dist/core/schemas/builders/primitives/number.js +0 -25
  1127. package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
  1128. package/dist/core/schemas/builders/primitives/string.js +0 -25
  1129. package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
  1130. package/dist/core/schemas/builders/primitives/unknown.js +0 -6
  1131. package/dist/core/schemas/builders/record/index.d.ts +0 -2
  1132. package/dist/core/schemas/builders/record/index.js +0 -5
  1133. package/dist/core/schemas/builders/record/record.d.ts +0 -3
  1134. package/dist/core/schemas/builders/record/record.js +0 -94
  1135. package/dist/core/schemas/builders/record/types.d.ts +0 -4
  1136. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
  1137. package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
  1138. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
  1139. package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
  1140. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
  1141. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -146
  1142. package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
  1143. package/dist/core/schemas/builders/schema-utils/index.js +0 -11
  1144. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
  1145. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
  1146. package/dist/core/schemas/builders/set/index.d.ts +0 -1
  1147. package/dist/core/schemas/builders/set/index.js +0 -5
  1148. package/dist/core/schemas/builders/set/set.d.ts +0 -2
  1149. package/dist/core/schemas/builders/set/set.js +0 -44
  1150. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
  1151. package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
  1152. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
  1153. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
  1154. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
  1155. package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
  1156. package/dist/core/schemas/builders/union/discriminant.js +0 -10
  1157. package/dist/core/schemas/builders/union/index.d.ts +0 -4
  1158. package/dist/core/schemas/builders/union/index.js +0 -7
  1159. package/dist/core/schemas/builders/union/types.d.ts +0 -13
  1160. package/dist/core/schemas/builders/union/union.d.ts +0 -4
  1161. package/dist/core/schemas/builders/union/union.js +0 -130
  1162. package/dist/core/schemas/index.d.ts +0 -2
  1163. package/dist/core/schemas/index.js +0 -17
  1164. package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
  1165. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
  1166. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
  1167. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
  1168. package/dist/core/schemas/utils/entries.d.ts +0 -1
  1169. package/dist/core/schemas/utils/entries.js +0 -7
  1170. package/dist/core/schemas/utils/filterObject.d.ts +0 -1
  1171. package/dist/core/schemas/utils/filterObject.js +0 -14
  1172. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
  1173. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
  1174. package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
  1175. package/dist/core/schemas/utils/isPlainObject.js +0 -18
  1176. package/dist/core/schemas/utils/keys.d.ts +0 -1
  1177. package/dist/core/schemas/utils/keys.js +0 -7
  1178. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
  1179. package/dist/core/schemas/utils/maybeSkipValidation.js +0 -28
  1180. package/dist/core/schemas/utils/partition.d.ts +0 -1
  1181. package/dist/core/schemas/utils/partition.js +0 -16
  1182. package/dist/serialization/index.d.ts +0 -2
  1183. package/dist/serialization/index.js +0 -18
  1184. package/dist/serialization/resources/assets/index.d.ts +0 -1
  1185. package/dist/serialization/resources/assets/index.js +0 -17
  1186. package/dist/serialization/resources/assets/resources/folders/client/index.d.ts +0 -1
  1187. package/dist/serialization/resources/assets/resources/folders/client/index.js +0 -17
  1188. package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -12
  1189. package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +0 -33
  1190. package/dist/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -14
  1191. package/dist/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +0 -35
  1192. package/dist/serialization/resources/assets/resources/folders/client/requests/index.d.ts +0 -2
  1193. package/dist/serialization/resources/assets/resources/folders/client/requests/index.js +0 -7
  1194. package/dist/serialization/resources/assets/resources/folders/index.d.ts +0 -1
  1195. package/dist/serialization/resources/assets/resources/folders/index.js +0 -17
  1196. package/dist/serialization/resources/assets/resources/index.d.ts +0 -4
  1197. package/dist/serialization/resources/assets/resources/index.js +0 -33
  1198. package/dist/serialization/resources/assets/resources/rules/client/index.d.ts +0 -1
  1199. package/dist/serialization/resources/assets/resources/rules/client/index.js +0 -17
  1200. package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +0 -12
  1201. package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +0 -33
  1202. package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +0 -12
  1203. package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +0 -33
  1204. package/dist/serialization/resources/assets/resources/rules/client/requests/index.d.ts +0 -2
  1205. package/dist/serialization/resources/assets/resources/rules/client/requests/index.js +0 -7
  1206. package/dist/serialization/resources/assets/resources/rules/index.d.ts +0 -1
  1207. package/dist/serialization/resources/assets/resources/rules/index.js +0 -17
  1208. package/dist/serialization/resources/index.d.ts +0 -7
  1209. package/dist/serialization/resources/index.js +0 -36
  1210. package/dist/serialization/resources/rules/client/bulkSolve.d.ts +0 -16
  1211. package/dist/serialization/resources/rules/client/bulkSolve.js +0 -34
  1212. package/dist/serialization/resources/rules/client/index.d.ts +0 -1
  1213. package/dist/serialization/resources/rules/client/index.js +0 -27
  1214. package/dist/serialization/resources/rules/index.d.ts +0 -1
  1215. package/dist/serialization/resources/rules/index.js +0 -17
  1216. package/dist/serialization/resources/users/client/index.d.ts +0 -1
  1217. package/dist/serialization/resources/users/client/index.js +0 -17
  1218. package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +0 -15
  1219. package/dist/serialization/resources/users/client/requests/UserInviteRequest.js +0 -36
  1220. package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
  1221. package/dist/serialization/resources/users/client/requests/index.js +0 -5
  1222. package/dist/serialization/resources/users/index.d.ts +0 -3
  1223. package/dist/serialization/resources/users/index.js +0 -19
  1224. package/dist/serialization/resources/users/resources/groups/client/index.d.ts +0 -1
  1225. package/dist/serialization/resources/users/resources/groups/client/index.js +0 -17
  1226. package/dist/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -13
  1227. package/dist/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +0 -34
  1228. package/dist/serialization/resources/users/resources/groups/client/requests/index.d.ts +0 -1
  1229. package/dist/serialization/resources/users/resources/groups/client/requests/index.js +0 -5
  1230. package/dist/serialization/resources/users/resources/groups/index.d.ts +0 -1
  1231. package/dist/serialization/resources/users/resources/groups/index.js +0 -17
  1232. package/dist/serialization/resources/users/resources/index.d.ts +0 -2
  1233. package/dist/serialization/resources/users/resources/index.js +0 -31
  1234. package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +0 -10
  1235. package/dist/serialization/resources/users/types/UserInviteRequestRole.js +0 -31
  1236. package/dist/serialization/resources/users/types/index.d.ts +0 -1
  1237. package/dist/serialization/resources/users/types/index.js +0 -17
  1238. package/dist/serialization/resources/values/client/index.d.ts +0 -1
  1239. package/dist/serialization/resources/values/client/index.js +0 -17
  1240. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -13
  1241. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +0 -34
  1242. package/dist/serialization/resources/values/client/requests/index.d.ts +0 -1
  1243. package/dist/serialization/resources/values/client/requests/index.js +0 -5
  1244. package/dist/serialization/resources/values/index.d.ts +0 -1
  1245. package/dist/serialization/resources/values/index.js +0 -17
  1246. package/dist/serialization/types/BulkRuleResponseItem.d.ts +0 -12
  1247. package/dist/serialization/types/BulkRuleResponseItem.js +0 -33
  1248. package/dist/serialization/types/BulkRuleResponseItemError.d.ts +0 -12
  1249. package/dist/serialization/types/BulkRuleResponseItemError.js +0 -33
  1250. package/dist/serialization/types/CreateTestRequest.d.ts +0 -15
  1251. package/dist/serialization/types/CreateTestRequest.js +0 -36
  1252. package/dist/serialization/types/DecisionLog.d.ts +0 -10
  1253. package/dist/serialization/types/DecisionLog.js +0 -31
  1254. package/dist/serialization/types/DecisionLogResponse.d.ts +0 -14
  1255. package/dist/serialization/types/DecisionLogResponse.js +0 -35
  1256. package/dist/serialization/types/DynamicRequestPayload.d.ts +0 -10
  1257. package/dist/serialization/types/DynamicRequestPayload.js +0 -31
  1258. package/dist/serialization/types/DynamicResponsePayload.d.ts +0 -10
  1259. package/dist/serialization/types/DynamicResponsePayload.js +0 -31
  1260. package/dist/serialization/types/DynamicValue.d.ts +0 -18
  1261. package/dist/serialization/types/DynamicValue.js +0 -39
  1262. package/dist/serialization/types/DynamicValueListResponse.d.ts +0 -11
  1263. package/dist/serialization/types/DynamicValueListResponse.js +0 -32
  1264. package/dist/serialization/types/Error_.d.ts +0 -12
  1265. package/dist/serialization/types/Error_.js +0 -33
  1266. package/dist/serialization/types/FlowBase.d.ts +0 -15
  1267. package/dist/serialization/types/FlowBase.js +0 -36
  1268. package/dist/serialization/types/FlowDetail.d.ts +0 -14
  1269. package/dist/serialization/types/FlowDetail.js +0 -37
  1270. package/dist/serialization/types/FlowExecutionError.d.ts +0 -14
  1271. package/dist/serialization/types/FlowExecutionError.js +0 -35
  1272. package/dist/serialization/types/FlowListResponse.d.ts +0 -11
  1273. package/dist/serialization/types/FlowListResponse.js +0 -32
  1274. package/dist/serialization/types/Folder.d.ts +0 -15
  1275. package/dist/serialization/types/Folder.js +0 -36
  1276. package/dist/serialization/types/FolderListResponse.d.ts +0 -11
  1277. package/dist/serialization/types/FolderListResponse.js +0 -32
  1278. package/dist/serialization/types/ParallelSolveRequest.d.ts +0 -11
  1279. package/dist/serialization/types/ParallelSolveRequest.js +0 -32
  1280. package/dist/serialization/types/ParallelSolveRequestValue.d.ts +0 -14
  1281. package/dist/serialization/types/ParallelSolveRequestValue.js +0 -36
  1282. package/dist/serialization/types/ParallelSolveResponse.d.ts +0 -11
  1283. package/dist/serialization/types/ParallelSolveResponse.js +0 -32
  1284. package/dist/serialization/types/RuleBase.d.ts +0 -15
  1285. package/dist/serialization/types/RuleBase.js +0 -36
  1286. package/dist/serialization/types/RuleDetail.d.ts +0 -18
  1287. package/dist/serialization/types/RuleDetail.js +0 -41
  1288. package/dist/serialization/types/RuleExport.d.ts +0 -10
  1289. package/dist/serialization/types/RuleExport.js +0 -31
  1290. package/dist/serialization/types/RuleListResponse.d.ts +0 -11
  1291. package/dist/serialization/types/RuleListResponse.js +0 -32
  1292. package/dist/serialization/types/RuleUsage.d.ts +0 -17
  1293. package/dist/serialization/types/RuleUsage.js +0 -38
  1294. package/dist/serialization/types/SchemaField.d.ts +0 -21
  1295. package/dist/serialization/types/SchemaField.js +0 -42
  1296. package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +0 -10
  1297. package/dist/serialization/types/SchemaFieldDefaultValue.js +0 -37
  1298. package/dist/serialization/types/SchemaFieldType.d.ts +0 -10
  1299. package/dist/serialization/types/SchemaFieldType.js +0 -31
  1300. package/dist/serialization/types/SuccessMessage.d.ts +0 -12
  1301. package/dist/serialization/types/SuccessMessage.js +0 -33
  1302. package/dist/serialization/types/Test.d.ts +0 -21
  1303. package/dist/serialization/types/Test.js +0 -42
  1304. package/dist/serialization/types/TestListResponse.d.ts +0 -11
  1305. package/dist/serialization/types/TestListResponse.js +0 -32
  1306. package/dist/serialization/types/TestTestState.d.ts +0 -19
  1307. package/dist/serialization/types/TestTestState.js +0 -42
  1308. package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +0 -13
  1309. package/dist/serialization/types/TestTestStateConditionsItemValue.js +0 -34
  1310. package/dist/serialization/types/TestTestStateEvaluationError.d.ts +0 -10
  1311. package/dist/serialization/types/TestTestStateEvaluationError.js +0 -31
  1312. package/dist/serialization/types/UsageStatistics.d.ts +0 -17
  1313. package/dist/serialization/types/UsageStatistics.js +0 -38
  1314. package/dist/serialization/types/UserGroup.d.ts +0 -15
  1315. package/dist/serialization/types/UserGroup.js +0 -36
  1316. package/dist/serialization/types/UserGroupListResponse.d.ts +0 -11
  1317. package/dist/serialization/types/UserGroupListResponse.js +0 -32
  1318. package/dist/serialization/types/UserInviteResponse.d.ts +0 -14
  1319. package/dist/serialization/types/UserInviteResponse.js +0 -35
  1320. package/dist/serialization/types/UserInviteResponseUser.d.ts +0 -14
  1321. package/dist/serialization/types/UserInviteResponseUser.js +0 -35
  1322. package/dist/serialization/types/ValueLimits.d.ts +0 -15
  1323. package/dist/serialization/types/ValueLimits.js +0 -36
  1324. package/dist/serialization/types/index.d.ts +0 -39
  1325. package/dist/serialization/types/index.js +0 -55
  1326. package/serialization/index.d.ts +0 -2
  1327. package/serialization/index.js +0 -18
  1328. package/serialization/resources/assets/index.d.ts +0 -1
  1329. package/serialization/resources/assets/index.js +0 -17
  1330. package/serialization/resources/assets/resources/folders/client/index.d.ts +0 -1
  1331. package/serialization/resources/assets/resources/folders/client/index.js +0 -17
  1332. package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -12
  1333. package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +0 -33
  1334. package/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -14
  1335. package/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +0 -35
  1336. package/serialization/resources/assets/resources/folders/client/requests/index.d.ts +0 -2
  1337. package/serialization/resources/assets/resources/folders/client/requests/index.js +0 -7
  1338. package/serialization/resources/assets/resources/folders/index.d.ts +0 -1
  1339. package/serialization/resources/assets/resources/folders/index.js +0 -17
  1340. package/serialization/resources/assets/resources/index.d.ts +0 -4
  1341. package/serialization/resources/assets/resources/index.js +0 -33
  1342. package/serialization/resources/assets/resources/rules/client/index.d.ts +0 -1
  1343. package/serialization/resources/assets/resources/rules/client/index.js +0 -17
  1344. package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +0 -12
  1345. package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +0 -33
  1346. package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +0 -12
  1347. package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +0 -33
  1348. package/serialization/resources/assets/resources/rules/client/requests/index.d.ts +0 -2
  1349. package/serialization/resources/assets/resources/rules/client/requests/index.js +0 -7
  1350. package/serialization/resources/assets/resources/rules/index.d.ts +0 -1
  1351. package/serialization/resources/assets/resources/rules/index.js +0 -17
  1352. package/serialization/resources/index.d.ts +0 -7
  1353. package/serialization/resources/index.js +0 -36
  1354. package/serialization/resources/rules/client/bulkSolve.d.ts +0 -16
  1355. package/serialization/resources/rules/client/bulkSolve.js +0 -34
  1356. package/serialization/resources/rules/client/index.d.ts +0 -1
  1357. package/serialization/resources/rules/client/index.js +0 -27
  1358. package/serialization/resources/rules/index.d.ts +0 -1
  1359. package/serialization/resources/rules/index.js +0 -17
  1360. package/serialization/resources/users/client/index.d.ts +0 -1
  1361. package/serialization/resources/users/client/index.js +0 -17
  1362. package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +0 -15
  1363. package/serialization/resources/users/client/requests/UserInviteRequest.js +0 -36
  1364. package/serialization/resources/users/client/requests/index.d.ts +0 -1
  1365. package/serialization/resources/users/client/requests/index.js +0 -5
  1366. package/serialization/resources/users/index.d.ts +0 -3
  1367. package/serialization/resources/users/index.js +0 -19
  1368. package/serialization/resources/users/resources/groups/client/index.d.ts +0 -1
  1369. package/serialization/resources/users/resources/groups/client/index.js +0 -17
  1370. package/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -13
  1371. package/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +0 -34
  1372. package/serialization/resources/users/resources/groups/client/requests/index.d.ts +0 -1
  1373. package/serialization/resources/users/resources/groups/client/requests/index.js +0 -5
  1374. package/serialization/resources/users/resources/groups/index.d.ts +0 -1
  1375. package/serialization/resources/users/resources/groups/index.js +0 -17
  1376. package/serialization/resources/users/resources/index.d.ts +0 -2
  1377. package/serialization/resources/users/resources/index.js +0 -31
  1378. package/serialization/resources/users/types/UserInviteRequestRole.d.ts +0 -10
  1379. package/serialization/resources/users/types/UserInviteRequestRole.js +0 -31
  1380. package/serialization/resources/users/types/index.d.ts +0 -1
  1381. package/serialization/resources/users/types/index.js +0 -17
  1382. package/serialization/resources/values/client/index.d.ts +0 -1
  1383. package/serialization/resources/values/client/index.js +0 -17
  1384. package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -13
  1385. package/serialization/resources/values/client/requests/UpdateValuesRequest.js +0 -34
  1386. package/serialization/resources/values/client/requests/index.d.ts +0 -1
  1387. package/serialization/resources/values/client/requests/index.js +0 -5
  1388. package/serialization/resources/values/index.d.ts +0 -1
  1389. package/serialization/resources/values/index.js +0 -17
  1390. package/serialization/types/BulkRuleResponseItem.d.ts +0 -12
  1391. package/serialization/types/BulkRuleResponseItem.js +0 -33
  1392. package/serialization/types/BulkRuleResponseItemError.d.ts +0 -12
  1393. package/serialization/types/BulkRuleResponseItemError.js +0 -33
  1394. package/serialization/types/CreateTestRequest.d.ts +0 -15
  1395. package/serialization/types/CreateTestRequest.js +0 -36
  1396. package/serialization/types/DecisionLog.d.ts +0 -10
  1397. package/serialization/types/DecisionLog.js +0 -31
  1398. package/serialization/types/DecisionLogResponse.d.ts +0 -14
  1399. package/serialization/types/DecisionLogResponse.js +0 -35
  1400. package/serialization/types/DynamicRequestPayload.d.ts +0 -10
  1401. package/serialization/types/DynamicRequestPayload.js +0 -31
  1402. package/serialization/types/DynamicResponsePayload.d.ts +0 -10
  1403. package/serialization/types/DynamicResponsePayload.js +0 -31
  1404. package/serialization/types/DynamicValue.d.ts +0 -18
  1405. package/serialization/types/DynamicValue.js +0 -39
  1406. package/serialization/types/DynamicValueListResponse.d.ts +0 -11
  1407. package/serialization/types/DynamicValueListResponse.js +0 -32
  1408. package/serialization/types/Error_.d.ts +0 -12
  1409. package/serialization/types/Error_.js +0 -33
  1410. package/serialization/types/FlowBase.d.ts +0 -15
  1411. package/serialization/types/FlowBase.js +0 -36
  1412. package/serialization/types/FlowDetail.d.ts +0 -14
  1413. package/serialization/types/FlowDetail.js +0 -37
  1414. package/serialization/types/FlowExecutionError.d.ts +0 -14
  1415. package/serialization/types/FlowExecutionError.js +0 -35
  1416. package/serialization/types/FlowListResponse.d.ts +0 -11
  1417. package/serialization/types/FlowListResponse.js +0 -32
  1418. package/serialization/types/Folder.d.ts +0 -15
  1419. package/serialization/types/Folder.js +0 -36
  1420. package/serialization/types/FolderListResponse.d.ts +0 -11
  1421. package/serialization/types/FolderListResponse.js +0 -32
  1422. package/serialization/types/ParallelSolveRequest.d.ts +0 -11
  1423. package/serialization/types/ParallelSolveRequest.js +0 -32
  1424. package/serialization/types/ParallelSolveRequestValue.d.ts +0 -14
  1425. package/serialization/types/ParallelSolveRequestValue.js +0 -36
  1426. package/serialization/types/ParallelSolveResponse.d.ts +0 -11
  1427. package/serialization/types/ParallelSolveResponse.js +0 -32
  1428. package/serialization/types/RuleBase.d.ts +0 -15
  1429. package/serialization/types/RuleBase.js +0 -36
  1430. package/serialization/types/RuleDetail.d.ts +0 -18
  1431. package/serialization/types/RuleDetail.js +0 -41
  1432. package/serialization/types/RuleExport.d.ts +0 -10
  1433. package/serialization/types/RuleExport.js +0 -31
  1434. package/serialization/types/RuleListResponse.d.ts +0 -11
  1435. package/serialization/types/RuleListResponse.js +0 -32
  1436. package/serialization/types/RuleUsage.d.ts +0 -17
  1437. package/serialization/types/RuleUsage.js +0 -38
  1438. package/serialization/types/SchemaField.d.ts +0 -21
  1439. package/serialization/types/SchemaField.js +0 -42
  1440. package/serialization/types/SchemaFieldDefaultValue.d.ts +0 -10
  1441. package/serialization/types/SchemaFieldDefaultValue.js +0 -37
  1442. package/serialization/types/SchemaFieldType.d.ts +0 -10
  1443. package/serialization/types/SchemaFieldType.js +0 -31
  1444. package/serialization/types/SuccessMessage.d.ts +0 -12
  1445. package/serialization/types/SuccessMessage.js +0 -33
  1446. package/serialization/types/Test.d.ts +0 -21
  1447. package/serialization/types/Test.js +0 -42
  1448. package/serialization/types/TestListResponse.d.ts +0 -11
  1449. package/serialization/types/TestListResponse.js +0 -32
  1450. package/serialization/types/TestTestState.d.ts +0 -19
  1451. package/serialization/types/TestTestState.js +0 -42
  1452. package/serialization/types/TestTestStateConditionsItemValue.d.ts +0 -13
  1453. package/serialization/types/TestTestStateConditionsItemValue.js +0 -34
  1454. package/serialization/types/TestTestStateEvaluationError.d.ts +0 -10
  1455. package/serialization/types/TestTestStateEvaluationError.js +0 -31
  1456. package/serialization/types/UsageStatistics.d.ts +0 -17
  1457. package/serialization/types/UsageStatistics.js +0 -38
  1458. package/serialization/types/UserGroup.d.ts +0 -15
  1459. package/serialization/types/UserGroup.js +0 -36
  1460. package/serialization/types/UserGroupListResponse.d.ts +0 -11
  1461. package/serialization/types/UserGroupListResponse.js +0 -32
  1462. package/serialization/types/UserInviteResponse.d.ts +0 -14
  1463. package/serialization/types/UserInviteResponse.js +0 -35
  1464. package/serialization/types/UserInviteResponseUser.d.ts +0 -14
  1465. package/serialization/types/UserInviteResponseUser.js +0 -35
  1466. package/serialization/types/ValueLimits.d.ts +0 -15
  1467. package/serialization/types/ValueLimits.js +0 -36
  1468. package/serialization/types/index.d.ts +0 -39
  1469. package/serialization/types/index.js +0 -55
  1470. /package/{core/schemas/builders/object-like/types.js → api/resources/assets/client/requests/index.js} +0 -0
  1471. /package/{core/schemas/builders/object/types.js → api/resources/contexts/client/requests/index.js} +0 -0
  1472. /package/{core/schemas/builders/record/types.js → api/resources/contexts/resources/admin/client/requests/index.js} +0 -0
  1473. /package/{core/schemas/builders/undiscriminated-union/types.js → api/resources/contexts/resources/relationships/client/requests/index.js} +0 -0
  1474. /package/{core/schemas/builders/union/types.js → api/resources/flows/client/requests/index.js} +0 -0
  1475. /package/{core/schemas/utils/MaybePromise.js → api/resources/rules/client/requests/index.js} +0 -0
  1476. /package/{core/schemas/utils/addQuestionMarksToNullableProperties.js → api/resources/tests/resources/flows/client/requests/index.js} +0 -0
  1477. /package/{dist/core/schemas/builders/object-like/types.js → api/resources/tests/resources/rules/client/requests/index.js} +0 -0
  1478. /package/{dist/core/schemas/builders/object/types.js → core/auth/AuthProvider.js} +0 -0
  1479. /package/{dist/core/schemas/builders/record/types.js → core/auth/AuthRequest.js} +0 -0
  1480. /package/{dist/core/schemas/builders/undiscriminated-union/types.js → core/fetcher/EndpointMetadata.js} +0 -0
  1481. /package/dist/{core/schemas/builders/union/types.js → api/resources/assets/client/requests/index.js} +0 -0
  1482. /package/dist/{core/schemas/utils/MaybePromise.js → api/resources/contexts/client/requests/index.js} +0 -0
  1483. /package/dist/{core/schemas/utils/addQuestionMarksToNullableProperties.js → api/resources/contexts/resources/admin/client/requests/index.js} +0 -0
@@ -1,5 +0,0 @@
1
- import { BaseSchema, Schema } from "../../Schema";
2
- export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType;
3
- export declare function lazy<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): Schema<Raw, Parsed>;
4
- export declare function constructLazyBaseSchema<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): BaseSchema<Raw, Parsed>;
5
- export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): SchemaType;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMemoizedSchema = exports.constructLazyBaseSchema = exports.lazy = void 0;
4
- const schema_utils_1 = require("../schema-utils");
5
- function lazy(getter) {
6
- const baseSchema = constructLazyBaseSchema(getter);
7
- return Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema));
8
- }
9
- exports.lazy = lazy;
10
- function constructLazyBaseSchema(getter) {
11
- return {
12
- parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
13
- json: (parsed, opts) => getMemoizedSchema(getter).json(parsed, opts),
14
- getType: () => getMemoizedSchema(getter).getType(),
15
- };
16
- }
17
- exports.constructLazyBaseSchema = constructLazyBaseSchema;
18
- function getMemoizedSchema(getter) {
19
- const castedGetter = getter;
20
- if (castedGetter.__zurg_memoized == null) {
21
- castedGetter.__zurg_memoized = getter();
22
- }
23
- return castedGetter.__zurg_memoized;
24
- }
25
- exports.getMemoizedSchema = getMemoizedSchema;
@@ -1,3 +0,0 @@
1
- import { ObjectSchema } from "../object/types";
2
- import { SchemaGetter } from "./lazy";
3
- export declare function lazyObject<Raw, Parsed>(getter: SchemaGetter<ObjectSchema<Raw, Parsed>>): ObjectSchema<Raw, Parsed>;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.lazyObject = void 0;
4
- const object_1 = require("../object");
5
- const object_like_1 = require("../object-like");
6
- const schema_utils_1 = require("../schema-utils");
7
- const lazy_1 = require("./lazy");
8
- function lazyObject(getter) {
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() });
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));
11
- }
12
- exports.lazyObject = lazyObject;
@@ -1 +0,0 @@
1
- export { list } from "./list";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.list = void 0;
4
- var list_1 = require("./list");
5
- Object.defineProperty(exports, "list", { enumerable: true, get: function () { return list_1.list; } });
@@ -1,2 +0,0 @@
1
- import { Schema } from "../../Schema";
2
- export declare function list<Raw, Parsed>(schema: Schema<Raw, Parsed>): Schema<Raw[], Parsed[]>;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.list = void 0;
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 list(schema) {
9
- const baseSchema = {
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}]`] }));
13
- }),
14
- json: (parsed, opts) => validateAndTransformArray(parsed, (item, index) => {
15
- var _a;
16
- return schema.json(item, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `[${index}]`] }));
17
- }),
18
- getType: () => Schema_1.SchemaType.LIST,
19
- };
20
- return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
21
- }
22
- exports.list = list;
23
- function validateAndTransformArray(value, transformItem) {
24
- if (!Array.isArray(value)) {
25
- return {
26
- ok: false,
27
- errors: [
28
- {
29
- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "list"),
30
- path: [],
31
- },
32
- ],
33
- };
34
- }
35
- const maybeValidItems = value.map((item, index) => transformItem(item, index));
36
- return maybeValidItems.reduce((acc, item) => {
37
- if (acc.ok && item.ok) {
38
- return {
39
- ok: true,
40
- value: [...acc.value, item.value],
41
- };
42
- }
43
- const errors = [];
44
- if (!acc.ok) {
45
- errors.push(...acc.errors);
46
- }
47
- if (!item.ok) {
48
- errors.push(...item.errors);
49
- }
50
- return {
51
- ok: false,
52
- errors,
53
- };
54
- }, { ok: true, value: [] });
55
- }
@@ -1,2 +0,0 @@
1
- import { Schema } from "../../Schema";
2
- export declare function booleanLiteral<V extends boolean>(literal: V): Schema<V, V>;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.booleanLiteral = void 0;
4
- const Schema_1 = require("../../Schema");
5
- const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
- const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
7
- function booleanLiteral(literal) {
8
- const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.BOOLEAN_LITERAL, (value, { breadcrumbsPrefix = [] } = {}) => {
9
- if (value === literal) {
10
- return {
11
- ok: true,
12
- value: literal,
13
- };
14
- }
15
- else {
16
- return {
17
- ok: false,
18
- errors: [
19
- {
20
- path: breadcrumbsPrefix,
21
- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, `${literal.toString()}`),
22
- },
23
- ],
24
- };
25
- }
26
- });
27
- return schemaCreator();
28
- }
29
- exports.booleanLiteral = booleanLiteral;
@@ -1,2 +0,0 @@
1
- export { stringLiteral } from "./stringLiteral";
2
- export { booleanLiteral } from "./booleanLiteral";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.booleanLiteral = exports.stringLiteral = void 0;
4
- var stringLiteral_1 = require("./stringLiteral");
5
- Object.defineProperty(exports, "stringLiteral", { enumerable: true, get: function () { return stringLiteral_1.stringLiteral; } });
6
- var booleanLiteral_1 = require("./booleanLiteral");
7
- Object.defineProperty(exports, "booleanLiteral", { enumerable: true, get: function () { return booleanLiteral_1.booleanLiteral; } });
@@ -1,2 +0,0 @@
1
- import { Schema } from "../../Schema";
2
- export declare function stringLiteral<V extends string>(literal: V): Schema<V, V>;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stringLiteral = void 0;
4
- const Schema_1 = require("../../Schema");
5
- const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
6
- const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
7
- function stringLiteral(literal) {
8
- const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.STRING_LITERAL, (value, { breadcrumbsPrefix = [] } = {}) => {
9
- if (value === literal) {
10
- return {
11
- ok: true,
12
- value: literal,
13
- };
14
- }
15
- else {
16
- return {
17
- ok: false,
18
- errors: [
19
- {
20
- path: breadcrumbsPrefix,
21
- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, `"${literal}"`),
22
- },
23
- ],
24
- };
25
- }
26
- });
27
- return schemaCreator();
28
- }
29
- exports.stringLiteral = stringLiteral;
@@ -1,6 +0,0 @@
1
- export { getObjectUtils, object } from "./object";
2
- export { objectWithoutOptionalProperties } from "./objectWithoutOptionalProperties";
3
- export type { inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas, inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas, } from "./objectWithoutOptionalProperties";
4
- export { isProperty, property } from "./property";
5
- export type { Property } from "./property";
6
- export type { BaseObjectSchema, inferObjectSchemaFromPropertySchemas, inferParsedObject, inferParsedObjectFromPropertySchemas, inferParsedPropertySchema, inferRawKey, inferRawObject, inferRawObjectFromPropertySchemas, inferRawPropertySchema, ObjectSchema, ObjectUtils, PropertySchemas, } from "./types";
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.property = exports.isProperty = exports.objectWithoutOptionalProperties = exports.object = exports.getObjectUtils = void 0;
4
- var object_1 = require("./object");
5
- Object.defineProperty(exports, "getObjectUtils", { enumerable: true, get: function () { return object_1.getObjectUtils; } });
6
- Object.defineProperty(exports, "object", { enumerable: true, get: function () { return object_1.object; } });
7
- var objectWithoutOptionalProperties_1 = require("./objectWithoutOptionalProperties");
8
- Object.defineProperty(exports, "objectWithoutOptionalProperties", { enumerable: true, get: function () { return objectWithoutOptionalProperties_1.objectWithoutOptionalProperties; } });
9
- var property_1 = require("./property");
10
- Object.defineProperty(exports, "isProperty", { enumerable: true, get: function () { return property_1.isProperty; } });
11
- Object.defineProperty(exports, "property", { enumerable: true, get: function () { return property_1.property; } });
@@ -1,3 +0,0 @@
1
- import { BaseObjectSchema, ObjectUtils, PropertySchemas, inferObjectSchemaFromPropertySchemas } from "./types";
2
- export declare function object<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectSchemaFromPropertySchemas<T>;
3
- export declare function getObjectUtils<Raw, Parsed>(schema: BaseObjectSchema<Raw, Parsed>): ObjectUtils<Raw, Parsed>;
@@ -1,262 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getObjectUtils = exports.object = void 0;
4
- const Schema_1 = require("../../Schema");
5
- const entries_1 = require("../../utils/entries");
6
- const filterObject_1 = require("../../utils/filterObject");
7
- const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
8
- const isPlainObject_1 = require("../../utils/isPlainObject");
9
- const keys_1 = require("../../utils/keys");
10
- const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
11
- const partition_1 = require("../../utils/partition");
12
- const object_like_1 = require("../object-like");
13
- const schema_utils_1 = require("../schema-utils");
14
- const property_1 = require("./property");
15
- function object(schemas) {
16
- const baseSchema = {
17
- _getRawProperties: () => Object.entries(schemas).map(([parsedKey, propertySchema]) => (0, property_1.isProperty)(propertySchema) ? propertySchema.rawKey : parsedKey),
18
- _getParsedProperties: () => (0, keys_1.keys)(schemas),
19
- parse: (raw, opts) => {
20
- const rawKeyToProperty = {};
21
- const requiredKeys = [];
22
- for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {
23
- const rawKey = (0, property_1.isProperty)(schemaOrObjectProperty) ? schemaOrObjectProperty.rawKey : parsedKey;
24
- const valueSchema = (0, property_1.isProperty)(schemaOrObjectProperty)
25
- ? schemaOrObjectProperty.valueSchema
26
- : schemaOrObjectProperty;
27
- const property = {
28
- rawKey,
29
- parsedKey: parsedKey,
30
- valueSchema,
31
- };
32
- rawKeyToProperty[rawKey] = property;
33
- if (isSchemaRequired(valueSchema)) {
34
- requiredKeys.push(rawKey);
35
- }
36
- }
37
- return validateAndTransformObject({
38
- value: raw,
39
- requiredKeys,
40
- getProperty: (rawKey) => {
41
- const property = rawKeyToProperty[rawKey];
42
- if (property == null) {
43
- return undefined;
44
- }
45
- return {
46
- transformedKey: property.parsedKey,
47
- transform: (propertyValue) => {
48
- var _a;
49
- return property.valueSchema.parse(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), rawKey] }));
50
- },
51
- };
52
- },
53
- unrecognizedObjectKeys: opts === null || opts === void 0 ? void 0 : opts.unrecognizedObjectKeys,
54
- skipValidation: opts === null || opts === void 0 ? void 0 : opts.skipValidation,
55
- breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
56
- omitUndefined: opts === null || opts === void 0 ? void 0 : opts.omitUndefined,
57
- });
58
- },
59
- json: (parsed, opts) => {
60
- const requiredKeys = [];
61
- for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {
62
- const valueSchema = (0, property_1.isProperty)(schemaOrObjectProperty)
63
- ? schemaOrObjectProperty.valueSchema
64
- : schemaOrObjectProperty;
65
- if (isSchemaRequired(valueSchema)) {
66
- requiredKeys.push(parsedKey);
67
- }
68
- }
69
- return validateAndTransformObject({
70
- value: parsed,
71
- requiredKeys,
72
- getProperty: (parsedKey) => {
73
- const property = schemas[parsedKey];
74
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
75
- if (property == null) {
76
- return undefined;
77
- }
78
- if ((0, property_1.isProperty)(property)) {
79
- return {
80
- transformedKey: property.rawKey,
81
- transform: (propertyValue) => {
82
- var _a;
83
- return property.valueSchema.json(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), parsedKey] }));
84
- },
85
- };
86
- }
87
- else {
88
- return {
89
- transformedKey: parsedKey,
90
- transform: (propertyValue) => {
91
- var _a;
92
- return property.json(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), parsedKey] }));
93
- },
94
- };
95
- }
96
- },
97
- unrecognizedObjectKeys: opts === null || opts === void 0 ? void 0 : opts.unrecognizedObjectKeys,
98
- skipValidation: opts === null || opts === void 0 ? void 0 : opts.skipValidation,
99
- breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
100
- omitUndefined: opts === null || opts === void 0 ? void 0 : opts.omitUndefined,
101
- });
102
- },
103
- getType: () => Schema_1.SchemaType.OBJECT,
104
- };
105
- return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
106
- }
107
- exports.object = object;
108
- function validateAndTransformObject({ value, requiredKeys, getProperty, unrecognizedObjectKeys = "fail", skipValidation = false, breadcrumbsPrefix = [], }) {
109
- if (!(0, isPlainObject_1.isPlainObject)(value)) {
110
- return {
111
- ok: false,
112
- errors: [
113
- {
114
- path: breadcrumbsPrefix,
115
- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
116
- },
117
- ],
118
- };
119
- }
120
- const missingRequiredKeys = new Set(requiredKeys);
121
- const errors = [];
122
- const transformed = {};
123
- for (const [preTransformedKey, preTransformedItemValue] of Object.entries(value)) {
124
- const property = getProperty(preTransformedKey);
125
- if (property != null) {
126
- missingRequiredKeys.delete(preTransformedKey);
127
- const value = property.transform(preTransformedItemValue);
128
- if (value.ok) {
129
- transformed[property.transformedKey] = value.value;
130
- }
131
- else {
132
- transformed[preTransformedKey] = preTransformedItemValue;
133
- errors.push(...value.errors);
134
- }
135
- }
136
- else {
137
- switch (unrecognizedObjectKeys) {
138
- case "fail":
139
- errors.push({
140
- path: [...breadcrumbsPrefix, preTransformedKey],
141
- message: `Unexpected key "${preTransformedKey}"`,
142
- });
143
- break;
144
- case "strip":
145
- break;
146
- case "passthrough":
147
- transformed[preTransformedKey] = preTransformedItemValue;
148
- break;
149
- }
150
- }
151
- }
152
- errors.push(...requiredKeys
153
- .filter((key) => missingRequiredKeys.has(key))
154
- .map((key) => ({
155
- path: breadcrumbsPrefix,
156
- message: `Missing required key "${key}"`,
157
- })));
158
- if (errors.length === 0 || skipValidation) {
159
- return {
160
- ok: true,
161
- value: transformed,
162
- };
163
- }
164
- else {
165
- return {
166
- ok: false,
167
- errors,
168
- };
169
- }
170
- }
171
- function getObjectUtils(schema) {
172
- return {
173
- extend: (extension) => {
174
- const baseSchema = {
175
- _getParsedProperties: () => [...schema._getParsedProperties(), ...extension._getParsedProperties()],
176
- _getRawProperties: () => [...schema._getRawProperties(), ...extension._getRawProperties()],
177
- parse: (raw, opts) => {
178
- return validateAndTransformExtendedObject({
179
- extensionKeys: extension._getRawProperties(),
180
- value: raw,
181
- transformBase: (rawBase) => schema.parse(rawBase, opts),
182
- transformExtension: (rawExtension) => extension.parse(rawExtension, opts),
183
- });
184
- },
185
- json: (parsed, opts) => {
186
- return validateAndTransformExtendedObject({
187
- extensionKeys: extension._getParsedProperties(),
188
- value: parsed,
189
- transformBase: (parsedBase) => schema.json(parsedBase, opts),
190
- transformExtension: (parsedExtension) => extension.json(parsedExtension, opts),
191
- });
192
- },
193
- getType: () => Schema_1.SchemaType.OBJECT,
194
- };
195
- return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
196
- },
197
- passthrough: () => {
198
- const baseSchema = {
199
- _getParsedProperties: () => schema._getParsedProperties(),
200
- _getRawProperties: () => schema._getRawProperties(),
201
- parse: (raw, opts) => {
202
- const transformed = schema.parse(raw, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
203
- if (!transformed.ok) {
204
- return transformed;
205
- }
206
- return {
207
- ok: true,
208
- value: Object.assign(Object.assign({}, raw), transformed.value),
209
- };
210
- },
211
- json: (parsed, opts) => {
212
- const transformed = schema.json(parsed, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
213
- if (!transformed.ok) {
214
- return transformed;
215
- }
216
- return {
217
- ok: true,
218
- value: Object.assign(Object.assign({}, parsed), transformed.value),
219
- };
220
- },
221
- getType: () => Schema_1.SchemaType.OBJECT,
222
- };
223
- return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
224
- },
225
- };
226
- }
227
- exports.getObjectUtils = getObjectUtils;
228
- function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, }) {
229
- const extensionPropertiesSet = new Set(extensionKeys);
230
- const [extensionProperties, baseProperties] = (0, partition_1.partition)((0, keys_1.keys)(value), (key) => extensionPropertiesSet.has(key));
231
- const transformedBase = transformBase((0, filterObject_1.filterObject)(value, baseProperties));
232
- const transformedExtension = transformExtension((0, filterObject_1.filterObject)(value, extensionProperties));
233
- if (transformedBase.ok && transformedExtension.ok) {
234
- return {
235
- ok: true,
236
- value: Object.assign(Object.assign({}, transformedBase.value), transformedExtension.value),
237
- };
238
- }
239
- else {
240
- return {
241
- ok: false,
242
- errors: [
243
- ...(transformedBase.ok ? [] : transformedBase.errors),
244
- ...(transformedExtension.ok ? [] : transformedExtension.errors),
245
- ],
246
- };
247
- }
248
- }
249
- function isSchemaRequired(schema) {
250
- return !isSchemaOptional(schema);
251
- }
252
- function isSchemaOptional(schema) {
253
- switch (schema.getType()) {
254
- case Schema_1.SchemaType.ANY:
255
- case Schema_1.SchemaType.UNKNOWN:
256
- case Schema_1.SchemaType.OPTIONAL:
257
- case Schema_1.SchemaType.OPTIONAL_NULLABLE:
258
- return true;
259
- default:
260
- return false;
261
- }
262
- }
@@ -1,6 +0,0 @@
1
- import { ObjectSchema, PropertySchemas, inferParsedPropertySchema, inferRawObjectFromPropertySchemas } from "./types";
2
- export declare function objectWithoutOptionalProperties<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T>;
3
- export declare type inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T>>;
4
- export declare type inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T extends PropertySchemas<keyof T>> = {
5
- [K in keyof T]: inferParsedPropertySchema<T[K]>;
6
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.objectWithoutOptionalProperties = void 0;
4
- const object_1 = require("./object");
5
- function objectWithoutOptionalProperties(schemas) {
6
- return (0, object_1.object)(schemas);
7
- }
8
- exports.objectWithoutOptionalProperties = objectWithoutOptionalProperties;
@@ -1,8 +0,0 @@
1
- import { Schema } from "../../Schema";
2
- export declare function property<RawKey extends string, RawValue, ParsedValue>(rawKey: RawKey, valueSchema: Schema<RawValue, ParsedValue>): Property<RawKey, RawValue, ParsedValue>;
3
- export interface Property<RawKey extends string, RawValue, ParsedValue> {
4
- rawKey: RawKey;
5
- valueSchema: Schema<RawValue, ParsedValue>;
6
- isProperty: true;
7
- }
8
- export declare function isProperty<O extends Property<any, any, any>>(maybeProperty: unknown): maybeProperty is O;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isProperty = exports.property = void 0;
4
- function property(rawKey, valueSchema) {
5
- return {
6
- rawKey,
7
- valueSchema,
8
- isProperty: true,
9
- };
10
- }
11
- exports.property = property;
12
- function isProperty(maybeProperty) {
13
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
14
- return maybeProperty.isProperty;
15
- }
16
- exports.isProperty = isProperty;
@@ -1,31 +0,0 @@
1
- import { BaseSchema, Schema, inferParsed, inferRaw } from "../../Schema";
2
- import { addQuestionMarksToNullableProperties } from "../../utils/addQuestionMarksToNullableProperties";
3
- import { ObjectLikeUtils } from "../object-like";
4
- import { SchemaUtils } from "../schema-utils";
5
- import { Property } from "./property";
6
- export declare type ObjectSchema<Raw, Parsed> = BaseObjectSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed> & ObjectUtils<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
7
- export interface BaseObjectSchema<Raw, Parsed> extends BaseSchema<Raw, Parsed> {
8
- _getRawProperties: () => (keyof Raw)[];
9
- _getParsedProperties: () => (keyof Parsed)[];
10
- }
11
- export interface ObjectUtils<Raw, Parsed> {
12
- extend: <RawExtension, ParsedExtension>(schemas: ObjectSchema<RawExtension, ParsedExtension>) => ObjectSchema<Raw & RawExtension, Parsed & ParsedExtension>;
13
- passthrough: () => ObjectSchema<Raw & {
14
- [key: string]: unknown;
15
- }, Parsed & {
16
- [key: string]: unknown;
17
- }>;
18
- }
19
- export declare type inferRawObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<infer Raw, any> ? Raw : never;
20
- export declare type inferParsedObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<any, infer Parsed> ? Parsed : never;
21
- export declare type inferObjectSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectFromPropertySchemas<T>>;
22
- export declare type inferRawObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
23
- [ParsedKey in keyof T as inferRawKey<ParsedKey, T[ParsedKey]>]: inferRawPropertySchema<T[ParsedKey]>;
24
- }>;
25
- export declare type inferParsedObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
26
- [K in keyof T]: inferParsedPropertySchema<T[K]>;
27
- }>;
28
- export declare type PropertySchemas<ParsedKeys extends string | number | symbol> = Record<ParsedKeys, Property<any, any, any> | Schema<any, any>>;
29
- export declare type inferRawPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, infer Raw, any> ? Raw : P extends Schema<any, any> ? inferRaw<P> : never;
30
- export declare type inferParsedPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, any, infer Parsed> ? Parsed : P extends Schema<any, any> ? inferParsed<P> : never;
31
- export declare type inferRawKey<ParsedKey extends string | number | symbol, P extends Property<any, any, any> | Schema<any, any>> = P extends Property<infer Raw, any, any> ? Raw : ParsedKey;
@@ -1,9 +0,0 @@
1
- import { BaseSchema } from "../../Schema";
2
- import { ObjectLikeSchema, ObjectLikeUtils } from "./types";
3
- export declare function getObjectLikeUtils<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): ObjectLikeUtils<Raw, Parsed>;
4
- /**
5
- * object-like utils are defined in one file to resolve issues with circular imports
6
- */
7
- export declare function withParsedProperties<RawObjectShape, ParsedObjectShape, Properties>(objectLike: BaseSchema<RawObjectShape, ParsedObjectShape>, properties: {
8
- [K in keyof Properties]: Properties[K] | ((parsed: ParsedObjectShape) => Properties[K]);
9
- }): ObjectLikeSchema<RawObjectShape, ParsedObjectShape & Properties>;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withParsedProperties = exports.getObjectLikeUtils = void 0;
4
- const filterObject_1 = require("../../utils/filterObject");
5
- const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
- const isPlainObject_1 = require("../../utils/isPlainObject");
7
- const schema_utils_1 = require("../schema-utils");
8
- function getObjectLikeUtils(schema) {
9
- return {
10
- withParsedProperties: (properties) => withParsedProperties(schema, properties),
11
- };
12
- }
13
- exports.getObjectLikeUtils = getObjectLikeUtils;
14
- /**
15
- * object-like utils are defined in one file to resolve issues with circular imports
16
- */
17
- function withParsedProperties(objectLike, properties) {
18
- const objectSchema = {
19
- parse: (raw, opts) => {
20
- const parsedObject = objectLike.parse(raw, opts);
21
- if (!parsedObject.ok) {
22
- return parsedObject;
23
- }
24
- const additionalProperties = Object.entries(properties).reduce((processed, [key, value]) => {
25
- return Object.assign(Object.assign({}, processed), { [key]: typeof value === "function" ? value(parsedObject.value) : value });
26
- }, {});
27
- return {
28
- ok: true,
29
- value: Object.assign(Object.assign({}, parsedObject.value), additionalProperties),
30
- };
31
- },
32
- json: (parsed, opts) => {
33
- var _a;
34
- if (!(0, isPlainObject_1.isPlainObject)(parsed)) {
35
- return {
36
- ok: false,
37
- errors: [
38
- {
39
- path: (_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : [],
40
- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(parsed, "object"),
41
- },
42
- ],
43
- };
44
- }
45
- // strip out added properties
46
- const addedPropertyKeys = new Set(Object.keys(properties));
47
- const parsedWithoutAddedProperties = (0, filterObject_1.filterObject)(parsed, Object.keys(parsed).filter((key) => !addedPropertyKeys.has(key)));
48
- return objectLike.json(parsedWithoutAddedProperties, opts);
49
- },
50
- getType: () => objectLike.getType(),
51
- };
52
- return Object.assign(Object.assign(Object.assign({}, objectSchema), (0, schema_utils_1.getSchemaUtils)(objectSchema)), getObjectLikeUtils(objectSchema));
53
- }
54
- exports.withParsedProperties = withParsedProperties;
@@ -1,2 +0,0 @@
1
- export { getObjectLikeUtils, withParsedProperties } from "./getObjectLikeUtils";
2
- export type { ObjectLikeSchema, ObjectLikeUtils } from "./types";