@rulebricks/sdk 1.5.0 → 1.5.2

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 (1223) hide show
  1. package/BaseClient.d.ts +39 -0
  2. package/BaseClient.js +59 -0
  3. package/Client.d.ts +27 -43
  4. package/Client.js +18 -19
  5. package/api/errors/BadRequestError.d.ts +3 -5
  6. package/api/errors/BadRequestError.js +26 -13
  7. package/api/errors/ForbiddenError.d.ts +3 -5
  8. package/api/errors/ForbiddenError.js +26 -13
  9. package/api/errors/InternalServerError.d.ts +3 -5
  10. package/api/errors/InternalServerError.js +26 -13
  11. package/api/errors/NotFoundError.d.ts +3 -5
  12. package/api/errors/NotFoundError.js +26 -13
  13. package/api/errors/index.d.ts +4 -4
  14. package/api/errors/index.js +4 -4
  15. package/api/index.d.ts +3 -3
  16. package/api/index.js +3 -3
  17. package/api/resources/assets/client/Client.d.ts +22 -39
  18. package/api/resources/assets/client/Client.js +52 -62
  19. package/api/resources/assets/index.d.ts +2 -2
  20. package/api/resources/assets/index.js +2 -2
  21. package/api/resources/assets/resources/flows/client/Client.d.ts +13 -30
  22. package/api/resources/assets/resources/flows/client/Client.js +48 -58
  23. package/api/resources/assets/resources/flows/index.d.ts +1 -1
  24. package/api/resources/assets/resources/flows/index.js +1 -1
  25. package/api/resources/assets/resources/folders/client/Client.d.ts +19 -34
  26. package/api/resources/assets/resources/folders/client/Client.js +89 -115
  27. package/api/resources/assets/resources/folders/client/index.d.ts +1 -1
  28. package/api/resources/assets/resources/folders/client/index.js +1 -1
  29. package/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -3
  30. package/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +1 -3
  31. package/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -3
  32. package/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +1 -3
  33. package/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -2
  34. package/api/resources/assets/resources/folders/index.d.ts +1 -1
  35. package/api/resources/assets/resources/folders/index.js +1 -1
  36. package/api/resources/assets/resources/index.d.ts +5 -5
  37. package/api/resources/assets/resources/index.js +23 -13
  38. package/api/resources/assets/resources/rules/client/Client.d.ts +31 -42
  39. package/api/resources/assets/resources/rules/client/Client.js +123 -158
  40. package/api/resources/assets/resources/rules/client/index.d.ts +1 -1
  41. package/api/resources/assets/resources/rules/client/index.js +1 -1
  42. package/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +1 -4
  43. package/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +1 -3
  44. package/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +2 -4
  45. package/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +1 -3
  46. package/api/resources/assets/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  47. package/api/resources/assets/resources/rules/client/requests/ListRulesRequest.js +3 -0
  48. package/api/resources/assets/resources/rules/client/requests/PullRulesRequest.d.ts +10 -0
  49. package/api/resources/assets/resources/rules/client/requests/PullRulesRequest.js +3 -0
  50. package/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -4
  51. package/api/resources/assets/resources/rules/index.d.ts +1 -1
  52. package/api/resources/assets/resources/rules/index.js +1 -1
  53. package/api/resources/decisions/client/Client.d.ts +19 -34
  54. package/api/resources/decisions/client/Client.js +79 -74
  55. package/api/resources/decisions/client/index.d.ts +1 -1
  56. package/api/resources/decisions/client/index.js +1 -1
  57. package/api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts +36 -0
  58. package/api/resources/decisions/client/requests/QueryDecisionsRequest.js +3 -0
  59. package/api/resources/decisions/client/requests/index.d.ts +1 -1
  60. package/api/resources/decisions/index.d.ts +2 -1
  61. package/api/resources/decisions/index.js +2 -1
  62. package/api/resources/decisions/types/QueryDecisionsRequestCount.d.ts +5 -0
  63. package/api/resources/decisions/types/QueryDecisionsRequestCount.js +8 -0
  64. package/api/resources/decisions/types/index.d.ts +1 -0
  65. package/api/resources/{users → decisions}/types/index.js +1 -1
  66. package/api/resources/flows/client/Client.d.ts +23 -36
  67. package/api/resources/flows/client/Client.js +62 -65
  68. package/api/resources/flows/client/index.d.ts +1 -1
  69. package/api/resources/flows/client/index.js +15 -0
  70. package/api/resources/flows/client/requests/ExecuteFlowsRequest.d.ts +19 -0
  71. package/api/resources/flows/client/requests/ExecuteFlowsRequest.js +3 -0
  72. package/api/resources/flows/client/requests/index.d.ts +1 -0
  73. package/api/resources/flows/index.d.ts +1 -1
  74. package/api/resources/flows/index.js +1 -1
  75. package/api/resources/index.d.ts +13 -11
  76. package/api/resources/index.js +31 -19
  77. package/api/resources/rules/client/Client.d.ts +55 -56
  78. package/api/resources/rules/client/Client.js +130 -138
  79. package/api/resources/rules/client/index.d.ts +1 -1
  80. package/api/resources/rules/client/index.js +15 -0
  81. package/api/resources/rules/client/requests/BulkSolveRulesRequest.d.ts +21 -0
  82. package/api/resources/rules/client/requests/BulkSolveRulesRequest.js +3 -0
  83. package/api/resources/rules/client/requests/SolveRulesRequest.d.ts +19 -0
  84. package/api/resources/rules/client/requests/SolveRulesRequest.js +3 -0
  85. package/api/resources/rules/client/requests/index.d.ts +2 -0
  86. package/api/resources/rules/index.d.ts +1 -1
  87. package/api/resources/rules/index.js +1 -1
  88. package/api/resources/tests/client/Client.d.ts +13 -21
  89. package/api/resources/tests/client/Client.js +11 -12
  90. package/api/resources/tests/index.d.ts +2 -2
  91. package/api/resources/tests/index.js +2 -2
  92. package/api/resources/tests/resources/flows/client/Client.d.ts +41 -50
  93. package/api/resources/tests/resources/flows/client/Client.js +117 -136
  94. package/api/resources/tests/resources/flows/client/index.d.ts +1 -1
  95. package/api/resources/tests/resources/flows/client/index.js +15 -0
  96. package/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.d.ts +22 -0
  97. package/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.js +3 -0
  98. package/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.d.ts +13 -0
  99. package/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.js +3 -0
  100. package/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.d.ts +10 -0
  101. package/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.js +3 -0
  102. package/api/resources/tests/resources/flows/client/requests/index.d.ts +3 -0
  103. package/api/resources/tests/resources/flows/index.d.ts +1 -1
  104. package/api/resources/tests/resources/flows/index.js +1 -1
  105. package/api/resources/tests/resources/index.d.ts +4 -2
  106. package/api/resources/tests/resources/index.js +24 -9
  107. package/api/resources/tests/resources/rules/client/Client.d.ts +41 -50
  108. package/api/resources/tests/resources/rules/client/Client.js +117 -136
  109. package/api/resources/tests/resources/rules/client/index.d.ts +1 -1
  110. package/api/resources/tests/resources/rules/client/index.js +15 -0
  111. package/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.d.ts +22 -0
  112. package/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.js +3 -0
  113. package/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.d.ts +13 -0
  114. package/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.js +3 -0
  115. package/api/resources/tests/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  116. package/api/resources/tests/resources/rules/client/requests/ListRulesRequest.js +3 -0
  117. package/api/resources/tests/resources/rules/client/requests/index.d.ts +3 -0
  118. package/api/resources/tests/resources/rules/index.d.ts +1 -1
  119. package/api/resources/tests/resources/rules/index.js +1 -1
  120. package/api/resources/users/client/Client.d.ts +55 -33
  121. package/api/resources/users/client/Client.js +164 -56
  122. package/api/resources/users/client/index.d.ts +1 -1
  123. package/api/resources/users/client/index.js +1 -1
  124. package/api/resources/users/client/requests/CreateUserRequest.d.ts +28 -0
  125. package/api/resources/users/client/requests/CreateUserRequest.js +3 -0
  126. package/api/resources/users/client/requests/UserInviteRequest.d.ts +11 -5
  127. package/api/resources/users/client/requests/UserInviteRequest.js +12 -3
  128. package/api/resources/users/client/requests/index.d.ts +2 -1
  129. package/api/resources/users/index.d.ts +2 -3
  130. package/api/resources/users/index.js +2 -3
  131. package/api/resources/users/resources/groups/client/Client.d.ts +16 -32
  132. package/api/resources/users/resources/groups/client/Client.js +68 -86
  133. package/api/resources/users/resources/groups/client/index.d.ts +1 -1
  134. package/api/resources/users/resources/groups/client/index.js +1 -1
  135. package/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -3
  136. package/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +1 -3
  137. package/api/resources/users/resources/groups/client/requests/index.d.ts +1 -1
  138. package/api/resources/users/resources/groups/index.d.ts +1 -1
  139. package/api/resources/users/resources/groups/index.js +1 -1
  140. package/api/resources/users/resources/index.d.ts +2 -2
  141. package/api/resources/users/resources/index.js +19 -9
  142. package/api/resources/values/client/Client.d.ts +21 -36
  143. package/api/resources/values/client/Client.js +96 -126
  144. package/api/resources/values/client/index.d.ts +1 -1
  145. package/api/resources/values/client/index.js +1 -1
  146. package/api/resources/values/client/requests/DeleteValuesRequest.d.ts +10 -0
  147. package/api/resources/values/client/requests/DeleteValuesRequest.js +3 -0
  148. package/api/resources/values/client/requests/ListValuesRequest.d.ts +17 -0
  149. package/api/resources/values/client/requests/ListValuesRequest.js +3 -0
  150. package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -3
  151. package/api/resources/values/client/requests/UpdateValuesRequest.js +1 -3
  152. package/api/resources/values/client/requests/index.d.ts +3 -3
  153. package/api/resources/values/index.d.ts +1 -1
  154. package/api/resources/values/index.js +1 -1
  155. package/api/types/BulkRuleResponseItem.d.ts +4 -5
  156. package/api/types/BulkRuleResponseItem.js +1 -3
  157. package/api/types/CreateTestRequest.d.ts +0 -3
  158. package/api/types/CreateTestRequest.js +1 -3
  159. package/api/types/CreateUserResponse.d.ts +26 -0
  160. package/api/types/CreateUserResponse.js +3 -0
  161. package/api/types/DecisionLog.d.ts +21 -5
  162. package/api/types/DecisionLog.js +1 -3
  163. package/api/types/DecisionLogResponse.d.ts +7 -4
  164. package/api/types/DecisionLogResponse.js +1 -3
  165. package/api/types/DynamicRequestPayload.d.ts +1 -4
  166. package/api/types/DynamicRequestPayload.js +1 -3
  167. package/api/types/DynamicResponsePayload.d.ts +1 -4
  168. package/api/types/DynamicResponsePayload.js +1 -3
  169. package/api/types/DynamicValue.d.ts +2 -4
  170. package/api/types/DynamicValue.js +1 -3
  171. package/api/types/DynamicValueListResponse.d.ts +2 -5
  172. package/api/types/DynamicValueListResponse.js +1 -3
  173. package/api/types/Error_.d.ts +0 -3
  174. package/api/types/Error_.js +1 -3
  175. package/api/types/FlowBase.d.ts +0 -3
  176. package/api/types/FlowBase.js +1 -3
  177. package/api/types/FlowDetail.d.ts +2 -5
  178. package/api/types/FlowDetail.js +1 -3
  179. package/api/types/FlowExecutionError.d.ts +0 -3
  180. package/api/types/FlowExecutionError.js +1 -3
  181. package/api/types/FlowListResponse.d.ts +2 -5
  182. package/api/types/FlowListResponse.js +1 -3
  183. package/api/types/Folder.d.ts +1 -4
  184. package/api/types/Folder.js +1 -3
  185. package/api/types/FolderListResponse.d.ts +2 -5
  186. package/api/types/FolderListResponse.js +1 -3
  187. package/api/types/ParallelSolveRequest.d.ts +11 -5
  188. package/api/types/ParallelSolveRequest.js +1 -3
  189. package/api/types/ParallelSolveResponse.d.ts +2 -5
  190. package/api/types/ParallelSolveResponse.js +1 -3
  191. package/api/types/RuleBase.d.ts +0 -3
  192. package/api/types/RuleBase.js +1 -3
  193. package/api/types/RuleDetail.d.ts +4 -7
  194. package/api/types/RuleDetail.js +1 -3
  195. package/api/types/RuleExport.d.ts +1 -4
  196. package/api/types/RuleExport.js +1 -3
  197. package/api/types/RuleListResponse.d.ts +2 -5
  198. package/api/types/RuleListResponse.js +1 -3
  199. package/api/types/RuleUsage.d.ts +1 -4
  200. package/api/types/RuleUsage.js +1 -3
  201. package/api/types/SchemaField.d.ts +18 -7
  202. package/api/types/SchemaField.js +13 -3
  203. package/api/types/SuccessMessage.d.ts +0 -3
  204. package/api/types/SuccessMessage.js +1 -3
  205. package/api/types/Test.d.ts +25 -6
  206. package/api/types/Test.js +1 -3
  207. package/api/types/TestListResponse.d.ts +2 -5
  208. package/api/types/TestListResponse.js +1 -3
  209. package/api/types/UsageStatistics.d.ts +5 -8
  210. package/api/types/UsageStatistics.js +1 -3
  211. package/api/types/UserDetail.d.ts +19 -0
  212. package/api/types/UserDetail.js +3 -0
  213. package/api/types/UserGroup.d.ts +0 -3
  214. package/api/types/UserGroup.js +1 -3
  215. package/api/types/UserGroupListResponse.d.ts +2 -5
  216. package/api/types/UserGroupListResponse.js +1 -3
  217. package/api/types/UserInviteResponse.d.ts +11 -5
  218. package/api/types/UserInviteResponse.js +1 -3
  219. package/api/types/UserListResponse.d.ts +5 -0
  220. package/api/types/UserListResponse.js +3 -0
  221. package/api/types/ValueLimits.d.ts +4 -7
  222. package/api/types/ValueLimits.js +1 -3
  223. package/api/types/index.d.ts +34 -39
  224. package/api/types/index.js +34 -39
  225. package/auth/HeaderAuthProvider.d.ts +16 -0
  226. package/auth/HeaderAuthProvider.js +71 -0
  227. package/auth/index.d.ts +1 -0
  228. package/auth/index.js +5 -0
  229. package/core/auth/AuthProvider.d.ts +7 -0
  230. package/core/auth/AuthRequest.d.ts +9 -0
  231. package/core/auth/BasicAuth.d.ts +8 -0
  232. package/core/auth/BasicAuth.js +27 -0
  233. package/core/auth/BearerToken.d.ts +7 -0
  234. package/core/auth/BearerToken.js +16 -0
  235. package/core/auth/NoOpAuthProvider.d.ts +5 -0
  236. package/core/auth/NoOpAuthProvider.js +9 -0
  237. package/core/auth/index.d.ts +5 -0
  238. package/core/auth/index.js +9 -0
  239. package/core/base64.d.ts +2 -0
  240. package/core/base64.js +26 -0
  241. package/core/exports.d.ts +1 -0
  242. package/core/exports.js +17 -0
  243. package/core/fetcher/APIResponse.d.ts +11 -1
  244. package/core/fetcher/BinaryResponse.d.ts +19 -0
  245. package/core/fetcher/BinaryResponse.js +17 -0
  246. package/core/fetcher/EndpointMetadata.d.ts +13 -0
  247. package/core/fetcher/EndpointSupplier.d.ts +12 -0
  248. package/core/fetcher/EndpointSupplier.js +22 -0
  249. package/core/fetcher/Fetcher.d.ts +17 -7
  250. package/core/fetcher/Fetcher.js +244 -28
  251. package/core/fetcher/Headers.d.ts +2 -0
  252. package/core/fetcher/Headers.js +84 -0
  253. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  254. package/core/fetcher/HttpResponsePromise.js +103 -0
  255. package/core/fetcher/RawResponse.d.ts +29 -0
  256. package/core/fetcher/RawResponse.js +44 -0
  257. package/core/fetcher/Supplier.d.ts +1 -1
  258. package/core/fetcher/createRequestUrl.d.ts +1 -1
  259. package/core/fetcher/createRequestUrl.js +4 -9
  260. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  261. package/core/fetcher/getErrorResponseBody.js +45 -0
  262. package/core/fetcher/getFetchFn.d.ts +1 -4
  263. package/core/fetcher/getFetchFn.js +2 -44
  264. package/core/fetcher/getHeader.js +1 -2
  265. package/core/fetcher/getRequestBody.d.ts +1 -1
  266. package/core/fetcher/getRequestBody.js +9 -6
  267. package/core/fetcher/getResponseBody.js +43 -29
  268. package/core/fetcher/index.d.ts +11 -5
  269. package/core/fetcher/index.js +15 -7
  270. package/core/fetcher/makeRequest.d.ts +1 -1
  271. package/core/fetcher/makeRequest.js +4 -6
  272. package/core/fetcher/requestWithRetries.js +38 -12
  273. package/core/fetcher/signals.d.ts +1 -8
  274. package/core/fetcher/signals.js +2 -15
  275. package/core/headers.d.ts +2 -0
  276. package/core/headers.js +31 -0
  277. package/core/index.d.ts +6 -3
  278. package/core/index.js +24 -11
  279. package/core/json.d.ts +1 -1
  280. package/core/json.js +2 -2
  281. package/core/logging/exports.d.ts +18 -0
  282. package/core/logging/exports.js +45 -0
  283. package/core/logging/index.d.ts +1 -0
  284. package/{dist/core/schemas → core/logging}/index.js +1 -1
  285. package/core/logging/logger.d.ts +126 -0
  286. package/core/logging/logger.js +144 -0
  287. package/core/runtime/index.d.ts +1 -1
  288. package/core/runtime/index.js +2 -2
  289. package/core/runtime/runtime.js +11 -11
  290. package/core/url/encodePathParam.d.ts +1 -0
  291. package/core/url/encodePathParam.js +21 -0
  292. package/core/url/index.d.ts +3 -0
  293. package/core/url/index.js +9 -0
  294. package/core/url/join.d.ts +1 -0
  295. package/core/url/join.js +68 -0
  296. package/core/url/qs.d.ts +6 -0
  297. package/core/url/qs.js +64 -0
  298. package/dist/BaseClient.d.ts +39 -0
  299. package/dist/BaseClient.js +59 -0
  300. package/dist/Client.d.ts +27 -43
  301. package/dist/Client.js +18 -19
  302. package/dist/api/errors/BadRequestError.d.ts +3 -5
  303. package/dist/api/errors/BadRequestError.js +26 -13
  304. package/dist/api/errors/ForbiddenError.d.ts +3 -5
  305. package/dist/api/errors/ForbiddenError.js +26 -13
  306. package/dist/api/errors/InternalServerError.d.ts +3 -5
  307. package/dist/api/errors/InternalServerError.js +26 -13
  308. package/dist/api/errors/NotFoundError.d.ts +3 -5
  309. package/dist/api/errors/NotFoundError.js +26 -13
  310. package/dist/api/errors/index.d.ts +4 -4
  311. package/dist/api/errors/index.js +4 -4
  312. package/dist/api/index.d.ts +3 -3
  313. package/dist/api/index.js +3 -3
  314. package/dist/api/resources/assets/client/Client.d.ts +22 -39
  315. package/dist/api/resources/assets/client/Client.js +52 -62
  316. package/dist/api/resources/assets/index.d.ts +2 -2
  317. package/dist/api/resources/assets/index.js +2 -2
  318. package/dist/api/resources/assets/resources/flows/client/Client.d.ts +13 -30
  319. package/dist/api/resources/assets/resources/flows/client/Client.js +48 -58
  320. package/dist/api/resources/assets/resources/flows/index.d.ts +1 -1
  321. package/dist/api/resources/assets/resources/flows/index.js +1 -1
  322. package/dist/api/resources/assets/resources/folders/client/Client.d.ts +19 -34
  323. package/dist/api/resources/assets/resources/folders/client/Client.js +89 -115
  324. package/dist/api/resources/assets/resources/folders/client/index.d.ts +1 -1
  325. package/dist/api/resources/assets/resources/folders/client/index.js +1 -1
  326. package/dist/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -3
  327. package/dist/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +1 -3
  328. package/dist/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -3
  329. package/dist/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +1 -3
  330. package/dist/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -2
  331. package/dist/api/resources/assets/resources/folders/index.d.ts +1 -1
  332. package/dist/api/resources/assets/resources/folders/index.js +1 -1
  333. package/dist/api/resources/assets/resources/index.d.ts +5 -5
  334. package/dist/api/resources/assets/resources/index.js +23 -13
  335. package/dist/api/resources/assets/resources/rules/client/Client.d.ts +31 -42
  336. package/dist/api/resources/assets/resources/rules/client/Client.js +123 -158
  337. package/dist/api/resources/assets/resources/rules/client/index.d.ts +1 -1
  338. package/dist/api/resources/assets/resources/rules/client/index.js +1 -1
  339. package/dist/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +1 -4
  340. package/dist/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +1 -3
  341. package/dist/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +2 -4
  342. package/dist/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +1 -3
  343. package/dist/api/resources/assets/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  344. package/dist/api/resources/assets/resources/rules/client/requests/ListRulesRequest.js +3 -0
  345. package/dist/api/resources/assets/resources/rules/client/requests/PullRulesRequest.d.ts +10 -0
  346. package/dist/api/resources/assets/resources/rules/client/requests/PullRulesRequest.js +3 -0
  347. package/dist/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -4
  348. package/dist/api/resources/assets/resources/rules/index.d.ts +1 -1
  349. package/dist/api/resources/assets/resources/rules/index.js +1 -1
  350. package/dist/api/resources/decisions/client/Client.d.ts +19 -34
  351. package/dist/api/resources/decisions/client/Client.js +79 -74
  352. package/dist/api/resources/decisions/client/index.d.ts +1 -1
  353. package/dist/api/resources/decisions/client/index.js +1 -1
  354. package/dist/api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts +36 -0
  355. package/dist/api/resources/decisions/client/requests/QueryDecisionsRequest.js +3 -0
  356. package/dist/api/resources/decisions/client/requests/index.d.ts +1 -1
  357. package/dist/api/resources/decisions/index.d.ts +2 -1
  358. package/dist/api/resources/decisions/index.js +2 -1
  359. package/dist/api/resources/decisions/types/QueryDecisionsRequestCount.d.ts +5 -0
  360. package/dist/api/resources/decisions/types/QueryDecisionsRequestCount.js +8 -0
  361. package/dist/api/resources/decisions/types/index.d.ts +1 -0
  362. package/dist/api/resources/{users → decisions}/types/index.js +1 -1
  363. package/dist/api/resources/flows/client/Client.d.ts +23 -36
  364. package/dist/api/resources/flows/client/Client.js +62 -65
  365. package/dist/api/resources/flows/client/index.d.ts +1 -1
  366. package/dist/api/resources/flows/client/index.js +15 -0
  367. package/dist/api/resources/flows/client/requests/ExecuteFlowsRequest.d.ts +19 -0
  368. package/dist/api/resources/flows/client/requests/ExecuteFlowsRequest.js +3 -0
  369. package/dist/api/resources/flows/client/requests/index.d.ts +1 -0
  370. package/dist/api/resources/flows/index.d.ts +1 -1
  371. package/dist/api/resources/flows/index.js +1 -1
  372. package/dist/api/resources/index.d.ts +13 -11
  373. package/dist/api/resources/index.js +31 -19
  374. package/dist/api/resources/rules/client/Client.d.ts +55 -56
  375. package/dist/api/resources/rules/client/Client.js +130 -138
  376. package/dist/api/resources/rules/client/index.d.ts +1 -1
  377. package/dist/api/resources/rules/client/index.js +15 -0
  378. package/dist/api/resources/rules/client/requests/BulkSolveRulesRequest.d.ts +21 -0
  379. package/dist/api/resources/rules/client/requests/BulkSolveRulesRequest.js +3 -0
  380. package/dist/api/resources/rules/client/requests/SolveRulesRequest.d.ts +19 -0
  381. package/dist/api/resources/rules/client/requests/SolveRulesRequest.js +3 -0
  382. package/dist/api/resources/rules/client/requests/index.d.ts +2 -0
  383. package/dist/api/resources/rules/index.d.ts +1 -1
  384. package/dist/api/resources/rules/index.js +1 -1
  385. package/dist/api/resources/tests/client/Client.d.ts +13 -21
  386. package/dist/api/resources/tests/client/Client.js +11 -12
  387. package/dist/api/resources/tests/index.d.ts +2 -2
  388. package/dist/api/resources/tests/index.js +2 -2
  389. package/dist/api/resources/tests/resources/flows/client/Client.d.ts +41 -50
  390. package/dist/api/resources/tests/resources/flows/client/Client.js +117 -136
  391. package/dist/api/resources/tests/resources/flows/client/index.d.ts +1 -1
  392. package/dist/api/resources/tests/resources/flows/client/index.js +15 -0
  393. package/dist/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.d.ts +22 -0
  394. package/dist/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.js +3 -0
  395. package/dist/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.d.ts +13 -0
  396. package/dist/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.js +3 -0
  397. package/dist/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.d.ts +10 -0
  398. package/dist/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.js +3 -0
  399. package/dist/api/resources/tests/resources/flows/client/requests/index.d.ts +3 -0
  400. package/dist/api/resources/tests/resources/flows/index.d.ts +1 -1
  401. package/dist/api/resources/tests/resources/flows/index.js +1 -1
  402. package/dist/api/resources/tests/resources/index.d.ts +4 -2
  403. package/dist/api/resources/tests/resources/index.js +24 -9
  404. package/dist/api/resources/tests/resources/rules/client/Client.d.ts +41 -50
  405. package/dist/api/resources/tests/resources/rules/client/Client.js +117 -136
  406. package/dist/api/resources/tests/resources/rules/client/index.d.ts +1 -1
  407. package/dist/api/resources/tests/resources/rules/client/index.js +15 -0
  408. package/dist/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.d.ts +22 -0
  409. package/dist/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.js +3 -0
  410. package/dist/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.d.ts +13 -0
  411. package/dist/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.js +3 -0
  412. package/dist/api/resources/tests/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
  413. package/dist/api/resources/tests/resources/rules/client/requests/ListRulesRequest.js +3 -0
  414. package/dist/api/resources/tests/resources/rules/client/requests/index.d.ts +3 -0
  415. package/dist/api/resources/tests/resources/rules/index.d.ts +1 -1
  416. package/dist/api/resources/tests/resources/rules/index.js +1 -1
  417. package/dist/api/resources/users/client/Client.d.ts +55 -33
  418. package/dist/api/resources/users/client/Client.js +164 -56
  419. package/dist/api/resources/users/client/index.d.ts +1 -1
  420. package/dist/api/resources/users/client/index.js +1 -1
  421. package/dist/api/resources/users/client/requests/CreateUserRequest.d.ts +28 -0
  422. package/dist/api/resources/users/client/requests/CreateUserRequest.js +3 -0
  423. package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +11 -5
  424. package/dist/api/resources/users/client/requests/UserInviteRequest.js +12 -3
  425. package/dist/api/resources/users/client/requests/index.d.ts +2 -1
  426. package/dist/api/resources/users/index.d.ts +2 -3
  427. package/dist/api/resources/users/index.js +2 -3
  428. package/dist/api/resources/users/resources/groups/client/Client.d.ts +16 -32
  429. package/dist/api/resources/users/resources/groups/client/Client.js +68 -86
  430. package/dist/api/resources/users/resources/groups/client/index.d.ts +1 -1
  431. package/dist/api/resources/users/resources/groups/client/index.js +1 -1
  432. package/dist/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -3
  433. package/dist/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +1 -3
  434. package/dist/api/resources/users/resources/groups/client/requests/index.d.ts +1 -1
  435. package/dist/api/resources/users/resources/groups/index.d.ts +1 -1
  436. package/dist/api/resources/users/resources/groups/index.js +1 -1
  437. package/dist/api/resources/users/resources/index.d.ts +2 -2
  438. package/dist/api/resources/users/resources/index.js +19 -9
  439. package/dist/api/resources/values/client/Client.d.ts +21 -36
  440. package/dist/api/resources/values/client/Client.js +96 -126
  441. package/dist/api/resources/values/client/index.d.ts +1 -1
  442. package/dist/api/resources/values/client/index.js +1 -1
  443. package/dist/api/resources/values/client/requests/DeleteValuesRequest.d.ts +10 -0
  444. package/dist/api/resources/values/client/requests/DeleteValuesRequest.js +3 -0
  445. package/dist/api/resources/values/client/requests/ListValuesRequest.d.ts +17 -0
  446. package/dist/api/resources/values/client/requests/ListValuesRequest.js +3 -0
  447. package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -3
  448. package/dist/api/resources/values/client/requests/UpdateValuesRequest.js +1 -3
  449. package/dist/api/resources/values/client/requests/index.d.ts +3 -3
  450. package/dist/api/resources/values/index.d.ts +1 -1
  451. package/dist/api/resources/values/index.js +1 -1
  452. package/dist/api/types/BulkRuleResponseItem.d.ts +4 -5
  453. package/dist/api/types/BulkRuleResponseItem.js +1 -3
  454. package/dist/api/types/CreateTestRequest.d.ts +0 -3
  455. package/dist/api/types/CreateTestRequest.js +1 -3
  456. package/dist/api/types/CreateUserResponse.d.ts +26 -0
  457. package/dist/api/types/CreateUserResponse.js +3 -0
  458. package/dist/api/types/DecisionLog.d.ts +21 -5
  459. package/dist/api/types/DecisionLog.js +1 -3
  460. package/dist/api/types/DecisionLogResponse.d.ts +7 -4
  461. package/dist/api/types/DecisionLogResponse.js +1 -3
  462. package/dist/api/types/DynamicRequestPayload.d.ts +1 -4
  463. package/dist/api/types/DynamicRequestPayload.js +1 -3
  464. package/dist/api/types/DynamicResponsePayload.d.ts +1 -4
  465. package/dist/api/types/DynamicResponsePayload.js +1 -3
  466. package/dist/api/types/DynamicValue.d.ts +2 -4
  467. package/dist/api/types/DynamicValue.js +1 -3
  468. package/dist/api/types/DynamicValueListResponse.d.ts +2 -5
  469. package/dist/api/types/DynamicValueListResponse.js +1 -3
  470. package/dist/api/types/Error_.d.ts +0 -3
  471. package/dist/api/types/Error_.js +1 -3
  472. package/dist/api/types/FlowBase.d.ts +0 -3
  473. package/dist/api/types/FlowBase.js +1 -3
  474. package/dist/api/types/FlowDetail.d.ts +2 -5
  475. package/dist/api/types/FlowDetail.js +1 -3
  476. package/dist/api/types/FlowExecutionError.d.ts +0 -3
  477. package/dist/api/types/FlowExecutionError.js +1 -3
  478. package/dist/api/types/FlowListResponse.d.ts +2 -5
  479. package/dist/api/types/FlowListResponse.js +1 -3
  480. package/dist/api/types/Folder.d.ts +1 -4
  481. package/dist/api/types/Folder.js +1 -3
  482. package/dist/api/types/FolderListResponse.d.ts +2 -5
  483. package/dist/api/types/FolderListResponse.js +1 -3
  484. package/dist/api/types/ParallelSolveRequest.d.ts +11 -5
  485. package/dist/api/types/ParallelSolveRequest.js +1 -3
  486. package/dist/api/types/ParallelSolveResponse.d.ts +2 -5
  487. package/dist/api/types/ParallelSolveResponse.js +1 -3
  488. package/dist/api/types/RuleBase.d.ts +0 -3
  489. package/dist/api/types/RuleBase.js +1 -3
  490. package/dist/api/types/RuleDetail.d.ts +4 -7
  491. package/dist/api/types/RuleDetail.js +1 -3
  492. package/dist/api/types/RuleExport.d.ts +1 -4
  493. package/dist/api/types/RuleExport.js +1 -3
  494. package/dist/api/types/RuleListResponse.d.ts +2 -5
  495. package/dist/api/types/RuleListResponse.js +1 -3
  496. package/dist/api/types/RuleUsage.d.ts +1 -4
  497. package/dist/api/types/RuleUsage.js +1 -3
  498. package/dist/api/types/SchemaField.d.ts +18 -7
  499. package/dist/api/types/SchemaField.js +13 -3
  500. package/dist/api/types/SuccessMessage.d.ts +0 -3
  501. package/dist/api/types/SuccessMessage.js +1 -3
  502. package/dist/api/types/Test.d.ts +25 -6
  503. package/dist/api/types/Test.js +1 -3
  504. package/dist/api/types/TestListResponse.d.ts +2 -5
  505. package/dist/api/types/TestListResponse.js +1 -3
  506. package/dist/api/types/UsageStatistics.d.ts +5 -8
  507. package/dist/api/types/UsageStatistics.js +1 -3
  508. package/dist/api/types/UserDetail.d.ts +19 -0
  509. package/dist/api/types/UserDetail.js +3 -0
  510. package/dist/api/types/UserGroup.d.ts +0 -3
  511. package/dist/api/types/UserGroup.js +1 -3
  512. package/dist/api/types/UserGroupListResponse.d.ts +2 -5
  513. package/dist/api/types/UserGroupListResponse.js +1 -3
  514. package/dist/api/types/UserInviteResponse.d.ts +11 -5
  515. package/dist/api/types/UserInviteResponse.js +1 -3
  516. package/dist/api/types/UserListResponse.d.ts +5 -0
  517. package/dist/api/types/UserListResponse.js +3 -0
  518. package/dist/api/types/ValueLimits.d.ts +4 -7
  519. package/dist/api/types/ValueLimits.js +1 -3
  520. package/dist/api/types/index.d.ts +34 -39
  521. package/dist/api/types/index.js +34 -39
  522. package/dist/auth/HeaderAuthProvider.d.ts +16 -0
  523. package/dist/auth/HeaderAuthProvider.js +71 -0
  524. package/dist/auth/index.d.ts +1 -0
  525. package/dist/auth/index.js +5 -0
  526. package/dist/core/auth/AuthProvider.d.ts +7 -0
  527. package/dist/core/auth/AuthRequest.d.ts +9 -0
  528. package/dist/core/auth/BasicAuth.d.ts +8 -0
  529. package/dist/core/auth/BasicAuth.js +27 -0
  530. package/dist/core/auth/BearerToken.d.ts +7 -0
  531. package/dist/core/auth/BearerToken.js +16 -0
  532. package/dist/core/auth/NoOpAuthProvider.d.ts +5 -0
  533. package/dist/core/auth/NoOpAuthProvider.js +9 -0
  534. package/dist/core/auth/index.d.ts +5 -0
  535. package/dist/core/auth/index.js +9 -0
  536. package/dist/core/base64.d.ts +2 -0
  537. package/dist/core/base64.js +26 -0
  538. package/dist/core/exports.d.ts +1 -0
  539. package/dist/core/exports.js +17 -0
  540. package/dist/core/fetcher/APIResponse.d.ts +11 -1
  541. package/dist/core/fetcher/BinaryResponse.d.ts +19 -0
  542. package/dist/core/fetcher/BinaryResponse.js +17 -0
  543. package/dist/core/fetcher/EndpointMetadata.d.ts +13 -0
  544. package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
  545. package/dist/core/fetcher/EndpointSupplier.js +22 -0
  546. package/dist/core/fetcher/Fetcher.d.ts +17 -7
  547. package/dist/core/fetcher/Fetcher.js +244 -28
  548. package/dist/core/fetcher/Headers.d.ts +2 -0
  549. package/dist/core/fetcher/Headers.js +84 -0
  550. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  551. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  552. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  553. package/dist/core/fetcher/RawResponse.js +44 -0
  554. package/dist/core/fetcher/Supplier.d.ts +1 -1
  555. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  556. package/dist/core/fetcher/createRequestUrl.js +4 -9
  557. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  558. package/dist/core/fetcher/getErrorResponseBody.js +45 -0
  559. package/dist/core/fetcher/getFetchFn.d.ts +1 -4
  560. package/dist/core/fetcher/getFetchFn.js +2 -44
  561. package/dist/core/fetcher/getHeader.js +1 -2
  562. package/dist/core/fetcher/getRequestBody.d.ts +1 -1
  563. package/dist/core/fetcher/getRequestBody.js +9 -6
  564. package/dist/core/fetcher/getResponseBody.js +43 -29
  565. package/dist/core/fetcher/index.d.ts +11 -5
  566. package/dist/core/fetcher/index.js +15 -7
  567. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  568. package/dist/core/fetcher/makeRequest.js +4 -6
  569. package/dist/core/fetcher/requestWithRetries.js +38 -12
  570. package/dist/core/fetcher/signals.d.ts +1 -8
  571. package/dist/core/fetcher/signals.js +2 -15
  572. package/dist/core/headers.d.ts +2 -0
  573. package/dist/core/headers.js +31 -0
  574. package/dist/core/index.d.ts +6 -3
  575. package/dist/core/index.js +24 -11
  576. package/dist/core/json.d.ts +1 -1
  577. package/dist/core/json.js +2 -2
  578. package/dist/core/logging/exports.d.ts +18 -0
  579. package/dist/core/logging/exports.js +45 -0
  580. package/dist/core/logging/index.d.ts +1 -0
  581. package/dist/{serialization/resources/assets → core/logging}/index.js +1 -1
  582. package/dist/core/logging/logger.d.ts +126 -0
  583. package/dist/core/logging/logger.js +144 -0
  584. package/dist/core/runtime/index.d.ts +1 -1
  585. package/dist/core/runtime/index.js +2 -2
  586. package/dist/core/runtime/runtime.js +11 -11
  587. package/dist/core/url/encodePathParam.d.ts +1 -0
  588. package/dist/core/url/encodePathParam.js +21 -0
  589. package/dist/core/url/index.d.ts +3 -0
  590. package/dist/core/url/index.js +9 -0
  591. package/dist/core/url/join.d.ts +1 -0
  592. package/dist/core/url/join.js +68 -0
  593. package/dist/core/url/qs.d.ts +6 -0
  594. package/dist/core/url/qs.js +64 -0
  595. package/dist/environments.d.ts +2 -5
  596. package/dist/environments.js +2 -4
  597. package/dist/errors/RulebricksError.d.ts +4 -4
  598. package/dist/errors/RulebricksError.js +12 -13
  599. package/dist/errors/RulebricksTimeoutError.d.ts +0 -3
  600. package/dist/errors/RulebricksTimeoutError.js +6 -4
  601. package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
  602. package/dist/errors/handleNonStatusCodeError.js +65 -0
  603. package/dist/errors/index.d.ts +2 -2
  604. package/dist/errors/index.js +4 -4
  605. package/dist/exports.d.ts +1 -0
  606. package/{core/schemas/index.js → dist/exports.js} +1 -1
  607. package/dist/forge/operators.d.ts +1 -1
  608. package/dist/forge/rule.js +4 -4
  609. package/dist/forge/types.d.ts +1 -1
  610. package/dist/forge/types.js +2 -2
  611. package/dist/forge/values.js +2 -2
  612. package/dist/index.d.ts +6 -5
  613. package/dist/index.js +29 -16
  614. package/environments.d.ts +2 -5
  615. package/environments.js +2 -4
  616. package/errors/RulebricksError.d.ts +4 -4
  617. package/errors/RulebricksError.js +12 -13
  618. package/errors/RulebricksTimeoutError.d.ts +0 -3
  619. package/errors/RulebricksTimeoutError.js +6 -4
  620. package/errors/handleNonStatusCodeError.d.ts +2 -0
  621. package/errors/handleNonStatusCodeError.js +65 -0
  622. package/errors/index.d.ts +2 -2
  623. package/errors/index.js +4 -4
  624. package/exports.d.ts +1 -0
  625. package/{dist/serialization/resources/assets/resources/folders/client/index.js → exports.js} +1 -1
  626. package/forge/operators.d.ts +1 -1
  627. package/forge/rule.js +4 -4
  628. package/forge/types.d.ts +1 -1
  629. package/forge/types.js +2 -2
  630. package/forge/values.js +2 -2
  631. package/index.d.ts +6 -5
  632. package/index.js +29 -16
  633. package/package.json +44 -39
  634. package/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts +0 -13
  635. package/api/resources/assets/resources/rules/client/requests/RulesListRequest.js +0 -5
  636. package/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts +0 -15
  637. package/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js +0 -5
  638. package/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts +0 -31
  639. package/api/resources/decisions/client/requests/DecisionsQueryRequest.js +0 -5
  640. package/api/resources/users/types/UserInviteRequestRole.d.ts +0 -13
  641. package/api/resources/users/types/UserInviteRequestRole.js +0 -12
  642. package/api/resources/users/types/index.d.ts +0 -1
  643. package/api/resources/values/client/requests/ValuesDeleteRequest.d.ts +0 -15
  644. package/api/resources/values/client/requests/ValuesDeleteRequest.js +0 -5
  645. package/api/resources/values/client/requests/ValuesListRequest.d.ts +0 -24
  646. package/api/resources/values/client/requests/ValuesListRequest.js +0 -5
  647. package/api/types/BulkRuleResponseItemError.d.ts +0 -7
  648. package/api/types/BulkRuleResponseItemError.js +0 -5
  649. package/api/types/ParallelSolveRequestValue.d.ts +0 -11
  650. package/api/types/ParallelSolveRequestValue.js +0 -5
  651. package/api/types/SchemaFieldDefaultValue.d.ts +0 -7
  652. package/api/types/SchemaFieldDefaultValue.js +0 -5
  653. package/api/types/SchemaFieldType.d.ts +0 -14
  654. package/api/types/SchemaFieldType.js +0 -13
  655. package/api/types/TestTestState.d.ts +0 -19
  656. package/api/types/TestTestState.js +0 -5
  657. package/api/types/TestTestStateConditionsItemValue.d.ts +0 -7
  658. package/api/types/TestTestStateConditionsItemValue.js +0 -5
  659. package/api/types/TestTestStateEvaluationError.d.ts +0 -7
  660. package/api/types/TestTestStateEvaluationError.js +0 -5
  661. package/api/types/UserInviteResponseUser.d.ts +0 -11
  662. package/api/types/UserInviteResponseUser.js +0 -5
  663. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  664. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  665. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
  666. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
  667. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  668. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  669. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  670. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
  671. package/core/schemas/Schema.d.ts +0 -87
  672. package/core/schemas/Schema.js +0 -24
  673. package/core/schemas/builders/bigint/bigint.d.ts +0 -2
  674. package/core/schemas/builders/bigint/bigint.js +0 -54
  675. package/core/schemas/builders/bigint/index.d.ts +0 -1
  676. package/core/schemas/builders/bigint/index.js +0 -5
  677. package/core/schemas/builders/date/date.d.ts +0 -2
  678. package/core/schemas/builders/date/date.js +0 -63
  679. package/core/schemas/builders/date/index.d.ts +0 -1
  680. package/core/schemas/builders/date/index.js +0 -5
  681. package/core/schemas/builders/enum/enum.d.ts +0 -2
  682. package/core/schemas/builders/enum/enum.js +0 -39
  683. package/core/schemas/builders/enum/index.d.ts +0 -1
  684. package/core/schemas/builders/enum/index.js +0 -5
  685. package/core/schemas/builders/index.d.ts +0 -14
  686. package/core/schemas/builders/index.js +0 -30
  687. package/core/schemas/builders/lazy/index.d.ts +0 -3
  688. package/core/schemas/builders/lazy/index.js +0 -7
  689. package/core/schemas/builders/lazy/lazy.d.ts +0 -5
  690. package/core/schemas/builders/lazy/lazy.js +0 -25
  691. package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
  692. package/core/schemas/builders/lazy/lazyObject.js +0 -12
  693. package/core/schemas/builders/list/index.d.ts +0 -1
  694. package/core/schemas/builders/list/index.js +0 -5
  695. package/core/schemas/builders/list/list.d.ts +0 -2
  696. package/core/schemas/builders/list/list.js +0 -55
  697. package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
  698. package/core/schemas/builders/literals/booleanLiteral.js +0 -29
  699. package/core/schemas/builders/literals/index.d.ts +0 -2
  700. package/core/schemas/builders/literals/index.js +0 -7
  701. package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
  702. package/core/schemas/builders/literals/stringLiteral.js +0 -29
  703. package/core/schemas/builders/object/index.d.ts +0 -6
  704. package/core/schemas/builders/object/index.js +0 -11
  705. package/core/schemas/builders/object/object.d.ts +0 -3
  706. package/core/schemas/builders/object/object.js +0 -262
  707. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
  708. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
  709. package/core/schemas/builders/object/property.d.ts +0 -8
  710. package/core/schemas/builders/object/property.js +0 -16
  711. package/core/schemas/builders/object/types.d.ts +0 -31
  712. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
  713. package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
  714. package/core/schemas/builders/object-like/index.d.ts +0 -2
  715. package/core/schemas/builders/object-like/index.js +0 -6
  716. package/core/schemas/builders/object-like/types.d.ts +0 -7
  717. package/core/schemas/builders/primitives/any.d.ts +0 -1
  718. package/core/schemas/builders/primitives/any.js +0 -6
  719. package/core/schemas/builders/primitives/boolean.d.ts +0 -1
  720. package/core/schemas/builders/primitives/boolean.js +0 -25
  721. package/core/schemas/builders/primitives/index.d.ts +0 -5
  722. package/core/schemas/builders/primitives/index.js +0 -13
  723. package/core/schemas/builders/primitives/number.d.ts +0 -1
  724. package/core/schemas/builders/primitives/number.js +0 -25
  725. package/core/schemas/builders/primitives/string.d.ts +0 -1
  726. package/core/schemas/builders/primitives/string.js +0 -25
  727. package/core/schemas/builders/primitives/unknown.d.ts +0 -1
  728. package/core/schemas/builders/primitives/unknown.js +0 -6
  729. package/core/schemas/builders/record/index.d.ts +0 -2
  730. package/core/schemas/builders/record/index.js +0 -5
  731. package/core/schemas/builders/record/record.d.ts +0 -3
  732. package/core/schemas/builders/record/record.js +0 -94
  733. package/core/schemas/builders/record/types.d.ts +0 -4
  734. package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
  735. package/core/schemas/builders/schema-utils/JsonError.js +0 -12
  736. package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
  737. package/core/schemas/builders/schema-utils/ParseError.js +0 -12
  738. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
  739. package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -146
  740. package/core/schemas/builders/schema-utils/index.d.ts +0 -4
  741. package/core/schemas/builders/schema-utils/index.js +0 -11
  742. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
  743. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
  744. package/core/schemas/builders/set/index.d.ts +0 -1
  745. package/core/schemas/builders/set/index.js +0 -5
  746. package/core/schemas/builders/set/set.d.ts +0 -2
  747. package/core/schemas/builders/set/set.js +0 -44
  748. package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
  749. package/core/schemas/builders/undiscriminated-union/index.js +0 -5
  750. package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
  751. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
  752. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
  753. package/core/schemas/builders/union/discriminant.d.ts +0 -5
  754. package/core/schemas/builders/union/discriminant.js +0 -10
  755. package/core/schemas/builders/union/index.d.ts +0 -4
  756. package/core/schemas/builders/union/index.js +0 -7
  757. package/core/schemas/builders/union/types.d.ts +0 -13
  758. package/core/schemas/builders/union/union.d.ts +0 -4
  759. package/core/schemas/builders/union/union.js +0 -130
  760. package/core/schemas/index.d.ts +0 -2
  761. package/core/schemas/utils/MaybePromise.d.ts +0 -1
  762. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
  763. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
  764. package/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
  765. package/core/schemas/utils/entries.d.ts +0 -1
  766. package/core/schemas/utils/entries.js +0 -7
  767. package/core/schemas/utils/filterObject.d.ts +0 -1
  768. package/core/schemas/utils/filterObject.js +0 -14
  769. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
  770. package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
  771. package/core/schemas/utils/isPlainObject.d.ts +0 -1
  772. package/core/schemas/utils/isPlainObject.js +0 -18
  773. package/core/schemas/utils/keys.d.ts +0 -1
  774. package/core/schemas/utils/keys.js +0 -7
  775. package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
  776. package/core/schemas/utils/maybeSkipValidation.js +0 -28
  777. package/core/schemas/utils/partition.d.ts +0 -1
  778. package/core/schemas/utils/partition.js +0 -16
  779. package/dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts +0 -13
  780. package/dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.js +0 -5
  781. package/dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts +0 -15
  782. package/dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js +0 -5
  783. package/dist/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts +0 -31
  784. package/dist/api/resources/decisions/client/requests/DecisionsQueryRequest.js +0 -5
  785. package/dist/api/resources/users/types/UserInviteRequestRole.d.ts +0 -13
  786. package/dist/api/resources/users/types/UserInviteRequestRole.js +0 -12
  787. package/dist/api/resources/users/types/index.d.ts +0 -1
  788. package/dist/api/resources/values/client/requests/ValuesDeleteRequest.d.ts +0 -15
  789. package/dist/api/resources/values/client/requests/ValuesDeleteRequest.js +0 -5
  790. package/dist/api/resources/values/client/requests/ValuesListRequest.d.ts +0 -24
  791. package/dist/api/resources/values/client/requests/ValuesListRequest.js +0 -5
  792. package/dist/api/types/BulkRuleResponseItemError.d.ts +0 -7
  793. package/dist/api/types/BulkRuleResponseItemError.js +0 -5
  794. package/dist/api/types/ParallelSolveRequestValue.d.ts +0 -11
  795. package/dist/api/types/ParallelSolveRequestValue.js +0 -5
  796. package/dist/api/types/SchemaFieldDefaultValue.d.ts +0 -7
  797. package/dist/api/types/SchemaFieldDefaultValue.js +0 -5
  798. package/dist/api/types/SchemaFieldType.d.ts +0 -14
  799. package/dist/api/types/SchemaFieldType.js +0 -13
  800. package/dist/api/types/TestTestState.d.ts +0 -19
  801. package/dist/api/types/TestTestState.js +0 -5
  802. package/dist/api/types/TestTestStateConditionsItemValue.d.ts +0 -7
  803. package/dist/api/types/TestTestStateConditionsItemValue.js +0 -5
  804. package/dist/api/types/TestTestStateEvaluationError.d.ts +0 -7
  805. package/dist/api/types/TestTestStateEvaluationError.js +0 -5
  806. package/dist/api/types/UserInviteResponseUser.d.ts +0 -11
  807. package/dist/api/types/UserInviteResponseUser.js +0 -5
  808. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  809. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  810. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
  811. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
  812. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  813. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  814. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  815. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
  816. package/dist/core/schemas/Schema.d.ts +0 -87
  817. package/dist/core/schemas/Schema.js +0 -24
  818. package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
  819. package/dist/core/schemas/builders/bigint/bigint.js +0 -54
  820. package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
  821. package/dist/core/schemas/builders/bigint/index.js +0 -5
  822. package/dist/core/schemas/builders/date/date.d.ts +0 -2
  823. package/dist/core/schemas/builders/date/date.js +0 -63
  824. package/dist/core/schemas/builders/date/index.d.ts +0 -1
  825. package/dist/core/schemas/builders/date/index.js +0 -5
  826. package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
  827. package/dist/core/schemas/builders/enum/enum.js +0 -39
  828. package/dist/core/schemas/builders/enum/index.d.ts +0 -1
  829. package/dist/core/schemas/builders/enum/index.js +0 -5
  830. package/dist/core/schemas/builders/index.d.ts +0 -14
  831. package/dist/core/schemas/builders/index.js +0 -30
  832. package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
  833. package/dist/core/schemas/builders/lazy/index.js +0 -7
  834. package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
  835. package/dist/core/schemas/builders/lazy/lazy.js +0 -25
  836. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
  837. package/dist/core/schemas/builders/lazy/lazyObject.js +0 -12
  838. package/dist/core/schemas/builders/list/index.d.ts +0 -1
  839. package/dist/core/schemas/builders/list/index.js +0 -5
  840. package/dist/core/schemas/builders/list/list.d.ts +0 -2
  841. package/dist/core/schemas/builders/list/list.js +0 -55
  842. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
  843. package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -29
  844. package/dist/core/schemas/builders/literals/index.d.ts +0 -2
  845. package/dist/core/schemas/builders/literals/index.js +0 -7
  846. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
  847. package/dist/core/schemas/builders/literals/stringLiteral.js +0 -29
  848. package/dist/core/schemas/builders/object/index.d.ts +0 -6
  849. package/dist/core/schemas/builders/object/index.js +0 -11
  850. package/dist/core/schemas/builders/object/object.d.ts +0 -3
  851. package/dist/core/schemas/builders/object/object.js +0 -262
  852. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
  853. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
  854. package/dist/core/schemas/builders/object/property.d.ts +0 -8
  855. package/dist/core/schemas/builders/object/property.js +0 -16
  856. package/dist/core/schemas/builders/object/types.d.ts +0 -31
  857. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
  858. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
  859. package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
  860. package/dist/core/schemas/builders/object-like/index.js +0 -6
  861. package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
  862. package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
  863. package/dist/core/schemas/builders/primitives/any.js +0 -6
  864. package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
  865. package/dist/core/schemas/builders/primitives/boolean.js +0 -25
  866. package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
  867. package/dist/core/schemas/builders/primitives/index.js +0 -13
  868. package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
  869. package/dist/core/schemas/builders/primitives/number.js +0 -25
  870. package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
  871. package/dist/core/schemas/builders/primitives/string.js +0 -25
  872. package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
  873. package/dist/core/schemas/builders/primitives/unknown.js +0 -6
  874. package/dist/core/schemas/builders/record/index.d.ts +0 -2
  875. package/dist/core/schemas/builders/record/index.js +0 -5
  876. package/dist/core/schemas/builders/record/record.d.ts +0 -3
  877. package/dist/core/schemas/builders/record/record.js +0 -94
  878. package/dist/core/schemas/builders/record/types.d.ts +0 -4
  879. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
  880. package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
  881. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
  882. package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
  883. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
  884. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -146
  885. package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
  886. package/dist/core/schemas/builders/schema-utils/index.js +0 -11
  887. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
  888. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
  889. package/dist/core/schemas/builders/set/index.d.ts +0 -1
  890. package/dist/core/schemas/builders/set/index.js +0 -5
  891. package/dist/core/schemas/builders/set/set.d.ts +0 -2
  892. package/dist/core/schemas/builders/set/set.js +0 -44
  893. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
  894. package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
  895. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
  896. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
  897. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
  898. package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
  899. package/dist/core/schemas/builders/union/discriminant.js +0 -10
  900. package/dist/core/schemas/builders/union/index.d.ts +0 -4
  901. package/dist/core/schemas/builders/union/index.js +0 -7
  902. package/dist/core/schemas/builders/union/types.d.ts +0 -13
  903. package/dist/core/schemas/builders/union/union.d.ts +0 -4
  904. package/dist/core/schemas/builders/union/union.js +0 -130
  905. package/dist/core/schemas/index.d.ts +0 -2
  906. package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
  907. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
  908. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
  909. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
  910. package/dist/core/schemas/utils/entries.d.ts +0 -1
  911. package/dist/core/schemas/utils/entries.js +0 -7
  912. package/dist/core/schemas/utils/filterObject.d.ts +0 -1
  913. package/dist/core/schemas/utils/filterObject.js +0 -14
  914. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
  915. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
  916. package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
  917. package/dist/core/schemas/utils/isPlainObject.js +0 -18
  918. package/dist/core/schemas/utils/keys.d.ts +0 -1
  919. package/dist/core/schemas/utils/keys.js +0 -7
  920. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
  921. package/dist/core/schemas/utils/maybeSkipValidation.js +0 -28
  922. package/dist/core/schemas/utils/partition.d.ts +0 -1
  923. package/dist/core/schemas/utils/partition.js +0 -16
  924. package/dist/serialization/index.d.ts +0 -2
  925. package/dist/serialization/index.js +0 -18
  926. package/dist/serialization/resources/assets/index.d.ts +0 -1
  927. package/dist/serialization/resources/assets/resources/folders/client/index.d.ts +0 -1
  928. package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -12
  929. package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +0 -33
  930. package/dist/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -14
  931. package/dist/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +0 -35
  932. package/dist/serialization/resources/assets/resources/folders/client/requests/index.d.ts +0 -2
  933. package/dist/serialization/resources/assets/resources/folders/client/requests/index.js +0 -7
  934. package/dist/serialization/resources/assets/resources/folders/index.d.ts +0 -1
  935. package/dist/serialization/resources/assets/resources/folders/index.js +0 -17
  936. package/dist/serialization/resources/assets/resources/index.d.ts +0 -4
  937. package/dist/serialization/resources/assets/resources/index.js +0 -33
  938. package/dist/serialization/resources/assets/resources/rules/client/index.d.ts +0 -1
  939. package/dist/serialization/resources/assets/resources/rules/client/index.js +0 -17
  940. package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +0 -12
  941. package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +0 -33
  942. package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +0 -12
  943. package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +0 -33
  944. package/dist/serialization/resources/assets/resources/rules/client/requests/index.d.ts +0 -2
  945. package/dist/serialization/resources/assets/resources/rules/client/requests/index.js +0 -7
  946. package/dist/serialization/resources/assets/resources/rules/index.d.ts +0 -1
  947. package/dist/serialization/resources/assets/resources/rules/index.js +0 -17
  948. package/dist/serialization/resources/index.d.ts +0 -7
  949. package/dist/serialization/resources/index.js +0 -36
  950. package/dist/serialization/resources/rules/client/bulkSolve.d.ts +0 -16
  951. package/dist/serialization/resources/rules/client/bulkSolve.js +0 -34
  952. package/dist/serialization/resources/rules/client/index.d.ts +0 -1
  953. package/dist/serialization/resources/rules/client/index.js +0 -27
  954. package/dist/serialization/resources/rules/index.d.ts +0 -1
  955. package/dist/serialization/resources/rules/index.js +0 -17
  956. package/dist/serialization/resources/users/client/index.d.ts +0 -1
  957. package/dist/serialization/resources/users/client/index.js +0 -17
  958. package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +0 -15
  959. package/dist/serialization/resources/users/client/requests/UserInviteRequest.js +0 -36
  960. package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
  961. package/dist/serialization/resources/users/client/requests/index.js +0 -5
  962. package/dist/serialization/resources/users/index.d.ts +0 -3
  963. package/dist/serialization/resources/users/index.js +0 -19
  964. package/dist/serialization/resources/users/resources/groups/client/index.d.ts +0 -1
  965. package/dist/serialization/resources/users/resources/groups/client/index.js +0 -17
  966. package/dist/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -13
  967. package/dist/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +0 -34
  968. package/dist/serialization/resources/users/resources/groups/client/requests/index.d.ts +0 -1
  969. package/dist/serialization/resources/users/resources/groups/client/requests/index.js +0 -5
  970. package/dist/serialization/resources/users/resources/groups/index.d.ts +0 -1
  971. package/dist/serialization/resources/users/resources/groups/index.js +0 -17
  972. package/dist/serialization/resources/users/resources/index.d.ts +0 -2
  973. package/dist/serialization/resources/users/resources/index.js +0 -31
  974. package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +0 -10
  975. package/dist/serialization/resources/users/types/UserInviteRequestRole.js +0 -31
  976. package/dist/serialization/resources/users/types/index.d.ts +0 -1
  977. package/dist/serialization/resources/users/types/index.js +0 -17
  978. package/dist/serialization/resources/values/client/index.d.ts +0 -1
  979. package/dist/serialization/resources/values/client/index.js +0 -17
  980. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -13
  981. package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +0 -34
  982. package/dist/serialization/resources/values/client/requests/index.d.ts +0 -1
  983. package/dist/serialization/resources/values/client/requests/index.js +0 -5
  984. package/dist/serialization/resources/values/index.d.ts +0 -1
  985. package/dist/serialization/resources/values/index.js +0 -17
  986. package/dist/serialization/types/BulkRuleResponseItem.d.ts +0 -12
  987. package/dist/serialization/types/BulkRuleResponseItem.js +0 -33
  988. package/dist/serialization/types/BulkRuleResponseItemError.d.ts +0 -12
  989. package/dist/serialization/types/BulkRuleResponseItemError.js +0 -33
  990. package/dist/serialization/types/CreateTestRequest.d.ts +0 -15
  991. package/dist/serialization/types/CreateTestRequest.js +0 -36
  992. package/dist/serialization/types/DecisionLog.d.ts +0 -10
  993. package/dist/serialization/types/DecisionLog.js +0 -31
  994. package/dist/serialization/types/DecisionLogResponse.d.ts +0 -14
  995. package/dist/serialization/types/DecisionLogResponse.js +0 -35
  996. package/dist/serialization/types/DynamicRequestPayload.d.ts +0 -10
  997. package/dist/serialization/types/DynamicRequestPayload.js +0 -31
  998. package/dist/serialization/types/DynamicResponsePayload.d.ts +0 -10
  999. package/dist/serialization/types/DynamicResponsePayload.js +0 -31
  1000. package/dist/serialization/types/DynamicValue.d.ts +0 -18
  1001. package/dist/serialization/types/DynamicValue.js +0 -39
  1002. package/dist/serialization/types/DynamicValueListResponse.d.ts +0 -11
  1003. package/dist/serialization/types/DynamicValueListResponse.js +0 -32
  1004. package/dist/serialization/types/Error_.d.ts +0 -12
  1005. package/dist/serialization/types/Error_.js +0 -33
  1006. package/dist/serialization/types/FlowBase.d.ts +0 -15
  1007. package/dist/serialization/types/FlowBase.js +0 -36
  1008. package/dist/serialization/types/FlowDetail.d.ts +0 -14
  1009. package/dist/serialization/types/FlowDetail.js +0 -37
  1010. package/dist/serialization/types/FlowExecutionError.d.ts +0 -14
  1011. package/dist/serialization/types/FlowExecutionError.js +0 -35
  1012. package/dist/serialization/types/FlowListResponse.d.ts +0 -11
  1013. package/dist/serialization/types/FlowListResponse.js +0 -32
  1014. package/dist/serialization/types/Folder.d.ts +0 -15
  1015. package/dist/serialization/types/Folder.js +0 -36
  1016. package/dist/serialization/types/FolderListResponse.d.ts +0 -11
  1017. package/dist/serialization/types/FolderListResponse.js +0 -32
  1018. package/dist/serialization/types/ParallelSolveRequest.d.ts +0 -11
  1019. package/dist/serialization/types/ParallelSolveRequest.js +0 -32
  1020. package/dist/serialization/types/ParallelSolveRequestValue.d.ts +0 -14
  1021. package/dist/serialization/types/ParallelSolveRequestValue.js +0 -36
  1022. package/dist/serialization/types/ParallelSolveResponse.d.ts +0 -11
  1023. package/dist/serialization/types/ParallelSolveResponse.js +0 -32
  1024. package/dist/serialization/types/RuleBase.d.ts +0 -15
  1025. package/dist/serialization/types/RuleBase.js +0 -36
  1026. package/dist/serialization/types/RuleDetail.d.ts +0 -18
  1027. package/dist/serialization/types/RuleDetail.js +0 -41
  1028. package/dist/serialization/types/RuleExport.d.ts +0 -10
  1029. package/dist/serialization/types/RuleExport.js +0 -31
  1030. package/dist/serialization/types/RuleListResponse.d.ts +0 -11
  1031. package/dist/serialization/types/RuleListResponse.js +0 -32
  1032. package/dist/serialization/types/RuleUsage.d.ts +0 -17
  1033. package/dist/serialization/types/RuleUsage.js +0 -38
  1034. package/dist/serialization/types/SchemaField.d.ts +0 -21
  1035. package/dist/serialization/types/SchemaField.js +0 -42
  1036. package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +0 -10
  1037. package/dist/serialization/types/SchemaFieldDefaultValue.js +0 -37
  1038. package/dist/serialization/types/SchemaFieldType.d.ts +0 -10
  1039. package/dist/serialization/types/SchemaFieldType.js +0 -31
  1040. package/dist/serialization/types/SuccessMessage.d.ts +0 -12
  1041. package/dist/serialization/types/SuccessMessage.js +0 -33
  1042. package/dist/serialization/types/Test.d.ts +0 -21
  1043. package/dist/serialization/types/Test.js +0 -42
  1044. package/dist/serialization/types/TestListResponse.d.ts +0 -11
  1045. package/dist/serialization/types/TestListResponse.js +0 -32
  1046. package/dist/serialization/types/TestTestState.d.ts +0 -19
  1047. package/dist/serialization/types/TestTestState.js +0 -42
  1048. package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +0 -13
  1049. package/dist/serialization/types/TestTestStateConditionsItemValue.js +0 -34
  1050. package/dist/serialization/types/TestTestStateEvaluationError.d.ts +0 -10
  1051. package/dist/serialization/types/TestTestStateEvaluationError.js +0 -31
  1052. package/dist/serialization/types/UsageStatistics.d.ts +0 -17
  1053. package/dist/serialization/types/UsageStatistics.js +0 -38
  1054. package/dist/serialization/types/UserGroup.d.ts +0 -15
  1055. package/dist/serialization/types/UserGroup.js +0 -36
  1056. package/dist/serialization/types/UserGroupListResponse.d.ts +0 -11
  1057. package/dist/serialization/types/UserGroupListResponse.js +0 -32
  1058. package/dist/serialization/types/UserInviteResponse.d.ts +0 -14
  1059. package/dist/serialization/types/UserInviteResponse.js +0 -35
  1060. package/dist/serialization/types/UserInviteResponseUser.d.ts +0 -14
  1061. package/dist/serialization/types/UserInviteResponseUser.js +0 -35
  1062. package/dist/serialization/types/ValueLimits.d.ts +0 -15
  1063. package/dist/serialization/types/ValueLimits.js +0 -36
  1064. package/dist/serialization/types/index.d.ts +0 -39
  1065. package/dist/serialization/types/index.js +0 -55
  1066. package/serialization/index.d.ts +0 -2
  1067. package/serialization/index.js +0 -18
  1068. package/serialization/resources/assets/index.d.ts +0 -1
  1069. package/serialization/resources/assets/index.js +0 -17
  1070. package/serialization/resources/assets/resources/folders/client/index.d.ts +0 -1
  1071. package/serialization/resources/assets/resources/folders/client/index.js +0 -17
  1072. package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -12
  1073. package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +0 -33
  1074. package/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -14
  1075. package/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +0 -35
  1076. package/serialization/resources/assets/resources/folders/client/requests/index.d.ts +0 -2
  1077. package/serialization/resources/assets/resources/folders/client/requests/index.js +0 -7
  1078. package/serialization/resources/assets/resources/folders/index.d.ts +0 -1
  1079. package/serialization/resources/assets/resources/folders/index.js +0 -17
  1080. package/serialization/resources/assets/resources/index.d.ts +0 -4
  1081. package/serialization/resources/assets/resources/index.js +0 -33
  1082. package/serialization/resources/assets/resources/rules/client/index.d.ts +0 -1
  1083. package/serialization/resources/assets/resources/rules/client/index.js +0 -17
  1084. package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +0 -12
  1085. package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +0 -33
  1086. package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +0 -12
  1087. package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +0 -33
  1088. package/serialization/resources/assets/resources/rules/client/requests/index.d.ts +0 -2
  1089. package/serialization/resources/assets/resources/rules/client/requests/index.js +0 -7
  1090. package/serialization/resources/assets/resources/rules/index.d.ts +0 -1
  1091. package/serialization/resources/assets/resources/rules/index.js +0 -17
  1092. package/serialization/resources/index.d.ts +0 -7
  1093. package/serialization/resources/index.js +0 -36
  1094. package/serialization/resources/rules/client/bulkSolve.d.ts +0 -16
  1095. package/serialization/resources/rules/client/bulkSolve.js +0 -34
  1096. package/serialization/resources/rules/client/index.d.ts +0 -1
  1097. package/serialization/resources/rules/client/index.js +0 -27
  1098. package/serialization/resources/rules/index.d.ts +0 -1
  1099. package/serialization/resources/rules/index.js +0 -17
  1100. package/serialization/resources/users/client/index.d.ts +0 -1
  1101. package/serialization/resources/users/client/index.js +0 -17
  1102. package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +0 -15
  1103. package/serialization/resources/users/client/requests/UserInviteRequest.js +0 -36
  1104. package/serialization/resources/users/client/requests/index.d.ts +0 -1
  1105. package/serialization/resources/users/client/requests/index.js +0 -5
  1106. package/serialization/resources/users/index.d.ts +0 -3
  1107. package/serialization/resources/users/index.js +0 -19
  1108. package/serialization/resources/users/resources/groups/client/index.d.ts +0 -1
  1109. package/serialization/resources/users/resources/groups/client/index.js +0 -17
  1110. package/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -13
  1111. package/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +0 -34
  1112. package/serialization/resources/users/resources/groups/client/requests/index.d.ts +0 -1
  1113. package/serialization/resources/users/resources/groups/client/requests/index.js +0 -5
  1114. package/serialization/resources/users/resources/groups/index.d.ts +0 -1
  1115. package/serialization/resources/users/resources/groups/index.js +0 -17
  1116. package/serialization/resources/users/resources/index.d.ts +0 -2
  1117. package/serialization/resources/users/resources/index.js +0 -31
  1118. package/serialization/resources/users/types/UserInviteRequestRole.d.ts +0 -10
  1119. package/serialization/resources/users/types/UserInviteRequestRole.js +0 -31
  1120. package/serialization/resources/users/types/index.d.ts +0 -1
  1121. package/serialization/resources/users/types/index.js +0 -17
  1122. package/serialization/resources/values/client/index.d.ts +0 -1
  1123. package/serialization/resources/values/client/index.js +0 -17
  1124. package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -13
  1125. package/serialization/resources/values/client/requests/UpdateValuesRequest.js +0 -34
  1126. package/serialization/resources/values/client/requests/index.d.ts +0 -1
  1127. package/serialization/resources/values/client/requests/index.js +0 -5
  1128. package/serialization/resources/values/index.d.ts +0 -1
  1129. package/serialization/resources/values/index.js +0 -17
  1130. package/serialization/types/BulkRuleResponseItem.d.ts +0 -12
  1131. package/serialization/types/BulkRuleResponseItem.js +0 -33
  1132. package/serialization/types/BulkRuleResponseItemError.d.ts +0 -12
  1133. package/serialization/types/BulkRuleResponseItemError.js +0 -33
  1134. package/serialization/types/CreateTestRequest.d.ts +0 -15
  1135. package/serialization/types/CreateTestRequest.js +0 -36
  1136. package/serialization/types/DecisionLog.d.ts +0 -10
  1137. package/serialization/types/DecisionLog.js +0 -31
  1138. package/serialization/types/DecisionLogResponse.d.ts +0 -14
  1139. package/serialization/types/DecisionLogResponse.js +0 -35
  1140. package/serialization/types/DynamicRequestPayload.d.ts +0 -10
  1141. package/serialization/types/DynamicRequestPayload.js +0 -31
  1142. package/serialization/types/DynamicResponsePayload.d.ts +0 -10
  1143. package/serialization/types/DynamicResponsePayload.js +0 -31
  1144. package/serialization/types/DynamicValue.d.ts +0 -18
  1145. package/serialization/types/DynamicValue.js +0 -39
  1146. package/serialization/types/DynamicValueListResponse.d.ts +0 -11
  1147. package/serialization/types/DynamicValueListResponse.js +0 -32
  1148. package/serialization/types/Error_.d.ts +0 -12
  1149. package/serialization/types/Error_.js +0 -33
  1150. package/serialization/types/FlowBase.d.ts +0 -15
  1151. package/serialization/types/FlowBase.js +0 -36
  1152. package/serialization/types/FlowDetail.d.ts +0 -14
  1153. package/serialization/types/FlowDetail.js +0 -37
  1154. package/serialization/types/FlowExecutionError.d.ts +0 -14
  1155. package/serialization/types/FlowExecutionError.js +0 -35
  1156. package/serialization/types/FlowListResponse.d.ts +0 -11
  1157. package/serialization/types/FlowListResponse.js +0 -32
  1158. package/serialization/types/Folder.d.ts +0 -15
  1159. package/serialization/types/Folder.js +0 -36
  1160. package/serialization/types/FolderListResponse.d.ts +0 -11
  1161. package/serialization/types/FolderListResponse.js +0 -32
  1162. package/serialization/types/ParallelSolveRequest.d.ts +0 -11
  1163. package/serialization/types/ParallelSolveRequest.js +0 -32
  1164. package/serialization/types/ParallelSolveRequestValue.d.ts +0 -14
  1165. package/serialization/types/ParallelSolveRequestValue.js +0 -36
  1166. package/serialization/types/ParallelSolveResponse.d.ts +0 -11
  1167. package/serialization/types/ParallelSolveResponse.js +0 -32
  1168. package/serialization/types/RuleBase.d.ts +0 -15
  1169. package/serialization/types/RuleBase.js +0 -36
  1170. package/serialization/types/RuleDetail.d.ts +0 -18
  1171. package/serialization/types/RuleDetail.js +0 -41
  1172. package/serialization/types/RuleExport.d.ts +0 -10
  1173. package/serialization/types/RuleExport.js +0 -31
  1174. package/serialization/types/RuleListResponse.d.ts +0 -11
  1175. package/serialization/types/RuleListResponse.js +0 -32
  1176. package/serialization/types/RuleUsage.d.ts +0 -17
  1177. package/serialization/types/RuleUsage.js +0 -38
  1178. package/serialization/types/SchemaField.d.ts +0 -21
  1179. package/serialization/types/SchemaField.js +0 -42
  1180. package/serialization/types/SchemaFieldDefaultValue.d.ts +0 -10
  1181. package/serialization/types/SchemaFieldDefaultValue.js +0 -37
  1182. package/serialization/types/SchemaFieldType.d.ts +0 -10
  1183. package/serialization/types/SchemaFieldType.js +0 -31
  1184. package/serialization/types/SuccessMessage.d.ts +0 -12
  1185. package/serialization/types/SuccessMessage.js +0 -33
  1186. package/serialization/types/Test.d.ts +0 -21
  1187. package/serialization/types/Test.js +0 -42
  1188. package/serialization/types/TestListResponse.d.ts +0 -11
  1189. package/serialization/types/TestListResponse.js +0 -32
  1190. package/serialization/types/TestTestState.d.ts +0 -19
  1191. package/serialization/types/TestTestState.js +0 -42
  1192. package/serialization/types/TestTestStateConditionsItemValue.d.ts +0 -13
  1193. package/serialization/types/TestTestStateConditionsItemValue.js +0 -34
  1194. package/serialization/types/TestTestStateEvaluationError.d.ts +0 -10
  1195. package/serialization/types/TestTestStateEvaluationError.js +0 -31
  1196. package/serialization/types/UsageStatistics.d.ts +0 -17
  1197. package/serialization/types/UsageStatistics.js +0 -38
  1198. package/serialization/types/UserGroup.d.ts +0 -15
  1199. package/serialization/types/UserGroup.js +0 -36
  1200. package/serialization/types/UserGroupListResponse.d.ts +0 -11
  1201. package/serialization/types/UserGroupListResponse.js +0 -32
  1202. package/serialization/types/UserInviteResponse.d.ts +0 -14
  1203. package/serialization/types/UserInviteResponse.js +0 -35
  1204. package/serialization/types/UserInviteResponseUser.d.ts +0 -14
  1205. package/serialization/types/UserInviteResponseUser.js +0 -35
  1206. package/serialization/types/ValueLimits.d.ts +0 -15
  1207. package/serialization/types/ValueLimits.js +0 -36
  1208. package/serialization/types/index.d.ts +0 -39
  1209. package/serialization/types/index.js +0 -55
  1210. /package/{core/schemas/builders/object-like/types.js → api/resources/flows/client/requests/index.js} +0 -0
  1211. /package/{core/schemas/builders/object/types.js → api/resources/rules/client/requests/index.js} +0 -0
  1212. /package/{core/schemas/builders/record/types.js → api/resources/tests/resources/flows/client/requests/index.js} +0 -0
  1213. /package/{core/schemas/builders/undiscriminated-union/types.js → api/resources/tests/resources/rules/client/requests/index.js} +0 -0
  1214. /package/core/{schemas/builders/union/types.js → auth/AuthProvider.js} +0 -0
  1215. /package/core/{schemas/utils/MaybePromise.js → auth/AuthRequest.js} +0 -0
  1216. /package/core/{schemas/utils/addQuestionMarksToNullableProperties.js → fetcher/EndpointMetadata.js} +0 -0
  1217. /package/dist/{core/schemas/builders/object-like/types.js → api/resources/flows/client/requests/index.js} +0 -0
  1218. /package/dist/{core/schemas/builders/object/types.js → api/resources/rules/client/requests/index.js} +0 -0
  1219. /package/dist/{core/schemas/builders/record/types.js → api/resources/tests/resources/flows/client/requests/index.js} +0 -0
  1220. /package/dist/{core/schemas/builders/undiscriminated-union/types.js → api/resources/tests/resources/rules/client/requests/index.js} +0 -0
  1221. /package/dist/core/{schemas/builders/union/types.js → auth/AuthProvider.js} +0 -0
  1222. /package/dist/core/{schemas/utils/MaybePromise.js → auth/AuthRequest.js} +0 -0
  1223. /package/dist/core/{schemas/utils/addQuestionMarksToNullableProperties.js → fetcher/EndpointMetadata.js} +0 -0
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -18,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
16
  }) : function(o, v) {
19
17
  o["default"] = v;
20
18
  });
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
- };
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
28
36
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
37
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
38
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -34,25 +42,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
42
  step((generator = generator.apply(thisArg, _arguments || [])).next());
35
43
  });
36
44
  };
37
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
45
  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;
46
+ exports.FoldersClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../../../errors/index.js"));
53
+ const Rulebricks = __importStar(require("../../../../../index.js"));
54
+ class FoldersClient {
55
+ constructor(options) {
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
51
57
  }
52
58
  /**
53
59
  * Retrieve all rule folders for the authenticated user.
54
60
  *
55
- * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
61
+ * @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
56
62
  *
57
63
  * @throws {@link Rulebricks.InternalServerError}
58
64
  *
@@ -60,57 +66,47 @@ class Folders {
60
66
  * await client.assets.folders.list()
61
67
  */
62
68
  list(requestOptions) {
63
- var _a, _b;
69
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
70
+ }
71
+ __list(requestOptions) {
64
72
  return __awaiter(this, void 0, void 0, function* () {
73
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
74
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
75
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
65
76
  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"),
77
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/folders"),
67
78
  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,
79
+ headers: _headers,
80
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
81
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
82
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
73
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
85
+ logging: this._options.logging,
74
86
  });
75
87
  if (_response.ok) {
76
- return serializers.FolderListResponse.parseOrThrow(_response.body, {
77
- unrecognizedObjectKeys: "passthrough",
78
- allowUnrecognizedUnionMembers: true,
79
- allowUnrecognizedEnumValues: true,
80
- breadcrumbsPrefix: ["response"],
81
- });
88
+ return { data: _response.body, rawResponse: _response.rawResponse };
82
89
  }
83
90
  if (_response.error.reason === "status-code") {
84
91
  switch (_response.error.statusCode) {
85
92
  case 500:
86
- throw new Rulebricks.InternalServerError(_response.error.body);
93
+ throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
87
94
  default:
88
95
  throw new errors.RulebricksError({
89
96
  statusCode: _response.error.statusCode,
90
97
  body: _response.error.body,
98
+ rawResponse: _response.rawResponse,
91
99
  });
92
100
  }
93
101
  }
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
- }
102
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/admin/folders");
107
103
  });
108
104
  }
109
105
  /**
110
106
  * Create a new rule folder or update an existing one for the authenticated user.
111
107
  *
112
108
  * @param {Rulebricks.assets.UpsertFolderRequest} request
113
- * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
109
+ * @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
114
110
  *
115
111
  * @throws {@link Rulebricks.BadRequestError}
116
112
  * @throws {@link Rulebricks.InternalServerError}
@@ -122,60 +118,52 @@ class Folders {
122
118
  * })
123
119
  */
124
120
  upsert(request, requestOptions) {
125
- var _a, _b;
121
+ return core.HttpResponsePromise.fromPromise(this.__upsert(request, requestOptions));
122
+ }
123
+ __upsert(request, requestOptions) {
126
124
  return __awaiter(this, void 0, void 0, function* () {
125
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
126
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
127
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
127
128
  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
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/folders"),
129
130
  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
+ headers: _headers,
131
132
  contentType: "application/json",
133
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
132
134
  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,
135
+ body: request,
136
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
137
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
136
138
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
139
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
140
+ logging: this._options.logging,
137
141
  });
138
142
  if (_response.ok) {
139
- return serializers.Folder.parseOrThrow(_response.body, {
140
- unrecognizedObjectKeys: "passthrough",
141
- allowUnrecognizedUnionMembers: true,
142
- allowUnrecognizedEnumValues: true,
143
- breadcrumbsPrefix: ["response"],
144
- });
143
+ return { data: _response.body, rawResponse: _response.rawResponse };
145
144
  }
146
145
  if (_response.error.reason === "status-code") {
147
146
  switch (_response.error.statusCode) {
148
147
  case 400:
149
- throw new Rulebricks.BadRequestError(_response.error.body);
148
+ throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
150
149
  case 500:
151
- throw new Rulebricks.InternalServerError(_response.error.body);
150
+ throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
152
151
  default:
153
152
  throw new errors.RulebricksError({
154
153
  statusCode: _response.error.statusCode,
155
154
  body: _response.error.body,
155
+ rawResponse: _response.rawResponse,
156
156
  });
157
157
  }
158
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
- }
159
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/admin/folders");
172
160
  });
173
161
  }
174
162
  /**
175
163
  * Delete a specific rule folder for the authenticated user. This does not delete the rules within the folder.
176
164
  *
177
165
  * @param {Rulebricks.assets.DeleteFolderRequest} request
178
- * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
166
+ * @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
179
167
  *
180
168
  * @throws {@link Rulebricks.BadRequestError}
181
169
  * @throws {@link Rulebricks.NotFoundError}
@@ -187,62 +175,48 @@ class Folders {
187
175
  * })
188
176
  */
189
177
  delete(request, requestOptions) {
190
- var _a, _b;
178
+ return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
179
+ }
180
+ __delete(request, requestOptions) {
191
181
  return __awaiter(this, void 0, void 0, function* () {
182
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
183
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
184
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
192
185
  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"),
186
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/folders"),
194
187
  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),
188
+ headers: _headers,
196
189
  contentType: "application/json",
190
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
197
191
  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,
192
+ body: request,
193
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
194
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
201
195
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
196
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
197
+ logging: this._options.logging,
202
198
  });
203
199
  if (_response.ok) {
204
- return serializers.Folder.parseOrThrow(_response.body, {
205
- unrecognizedObjectKeys: "passthrough",
206
- allowUnrecognizedUnionMembers: true,
207
- allowUnrecognizedEnumValues: true,
208
- breadcrumbsPrefix: ["response"],
209
- });
200
+ return { data: _response.body, rawResponse: _response.rawResponse };
210
201
  }
211
202
  if (_response.error.reason === "status-code") {
212
203
  switch (_response.error.statusCode) {
213
204
  case 400:
214
- throw new Rulebricks.BadRequestError(_response.error.body);
205
+ throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
215
206
  case 404:
216
- throw new Rulebricks.NotFoundError(_response.error.body);
207
+ throw new Rulebricks.NotFoundError(_response.error.body, _response.rawResponse);
217
208
  case 500:
218
- throw new Rulebricks.InternalServerError(_response.error.body);
209
+ throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
219
210
  default:
220
211
  throw new errors.RulebricksError({
221
212
  statusCode: _response.error.statusCode,
222
213
  body: _response.error.body,
214
+ rawResponse: _response.rawResponse,
223
215
  });
224
216
  }
225
217
  }
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 };
218
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/admin/folders");
245
219
  });
246
220
  }
247
221
  }
248
- exports.Folders = Folders;
222
+ exports.FoldersClient = FoldersClient;
@@ -1 +1 @@
1
- export * from "./requests";
1
+ export * from "./requests/index.js";
@@ -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("./requests"), exports);
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,2 @@
1
- export { type UpsertFolderRequest } from "./UpsertFolderRequest";
2
- export { type DeleteFolderRequest } from "./DeleteFolderRequest";
1
+ export type { DeleteFolderRequest } from "./DeleteFolderRequest.js";
2
+ export type { UpsertFolderRequest } from "./UpsertFolderRequest.js";
@@ -1 +1 @@
1
- export * from "./client";
1
+ export * from "./client/index.js";
@@ -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("./client"), exports);
17
+ __exportStar(require("./client/index.js"), exports);
@@ -1,5 +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";
1
+ export * as flows from "./flows/index.js";
2
+ export * from "./folders/client/requests/index.js";
3
+ export * as folders from "./folders/index.js";
4
+ export * from "./rules/client/requests/index.js";
5
+ export * as rules from "./rules/index.js";
@@ -15,20 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
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
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
37
  };
28
38
  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);
39
+ exports.rules = exports.folders = exports.flows = void 0;
40
+ exports.flows = __importStar(require("./flows/index.js"));
41
+ __exportStar(require("./folders/client/requests/index.js"), exports);
42
+ exports.folders = __importStar(require("./folders/index.js"));
43
+ __exportStar(require("./rules/client/requests/index.js"), exports);
44
+ exports.rules = __importStar(require("./rules/index.js"));
@@ -1,35 +1,20 @@
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>;
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
3
+ import * as core from "../../../../../../core/index.js";
4
+ import * as Rulebricks from "../../../../../index.js";
5
+ export declare namespace RulesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
23
8
  }
24
9
  }
25
- export declare class Rules {
26
- protected readonly _options: Rules.Options;
27
- constructor(_options: Rules.Options);
10
+ export declare class RulesClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<RulesClient.Options>;
12
+ constructor(options: RulesClient.Options);
28
13
  /**
29
14
  * Delete a specific rule by its ID.
30
15
  *
31
16
  * @param {Rulebricks.assets.DeleteRuleRequest} request
32
- * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
17
+ * @param {RulesClient.RequestOptions} requestOptions - Request-specific configuration.
33
18
  *
34
19
  * @throws {@link Rulebricks.BadRequestError}
35
20
  * @throws {@link Rulebricks.NotFoundError}
@@ -37,15 +22,16 @@ export declare class Rules {
37
22
  *
38
23
  * @example
39
24
  * await client.assets.rules.delete({
40
- * id: "id"
25
+ * id: "2855f8da-2654-4df9-8903-8f797cbfe8eb"
41
26
  * })
42
27
  */
43
- delete(request: Rulebricks.assets.DeleteRuleRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.SuccessMessage>;
28
+ delete(request: Rulebricks.assets.DeleteRuleRequest, requestOptions?: RulesClient.RequestOptions): core.HttpResponsePromise<Rulebricks.SuccessMessage>;
29
+ private __delete;
44
30
  /**
45
31
  * Export a specific rule by its ID.
46
32
  *
47
- * @param {Rulebricks.assets.RulesPullRequest} request
48
- * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
33
+ * @param {Rulebricks.assets.PullRulesRequest} request
34
+ * @param {RulesClient.RequestOptions} requestOptions - Request-specific configuration.
49
35
  *
50
36
  * @throws {@link Rulebricks.BadRequestError}
51
37
  * @throws {@link Rulebricks.NotFoundError}
@@ -53,15 +39,16 @@ export declare class Rules {
53
39
  *
54
40
  * @example
55
41
  * await client.assets.rules.pull({
56
- * id: "id"
42
+ * id: "2855f8da-2654-4df9-8903-8f797cbfe8eb"
57
43
  * })
58
44
  */
59
- pull(request: Rulebricks.assets.RulesPullRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.RuleExport>;
45
+ pull(request: Rulebricks.assets.PullRulesRequest, requestOptions?: RulesClient.RequestOptions): core.HttpResponsePromise<Rulebricks.RuleExport>;
46
+ private __pull;
60
47
  /**
61
48
  * Import a rule into the user's account.
62
49
  *
63
50
  * @param {Rulebricks.assets.ImportRuleRequest} request
64
- * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
51
+ * @param {RulesClient.RequestOptions} requestOptions - Request-specific configuration.
65
52
  *
66
53
  * @throws {@link Rulebricks.BadRequestError}
67
54
  * @throws {@link Rulebricks.ForbiddenError}
@@ -70,25 +57,27 @@ export declare class Rules {
70
57
  * @example
71
58
  * await client.assets.rules.push({
72
59
  * rule: {
73
- * "key": "value"
60
+ * "name": "Imported Rule",
61
+ * "description": "A rule imported via API"
74
62
  * }
75
63
  * })
76
64
  */
77
- push(request: Rulebricks.assets.ImportRuleRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.RuleExport>;
65
+ push(request: Rulebricks.assets.ImportRuleRequest, requestOptions?: RulesClient.RequestOptions): core.HttpResponsePromise<Rulebricks.RuleExport>;
66
+ private __push;
78
67
  /**
79
68
  * List all rules in the organization. Optionally filter by folder name or ID.
80
69
  *
81
- * @param {Rulebricks.assets.RulesListRequest} request
82
- * @param {Rules.RequestOptions} requestOptions - Request-specific configuration.
70
+ * @param {Rulebricks.assets.ListRulesRequest} request
71
+ * @param {RulesClient.RequestOptions} requestOptions - Request-specific configuration.
83
72
  *
84
73
  * @throws {@link Rulebricks.BadRequestError}
85
74
  * @throws {@link Rulebricks.InternalServerError}
86
75
  *
87
76
  * @example
88
- * await client.assets.rules.list()
77
+ * await client.assets.rules.list({
78
+ * folder: "Marketing Rules"
79
+ * })
89
80
  */
90
- list(request?: Rulebricks.assets.RulesListRequest, requestOptions?: Rules.RequestOptions): Promise<Rulebricks.RuleListResponse>;
91
- protected _getCustomAuthorizationHeaders(): Promise<{
92
- "x-api-key": string;
93
- }>;
81
+ list(request?: Rulebricks.assets.ListRulesRequest, requestOptions?: RulesClient.RequestOptions): core.HttpResponsePromise<Rulebricks.RuleListResponse>;
82
+ private __list;
94
83
  }