@rulebricks/sdk 1.5.2 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +17 -12
  3. package/api/resources/assets/client/Client.d.ts +54 -1
  4. package/api/resources/assets/client/Client.js +134 -0
  5. package/api/resources/assets/client/index.d.ts +1 -1
  6. package/api/resources/assets/client/index.js +15 -0
  7. package/api/resources/assets/client/requests/ExportManifestRequest.d.ts +32 -0
  8. package/api/resources/assets/client/requests/ExportManifestRequest.js +14 -0
  9. package/api/resources/assets/client/requests/ImportManifestRequest.d.ts +72 -0
  10. package/api/resources/assets/client/requests/ImportManifestRequest.js +23 -0
  11. package/api/resources/assets/client/requests/index.d.ts +2 -0
  12. package/api/resources/assets/client/requests/index.js +2 -0
  13. package/api/resources/assets/index.d.ts +1 -0
  14. package/api/resources/assets/index.js +1 -0
  15. package/api/resources/assets/types/ExportRbmAssetsResponse.d.ts +2 -0
  16. package/api/resources/assets/types/ExportRbmAssetsResponse.js +3 -0
  17. package/api/resources/assets/types/index.d.ts +1 -0
  18. package/api/resources/assets/types/index.js +17 -0
  19. package/api/resources/contexts/client/Client.d.ts +170 -0
  20. package/api/resources/contexts/client/Client.js +555 -0
  21. package/api/resources/contexts/client/index.d.ts +1 -0
  22. package/api/resources/contexts/client/index.js +17 -0
  23. package/api/resources/contexts/client/requests/CascadeContextsRequest.d.ts +16 -0
  24. package/api/resources/contexts/client/requests/CascadeContextsRequest.js +3 -0
  25. package/api/resources/contexts/client/requests/DeleteContextsRequest.d.ts +13 -0
  26. package/api/resources/contexts/client/requests/DeleteContextsRequest.js +3 -0
  27. package/api/resources/contexts/client/requests/ExecuteContextsRequest.d.ts +19 -0
  28. package/api/resources/contexts/client/requests/ExecuteContextsRequest.js +3 -0
  29. package/api/resources/contexts/client/requests/GetContextsRequest.d.ts +13 -0
  30. package/api/resources/contexts/client/requests/GetContextsRequest.js +3 -0
  31. package/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
  32. package/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
  33. package/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
  34. package/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
  35. package/api/resources/contexts/client/requests/SolveContextsRequest.d.ts +19 -0
  36. package/api/resources/contexts/client/requests/SolveContextsRequest.js +3 -0
  37. package/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
  38. package/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
  39. package/api/resources/contexts/client/requests/index.d.ts +8 -0
  40. package/api/resources/contexts/client/requests/index.js +2 -0
  41. package/api/resources/contexts/index.d.ts +2 -0
  42. package/api/resources/contexts/index.js +18 -0
  43. package/api/resources/contexts/resources/index.d.ts +4 -0
  44. package/api/resources/contexts/resources/index.js +43 -0
  45. package/api/resources/contexts/resources/objects/client/Client.d.ts +103 -0
  46. package/api/resources/contexts/resources/objects/client/Client.js +354 -0
  47. package/api/resources/contexts/resources/objects/client/index.d.ts +1 -0
  48. package/api/resources/contexts/resources/objects/client/index.js +17 -0
  49. package/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.d.ts +58 -0
  50. package/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.js +12 -0
  51. package/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.d.ts +10 -0
  52. package/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.js +3 -0
  53. package/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.d.ts +10 -0
  54. package/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.js +3 -0
  55. package/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.d.ts +49 -0
  56. package/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.js +12 -0
  57. package/api/resources/contexts/resources/objects/client/requests/index.d.ts +4 -0
  58. package/api/resources/contexts/resources/objects/client/requests/index.js +2 -0
  59. package/api/resources/contexts/resources/objects/index.d.ts +1 -0
  60. package/api/resources/contexts/resources/objects/index.js +17 -0
  61. package/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
  62. package/api/resources/contexts/resources/relationships/client/Client.js +252 -0
  63. package/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
  64. package/api/resources/contexts/resources/relationships/client/index.js +17 -0
  65. package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
  66. package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
  67. package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
  68. package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
  69. package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
  70. package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
  71. package/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
  72. package/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
  73. package/api/resources/contexts/resources/relationships/index.d.ts +1 -0
  74. package/api/resources/contexts/resources/relationships/index.js +17 -0
  75. package/api/resources/index.d.ts +4 -0
  76. package/api/resources/index.js +8 -4
  77. package/api/resources/users/client/Client.d.ts +5 -5
  78. package/api/resources/users/client/Client.js +5 -5
  79. package/api/resources/users/client/requests/CreateUserRequest.d.ts +3 -3
  80. package/api/resources/users/client/requests/UserInviteRequest.d.ts +6 -6
  81. package/api/resources/values/client/Client.d.ts +3 -3
  82. package/api/resources/values/client/Client.js +3 -3
  83. package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +7 -7
  84. package/api/types/CascadeContextRequest.d.ts +4 -0
  85. package/api/types/CascadeContextRequest.js +3 -0
  86. package/api/types/CascadeContextResponse.d.ts +10 -0
  87. package/api/types/CascadeContextResponse.js +3 -0
  88. package/api/types/CascadeResult.d.ts +29 -0
  89. package/api/types/CascadeResult.js +12 -0
  90. package/api/types/ContextBase.d.ts +33 -0
  91. package/api/types/ContextBase.js +12 -0
  92. package/api/types/ContextDetail.d.ts +58 -0
  93. package/api/types/ContextDetail.js +3 -0
  94. package/api/types/ContextInstanceHistory.d.ts +10 -0
  95. package/api/types/ContextInstanceHistory.js +3 -0
  96. package/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
  97. package/api/types/ContextInstanceHistoryEntry.js +3 -0
  98. package/api/types/ContextInstancePendingEvaluation.d.ts +37 -0
  99. package/api/types/ContextInstancePendingEvaluation.js +12 -0
  100. package/api/types/ContextInstancePendingResponse.d.ts +8 -0
  101. package/api/types/ContextInstancePendingResponse.js +3 -0
  102. package/api/types/ContextInstanceState.d.ts +31 -0
  103. package/api/types/ContextInstanceState.js +12 -0
  104. package/api/types/ContextListItem.d.ts +24 -0
  105. package/api/types/ContextListItem.js +3 -0
  106. package/api/types/ContextListResponse.d.ts +2 -0
  107. package/api/types/ContextListResponse.js +3 -0
  108. package/api/types/ContextRelationshipBase.d.ts +23 -0
  109. package/api/types/ContextRelationshipBase.js +13 -0
  110. package/api/types/ContextRelationshipIncoming.d.ts +11 -0
  111. package/api/types/ContextRelationshipIncoming.js +3 -0
  112. package/api/types/ContextRelationshipOutgoing.d.ts +11 -0
  113. package/api/types/ContextRelationshipOutgoing.js +3 -0
  114. package/api/types/ContextRelationshipsResponse.d.ts +17 -0
  115. package/api/types/ContextRelationshipsResponse.js +3 -0
  116. package/api/types/ContextSchema.d.ts +10 -0
  117. package/api/types/ContextSchema.js +3 -0
  118. package/api/types/ContextSchemaField.d.ts +35 -0
  119. package/api/types/ContextSchemaField.js +16 -0
  120. package/api/types/CreateContextResponse.d.ts +2 -0
  121. package/api/types/CreateContextResponse.js +3 -0
  122. package/api/types/CreateRelationshipResponse.d.ts +2 -0
  123. package/api/types/CreateRelationshipResponse.js +3 -0
  124. package/api/types/CreateUserResponse.d.ts +3 -3
  125. package/api/types/DecisionLog.d.ts +13 -4
  126. package/api/types/DecisionLogResponse.d.ts +4 -4
  127. package/api/types/DeleteContextInstanceResponse.d.ts +9 -0
  128. package/api/types/DeleteContextInstanceResponse.js +3 -0
  129. package/api/types/DeleteContextResponse.d.ts +13 -0
  130. package/api/types/DeleteContextResponse.js +3 -0
  131. package/api/types/DeleteRelationshipResponse.d.ts +6 -0
  132. package/api/types/DeleteRelationshipResponse.js +3 -0
  133. package/api/types/DynamicValue.d.ts +9 -3
  134. package/api/types/ExportManifestPreviewResponse.d.ts +64 -0
  135. package/api/types/ExportManifestPreviewResponse.js +3 -0
  136. package/api/types/ExportManifestResponse.d.ts +30 -0
  137. package/api/types/ExportManifestResponse.js +3 -0
  138. package/api/types/FlowDetail.d.ts +28 -0
  139. package/api/types/Folder.d.ts +5 -1
  140. package/api/types/ImportManifestResponse.d.ts +66 -0
  141. package/api/types/ImportManifestResponse.js +3 -0
  142. package/api/types/RuleDetail.d.ts +17 -0
  143. package/api/types/SchemaField.d.ts +2 -2
  144. package/api/types/SolveContextFlowRequest.d.ts +4 -0
  145. package/api/types/SolveContextFlowRequest.js +3 -0
  146. package/api/types/SolveContextFlowResponse.d.ts +23 -0
  147. package/api/types/SolveContextFlowResponse.js +12 -0
  148. package/api/types/SolveContextRuleRequest.d.ts +4 -0
  149. package/api/types/SolveContextRuleRequest.js +3 -0
  150. package/api/types/SolveContextRuleResponse.d.ts +26 -0
  151. package/api/types/SolveContextRuleResponse.js +12 -0
  152. package/api/types/SubmitContextDataRequest.d.ts +4 -0
  153. package/api/types/SubmitContextDataRequest.js +3 -0
  154. package/api/types/SubmitContextDataResponse.d.ts +30 -0
  155. package/api/types/SubmitContextDataResponse.js +12 -0
  156. package/api/types/Test.d.ts +9 -9
  157. package/api/types/UpdateContextResponse.d.ts +13 -0
  158. package/api/types/UpdateContextResponse.js +3 -0
  159. package/api/types/UsageStatistics.d.ts +10 -4
  160. package/api/types/UserDetail.d.ts +4 -4
  161. package/api/types/UserGroup.d.ts +2 -0
  162. package/api/types/UserInviteResponse.d.ts +2 -2
  163. package/api/types/index.d.ts +33 -0
  164. package/api/types/index.js +33 -0
  165. package/dist/Client.d.ts +3 -0
  166. package/dist/Client.js +17 -12
  167. package/dist/api/resources/assets/client/Client.d.ts +54 -1
  168. package/dist/api/resources/assets/client/Client.js +134 -0
  169. package/dist/api/resources/assets/client/index.d.ts +1 -1
  170. package/dist/api/resources/assets/client/index.js +15 -0
  171. package/dist/api/resources/assets/client/requests/ExportManifestRequest.d.ts +32 -0
  172. package/dist/api/resources/assets/client/requests/ExportManifestRequest.js +14 -0
  173. package/dist/api/resources/assets/client/requests/ImportManifestRequest.d.ts +72 -0
  174. package/dist/api/resources/assets/client/requests/ImportManifestRequest.js +23 -0
  175. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  176. package/dist/api/resources/assets/client/requests/index.js +2 -0
  177. package/dist/api/resources/assets/index.d.ts +1 -0
  178. package/dist/api/resources/assets/index.js +1 -0
  179. package/dist/api/resources/assets/types/ExportRbmAssetsResponse.d.ts +2 -0
  180. package/dist/api/resources/assets/types/ExportRbmAssetsResponse.js +3 -0
  181. package/dist/api/resources/assets/types/index.d.ts +1 -0
  182. package/dist/api/resources/assets/types/index.js +17 -0
  183. package/dist/api/resources/contexts/client/Client.d.ts +170 -0
  184. package/dist/api/resources/contexts/client/Client.js +555 -0
  185. package/dist/api/resources/contexts/client/index.d.ts +1 -0
  186. package/dist/api/resources/contexts/client/index.js +17 -0
  187. package/dist/api/resources/contexts/client/requests/CascadeContextsRequest.d.ts +16 -0
  188. package/dist/api/resources/contexts/client/requests/CascadeContextsRequest.js +3 -0
  189. package/dist/api/resources/contexts/client/requests/DeleteContextsRequest.d.ts +13 -0
  190. package/dist/api/resources/contexts/client/requests/DeleteContextsRequest.js +3 -0
  191. package/dist/api/resources/contexts/client/requests/ExecuteContextsRequest.d.ts +19 -0
  192. package/dist/api/resources/contexts/client/requests/ExecuteContextsRequest.js +3 -0
  193. package/dist/api/resources/contexts/client/requests/GetContextsRequest.d.ts +13 -0
  194. package/dist/api/resources/contexts/client/requests/GetContextsRequest.js +3 -0
  195. package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
  196. package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
  197. package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
  198. package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
  199. package/dist/api/resources/contexts/client/requests/SolveContextsRequest.d.ts +19 -0
  200. package/dist/api/resources/contexts/client/requests/SolveContextsRequest.js +3 -0
  201. package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
  202. package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
  203. package/dist/api/resources/contexts/client/requests/index.d.ts +8 -0
  204. package/dist/api/resources/contexts/client/requests/index.js +2 -0
  205. package/dist/api/resources/contexts/index.d.ts +2 -0
  206. package/dist/api/resources/contexts/index.js +18 -0
  207. package/dist/api/resources/contexts/resources/index.d.ts +4 -0
  208. package/dist/api/resources/contexts/resources/index.js +43 -0
  209. package/dist/api/resources/contexts/resources/objects/client/Client.d.ts +103 -0
  210. package/dist/api/resources/contexts/resources/objects/client/Client.js +354 -0
  211. package/dist/api/resources/contexts/resources/objects/client/index.d.ts +1 -0
  212. package/dist/api/resources/contexts/resources/objects/client/index.js +17 -0
  213. package/dist/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.d.ts +58 -0
  214. package/dist/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.js +12 -0
  215. package/dist/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.d.ts +10 -0
  216. package/dist/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.js +3 -0
  217. package/dist/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.d.ts +10 -0
  218. package/dist/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.js +3 -0
  219. package/dist/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.d.ts +49 -0
  220. package/dist/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.js +12 -0
  221. package/dist/api/resources/contexts/resources/objects/client/requests/index.d.ts +4 -0
  222. package/dist/api/resources/contexts/resources/objects/client/requests/index.js +2 -0
  223. package/dist/api/resources/contexts/resources/objects/index.d.ts +1 -0
  224. package/dist/api/resources/contexts/resources/objects/index.js +17 -0
  225. package/dist/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
  226. package/dist/api/resources/contexts/resources/relationships/client/Client.js +252 -0
  227. package/dist/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
  228. package/dist/api/resources/contexts/resources/relationships/client/index.js +17 -0
  229. package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
  230. package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
  231. package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
  232. package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
  233. package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
  234. package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
  235. package/dist/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
  236. package/dist/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
  237. package/dist/api/resources/contexts/resources/relationships/index.d.ts +1 -0
  238. package/dist/api/resources/contexts/resources/relationships/index.js +17 -0
  239. package/dist/api/resources/index.d.ts +4 -0
  240. package/dist/api/resources/index.js +8 -4
  241. package/dist/api/resources/users/client/Client.d.ts +5 -5
  242. package/dist/api/resources/users/client/Client.js +5 -5
  243. package/dist/api/resources/users/client/requests/CreateUserRequest.d.ts +3 -3
  244. package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +6 -6
  245. package/dist/api/resources/values/client/Client.d.ts +3 -3
  246. package/dist/api/resources/values/client/Client.js +3 -3
  247. package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +7 -7
  248. package/dist/api/types/CascadeContextRequest.d.ts +4 -0
  249. package/dist/api/types/CascadeContextRequest.js +3 -0
  250. package/dist/api/types/CascadeContextResponse.d.ts +10 -0
  251. package/dist/api/types/CascadeContextResponse.js +3 -0
  252. package/dist/api/types/CascadeResult.d.ts +29 -0
  253. package/dist/api/types/CascadeResult.js +12 -0
  254. package/dist/api/types/ContextBase.d.ts +33 -0
  255. package/dist/api/types/ContextBase.js +12 -0
  256. package/dist/api/types/ContextDetail.d.ts +58 -0
  257. package/dist/api/types/ContextDetail.js +3 -0
  258. package/dist/api/types/ContextInstanceHistory.d.ts +10 -0
  259. package/dist/api/types/ContextInstanceHistory.js +3 -0
  260. package/dist/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
  261. package/dist/api/types/ContextInstanceHistoryEntry.js +3 -0
  262. package/dist/api/types/ContextInstancePendingEvaluation.d.ts +37 -0
  263. package/dist/api/types/ContextInstancePendingEvaluation.js +12 -0
  264. package/dist/api/types/ContextInstancePendingResponse.d.ts +8 -0
  265. package/dist/api/types/ContextInstancePendingResponse.js +3 -0
  266. package/dist/api/types/ContextInstanceState.d.ts +31 -0
  267. package/dist/api/types/ContextInstanceState.js +12 -0
  268. package/dist/api/types/ContextListItem.d.ts +24 -0
  269. package/dist/api/types/ContextListItem.js +3 -0
  270. package/dist/api/types/ContextListResponse.d.ts +2 -0
  271. package/dist/api/types/ContextListResponse.js +3 -0
  272. package/dist/api/types/ContextRelationshipBase.d.ts +23 -0
  273. package/dist/api/types/ContextRelationshipBase.js +13 -0
  274. package/dist/api/types/ContextRelationshipIncoming.d.ts +11 -0
  275. package/dist/api/types/ContextRelationshipIncoming.js +3 -0
  276. package/dist/api/types/ContextRelationshipOutgoing.d.ts +11 -0
  277. package/dist/api/types/ContextRelationshipOutgoing.js +3 -0
  278. package/dist/api/types/ContextRelationshipsResponse.d.ts +17 -0
  279. package/dist/api/types/ContextRelationshipsResponse.js +3 -0
  280. package/dist/api/types/ContextSchema.d.ts +10 -0
  281. package/dist/api/types/ContextSchema.js +3 -0
  282. package/dist/api/types/ContextSchemaField.d.ts +35 -0
  283. package/dist/api/types/ContextSchemaField.js +16 -0
  284. package/dist/api/types/CreateContextResponse.d.ts +2 -0
  285. package/dist/api/types/CreateContextResponse.js +3 -0
  286. package/dist/api/types/CreateRelationshipResponse.d.ts +2 -0
  287. package/dist/api/types/CreateRelationshipResponse.js +3 -0
  288. package/dist/api/types/CreateUserResponse.d.ts +3 -3
  289. package/dist/api/types/DecisionLog.d.ts +13 -4
  290. package/dist/api/types/DecisionLogResponse.d.ts +4 -4
  291. package/dist/api/types/DeleteContextInstanceResponse.d.ts +9 -0
  292. package/dist/api/types/DeleteContextInstanceResponse.js +3 -0
  293. package/dist/api/types/DeleteContextResponse.d.ts +13 -0
  294. package/dist/api/types/DeleteContextResponse.js +3 -0
  295. package/dist/api/types/DeleteRelationshipResponse.d.ts +6 -0
  296. package/dist/api/types/DeleteRelationshipResponse.js +3 -0
  297. package/dist/api/types/DynamicValue.d.ts +9 -3
  298. package/dist/api/types/ExportManifestPreviewResponse.d.ts +64 -0
  299. package/dist/api/types/ExportManifestPreviewResponse.js +3 -0
  300. package/dist/api/types/ExportManifestResponse.d.ts +30 -0
  301. package/dist/api/types/ExportManifestResponse.js +3 -0
  302. package/dist/api/types/FlowDetail.d.ts +28 -0
  303. package/dist/api/types/Folder.d.ts +5 -1
  304. package/dist/api/types/ImportManifestResponse.d.ts +66 -0
  305. package/dist/api/types/ImportManifestResponse.js +3 -0
  306. package/dist/api/types/RuleDetail.d.ts +17 -0
  307. package/dist/api/types/SchemaField.d.ts +2 -2
  308. package/dist/api/types/SolveContextFlowRequest.d.ts +4 -0
  309. package/dist/api/types/SolveContextFlowRequest.js +3 -0
  310. package/dist/api/types/SolveContextFlowResponse.d.ts +23 -0
  311. package/dist/api/types/SolveContextFlowResponse.js +12 -0
  312. package/dist/api/types/SolveContextRuleRequest.d.ts +4 -0
  313. package/dist/api/types/SolveContextRuleRequest.js +3 -0
  314. package/dist/api/types/SolveContextRuleResponse.d.ts +26 -0
  315. package/dist/api/types/SolveContextRuleResponse.js +12 -0
  316. package/dist/api/types/SubmitContextDataRequest.d.ts +4 -0
  317. package/dist/api/types/SubmitContextDataRequest.js +3 -0
  318. package/dist/api/types/SubmitContextDataResponse.d.ts +30 -0
  319. package/dist/api/types/SubmitContextDataResponse.js +12 -0
  320. package/dist/api/types/Test.d.ts +9 -9
  321. package/dist/api/types/UpdateContextResponse.d.ts +13 -0
  322. package/dist/api/types/UpdateContextResponse.js +3 -0
  323. package/dist/api/types/UsageStatistics.d.ts +10 -4
  324. package/dist/api/types/UserDetail.d.ts +4 -4
  325. package/dist/api/types/UserGroup.d.ts +2 -0
  326. package/dist/api/types/UserInviteResponse.d.ts +2 -2
  327. package/dist/api/types/index.d.ts +33 -0
  328. package/dist/api/types/index.js +33 -0
  329. package/dist/forge/values.d.ts +1 -1
  330. package/dist/forge/values.js +2 -2
  331. package/forge/values.d.ts +1 -1
  332. package/forge/values.js +2 -2
  333. package/package.json +1 -2
package/Client.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AssetsClient } from "./api/resources/assets/client/Client.js";
2
+ import { ContextsClient } from "./api/resources/contexts/client/Client.js";
2
3
  import { DecisionsClient } from "./api/resources/decisions/client/Client.js";
3
4
  import { FlowsClient } from "./api/resources/flows/client/Client.js";
4
5
  import { RulesClient } from "./api/resources/rules/client/Client.js";
@@ -20,6 +21,7 @@ export declare class RulebricksClient {
20
21
  protected _users: UsersClient | undefined;
21
22
  protected _assets: AssetsClient | undefined;
22
23
  protected _values: ValuesClient | undefined;
24
+ protected _contexts: ContextsClient | undefined;
23
25
  protected _tests: TestsClient | undefined;
24
26
  constructor(options: RulebricksClient.Options);
25
27
  get rules(): RulesClient;
@@ -28,5 +30,6 @@ export declare class RulebricksClient {
28
30
  get users(): UsersClient;
29
31
  get assets(): AssetsClient;
30
32
  get values(): ValuesClient;
33
+ get contexts(): ContextsClient;
31
34
  get tests(): TestsClient;
32
35
  }
package/Client.js CHANGED
@@ -3,12 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.RulebricksClient = void 0;
5
5
  const Client_js_1 = require("./api/resources/assets/client/Client.js");
6
- const Client_js_2 = require("./api/resources/decisions/client/Client.js");
7
- const Client_js_3 = require("./api/resources/flows/client/Client.js");
8
- const Client_js_4 = require("./api/resources/rules/client/Client.js");
9
- const Client_js_5 = require("./api/resources/tests/client/Client.js");
10
- const Client_js_6 = require("./api/resources/users/client/Client.js");
11
- const Client_js_7 = require("./api/resources/values/client/Client.js");
6
+ const Client_js_2 = require("./api/resources/contexts/client/Client.js");
7
+ const Client_js_3 = require("./api/resources/decisions/client/Client.js");
8
+ const Client_js_4 = require("./api/resources/flows/client/Client.js");
9
+ const Client_js_5 = require("./api/resources/rules/client/Client.js");
10
+ const Client_js_6 = require("./api/resources/tests/client/Client.js");
11
+ const Client_js_7 = require("./api/resources/users/client/Client.js");
12
+ const Client_js_8 = require("./api/resources/values/client/Client.js");
12
13
  const BaseClient_js_1 = require("./BaseClient.js");
13
14
  class RulebricksClient {
14
15
  constructor(options) {
@@ -16,19 +17,19 @@ class RulebricksClient {
16
17
  }
17
18
  get rules() {
18
19
  var _a;
19
- return ((_a = this._rules) !== null && _a !== void 0 ? _a : (this._rules = new Client_js_4.RulesClient(this._options)));
20
+ return ((_a = this._rules) !== null && _a !== void 0 ? _a : (this._rules = new Client_js_5.RulesClient(this._options)));
20
21
  }
21
22
  get flows() {
22
23
  var _a;
23
- return ((_a = this._flows) !== null && _a !== void 0 ? _a : (this._flows = new Client_js_3.FlowsClient(this._options)));
24
+ return ((_a = this._flows) !== null && _a !== void 0 ? _a : (this._flows = new Client_js_4.FlowsClient(this._options)));
24
25
  }
25
26
  get decisions() {
26
27
  var _a;
27
- return ((_a = this._decisions) !== null && _a !== void 0 ? _a : (this._decisions = new Client_js_2.DecisionsClient(this._options)));
28
+ return ((_a = this._decisions) !== null && _a !== void 0 ? _a : (this._decisions = new Client_js_3.DecisionsClient(this._options)));
28
29
  }
29
30
  get users() {
30
31
  var _a;
31
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_6.UsersClient(this._options)));
32
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_7.UsersClient(this._options)));
32
33
  }
33
34
  get assets() {
34
35
  var _a;
@@ -36,11 +37,15 @@ class RulebricksClient {
36
37
  }
37
38
  get values() {
38
39
  var _a;
39
- return ((_a = this._values) !== null && _a !== void 0 ? _a : (this._values = new Client_js_7.ValuesClient(this._options)));
40
+ return ((_a = this._values) !== null && _a !== void 0 ? _a : (this._values = new Client_js_8.ValuesClient(this._options)));
41
+ }
42
+ get contexts() {
43
+ var _a;
44
+ return ((_a = this._contexts) !== null && _a !== void 0 ? _a : (this._contexts = new Client_js_2.ContextsClient(this._options)));
40
45
  }
41
46
  get tests() {
42
47
  var _a;
43
- return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_js_5.TestsClient(this._options)));
48
+ return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_js_6.TestsClient(this._options)));
44
49
  }
45
50
  }
46
51
  exports.RulebricksClient = RulebricksClient;
@@ -1,7 +1,7 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
3
  import * as core from "../../../../core/index.js";
4
- import type * as Rulebricks from "../../../index.js";
4
+ import * as Rulebricks from "../../../index.js";
5
5
  import { FlowsClient } from "../resources/flows/client/Client.js";
6
6
  import { FoldersClient } from "../resources/folders/client/Client.js";
7
7
  import { RulesClient } from "../resources/rules/client/Client.js";
@@ -32,4 +32,57 @@ export declare class AssetsClient {
32
32
  */
33
33
  getUsage(requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.UsageStatistics>;
34
34
  private __getUsage;
35
+ /**
36
+ * Import rules, flows, contexts, and values from an Rulebricks manifest file (*.rbm).
37
+ *
38
+ * @param {Rulebricks.ImportManifestRequest} request
39
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
40
+ *
41
+ * @throws {@link Rulebricks.BadRequestError}
42
+ * @throws {@link Rulebricks.InternalServerError}
43
+ *
44
+ * @example
45
+ * await client.assets.importRbm({
46
+ * manifest: {
47
+ * version: "1.0",
48
+ * rules: [{
49
+ * "name": "Pricing Rule",
50
+ * "slug": "pricing-rule"
51
+ * }],
52
+ * flows: [{
53
+ * "name": "Onboarding Flow",
54
+ * "slug": "onboarding-flow"
55
+ * }],
56
+ * entities: [{
57
+ * "name": "Customer",
58
+ * "slug": "customer"
59
+ * }],
60
+ * values: [{
61
+ * "name": "tax_rate",
62
+ * "value": 0.08
63
+ * }]
64
+ * },
65
+ * conflict_strategy: "update"
66
+ * })
67
+ */
68
+ importRbm(request: Rulebricks.ImportManifestRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.ImportManifestResponse>;
69
+ private __importRbm;
70
+ /**
71
+ * Export selected rules, flows, contexts, and values to an Rulebricks manifest file (*.rbm).
72
+ *
73
+ * @param {Rulebricks.ExportManifestRequest} request
74
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link Rulebricks.BadRequestError}
77
+ * @throws {@link Rulebricks.InternalServerError}
78
+ *
79
+ * @example
80
+ * await client.assets.exportRbm({
81
+ * root_type: "rule",
82
+ * root_ids: ["pricing-rule", "eligibility-check"],
83
+ * include_downstream: false
84
+ * })
85
+ */
86
+ exportRbm(request: Rulebricks.ExportManifestRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.ExportRbmAssetsResponse>;
87
+ private __exportRbm;
35
88
  }
@@ -50,6 +50,7 @@ const core = __importStar(require("../../../../core/index.js"));
50
50
  const environments = __importStar(require("../../../../environments.js"));
51
51
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
52
  const errors = __importStar(require("../../../../errors/index.js"));
53
+ const Rulebricks = __importStar(require("../../../index.js"));
53
54
  const Client_js_1 = require("../resources/flows/client/Client.js");
54
55
  const Client_js_2 = require("../resources/folders/client/Client.js");
55
56
  const Client_js_3 = require("../resources/rules/client/Client.js");
@@ -112,5 +113,138 @@ class AssetsClient {
112
113
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/admin/usage");
113
114
  });
114
115
  }
116
+ /**
117
+ * Import rules, flows, contexts, and values from an Rulebricks manifest file (*.rbm).
118
+ *
119
+ * @param {Rulebricks.ImportManifestRequest} request
120
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
121
+ *
122
+ * @throws {@link Rulebricks.BadRequestError}
123
+ * @throws {@link Rulebricks.InternalServerError}
124
+ *
125
+ * @example
126
+ * await client.assets.importRbm({
127
+ * manifest: {
128
+ * version: "1.0",
129
+ * rules: [{
130
+ * "name": "Pricing Rule",
131
+ * "slug": "pricing-rule"
132
+ * }],
133
+ * flows: [{
134
+ * "name": "Onboarding Flow",
135
+ * "slug": "onboarding-flow"
136
+ * }],
137
+ * entities: [{
138
+ * "name": "Customer",
139
+ * "slug": "customer"
140
+ * }],
141
+ * values: [{
142
+ * "name": "tax_rate",
143
+ * "value": 0.08
144
+ * }]
145
+ * },
146
+ * conflict_strategy: "update"
147
+ * })
148
+ */
149
+ importRbm(request, requestOptions) {
150
+ return core.HttpResponsePromise.fromPromise(this.__importRbm(request, requestOptions));
151
+ }
152
+ __importRbm(request, requestOptions) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
155
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
156
+ 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);
157
+ const _response = yield core.fetcher({
158
+ 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/import"),
159
+ method: "POST",
160
+ headers: _headers,
161
+ contentType: "application/json",
162
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
163
+ requestType: "json",
164
+ body: request,
165
+ 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,
166
+ 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,
167
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
168
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
169
+ logging: this._options.logging,
170
+ });
171
+ if (_response.ok) {
172
+ return { data: _response.body, rawResponse: _response.rawResponse };
173
+ }
174
+ if (_response.error.reason === "status-code") {
175
+ switch (_response.error.statusCode) {
176
+ case 400:
177
+ throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
178
+ case 500:
179
+ throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
180
+ default:
181
+ throw new errors.RulebricksError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.body,
184
+ rawResponse: _response.rawResponse,
185
+ });
186
+ }
187
+ }
188
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/admin/import");
189
+ });
190
+ }
191
+ /**
192
+ * Export selected rules, flows, contexts, and values to an Rulebricks manifest file (*.rbm).
193
+ *
194
+ * @param {Rulebricks.ExportManifestRequest} request
195
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
196
+ *
197
+ * @throws {@link Rulebricks.BadRequestError}
198
+ * @throws {@link Rulebricks.InternalServerError}
199
+ *
200
+ * @example
201
+ * await client.assets.exportRbm({
202
+ * root_type: "rule",
203
+ * root_ids: ["pricing-rule", "eligibility-check"],
204
+ * include_downstream: false
205
+ * })
206
+ */
207
+ exportRbm(request, requestOptions) {
208
+ return core.HttpResponsePromise.fromPromise(this.__exportRbm(request, requestOptions));
209
+ }
210
+ __exportRbm(request, requestOptions) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
213
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
214
+ 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);
215
+ const _response = yield core.fetcher({
216
+ 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/export"),
217
+ method: "POST",
218
+ headers: _headers,
219
+ contentType: "application/json",
220
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
221
+ requestType: "json",
222
+ body: request,
223
+ 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,
224
+ 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,
225
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
227
+ logging: this._options.logging,
228
+ });
229
+ if (_response.ok) {
230
+ return { data: _response.body, rawResponse: _response.rawResponse };
231
+ }
232
+ if (_response.error.reason === "status-code") {
233
+ switch (_response.error.statusCode) {
234
+ case 400:
235
+ throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
236
+ case 500:
237
+ throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
238
+ default:
239
+ throw new errors.RulebricksError({
240
+ statusCode: _response.error.statusCode,
241
+ body: _response.error.body,
242
+ rawResponse: _response.rawResponse,
243
+ });
244
+ }
245
+ }
246
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/admin/export");
247
+ });
248
+ }
115
249
  }
116
250
  exports.AssetsClient = AssetsClient;
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.js";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * root_type: "rule",
5
+ * root_ids: ["pricing-rule", "eligibility-check"],
6
+ * include_downstream: false
7
+ * }
8
+ */
9
+ export interface ExportManifestRequest {
10
+ /** The type of root asset to export. All dependencies will be included. */
11
+ root_type: ExportManifestRequest.RootType;
12
+ /** Array of IDs for the root assets to export. Dependencies are automatically resolved. */
13
+ root_ids: string[];
14
+ /** For context exports, whether to include rules and flows bound to the context. */
15
+ include_downstream?: boolean;
16
+ /** Optional name for the exported manifest. */
17
+ manifest_name?: string;
18
+ /** Optional description for the exported manifest. */
19
+ manifest_description?: string;
20
+ /** If true, returns a preview of what would be exported without the full data. */
21
+ preview_only?: boolean;
22
+ }
23
+ export declare namespace ExportManifestRequest {
24
+ /** The type of root asset to export. All dependencies will be included. */
25
+ const RootType: {
26
+ readonly Rule: "rule";
27
+ readonly Flow: "flow";
28
+ readonly Context: "context";
29
+ readonly Value: "value";
30
+ };
31
+ type RootType = (typeof RootType)[keyof typeof RootType];
32
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExportManifestRequest = void 0;
5
+ var ExportManifestRequest;
6
+ (function (ExportManifestRequest) {
7
+ /** The type of root asset to export. All dependencies will be included. */
8
+ ExportManifestRequest.RootType = {
9
+ Rule: "rule",
10
+ Flow: "flow",
11
+ Context: "context",
12
+ Value: "value",
13
+ };
14
+ })(ExportManifestRequest || (exports.ExportManifestRequest = ExportManifestRequest = {}));
@@ -0,0 +1,72 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * manifest: {
5
+ * version: "1.0",
6
+ * rules: [{
7
+ * "name": "Pricing Rule",
8
+ * "slug": "pricing-rule"
9
+ * }],
10
+ * flows: [{
11
+ * "name": "Onboarding Flow",
12
+ * "slug": "onboarding-flow"
13
+ * }],
14
+ * entities: [{
15
+ * "name": "Customer",
16
+ * "slug": "customer"
17
+ * }],
18
+ * values: [{
19
+ * "name": "tax_rate",
20
+ * "value": 0.08
21
+ * }]
22
+ * },
23
+ * conflict_strategy: "update"
24
+ * }
25
+ */
26
+ export interface ImportManifestRequest {
27
+ /** The RBM manifest object containing assets to import. */
28
+ manifest: ImportManifestRequest.Manifest;
29
+ /** How to handle conflicts with existing assets. 'update' overwrites, 'skip' ignores, 'error' fails. */
30
+ conflict_strategy?: ImportManifestRequest.ConflictStrategy;
31
+ /** Optional folder name to place imported assets into. Created if it doesn't exist. */
32
+ target_folder_name?: string;
33
+ /** Optional mapping for legacy flow imports to reuse existing rules. */
34
+ legacy_rule_mapping?: Record<string, ImportManifestRequest.LegacyRuleMapping.Value>;
35
+ }
36
+ export declare namespace ImportManifestRequest {
37
+ /**
38
+ * The RBM manifest object containing assets to import.
39
+ */
40
+ interface Manifest {
41
+ /** Manifest format version. */
42
+ version?: string;
43
+ /** Rules to import. */
44
+ rules?: Record<string, unknown>[];
45
+ /** Flows to import. */
46
+ flows?: Record<string, unknown>[];
47
+ /** Contexts to import. */
48
+ entities?: Record<string, unknown>[];
49
+ /** Dynamic values to import. */
50
+ values?: Record<string, unknown>[];
51
+ }
52
+ /** How to handle conflicts with existing assets. 'update' overwrites, 'skip' ignores, 'error' fails. */
53
+ const ConflictStrategy: {
54
+ readonly Update: "update";
55
+ readonly Skip: "skip";
56
+ readonly Error: "error";
57
+ };
58
+ type ConflictStrategy = (typeof ConflictStrategy)[keyof typeof ConflictStrategy];
59
+ namespace LegacyRuleMapping {
60
+ interface Value {
61
+ action?: Value.Action;
62
+ rule_id?: string;
63
+ }
64
+ namespace Value {
65
+ const Action: {
66
+ readonly Reuse: "reuse";
67
+ readonly Create: "create";
68
+ };
69
+ type Action = (typeof Action)[keyof typeof Action];
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ImportManifestRequest = void 0;
5
+ var ImportManifestRequest;
6
+ (function (ImportManifestRequest) {
7
+ /** How to handle conflicts with existing assets. 'update' overwrites, 'skip' ignores, 'error' fails. */
8
+ ImportManifestRequest.ConflictStrategy = {
9
+ Update: "update",
10
+ Skip: "skip",
11
+ Error: "error",
12
+ };
13
+ let LegacyRuleMapping;
14
+ (function (LegacyRuleMapping) {
15
+ let Value;
16
+ (function (Value) {
17
+ Value.Action = {
18
+ Reuse: "reuse",
19
+ Create: "create",
20
+ };
21
+ })(Value = LegacyRuleMapping.Value || (LegacyRuleMapping.Value = {}));
22
+ })(LegacyRuleMapping = ImportManifestRequest.LegacyRuleMapping || (ImportManifestRequest.LegacyRuleMapping = {}));
23
+ })(ImportManifestRequest || (exports.ImportManifestRequest = ImportManifestRequest = {}));
@@ -0,0 +1,2 @@
1
+ export type { ExportManifestRequest } from "./ExportManifestRequest.js";
2
+ export type { ImportManifestRequest } from "./ImportManifestRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export * from "./client/index.js";
2
2
  export * from "./resources/index.js";
3
+ export * from "./types/index.js";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
18
  __exportStar(require("./resources/index.js"), exports);
19
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ import type * as Rulebricks from "../../../index.js";
2
+ export type ExportRbmAssetsResponse = Rulebricks.ExportManifestResponse | Rulebricks.ExportManifestPreviewResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./ExportRbmAssetsResponse.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ExportRbmAssetsResponse.js"), exports);