@rulebricks/sdk 1.2.1 → 1.4.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 (548) hide show
  1. package/Client.d.ts +12 -11
  2. package/Client.js +15 -15
  3. package/README.md +3 -3
  4. package/api/errors/BadRequestError.d.ts +1 -1
  5. package/api/errors/BadRequestError.js +1 -1
  6. package/api/errors/ForbiddenError.d.ts +2 -3
  7. package/api/errors/ForbiddenError.js +1 -1
  8. package/api/errors/InternalServerError.d.ts +1 -1
  9. package/api/errors/InternalServerError.js +1 -1
  10. package/api/errors/NotFoundError.d.ts +1 -1
  11. package/api/errors/NotFoundError.js +1 -1
  12. package/api/resources/assets/client/Client.d.ts +13 -120
  13. package/api/resources/assets/client/Client.js +17 -526
  14. package/api/resources/assets/client/index.d.ts +1 -1
  15. package/api/resources/assets/client/index.js +0 -15
  16. package/api/resources/assets/index.d.ts +1 -0
  17. package/api/resources/assets/index.js +1 -0
  18. package/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
  19. package/api/resources/assets/resources/flows/client/Client.js +116 -0
  20. package/api/resources/assets/resources/flows/client/index.d.ts +1 -0
  21. package/api/resources/assets/resources/flows/index.d.ts +1 -0
  22. package/{dist/serialization/resources/values/types → api/resources/assets/resources/flows}/index.js +1 -1
  23. package/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
  24. package/api/resources/assets/resources/folders/client/Client.js +248 -0
  25. package/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
  26. package/api/resources/assets/resources/folders/index.d.ts +1 -0
  27. package/{dist/api/resources/values/types → api/resources/assets/resources/folders}/index.js +1 -1
  28. package/api/resources/assets/resources/index.d.ts +5 -0
  29. package/api/resources/assets/resources/index.js +34 -0
  30. package/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
  31. package/api/resources/assets/resources/rules/client/Client.js +332 -0
  32. package/{dist/api/resources/assets/client/requests/ListRulesRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
  33. package/{dist/api/resources/assets/client/requests/ExportRuleRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
  34. package/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
  35. package/api/resources/assets/resources/rules/client/requests/index.js +2 -0
  36. package/api/resources/assets/resources/rules/index.d.ts +1 -0
  37. package/api/resources/assets/resources/rules/index.js +17 -0
  38. package/api/resources/decisions/client/Client.d.ts +7 -6
  39. package/api/resources/decisions/client/Client.js +13 -12
  40. package/{dist/api/resources/decisions/client/requests/QueryRequest.d.ts → api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
  41. package/api/resources/decisions/client/requests/index.d.ts +1 -1
  42. package/api/resources/flows/client/Client.d.ts +7 -6
  43. package/api/resources/flows/client/Client.js +13 -12
  44. package/api/resources/index.d.ts +1 -3
  45. package/api/resources/index.js +2 -4
  46. package/api/resources/rules/client/Client.d.ts +15 -14
  47. package/api/resources/rules/client/Client.js +35 -34
  48. package/api/resources/tests/client/Client.d.ts +8 -120
  49. package/api/resources/tests/client/Client.js +6 -441
  50. package/api/resources/tests/index.d.ts +1 -0
  51. package/api/resources/tests/index.js +1 -0
  52. package/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
  53. package/api/resources/tests/resources/flows/client/Client.js +257 -0
  54. package/api/resources/tests/resources/flows/client/index.d.ts +1 -0
  55. package/api/resources/tests/resources/flows/client/index.js +2 -0
  56. package/api/resources/tests/resources/flows/index.d.ts +1 -0
  57. package/api/resources/tests/resources/flows/index.js +17 -0
  58. package/api/resources/tests/resources/index.d.ts +2 -0
  59. package/api/resources/tests/resources/index.js +28 -0
  60. package/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
  61. package/api/resources/tests/resources/rules/client/Client.js +257 -0
  62. package/api/resources/tests/resources/rules/client/index.d.ts +1 -0
  63. package/api/resources/tests/resources/rules/client/index.js +2 -0
  64. package/api/resources/tests/resources/rules/index.d.ts +1 -0
  65. package/api/resources/tests/resources/rules/index.js +17 -0
  66. package/api/resources/users/client/Client.d.ts +12 -35
  67. package/api/resources/users/client/Client.js +21 -137
  68. package/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  69. package/api/resources/users/client/requests/index.d.ts +0 -1
  70. package/api/resources/users/index.d.ts +1 -0
  71. package/api/resources/users/index.js +1 -0
  72. package/api/resources/users/resources/groups/client/Client.d.ts +58 -0
  73. package/api/resources/users/resources/groups/client/Client.js +181 -0
  74. package/api/resources/users/resources/groups/client/index.d.ts +1 -0
  75. package/api/resources/users/resources/groups/client/index.js +17 -0
  76. package/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  77. package/api/resources/users/resources/groups/client/requests/index.js +2 -0
  78. package/api/resources/users/resources/groups/index.d.ts +1 -0
  79. package/api/resources/users/resources/groups/index.js +17 -0
  80. package/api/resources/users/resources/index.d.ts +2 -0
  81. package/api/resources/users/resources/index.js +31 -0
  82. package/api/resources/values/client/Client.d.ts +73 -18
  83. package/api/resources/values/client/Client.js +101 -39
  84. package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +81 -4
  85. package/{dist/api/resources/values/client/requests/DeleteRequest.d.ts → api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
  86. package/api/resources/values/client/requests/ValuesListRequest.d.ts +24 -0
  87. package/api/resources/values/client/requests/index.d.ts +2 -2
  88. package/api/resources/values/index.d.ts +0 -1
  89. package/api/resources/values/index.js +0 -1
  90. package/api/types/BulkRuleResponseItem.d.ts +2 -2
  91. package/api/types/DecisionLog.d.ts +4 -4
  92. package/api/types/DecisionLogDecision.d.ts +2 -2
  93. package/api/types/DecisionLogResponse.d.ts +2 -2
  94. package/api/types/DynamicValue.d.ts +13 -15
  95. package/api/types/DynamicValueListResponse.d.ts +2 -2
  96. package/api/types/FlowDetail.d.ts +2 -2
  97. package/api/types/FlowListResponse.d.ts +2 -2
  98. package/api/types/FolderListResponse.d.ts +2 -2
  99. package/api/types/ParallelSolveRequest.d.ts +2 -2
  100. package/api/types/ParallelSolveResponse.d.ts +2 -2
  101. package/api/types/RuleDetail.d.ts +5 -5
  102. package/api/types/RuleListResponse.d.ts +2 -2
  103. package/api/types/SchemaField.d.ts +3 -3
  104. package/api/types/Test.d.ts +2 -2
  105. package/api/types/TestListResponse.d.ts +2 -2
  106. package/api/types/TestTestState.d.ts +3 -3
  107. package/api/types/UserGroupListResponse.d.ts +2 -2
  108. package/api/types/UserInviteResponse.d.ts +2 -2
  109. package/api/types/index.d.ts +0 -6
  110. package/api/types/index.js +0 -6
  111. package/dist/Client.d.ts +12 -11
  112. package/dist/Client.js +15 -15
  113. package/dist/api/errors/BadRequestError.d.ts +1 -1
  114. package/dist/api/errors/BadRequestError.js +1 -1
  115. package/dist/api/errors/ForbiddenError.d.ts +2 -3
  116. package/dist/api/errors/ForbiddenError.js +1 -1
  117. package/dist/api/errors/InternalServerError.d.ts +1 -1
  118. package/dist/api/errors/InternalServerError.js +1 -1
  119. package/dist/api/errors/NotFoundError.d.ts +1 -1
  120. package/dist/api/errors/NotFoundError.js +1 -1
  121. package/dist/api/resources/assets/client/Client.d.ts +13 -120
  122. package/dist/api/resources/assets/client/Client.js +17 -526
  123. package/dist/api/resources/assets/client/index.d.ts +1 -1
  124. package/dist/api/resources/assets/client/index.js +0 -15
  125. package/dist/api/resources/assets/index.d.ts +1 -0
  126. package/dist/api/resources/assets/index.js +1 -0
  127. package/dist/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
  128. package/dist/api/resources/assets/resources/flows/client/Client.js +116 -0
  129. package/dist/api/resources/assets/resources/flows/client/index.d.ts +1 -0
  130. package/dist/api/resources/assets/resources/flows/client/index.js +2 -0
  131. package/dist/api/resources/assets/resources/flows/index.d.ts +1 -0
  132. package/dist/api/resources/assets/resources/flows/index.js +17 -0
  133. package/dist/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
  134. package/dist/api/resources/assets/resources/folders/client/Client.js +248 -0
  135. package/dist/api/resources/assets/resources/folders/client/index.d.ts +1 -0
  136. package/dist/api/resources/assets/resources/folders/client/index.js +17 -0
  137. package/dist/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
  138. package/dist/api/resources/assets/resources/folders/client/requests/index.js +2 -0
  139. package/dist/api/resources/assets/resources/folders/index.d.ts +1 -0
  140. package/dist/api/resources/assets/resources/folders/index.js +17 -0
  141. package/dist/api/resources/assets/resources/index.d.ts +5 -0
  142. package/dist/api/resources/assets/resources/index.js +34 -0
  143. package/dist/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
  144. package/dist/api/resources/assets/resources/rules/client/Client.js +332 -0
  145. package/dist/api/resources/assets/resources/rules/client/index.d.ts +1 -0
  146. package/dist/api/resources/assets/resources/rules/client/index.js +17 -0
  147. package/{api/resources/assets/client/requests/ListRulesRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
  148. package/{api/resources/assets/client/requests/ExportRuleRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
  149. package/dist/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
  150. package/dist/api/resources/assets/resources/rules/client/requests/index.js +2 -0
  151. package/dist/api/resources/assets/resources/rules/index.d.ts +1 -0
  152. package/dist/api/resources/assets/resources/rules/index.js +17 -0
  153. package/dist/api/resources/decisions/client/Client.d.ts +7 -6
  154. package/dist/api/resources/decisions/client/Client.js +13 -12
  155. package/{api/resources/decisions/client/requests/QueryRequest.d.ts → dist/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
  156. package/dist/api/resources/decisions/client/requests/index.d.ts +1 -1
  157. package/dist/api/resources/flows/client/Client.d.ts +7 -6
  158. package/dist/api/resources/flows/client/Client.js +13 -12
  159. package/dist/api/resources/index.d.ts +1 -3
  160. package/dist/api/resources/index.js +2 -4
  161. package/dist/api/resources/rules/client/Client.d.ts +15 -14
  162. package/dist/api/resources/rules/client/Client.js +35 -34
  163. package/dist/api/resources/tests/client/Client.d.ts +8 -120
  164. package/dist/api/resources/tests/client/Client.js +6 -441
  165. package/dist/api/resources/tests/index.d.ts +1 -0
  166. package/dist/api/resources/tests/index.js +1 -0
  167. package/dist/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
  168. package/dist/api/resources/tests/resources/flows/client/Client.js +257 -0
  169. package/dist/api/resources/tests/resources/flows/client/index.d.ts +1 -0
  170. package/dist/api/resources/tests/resources/flows/client/index.js +2 -0
  171. package/dist/api/resources/tests/resources/flows/index.d.ts +1 -0
  172. package/dist/api/resources/tests/resources/flows/index.js +17 -0
  173. package/dist/api/resources/tests/resources/index.d.ts +2 -0
  174. package/dist/api/resources/tests/resources/index.js +28 -0
  175. package/dist/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
  176. package/dist/api/resources/tests/resources/rules/client/Client.js +257 -0
  177. package/dist/api/resources/tests/resources/rules/client/index.d.ts +1 -0
  178. package/dist/api/resources/tests/resources/rules/client/index.js +2 -0
  179. package/dist/api/resources/tests/resources/rules/index.d.ts +1 -0
  180. package/dist/api/resources/tests/resources/rules/index.js +17 -0
  181. package/dist/api/resources/users/client/Client.d.ts +12 -35
  182. package/dist/api/resources/users/client/Client.js +21 -137
  183. package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  184. package/dist/api/resources/users/client/requests/index.d.ts +0 -1
  185. package/dist/api/resources/users/index.d.ts +1 -0
  186. package/dist/api/resources/users/index.js +1 -0
  187. package/dist/api/resources/users/resources/groups/client/Client.d.ts +58 -0
  188. package/dist/api/resources/users/resources/groups/client/Client.js +181 -0
  189. package/dist/api/resources/users/resources/groups/client/index.d.ts +1 -0
  190. package/dist/api/resources/users/resources/groups/client/index.js +17 -0
  191. package/dist/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  192. package/dist/api/resources/users/resources/groups/client/requests/index.js +2 -0
  193. package/dist/api/resources/users/resources/groups/index.d.ts +1 -0
  194. package/dist/api/resources/users/resources/groups/index.js +17 -0
  195. package/dist/api/resources/users/resources/index.d.ts +2 -0
  196. package/dist/api/resources/users/resources/index.js +31 -0
  197. package/dist/api/resources/values/client/Client.d.ts +73 -18
  198. package/dist/api/resources/values/client/Client.js +101 -39
  199. package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +81 -4
  200. package/{api/resources/values/client/requests/DeleteRequest.d.ts → dist/api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
  201. package/dist/api/resources/values/client/requests/ValuesListRequest.d.ts +24 -0
  202. package/dist/api/resources/values/client/requests/index.d.ts +2 -2
  203. package/dist/api/resources/values/index.d.ts +0 -1
  204. package/dist/api/resources/values/index.js +0 -1
  205. package/dist/api/types/BulkRuleResponseItem.d.ts +2 -2
  206. package/dist/api/types/DecisionLog.d.ts +4 -4
  207. package/dist/api/types/DecisionLogDecision.d.ts +2 -2
  208. package/dist/api/types/DecisionLogResponse.d.ts +2 -2
  209. package/dist/api/types/DynamicValue.d.ts +13 -15
  210. package/dist/api/types/DynamicValueListResponse.d.ts +2 -2
  211. package/dist/api/types/FlowDetail.d.ts +2 -2
  212. package/dist/api/types/FlowListResponse.d.ts +2 -2
  213. package/dist/api/types/FolderListResponse.d.ts +2 -2
  214. package/dist/api/types/ParallelSolveRequest.d.ts +2 -2
  215. package/dist/api/types/ParallelSolveResponse.d.ts +2 -2
  216. package/dist/api/types/RuleDetail.d.ts +5 -5
  217. package/dist/api/types/RuleListResponse.d.ts +2 -2
  218. package/dist/api/types/SchemaField.d.ts +3 -3
  219. package/dist/api/types/Test.d.ts +2 -2
  220. package/dist/api/types/TestListResponse.d.ts +2 -2
  221. package/dist/api/types/TestTestState.d.ts +3 -3
  222. package/dist/api/types/UserGroupListResponse.d.ts +2 -2
  223. package/dist/api/types/UserInviteResponse.d.ts +2 -2
  224. package/dist/api/types/index.d.ts +0 -6
  225. package/dist/api/types/index.js +0 -6
  226. package/dist/environments.d.ts +7 -0
  227. package/dist/environments.js +9 -0
  228. package/dist/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
  229. package/dist/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
  230. package/dist/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
  231. package/dist/errors/RulebricksTimeoutError.js +13 -0
  232. package/dist/errors/index.d.ts +2 -2
  233. package/dist/errors/index.js +5 -5
  234. package/dist/forge/rule.d.ts +2 -2
  235. package/dist/forge/rule.js +8 -8
  236. package/dist/forge/values.d.ts +2 -2
  237. package/dist/index.d.ts +4 -3
  238. package/dist/index.js +7 -5
  239. package/dist/serialization/resources/assets/index.d.ts +1 -1
  240. package/dist/serialization/resources/assets/index.js +1 -1
  241. package/dist/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
  242. package/dist/serialization/resources/assets/resources/folders/client/index.js +17 -0
  243. package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
  244. package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
  245. package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +4 -4
  246. package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
  247. package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/index.d.ts +0 -2
  248. package/dist/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
  249. package/dist/serialization/resources/assets/resources/folders/index.d.ts +1 -0
  250. package/dist/serialization/resources/assets/resources/folders/index.js +17 -0
  251. package/dist/serialization/resources/assets/resources/index.d.ts +4 -0
  252. package/dist/serialization/resources/assets/resources/index.js +33 -0
  253. package/dist/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
  254. package/dist/serialization/resources/assets/resources/rules/client/index.js +17 -0
  255. package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
  256. package/dist/serialization/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +1 -1
  257. package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
  258. package/{serialization/resources/assets → dist/serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
  259. package/dist/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
  260. package/dist/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
  261. package/dist/serialization/resources/assets/resources/rules/index.d.ts +1 -0
  262. package/dist/serialization/resources/assets/resources/rules/index.js +17 -0
  263. package/dist/serialization/resources/index.d.ts +2 -4
  264. package/dist/serialization/resources/index.js +3 -5
  265. package/dist/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
  266. package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  267. package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
  268. package/dist/serialization/resources/users/client/requests/index.js +1 -3
  269. package/dist/serialization/resources/users/index.d.ts +1 -0
  270. package/dist/serialization/resources/users/index.js +1 -0
  271. package/dist/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
  272. package/dist/serialization/resources/users/resources/groups/client/index.js +17 -0
  273. package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
  274. package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
  275. package/dist/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  276. package/dist/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
  277. package/dist/serialization/resources/users/resources/groups/index.d.ts +1 -0
  278. package/dist/serialization/resources/users/resources/groups/index.js +17 -0
  279. package/dist/serialization/resources/users/resources/index.d.ts +2 -0
  280. package/dist/serialization/resources/users/resources/index.js +31 -0
  281. package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
  282. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +3 -4
  283. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +1 -2
  284. package/dist/serialization/resources/values/index.d.ts +0 -1
  285. package/dist/serialization/resources/values/index.js +0 -1
  286. package/dist/serialization/types/BulkRuleResponseItem.d.ts +2 -2
  287. package/dist/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
  288. package/dist/serialization/types/CreateTestRequest.d.ts +2 -2
  289. package/dist/serialization/types/DecisionLog.d.ts +2 -2
  290. package/dist/serialization/types/DecisionLogDecision.d.ts +2 -2
  291. package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
  292. package/dist/serialization/types/DecisionLogRequest.d.ts +2 -2
  293. package/dist/serialization/types/DecisionLogResponse.d.ts +2 -2
  294. package/dist/serialization/types/DynamicRequestPayload.d.ts +2 -2
  295. package/dist/serialization/types/DynamicResponsePayload.d.ts +2 -2
  296. package/dist/serialization/types/DynamicValue.d.ts +10 -18
  297. package/dist/serialization/types/DynamicValue.js +8 -14
  298. package/dist/serialization/types/DynamicValueListResponse.d.ts +2 -2
  299. package/dist/serialization/types/Error_.d.ts +2 -2
  300. package/dist/serialization/types/FlowBase.d.ts +2 -2
  301. package/dist/serialization/types/FlowDetail.d.ts +2 -2
  302. package/dist/serialization/types/FlowExecutionError.d.ts +2 -2
  303. package/dist/serialization/types/FlowListResponse.d.ts +2 -2
  304. package/dist/serialization/types/Folder.d.ts +2 -2
  305. package/dist/serialization/types/FolderListResponse.d.ts +2 -2
  306. package/dist/serialization/types/ParallelSolveRequest.d.ts +2 -2
  307. package/dist/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
  308. package/dist/serialization/types/ParallelSolveResponse.d.ts +2 -2
  309. package/dist/serialization/types/RuleBase.d.ts +2 -2
  310. package/dist/serialization/types/RuleDetail.d.ts +2 -2
  311. package/dist/serialization/types/RuleExport.d.ts +2 -2
  312. package/dist/serialization/types/RuleListResponse.d.ts +2 -2
  313. package/dist/serialization/types/RuleUsage.d.ts +2 -2
  314. package/dist/serialization/types/SchemaField.d.ts +2 -2
  315. package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
  316. package/dist/serialization/types/SchemaFieldType.d.ts +2 -2
  317. package/dist/serialization/types/SuccessMessage.d.ts +2 -2
  318. package/dist/serialization/types/Test.d.ts +2 -2
  319. package/dist/serialization/types/TestListResponse.d.ts +2 -2
  320. package/dist/serialization/types/TestTestState.d.ts +2 -2
  321. package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
  322. package/dist/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
  323. package/dist/serialization/types/UsageStatistics.d.ts +2 -2
  324. package/dist/serialization/types/UserGroup.d.ts +2 -2
  325. package/dist/serialization/types/UserGroupListResponse.d.ts +2 -2
  326. package/dist/serialization/types/UserInviteResponse.d.ts +2 -2
  327. package/dist/serialization/types/UserInviteResponseUser.d.ts +2 -2
  328. package/dist/serialization/types/ValueLimits.d.ts +2 -2
  329. package/dist/serialization/types/index.d.ts +0 -6
  330. package/dist/serialization/types/index.js +0 -6
  331. package/environments.d.ts +7 -0
  332. package/environments.js +9 -0
  333. package/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
  334. package/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
  335. package/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
  336. package/errors/RulebricksTimeoutError.js +13 -0
  337. package/errors/index.d.ts +2 -2
  338. package/errors/index.js +5 -5
  339. package/forge/rule.d.ts +2 -2
  340. package/forge/rule.js +8 -8
  341. package/forge/values.d.ts +2 -2
  342. package/index.d.ts +4 -3
  343. package/index.js +7 -5
  344. package/package.json +1 -1
  345. package/serialization/resources/assets/index.d.ts +1 -1
  346. package/serialization/resources/assets/index.js +1 -1
  347. package/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
  348. package/serialization/resources/assets/resources/folders/client/index.js +17 -0
  349. package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
  350. package/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
  351. package/serialization/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +4 -4
  352. package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
  353. package/serialization/resources/assets/{client → resources/folders/client}/requests/index.d.ts +0 -2
  354. package/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
  355. package/serialization/resources/assets/resources/folders/index.d.ts +1 -0
  356. package/serialization/resources/assets/resources/folders/index.js +17 -0
  357. package/serialization/resources/assets/resources/index.d.ts +4 -0
  358. package/serialization/resources/assets/resources/index.js +33 -0
  359. package/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
  360. package/serialization/resources/assets/resources/rules/client/index.js +17 -0
  361. package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
  362. package/serialization/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +1 -1
  363. package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
  364. package/{dist/serialization/resources/assets → serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
  365. package/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
  366. package/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
  367. package/serialization/resources/assets/resources/rules/index.d.ts +1 -0
  368. package/serialization/resources/assets/resources/rules/index.js +17 -0
  369. package/serialization/resources/index.d.ts +2 -4
  370. package/serialization/resources/index.js +3 -5
  371. package/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
  372. package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
  373. package/serialization/resources/users/client/requests/index.d.ts +0 -1
  374. package/serialization/resources/users/client/requests/index.js +1 -3
  375. package/serialization/resources/users/index.d.ts +1 -0
  376. package/serialization/resources/users/index.js +1 -0
  377. package/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
  378. package/serialization/resources/users/resources/groups/client/index.js +17 -0
  379. package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
  380. package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
  381. package/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
  382. package/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
  383. package/serialization/resources/users/resources/groups/index.d.ts +1 -0
  384. package/serialization/resources/users/resources/groups/index.js +17 -0
  385. package/serialization/resources/users/resources/index.d.ts +2 -0
  386. package/serialization/resources/users/resources/index.js +31 -0
  387. package/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
  388. package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +3 -4
  389. package/serialization/resources/values/client/requests/UpdateValuesRequest.js +1 -2
  390. package/serialization/resources/values/index.d.ts +0 -1
  391. package/serialization/resources/values/index.js +0 -1
  392. package/serialization/types/BulkRuleResponseItem.d.ts +2 -2
  393. package/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
  394. package/serialization/types/CreateTestRequest.d.ts +2 -2
  395. package/serialization/types/DecisionLog.d.ts +2 -2
  396. package/serialization/types/DecisionLogDecision.d.ts +2 -2
  397. package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
  398. package/serialization/types/DecisionLogRequest.d.ts +2 -2
  399. package/serialization/types/DecisionLogResponse.d.ts +2 -2
  400. package/serialization/types/DynamicRequestPayload.d.ts +2 -2
  401. package/serialization/types/DynamicResponsePayload.d.ts +2 -2
  402. package/serialization/types/DynamicValue.d.ts +10 -18
  403. package/serialization/types/DynamicValue.js +8 -14
  404. package/serialization/types/DynamicValueListResponse.d.ts +2 -2
  405. package/serialization/types/Error_.d.ts +2 -2
  406. package/serialization/types/FlowBase.d.ts +2 -2
  407. package/serialization/types/FlowDetail.d.ts +2 -2
  408. package/serialization/types/FlowExecutionError.d.ts +2 -2
  409. package/serialization/types/FlowListResponse.d.ts +2 -2
  410. package/serialization/types/Folder.d.ts +2 -2
  411. package/serialization/types/FolderListResponse.d.ts +2 -2
  412. package/serialization/types/ParallelSolveRequest.d.ts +2 -2
  413. package/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
  414. package/serialization/types/ParallelSolveResponse.d.ts +2 -2
  415. package/serialization/types/RuleBase.d.ts +2 -2
  416. package/serialization/types/RuleDetail.d.ts +2 -2
  417. package/serialization/types/RuleExport.d.ts +2 -2
  418. package/serialization/types/RuleListResponse.d.ts +2 -2
  419. package/serialization/types/RuleUsage.d.ts +2 -2
  420. package/serialization/types/SchemaField.d.ts +2 -2
  421. package/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
  422. package/serialization/types/SchemaFieldType.d.ts +2 -2
  423. package/serialization/types/SuccessMessage.d.ts +2 -2
  424. package/serialization/types/Test.d.ts +2 -2
  425. package/serialization/types/TestListResponse.d.ts +2 -2
  426. package/serialization/types/TestTestState.d.ts +2 -2
  427. package/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
  428. package/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
  429. package/serialization/types/UsageStatistics.d.ts +2 -2
  430. package/serialization/types/UserGroup.d.ts +2 -2
  431. package/serialization/types/UserGroupListResponse.d.ts +2 -2
  432. package/serialization/types/UserInviteResponse.d.ts +2 -2
  433. package/serialization/types/UserInviteResponseUser.d.ts +2 -2
  434. package/serialization/types/ValueLimits.d.ts +2 -2
  435. package/serialization/types/index.d.ts +0 -6
  436. package/serialization/types/index.js +0 -6
  437. package/api/resources/assets/client/requests/index.d.ts +0 -6
  438. package/api/resources/values/client/requests/ListRequest.d.ts +0 -13
  439. package/api/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -4
  440. package/api/resources/values/types/index.d.ts +0 -1
  441. package/api/resources/values/types/index.js +0 -17
  442. package/api/types/BooleanValue.d.ts +0 -8
  443. package/api/types/DynamicValueBase.d.ts +0 -14
  444. package/api/types/ListValue.d.ts +0 -8
  445. package/api/types/ListValueValueItem.d.ts +0 -4
  446. package/api/types/NumberValue.d.ts +0 -8
  447. package/api/types/NumberValue.js +0 -5
  448. package/api/types/StringValue.d.ts +0 -8
  449. package/api/types/StringValue.js +0 -5
  450. package/dist/api/resources/assets/client/requests/ExportRuleRequest.js +0 -5
  451. package/dist/api/resources/assets/client/requests/ListRulesRequest.js +0 -5
  452. package/dist/api/resources/assets/client/requests/index.d.ts +0 -6
  453. package/dist/api/resources/decisions/client/requests/QueryRequest.js +0 -5
  454. package/dist/api/resources/values/client/requests/DeleteRequest.js +0 -5
  455. package/dist/api/resources/values/client/requests/ListRequest.d.ts +0 -13
  456. package/dist/api/resources/values/client/requests/ListRequest.js +0 -5
  457. package/dist/api/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -4
  458. package/dist/api/resources/values/types/UpdateValuesRequestValuesValue.js +0 -5
  459. package/dist/api/resources/values/types/index.d.ts +0 -1
  460. package/dist/api/types/BooleanValue.d.ts +0 -8
  461. package/dist/api/types/BooleanValue.js +0 -5
  462. package/dist/api/types/DynamicValueBase.d.ts +0 -14
  463. package/dist/api/types/DynamicValueBase.js +0 -5
  464. package/dist/api/types/ListValue.d.ts +0 -8
  465. package/dist/api/types/ListValue.js +0 -5
  466. package/dist/api/types/ListValueValueItem.d.ts +0 -4
  467. package/dist/api/types/ListValueValueItem.js +0 -5
  468. package/dist/api/types/NumberValue.d.ts +0 -8
  469. package/dist/api/types/NumberValue.js +0 -5
  470. package/dist/api/types/StringValue.d.ts +0 -8
  471. package/dist/api/types/StringValue.js +0 -5
  472. package/dist/errors/RulebricksApiTimeoutError.js +0 -13
  473. package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
  474. package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
  475. package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
  476. package/dist/serialization/resources/assets/client/requests/index.js +0 -11
  477. package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -10
  478. package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.js +0 -36
  479. package/dist/serialization/resources/values/types/index.d.ts +0 -1
  480. package/dist/serialization/types/BooleanValue.d.ts +0 -13
  481. package/dist/serialization/types/BooleanValue.js +0 -36
  482. package/dist/serialization/types/DynamicValueBase.d.ts +0 -16
  483. package/dist/serialization/types/DynamicValueBase.js +0 -37
  484. package/dist/serialization/types/ListValue.d.ts +0 -14
  485. package/dist/serialization/types/ListValue.js +0 -37
  486. package/dist/serialization/types/ListValueValueItem.d.ts +0 -10
  487. package/dist/serialization/types/ListValueValueItem.js +0 -37
  488. package/dist/serialization/types/NumberValue.d.ts +0 -13
  489. package/dist/serialization/types/NumberValue.js +0 -36
  490. package/dist/serialization/types/StringValue.d.ts +0 -13
  491. package/dist/serialization/types/StringValue.js +0 -36
  492. package/errors/RulebricksApiTimeoutError.js +0 -13
  493. package/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
  494. package/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
  495. package/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
  496. package/serialization/resources/assets/client/requests/index.js +0 -11
  497. package/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -10
  498. package/serialization/resources/values/types/UpdateValuesRequestValuesValue.js +0 -36
  499. package/serialization/resources/values/types/index.d.ts +0 -1
  500. package/serialization/resources/values/types/index.js +0 -17
  501. package/serialization/types/BooleanValue.d.ts +0 -13
  502. package/serialization/types/BooleanValue.js +0 -36
  503. package/serialization/types/DynamicValueBase.d.ts +0 -16
  504. package/serialization/types/DynamicValueBase.js +0 -37
  505. package/serialization/types/ListValue.d.ts +0 -14
  506. package/serialization/types/ListValue.js +0 -37
  507. package/serialization/types/ListValueValueItem.d.ts +0 -10
  508. package/serialization/types/ListValueValueItem.js +0 -37
  509. package/serialization/types/NumberValue.d.ts +0 -13
  510. package/serialization/types/NumberValue.js +0 -36
  511. package/serialization/types/StringValue.d.ts +0 -13
  512. package/serialization/types/StringValue.js +0 -36
  513. /package/api/resources/assets/{client/requests → resources/flows/client}/index.js +0 -0
  514. /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.d.ts +0 -0
  515. /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.js +0 -0
  516. /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
  517. /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +0 -0
  518. /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
  519. /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
  520. /package/{dist/api/resources/assets → api/resources/assets/resources/folders}/client/requests/index.js +0 -0
  521. /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.d.ts +0 -0
  522. /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.js +0 -0
  523. /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
  524. /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +0 -0
  525. /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
  526. /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
  527. /package/api/resources/assets/{client/requests/ExportRuleRequest.js → resources/rules/client/requests/RulesListRequest.js} +0 -0
  528. /package/api/resources/assets/{client/requests/ListRulesRequest.js → resources/rules/client/requests/RulesPullRequest.js} +0 -0
  529. /package/api/resources/decisions/client/requests/{QueryRequest.js → DecisionsQueryRequest.js} +0 -0
  530. /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
  531. /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +0 -0
  532. /package/api/resources/values/client/requests/{DeleteRequest.js → ValuesDeleteRequest.js} +0 -0
  533. /package/api/resources/values/client/requests/{ListRequest.js → ValuesListRequest.js} +0 -0
  534. /package/dist/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
  535. /package/dist/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +0 -0
  536. /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
  537. /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
  538. /package/dist/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
  539. /package/dist/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +0 -0
  540. /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
  541. /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
  542. /package/{api/resources/values/types/UpdateValuesRequestValuesValue.js → dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.js} +0 -0
  543. /package/{api/types/BooleanValue.js → dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js} +0 -0
  544. /package/{api/types/DynamicValueBase.js → dist/api/resources/decisions/client/requests/DecisionsQueryRequest.js} +0 -0
  545. /package/dist/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
  546. /package/dist/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +0 -0
  547. /package/{api/types/ListValue.js → dist/api/resources/values/client/requests/ValuesDeleteRequest.js} +0 -0
  548. /package/{api/types/ListValueValueItem.js → dist/api/resources/values/client/requests/ValuesListRequest.js} +0 -0
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Flows = void 0;
42
+ const environments = __importStar(require("../../../../../../environments"));
43
+ const core = __importStar(require("../../../../../../core"));
44
+ const Rulebricks = __importStar(require("../../../../../index"));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const serializers = __importStar(require("../../../../../../serialization/index"));
47
+ const errors = __importStar(require("../../../../../../errors/index"));
48
+ class Flows {
49
+ constructor(_options) {
50
+ this._options = _options;
51
+ }
52
+ /**
53
+ * List all flows in the organization.
54
+ *
55
+ * @param {Flows.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link Rulebricks.InternalServerError}
58
+ *
59
+ * @example
60
+ * await client.assets.flows.list()
61
+ */
62
+ list(requestOptions) {
63
+ var _a, _b;
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const _response = yield core.fetcher({
66
+ 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, "admin/flows/list"),
67
+ method: "GET",
68
+ 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),
69
+ contentType: "application/json",
70
+ requestType: "json",
71
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
72
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
73
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
74
+ });
75
+ if (_response.ok) {
76
+ return serializers.FlowListResponse.parseOrThrow(_response.body, {
77
+ unrecognizedObjectKeys: "passthrough",
78
+ allowUnrecognizedUnionMembers: true,
79
+ allowUnrecognizedEnumValues: true,
80
+ breadcrumbsPrefix: ["response"],
81
+ });
82
+ }
83
+ if (_response.error.reason === "status-code") {
84
+ switch (_response.error.statusCode) {
85
+ case 500:
86
+ throw new Rulebricks.InternalServerError(_response.error.body);
87
+ default:
88
+ throw new errors.RulebricksError({
89
+ statusCode: _response.error.statusCode,
90
+ body: _response.error.body,
91
+ });
92
+ }
93
+ }
94
+ switch (_response.error.reason) {
95
+ case "non-json":
96
+ throw new errors.RulebricksError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.rawBody,
99
+ });
100
+ case "timeout":
101
+ throw new errors.RulebricksTimeoutError("Timeout exceeded when calling GET /admin/flows/list.");
102
+ case "unknown":
103
+ throw new errors.RulebricksError({
104
+ message: _response.error.errorMessage,
105
+ });
106
+ }
107
+ });
108
+ }
109
+ _getCustomAuthorizationHeaders() {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
112
+ return { "x-api-key": apiKeyValue };
113
+ });
114
+ }
115
+ }
116
+ exports.Flows = Flows;
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./UpdateValuesRequestValuesValue"), exports);
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,74 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Rulebricks from "../../../../../index";
7
+ export declare namespace Folders {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.RulebricksEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Folders {
26
+ protected readonly _options: Folders.Options;
27
+ constructor(_options: Folders.Options);
28
+ /**
29
+ * Retrieve all rule folders for the authenticated user.
30
+ *
31
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link Rulebricks.InternalServerError}
34
+ *
35
+ * @example
36
+ * await client.assets.folders.list()
37
+ */
38
+ list(requestOptions?: Folders.RequestOptions): Promise<Rulebricks.FolderListResponse>;
39
+ /**
40
+ * Create a new rule folder or update an existing one for the authenticated user.
41
+ *
42
+ * @param {Rulebricks.assets.UpsertFolderRequest} request
43
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link Rulebricks.BadRequestError}
46
+ * @throws {@link Rulebricks.InternalServerError}
47
+ *
48
+ * @example
49
+ * await client.assets.folders.upsert({
50
+ * name: "Marketing Rules",
51
+ * description: "Rules for marketing automation workflows"
52
+ * })
53
+ */
54
+ upsert(request: Rulebricks.assets.UpsertFolderRequest, requestOptions?: Folders.RequestOptions): Promise<Rulebricks.Folder>;
55
+ /**
56
+ * Delete a specific rule folder for the authenticated user. This does not delete the rules within the folder.
57
+ *
58
+ * @param {Rulebricks.assets.DeleteFolderRequest} request
59
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
60
+ *
61
+ * @throws {@link Rulebricks.BadRequestError}
62
+ * @throws {@link Rulebricks.NotFoundError}
63
+ * @throws {@link Rulebricks.InternalServerError}
64
+ *
65
+ * @example
66
+ * await client.assets.folders.delete({
67
+ * id: "abc123"
68
+ * })
69
+ */
70
+ delete(request: Rulebricks.assets.DeleteFolderRequest, requestOptions?: Folders.RequestOptions): Promise<Rulebricks.Folder>;
71
+ protected _getCustomAuthorizationHeaders(): Promise<{
72
+ "x-api-key": string;
73
+ }>;
74
+ }
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Folders = void 0;
42
+ const environments = __importStar(require("../../../../../../environments"));
43
+ const core = __importStar(require("../../../../../../core"));
44
+ const Rulebricks = __importStar(require("../../../../../index"));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const serializers = __importStar(require("../../../../../../serialization/index"));
47
+ const errors = __importStar(require("../../../../../../errors/index"));
48
+ class Folders {
49
+ constructor(_options) {
50
+ this._options = _options;
51
+ }
52
+ /**
53
+ * Retrieve all rule folders for the authenticated user.
54
+ *
55
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link Rulebricks.InternalServerError}
58
+ *
59
+ * @example
60
+ * await client.assets.folders.list()
61
+ */
62
+ list(requestOptions) {
63
+ var _a, _b;
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const _response = yield core.fetcher({
66
+ 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, "admin/folders"),
67
+ method: "GET",
68
+ 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),
69
+ contentType: "application/json",
70
+ requestType: "json",
71
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
72
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
73
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
74
+ });
75
+ if (_response.ok) {
76
+ return serializers.FolderListResponse.parseOrThrow(_response.body, {
77
+ unrecognizedObjectKeys: "passthrough",
78
+ allowUnrecognizedUnionMembers: true,
79
+ allowUnrecognizedEnumValues: true,
80
+ breadcrumbsPrefix: ["response"],
81
+ });
82
+ }
83
+ if (_response.error.reason === "status-code") {
84
+ switch (_response.error.statusCode) {
85
+ case 500:
86
+ throw new Rulebricks.InternalServerError(_response.error.body);
87
+ default:
88
+ throw new errors.RulebricksError({
89
+ statusCode: _response.error.statusCode,
90
+ body: _response.error.body,
91
+ });
92
+ }
93
+ }
94
+ switch (_response.error.reason) {
95
+ case "non-json":
96
+ throw new errors.RulebricksError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.rawBody,
99
+ });
100
+ case "timeout":
101
+ throw new errors.RulebricksTimeoutError("Timeout exceeded when calling GET /admin/folders.");
102
+ case "unknown":
103
+ throw new errors.RulebricksError({
104
+ message: _response.error.errorMessage,
105
+ });
106
+ }
107
+ });
108
+ }
109
+ /**
110
+ * Create a new rule folder or update an existing one for the authenticated user.
111
+ *
112
+ * @param {Rulebricks.assets.UpsertFolderRequest} request
113
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
114
+ *
115
+ * @throws {@link Rulebricks.BadRequestError}
116
+ * @throws {@link Rulebricks.InternalServerError}
117
+ *
118
+ * @example
119
+ * await client.assets.folders.upsert({
120
+ * name: "Marketing Rules",
121
+ * description: "Rules for marketing automation workflows"
122
+ * })
123
+ */
124
+ upsert(request, requestOptions) {
125
+ var _a, _b;
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const _response = yield core.fetcher({
128
+ 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, "admin/folders"),
129
+ method: "POST",
130
+ 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),
131
+ contentType: "application/json",
132
+ requestType: "json",
133
+ body: serializers.assets.UpsertFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
134
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
135
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
136
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
137
+ });
138
+ if (_response.ok) {
139
+ return serializers.Folder.parseOrThrow(_response.body, {
140
+ unrecognizedObjectKeys: "passthrough",
141
+ allowUnrecognizedUnionMembers: true,
142
+ allowUnrecognizedEnumValues: true,
143
+ breadcrumbsPrefix: ["response"],
144
+ });
145
+ }
146
+ if (_response.error.reason === "status-code") {
147
+ switch (_response.error.statusCode) {
148
+ case 400:
149
+ throw new Rulebricks.BadRequestError(_response.error.body);
150
+ case 500:
151
+ throw new Rulebricks.InternalServerError(_response.error.body);
152
+ default:
153
+ throw new errors.RulebricksError({
154
+ statusCode: _response.error.statusCode,
155
+ body: _response.error.body,
156
+ });
157
+ }
158
+ }
159
+ switch (_response.error.reason) {
160
+ case "non-json":
161
+ throw new errors.RulebricksError({
162
+ statusCode: _response.error.statusCode,
163
+ body: _response.error.rawBody,
164
+ });
165
+ case "timeout":
166
+ throw new errors.RulebricksTimeoutError("Timeout exceeded when calling POST /admin/folders.");
167
+ case "unknown":
168
+ throw new errors.RulebricksError({
169
+ message: _response.error.errorMessage,
170
+ });
171
+ }
172
+ });
173
+ }
174
+ /**
175
+ * Delete a specific rule folder for the authenticated user. This does not delete the rules within the folder.
176
+ *
177
+ * @param {Rulebricks.assets.DeleteFolderRequest} request
178
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
179
+ *
180
+ * @throws {@link Rulebricks.BadRequestError}
181
+ * @throws {@link Rulebricks.NotFoundError}
182
+ * @throws {@link Rulebricks.InternalServerError}
183
+ *
184
+ * @example
185
+ * await client.assets.folders.delete({
186
+ * id: "abc123"
187
+ * })
188
+ */
189
+ delete(request, requestOptions) {
190
+ var _a, _b;
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ const _response = yield core.fetcher({
193
+ 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, "admin/folders"),
194
+ method: "DELETE",
195
+ 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),
196
+ contentType: "application/json",
197
+ requestType: "json",
198
+ body: serializers.assets.DeleteFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
199
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
200
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
201
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
202
+ });
203
+ if (_response.ok) {
204
+ return serializers.Folder.parseOrThrow(_response.body, {
205
+ unrecognizedObjectKeys: "passthrough",
206
+ allowUnrecognizedUnionMembers: true,
207
+ allowUnrecognizedEnumValues: true,
208
+ breadcrumbsPrefix: ["response"],
209
+ });
210
+ }
211
+ if (_response.error.reason === "status-code") {
212
+ switch (_response.error.statusCode) {
213
+ case 400:
214
+ throw new Rulebricks.BadRequestError(_response.error.body);
215
+ case 404:
216
+ throw new Rulebricks.NotFoundError(_response.error.body);
217
+ case 500:
218
+ throw new Rulebricks.InternalServerError(_response.error.body);
219
+ default:
220
+ throw new errors.RulebricksError({
221
+ statusCode: _response.error.statusCode,
222
+ body: _response.error.body,
223
+ });
224
+ }
225
+ }
226
+ switch (_response.error.reason) {
227
+ case "non-json":
228
+ throw new errors.RulebricksError({
229
+ statusCode: _response.error.statusCode,
230
+ body: _response.error.rawBody,
231
+ });
232
+ case "timeout":
233
+ throw new errors.RulebricksTimeoutError("Timeout exceeded when calling DELETE /admin/folders.");
234
+ case "unknown":
235
+ throw new errors.RulebricksError({
236
+ message: _response.error.errorMessage,
237
+ });
238
+ }
239
+ });
240
+ }
241
+ _getCustomAuthorizationHeaders() {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
244
+ return { "x-api-key": apiKeyValue };
245
+ });
246
+ }
247
+ }
248
+ exports.Folders = Folders;
@@ -0,0 +1,2 @@
1
+ export { type UpsertFolderRequest } from "./UpsertFolderRequest";
2
+ export { type DeleteFolderRequest } from "./DeleteFolderRequest";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./UpdateValuesRequestValuesValue"), exports);
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,5 @@
1
+ export * as rules from "./rules";
2
+ export * as flows from "./flows";
3
+ export * as folders from "./folders";
4
+ export * from "./rules/client/requests";
5
+ export * from "./folders/client/requests";
@@ -0,0 +1,34 @@
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.folders = exports.flows = exports.rules = void 0;
30
+ exports.rules = __importStar(require("./rules"));
31
+ exports.flows = __importStar(require("./flows"));
32
+ exports.folders = __importStar(require("./folders"));
33
+ __exportStar(require("./rules/client/requests"), exports);
34
+ __exportStar(require("./folders/client/requests"), exports);
@@ -0,0 +1,94 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Rulebricks from "../../../../../index";
7
+ export declare namespace Rules {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.RulebricksEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Rules {
26
+ protected readonly _options: Rules.Options;
27
+ constructor(_options: Rules.Options);
28
+ /**
29
+ * Delete a specific rule by its ID.
30
+ *
31
+ * @param {Rulebricks.assets.DeleteRuleRequest} request
32
+ * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @throws {@link Rulebricks.BadRequestError}
35
+ * @throws {@link Rulebricks.NotFoundError}
36
+ * @throws {@link Rulebricks.InternalServerError}
37
+ *
38
+ * @example
39
+ * await client.assets.rules.delete({
40
+ * id: "id"
41
+ * })
42
+ */
43
+ delete(request: Rulebricks.assets.DeleteRuleRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.SuccessMessage>;
44
+ /**
45
+ * Export a specific rule by its ID.
46
+ *
47
+ * @param {Rulebricks.assets.RulesPullRequest} request
48
+ * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
49
+ *
50
+ * @throws {@link Rulebricks.BadRequestError}
51
+ * @throws {@link Rulebricks.NotFoundError}
52
+ * @throws {@link Rulebricks.InternalServerError}
53
+ *
54
+ * @example
55
+ * await client.assets.rules.pull({
56
+ * id: "id"
57
+ * })
58
+ */
59
+ pull(request: Rulebricks.assets.RulesPullRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.RuleExport>;
60
+ /**
61
+ * Import a rule into the user's account.
62
+ *
63
+ * @param {Rulebricks.assets.ImportRuleRequest} request
64
+ * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @throws {@link Rulebricks.BadRequestError}
67
+ * @throws {@link Rulebricks.ForbiddenError}
68
+ * @throws {@link Rulebricks.InternalServerError}
69
+ *
70
+ * @example
71
+ * await client.assets.rules.push({
72
+ * rule: {
73
+ * "key": "value"
74
+ * }
75
+ * })
76
+ */
77
+ push(request: Rulebricks.assets.ImportRuleRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.RuleExport>;
78
+ /**
79
+ * List all rules in the organization. Optionally filter by folder name or ID.
80
+ *
81
+ * @param {Rulebricks.assets.RulesListRequest} request
82
+ * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
83
+ *
84
+ * @throws {@link Rulebricks.BadRequestError}
85
+ * @throws {@link Rulebricks.InternalServerError}
86
+ *
87
+ * @example
88
+ * await client.assets.rules.list()
89
+ */
90
+ list(request?: Rulebricks.assets.RulesListRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.RuleListResponse>;
91
+ protected _getCustomAuthorizationHeaders(): Promise<{
92
+ "x-api-key": string;
93
+ }>;
94
+ }