@rulebricks/sdk 1.2.0 → 1.3.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 (505) hide show
  1. package/Client.d.ts +12 -11
  2. package/Client.js +15 -15
  3. package/api/errors/BadRequestError.d.ts +1 -1
  4. package/api/errors/BadRequestError.js +1 -1
  5. package/api/errors/ForbiddenError.d.ts +3 -3
  6. package/api/errors/ForbiddenError.js +1 -1
  7. package/api/errors/InternalServerError.d.ts +1 -1
  8. package/api/errors/InternalServerError.js +1 -1
  9. package/api/errors/NotFoundError.d.ts +1 -1
  10. package/api/errors/NotFoundError.js +1 -1
  11. package/api/resources/assets/client/Client.d.ts +13 -120
  12. package/api/resources/assets/client/Client.js +17 -526
  13. package/api/resources/assets/client/index.d.ts +1 -1
  14. package/api/resources/assets/client/index.js +0 -15
  15. package/api/resources/assets/index.d.ts +1 -0
  16. package/api/resources/assets/index.js +1 -0
  17. package/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
  18. package/api/resources/assets/resources/flows/client/Client.js +116 -0
  19. package/api/resources/assets/resources/flows/client/index.d.ts +1 -0
  20. package/api/resources/assets/resources/flows/index.d.ts +1 -0
  21. package/api/resources/assets/resources/flows/index.js +17 -0
  22. package/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
  23. package/api/resources/assets/resources/folders/client/Client.js +248 -0
  24. package/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
  25. package/api/resources/assets/resources/folders/index.d.ts +1 -0
  26. package/api/resources/assets/resources/folders/index.js +17 -0
  27. package/api/resources/assets/resources/index.d.ts +5 -0
  28. package/api/resources/assets/resources/index.js +34 -0
  29. package/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
  30. package/api/resources/assets/resources/rules/client/Client.js +337 -0
  31. package/{dist/api/resources/assets/client/requests/ListRulesRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
  32. package/{dist/api/resources/assets/client/requests/ExportRuleRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
  33. package/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
  34. package/api/resources/assets/resources/rules/client/requests/index.js +2 -0
  35. package/api/resources/assets/resources/rules/index.d.ts +1 -0
  36. package/api/resources/assets/resources/rules/index.js +17 -0
  37. package/api/resources/decisions/client/Client.d.ts +8 -7
  38. package/api/resources/decisions/client/Client.js +15 -14
  39. package/{dist/api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts → api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
  40. package/api/resources/decisions/client/requests/index.d.ts +1 -1
  41. package/api/resources/flows/client/Client.d.ts +8 -7
  42. package/api/resources/flows/client/Client.js +15 -14
  43. package/api/resources/index.d.ts +0 -1
  44. package/api/resources/index.js +0 -1
  45. package/api/resources/rules/client/Client.d.ts +15 -14
  46. package/api/resources/rules/client/Client.js +35 -34
  47. package/api/resources/tests/client/Client.d.ts +8 -120
  48. package/api/resources/tests/client/Client.js +6 -441
  49. package/api/resources/tests/index.d.ts +1 -0
  50. package/api/resources/tests/index.js +1 -0
  51. package/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
  52. package/api/resources/tests/resources/flows/client/Client.js +257 -0
  53. package/api/resources/tests/resources/flows/client/index.d.ts +1 -0
  54. package/api/resources/tests/resources/flows/client/index.js +2 -0
  55. package/api/resources/tests/resources/flows/index.d.ts +1 -0
  56. package/api/resources/tests/resources/flows/index.js +17 -0
  57. package/api/resources/tests/resources/index.d.ts +2 -0
  58. package/api/resources/tests/resources/index.js +28 -0
  59. package/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
  60. package/api/resources/tests/resources/rules/client/Client.js +257 -0
  61. package/api/resources/tests/resources/rules/client/index.d.ts +1 -0
  62. package/api/resources/tests/resources/rules/client/index.js +2 -0
  63. package/api/resources/tests/resources/rules/index.d.ts +1 -0
  64. package/api/resources/tests/resources/rules/index.js +17 -0
  65. package/api/resources/users/client/Client.d.ts +12 -35
  66. package/api/resources/users/client/Client.js +21 -137
  67. package/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  68. package/api/resources/users/client/requests/index.d.ts +0 -1
  69. package/api/resources/users/index.d.ts +1 -0
  70. package/api/resources/users/index.js +1 -0
  71. package/api/resources/users/resources/groups/client/Client.d.ts +58 -0
  72. package/api/resources/users/resources/groups/client/Client.js +181 -0
  73. package/api/resources/users/resources/groups/client/index.d.ts +1 -0
  74. package/api/resources/users/resources/groups/client/index.js +17 -0
  75. package/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  76. package/api/resources/users/resources/groups/client/requests/index.js +2 -0
  77. package/api/resources/users/resources/groups/index.d.ts +1 -0
  78. package/api/resources/users/resources/groups/index.js +17 -0
  79. package/api/resources/users/resources/index.d.ts +2 -0
  80. package/api/resources/users/resources/index.js +31 -0
  81. package/api/resources/values/client/Client.d.ts +18 -17
  82. package/api/resources/values/client/Client.js +41 -40
  83. package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
  84. package/{dist/api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts → api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
  85. package/{dist/api/resources/values/client/requests/ListDynamicValuesRequest.d.ts → api/resources/values/client/requests/ValuesListRequest.d.ts} +2 -2
  86. package/api/resources/values/client/requests/index.d.ts +2 -2
  87. package/api/types/BooleanValue.d.ts +2 -2
  88. package/api/types/BulkRuleResponseItem.d.ts +2 -2
  89. package/api/types/DecisionLog.d.ts +4 -4
  90. package/api/types/DecisionLogDecision.d.ts +2 -2
  91. package/api/types/DecisionLogResponse.d.ts +2 -2
  92. package/api/types/DynamicValue.d.ts +6 -6
  93. package/api/types/DynamicValueBase.d.ts +2 -2
  94. package/api/types/DynamicValueListResponse.d.ts +2 -2
  95. package/api/types/FlowDetail.d.ts +2 -2
  96. package/api/types/FlowListResponse.d.ts +2 -2
  97. package/api/types/FolderListResponse.d.ts +2 -2
  98. package/api/types/ListValue.d.ts +3 -3
  99. package/api/types/ListValueValueItem.d.ts +4 -0
  100. package/api/types/NumberValue.d.ts +2 -2
  101. package/api/types/ParallelSolveRequest.d.ts +2 -2
  102. package/api/types/ParallelSolveResponse.d.ts +2 -2
  103. package/api/types/RuleDetail.d.ts +5 -5
  104. package/api/types/RuleListResponse.d.ts +2 -2
  105. package/api/types/SchemaField.d.ts +3 -3
  106. package/api/types/StringValue.d.ts +2 -2
  107. package/api/types/Test.d.ts +2 -2
  108. package/api/types/TestListResponse.d.ts +2 -2
  109. package/api/types/TestTestState.d.ts +3 -3
  110. package/api/types/UserGroupListResponse.d.ts +2 -2
  111. package/api/types/UserInviteResponse.d.ts +2 -2
  112. package/api/types/index.d.ts +1 -0
  113. package/api/types/index.js +1 -0
  114. package/dist/Client.d.ts +12 -11
  115. package/dist/Client.js +15 -15
  116. package/dist/api/errors/BadRequestError.d.ts +1 -1
  117. package/dist/api/errors/BadRequestError.js +1 -1
  118. package/dist/api/errors/ForbiddenError.d.ts +3 -3
  119. package/dist/api/errors/ForbiddenError.js +1 -1
  120. package/dist/api/errors/InternalServerError.d.ts +1 -1
  121. package/dist/api/errors/InternalServerError.js +1 -1
  122. package/dist/api/errors/NotFoundError.d.ts +1 -1
  123. package/dist/api/errors/NotFoundError.js +1 -1
  124. package/dist/api/resources/assets/client/Client.d.ts +13 -120
  125. package/dist/api/resources/assets/client/Client.js +17 -526
  126. package/dist/api/resources/assets/client/index.d.ts +1 -1
  127. package/dist/api/resources/assets/client/index.js +0 -15
  128. package/dist/api/resources/assets/index.d.ts +1 -0
  129. package/dist/api/resources/assets/index.js +1 -0
  130. package/dist/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
  131. package/dist/api/resources/assets/resources/flows/client/Client.js +116 -0
  132. package/dist/api/resources/assets/resources/flows/client/index.d.ts +1 -0
  133. package/dist/api/resources/assets/resources/flows/client/index.js +2 -0
  134. package/dist/api/resources/assets/resources/flows/index.d.ts +1 -0
  135. package/dist/api/resources/assets/resources/flows/index.js +17 -0
  136. package/dist/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
  137. package/dist/api/resources/assets/resources/folders/client/Client.js +248 -0
  138. package/dist/api/resources/assets/resources/folders/client/index.d.ts +1 -0
  139. package/dist/api/resources/assets/resources/folders/client/index.js +17 -0
  140. package/dist/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
  141. package/dist/api/resources/assets/resources/folders/client/requests/index.js +2 -0
  142. package/dist/api/resources/assets/resources/folders/index.d.ts +1 -0
  143. package/dist/api/resources/assets/resources/folders/index.js +17 -0
  144. package/dist/api/resources/assets/resources/index.d.ts +5 -0
  145. package/dist/api/resources/assets/resources/index.js +34 -0
  146. package/dist/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
  147. package/dist/api/resources/assets/resources/rules/client/Client.js +337 -0
  148. package/dist/api/resources/assets/resources/rules/client/index.d.ts +1 -0
  149. package/dist/api/resources/assets/resources/rules/client/index.js +17 -0
  150. package/{api/resources/assets/client/requests/ListRulesRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
  151. package/{api/resources/assets/client/requests/ExportRuleRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
  152. package/dist/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
  153. package/dist/api/resources/assets/resources/rules/client/requests/index.js +2 -0
  154. package/dist/api/resources/assets/resources/rules/index.d.ts +1 -0
  155. package/dist/api/resources/assets/resources/rules/index.js +17 -0
  156. package/dist/api/resources/decisions/client/Client.d.ts +8 -7
  157. package/dist/api/resources/decisions/client/Client.js +15 -14
  158. package/{api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts → dist/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
  159. package/dist/api/resources/decisions/client/requests/index.d.ts +1 -1
  160. package/dist/api/resources/flows/client/Client.d.ts +8 -7
  161. package/dist/api/resources/flows/client/Client.js +15 -14
  162. package/dist/api/resources/index.d.ts +0 -1
  163. package/dist/api/resources/index.js +0 -1
  164. package/dist/api/resources/rules/client/Client.d.ts +15 -14
  165. package/dist/api/resources/rules/client/Client.js +35 -34
  166. package/dist/api/resources/tests/client/Client.d.ts +8 -120
  167. package/dist/api/resources/tests/client/Client.js +6 -441
  168. package/dist/api/resources/tests/index.d.ts +1 -0
  169. package/dist/api/resources/tests/index.js +1 -0
  170. package/dist/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
  171. package/dist/api/resources/tests/resources/flows/client/Client.js +257 -0
  172. package/dist/api/resources/tests/resources/flows/client/index.d.ts +1 -0
  173. package/dist/api/resources/tests/resources/flows/client/index.js +2 -0
  174. package/dist/api/resources/tests/resources/flows/index.d.ts +1 -0
  175. package/dist/api/resources/tests/resources/flows/index.js +17 -0
  176. package/dist/api/resources/tests/resources/index.d.ts +2 -0
  177. package/dist/api/resources/tests/resources/index.js +28 -0
  178. package/dist/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
  179. package/dist/api/resources/tests/resources/rules/client/Client.js +257 -0
  180. package/dist/api/resources/tests/resources/rules/client/index.d.ts +1 -0
  181. package/dist/api/resources/tests/resources/rules/client/index.js +2 -0
  182. package/dist/api/resources/tests/resources/rules/index.d.ts +1 -0
  183. package/dist/api/resources/tests/resources/rules/index.js +17 -0
  184. package/dist/api/resources/users/client/Client.d.ts +12 -35
  185. package/dist/api/resources/users/client/Client.js +21 -137
  186. package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  187. package/dist/api/resources/users/client/requests/index.d.ts +0 -1
  188. package/dist/api/resources/users/index.d.ts +1 -0
  189. package/dist/api/resources/users/index.js +1 -0
  190. package/dist/api/resources/users/resources/groups/client/Client.d.ts +58 -0
  191. package/dist/api/resources/users/resources/groups/client/Client.js +181 -0
  192. package/dist/api/resources/users/resources/groups/client/index.d.ts +1 -0
  193. package/dist/api/resources/users/resources/groups/client/index.js +17 -0
  194. package/dist/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  195. package/dist/api/resources/users/resources/groups/client/requests/index.js +2 -0
  196. package/dist/api/resources/users/resources/groups/index.d.ts +1 -0
  197. package/dist/api/resources/users/resources/groups/index.js +17 -0
  198. package/dist/api/resources/users/resources/index.d.ts +2 -0
  199. package/dist/api/resources/users/resources/index.js +31 -0
  200. package/dist/api/resources/values/client/Client.d.ts +18 -17
  201. package/dist/api/resources/values/client/Client.js +41 -40
  202. package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
  203. package/{api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts → dist/api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
  204. package/{api/resources/values/client/requests/ListDynamicValuesRequest.d.ts → dist/api/resources/values/client/requests/ValuesListRequest.d.ts} +2 -2
  205. package/dist/api/resources/values/client/requests/ValuesListRequest.js +5 -0
  206. package/dist/api/resources/values/client/requests/index.d.ts +2 -2
  207. package/dist/api/types/BooleanValue.d.ts +2 -2
  208. package/dist/api/types/BulkRuleResponseItem.d.ts +2 -2
  209. package/dist/api/types/DecisionLog.d.ts +4 -4
  210. package/dist/api/types/DecisionLogDecision.d.ts +2 -2
  211. package/dist/api/types/DecisionLogResponse.d.ts +2 -2
  212. package/dist/api/types/DynamicValue.d.ts +6 -6
  213. package/dist/api/types/DynamicValueBase.d.ts +2 -2
  214. package/dist/api/types/DynamicValueListResponse.d.ts +2 -2
  215. package/dist/api/types/FlowDetail.d.ts +2 -2
  216. package/dist/api/types/FlowListResponse.d.ts +2 -2
  217. package/dist/api/types/FolderListResponse.d.ts +2 -2
  218. package/dist/api/types/ListValue.d.ts +3 -3
  219. package/dist/api/types/ListValueValueItem.d.ts +4 -0
  220. package/dist/api/types/ListValueValueItem.js +5 -0
  221. package/dist/api/types/NumberValue.d.ts +2 -2
  222. package/dist/api/types/ParallelSolveRequest.d.ts +2 -2
  223. package/dist/api/types/ParallelSolveResponse.d.ts +2 -2
  224. package/dist/api/types/RuleDetail.d.ts +5 -5
  225. package/dist/api/types/RuleListResponse.d.ts +2 -2
  226. package/dist/api/types/SchemaField.d.ts +3 -3
  227. package/dist/api/types/StringValue.d.ts +2 -2
  228. package/dist/api/types/Test.d.ts +2 -2
  229. package/dist/api/types/TestListResponse.d.ts +2 -2
  230. package/dist/api/types/TestTestState.d.ts +3 -3
  231. package/dist/api/types/UserGroupListResponse.d.ts +2 -2
  232. package/dist/api/types/UserInviteResponse.d.ts +2 -2
  233. package/dist/api/types/index.d.ts +1 -0
  234. package/dist/api/types/index.js +1 -0
  235. package/dist/environments.d.ts +7 -0
  236. package/dist/environments.js +9 -0
  237. package/dist/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
  238. package/dist/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
  239. package/dist/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
  240. package/dist/errors/RulebricksTimeoutError.js +13 -0
  241. package/dist/errors/index.d.ts +2 -2
  242. package/dist/errors/index.js +5 -5
  243. package/dist/forge/rule.d.ts +2 -2
  244. package/dist/forge/rule.js +8 -8
  245. package/dist/forge/values.d.ts +2 -2
  246. package/dist/forge/values.js +2 -2
  247. package/dist/index.d.ts +4 -3
  248. package/dist/index.js +7 -5
  249. package/dist/serialization/resources/assets/index.d.ts +1 -1
  250. package/dist/serialization/resources/assets/index.js +1 -1
  251. package/dist/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
  252. package/dist/serialization/resources/assets/resources/folders/client/index.js +17 -0
  253. package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
  254. package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
  255. package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.d.ts +4 -4
  256. package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
  257. package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/index.d.ts +0 -2
  258. package/dist/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
  259. package/dist/serialization/resources/assets/resources/folders/index.d.ts +1 -0
  260. package/dist/serialization/resources/assets/resources/folders/index.js +17 -0
  261. package/dist/serialization/resources/assets/resources/index.d.ts +4 -0
  262. package/dist/serialization/resources/assets/resources/index.js +33 -0
  263. package/dist/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
  264. package/dist/serialization/resources/assets/resources/rules/client/index.js +17 -0
  265. package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
  266. package/{serialization/resources/assets → dist/serialization/resources/assets/resources/rules}/client/requests/DeleteRuleRequest.js +1 -1
  267. package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
  268. package/{serialization/resources/assets → dist/serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
  269. package/dist/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
  270. package/dist/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
  271. package/dist/serialization/resources/assets/resources/rules/index.d.ts +1 -0
  272. package/dist/serialization/resources/assets/resources/rules/index.js +17 -0
  273. package/dist/serialization/resources/index.d.ts +1 -2
  274. package/dist/serialization/resources/index.js +1 -2
  275. package/dist/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
  276. package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  277. package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
  278. package/dist/serialization/resources/users/client/requests/index.js +1 -3
  279. package/dist/serialization/resources/users/index.d.ts +1 -0
  280. package/dist/serialization/resources/users/index.js +1 -0
  281. package/dist/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
  282. package/dist/serialization/resources/users/resources/groups/client/index.js +17 -0
  283. package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
  284. package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
  285. package/dist/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  286. package/dist/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
  287. package/dist/serialization/resources/users/resources/groups/index.d.ts +1 -0
  288. package/dist/serialization/resources/users/resources/groups/index.js +17 -0
  289. package/dist/serialization/resources/users/resources/index.d.ts +2 -0
  290. package/dist/serialization/resources/users/resources/index.js +31 -0
  291. package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
  292. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
  293. package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -2
  294. package/dist/serialization/types/BooleanValue.d.ts +2 -2
  295. package/dist/serialization/types/BulkRuleResponseItem.d.ts +2 -2
  296. package/dist/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
  297. package/dist/serialization/types/CreateTestRequest.d.ts +2 -2
  298. package/dist/serialization/types/DecisionLog.d.ts +2 -2
  299. package/dist/serialization/types/DecisionLogDecision.d.ts +2 -2
  300. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
  301. package/dist/serialization/types/DecisionLogRequest.d.ts +2 -2
  302. package/dist/serialization/types/DecisionLogResponse.d.ts +2 -2
  303. package/dist/serialization/types/DynamicRequestPayload.d.ts +2 -2
  304. package/dist/serialization/types/DynamicResponsePayload.d.ts +2 -2
  305. package/dist/serialization/types/DynamicValue.d.ts +2 -2
  306. package/dist/serialization/types/DynamicValueBase.d.ts +2 -2
  307. package/dist/serialization/types/DynamicValueListResponse.d.ts +2 -2
  308. package/dist/serialization/types/Error_.d.ts +2 -2
  309. package/dist/serialization/types/FlowBase.d.ts +2 -2
  310. package/dist/serialization/types/FlowDetail.d.ts +2 -2
  311. package/dist/serialization/types/FlowExecutionError.d.ts +2 -2
  312. package/dist/serialization/types/FlowListResponse.d.ts +2 -2
  313. package/dist/serialization/types/Folder.d.ts +2 -2
  314. package/dist/serialization/types/FolderListResponse.d.ts +2 -2
  315. package/dist/serialization/types/ListValue.d.ts +4 -3
  316. package/dist/serialization/types/ListValue.js +2 -1
  317. package/dist/serialization/types/ListValueValueItem.d.ts +10 -0
  318. package/dist/serialization/types/ListValueValueItem.js +37 -0
  319. package/dist/serialization/types/NumberValue.d.ts +2 -2
  320. package/dist/serialization/types/ParallelSolveRequest.d.ts +2 -2
  321. package/dist/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
  322. package/dist/serialization/types/ParallelSolveResponse.d.ts +2 -2
  323. package/dist/serialization/types/RuleBase.d.ts +2 -2
  324. package/dist/serialization/types/RuleDetail.d.ts +2 -2
  325. package/dist/serialization/types/RuleExport.d.ts +2 -2
  326. package/dist/serialization/types/RuleListResponse.d.ts +2 -2
  327. package/dist/serialization/types/RuleUsage.d.ts +2 -2
  328. package/dist/serialization/types/SchemaField.d.ts +2 -2
  329. package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
  330. package/dist/serialization/types/SchemaFieldType.d.ts +2 -2
  331. package/dist/serialization/types/StringValue.d.ts +2 -2
  332. package/dist/serialization/types/SuccessMessage.d.ts +2 -2
  333. package/dist/serialization/types/Test.d.ts +2 -2
  334. package/dist/serialization/types/TestListResponse.d.ts +2 -2
  335. package/dist/serialization/types/TestTestState.d.ts +2 -2
  336. package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
  337. package/dist/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
  338. package/dist/serialization/types/UsageStatistics.d.ts +2 -2
  339. package/dist/serialization/types/UserGroup.d.ts +2 -2
  340. package/dist/serialization/types/UserGroupListResponse.d.ts +2 -2
  341. package/dist/serialization/types/UserInviteResponse.d.ts +2 -2
  342. package/dist/serialization/types/UserInviteResponseUser.d.ts +2 -2
  343. package/dist/serialization/types/ValueLimits.d.ts +2 -2
  344. package/dist/serialization/types/index.d.ts +1 -0
  345. package/dist/serialization/types/index.js +1 -0
  346. package/environments.d.ts +7 -0
  347. package/environments.js +9 -0
  348. package/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
  349. package/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
  350. package/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
  351. package/errors/RulebricksTimeoutError.js +13 -0
  352. package/errors/index.d.ts +2 -2
  353. package/errors/index.js +5 -5
  354. package/forge/rule.d.ts +2 -2
  355. package/forge/rule.js +8 -8
  356. package/forge/values.d.ts +2 -2
  357. package/forge/values.js +2 -2
  358. package/index.d.ts +4 -3
  359. package/index.js +7 -5
  360. package/package.json +2 -1
  361. package/serialization/resources/assets/index.d.ts +1 -1
  362. package/serialization/resources/assets/index.js +1 -1
  363. package/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
  364. package/serialization/resources/assets/resources/folders/client/index.js +17 -0
  365. package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
  366. package/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
  367. package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.d.ts +4 -4
  368. package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
  369. package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/index.d.ts +0 -2
  370. package/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
  371. package/serialization/resources/assets/resources/folders/index.d.ts +1 -0
  372. package/serialization/resources/assets/resources/folders/index.js +17 -0
  373. package/serialization/resources/assets/resources/index.d.ts +4 -0
  374. package/serialization/resources/assets/resources/index.js +33 -0
  375. package/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
  376. package/serialization/resources/assets/resources/rules/client/index.js +17 -0
  377. package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
  378. package/{dist/serialization/resources/assets → serialization/resources/assets/resources/rules}/client/requests/DeleteRuleRequest.js +1 -1
  379. package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
  380. package/{dist/serialization/resources/assets → serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
  381. package/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
  382. package/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
  383. package/serialization/resources/assets/resources/rules/index.d.ts +1 -0
  384. package/serialization/resources/assets/resources/rules/index.js +17 -0
  385. package/serialization/resources/index.d.ts +1 -2
  386. package/serialization/resources/index.js +1 -2
  387. package/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
  388. package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  389. package/serialization/resources/users/client/requests/index.d.ts +0 -1
  390. package/serialization/resources/users/client/requests/index.js +1 -3
  391. package/serialization/resources/users/index.d.ts +1 -0
  392. package/serialization/resources/users/index.js +1 -0
  393. package/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
  394. package/serialization/resources/users/resources/groups/client/index.js +17 -0
  395. package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
  396. package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
  397. package/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  398. package/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
  399. package/serialization/resources/users/resources/groups/index.d.ts +1 -0
  400. package/serialization/resources/users/resources/groups/index.js +17 -0
  401. package/serialization/resources/users/resources/index.d.ts +2 -0
  402. package/serialization/resources/users/resources/index.js +31 -0
  403. package/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
  404. package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -2
  405. package/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -2
  406. package/serialization/types/BooleanValue.d.ts +2 -2
  407. package/serialization/types/BulkRuleResponseItem.d.ts +2 -2
  408. package/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
  409. package/serialization/types/CreateTestRequest.d.ts +2 -2
  410. package/serialization/types/DecisionLog.d.ts +2 -2
  411. package/serialization/types/DecisionLogDecision.d.ts +2 -2
  412. package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
  413. package/serialization/types/DecisionLogRequest.d.ts +2 -2
  414. package/serialization/types/DecisionLogResponse.d.ts +2 -2
  415. package/serialization/types/DynamicRequestPayload.d.ts +2 -2
  416. package/serialization/types/DynamicResponsePayload.d.ts +2 -2
  417. package/serialization/types/DynamicValue.d.ts +2 -2
  418. package/serialization/types/DynamicValueBase.d.ts +2 -2
  419. package/serialization/types/DynamicValueListResponse.d.ts +2 -2
  420. package/serialization/types/Error_.d.ts +2 -2
  421. package/serialization/types/FlowBase.d.ts +2 -2
  422. package/serialization/types/FlowDetail.d.ts +2 -2
  423. package/serialization/types/FlowExecutionError.d.ts +2 -2
  424. package/serialization/types/FlowListResponse.d.ts +2 -2
  425. package/serialization/types/Folder.d.ts +2 -2
  426. package/serialization/types/FolderListResponse.d.ts +2 -2
  427. package/serialization/types/ListValue.d.ts +4 -3
  428. package/serialization/types/ListValue.js +2 -1
  429. package/serialization/types/ListValueValueItem.d.ts +10 -0
  430. package/serialization/types/ListValueValueItem.js +37 -0
  431. package/serialization/types/NumberValue.d.ts +2 -2
  432. package/serialization/types/ParallelSolveRequest.d.ts +2 -2
  433. package/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
  434. package/serialization/types/ParallelSolveResponse.d.ts +2 -2
  435. package/serialization/types/RuleBase.d.ts +2 -2
  436. package/serialization/types/RuleDetail.d.ts +2 -2
  437. package/serialization/types/RuleExport.d.ts +2 -2
  438. package/serialization/types/RuleListResponse.d.ts +2 -2
  439. package/serialization/types/RuleUsage.d.ts +2 -2
  440. package/serialization/types/SchemaField.d.ts +2 -2
  441. package/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
  442. package/serialization/types/SchemaFieldType.d.ts +2 -2
  443. package/serialization/types/StringValue.d.ts +2 -2
  444. package/serialization/types/SuccessMessage.d.ts +2 -2
  445. package/serialization/types/Test.d.ts +2 -2
  446. package/serialization/types/TestListResponse.d.ts +2 -2
  447. package/serialization/types/TestTestState.d.ts +2 -2
  448. package/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
  449. package/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
  450. package/serialization/types/UsageStatistics.d.ts +2 -2
  451. package/serialization/types/UserGroup.d.ts +2 -2
  452. package/serialization/types/UserGroupListResponse.d.ts +2 -2
  453. package/serialization/types/UserInviteResponse.d.ts +2 -2
  454. package/serialization/types/UserInviteResponseUser.d.ts +2 -2
  455. package/serialization/types/ValueLimits.d.ts +2 -2
  456. package/serialization/types/index.d.ts +1 -0
  457. package/serialization/types/index.js +1 -0
  458. package/api/resources/assets/client/requests/index.d.ts +0 -6
  459. package/dist/api/resources/assets/client/requests/index.d.ts +0 -6
  460. package/dist/errors/RulebricksApiTimeoutError.js +0 -13
  461. package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
  462. package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
  463. package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
  464. package/dist/serialization/resources/assets/client/requests/index.js +0 -11
  465. package/errors/RulebricksApiTimeoutError.js +0 -13
  466. package/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
  467. package/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
  468. package/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
  469. package/serialization/resources/assets/client/requests/index.js +0 -11
  470. /package/api/resources/assets/{client/requests → resources/flows/client}/index.js +0 -0
  471. /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.d.ts +0 -0
  472. /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.js +0 -0
  473. /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
  474. /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +0 -0
  475. /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
  476. /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
  477. /package/{dist/api/resources/assets → api/resources/assets/resources/folders}/client/requests/index.js +0 -0
  478. /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.d.ts +0 -0
  479. /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.js +0 -0
  480. /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
  481. /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +0 -0
  482. /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
  483. /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
  484. /package/api/resources/assets/{client/requests/ExportRuleRequest.js → resources/rules/client/requests/RulesListRequest.js} +0 -0
  485. /package/api/resources/assets/{client/requests/ListRulesRequest.js → resources/rules/client/requests/RulesPullRequest.js} +0 -0
  486. /package/api/resources/decisions/client/requests/{QueryDecisionsRequest.js → DecisionsQueryRequest.js} +0 -0
  487. /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
  488. /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +0 -0
  489. /package/api/resources/values/client/requests/{DeleteDynamicValueRequest.js → ValuesDeleteRequest.js} +0 -0
  490. /package/api/resources/values/client/requests/{ListDynamicValuesRequest.js → ValuesListRequest.js} +0 -0
  491. /package/{dist/api/resources/assets/client/requests/DeleteFolderRequest.js → api/types/ListValueValueItem.js} +0 -0
  492. /package/dist/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
  493. /package/dist/api/resources/assets/{client/requests/DeleteRuleRequest.js → resources/folders/client/requests/DeleteFolderRequest.js} +0 -0
  494. /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
  495. /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
  496. /package/dist/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
  497. /package/dist/api/resources/assets/{client/requests/ExportRuleRequest.js → resources/rules/client/requests/DeleteRuleRequest.js} +0 -0
  498. /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
  499. /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
  500. /package/dist/api/resources/assets/{client/requests/ListRulesRequest.js → resources/rules/client/requests/RulesListRequest.js} +0 -0
  501. /package/dist/api/resources/{decisions/client/requests/QueryDecisionsRequest.js → assets/resources/rules/client/requests/RulesPullRequest.js} +0 -0
  502. /package/dist/api/resources/{users/client/requests/CreateUserGroupRequest.js → decisions/client/requests/DecisionsQueryRequest.js} +0 -0
  503. /package/dist/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
  504. /package/dist/api/resources/{values/client/requests/DeleteDynamicValueRequest.js → users/resources/groups/client/requests/CreateUserGroupRequest.js} +0 -0
  505. /package/dist/api/resources/values/client/requests/{ListDynamicValuesRequest.js → ValuesDeleteRequest.js} +0 -0
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.groups = void 0;
30
+ exports.groups = __importStar(require("./groups"));
31
+ __exportStar(require("./groups/client/requests"), exports);
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as environments from "../../../../environments";
4
5
  import * as core from "../../../../core";
5
- import * as RulebricksApi from "../../../index";
6
+ import * as Rulebricks from "../../../index";
6
7
  export declare namespace Values {
7
8
  interface Options {
8
- environment: core.Supplier<string>;
9
+ environment?: core.Supplier<environments.RulebricksEnvironment | string>;
9
10
  /** Specify a custom URL to connect the client to. */
10
11
  baseUrl?: core.Supplier<string>;
11
12
  apiKey: core.Supplier<string>;
@@ -30,26 +31,26 @@ export declare class Values {
30
31
  /**
31
32
  * Retrieve all dynamic values for the authenticated user.
32
33
  *
33
- * @param {RulebricksApi.ListDynamicValuesRequest} request
34
+ * @param {Rulebricks.ValuesListRequest} request
34
35
  * @param {Values.RequestOptions} requestOptions - Request-specific configuration.
35
36
  *
36
- * @throws {@link RulebricksApi.InternalServerError}
37
+ * @throws {@link Rulebricks.InternalServerError}
37
38
  *
38
39
  * @example
39
- * await client.values.listDynamicValues()
40
+ * await client.values.list()
40
41
  */
41
- listDynamicValues(request?: RulebricksApi.ListDynamicValuesRequest, requestOptions?: Values.RequestOptions): Promise<RulebricksApi.DynamicValueListResponse>;
42
+ list(request?: Rulebricks.ValuesListRequest, requestOptions?: Values.RequestOptions): Promise<Rulebricks.DynamicValueListResponse>;
42
43
  /**
43
44
  * Update existing dynamic values or add new ones for the authenticated user.
44
45
  *
45
- * @param {RulebricksApi.UpdateValuesRequest} request
46
+ * @param {Rulebricks.UpdateValuesRequest} request
46
47
  * @param {Values.RequestOptions} requestOptions - Request-specific configuration.
47
48
  *
48
- * @throws {@link RulebricksApi.BadRequestError}
49
- * @throws {@link RulebricksApi.InternalServerError}
49
+ * @throws {@link Rulebricks.BadRequestError}
50
+ * @throws {@link Rulebricks.InternalServerError}
50
51
  *
51
52
  * @example
52
- * await client.values.updateValues({
53
+ * await client.values.update({
53
54
  * values: {
54
55
  * "Favorite Color": "blue",
55
56
  * "Age": 30,
@@ -59,23 +60,23 @@ export declare class Values {
59
60
  * accessGroups: ["marketing", "developers"]
60
61
  * })
61
62
  */
62
- updateValues(request: RulebricksApi.UpdateValuesRequest, requestOptions?: Values.RequestOptions): Promise<RulebricksApi.DynamicValueListResponse>;
63
+ update(request: Rulebricks.UpdateValuesRequest, requestOptions?: Values.RequestOptions): Promise<Rulebricks.DynamicValueListResponse>;
63
64
  /**
64
65
  * Delete a specific dynamic value for the authenticated user by its ID.
65
66
  *
66
- * @param {RulebricksApi.DeleteDynamicValueRequest} request
67
+ * @param {Rulebricks.ValuesDeleteRequest} request
67
68
  * @param {Values.RequestOptions} requestOptions - Request-specific configuration.
68
69
  *
69
- * @throws {@link RulebricksApi.BadRequestError}
70
- * @throws {@link RulebricksApi.NotFoundError}
71
- * @throws {@link RulebricksApi.InternalServerError}
70
+ * @throws {@link Rulebricks.BadRequestError}
71
+ * @throws {@link Rulebricks.NotFoundError}
72
+ * @throws {@link Rulebricks.InternalServerError}
72
73
  *
73
74
  * @example
74
- * await client.values.deleteDynamicValue({
75
+ * await client.values.delete({
75
76
  * id: "id"
76
77
  * })
77
78
  */
78
- deleteDynamicValue(request: RulebricksApi.DeleteDynamicValueRequest, requestOptions?: Values.RequestOptions): Promise<RulebricksApi.SuccessMessage>;
79
+ delete(request: Rulebricks.ValuesDeleteRequest, requestOptions?: Values.RequestOptions): Promise<Rulebricks.SuccessMessage>;
79
80
  protected _getCustomAuthorizationHeaders(): Promise<{
80
81
  "x-api-key": string;
81
82
  }>;
@@ -39,8 +39,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
39
39
  };
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Values = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
42
43
  const core = __importStar(require("../../../../core"));
43
- const RulebricksApi = __importStar(require("../../../index"));
44
+ const Rulebricks = __importStar(require("../../../index"));
44
45
  const url_join_1 = __importDefault(require("url-join"));
45
46
  const serializers = __importStar(require("../../../../serialization/index"));
46
47
  const errors = __importStar(require("../../../../errors/index"));
@@ -54,16 +55,16 @@ class Values {
54
55
  /**
55
56
  * Retrieve all dynamic values for the authenticated user.
56
57
  *
57
- * @param {RulebricksApi.ListDynamicValuesRequest} request
58
+ * @param {Rulebricks.ValuesListRequest} request
58
59
  * @param {Values.RequestOptions} requestOptions - Request-specific configuration.
59
60
  *
60
- * @throws {@link RulebricksApi.InternalServerError}
61
+ * @throws {@link Rulebricks.InternalServerError}
61
62
  *
62
63
  * @example
63
- * await client.values.listDynamicValues()
64
+ * await client.values.list()
64
65
  */
65
- listDynamicValues(request = {}, requestOptions) {
66
- var _a;
66
+ list(request = {}, requestOptions) {
67
+ var _a, _b;
67
68
  return __awaiter(this, void 0, void 0, function* () {
68
69
  const { name } = request;
69
70
  const _queryParams = {};
@@ -71,7 +72,7 @@ class Values {
71
72
  _queryParams["name"] = name;
72
73
  }
73
74
  const _response = yield core.fetcher({
74
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "api/v1/values"),
75
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.RulebricksEnvironment.Default, "values"),
75
76
  method: "GET",
76
77
  headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
78
  contentType: "application/json",
@@ -92,9 +93,9 @@ class Values {
92
93
  if (_response.error.reason === "status-code") {
93
94
  switch (_response.error.statusCode) {
94
95
  case 500:
95
- throw new RulebricksApi.InternalServerError(_response.error.body);
96
+ throw new Rulebricks.InternalServerError(_response.error.body);
96
97
  default:
97
- throw new errors.RulebricksApiError({
98
+ throw new errors.RulebricksError({
98
99
  statusCode: _response.error.statusCode,
99
100
  body: _response.error.body,
100
101
  });
@@ -102,14 +103,14 @@ class Values {
102
103
  }
103
104
  switch (_response.error.reason) {
104
105
  case "non-json":
105
- throw new errors.RulebricksApiError({
106
+ throw new errors.RulebricksError({
106
107
  statusCode: _response.error.statusCode,
107
108
  body: _response.error.rawBody,
108
109
  });
109
110
  case "timeout":
110
- throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling GET /api/v1/values.");
111
+ throw new errors.RulebricksTimeoutError("Timeout exceeded when calling GET /values.");
111
112
  case "unknown":
112
- throw new errors.RulebricksApiError({
113
+ throw new errors.RulebricksError({
113
114
  message: _response.error.errorMessage,
114
115
  });
115
116
  }
@@ -118,14 +119,14 @@ class Values {
118
119
  /**
119
120
  * Update existing dynamic values or add new ones for the authenticated user.
120
121
  *
121
- * @param {RulebricksApi.UpdateValuesRequest} request
122
+ * @param {Rulebricks.UpdateValuesRequest} request
122
123
  * @param {Values.RequestOptions} requestOptions - Request-specific configuration.
123
124
  *
124
- * @throws {@link RulebricksApi.BadRequestError}
125
- * @throws {@link RulebricksApi.InternalServerError}
125
+ * @throws {@link Rulebricks.BadRequestError}
126
+ * @throws {@link Rulebricks.InternalServerError}
126
127
  *
127
128
  * @example
128
- * await client.values.updateValues({
129
+ * await client.values.update({
129
130
  * values: {
130
131
  * "Favorite Color": "blue",
131
132
  * "Age": 30,
@@ -135,11 +136,11 @@ class Values {
135
136
  * accessGroups: ["marketing", "developers"]
136
137
  * })
137
138
  */
138
- updateValues(request, requestOptions) {
139
- var _a;
139
+ update(request, requestOptions) {
140
+ var _a, _b;
140
141
  return __awaiter(this, void 0, void 0, function* () {
141
142
  const _response = yield core.fetcher({
142
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "api/v1/values"),
143
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.RulebricksEnvironment.Default, "values"),
143
144
  method: "POST",
144
145
  headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
146
  contentType: "application/json",
@@ -160,11 +161,11 @@ class Values {
160
161
  if (_response.error.reason === "status-code") {
161
162
  switch (_response.error.statusCode) {
162
163
  case 400:
163
- throw new RulebricksApi.BadRequestError(_response.error.body);
164
+ throw new Rulebricks.BadRequestError(_response.error.body);
164
165
  case 500:
165
- throw new RulebricksApi.InternalServerError(_response.error.body);
166
+ throw new Rulebricks.InternalServerError(_response.error.body);
166
167
  default:
167
- throw new errors.RulebricksApiError({
168
+ throw new errors.RulebricksError({
168
169
  statusCode: _response.error.statusCode,
169
170
  body: _response.error.body,
170
171
  });
@@ -172,14 +173,14 @@ class Values {
172
173
  }
173
174
  switch (_response.error.reason) {
174
175
  case "non-json":
175
- throw new errors.RulebricksApiError({
176
+ throw new errors.RulebricksError({
176
177
  statusCode: _response.error.statusCode,
177
178
  body: _response.error.rawBody,
178
179
  });
179
180
  case "timeout":
180
- throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling POST /api/v1/values.");
181
+ throw new errors.RulebricksTimeoutError("Timeout exceeded when calling POST /values.");
181
182
  case "unknown":
182
- throw new errors.RulebricksApiError({
183
+ throw new errors.RulebricksError({
183
184
  message: _response.error.errorMessage,
184
185
  });
185
186
  }
@@ -188,26 +189,26 @@ class Values {
188
189
  /**
189
190
  * Delete a specific dynamic value for the authenticated user by its ID.
190
191
  *
191
- * @param {RulebricksApi.DeleteDynamicValueRequest} request
192
+ * @param {Rulebricks.ValuesDeleteRequest} request
192
193
  * @param {Values.RequestOptions} requestOptions - Request-specific configuration.
193
194
  *
194
- * @throws {@link RulebricksApi.BadRequestError}
195
- * @throws {@link RulebricksApi.NotFoundError}
196
- * @throws {@link RulebricksApi.InternalServerError}
195
+ * @throws {@link Rulebricks.BadRequestError}
196
+ * @throws {@link Rulebricks.NotFoundError}
197
+ * @throws {@link Rulebricks.InternalServerError}
197
198
  *
198
199
  * @example
199
- * await client.values.deleteDynamicValue({
200
+ * await client.values.delete({
200
201
  * id: "id"
201
202
  * })
202
203
  */
203
- deleteDynamicValue(request, requestOptions) {
204
- var _a;
204
+ delete(request, requestOptions) {
205
+ var _a, _b;
205
206
  return __awaiter(this, void 0, void 0, function* () {
206
207
  const { id } = request;
207
208
  const _queryParams = {};
208
209
  _queryParams["id"] = id;
209
210
  const _response = yield core.fetcher({
210
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "api/v1/values"),
211
+ url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.RulebricksEnvironment.Default, "values"),
211
212
  method: "DELETE",
212
213
  headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
214
  contentType: "application/json",
@@ -228,13 +229,13 @@ class Values {
228
229
  if (_response.error.reason === "status-code") {
229
230
  switch (_response.error.statusCode) {
230
231
  case 400:
231
- throw new RulebricksApi.BadRequestError(_response.error.body);
232
+ throw new Rulebricks.BadRequestError(_response.error.body);
232
233
  case 404:
233
- throw new RulebricksApi.NotFoundError(_response.error.body);
234
+ throw new Rulebricks.NotFoundError(_response.error.body);
234
235
  case 500:
235
- throw new RulebricksApi.InternalServerError(_response.error.body);
236
+ throw new Rulebricks.InternalServerError(_response.error.body);
236
237
  default:
237
- throw new errors.RulebricksApiError({
238
+ throw new errors.RulebricksError({
238
239
  statusCode: _response.error.statusCode,
239
240
  body: _response.error.body,
240
241
  });
@@ -242,14 +243,14 @@ class Values {
242
243
  }
243
244
  switch (_response.error.reason) {
244
245
  case "non-json":
245
- throw new errors.RulebricksApiError({
246
+ throw new errors.RulebricksError({
246
247
  statusCode: _response.error.statusCode,
247
248
  body: _response.error.rawBody,
248
249
  });
249
250
  case "timeout":
250
- throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling DELETE /api/v1/values.");
251
+ throw new errors.RulebricksTimeoutError("Timeout exceeded when calling DELETE /values.");
251
252
  case "unknown":
252
- throw new errors.RulebricksApiError({
253
+ throw new errors.RulebricksError({
253
254
  message: _response.error.errorMessage,
254
255
  });
255
256
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../../../../index";
4
+ import * as Rulebricks from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
@@ -16,7 +16,7 @@ import * as RulebricksApi from "../../../../index";
16
16
  */
17
17
  export interface UpdateValuesRequest {
18
18
  /** A flat dictionary of keys and values to update or add. */
19
- values: Record<string, RulebricksApi.UpdateValuesRequestValuesValue>;
19
+ values: Record<string, Rulebricks.UpdateValuesRequestValuesValue>;
20
20
  /** Optional array of access group names or IDs. If omitted and user belongs to access groups, values will be assigned to all user's access groups. Required if values should be restricted to specific access groups. */
21
21
  accessGroups?: string[];
22
22
  }
@@ -7,7 +7,7 @@
7
7
  * id: "id"
8
8
  * }
9
9
  */
10
- export interface DeleteDynamicValueRequest {
10
+ export interface ValuesDeleteRequest {
11
11
  /**
12
12
  * ID of the dynamic value to delete
13
13
  */
@@ -5,9 +5,9 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface ListDynamicValuesRequest {
8
+ export interface ValuesListRequest {
9
9
  /**
10
- * Name of a specific dynamic value to retrieve data for
10
+ * Query all dynamic values containing a specific name
11
11
  */
12
12
  name?: string;
13
13
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,3 @@
1
- export { type ListDynamicValuesRequest } from "./ListDynamicValuesRequest";
1
+ export { type ValuesListRequest } from "./ValuesListRequest";
2
2
  export { type UpdateValuesRequest } from "./UpdateValuesRequest";
3
- export { type DeleteDynamicValueRequest } from "./DeleteDynamicValueRequest";
3
+ export { type ValuesDeleteRequest } from "./ValuesDeleteRequest";
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export interface BooleanValue extends RulebricksApi.DynamicValueBase {
4
+ import * as Rulebricks from "../index";
5
+ export interface BooleanValue extends Rulebricks.DynamicValueBase {
6
6
  /** The boolean value */
7
7
  value?: boolean;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  /**
6
6
  * Individual response item from a bulk rule execution
7
7
  */
8
- export declare type BulkRuleResponseItem = RulebricksApi.DynamicResponsePayload | RulebricksApi.BulkRuleResponseItemError;
8
+ export declare type BulkRuleResponseItem = Rulebricks.DynamicResponsePayload | Rulebricks.BulkRuleResponseItemError;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  export interface DecisionLog {
6
- request?: RulebricksApi.DecisionLogRequest;
7
- response?: RulebricksApi.DecisionLogResponse;
8
- decision?: RulebricksApi.DecisionLogDecision;
6
+ request?: Rulebricks.DecisionLogRequest;
7
+ response?: Rulebricks.DecisionLogResponse;
8
+ decision?: Rulebricks.DecisionLogDecision;
9
9
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  export interface DecisionLogDecision {
6
- conditions?: Record<string, RulebricksApi.DecisionLogDecisionConditionsItemValue>[];
6
+ conditions?: Record<string, Rulebricks.DecisionLogDecisionConditionsItemValue>[];
7
7
  successIdxs?: number[];
8
8
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  export interface DecisionLogResponse {
6
- data?: RulebricksApi.DecisionLog[];
6
+ data?: Rulebricks.DecisionLog[];
7
7
  /** Pagination cursor for next page */
8
8
  cursor?: string;
9
9
  }
@@ -1,19 +1,19 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export declare type DynamicValue = RulebricksApi.DynamicValue.String | RulebricksApi.DynamicValue.Number | RulebricksApi.DynamicValue.Boolean | RulebricksApi.DynamicValue.List;
4
+ import * as Rulebricks from "../index";
5
+ export declare type DynamicValue = Rulebricks.DynamicValue.String | Rulebricks.DynamicValue.Number | Rulebricks.DynamicValue.Boolean | Rulebricks.DynamicValue.List;
6
6
  export declare namespace DynamicValue {
7
- interface String extends RulebricksApi.StringValue {
7
+ interface String extends Rulebricks.StringValue {
8
8
  type: "string";
9
9
  }
10
- interface Number extends RulebricksApi.NumberValue {
10
+ interface Number extends Rulebricks.NumberValue {
11
11
  type: "number";
12
12
  }
13
- interface Boolean extends RulebricksApi.BooleanValue {
13
+ interface Boolean extends Rulebricks.BooleanValue {
14
14
  type: "boolean";
15
15
  }
16
- interface List extends RulebricksApi.ListValue {
16
+ interface List extends Rulebricks.ListValue {
17
17
  type: "list";
18
18
  }
19
19
  }
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  export interface DynamicValueBase {
6
6
  /** Unique identifier for the dynamic value. */
7
7
  id?: string;
8
8
  /** Name of the dynamic value. */
9
9
  name?: string;
10
10
  /** Rules that use this dynamic value. */
11
- usages?: RulebricksApi.RuleUsage[];
11
+ usages?: Rulebricks.RuleUsage[];
12
12
  /** Access groups assigned to this value. */
13
13
  accessGroups?: string[];
14
14
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export declare type DynamicValueListResponse = RulebricksApi.DynamicValue[];
4
+ import * as Rulebricks from "../index";
5
+ export declare type DynamicValueListResponse = Rulebricks.DynamicValue[];
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export interface FlowDetail extends RulebricksApi.FlowBase {
4
+ import * as Rulebricks from "../index";
5
+ export interface FlowDetail extends Rulebricks.FlowBase {
6
6
  /** Whether the flow is published. */
7
7
  published?: boolean;
8
8
  /** The date this flow was last updated. */
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export declare type FlowListResponse = RulebricksApi.FlowDetail[];
4
+ import * as Rulebricks from "../index";
5
+ export declare type FlowListResponse = Rulebricks.FlowDetail[];
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export declare type FolderListResponse = RulebricksApi.Folder[];
4
+ import * as Rulebricks from "../index";
5
+ export declare type FolderListResponse = Rulebricks.Folder[];
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export interface ListValue extends RulebricksApi.DynamicValueBase {
4
+ import * as Rulebricks from "../index";
5
+ export interface ListValue extends Rulebricks.DynamicValueBase {
6
6
  /** The list value */
7
- value?: string[];
7
+ value?: Rulebricks.ListValueValueItem[];
8
8
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ListValueValueItem = string | number | boolean | Record<string, unknown> | unknown[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export interface NumberValue extends RulebricksApi.DynamicValueBase {
4
+ import * as Rulebricks from "../index";
5
+ export interface NumberValue extends Rulebricks.DynamicValueBase {
6
6
  /** The numeric value */
7
7
  value?: number;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  /**
6
6
  * A request containing multiple rule/flow executions to be run in parallel.
7
7
  */
8
- export declare type ParallelSolveRequest = Record<string, RulebricksApi.ParallelSolveRequestValue>;
8
+ export declare type ParallelSolveRequest = Record<string, Rulebricks.ParallelSolveRequestValue>;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  /**
6
6
  * Response from parallel rule/flow execution with results from each execution.
7
7
  */
8
- export declare type ParallelSolveResponse = Record<string, RulebricksApi.DynamicResponsePayload>;
8
+ export declare type ParallelSolveResponse = Record<string, Rulebricks.DynamicResponsePayload>;
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export interface RuleDetail extends RulebricksApi.RuleBase {
4
+ import * as Rulebricks from "../index";
5
+ export interface RuleDetail extends Rulebricks.RuleBase {
6
6
  /** The date this rule was created. */
7
7
  createdAt?: Date;
8
- folder?: RulebricksApi.Folder;
8
+ folder?: Rulebricks.Folder;
9
9
  /** The published request schema for the rule. */
10
- requestSchema?: RulebricksApi.SchemaField[];
10
+ requestSchema?: Rulebricks.SchemaField[];
11
11
  /** The published response schema for the rule. */
12
- responseSchema?: RulebricksApi.SchemaField[];
12
+ responseSchema?: Rulebricks.SchemaField[];
13
13
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
5
- export declare type RuleListResponse = RulebricksApi.RuleDetail[];
4
+ import * as Rulebricks from "../index";
5
+ export declare type RuleListResponse = Rulebricks.RuleDetail[];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as RulebricksApi from "../index";
4
+ import * as Rulebricks from "../index";
5
5
  export interface SchemaField {
6
6
  /** The unique key for this field. */
7
7
  key?: string;
@@ -12,9 +12,9 @@ export interface SchemaField {
12
12
  /** Description of this field. */
13
13
  description?: string;
14
14
  /** Data type of this field. */
15
- type?: RulebricksApi.SchemaFieldType;
15
+ type?: Rulebricks.SchemaFieldType;
16
16
  /** Default value for this field. */
17
- defaultValue?: RulebricksApi.SchemaFieldDefaultValue;
17
+ defaultValue?: Rulebricks.SchemaFieldDefaultValue;
18
18
  /** Computed default value for this field. */
19
19
  defaultComputedValue?: string;
20
20
  /** Transformation expression to apply to this field. */