@rulebricks/sdk 1.5.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +17 -12
  3. package/api/resources/assets/client/Client.d.ts +55 -1
  4. package/api/resources/assets/client/Client.js +135 -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 +23 -0
  8. package/api/resources/assets/client/requests/ExportManifestRequest.js +3 -0
  9. package/api/resources/assets/client/requests/ImportManifestRequest.d.ts +48 -0
  10. package/api/resources/assets/client/requests/ImportManifestRequest.js +3 -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/ExportAssetsResponse.d.ts +2 -0
  16. package/api/resources/assets/types/ExportAssetsResponse.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 +167 -0
  20. package/api/resources/contexts/client/Client.js +563 -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/CascadeContextRequest.d.ts +15 -0
  24. package/api/resources/contexts/client/requests/CascadeContextRequest.js +3 -0
  25. package/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.d.ts +13 -0
  26. package/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.js +3 -0
  27. package/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
  28. package/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
  29. package/api/resources/contexts/client/requests/GetInstanceContextsRequest.d.ts +13 -0
  30. package/api/resources/contexts/client/requests/GetInstanceContextsRequest.js +3 -0
  31. package/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
  32. package/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
  33. package/api/resources/contexts/client/requests/SolveContextFlowRequest.d.ts +20 -0
  34. package/api/resources/contexts/client/requests/SolveContextFlowRequest.js +3 -0
  35. package/api/resources/contexts/client/requests/SolveContextRuleRequest.d.ts +20 -0
  36. package/api/resources/contexts/client/requests/SolveContextRuleRequest.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/admin/client/Client.d.ts +102 -0
  44. package/api/resources/contexts/resources/admin/client/Client.js +353 -0
  45. package/api/resources/contexts/resources/admin/client/index.d.ts +1 -0
  46. package/api/resources/contexts/resources/admin/client/index.js +17 -0
  47. package/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.d.ts +55 -0
  48. package/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.js +12 -0
  49. package/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.d.ts +10 -0
  50. package/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.js +3 -0
  51. package/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.d.ts +10 -0
  52. package/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.js +3 -0
  53. package/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.d.ts +49 -0
  54. package/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.js +12 -0
  55. package/api/resources/contexts/resources/admin/client/requests/index.d.ts +4 -0
  56. package/api/resources/contexts/resources/admin/client/requests/index.js +2 -0
  57. package/api/resources/contexts/resources/admin/index.d.ts +1 -0
  58. package/api/resources/contexts/resources/admin/index.js +17 -0
  59. package/api/resources/contexts/resources/index.d.ts +4 -0
  60. package/api/resources/contexts/resources/index.js +43 -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 +3 -3
  78. package/api/resources/users/client/Client.js +3 -3
  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 +6 -6
  84. package/api/types/CascadeContextResponse.d.ts +10 -0
  85. package/api/types/CascadeContextResponse.js +3 -0
  86. package/api/types/CascadeResult.d.ts +29 -0
  87. package/api/types/CascadeResult.js +12 -0
  88. package/api/types/ContextBase.d.ts +33 -0
  89. package/api/types/ContextBase.js +12 -0
  90. package/api/types/ContextDetail.d.ts +58 -0
  91. package/api/types/ContextDetail.js +3 -0
  92. package/api/types/ContextInstanceHistory.d.ts +10 -0
  93. package/api/types/ContextInstanceHistory.js +3 -0
  94. package/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
  95. package/api/types/ContextInstanceHistoryEntry.js +3 -0
  96. package/api/types/ContextInstancePendingEvaluation.d.ts +29 -0
  97. package/api/types/ContextInstancePendingEvaluation.js +12 -0
  98. package/api/types/ContextInstancePendingResponse.d.ts +8 -0
  99. package/api/types/ContextInstancePendingResponse.js +3 -0
  100. package/api/types/ContextInstanceState.d.ts +31 -0
  101. package/api/types/ContextInstanceState.js +12 -0
  102. package/api/types/ContextListResponse.d.ts +2 -0
  103. package/api/types/ContextListResponse.js +3 -0
  104. package/api/types/ContextRelationshipBase.d.ts +21 -0
  105. package/api/types/ContextRelationshipBase.js +13 -0
  106. package/api/types/ContextRelationshipIncoming.d.ts +11 -0
  107. package/api/types/ContextRelationshipIncoming.js +3 -0
  108. package/api/types/ContextRelationshipOutgoing.d.ts +11 -0
  109. package/api/types/ContextRelationshipOutgoing.js +3 -0
  110. package/api/types/ContextRelationshipsResponse.d.ts +5 -0
  111. package/api/types/ContextRelationshipsResponse.js +3 -0
  112. package/api/types/ContextSchema.d.ts +10 -0
  113. package/api/types/ContextSchema.js +3 -0
  114. package/api/types/ContextSchemaField.d.ts +35 -0
  115. package/api/types/ContextSchemaField.js +16 -0
  116. package/api/types/CreateContextResponse.d.ts +2 -0
  117. package/api/types/CreateContextResponse.js +3 -0
  118. package/api/types/CreateRelationshipResponse.d.ts +2 -0
  119. package/api/types/CreateRelationshipResponse.js +3 -0
  120. package/api/types/CreateUserResponse.d.ts +3 -3
  121. package/api/types/DeleteContextInstanceResponse.d.ts +9 -0
  122. package/api/types/DeleteContextInstanceResponse.js +3 -0
  123. package/api/types/DeleteContextResponse.d.ts +13 -0
  124. package/api/types/DeleteContextResponse.js +3 -0
  125. package/api/types/DeleteRelationshipResponse.d.ts +4 -0
  126. package/api/types/DeleteRelationshipResponse.js +3 -0
  127. package/api/types/DynamicValue.d.ts +9 -3
  128. package/api/types/ExportManifestPreviewResponse.d.ts +51 -0
  129. package/api/types/ExportManifestPreviewResponse.js +3 -0
  130. package/api/types/ExportManifestResponse.d.ts +9 -0
  131. package/api/types/ExportManifestResponse.js +3 -0
  132. package/api/types/FlowDetail.d.ts +28 -0
  133. package/api/types/Folder.d.ts +1 -1
  134. package/api/types/ImportManifestResponse.d.ts +38 -0
  135. package/api/types/ImportManifestResponse.js +3 -0
  136. package/api/types/RuleDetail.d.ts +17 -0
  137. package/api/types/SolveContextFlowResponse.d.ts +23 -0
  138. package/api/types/SolveContextFlowResponse.js +12 -0
  139. package/api/types/SolveContextRuleResponse.d.ts +26 -0
  140. package/api/types/SolveContextRuleResponse.js +12 -0
  141. package/api/types/SubmitContextDataRequest.d.ts +4 -0
  142. package/api/types/SubmitContextDataRequest.js +3 -0
  143. package/api/types/SubmitContextDataResponse.d.ts +30 -0
  144. package/api/types/SubmitContextDataResponse.js +12 -0
  145. package/api/types/UpdateContextResponse.d.ts +2 -0
  146. package/api/types/UpdateContextResponse.js +3 -0
  147. package/api/types/UserDetail.d.ts +4 -4
  148. package/api/types/UserInviteResponse.d.ts +2 -2
  149. package/api/types/index.d.ts +29 -0
  150. package/api/types/index.js +29 -0
  151. package/dist/Client.d.ts +3 -0
  152. package/dist/Client.js +17 -12
  153. package/dist/api/resources/assets/client/Client.d.ts +55 -1
  154. package/dist/api/resources/assets/client/Client.js +135 -0
  155. package/dist/api/resources/assets/client/index.d.ts +1 -1
  156. package/dist/api/resources/assets/client/index.js +15 -0
  157. package/dist/api/resources/assets/client/requests/ExportManifestRequest.d.ts +23 -0
  158. package/dist/api/resources/assets/client/requests/ExportManifestRequest.js +3 -0
  159. package/dist/api/resources/assets/client/requests/ImportManifestRequest.d.ts +48 -0
  160. package/dist/api/resources/assets/client/requests/ImportManifestRequest.js +3 -0
  161. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  162. package/dist/api/resources/assets/client/requests/index.js +2 -0
  163. package/dist/api/resources/assets/index.d.ts +1 -0
  164. package/dist/api/resources/assets/index.js +1 -0
  165. package/dist/api/resources/assets/types/ExportAssetsResponse.d.ts +2 -0
  166. package/dist/api/resources/assets/types/ExportAssetsResponse.js +3 -0
  167. package/dist/api/resources/assets/types/index.d.ts +1 -0
  168. package/dist/api/resources/assets/types/index.js +17 -0
  169. package/dist/api/resources/contexts/client/Client.d.ts +167 -0
  170. package/dist/api/resources/contexts/client/Client.js +563 -0
  171. package/dist/api/resources/contexts/client/index.d.ts +1 -0
  172. package/dist/api/resources/contexts/client/index.js +17 -0
  173. package/dist/api/resources/contexts/client/requests/CascadeContextRequest.d.ts +15 -0
  174. package/dist/api/resources/contexts/client/requests/CascadeContextRequest.js +3 -0
  175. package/dist/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.d.ts +13 -0
  176. package/dist/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.js +3 -0
  177. package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
  178. package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
  179. package/dist/api/resources/contexts/client/requests/GetInstanceContextsRequest.d.ts +13 -0
  180. package/dist/api/resources/contexts/client/requests/GetInstanceContextsRequest.js +3 -0
  181. package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
  182. package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
  183. package/dist/api/resources/contexts/client/requests/SolveContextFlowRequest.d.ts +20 -0
  184. package/dist/api/resources/contexts/client/requests/SolveContextFlowRequest.js +3 -0
  185. package/dist/api/resources/contexts/client/requests/SolveContextRuleRequest.d.ts +20 -0
  186. package/dist/api/resources/contexts/client/requests/SolveContextRuleRequest.js +3 -0
  187. package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
  188. package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
  189. package/dist/api/resources/contexts/client/requests/index.d.ts +8 -0
  190. package/dist/api/resources/contexts/client/requests/index.js +2 -0
  191. package/dist/api/resources/contexts/index.d.ts +2 -0
  192. package/dist/api/resources/contexts/index.js +18 -0
  193. package/dist/api/resources/contexts/resources/admin/client/Client.d.ts +102 -0
  194. package/dist/api/resources/contexts/resources/admin/client/Client.js +353 -0
  195. package/dist/api/resources/contexts/resources/admin/client/index.d.ts +1 -0
  196. package/dist/api/resources/contexts/resources/admin/client/index.js +17 -0
  197. package/dist/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.d.ts +55 -0
  198. package/dist/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.js +12 -0
  199. package/dist/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.d.ts +10 -0
  200. package/dist/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.js +3 -0
  201. package/dist/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.d.ts +10 -0
  202. package/dist/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.js +3 -0
  203. package/dist/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.d.ts +49 -0
  204. package/dist/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.js +12 -0
  205. package/dist/api/resources/contexts/resources/admin/client/requests/index.d.ts +4 -0
  206. package/dist/api/resources/contexts/resources/admin/client/requests/index.js +2 -0
  207. package/dist/api/resources/contexts/resources/admin/index.d.ts +1 -0
  208. package/dist/api/resources/contexts/resources/admin/index.js +17 -0
  209. package/dist/api/resources/contexts/resources/index.d.ts +4 -0
  210. package/dist/api/resources/contexts/resources/index.js +43 -0
  211. package/dist/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
  212. package/dist/api/resources/contexts/resources/relationships/client/Client.js +252 -0
  213. package/dist/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
  214. package/dist/api/resources/contexts/resources/relationships/client/index.js +17 -0
  215. package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
  216. package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
  217. package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
  218. package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
  219. package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
  220. package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
  221. package/dist/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
  222. package/dist/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
  223. package/dist/api/resources/contexts/resources/relationships/index.d.ts +1 -0
  224. package/dist/api/resources/contexts/resources/relationships/index.js +17 -0
  225. package/dist/api/resources/index.d.ts +4 -0
  226. package/dist/api/resources/index.js +8 -4
  227. package/dist/api/resources/users/client/Client.d.ts +3 -3
  228. package/dist/api/resources/users/client/Client.js +3 -3
  229. package/dist/api/resources/users/client/requests/CreateUserRequest.d.ts +3 -3
  230. package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +6 -6
  231. package/dist/api/resources/values/client/Client.d.ts +3 -3
  232. package/dist/api/resources/values/client/Client.js +3 -3
  233. package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +6 -6
  234. package/dist/api/types/CascadeContextResponse.d.ts +10 -0
  235. package/dist/api/types/CascadeContextResponse.js +3 -0
  236. package/dist/api/types/CascadeResult.d.ts +29 -0
  237. package/dist/api/types/CascadeResult.js +12 -0
  238. package/dist/api/types/ContextBase.d.ts +33 -0
  239. package/dist/api/types/ContextBase.js +12 -0
  240. package/dist/api/types/ContextDetail.d.ts +58 -0
  241. package/dist/api/types/ContextDetail.js +3 -0
  242. package/dist/api/types/ContextInstanceHistory.d.ts +10 -0
  243. package/dist/api/types/ContextInstanceHistory.js +3 -0
  244. package/dist/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
  245. package/dist/api/types/ContextInstanceHistoryEntry.js +3 -0
  246. package/dist/api/types/ContextInstancePendingEvaluation.d.ts +29 -0
  247. package/dist/api/types/ContextInstancePendingEvaluation.js +12 -0
  248. package/dist/api/types/ContextInstancePendingResponse.d.ts +8 -0
  249. package/dist/api/types/ContextInstancePendingResponse.js +3 -0
  250. package/dist/api/types/ContextInstanceState.d.ts +31 -0
  251. package/dist/api/types/ContextInstanceState.js +12 -0
  252. package/dist/api/types/ContextListResponse.d.ts +2 -0
  253. package/dist/api/types/ContextListResponse.js +3 -0
  254. package/dist/api/types/ContextRelationshipBase.d.ts +21 -0
  255. package/dist/api/types/ContextRelationshipBase.js +13 -0
  256. package/dist/api/types/ContextRelationshipIncoming.d.ts +11 -0
  257. package/dist/api/types/ContextRelationshipIncoming.js +3 -0
  258. package/dist/api/types/ContextRelationshipOutgoing.d.ts +11 -0
  259. package/dist/api/types/ContextRelationshipOutgoing.js +3 -0
  260. package/dist/api/types/ContextRelationshipsResponse.d.ts +5 -0
  261. package/dist/api/types/ContextRelationshipsResponse.js +3 -0
  262. package/dist/api/types/ContextSchema.d.ts +10 -0
  263. package/dist/api/types/ContextSchema.js +3 -0
  264. package/dist/api/types/ContextSchemaField.d.ts +35 -0
  265. package/dist/api/types/ContextSchemaField.js +16 -0
  266. package/dist/api/types/CreateContextResponse.d.ts +2 -0
  267. package/dist/api/types/CreateContextResponse.js +3 -0
  268. package/dist/api/types/CreateRelationshipResponse.d.ts +2 -0
  269. package/dist/api/types/CreateRelationshipResponse.js +3 -0
  270. package/dist/api/types/CreateUserResponse.d.ts +3 -3
  271. package/dist/api/types/DeleteContextInstanceResponse.d.ts +9 -0
  272. package/dist/api/types/DeleteContextInstanceResponse.js +3 -0
  273. package/dist/api/types/DeleteContextResponse.d.ts +13 -0
  274. package/dist/api/types/DeleteContextResponse.js +3 -0
  275. package/dist/api/types/DeleteRelationshipResponse.d.ts +4 -0
  276. package/dist/api/types/DeleteRelationshipResponse.js +3 -0
  277. package/dist/api/types/DynamicValue.d.ts +9 -3
  278. package/dist/api/types/ExportManifestPreviewResponse.d.ts +51 -0
  279. package/dist/api/types/ExportManifestPreviewResponse.js +3 -0
  280. package/dist/api/types/ExportManifestResponse.d.ts +9 -0
  281. package/dist/api/types/ExportManifestResponse.js +3 -0
  282. package/dist/api/types/FlowDetail.d.ts +28 -0
  283. package/dist/api/types/Folder.d.ts +1 -1
  284. package/dist/api/types/ImportManifestResponse.d.ts +38 -0
  285. package/dist/api/types/ImportManifestResponse.js +3 -0
  286. package/dist/api/types/RuleDetail.d.ts +17 -0
  287. package/dist/api/types/SolveContextFlowResponse.d.ts +23 -0
  288. package/dist/api/types/SolveContextFlowResponse.js +12 -0
  289. package/dist/api/types/SolveContextRuleResponse.d.ts +26 -0
  290. package/dist/api/types/SolveContextRuleResponse.js +12 -0
  291. package/dist/api/types/SubmitContextDataRequest.d.ts +4 -0
  292. package/dist/api/types/SubmitContextDataRequest.js +3 -0
  293. package/dist/api/types/SubmitContextDataResponse.d.ts +30 -0
  294. package/dist/api/types/SubmitContextDataResponse.js +12 -0
  295. package/dist/api/types/UpdateContextResponse.d.ts +2 -0
  296. package/dist/api/types/UpdateContextResponse.js +3 -0
  297. package/dist/api/types/UserDetail.d.ts +4 -4
  298. package/dist/api/types/UserInviteResponse.d.ts +2 -2
  299. package/dist/api/types/index.d.ts +29 -0
  300. package/dist/api/types/index.js +29 -0
  301. package/dist/forge/values.d.ts +1 -1
  302. package/dist/forge/values.js +2 -2
  303. package/forge/values.d.ts +1 -1
  304. package/forge/values.js +2 -2
  305. package/package.json +1 -2
@@ -0,0 +1,21 @@
1
+ export interface ContextRelationshipBase {
2
+ /** The unique identifier for the relationship. */
3
+ id?: string;
4
+ /** The type of relationship. */
5
+ type?: ContextRelationshipBase.Type;
6
+ /** The field key used as the foreign key. */
7
+ foreignKey?: string;
8
+ /** Display name for the relationship. */
9
+ name?: string;
10
+ /** Description of the relationship. */
11
+ description?: string;
12
+ }
13
+ export declare namespace ContextRelationshipBase {
14
+ /** The type of relationship. */
15
+ const Type: {
16
+ readonly OneToOne: "one-to-one";
17
+ readonly OneToMany: "one-to-many";
18
+ readonly ManyToOne: "many-to-one";
19
+ };
20
+ type Type = (typeof Type)[keyof typeof Type];
21
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ContextRelationshipBase = void 0;
5
+ var ContextRelationshipBase;
6
+ (function (ContextRelationshipBase) {
7
+ /** The type of relationship. */
8
+ ContextRelationshipBase.Type = {
9
+ OneToOne: "one-to-one",
10
+ OneToMany: "one-to-many",
11
+ ManyToOne: "many-to-one",
12
+ };
13
+ })(ContextRelationshipBase || (exports.ContextRelationshipBase = ContextRelationshipBase = {}));
@@ -0,0 +1,11 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ export interface ContextRelationshipIncoming extends Rulebricks.ContextRelationshipBase {
3
+ sourceContext?: ContextRelationshipIncoming.SourceContext;
4
+ }
5
+ export declare namespace ContextRelationshipIncoming {
6
+ interface SourceContext {
7
+ id?: string;
8
+ name?: string;
9
+ slug?: string;
10
+ }
11
+ }
@@ -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,11 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ export interface ContextRelationshipOutgoing extends Rulebricks.ContextRelationshipBase {
3
+ targetContext?: ContextRelationshipOutgoing.TargetContext;
4
+ }
5
+ export declare namespace ContextRelationshipOutgoing {
6
+ interface TargetContext {
7
+ id?: string;
8
+ name?: string;
9
+ slug?: string;
10
+ }
11
+ }
@@ -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,5 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ export interface ContextRelationshipsResponse {
3
+ outgoing?: Rulebricks.ContextRelationshipOutgoing[];
4
+ incoming?: Rulebricks.ContextRelationshipIncoming[];
5
+ }
@@ -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,10 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ /**
3
+ * The schema definition for a context.
4
+ */
5
+ export interface ContextSchema {
6
+ /** User-defined base fields for the context. */
7
+ base?: Rulebricks.ContextSchemaField[];
8
+ /** Fields derived from bound rule/flow outputs. */
9
+ derived?: Rulebricks.ContextSchemaField[];
10
+ }
@@ -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,35 @@
1
+ /**
2
+ * A field definition within a context schema.
3
+ */
4
+ export interface ContextSchemaField {
5
+ /** The unique key for this field. */
6
+ key?: string;
7
+ /** Display name for this field. */
8
+ name?: string;
9
+ /** Description of this field. */
10
+ description?: string;
11
+ /** Data type of this field. 'function' type fields compute values dynamically. */
12
+ type?: ContextSchemaField.Type;
13
+ /** Default value for this field. */
14
+ defaultValue?: unknown | null;
15
+ /** Whether this field is derived from rule/flow outputs. */
16
+ derived?: boolean;
17
+ /** The rule ID that derives this field (if derived). */
18
+ sourceRule?: string | null;
19
+ /** The flow ID that derives this field (if derived). */
20
+ sourceFlow?: string | null;
21
+ /** The source field key in the rule/flow output. */
22
+ sourceField?: string | null;
23
+ }
24
+ export declare namespace ContextSchemaField {
25
+ /** Data type of this field. 'function' type fields compute values dynamically. */
26
+ const Type: {
27
+ readonly String: "string";
28
+ readonly Number: "number";
29
+ readonly Boolean: "boolean";
30
+ readonly Date: "date";
31
+ readonly List: "list";
32
+ readonly Function: "function";
33
+ };
34
+ type Type = (typeof Type)[keyof typeof Type];
35
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ContextSchemaField = void 0;
5
+ var ContextSchemaField;
6
+ (function (ContextSchemaField) {
7
+ /** Data type of this field. 'function' type fields compute values dynamically. */
8
+ ContextSchemaField.Type = {
9
+ String: "string",
10
+ Number: "number",
11
+ Boolean: "boolean",
12
+ Date: "date",
13
+ List: "list",
14
+ Function: "function",
15
+ };
16
+ })(ContextSchemaField || (exports.ContextSchemaField = ContextSchemaField = {}));
@@ -0,0 +1,2 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ export type CreateContextResponse = Rulebricks.ContextDetail;
@@ -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,2 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ export type CreateRelationshipResponse = Rulebricks.ContextRelationshipOutgoing;
@@ -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 });
@@ -18,9 +18,9 @@ export declare namespace CreateUserResponse {
18
18
  name?: string | null;
19
19
  /** Role assigned to the user. */
20
20
  role?: string;
21
- /** Access groups assigned to the user. */
22
- accessGroups?: string[];
21
+ /** User groups assigned to the user. */
22
+ user_groups?: string[];
23
23
  /** API key generated for the user. */
24
- apiKey?: string | null;
24
+ api_key?: string | null;
25
25
  }
26
26
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Response after deleting a context instance.
3
+ */
4
+ export interface DeleteContextInstanceResponse {
5
+ /** Success message. */
6
+ message?: string;
7
+ /** Number of pending evaluations that were cancelled when the instance was deleted. */
8
+ pending_evaluations_cancelled?: number;
9
+ }
@@ -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,13 @@
1
+ /**
2
+ * Response after deleting a context.
3
+ */
4
+ export interface DeleteContextResponse {
5
+ /** Success message. */
6
+ message?: string;
7
+ /** Slugs of rules that were unbound from the deleted context. */
8
+ unbound_rules?: string[];
9
+ /** Slugs of flows that were unbound from the deleted context. */
10
+ unbound_flows?: string[];
11
+ /** Number of pending evaluations that were cancelled when the context was deleted. */
12
+ pending_evaluations_cancelled?: number;
13
+ }
@@ -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,4 @@
1
+ export interface DeleteRelationshipResponse {
2
+ /** Success message. */
3
+ message?: string;
4
+ }
@@ -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 });
@@ -7,9 +7,15 @@ export interface DynamicValue {
7
7
  /** Type identifier for the value (e.g., 'string', 'number', 'boolean', 'list', 'function', etc.) */
8
8
  type: string;
9
9
  /** The actual value - can be any valid JSON type */
10
- value?: unknown;
10
+ value?: DynamicValue.Value;
11
11
  /** Rules that use this dynamic value (only included when 'include=usage' parameter is used). */
12
12
  usages?: Rulebricks.RuleUsage[];
13
- /** Access groups assigned to this value. */
14
- accessGroups?: string[];
13
+ /** User groups assigned to this value. */
14
+ user_groups?: string[];
15
+ }
16
+ export declare namespace DynamicValue {
17
+ /**
18
+ * The actual value - can be any valid JSON type
19
+ */
20
+ type Value = string | number | boolean | unknown[] | Record<string, unknown>;
15
21
  }
@@ -0,0 +1,51 @@
1
+ export interface ExportManifestPreviewResponse {
2
+ counts?: ExportManifestPreviewResponse.Counts;
3
+ items?: ExportManifestPreviewResponse.Items;
4
+ }
5
+ export declare namespace ExportManifestPreviewResponse {
6
+ interface Counts {
7
+ rules?: number;
8
+ flows?: number;
9
+ contexts?: number;
10
+ values?: number;
11
+ }
12
+ interface Items {
13
+ rules?: Items.Rules.Item[];
14
+ flows?: Items.Flows.Item[];
15
+ contexts?: Items.Contexts.Item[];
16
+ values?: Items.Values.Item[];
17
+ }
18
+ namespace Items {
19
+ type Rules = Rules.Item[];
20
+ namespace Rules {
21
+ interface Item {
22
+ id?: string;
23
+ name?: string;
24
+ slug?: string;
25
+ }
26
+ }
27
+ type Flows = Flows.Item[];
28
+ namespace Flows {
29
+ interface Item {
30
+ id?: string;
31
+ name?: string;
32
+ slug?: string;
33
+ }
34
+ }
35
+ type Contexts = Contexts.Item[];
36
+ namespace Contexts {
37
+ interface Item {
38
+ id?: string;
39
+ name?: string;
40
+ slug?: string;
41
+ }
42
+ }
43
+ type Values = Values.Item[];
44
+ namespace Values {
45
+ interface Item {
46
+ id?: string;
47
+ name?: string;
48
+ }
49
+ }
50
+ }
51
+ }
@@ -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,9 @@
1
+ export interface ExportManifestResponse {
2
+ /** Manifest format version. */
3
+ version?: string;
4
+ exported_at?: string;
5
+ rules?: Record<string, unknown>[];
6
+ flows?: Record<string, unknown>[];
7
+ contexts?: Record<string, unknown>[];
8
+ values?: Record<string, unknown>[];
9
+ }
@@ -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 });
@@ -4,4 +4,32 @@ export interface FlowDetail extends Rulebricks.FlowBase {
4
4
  published?: boolean;
5
5
  /** The date this flow was last updated. */
6
6
  updated_at?: string;
7
+ /** The origin rule that this flow starts from. Flows execute starting from this rule's outputs. */
8
+ origin_rule?: FlowDetail.OriginRule | null;
9
+ /** The context this flow is bound to (via its origin rule). Flows inherit context binding from their origin rule. */
10
+ context?: FlowDetail.Context | null;
11
+ }
12
+ export declare namespace FlowDetail {
13
+ /**
14
+ * The origin rule that this flow starts from. Flows execute starting from this rule's outputs.
15
+ */
16
+ interface OriginRule {
17
+ /** The origin rule ID. */
18
+ id?: string;
19
+ /** The origin rule name. */
20
+ name?: string;
21
+ /** The origin rule slug. */
22
+ slug?: string;
23
+ }
24
+ /**
25
+ * The context this flow is bound to (via its origin rule). Flows inherit context binding from their origin rule.
26
+ */
27
+ interface Context {
28
+ /** The context ID. */
29
+ id?: string;
30
+ /** The context name. */
31
+ name?: string;
32
+ /** The context slug. */
33
+ slug?: string;
34
+ }
7
35
  }
@@ -6,5 +6,5 @@ export interface Folder {
6
6
  /** Description of the folder. */
7
7
  description?: string;
8
8
  /** Timestamp of when the folder was last updated. */
9
- updatedAt?: string;
9
+ updated_at?: string;
10
10
  }
@@ -0,0 +1,38 @@
1
+ export interface ImportManifestResponse {
2
+ /** Success message. */
3
+ message?: string;
4
+ /** Count of imported assets by type. */
5
+ imported?: ImportManifestResponse.Imported;
6
+ /** Count of skipped assets by type (already exist and overwrite=false). */
7
+ skipped?: ImportManifestResponse.Skipped;
8
+ /** Any errors encountered during import. */
9
+ errors?: ImportManifestResponse.Errors.Item[];
10
+ }
11
+ export declare namespace ImportManifestResponse {
12
+ /**
13
+ * Count of imported assets by type.
14
+ */
15
+ interface Imported {
16
+ rules?: number;
17
+ flows?: number;
18
+ contexts?: number;
19
+ values?: number;
20
+ }
21
+ /**
22
+ * Count of skipped assets by type (already exist and overwrite=false).
23
+ */
24
+ interface Skipped {
25
+ rules?: number;
26
+ flows?: number;
27
+ contexts?: number;
28
+ values?: number;
29
+ }
30
+ type Errors = Errors.Item[];
31
+ namespace Errors {
32
+ interface Item {
33
+ type?: string;
34
+ id?: string;
35
+ error?: string;
36
+ }
37
+ }
38
+ }
@@ -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 });
@@ -2,9 +2,26 @@ import type * as Rulebricks from "../index.js";
2
2
  export interface RuleDetail extends Rulebricks.RuleBase {
3
3
  /** The date this rule was created. */
4
4
  created_at?: string;
5
+ /** The date this rule was last updated. */
6
+ updated_at?: string;
5
7
  folder?: Rulebricks.Folder;
8
+ /** The context this rule is bound to (if any). Rules bound to a context have their inputs/outputs mapped to context fields. */
9
+ context?: RuleDetail.Context | null;
6
10
  /** The published request schema for the rule. */
7
11
  request_schema?: Rulebricks.SchemaField[];
8
12
  /** The published response schema for the rule. */
9
13
  response_schema?: Rulebricks.SchemaField[];
10
14
  }
15
+ export declare namespace RuleDetail {
16
+ /**
17
+ * The context this rule is bound to (if any). Rules bound to a context have their inputs/outputs mapped to context fields.
18
+ */
19
+ interface Context {
20
+ /** The context ID. */
21
+ id?: string;
22
+ /** The context name. */
23
+ name?: string;
24
+ /** The context slug. */
25
+ slug?: string;
26
+ }
27
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Response after executing a flow against a context instance.
3
+ */
4
+ export interface SolveContextFlowResponse {
5
+ /** Whether the flow executed successfully. */
6
+ status?: SolveContextFlowResponse.Status;
7
+ /** Combined identifier in format 'contextSlug:instanceId'. */
8
+ context?: string;
9
+ /** The slug of the flow that was executed. */
10
+ flow?: string;
11
+ /** The flow execution output. */
12
+ result?: Record<string, unknown>;
13
+ /** Resource usage information for the flow execution. */
14
+ usage?: Record<string, unknown>;
15
+ }
16
+ export declare namespace SolveContextFlowResponse {
17
+ /** Whether the flow executed successfully. */
18
+ const Status: {
19
+ readonly Solved: "solved";
20
+ readonly Error: "error";
21
+ };
22
+ type Status = (typeof Status)[keyof typeof Status];
23
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SolveContextFlowResponse = void 0;
5
+ var SolveContextFlowResponse;
6
+ (function (SolveContextFlowResponse) {
7
+ /** Whether the flow executed successfully. */
8
+ SolveContextFlowResponse.Status = {
9
+ Solved: "solved",
10
+ Error: "error",
11
+ };
12
+ })(SolveContextFlowResponse || (exports.SolveContextFlowResponse = SolveContextFlowResponse = {}));
@@ -0,0 +1,26 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ /**
3
+ * Response after solving a rule against a context instance.
4
+ */
5
+ export interface SolveContextRuleResponse {
6
+ /** Whether the rule executed successfully. */
7
+ status?: SolveContextRuleResponse.Status;
8
+ /** Combined identifier in format 'contextSlug:instanceId'. */
9
+ context?: string;
10
+ /** The slug of the rule that was executed. */
11
+ rule?: string;
12
+ /** The rule evaluation result (output values). */
13
+ result?: Record<string, unknown>;
14
+ /** List of field keys that were written back to the context instance. */
15
+ written_to_context?: string[];
16
+ /** Results from any cascaded evaluations triggered by the rule outputs. */
17
+ cascaded?: Rulebricks.CascadeResult[];
18
+ }
19
+ export declare namespace SolveContextRuleResponse {
20
+ /** Whether the rule executed successfully. */
21
+ const Status: {
22
+ readonly Solved: "solved";
23
+ readonly Error: "error";
24
+ };
25
+ type Status = (typeof Status)[keyof typeof Status];
26
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SolveContextRuleResponse = void 0;
5
+ var SolveContextRuleResponse;
6
+ (function (SolveContextRuleResponse) {
7
+ /** Whether the rule executed successfully. */
8
+ SolveContextRuleResponse.Status = {
9
+ Solved: "solved",
10
+ Error: "error",
11
+ };
12
+ })(SolveContextRuleResponse || (exports.SolveContextRuleResponse = SolveContextRuleResponse = {}));
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Data to submit to a context instance. Keys should match the context schema fields.
3
+ */
4
+ export type SubmitContextDataRequest = Record<string, unknown>;
@@ -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,30 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ /**
3
+ * Response after submitting data, including any auto-executed evaluations.
4
+ */
5
+ export interface SubmitContextDataResponse {
6
+ /** Combined identifier in format 'contextSlug:instanceId'. */
7
+ context?: string;
8
+ /** The merged state after submitting data and any auto-executed rules/flows. */
9
+ state?: Record<string, unknown>;
10
+ /** Whether all required fields are present ('complete') or some are missing ('pending'). */
11
+ status?: SubmitContextDataResponse.Status;
12
+ /** List of field keys that are currently populated. */
13
+ have?: string[];
14
+ /** List of required field keys that are still missing. */
15
+ need?: string[];
16
+ /** Whether this submission created a new instance (true) or updated an existing one (false). */
17
+ is_new?: boolean;
18
+ /** When the instance will expire based on context TTL. */
19
+ expires_at?: string | null;
20
+ /** Results from auto-executed rules/flows and pending evaluation cascades. */
21
+ cascaded?: Rulebricks.CascadeResult[];
22
+ }
23
+ export declare namespace SubmitContextDataResponse {
24
+ /** Whether all required fields are present ('complete') or some are missing ('pending'). */
25
+ const Status: {
26
+ readonly Complete: "complete";
27
+ readonly Pending: "pending";
28
+ };
29
+ type Status = (typeof Status)[keyof typeof Status];
30
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SubmitContextDataResponse = void 0;
5
+ var SubmitContextDataResponse;
6
+ (function (SubmitContextDataResponse) {
7
+ /** Whether all required fields are present ('complete') or some are missing ('pending'). */
8
+ SubmitContextDataResponse.Status = {
9
+ Complete: "complete",
10
+ Pending: "pending",
11
+ };
12
+ })(SubmitContextDataResponse || (exports.SubmitContextDataResponse = SubmitContextDataResponse = {}));
@@ -0,0 +1,2 @@
1
+ import type * as Rulebricks from "../index.js";
2
+ export type UpdateContextResponse = Rulebricks.ContextDetail;
@@ -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 });
@@ -9,11 +9,11 @@ export interface UserDetail {
9
9
  /** Display name of the user (if set). */
10
10
  name?: string | null;
11
11
  /** API key assigned to the user. */
12
- apiKey?: string | null;
12
+ api_key?: string | null;
13
13
  /** Role assigned to the user (e.g., 'administrator', 'developer', 'editor', or custom role ID). */
14
14
  role?: string;
15
- /** List of access group names the user belongs to. */
16
- accessGroups?: string[];
15
+ /** List of user group names the user belongs to. */
16
+ user_groups?: string[];
17
17
  /** Date and time when the user joined the organization. */
18
- joinedAt?: string | null;
18
+ joined_at?: string | null;
19
19
  }
@@ -9,7 +9,7 @@ export declare namespace UserInviteResponse {
9
9
  email?: string;
10
10
  /** Role assigned to the user. */
11
11
  role?: string;
12
- /** Access groups assigned to the user. */
13
- accessGroups?: string[];
12
+ /** User groups assigned to the user. */
13
+ user_groups?: string[];
14
14
  }
15
15
  }