@constructive-io/react 0.28.3 → 0.29.1

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 (511) hide show
  1. package/admin/hooks/index.d.ts +1 -1
  2. package/admin/hooks/index.js +1 -1
  3. package/admin/hooks/invalidation.d.ts +120 -120
  4. package/admin/hooks/invalidation.js +232 -232
  5. package/admin/hooks/mutation-keys.d.ts +244 -244
  6. package/admin/hooks/mutation-keys.js +157 -157
  7. package/admin/hooks/mutations/index.d.ts +63 -63
  8. package/admin/hooks/mutations/index.js +63 -63
  9. package/admin/hooks/queries/index.d.ts +47 -47
  10. package/admin/hooks/queries/index.js +47 -47
  11. package/admin/hooks/queries/useAppPermissionsGetByMaskQuery.d.ts +3 -3
  12. package/admin/hooks/queries/useAppPermissionsGetByMaskQuery.js +2 -2
  13. package/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +3 -3
  14. package/admin/hooks/queries/useOrgIsManagerOfQuery.js +2 -2
  15. package/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.d.ts +3 -3
  16. package/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.js +2 -2
  17. package/admin/hooks/query-keys.d.ts +296 -296
  18. package/admin/hooks/query-keys.js +173 -173
  19. package/admin/orm/index.d.ts +67 -67
  20. package/admin/orm/index.js +44 -44
  21. package/admin/orm/input-types.d.ts +3168 -3168
  22. package/admin/orm/input-types.js +1 -1
  23. package/admin/orm/models/index.d.ts +22 -22
  24. package/admin/orm/models/index.js +45 -45
  25. package/admin/orm/mutation/index.d.ts +12 -12
  26. package/admin/orm/mutation/index.js +12 -12
  27. package/admin/orm/query/index.d.ts +47 -47
  28. package/admin/orm/query/index.js +68 -68
  29. package/admin/schema-types.d.ts +2497 -2497
  30. package/admin/types.d.ts +193 -193
  31. package/agent/hooks/index.d.ts +1 -1
  32. package/agent/hooks/index.js +1 -1
  33. package/agent/hooks/invalidation.d.ts +23 -23
  34. package/agent/hooks/invalidation.js +55 -55
  35. package/agent/hooks/mutation-keys.d.ts +46 -46
  36. package/agent/hooks/mutation-keys.js +28 -28
  37. package/agent/hooks/mutations/index.d.ts +12 -12
  38. package/agent/hooks/mutations/index.js +12 -12
  39. package/agent/hooks/queries/index.d.ts +8 -8
  40. package/agent/hooks/queries/index.js +8 -8
  41. package/agent/hooks/query-keys.d.ts +54 -54
  42. package/agent/hooks/query-keys.js +32 -32
  43. package/agent/orm/index.d.ts +8 -8
  44. package/agent/orm/index.js +8 -8
  45. package/agent/orm/input-types.d.ts +1788 -1788
  46. package/agent/orm/input-types.js +9 -9
  47. package/agent/orm/models/index.d.ts +4 -4
  48. package/agent/orm/models/index.js +9 -9
  49. package/agent/schema-types.d.ts +1226 -1226
  50. package/agent/types.d.ts +95 -95
  51. package/api/hooks/index.d.ts +1 -1
  52. package/api/hooks/index.js +1 -1
  53. package/api/hooks/invalidation.d.ts +184 -184
  54. package/api/hooks/invalidation.js +392 -392
  55. package/api/hooks/mutation-keys.d.ts +411 -411
  56. package/api/hooks/mutation-keys.js +227 -227
  57. package/api/hooks/mutations/index.d.ts +93 -93
  58. package/api/hooks/mutations/index.js +93 -93
  59. package/api/hooks/queries/index.d.ts +64 -64
  60. package/api/hooks/queries/index.js +64 -64
  61. package/api/hooks/queries/useApplyRegistryDefaultsQuery.d.ts +3 -3
  62. package/api/hooks/queries/useApplyRegistryDefaultsQuery.js +2 -2
  63. package/api/hooks/query-keys.d.ts +466 -466
  64. package/api/hooks/query-keys.js +251 -251
  65. package/api/orm/index.d.ts +77 -77
  66. package/api/orm/index.js +64 -64
  67. package/api/orm/input-types.d.ts +8781 -8781
  68. package/api/orm/input-types.js +48 -48
  69. package/api/orm/models/index.d.ts +32 -32
  70. package/api/orm/models/index.js +65 -65
  71. package/api/orm/mutation/index.d.ts +29 -29
  72. package/api/orm/mutation/index.js +30 -30
  73. package/api/orm/query/index.d.ts +1 -1
  74. package/api/orm/query/index.js +4 -4
  75. package/api/schema-types.d.ts +5628 -5628
  76. package/api/types.d.ts +435 -435
  77. package/auth/hooks/index.d.ts +1 -1
  78. package/auth/hooks/index.js +1 -1
  79. package/auth/hooks/invalidation.d.ts +42 -42
  80. package/auth/hooks/invalidation.js +90 -90
  81. package/auth/hooks/mutation-keys.d.ts +124 -124
  82. package/auth/hooks/mutation-keys.js +106 -106
  83. package/auth/hooks/mutations/index.d.ts +36 -36
  84. package/auth/hooks/mutations/index.js +36 -36
  85. package/auth/hooks/queries/index.d.ts +15 -15
  86. package/auth/hooks/queries/index.js +15 -15
  87. package/auth/hooks/query-keys.d.ts +102 -102
  88. package/auth/hooks/query-keys.js +59 -59
  89. package/auth/orm/index.d.ts +103 -103
  90. package/auth/orm/index.js +14 -14
  91. package/auth/orm/input-types.d.ts +2102 -2109
  92. package/auth/orm/input-types.js +5 -5
  93. package/auth/orm/models/index.d.ts +7 -7
  94. package/auth/orm/models/index.js +15 -15
  95. package/auth/orm/mutation/index.d.ts +138 -138
  96. package/auth/orm/mutation/index.js +168 -168
  97. package/auth/orm/query/index.d.ts +10 -10
  98. package/auth/orm/query/index.js +14 -14
  99. package/auth/schema-types.d.ts +1602 -1605
  100. package/auth/types.d.ts +86 -87
  101. package/compute/hooks/index.d.ts +1 -1
  102. package/compute/hooks/index.js +1 -1
  103. package/compute/hooks/invalidation.d.ts +183 -183
  104. package/compute/hooks/invalidation.js +391 -391
  105. package/compute/hooks/mutation-keys.d.ts +388 -388
  106. package/compute/hooks/mutation-keys.js +300 -300
  107. package/compute/hooks/mutations/index.d.ts +97 -97
  108. package/compute/hooks/mutations/index.js +97 -97
  109. package/compute/hooks/mutations/useCreateFunctionInvocationMutation.d.ts +2 -2
  110. package/compute/hooks/mutations/useCreateFunctionInvocationMutation.js +1 -1
  111. package/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.d.ts +2 -2
  112. package/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.js +1 -1
  113. package/compute/hooks/mutations/useDeleteFunctionInvocationMutation.d.ts +2 -2
  114. package/compute/hooks/mutations/useDeleteFunctionInvocationMutation.js +1 -1
  115. package/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.d.ts +2 -2
  116. package/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.js +1 -1
  117. package/compute/hooks/mutations/useUpdateFunctionInvocationMutation.d.ts +2 -2
  118. package/compute/hooks/mutations/useUpdateFunctionInvocationMutation.js +1 -1
  119. package/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.d.ts +2 -2
  120. package/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.js +1 -1
  121. package/compute/hooks/queries/index.d.ts +59 -59
  122. package/compute/hooks/queries/index.js +59 -59
  123. package/compute/hooks/queries/useFunctionInvocationQuery.d.ts +4 -4
  124. package/compute/hooks/queries/useFunctionInvocationQuery.js +1 -1
  125. package/compute/hooks/queries/useFunctionInvocationsQuery.d.ts +4 -4
  126. package/compute/hooks/queries/useFunctionInvocationsQuery.js +1 -1
  127. package/compute/hooks/queries/usePlatformFunctionInvocationQuery.d.ts +4 -4
  128. package/compute/hooks/queries/usePlatformFunctionInvocationQuery.js +1 -1
  129. package/compute/hooks/queries/usePlatformFunctionInvocationsQuery.d.ts +4 -4
  130. package/compute/hooks/queries/usePlatformFunctionInvocationsQuery.js +1 -1
  131. package/compute/hooks/query-keys.d.ts +438 -438
  132. package/compute/hooks/query-keys.js +256 -256
  133. package/compute/orm/index.d.ts +110 -110
  134. package/compute/orm/index.js +64 -64
  135. package/compute/orm/input-types.d.ts +7256 -7037
  136. package/compute/orm/input-types.js +15 -13
  137. package/compute/orm/models/index.d.ts +32 -32
  138. package/compute/orm/models/index.js +65 -65
  139. package/compute/orm/mutation/index.d.ts +77 -77
  140. package/compute/orm/mutation/index.js +96 -96
  141. package/compute/schema-types.d.ts +4950 -4896
  142. package/compute/types.d.ts +470 -468
  143. package/config/hooks/index.d.ts +1 -1
  144. package/config/hooks/index.js +1 -1
  145. package/config/hooks/invalidation.d.ts +6 -6
  146. package/config/hooks/invalidation.js +15 -15
  147. package/config/hooks/mutation-keys.d.ts +24 -24
  148. package/config/hooks/mutation-keys.js +26 -26
  149. package/config/hooks/mutations/index.d.ts +9 -9
  150. package/config/hooks/mutations/index.js +9 -9
  151. package/config/hooks/queries/index.d.ts +2 -2
  152. package/config/hooks/queries/index.js +2 -2
  153. package/config/hooks/query-keys.d.ts +14 -14
  154. package/config/hooks/query-keys.js +9 -9
  155. package/config/orm/index.d.ts +30 -30
  156. package/config/orm/index.js +2 -2
  157. package/config/orm/input-types.d.ts +416 -416
  158. package/config/orm/models/index.d.ts +1 -1
  159. package/config/orm/models/index.js +3 -3
  160. package/config/orm/mutation/index.d.ts +47 -47
  161. package/config/orm/mutation/index.js +60 -60
  162. package/config/schema-types.d.ts +519 -519
  163. package/config/types.d.ts +35 -35
  164. package/esm/admin/hooks/index.d.ts +1 -1
  165. package/esm/admin/hooks/index.js +1 -1
  166. package/esm/admin/hooks/invalidation.d.ts +120 -120
  167. package/esm/admin/hooks/invalidation.js +233 -233
  168. package/esm/admin/hooks/mutation-keys.d.ts +244 -244
  169. package/esm/admin/hooks/mutation-keys.js +156 -156
  170. package/esm/admin/hooks/mutations/index.d.ts +63 -63
  171. package/esm/admin/hooks/mutations/index.js +63 -63
  172. package/esm/admin/hooks/queries/index.d.ts +47 -47
  173. package/esm/admin/hooks/queries/index.js +47 -47
  174. package/esm/admin/hooks/queries/useAppPermissionsGetByMaskQuery.d.ts +3 -3
  175. package/esm/admin/hooks/queries/useAppPermissionsGetByMaskQuery.js +2 -2
  176. package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +3 -3
  177. package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.js +2 -2
  178. package/esm/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.d.ts +3 -3
  179. package/esm/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.js +2 -2
  180. package/esm/admin/hooks/query-keys.d.ts +296 -296
  181. package/esm/admin/hooks/query-keys.js +172 -172
  182. package/esm/admin/orm/index.d.ts +67 -67
  183. package/esm/admin/orm/index.js +44 -44
  184. package/esm/admin/orm/input-types.d.ts +3168 -3168
  185. package/esm/admin/orm/input-types.js +1 -1
  186. package/esm/admin/orm/models/index.d.ts +22 -22
  187. package/esm/admin/orm/models/index.js +22 -22
  188. package/esm/admin/orm/mutation/index.d.ts +12 -12
  189. package/esm/admin/orm/mutation/index.js +12 -12
  190. package/esm/admin/orm/query/index.d.ts +47 -47
  191. package/esm/admin/orm/query/index.js +68 -68
  192. package/esm/admin/schema-types.d.ts +2497 -2497
  193. package/esm/admin/types.d.ts +193 -193
  194. package/esm/agent/hooks/index.d.ts +1 -1
  195. package/esm/agent/hooks/index.js +1 -1
  196. package/esm/agent/hooks/invalidation.d.ts +23 -23
  197. package/esm/agent/hooks/invalidation.js +56 -56
  198. package/esm/agent/hooks/mutation-keys.d.ts +46 -46
  199. package/esm/agent/hooks/mutation-keys.js +27 -27
  200. package/esm/agent/hooks/mutations/index.d.ts +12 -12
  201. package/esm/agent/hooks/mutations/index.js +12 -12
  202. package/esm/agent/hooks/queries/index.d.ts +8 -8
  203. package/esm/agent/hooks/queries/index.js +8 -8
  204. package/esm/agent/hooks/query-keys.d.ts +54 -54
  205. package/esm/agent/hooks/query-keys.js +31 -31
  206. package/esm/agent/orm/index.d.ts +8 -8
  207. package/esm/agent/orm/index.js +8 -8
  208. package/esm/agent/orm/input-types.d.ts +1788 -1788
  209. package/esm/agent/orm/input-types.js +9 -9
  210. package/esm/agent/orm/models/index.d.ts +4 -4
  211. package/esm/agent/orm/models/index.js +4 -4
  212. package/esm/agent/schema-types.d.ts +1226 -1226
  213. package/esm/agent/types.d.ts +95 -95
  214. package/esm/api/hooks/index.d.ts +1 -1
  215. package/esm/api/hooks/index.js +1 -1
  216. package/esm/api/hooks/invalidation.d.ts +184 -184
  217. package/esm/api/hooks/invalidation.js +393 -393
  218. package/esm/api/hooks/mutation-keys.d.ts +411 -411
  219. package/esm/api/hooks/mutation-keys.js +226 -226
  220. package/esm/api/hooks/mutations/index.d.ts +93 -93
  221. package/esm/api/hooks/mutations/index.js +93 -93
  222. package/esm/api/hooks/queries/index.d.ts +64 -64
  223. package/esm/api/hooks/queries/index.js +64 -64
  224. package/esm/api/hooks/queries/useApplyRegistryDefaultsQuery.d.ts +3 -3
  225. package/esm/api/hooks/queries/useApplyRegistryDefaultsQuery.js +2 -2
  226. package/esm/api/hooks/query-keys.d.ts +466 -466
  227. package/esm/api/hooks/query-keys.js +250 -250
  228. package/esm/api/orm/index.d.ts +77 -77
  229. package/esm/api/orm/index.js +64 -64
  230. package/esm/api/orm/input-types.d.ts +8781 -8781
  231. package/esm/api/orm/input-types.js +48 -48
  232. package/esm/api/orm/models/index.d.ts +32 -32
  233. package/esm/api/orm/models/index.js +32 -32
  234. package/esm/api/orm/mutation/index.d.ts +29 -29
  235. package/esm/api/orm/mutation/index.js +30 -30
  236. package/esm/api/orm/query/index.d.ts +1 -1
  237. package/esm/api/orm/query/index.js +4 -4
  238. package/esm/api/schema-types.d.ts +5628 -5628
  239. package/esm/api/types.d.ts +435 -435
  240. package/esm/auth/hooks/index.d.ts +1 -1
  241. package/esm/auth/hooks/index.js +1 -1
  242. package/esm/auth/hooks/invalidation.d.ts +42 -42
  243. package/esm/auth/hooks/invalidation.js +91 -91
  244. package/esm/auth/hooks/mutation-keys.d.ts +124 -124
  245. package/esm/auth/hooks/mutation-keys.js +105 -105
  246. package/esm/auth/hooks/mutations/index.d.ts +36 -36
  247. package/esm/auth/hooks/mutations/index.js +36 -36
  248. package/esm/auth/hooks/queries/index.d.ts +15 -15
  249. package/esm/auth/hooks/queries/index.js +15 -15
  250. package/esm/auth/hooks/query-keys.d.ts +102 -102
  251. package/esm/auth/hooks/query-keys.js +58 -58
  252. package/esm/auth/orm/index.d.ts +103 -103
  253. package/esm/auth/orm/index.js +14 -14
  254. package/esm/auth/orm/input-types.d.ts +2102 -2109
  255. package/esm/auth/orm/input-types.js +5 -5
  256. package/esm/auth/orm/models/index.d.ts +7 -7
  257. package/esm/auth/orm/models/index.js +7 -7
  258. package/esm/auth/orm/mutation/index.d.ts +138 -138
  259. package/esm/auth/orm/mutation/index.js +168 -168
  260. package/esm/auth/orm/query/index.d.ts +10 -10
  261. package/esm/auth/orm/query/index.js +14 -14
  262. package/esm/auth/schema-types.d.ts +1602 -1605
  263. package/esm/auth/types.d.ts +86 -87
  264. package/esm/compute/hooks/index.d.ts +1 -1
  265. package/esm/compute/hooks/index.js +1 -1
  266. package/esm/compute/hooks/invalidation.d.ts +183 -183
  267. package/esm/compute/hooks/invalidation.js +392 -392
  268. package/esm/compute/hooks/mutation-keys.d.ts +388 -388
  269. package/esm/compute/hooks/mutation-keys.js +299 -299
  270. package/esm/compute/hooks/mutations/index.d.ts +97 -97
  271. package/esm/compute/hooks/mutations/index.js +97 -97
  272. package/esm/compute/hooks/mutations/useCreateFunctionInvocationMutation.d.ts +2 -2
  273. package/esm/compute/hooks/mutations/useCreateFunctionInvocationMutation.js +1 -1
  274. package/esm/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.d.ts +2 -2
  275. package/esm/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.js +1 -1
  276. package/esm/compute/hooks/mutations/useDeleteFunctionInvocationMutation.d.ts +2 -2
  277. package/esm/compute/hooks/mutations/useDeleteFunctionInvocationMutation.js +1 -1
  278. package/esm/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.d.ts +2 -2
  279. package/esm/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.js +1 -1
  280. package/esm/compute/hooks/mutations/useUpdateFunctionInvocationMutation.d.ts +2 -2
  281. package/esm/compute/hooks/mutations/useUpdateFunctionInvocationMutation.js +1 -1
  282. package/esm/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.d.ts +2 -2
  283. package/esm/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.js +1 -1
  284. package/esm/compute/hooks/queries/index.d.ts +59 -59
  285. package/esm/compute/hooks/queries/index.js +59 -59
  286. package/esm/compute/hooks/queries/useFunctionInvocationQuery.d.ts +4 -4
  287. package/esm/compute/hooks/queries/useFunctionInvocationQuery.js +1 -1
  288. package/esm/compute/hooks/queries/useFunctionInvocationsQuery.d.ts +4 -4
  289. package/esm/compute/hooks/queries/useFunctionInvocationsQuery.js +1 -1
  290. package/esm/compute/hooks/queries/usePlatformFunctionInvocationQuery.d.ts +4 -4
  291. package/esm/compute/hooks/queries/usePlatformFunctionInvocationQuery.js +1 -1
  292. package/esm/compute/hooks/queries/usePlatformFunctionInvocationsQuery.d.ts +4 -4
  293. package/esm/compute/hooks/queries/usePlatformFunctionInvocationsQuery.js +1 -1
  294. package/esm/compute/hooks/query-keys.d.ts +438 -438
  295. package/esm/compute/hooks/query-keys.js +255 -255
  296. package/esm/compute/orm/index.d.ts +110 -110
  297. package/esm/compute/orm/index.js +64 -64
  298. package/esm/compute/orm/input-types.d.ts +7256 -7037
  299. package/esm/compute/orm/input-types.js +15 -13
  300. package/esm/compute/orm/models/index.d.ts +32 -32
  301. package/esm/compute/orm/models/index.js +32 -32
  302. package/esm/compute/orm/mutation/index.d.ts +77 -77
  303. package/esm/compute/orm/mutation/index.js +96 -96
  304. package/esm/compute/schema-types.d.ts +4950 -4896
  305. package/esm/compute/types.d.ts +470 -468
  306. package/esm/config/hooks/index.d.ts +1 -1
  307. package/esm/config/hooks/index.js +1 -1
  308. package/esm/config/hooks/invalidation.d.ts +6 -6
  309. package/esm/config/hooks/invalidation.js +16 -16
  310. package/esm/config/hooks/mutation-keys.d.ts +24 -24
  311. package/esm/config/hooks/mutation-keys.js +25 -25
  312. package/esm/config/hooks/mutations/index.d.ts +9 -9
  313. package/esm/config/hooks/mutations/index.js +9 -9
  314. package/esm/config/hooks/queries/index.d.ts +2 -2
  315. package/esm/config/hooks/queries/index.js +2 -2
  316. package/esm/config/hooks/query-keys.d.ts +14 -14
  317. package/esm/config/hooks/query-keys.js +8 -8
  318. package/esm/config/orm/index.d.ts +30 -30
  319. package/esm/config/orm/index.js +2 -2
  320. package/esm/config/orm/input-types.d.ts +416 -416
  321. package/esm/config/orm/models/index.d.ts +1 -1
  322. package/esm/config/orm/models/index.js +1 -1
  323. package/esm/config/orm/mutation/index.d.ts +47 -47
  324. package/esm/config/orm/mutation/index.js +60 -60
  325. package/esm/config/schema-types.d.ts +519 -519
  326. package/esm/config/types.d.ts +35 -35
  327. package/esm/infra/hooks/index.d.ts +1 -1
  328. package/esm/infra/hooks/index.js +1 -1
  329. package/esm/infra/hooks/invalidation.d.ts +28 -28
  330. package/esm/infra/hooks/invalidation.js +66 -66
  331. package/esm/infra/hooks/mutation-keys.d.ts +58 -58
  332. package/esm/infra/hooks/mutation-keys.js +36 -36
  333. package/esm/infra/hooks/mutations/index.d.ts +16 -16
  334. package/esm/infra/hooks/mutations/index.js +16 -16
  335. package/esm/infra/hooks/queries/index.d.ts +10 -10
  336. package/esm/infra/hooks/queries/index.js +10 -10
  337. package/esm/infra/hooks/query-keys.d.ts +66 -66
  338. package/esm/infra/hooks/query-keys.js +38 -38
  339. package/esm/infra/orm/index.d.ts +15 -15
  340. package/esm/infra/orm/index.js +10 -10
  341. package/esm/infra/orm/input-types.d.ts +971 -971
  342. package/esm/infra/orm/models/index.d.ts +5 -5
  343. package/esm/infra/orm/models/index.js +5 -5
  344. package/esm/infra/orm/mutation/index.d.ts +9 -9
  345. package/esm/infra/orm/mutation/index.js +12 -12
  346. package/esm/infra/schema-types.d.ts +979 -979
  347. package/esm/infra/types.d.ts +72 -72
  348. package/esm/modules/hooks/index.d.ts +1 -1
  349. package/esm/modules/hooks/index.js +1 -1
  350. package/esm/modules/hooks/invalidation.d.ts +291 -291
  351. package/esm/modules/hooks/invalidation.js +563 -563
  352. package/esm/modules/hooks/mutation-keys.d.ts +602 -602
  353. package/esm/modules/hooks/mutation-keys.js +384 -384
  354. package/esm/modules/hooks/mutations/index.d.ts +164 -164
  355. package/esm/modules/hooks/mutations/index.js +164 -164
  356. package/esm/modules/hooks/queries/index.d.ts +106 -106
  357. package/esm/modules/hooks/queries/index.js +106 -106
  358. package/esm/modules/hooks/queries/useResolveBlueprintFieldQuery.d.ts +3 -3
  359. package/esm/modules/hooks/queries/useResolveBlueprintFieldQuery.js +2 -2
  360. package/esm/modules/hooks/queries/useResolveBlueprintTableQuery.d.ts +3 -3
  361. package/esm/modules/hooks/queries/useResolveBlueprintTableQuery.js +2 -2
  362. package/esm/modules/hooks/query-keys.d.ts +696 -696
  363. package/esm/modules/hooks/query-keys.js +399 -399
  364. package/esm/modules/orm/index.d.ts +126 -126
  365. package/esm/modules/orm/index.js +106 -106
  366. package/esm/modules/orm/input-types.d.ts +11482 -11468
  367. package/esm/modules/orm/input-types.js +1 -1
  368. package/esm/modules/orm/models/index.d.ts +53 -53
  369. package/esm/modules/orm/models/index.js +53 -53
  370. package/esm/modules/orm/mutation/index.d.ts +51 -51
  371. package/esm/modules/orm/mutation/index.js +42 -42
  372. package/esm/modules/orm/query/index.d.ts +3 -3
  373. package/esm/modules/orm/query/index.js +8 -8
  374. package/esm/modules/schema-types.d.ts +8363 -8355
  375. package/esm/modules/types.d.ts +1013 -1011
  376. package/esm/objects/hooks/index.d.ts +1 -1
  377. package/esm/objects/hooks/index.js +1 -1
  378. package/esm/objects/hooks/invalidation.d.ts +12 -12
  379. package/esm/objects/hooks/invalidation.js +33 -33
  380. package/esm/objects/hooks/mutation-keys.d.ts +26 -26
  381. package/esm/objects/hooks/mutation-keys.js +17 -17
  382. package/esm/objects/hooks/mutations/index.d.ts +7 -7
  383. package/esm/objects/hooks/mutations/index.js +7 -7
  384. package/esm/objects/hooks/queries/index.d.ts +4 -4
  385. package/esm/objects/hooks/queries/index.js +4 -4
  386. package/esm/objects/hooks/query-keys.d.ts +28 -28
  387. package/esm/objects/hooks/query-keys.js +16 -16
  388. package/esm/objects/orm/index.d.ts +9 -9
  389. package/esm/objects/orm/index.js +4 -4
  390. package/esm/objects/orm/input-types.d.ts +384 -384
  391. package/esm/objects/orm/models/index.d.ts +2 -2
  392. package/esm/objects/orm/models/index.js +2 -2
  393. package/esm/objects/orm/mutation/index.d.ts +9 -9
  394. package/esm/objects/orm/mutation/index.js +12 -12
  395. package/esm/objects/schema-types.d.ts +438 -438
  396. package/esm/objects/types.d.ts +23 -23
  397. package/esm/usage/hooks/index.d.ts +1 -1
  398. package/esm/usage/hooks/index.js +1 -1
  399. package/esm/usage/hooks/invalidation.d.ts +67 -67
  400. package/esm/usage/hooks/invalidation.js +140 -140
  401. package/esm/usage/hooks/mutation-keys.d.ts +136 -136
  402. package/esm/usage/hooks/mutation-keys.js +82 -82
  403. package/esm/usage/hooks/mutations/index.d.ts +37 -37
  404. package/esm/usage/hooks/mutations/index.js +37 -37
  405. package/esm/usage/hooks/queries/index.d.ts +24 -24
  406. package/esm/usage/hooks/queries/index.js +24 -24
  407. package/esm/usage/hooks/query-keys.d.ts +158 -158
  408. package/esm/usage/hooks/query-keys.js +91 -91
  409. package/esm/usage/orm/index.d.ts +29 -29
  410. package/esm/usage/orm/index.js +24 -24
  411. package/esm/usage/orm/input-types.d.ts +2049 -2049
  412. package/esm/usage/orm/input-types.js +5 -5
  413. package/esm/usage/orm/models/index.d.ts +12 -12
  414. package/esm/usage/orm/models/index.js +12 -12
  415. package/esm/usage/orm/mutation/index.d.ts +16 -16
  416. package/esm/usage/orm/mutation/index.js +12 -12
  417. package/esm/usage/schema-types.d.ts +1591 -1591
  418. package/esm/usage/types.d.ts +99 -99
  419. package/infra/hooks/index.d.ts +1 -1
  420. package/infra/hooks/index.js +1 -1
  421. package/infra/hooks/invalidation.d.ts +28 -28
  422. package/infra/hooks/invalidation.js +65 -65
  423. package/infra/hooks/mutation-keys.d.ts +58 -58
  424. package/infra/hooks/mutation-keys.js +37 -37
  425. package/infra/hooks/mutations/index.d.ts +16 -16
  426. package/infra/hooks/mutations/index.js +16 -16
  427. package/infra/hooks/queries/index.d.ts +10 -10
  428. package/infra/hooks/queries/index.js +10 -10
  429. package/infra/hooks/query-keys.d.ts +66 -66
  430. package/infra/hooks/query-keys.js +39 -39
  431. package/infra/orm/index.d.ts +15 -15
  432. package/infra/orm/index.js +10 -10
  433. package/infra/orm/input-types.d.ts +971 -971
  434. package/infra/orm/models/index.d.ts +5 -5
  435. package/infra/orm/models/index.js +11 -11
  436. package/infra/orm/mutation/index.d.ts +9 -9
  437. package/infra/orm/mutation/index.js +12 -12
  438. package/infra/schema-types.d.ts +979 -979
  439. package/infra/types.d.ts +72 -72
  440. package/modules/hooks/index.d.ts +1 -1
  441. package/modules/hooks/index.js +1 -1
  442. package/modules/hooks/invalidation.d.ts +291 -291
  443. package/modules/hooks/invalidation.js +562 -562
  444. package/modules/hooks/mutation-keys.d.ts +602 -602
  445. package/modules/hooks/mutation-keys.js +386 -386
  446. package/modules/hooks/mutations/index.d.ts +164 -164
  447. package/modules/hooks/mutations/index.js +164 -164
  448. package/modules/hooks/queries/index.d.ts +106 -106
  449. package/modules/hooks/queries/index.js +106 -106
  450. package/modules/hooks/queries/useResolveBlueprintFieldQuery.d.ts +3 -3
  451. package/modules/hooks/queries/useResolveBlueprintFieldQuery.js +2 -2
  452. package/modules/hooks/queries/useResolveBlueprintTableQuery.d.ts +3 -3
  453. package/modules/hooks/queries/useResolveBlueprintTableQuery.js +2 -2
  454. package/modules/hooks/query-keys.d.ts +696 -696
  455. package/modules/hooks/query-keys.js +401 -401
  456. package/modules/orm/index.d.ts +126 -126
  457. package/modules/orm/index.js +106 -106
  458. package/modules/orm/input-types.d.ts +11482 -11468
  459. package/modules/orm/input-types.js +1 -1
  460. package/modules/orm/models/index.d.ts +53 -53
  461. package/modules/orm/models/index.js +108 -108
  462. package/modules/orm/mutation/index.d.ts +51 -51
  463. package/modules/orm/mutation/index.js +42 -42
  464. package/modules/orm/query/index.d.ts +3 -3
  465. package/modules/orm/query/index.js +8 -8
  466. package/modules/schema-types.d.ts +8363 -8355
  467. package/modules/types.d.ts +1013 -1011
  468. package/objects/hooks/index.d.ts +1 -1
  469. package/objects/hooks/index.js +1 -1
  470. package/objects/hooks/invalidation.d.ts +12 -12
  471. package/objects/hooks/invalidation.js +32 -32
  472. package/objects/hooks/mutation-keys.d.ts +26 -26
  473. package/objects/hooks/mutation-keys.js +18 -18
  474. package/objects/hooks/mutations/index.d.ts +7 -7
  475. package/objects/hooks/mutations/index.js +7 -7
  476. package/objects/hooks/queries/index.d.ts +4 -4
  477. package/objects/hooks/queries/index.js +4 -4
  478. package/objects/hooks/query-keys.d.ts +28 -28
  479. package/objects/hooks/query-keys.js +17 -17
  480. package/objects/orm/index.d.ts +9 -9
  481. package/objects/orm/index.js +4 -4
  482. package/objects/orm/input-types.d.ts +384 -384
  483. package/objects/orm/models/index.d.ts +2 -2
  484. package/objects/orm/models/index.js +5 -5
  485. package/objects/orm/mutation/index.d.ts +9 -9
  486. package/objects/orm/mutation/index.js +12 -12
  487. package/objects/schema-types.d.ts +438 -438
  488. package/objects/types.d.ts +23 -23
  489. package/package.json +4 -4
  490. package/usage/hooks/index.d.ts +1 -1
  491. package/usage/hooks/index.js +1 -1
  492. package/usage/hooks/invalidation.d.ts +67 -67
  493. package/usage/hooks/invalidation.js +139 -139
  494. package/usage/hooks/mutation-keys.d.ts +136 -136
  495. package/usage/hooks/mutation-keys.js +83 -83
  496. package/usage/hooks/mutations/index.d.ts +37 -37
  497. package/usage/hooks/mutations/index.js +37 -37
  498. package/usage/hooks/queries/index.d.ts +24 -24
  499. package/usage/hooks/queries/index.js +24 -24
  500. package/usage/hooks/query-keys.d.ts +158 -158
  501. package/usage/hooks/query-keys.js +92 -92
  502. package/usage/orm/index.d.ts +29 -29
  503. package/usage/orm/index.js +24 -24
  504. package/usage/orm/input-types.d.ts +2049 -2049
  505. package/usage/orm/input-types.js +5 -5
  506. package/usage/orm/models/index.d.ts +12 -12
  507. package/usage/orm/models/index.js +25 -25
  508. package/usage/orm/mutation/index.d.ts +16 -16
  509. package/usage/orm/mutation/index.js +12 -12
  510. package/usage/schema-types.d.ts +1591 -1591
  511. package/usage/types.d.ts +99 -99
@@ -229,236 +229,236 @@ export interface UUIDListFilter {
229
229
  anyGreaterThan?: string;
230
230
  anyGreaterThanOrEqualTo?: string;
231
231
  }
232
- /** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */
233
- export interface AgentPlan {
234
- id: string;
232
+ /** Agent instance registry (human-managed or ephemeral sub-agents) */
233
+ export interface Agent {
234
+ /** Per-instance config overrides (model, temperature, tools) */
235
+ config?: Record<string, unknown> | null;
235
236
  createdAt?: string | null;
236
- updatedAt?: string | null;
237
- /** User who owns this plan */
238
- ownerId?: string | null;
239
- /** Foreign key to agent_thread */
240
- threadId?: string | null;
241
237
  /** Database that owns this resource (database-scoped isolation) */
242
238
  databaseId?: string | null;
243
- /** Human-readable plan name */
244
- title?: string | null;
245
- /** Overall goal or context for this plan */
246
- description?: string | null;
247
- /** Plan lifecycle: draft, active, completed, failed, cancelled */
248
- status?: string | null;
249
- }
250
- /** Agent instance registry (human-managed or ephemeral sub-agents) */
251
- export interface Agent {
252
239
  id: string;
253
- createdAt?: string | null;
254
- updatedAt?: string | null;
240
+ /** If true, agent is deleted when its spawning thread is deleted */
241
+ isEphemeral?: boolean | null;
242
+ /** Display name for this agent instance */
243
+ name?: string | null;
255
244
  /** Human who owns/manages this agent */
256
245
  ownerId?: string | null;
257
- /** Database that owns this resource (database-scoped isolation) */
258
- databaseId?: string | null;
259
- /** Persona template this agent was created from */
260
- personaId?: string | null;
261
246
  /** Parent agent (for sub-agent delegation hierarchy) */
262
247
  parentId?: string | null;
263
- /** Display name for this agent instance */
264
- name?: string | null;
265
- /** System prompt override (NULL = inherit from persona) */
266
- systemPrompt?: string | null;
267
- /** Per-instance config overrides (model, temperature, tools) */
268
- config?: Record<string, unknown> | null;
248
+ /** Persona template this agent was created from */
249
+ personaId?: string | null;
269
250
  /** Agent lifecycle status: active, paused, terminated */
270
251
  status?: string | null;
271
- /** If true, agent is deleted when its spawning thread is deleted */
272
- isEphemeral?: boolean | null;
273
- }
274
- /** Top-level AI/LLM conversation thread */
275
- export interface AgentThread {
276
- id: string;
277
- createdAt?: string | null;
278
- updatedAt?: string | null;
279
- /** User who owns this thread */
280
- ownerId?: string | null;
281
- /** Database that owns this resource (database-scoped isolation) */
282
- databaseId?: string | null;
283
- /** Current status of this thread */
284
- status?: string | null;
285
- /** Whether this record has been archived by the user */
286
- isArchived?: boolean | null;
287
- /** Timestamp when this record was archived, NULL if active */
288
- archivedAt?: string | null;
289
- /** Human-readable conversation title */
290
- title?: string | null;
291
- /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */
292
- mode?: string | null;
293
- /** LLM model id this thread is bound to */
294
- model?: string | null;
295
- /** System prompt active for this thread */
252
+ /** System prompt override (NULL = inherit from persona) */
296
253
  systemPrompt?: string | null;
297
- /** User-defined labels for organizing and filtering threads */
298
- tags?: string[] | null;
299
- /** Optional FK to a shared prompt template */
300
- promptTemplateId?: string | null;
301
- /** Agent instance assigned to this thread */
302
- agentId?: string | null;
303
- /** Parent thread that spawned this sub-conversation */
304
- parentThreadId?: string | null;
254
+ updatedAt?: string | null;
305
255
  }
306
256
  /** Message within an agent thread with TextPart/ToolPart jsonb parts */
307
257
  export interface AgentMessage {
308
- id: string;
309
- createdAt?: string | null;
310
- updatedAt?: string | null;
311
258
  /** User who authored this message */
312
259
  actorId?: string | null;
260
+ /** Agent that authored this message (NULL for human messages) */
261
+ agentId?: string | null;
262
+ /** Who authored this message: user or assistant */
263
+ authorRole?: string | null;
264
+ createdAt?: string | null;
265
+ /** Database that owns this resource (database-scoped isolation) */
266
+ databaseId?: string | null;
267
+ id: string;
268
+ /** LLM model that generated this response */
269
+ model?: string | null;
313
270
  /** Message content: TextPart and ToolPart array */
314
271
  parts?: Record<string, unknown> | null;
315
272
  /** Foreign key to agent_thread */
316
273
  threadId?: string | null;
274
+ updatedAt?: string | null;
275
+ }
276
+ /** Agent persona templates (role, system prompt, default skills/knowledge) */
277
+ export interface AgentPersona {
278
+ /** Model preferences, temperature, tool access, constraints */
279
+ config?: Record<string, unknown> | null;
280
+ createdAt?: string | null;
281
+ createdBy?: string | null;
317
282
  /** Database that owns this resource (database-scoped isolation) */
318
283
  databaseId?: string | null;
319
- /** Who authored this message: user or assistant */
320
- authorRole?: string | null;
321
- /** LLM model that generated this response */
322
- model?: string | null;
323
- /** Agent that authored this message (NULL for human messages) */
324
- agentId?: string | null;
325
- }
326
- /** Task within a plan, with ordering and optional approval gates */
327
- export interface AgentTask {
284
+ /** Brief description of this persona role */
285
+ description?: string | null;
328
286
  id: string;
329
- createdAt?: string | null;
287
+ /** Whether this persona is available for use */
288
+ isActive?: boolean | null;
289
+ /** Display name for this persona */
290
+ name?: string | null;
291
+ /** Slugs of agent_resource entries to link when spawning */
292
+ resources?: string[] | null;
293
+ /** Unique human-readable identifier for this persona */
294
+ slug?: string | null;
295
+ /** Default system prompt for agents using this persona */
296
+ systemPrompt?: string | null;
330
297
  updatedAt?: string | null;
331
- /** User who authored this task */
332
- actorId?: string | null;
333
- /** Current status of this task */
334
- status?: string | null;
335
- /** Foreign key to agent_plan */
336
- planId?: string | null;
298
+ updatedBy?: string | null;
299
+ }
300
+ /** Workflow plan attached to an agent thread with ordered tasks and optional approval gates */
301
+ export interface AgentPlan {
302
+ createdAt?: string | null;
337
303
  /** Database that owns this resource (database-scoped isolation) */
338
304
  databaseId?: string | null;
339
- /** Natural-language description of the work to do */
305
+ /** Overall goal or context for this plan */
340
306
  description?: string | null;
341
- /** Who created the task: agent or user */
342
- source?: string | null;
343
- /** Error message captured when the task failed */
344
- error?: string | null;
345
- /** Position within the plan (for ordered task lists) */
346
- orderIndex?: number | null;
347
- /** Whether this task is an approval gate requiring human decision */
348
- requiresApproval?: boolean | null;
349
- /** Approval decision: pending, approved, rejected (NULL if not an approval task) */
350
- approvalStatus?: string | null;
351
- /** User who approved or rejected this task */
352
- approvedBy?: string | null;
353
- /** Timestamp of the approval or rejection decision */
354
- approvedAt?: string | null;
355
- /** Reviewer feedback or reason for the decision */
356
- approvalFeedback?: string | null;
307
+ id: string;
308
+ /** User who owns this plan */
309
+ ownerId?: string | null;
310
+ /** Plan lifecycle: draft, active, completed, failed, cancelled */
311
+ status?: string | null;
312
+ /** Foreign key to agent_thread */
313
+ threadId?: string | null;
314
+ /** Human-readable plan name */
315
+ title?: string | null;
316
+ updatedAt?: string | null;
357
317
  }
358
318
  /** Shared system prompt templates for agent conversations */
359
319
  export interface AgentPrompt {
360
- id: string;
320
+ /** The system prompt template content */
321
+ content?: string | null;
361
322
  createdAt?: string | null;
362
- updatedAt?: string | null;
363
323
  createdBy?: string | null;
364
- updatedBy?: string | null;
365
324
  /** Database that owns this resource (database-scoped isolation) */
366
325
  databaseId?: string | null;
367
- /** Unique name for lookup (e.g. default, code-review, sales-assistant) */
368
- name?: string | null;
369
- /** The system prompt template content */
370
- content?: string | null;
371
326
  /** What this prompt template is for */
372
327
  description?: string | null;
328
+ id: string;
373
329
  /** Whether this is the default prompt for the entity/app */
374
330
  isDefault?: boolean | null;
375
331
  /** Variables, tags, category metadata */
376
332
  metadata?: Record<string, unknown> | null;
333
+ /** Unique name for lookup (e.g. default, code-review, sales-assistant) */
334
+ name?: string | null;
335
+ updatedAt?: string | null;
336
+ updatedBy?: string | null;
377
337
  }
378
338
  export interface AgentResourceChunk {
379
- id: string;
380
339
  agentResourceId?: string | null;
381
340
  body?: string | null;
382
341
  chunkIndex?: number | null;
383
- embedding?: number[] | null;
384
- metadata?: Record<string, unknown> | null;
385
342
  createdAt?: string | null;
386
- updatedAt?: string | null;
343
+ embedding?: number[] | null;
387
344
  /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */
388
345
  embeddingVectorDistance?: number | null;
346
+ id: string;
347
+ metadata?: Record<string, unknown> | null;
389
348
  /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
390
349
  searchScore?: number | null;
391
- }
392
- /** Agent persona templates (role, system prompt, default skills/knowledge) */
393
- export interface AgentPersona {
394
- id: string;
395
- createdAt?: string | null;
396
350
  updatedAt?: string | null;
397
- createdBy?: string | null;
398
- updatedBy?: string | null;
399
- /** Database that owns this resource (database-scoped isolation) */
400
- databaseId?: string | null;
401
- /** Unique human-readable identifier for this persona */
402
- slug?: string | null;
403
- /** Display name for this persona */
404
- name?: string | null;
405
- /** Brief description of this persona role */
406
- description?: string | null;
407
- /** Default system prompt for agents using this persona */
408
- systemPrompt?: string | null;
409
- /** Slugs of agent_resource entries to link when spawning */
410
- resources?: string[] | null;
411
- /** Model preferences, temperature, tool access, constraints */
412
- config?: Record<string, unknown> | null;
413
- /** Whether this persona is available for use */
414
- isActive?: boolean | null;
415
351
  }
416
352
  /** Unified skills and knowledge resources for agent retrieval */
417
353
  export interface AgentResource {
418
- id: string;
354
+ /** Timestamp when this record was archived, NULL if active */
355
+ archivedAt?: string | null;
356
+ /** Full content (instructions for skills, reference text for knowledge) */
357
+ body?: string | null;
358
+ /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */
359
+ bodyTrgmSimilarity?: number | null;
419
360
  createdAt?: string | null;
420
- updatedAt?: string | null;
421
361
  createdBy?: string | null;
422
- updatedBy?: string | null;
423
362
  /** Database that owns this resource (database-scoped isolation) */
424
363
  databaseId?: string | null;
425
- /** Unique human-readable identifier for portable references */
426
- slug?: string | null;
427
- /** Resource type: skill, knowledge, or convention */
428
- kind?: string | null;
429
- /** Resource name or title */
430
- title?: string | null;
431
364
  /** Brief description of this resource */
432
365
  description?: string | null;
433
- /** Full content (instructions for skills, reference text for knowledge) */
434
- body?: string | null;
435
- /** Keywords for deterministic retrieval routing */
436
- keywords?: string[] | null;
366
+ /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */
367
+ descriptionTrgmSimilarity?: number | null;
368
+ embedding?: number[] | null;
369
+ embeddingUpdatedAt?: string | null;
370
+ /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */
371
+ embeddingVectorDistance?: number | null;
372
+ id: string;
437
373
  /** Whether this resource is active and retrievable */
438
374
  isActive?: boolean | null;
439
- /** Structured metadata: category, version, author, custom attributes */
440
- metadata?: Record<string, unknown> | null;
441
375
  /** Whether this record has been archived by the user */
442
376
  isArchived?: boolean | null;
443
- /** Timestamp when this record was archived, NULL if active */
444
- archivedAt?: string | null;
377
+ /** Keywords for deterministic retrieval routing */
378
+ keywords?: string[] | null;
379
+ /** Resource type: skill, knowledge, or convention */
380
+ kind?: string | null;
381
+ /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */
382
+ kindTrgmSimilarity?: number | null;
383
+ /** Structured metadata: category, version, author, custom attributes */
384
+ metadata?: Record<string, unknown> | null;
445
385
  search?: string | null;
446
- embedding?: number[] | null;
447
- embeddingUpdatedAt?: string | null;
386
+ /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
387
+ searchScore?: number | null;
448
388
  /** TSV rank when searching `search`. Returns null when no tsv search filter is active. */
449
389
  searchTsvRank?: number | null;
450
- /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */
451
- embeddingVectorDistance?: number | null;
452
- /** TRGM similarity when searching `kind`. Returns null when no trgm search filter is active. */
453
- kindTrgmSimilarity?: number | null;
390
+ /** Unique human-readable identifier for portable references */
391
+ slug?: string | null;
392
+ /** Resource name or title */
393
+ title?: string | null;
454
394
  /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */
455
395
  titleTrgmSimilarity?: number | null;
456
- /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */
457
- descriptionTrgmSimilarity?: number | null;
458
- /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */
459
- bodyTrgmSimilarity?: number | null;
460
- /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
461
- searchScore?: number | null;
396
+ updatedAt?: string | null;
397
+ updatedBy?: string | null;
398
+ }
399
+ /** Task within a plan, with ordering and optional approval gates */
400
+ export interface AgentTask {
401
+ /** User who authored this task */
402
+ actorId?: string | null;
403
+ /** Reviewer feedback or reason for the decision */
404
+ approvalFeedback?: string | null;
405
+ /** Approval decision: pending, approved, rejected (NULL if not an approval task) */
406
+ approvalStatus?: string | null;
407
+ /** Timestamp of the approval or rejection decision */
408
+ approvedAt?: string | null;
409
+ /** User who approved or rejected this task */
410
+ approvedBy?: string | null;
411
+ createdAt?: string | null;
412
+ /** Database that owns this resource (database-scoped isolation) */
413
+ databaseId?: string | null;
414
+ /** Natural-language description of the work to do */
415
+ description?: string | null;
416
+ /** Error message captured when the task failed */
417
+ error?: string | null;
418
+ id: string;
419
+ /** Position within the plan (for ordered task lists) */
420
+ orderIndex?: number | null;
421
+ /** Foreign key to agent_plan */
422
+ planId?: string | null;
423
+ /** Whether this task is an approval gate requiring human decision */
424
+ requiresApproval?: boolean | null;
425
+ /** Who created the task: agent or user */
426
+ source?: string | null;
427
+ /** Current status of this task */
428
+ status?: string | null;
429
+ updatedAt?: string | null;
430
+ }
431
+ /** Top-level AI/LLM conversation thread */
432
+ export interface AgentThread {
433
+ /** Agent instance assigned to this thread */
434
+ agentId?: string | null;
435
+ /** Timestamp when this record was archived, NULL if active */
436
+ archivedAt?: string | null;
437
+ createdAt?: string | null;
438
+ /** Database that owns this resource (database-scoped isolation) */
439
+ databaseId?: string | null;
440
+ id: string;
441
+ /** Whether this record has been archived by the user */
442
+ isArchived?: boolean | null;
443
+ /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */
444
+ mode?: string | null;
445
+ /** LLM model id this thread is bound to */
446
+ model?: string | null;
447
+ /** User who owns this thread */
448
+ ownerId?: string | null;
449
+ /** Parent thread that spawned this sub-conversation */
450
+ parentThreadId?: string | null;
451
+ /** Optional FK to a shared prompt template */
452
+ promptTemplateId?: string | null;
453
+ /** Current status of this thread */
454
+ status?: string | null;
455
+ /** System prompt active for this thread */
456
+ systemPrompt?: string | null;
457
+ /** User-defined labels for organizing and filtering threads */
458
+ tags?: string[] | null;
459
+ /** Human-readable conversation title */
460
+ title?: string | null;
461
+ updatedAt?: string | null;
462
462
  }
463
463
  export interface ConnectionResult<T> {
464
464
  nodes: T[];
@@ -471,166 +471,101 @@ export interface PageInfo {
471
471
  startCursor?: string | null;
472
472
  endCursor?: string | null;
473
473
  }
474
- export interface AgentPlanRelations {
475
- thread?: AgentThread | null;
476
- agentTasksByPlanId?: ConnectionResult<AgentTask>;
477
- }
478
474
  export interface AgentRelations {
479
475
  parent?: Agent | null;
480
476
  persona?: AgentPersona | null;
481
- agentThreads?: ConnectionResult<AgentThread>;
482
477
  agentMessages?: ConnectionResult<AgentMessage>;
478
+ agentThreads?: ConnectionResult<AgentThread>;
483
479
  childAgents?: ConnectionResult<Agent>;
484
480
  }
485
- export interface AgentThreadRelations {
486
- agent?: Agent | null;
487
- parentThread?: AgentThread | null;
488
- promptTemplate?: AgentPrompt | null;
489
- agentThreadsByParentThreadId?: ConnectionResult<AgentThread>;
490
- agentMessagesByThreadId?: ConnectionResult<AgentMessage>;
491
- agentPlansByThreadId?: ConnectionResult<AgentPlan>;
492
- }
493
481
  export interface AgentMessageRelations {
494
482
  agent?: Agent | null;
495
483
  thread?: AgentThread | null;
496
484
  }
497
- export interface AgentTaskRelations {
498
- plan?: AgentPlan | null;
485
+ export interface AgentPersonaRelations {
486
+ agentsByPersonaId?: ConnectionResult<Agent>;
487
+ }
488
+ export interface AgentPlanRelations {
489
+ thread?: AgentThread | null;
490
+ agentTasksByPlanId?: ConnectionResult<AgentTask>;
499
491
  }
500
492
  export interface AgentPromptRelations {
501
493
  }
502
494
  export interface AgentResourceChunkRelations {
503
495
  agentResource?: AgentResource | null;
504
496
  }
505
- export interface AgentPersonaRelations {
506
- agentsByPersonaId?: ConnectionResult<Agent>;
507
- }
508
497
  export interface AgentResourceRelations {
509
498
  agentResourceChunks?: ConnectionResult<AgentResourceChunk>;
510
499
  }
511
- export type AgentPlanWithRelations = AgentPlan & AgentPlanRelations;
500
+ export interface AgentTaskRelations {
501
+ plan?: AgentPlan | null;
502
+ }
503
+ export interface AgentThreadRelations {
504
+ agent?: Agent | null;
505
+ parentThread?: AgentThread | null;
506
+ promptTemplate?: AgentPrompt | null;
507
+ agentMessagesByThreadId?: ConnectionResult<AgentMessage>;
508
+ agentPlansByThreadId?: ConnectionResult<AgentPlan>;
509
+ agentThreadsByParentThreadId?: ConnectionResult<AgentThread>;
510
+ }
512
511
  export type AgentWithRelations = Agent & AgentRelations;
513
- export type AgentThreadWithRelations = AgentThread & AgentThreadRelations;
514
512
  export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations;
515
- export type AgentTaskWithRelations = AgentTask & AgentTaskRelations;
513
+ export type AgentPersonaWithRelations = AgentPersona & AgentPersonaRelations;
514
+ export type AgentPlanWithRelations = AgentPlan & AgentPlanRelations;
516
515
  export type AgentPromptWithRelations = AgentPrompt & AgentPromptRelations;
517
516
  export type AgentResourceChunkWithRelations = AgentResourceChunk & AgentResourceChunkRelations;
518
- export type AgentPersonaWithRelations = AgentPersona & AgentPersonaRelations;
519
517
  export type AgentResourceWithRelations = AgentResource & AgentResourceRelations;
520
- export type AgentPlanSelect = {
521
- id?: boolean;
518
+ export type AgentTaskWithRelations = AgentTask & AgentTaskRelations;
519
+ export type AgentThreadWithRelations = AgentThread & AgentThreadRelations;
520
+ export type AgentSelect = {
521
+ config?: boolean;
522
522
  createdAt?: boolean;
523
- updatedAt?: boolean;
524
- ownerId?: boolean;
525
- threadId?: boolean;
526
523
  databaseId?: boolean;
527
- title?: boolean;
528
- description?: boolean;
529
- status?: boolean;
530
- thread?: {
531
- select: AgentThreadSelect;
532
- };
533
- agentTasksByPlanId?: {
534
- select: AgentTaskSelect;
535
- first?: number;
536
- filter?: AgentTaskFilter;
537
- orderBy?: AgentTaskOrderBy[];
538
- };
539
- };
540
- export type AgentSelect = {
541
524
  id?: boolean;
542
- createdAt?: boolean;
543
- updatedAt?: boolean;
525
+ isEphemeral?: boolean;
526
+ name?: boolean;
544
527
  ownerId?: boolean;
545
- databaseId?: boolean;
546
- personaId?: boolean;
547
528
  parentId?: boolean;
548
- name?: boolean;
549
- systemPrompt?: boolean;
550
- config?: boolean;
529
+ personaId?: boolean;
551
530
  status?: boolean;
552
- isEphemeral?: boolean;
531
+ systemPrompt?: boolean;
532
+ updatedAt?: boolean;
553
533
  parent?: {
554
534
  select: AgentSelect;
555
535
  };
556
536
  persona?: {
557
537
  select: AgentPersonaSelect;
558
538
  };
559
- agentThreads?: {
560
- select: AgentThreadSelect;
561
- first?: number;
562
- filter?: AgentThreadFilter;
563
- orderBy?: AgentThreadOrderBy[];
564
- };
565
539
  agentMessages?: {
566
540
  select: AgentMessageSelect;
567
541
  first?: number;
568
542
  filter?: AgentMessageFilter;
569
543
  orderBy?: AgentMessageOrderBy[];
570
544
  };
571
- childAgents?: {
572
- select: AgentSelect;
573
- first?: number;
574
- filter?: AgentFilter;
575
- orderBy?: AgentOrderBy[];
576
- };
577
- };
578
- export type AgentThreadSelect = {
579
- id?: boolean;
580
- createdAt?: boolean;
581
- updatedAt?: boolean;
582
- ownerId?: boolean;
583
- databaseId?: boolean;
584
- status?: boolean;
585
- isArchived?: boolean;
586
- archivedAt?: boolean;
587
- title?: boolean;
588
- mode?: boolean;
589
- model?: boolean;
590
- systemPrompt?: boolean;
591
- tags?: boolean;
592
- promptTemplateId?: boolean;
593
- agentId?: boolean;
594
- parentThreadId?: boolean;
595
- agent?: {
596
- select: AgentSelect;
597
- };
598
- parentThread?: {
599
- select: AgentThreadSelect;
600
- };
601
- promptTemplate?: {
602
- select: AgentPromptSelect;
603
- };
604
- agentThreadsByParentThreadId?: {
545
+ agentThreads?: {
605
546
  select: AgentThreadSelect;
606
547
  first?: number;
607
548
  filter?: AgentThreadFilter;
608
549
  orderBy?: AgentThreadOrderBy[];
609
550
  };
610
- agentMessagesByThreadId?: {
611
- select: AgentMessageSelect;
612
- first?: number;
613
- filter?: AgentMessageFilter;
614
- orderBy?: AgentMessageOrderBy[];
615
- };
616
- agentPlansByThreadId?: {
617
- select: AgentPlanSelect;
551
+ childAgents?: {
552
+ select: AgentSelect;
618
553
  first?: number;
619
- filter?: AgentPlanFilter;
620
- orderBy?: AgentPlanOrderBy[];
554
+ filter?: AgentFilter;
555
+ orderBy?: AgentOrderBy[];
621
556
  };
622
557
  };
623
558
  export type AgentMessageSelect = {
624
- id?: boolean;
625
- createdAt?: boolean;
626
- updatedAt?: boolean;
627
559
  actorId?: boolean;
628
- parts?: boolean;
629
- threadId?: boolean;
630
- databaseId?: boolean;
560
+ agentId?: boolean;
631
561
  authorRole?: boolean;
562
+ createdAt?: boolean;
563
+ databaseId?: boolean;
564
+ id?: boolean;
632
565
  model?: boolean;
633
- agentId?: boolean;
566
+ parts?: boolean;
567
+ threadId?: boolean;
568
+ updatedAt?: boolean;
634
569
  agent?: {
635
570
  select: AgentSelect;
636
571
  };
@@ -638,103 +573,102 @@ export type AgentMessageSelect = {
638
573
  select: AgentThreadSelect;
639
574
  };
640
575
  };
641
- export type AgentTaskSelect = {
642
- id?: boolean;
576
+ export type AgentPersonaSelect = {
577
+ config?: boolean;
643
578
  createdAt?: boolean;
644
- updatedAt?: boolean;
645
- actorId?: boolean;
646
- status?: boolean;
647
- planId?: boolean;
579
+ createdBy?: boolean;
648
580
  databaseId?: boolean;
649
581
  description?: boolean;
650
- source?: boolean;
651
- error?: boolean;
652
- orderIndex?: boolean;
653
- requiresApproval?: boolean;
654
- approvalStatus?: boolean;
655
- approvedBy?: boolean;
656
- approvedAt?: boolean;
657
- approvalFeedback?: boolean;
658
- plan?: {
659
- select: AgentPlanSelect;
660
- };
661
- };
662
- export type AgentPromptSelect = {
663
582
  id?: boolean;
664
- createdAt?: boolean;
583
+ isActive?: boolean;
584
+ name?: boolean;
585
+ resources?: boolean;
586
+ slug?: boolean;
587
+ systemPrompt?: boolean;
665
588
  updatedAt?: boolean;
666
- createdBy?: boolean;
667
589
  updatedBy?: boolean;
590
+ agentsByPersonaId?: {
591
+ select: AgentSelect;
592
+ first?: number;
593
+ filter?: AgentFilter;
594
+ orderBy?: AgentOrderBy[];
595
+ };
596
+ };
597
+ export type AgentPlanSelect = {
598
+ createdAt?: boolean;
599
+ databaseId?: boolean;
600
+ description?: boolean;
601
+ id?: boolean;
602
+ ownerId?: boolean;
603
+ status?: boolean;
604
+ threadId?: boolean;
605
+ title?: boolean;
606
+ updatedAt?: boolean;
607
+ thread?: {
608
+ select: AgentThreadSelect;
609
+ };
610
+ agentTasksByPlanId?: {
611
+ select: AgentTaskSelect;
612
+ first?: number;
613
+ filter?: AgentTaskFilter;
614
+ orderBy?: AgentTaskOrderBy[];
615
+ };
616
+ };
617
+ export type AgentPromptSelect = {
618
+ content?: boolean;
619
+ createdAt?: boolean;
620
+ createdBy?: boolean;
668
621
  databaseId?: boolean;
669
- name?: boolean;
670
- content?: boolean;
671
622
  description?: boolean;
672
- isDefault?: boolean;
673
- metadata?: boolean;
674
- };
675
- export type AgentResourceChunkSelect = {
676
623
  id?: boolean;
624
+ isDefault?: boolean;
625
+ metadata?: boolean;
626
+ name?: boolean;
627
+ updatedAt?: boolean;
628
+ updatedBy?: boolean;
629
+ };
630
+ export type AgentResourceChunkSelect = {
677
631
  agentResourceId?: boolean;
678
632
  body?: boolean;
679
633
  chunkIndex?: boolean;
680
- embedding?: boolean;
681
- metadata?: boolean;
682
634
  createdAt?: boolean;
683
- updatedAt?: boolean;
635
+ embedding?: boolean;
684
636
  embeddingVectorDistance?: boolean;
637
+ id?: boolean;
638
+ metadata?: boolean;
685
639
  searchScore?: boolean;
640
+ updatedAt?: boolean;
686
641
  agentResource?: {
687
642
  select: AgentResourceSelect;
688
643
  };
689
644
  };
690
- export type AgentPersonaSelect = {
691
- id?: boolean;
692
- createdAt?: boolean;
693
- updatedAt?: boolean;
694
- createdBy?: boolean;
695
- updatedBy?: boolean;
696
- databaseId?: boolean;
697
- slug?: boolean;
698
- name?: boolean;
699
- description?: boolean;
700
- systemPrompt?: boolean;
701
- resources?: boolean;
702
- config?: boolean;
703
- isActive?: boolean;
704
- agentsByPersonaId?: {
705
- select: AgentSelect;
706
- first?: number;
707
- filter?: AgentFilter;
708
- orderBy?: AgentOrderBy[];
709
- };
710
- };
711
645
  export type AgentResourceSelect = {
712
- id?: boolean;
646
+ archivedAt?: boolean;
647
+ body?: boolean;
648
+ bodyTrgmSimilarity?: boolean;
713
649
  createdAt?: boolean;
714
- updatedAt?: boolean;
715
650
  createdBy?: boolean;
716
- updatedBy?: boolean;
717
651
  databaseId?: boolean;
718
- slug?: boolean;
719
- kind?: boolean;
720
- title?: boolean;
721
652
  description?: boolean;
722
- body?: boolean;
723
- keywords?: boolean;
724
- isActive?: boolean;
725
- metadata?: boolean;
726
- isArchived?: boolean;
727
- archivedAt?: boolean;
728
- search?: boolean;
653
+ descriptionTrgmSimilarity?: boolean;
729
654
  embedding?: boolean;
730
655
  embeddingUpdatedAt?: boolean;
731
- searchTsvRank?: boolean;
732
656
  embeddingVectorDistance?: boolean;
657
+ id?: boolean;
658
+ isActive?: boolean;
659
+ isArchived?: boolean;
660
+ keywords?: boolean;
661
+ kind?: boolean;
733
662
  kindTrgmSimilarity?: boolean;
734
- titleTrgmSimilarity?: boolean;
735
- descriptionTrgmSimilarity?: boolean;
736
- bodyTrgmSimilarity?: boolean;
663
+ metadata?: boolean;
664
+ search?: boolean;
737
665
  searchScore?: boolean;
666
+ searchTsvRank?: boolean;
667
+ slug?: boolean;
668
+ title?: boolean;
669
+ titleTrgmSimilarity?: boolean;
670
+ updatedAt?: boolean;
671
+ updatedBy?: boolean;
738
672
  agentResourceChunks?: {
739
673
  select: AgentResourceChunkSelect;
740
674
  first?: number;
@@ -742,387 +676,341 @@ export type AgentResourceSelect = {
742
676
  orderBy?: AgentResourceChunkOrderBy[];
743
677
  };
744
678
  };
745
- export interface AgentPlanFilter {
746
- /** Filter by the object’s `id` field. */
747
- id?: UUIDFilter;
679
+ export type AgentTaskSelect = {
680
+ actorId?: boolean;
681
+ approvalFeedback?: boolean;
682
+ approvalStatus?: boolean;
683
+ approvedAt?: boolean;
684
+ approvedBy?: boolean;
685
+ createdAt?: boolean;
686
+ databaseId?: boolean;
687
+ description?: boolean;
688
+ error?: boolean;
689
+ id?: boolean;
690
+ orderIndex?: boolean;
691
+ planId?: boolean;
692
+ requiresApproval?: boolean;
693
+ source?: boolean;
694
+ status?: boolean;
695
+ updatedAt?: boolean;
696
+ plan?: {
697
+ select: AgentPlanSelect;
698
+ };
699
+ };
700
+ export type AgentThreadSelect = {
701
+ agentId?: boolean;
702
+ archivedAt?: boolean;
703
+ createdAt?: boolean;
704
+ databaseId?: boolean;
705
+ id?: boolean;
706
+ isArchived?: boolean;
707
+ mode?: boolean;
708
+ model?: boolean;
709
+ ownerId?: boolean;
710
+ parentThreadId?: boolean;
711
+ promptTemplateId?: boolean;
712
+ status?: boolean;
713
+ systemPrompt?: boolean;
714
+ tags?: boolean;
715
+ title?: boolean;
716
+ updatedAt?: boolean;
717
+ agent?: {
718
+ select: AgentSelect;
719
+ };
720
+ parentThread?: {
721
+ select: AgentThreadSelect;
722
+ };
723
+ promptTemplate?: {
724
+ select: AgentPromptSelect;
725
+ };
726
+ agentMessagesByThreadId?: {
727
+ select: AgentMessageSelect;
728
+ first?: number;
729
+ filter?: AgentMessageFilter;
730
+ orderBy?: AgentMessageOrderBy[];
731
+ };
732
+ agentPlansByThreadId?: {
733
+ select: AgentPlanSelect;
734
+ first?: number;
735
+ filter?: AgentPlanFilter;
736
+ orderBy?: AgentPlanOrderBy[];
737
+ };
738
+ agentThreadsByParentThreadId?: {
739
+ select: AgentThreadSelect;
740
+ first?: number;
741
+ filter?: AgentThreadFilter;
742
+ orderBy?: AgentThreadOrderBy[];
743
+ };
744
+ };
745
+ export interface AgentFilter {
746
+ /** Filter by the object’s `agentMessages` relation. */
747
+ agentMessages?: AgentToManyAgentMessageFilter;
748
+ /** `agentMessages` exist. */
749
+ agentMessagesExist?: boolean;
750
+ /** Filter by the object’s `agentThreads` relation. */
751
+ agentThreads?: AgentToManyAgentThreadFilter;
752
+ /** `agentThreads` exist. */
753
+ agentThreadsExist?: boolean;
754
+ /** Checks for all expressions in this list. */
755
+ and?: AgentFilter[];
756
+ /** Filter by the object’s `childAgents` relation. */
757
+ childAgents?: AgentToManyAgentFilter;
758
+ /** `childAgents` exist. */
759
+ childAgentsExist?: boolean;
760
+ /** Filter by the object’s `config` field. */
761
+ config?: JSONFilter;
748
762
  /** Filter by the object’s `createdAt` field. */
749
763
  createdAt?: DatetimeFilter;
750
- /** Filter by the object’s `updatedAt` field. */
751
- updatedAt?: DatetimeFilter;
752
- /** Filter by the object’s `ownerId` field. */
753
- ownerId?: UUIDFilter;
754
- /** Filter by the object’s `threadId` field. */
755
- threadId?: UUIDFilter;
756
764
  /** Filter by the object’s `databaseId` field. */
757
765
  databaseId?: UUIDFilter;
758
- /** Filter by the object’s `title` field. */
759
- title?: StringFilter;
760
- /** Filter by the object’s `description` field. */
761
- description?: StringFilter;
762
- /** Filter by the object’s `status` field. */
763
- status?: StringFilter;
764
- /** Checks for all expressions in this list. */
765
- and?: AgentPlanFilter[];
766
- /** Checks for any expressions in this list. */
767
- or?: AgentPlanFilter[];
768
- /** Negates the expression. */
769
- not?: AgentPlanFilter;
770
- /** Filter by the object’s `thread` relation. */
771
- thread?: AgentThreadFilter;
772
- /** Filter by the object’s `agentTasksByPlanId` relation. */
773
- agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter;
774
- /** `agentTasksByPlanId` exist. */
775
- agentTasksByPlanIdExist?: boolean;
776
- }
777
- export interface AgentFilter {
778
766
  /** Filter by the object’s `id` field. */
779
767
  id?: UUIDFilter;
780
- /** Filter by the object’s `createdAt` field. */
781
- createdAt?: DatetimeFilter;
782
- /** Filter by the object’s `updatedAt` field. */
783
- updatedAt?: DatetimeFilter;
784
- /** Filter by the object’s `ownerId` field. */
785
- ownerId?: UUIDFilter;
786
- /** Filter by the object’s `databaseId` field. */
787
- databaseId?: UUIDFilter;
788
- /** Filter by the object’s `personaId` field. */
789
- personaId?: UUIDFilter;
790
- /** Filter by the object’s `parentId` field. */
791
- parentId?: UUIDFilter;
792
- /** Filter by the object’s `name` field. */
793
- name?: StringFilter;
794
- /** Filter by the object’s `systemPrompt` field. */
795
- systemPrompt?: StringFilter;
796
- /** Filter by the object’s `config` field. */
797
- config?: JSONFilter;
798
- /** Filter by the object’s `status` field. */
799
- status?: StringFilter;
800
768
  /** Filter by the object’s `isEphemeral` field. */
801
769
  isEphemeral?: BooleanFilter;
802
- /** Checks for all expressions in this list. */
803
- and?: AgentFilter[];
804
- /** Checks for any expressions in this list. */
805
- or?: AgentFilter[];
770
+ /** Filter by the object’s `name` field. */
771
+ name?: StringFilter;
806
772
  /** Negates the expression. */
807
773
  not?: AgentFilter;
774
+ /** Checks for any expressions in this list. */
775
+ or?: AgentFilter[];
776
+ /** Filter by the object’s `ownerId` field. */
777
+ ownerId?: UUIDFilter;
808
778
  /** Filter by the object’s `parent` relation. */
809
779
  parent?: AgentFilter;
810
780
  /** A related `parent` exists. */
811
781
  parentExists?: boolean;
782
+ /** Filter by the object’s `parentId` field. */
783
+ parentId?: UUIDFilter;
812
784
  /** Filter by the object’s `persona` relation. */
813
785
  persona?: AgentPersonaFilter;
814
786
  /** A related `persona` exists. */
815
787
  personaExists?: boolean;
816
- /** Filter by the object’s `agentThreads` relation. */
817
- agentThreads?: AgentToManyAgentThreadFilter;
818
- /** `agentThreads` exist. */
819
- agentThreadsExist?: boolean;
820
- /** Filter by the object’s `agentMessages` relation. */
821
- agentMessages?: AgentToManyAgentMessageFilter;
822
- /** `agentMessages` exist. */
823
- agentMessagesExist?: boolean;
824
- /** Filter by the object’s `childAgents` relation. */
825
- childAgents?: AgentToManyAgentFilter;
826
- /** `childAgents` exist. */
827
- childAgentsExist?: boolean;
788
+ /** Filter by the object’s `personaId` field. */
789
+ personaId?: UUIDFilter;
790
+ /** Filter by the object’s `status` field. */
791
+ status?: StringFilter;
792
+ /** Filter by the object’s `systemPrompt` field. */
793
+ systemPrompt?: StringFilter;
794
+ /** Filter by the object’s `updatedAt` field. */
795
+ updatedAt?: DatetimeFilter;
828
796
  }
829
- export interface AgentThreadFilter {
830
- /** Filter by the object’s `id` field. */
831
- id?: UUIDFilter;
832
- /** Filter by the object’s `createdAt` field. */
833
- createdAt?: DatetimeFilter;
834
- /** Filter by the object’s `updatedAt` field. */
835
- updatedAt?: DatetimeFilter;
836
- /** Filter by the object’s `ownerId` field. */
837
- ownerId?: UUIDFilter;
838
- /** Filter by the object’s `databaseId` field. */
839
- databaseId?: UUIDFilter;
840
- /** Filter by the object’s `status` field. */
841
- status?: StringFilter;
842
- /** Filter by the object’s `isArchived` field. */
843
- isArchived?: BooleanFilter;
844
- /** Filter by the object’s `archivedAt` field. */
845
- archivedAt?: DatetimeFilter;
846
- /** Filter by the object’s `title` field. */
847
- title?: StringFilter;
848
- /** Filter by the object’s `mode` field. */
849
- mode?: StringFilter;
850
- /** Filter by the object’s `model` field. */
851
- model?: StringFilter;
852
- /** Filter by the object’s `systemPrompt` field. */
853
- systemPrompt?: StringFilter;
854
- /** Filter by the object’s `tags` field. */
855
- tags?: StringListFilter;
856
- /** Filter by the object’s `promptTemplateId` field. */
857
- promptTemplateId?: UUIDFilter;
858
- /** Filter by the object’s `agentId` field. */
859
- agentId?: UUIDFilter;
860
- /** Filter by the object’s `parentThreadId` field. */
861
- parentThreadId?: UUIDFilter;
862
- /** Checks for all expressions in this list. */
863
- and?: AgentThreadFilter[];
864
- /** Checks for any expressions in this list. */
865
- or?: AgentThreadFilter[];
866
- /** Negates the expression. */
867
- not?: AgentThreadFilter;
797
+ export interface AgentMessageFilter {
798
+ /** Filter by the object’s `actorId` field. */
799
+ actorId?: UUIDFilter;
868
800
  /** Filter by the object’s `agent` relation. */
869
801
  agent?: AgentFilter;
870
802
  /** A related `agent` exists. */
871
803
  agentExists?: boolean;
872
- /** Filter by the object’s `parentThread` relation. */
873
- parentThread?: AgentThreadFilter;
874
- /** A related `parentThread` exists. */
875
- parentThreadExists?: boolean;
876
- /** Filter by the object’s `promptTemplate` relation. */
877
- promptTemplate?: AgentPromptFilter;
878
- /** A related `promptTemplate` exists. */
879
- promptTemplateExists?: boolean;
880
- /** Filter by the object’s `agentThreadsByParentThreadId` relation. */
881
- agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter;
882
- /** `agentThreadsByParentThreadId` exist. */
883
- agentThreadsByParentThreadIdExist?: boolean;
884
- /** Filter by the object’s `agentMessagesByThreadId` relation. */
885
- agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter;
886
- /** `agentMessagesByThreadId` exist. */
887
- agentMessagesByThreadIdExist?: boolean;
888
- /** Filter by the object’s `agentPlansByThreadId` relation. */
889
- agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter;
890
- /** `agentPlansByThreadId` exist. */
891
- agentPlansByThreadIdExist?: boolean;
892
- }
893
- export interface AgentMessageFilter {
894
- /** Filter by the object’s `id` field. */
895
- id?: UUIDFilter;
804
+ /** Filter by the object’s `agentId` field. */
805
+ agentId?: UUIDFilter;
806
+ /** Checks for all expressions in this list. */
807
+ and?: AgentMessageFilter[];
808
+ /** Filter by the object’s `authorRole` field. */
809
+ authorRole?: StringFilter;
896
810
  /** Filter by the object’s `createdAt` field. */
897
811
  createdAt?: DatetimeFilter;
898
- /** Filter by the object’s `updatedAt` field. */
899
- updatedAt?: DatetimeFilter;
900
- /** Filter by the object’s `actorId` field. */
901
- actorId?: UUIDFilter;
902
- /** Filter by the object’s `parts` field. */
903
- parts?: JSONFilter;
904
- /** Filter by the object’s `threadId` field. */
905
- threadId?: UUIDFilter;
906
812
  /** Filter by the object’s `databaseId` field. */
907
813
  databaseId?: UUIDFilter;
908
- /** Filter by the object’s `authorRole` field. */
909
- authorRole?: StringFilter;
814
+ /** Filter by the object’s `id` field. */
815
+ id?: UUIDFilter;
910
816
  /** Filter by the object’s `model` field. */
911
817
  model?: StringFilter;
912
- /** Filter by the object’s `agentId` field. */
913
- agentId?: UUIDFilter;
914
- /** Checks for all expressions in this list. */
915
- and?: AgentMessageFilter[];
916
- /** Checks for any expressions in this list. */
917
- or?: AgentMessageFilter[];
918
818
  /** Negates the expression. */
919
819
  not?: AgentMessageFilter;
920
- /** Filter by the object’s `agent` relation. */
921
- agent?: AgentFilter;
922
- /** A related `agent` exists. */
923
- agentExists?: boolean;
820
+ /** Checks for any expressions in this list. */
821
+ or?: AgentMessageFilter[];
822
+ /** Filter by the object’s `parts` field. */
823
+ parts?: JSONFilter;
924
824
  /** Filter by the object’s `thread` relation. */
925
825
  thread?: AgentThreadFilter;
826
+ /** Filter by the object’s `threadId` field. */
827
+ threadId?: UUIDFilter;
828
+ /** Filter by the object’s `updatedAt` field. */
829
+ updatedAt?: DatetimeFilter;
926
830
  }
927
- export interface AgentTaskFilter {
928
- /** Filter by the object’s `id` field. */
929
- id?: UUIDFilter;
831
+ export interface AgentPersonaFilter {
832
+ /** Filter by the object’s `agentsByPersonaId` relation. */
833
+ agentsByPersonaId?: AgentPersonaToManyAgentFilter;
834
+ /** `agentsByPersonaId` exist. */
835
+ agentsByPersonaIdExist?: boolean;
836
+ /** Checks for all expressions in this list. */
837
+ and?: AgentPersonaFilter[];
838
+ /** Filter by the object’s `config` field. */
839
+ config?: JSONFilter;
930
840
  /** Filter by the object’s `createdAt` field. */
931
841
  createdAt?: DatetimeFilter;
842
+ /** Filter by the object’s `createdBy` field. */
843
+ createdBy?: UUIDFilter;
844
+ /** Filter by the object’s `databaseId` field. */
845
+ databaseId?: UUIDFilter;
846
+ /** Filter by the object’s `description` field. */
847
+ description?: StringFilter;
848
+ /** Filter by the object’s `id` field. */
849
+ id?: UUIDFilter;
850
+ /** Filter by the object’s `isActive` field. */
851
+ isActive?: BooleanFilter;
852
+ /** Filter by the object’s `name` field. */
853
+ name?: StringFilter;
854
+ /** Negates the expression. */
855
+ not?: AgentPersonaFilter;
856
+ /** Checks for any expressions in this list. */
857
+ or?: AgentPersonaFilter[];
858
+ /** Filter by the object’s `resources` field. */
859
+ resources?: StringListFilter;
860
+ /** Filter by the object’s `slug` field. */
861
+ slug?: StringFilter;
862
+ /** Filter by the object’s `systemPrompt` field. */
863
+ systemPrompt?: StringFilter;
932
864
  /** Filter by the object’s `updatedAt` field. */
933
865
  updatedAt?: DatetimeFilter;
934
- /** Filter by the object’s `actorId` field. */
935
- actorId?: UUIDFilter;
936
- /** Filter by the object’s `status` field. */
937
- status?: StringFilter;
938
- /** Filter by the object’s `planId` field. */
939
- planId?: UUIDFilter;
866
+ /** Filter by the object’s `updatedBy` field. */
867
+ updatedBy?: UUIDFilter;
868
+ }
869
+ export interface AgentPlanFilter {
870
+ /** Filter by the object’s `agentTasksByPlanId` relation. */
871
+ agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter;
872
+ /** `agentTasksByPlanId` exist. */
873
+ agentTasksByPlanIdExist?: boolean;
874
+ /** Checks for all expressions in this list. */
875
+ and?: AgentPlanFilter[];
876
+ /** Filter by the object’s `createdAt` field. */
877
+ createdAt?: DatetimeFilter;
940
878
  /** Filter by the object’s `databaseId` field. */
941
879
  databaseId?: UUIDFilter;
942
880
  /** Filter by the object’s `description` field. */
943
881
  description?: StringFilter;
944
- /** Filter by the object’s `source` field. */
945
- source?: StringFilter;
946
- /** Filter by the object’s `error` field. */
947
- error?: StringFilter;
948
- /** Filter by the object’s `orderIndex` field. */
949
- orderIndex?: IntFilter;
950
- /** Filter by the object’s `requiresApproval` field. */
951
- requiresApproval?: BooleanFilter;
952
- /** Filter by the object’s `approvalStatus` field. */
953
- approvalStatus?: StringFilter;
954
- /** Filter by the object’s `approvedBy` field. */
955
- approvedBy?: UUIDFilter;
956
- /** Filter by the object’s `approvedAt` field. */
957
- approvedAt?: DatetimeFilter;
958
- /** Filter by the object’s `approvalFeedback` field. */
959
- approvalFeedback?: StringFilter;
960
- /** Checks for all expressions in this list. */
961
- and?: AgentTaskFilter[];
962
- /** Checks for any expressions in this list. */
963
- or?: AgentTaskFilter[];
882
+ /** Filter by the object’s `id` field. */
883
+ id?: UUIDFilter;
964
884
  /** Negates the expression. */
965
- not?: AgentTaskFilter;
966
- /** Filter by the object’s `plan` relation. */
967
- plan?: AgentPlanFilter;
885
+ not?: AgentPlanFilter;
886
+ /** Checks for any expressions in this list. */
887
+ or?: AgentPlanFilter[];
888
+ /** Filter by the object’s `ownerId` field. */
889
+ ownerId?: UUIDFilter;
890
+ /** Filter by the object’s `status` field. */
891
+ status?: StringFilter;
892
+ /** Filter by the object’s `thread` relation. */
893
+ thread?: AgentThreadFilter;
894
+ /** Filter by the object’s `threadId` field. */
895
+ threadId?: UUIDFilter;
896
+ /** Filter by the object’s `title` field. */
897
+ title?: StringFilter;
898
+ /** Filter by the object’s `updatedAt` field. */
899
+ updatedAt?: DatetimeFilter;
968
900
  }
969
901
  export interface AgentPromptFilter {
970
- /** Filter by the object’s `id` field. */
971
- id?: UUIDFilter;
902
+ /** Checks for all expressions in this list. */
903
+ and?: AgentPromptFilter[];
904
+ /** Filter by the object’s `content` field. */
905
+ content?: StringFilter;
972
906
  /** Filter by the object’s `createdAt` field. */
973
907
  createdAt?: DatetimeFilter;
974
- /** Filter by the object’s `updatedAt` field. */
975
- updatedAt?: DatetimeFilter;
976
908
  /** Filter by the object’s `createdBy` field. */
977
909
  createdBy?: UUIDFilter;
978
- /** Filter by the object’s `updatedBy` field. */
979
- updatedBy?: UUIDFilter;
980
910
  /** Filter by the object’s `databaseId` field. */
981
911
  databaseId?: UUIDFilter;
982
- /** Filter by the object’s `name` field. */
983
- name?: StringFilter;
984
- /** Filter by the object’s `content` field. */
985
- content?: StringFilter;
986
912
  /** Filter by the object’s `description` field. */
987
913
  description?: StringFilter;
914
+ /** Filter by the object’s `id` field. */
915
+ id?: UUIDFilter;
988
916
  /** Filter by the object’s `isDefault` field. */
989
917
  isDefault?: BooleanFilter;
990
918
  /** Filter by the object’s `metadata` field. */
991
919
  metadata?: JSONFilter;
992
- /** Checks for all expressions in this list. */
993
- and?: AgentPromptFilter[];
994
- /** Checks for any expressions in this list. */
995
- or?: AgentPromptFilter[];
920
+ /** Filter by the object’s `name` field. */
921
+ name?: StringFilter;
996
922
  /** Negates the expression. */
997
923
  not?: AgentPromptFilter;
924
+ /** Checks for any expressions in this list. */
925
+ or?: AgentPromptFilter[];
926
+ /** Filter by the object’s `updatedAt` field. */
927
+ updatedAt?: DatetimeFilter;
928
+ /** Filter by the object’s `updatedBy` field. */
929
+ updatedBy?: UUIDFilter;
998
930
  }
999
931
  export interface AgentResourceChunkFilter {
1000
- /** Filter by the object’s `id` field. */
1001
- id?: UUIDFilter;
932
+ /** Filter by the object’s `agentResource` relation. */
933
+ agentResource?: AgentResourceFilter;
1002
934
  /** Filter by the object’s `agentResourceId` field. */
1003
935
  agentResourceId?: UUIDFilter;
936
+ /** Checks for all expressions in this list. */
937
+ and?: AgentResourceChunkFilter[];
1004
938
  /** Filter by the object’s `body` field. */
1005
939
  body?: StringFilter;
1006
940
  /** Filter by the object’s `chunkIndex` field. */
1007
941
  chunkIndex?: IntFilter;
942
+ /** Filter by the object’s `createdAt` field. */
943
+ createdAt?: DatetimeFilter;
1008
944
  /** Filter by the object’s `embedding` field. */
1009
945
  embedding?: VectorFilter;
946
+ /** Filter by the object’s `id` field. */
947
+ id?: UUIDFilter;
1010
948
  /** Filter by the object’s `metadata` field. */
1011
949
  metadata?: JSONFilter;
1012
- /** Filter by the object’s `createdAt` field. */
1013
- createdAt?: DatetimeFilter;
1014
- /** Filter by the object’s `updatedAt` field. */
1015
- updatedAt?: DatetimeFilter;
1016
- /** Checks for all expressions in this list. */
1017
- and?: AgentResourceChunkFilter[];
1018
- /** Checks for any expressions in this list. */
1019
- or?: AgentResourceChunkFilter[];
1020
950
  /** Negates the expression. */
1021
951
  not?: AgentResourceChunkFilter;
1022
- /** Filter by the object’s `agentResource` relation. */
1023
- agentResource?: AgentResourceFilter;
952
+ /** Checks for any expressions in this list. */
953
+ or?: AgentResourceChunkFilter[];
954
+ /** Filter by the object’s `updatedAt` field. */
955
+ updatedAt?: DatetimeFilter;
1024
956
  /** VECTOR search on the `embedding` column. */
1025
957
  vectorEmbedding?: VectorNearbyInput;
1026
958
  }
1027
- export interface AgentPersonaFilter {
1028
- /** Filter by the object’s `id` field. */
1029
- id?: UUIDFilter;
1030
- /** Filter by the object’s `createdAt` field. */
1031
- createdAt?: DatetimeFilter;
1032
- /** Filter by the object’s `updatedAt` field. */
1033
- updatedAt?: DatetimeFilter;
1034
- /** Filter by the object’s `createdBy` field. */
1035
- createdBy?: UUIDFilter;
1036
- /** Filter by the object’s `updatedBy` field. */
1037
- updatedBy?: UUIDFilter;
1038
- /** Filter by the object’s `databaseId` field. */
1039
- databaseId?: UUIDFilter;
1040
- /** Filter by the object’s `slug` field. */
1041
- slug?: StringFilter;
1042
- /** Filter by the object’s `name` field. */
1043
- name?: StringFilter;
1044
- /** Filter by the object’s `description` field. */
1045
- description?: StringFilter;
1046
- /** Filter by the object’s `systemPrompt` field. */
1047
- systemPrompt?: StringFilter;
1048
- /** Filter by the object’s `resources` field. */
1049
- resources?: StringListFilter;
1050
- /** Filter by the object’s `config` field. */
1051
- config?: JSONFilter;
1052
- /** Filter by the object’s `isActive` field. */
1053
- isActive?: BooleanFilter;
1054
- /** Checks for all expressions in this list. */
1055
- and?: AgentPersonaFilter[];
1056
- /** Checks for any expressions in this list. */
1057
- or?: AgentPersonaFilter[];
1058
- /** Negates the expression. */
1059
- not?: AgentPersonaFilter;
1060
- /** Filter by the object’s `agentsByPersonaId` relation. */
1061
- agentsByPersonaId?: AgentPersonaToManyAgentFilter;
1062
- /** `agentsByPersonaId` exist. */
1063
- agentsByPersonaIdExist?: boolean;
1064
- }
1065
959
  export interface AgentResourceFilter {
1066
- /** Filter by the object’s `id` field. */
1067
- id?: UUIDFilter;
960
+ /** Filter by the object’s `agentResourceChunks` relation. */
961
+ agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter;
962
+ /** `agentResourceChunks` exist. */
963
+ agentResourceChunksExist?: boolean;
964
+ /** Checks for all expressions in this list. */
965
+ and?: AgentResourceFilter[];
966
+ /** Filter by the object’s `archivedAt` field. */
967
+ archivedAt?: DatetimeFilter;
968
+ /** Filter by the object’s `body` field. */
969
+ body?: StringTrgmFilter;
1068
970
  /** Filter by the object’s `createdAt` field. */
1069
971
  createdAt?: DatetimeFilter;
1070
- /** Filter by the object’s `updatedAt` field. */
1071
- updatedAt?: DatetimeFilter;
1072
972
  /** Filter by the object’s `createdBy` field. */
1073
973
  createdBy?: UUIDFilter;
1074
- /** Filter by the object’s `updatedBy` field. */
1075
- updatedBy?: UUIDFilter;
1076
974
  /** Filter by the object’s `databaseId` field. */
1077
975
  databaseId?: UUIDFilter;
1078
- /** Filter by the object’s `slug` field. */
1079
- slug?: StringTrgmFilter;
1080
- /** Filter by the object’s `kind` field. */
1081
- kind?: StringTrgmFilter;
1082
- /** Filter by the object’s `title` field. */
1083
- title?: StringTrgmFilter;
1084
976
  /** Filter by the object’s `description` field. */
1085
977
  description?: StringTrgmFilter;
1086
- /** Filter by the object’s `body` field. */
1087
- body?: StringTrgmFilter;
1088
- /** Filter by the object’s `keywords` field. */
1089
- keywords?: StringListFilter;
1090
- /** Filter by the object’s `isActive` field. */
1091
- isActive?: BooleanFilter;
1092
- /** Filter by the object’s `metadata` field. */
1093
- metadata?: JSONFilter;
1094
- /** Filter by the object’s `isArchived` field. */
1095
- isArchived?: BooleanFilter;
1096
- /** Filter by the object’s `archivedAt` field. */
1097
- archivedAt?: DatetimeFilter;
1098
- /** Filter by the object’s `search` field. */
1099
- search?: FullTextFilter;
1100
978
  /** Filter by the object’s `embedding` field. */
1101
979
  embedding?: VectorFilter;
1102
980
  /** Filter by the object’s `embeddingUpdatedAt` field. */
1103
981
  embeddingUpdatedAt?: DatetimeFilter;
1104
- /** Checks for all expressions in this list. */
1105
- and?: AgentResourceFilter[];
1106
- /** Checks for any expressions in this list. */
1107
- or?: AgentResourceFilter[];
982
+ /** Filter by the object’s `id` field. */
983
+ id?: UUIDFilter;
984
+ /** Filter by the object’s `isActive` field. */
985
+ isActive?: BooleanFilter;
986
+ /** Filter by the object’s `isArchived` field. */
987
+ isArchived?: BooleanFilter;
988
+ /** Filter by the object’s `keywords` field. */
989
+ keywords?: StringListFilter;
990
+ /** Filter by the object’s `kind` field. */
991
+ kind?: StringTrgmFilter;
992
+ /** Filter by the object’s `metadata` field. */
993
+ metadata?: JSONFilter;
1108
994
  /** Negates the expression. */
1109
995
  not?: AgentResourceFilter;
1110
- /** Filter by the object’s `agentResourceChunks` relation. */
1111
- agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter;
1112
- /** `agentResourceChunks` exist. */
1113
- agentResourceChunksExist?: boolean;
1114
- /** TSV search on the `search` column. */
1115
- tsvSearch?: string;
1116
- /** VECTOR search on the `embedding` column. */
1117
- vectorEmbedding?: VectorNearbyInput;
996
+ /** Checks for any expressions in this list. */
997
+ or?: AgentResourceFilter[];
998
+ /** Filter by the object’s `search` field. */
999
+ search?: FullTextFilter;
1000
+ /** Filter by the object’s `slug` field. */
1001
+ slug?: StringTrgmFilter;
1002
+ /** Filter by the object’s `title` field. */
1003
+ title?: StringTrgmFilter;
1004
+ /** TRGM search on the `body` column. */
1005
+ trgmBody?: TrgmSearchInput;
1006
+ /** TRGM search on the `description` column. */
1007
+ trgmDescription?: TrgmSearchInput;
1118
1008
  /** TRGM search on the `kind` column. */
1119
1009
  trgmKind?: TrgmSearchInput;
1120
1010
  /** TRGM search on the `title` column. */
1121
1011
  trgmTitle?: TrgmSearchInput;
1122
- /** TRGM search on the `description` column. */
1123
- trgmDescription?: TrgmSearchInput;
1124
- /** TRGM search on the `body` column. */
1125
- trgmBody?: TrgmSearchInput;
1012
+ /** TSV search on the `search` column. */
1013
+ tsvSearch?: string;
1126
1014
  /**
1127
1015
  * Composite unified search. Provide a search string and it will be dispatched to
1128
1016
  * all text-compatible search algorithms (tsvector, BM25, pg_trgm)
@@ -1131,68 +1019,152 @@ export interface AgentResourceFilter {
1131
1019
  * fields are populated.
1132
1020
  */
1133
1021
  unifiedSearch?: string;
1022
+ /** Filter by the object’s `updatedAt` field. */
1023
+ updatedAt?: DatetimeFilter;
1024
+ /** Filter by the object’s `updatedBy` field. */
1025
+ updatedBy?: UUIDFilter;
1026
+ /** VECTOR search on the `embedding` column. */
1027
+ vectorEmbedding?: VectorNearbyInput;
1134
1028
  }
1135
- export type AgentPlanOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'STATUS_ASC' | 'STATUS_DESC';
1136
- export type AgentOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_EPHEMERAL_ASC' | 'IS_EPHEMERAL_DESC';
1137
- export type AgentThreadOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_ARCHIVED_ASC' | 'IS_ARCHIVED_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'MODE_ASC' | 'MODE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'PROMPT_TEMPLATE_ID_ASC' | 'PROMPT_TEMPLATE_ID_DESC' | 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'PARENT_THREAD_ID_ASC' | 'PARENT_THREAD_ID_DESC';
1138
- export type AgentMessageOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PARTS_ASC' | 'PARTS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'AGENT_ID_ASC' | 'AGENT_ID_DESC';
1139
- export type AgentTaskOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SOURCE_ASC' | 'SOURCE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ORDER_INDEX_ASC' | 'ORDER_INDEX_DESC' | 'REQUIRES_APPROVAL_ASC' | 'REQUIRES_APPROVAL_DESC' | 'APPROVAL_STATUS_ASC' | 'APPROVAL_STATUS_DESC' | 'APPROVED_BY_ASC' | 'APPROVED_BY_DESC' | 'APPROVED_AT_ASC' | 'APPROVED_AT_DESC' | 'APPROVAL_FEEDBACK_ASC' | 'APPROVAL_FEEDBACK_DESC';
1140
- export type AgentPromptOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'IS_DEFAULT_ASC' | 'IS_DEFAULT_DESC' | 'METADATA_ASC' | 'METADATA_DESC';
1141
- export type AgentResourceChunkOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'AGENT_RESOURCE_ID_ASC' | 'AGENT_RESOURCE_ID_DESC' | 'BODY_ASC' | 'BODY_DESC' | 'CHUNK_INDEX_ASC' | 'CHUNK_INDEX_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
1142
- export type AgentPersonaOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC';
1143
- export type AgentResourceOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'BODY_ASC' | 'BODY_DESC' | 'KEYWORDS_ASC' | 'KEYWORDS_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'IS_ARCHIVED_ASC' | 'IS_ARCHIVED_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'SEARCH_ASC' | 'SEARCH_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'KIND_TRGM_SIMILARITY_ASC' | 'KIND_TRGM_SIMILARITY_DESC' | 'TITLE_TRGM_SIMILARITY_ASC' | 'TITLE_TRGM_SIMILARITY_DESC' | 'DESCRIPTION_TRGM_SIMILARITY_ASC' | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'BODY_TRGM_SIMILARITY_ASC' | 'BODY_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
1144
- export interface CreateAgentPlanInput {
1145
- clientMutationId?: string;
1146
- agentPlan: {
1147
- ownerId?: string;
1148
- threadId: string;
1149
- databaseId: string;
1150
- title: string;
1151
- description?: string;
1152
- status?: string;
1153
- };
1154
- }
1155
- export interface AgentPlanPatch {
1156
- ownerId?: string | null;
1157
- threadId?: string | null;
1158
- databaseId?: string | null;
1159
- title?: string | null;
1160
- description?: string | null;
1161
- status?: string | null;
1162
- }
1163
- export interface UpdateAgentPlanInput {
1164
- clientMutationId?: string;
1165
- id: string;
1166
- agentPlanPatch: AgentPlanPatch;
1029
+ export interface AgentTaskFilter {
1030
+ /** Filter by the object’s `actorId` field. */
1031
+ actorId?: UUIDFilter;
1032
+ /** Checks for all expressions in this list. */
1033
+ and?: AgentTaskFilter[];
1034
+ /** Filter by the object’s `approvalFeedback` field. */
1035
+ approvalFeedback?: StringFilter;
1036
+ /** Filter by the object’s `approvalStatus` field. */
1037
+ approvalStatus?: StringFilter;
1038
+ /** Filter by the object’s `approvedAt` field. */
1039
+ approvedAt?: DatetimeFilter;
1040
+ /** Filter by the object’s `approvedBy` field. */
1041
+ approvedBy?: UUIDFilter;
1042
+ /** Filter by the object’s `createdAt` field. */
1043
+ createdAt?: DatetimeFilter;
1044
+ /** Filter by the object’s `databaseId` field. */
1045
+ databaseId?: UUIDFilter;
1046
+ /** Filter by the object’s `description` field. */
1047
+ description?: StringFilter;
1048
+ /** Filter by the object’s `error` field. */
1049
+ error?: StringFilter;
1050
+ /** Filter by the object’s `id` field. */
1051
+ id?: UUIDFilter;
1052
+ /** Negates the expression. */
1053
+ not?: AgentTaskFilter;
1054
+ /** Checks for any expressions in this list. */
1055
+ or?: AgentTaskFilter[];
1056
+ /** Filter by the object’s `orderIndex` field. */
1057
+ orderIndex?: IntFilter;
1058
+ /** Filter by the object’s `plan` relation. */
1059
+ plan?: AgentPlanFilter;
1060
+ /** Filter by the object’s `planId` field. */
1061
+ planId?: UUIDFilter;
1062
+ /** Filter by the object’s `requiresApproval` field. */
1063
+ requiresApproval?: BooleanFilter;
1064
+ /** Filter by the object’s `source` field. */
1065
+ source?: StringFilter;
1066
+ /** Filter by the object’s `status` field. */
1067
+ status?: StringFilter;
1068
+ /** Filter by the object’s `updatedAt` field. */
1069
+ updatedAt?: DatetimeFilter;
1167
1070
  }
1168
- export interface DeleteAgentPlanInput {
1169
- clientMutationId?: string;
1170
- id: string;
1071
+ export interface AgentThreadFilter {
1072
+ /** Filter by the object’s `agent` relation. */
1073
+ agent?: AgentFilter;
1074
+ /** A related `agent` exists. */
1075
+ agentExists?: boolean;
1076
+ /** Filter by the object’s `agentId` field. */
1077
+ agentId?: UUIDFilter;
1078
+ /** Filter by the object’s `agentMessagesByThreadId` relation. */
1079
+ agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter;
1080
+ /** `agentMessagesByThreadId` exist. */
1081
+ agentMessagesByThreadIdExist?: boolean;
1082
+ /** Filter by the object’s `agentPlansByThreadId` relation. */
1083
+ agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter;
1084
+ /** `agentPlansByThreadId` exist. */
1085
+ agentPlansByThreadIdExist?: boolean;
1086
+ /** Filter by the object’s `agentThreadsByParentThreadId` relation. */
1087
+ agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter;
1088
+ /** `agentThreadsByParentThreadId` exist. */
1089
+ agentThreadsByParentThreadIdExist?: boolean;
1090
+ /** Checks for all expressions in this list. */
1091
+ and?: AgentThreadFilter[];
1092
+ /** Filter by the object’s `archivedAt` field. */
1093
+ archivedAt?: DatetimeFilter;
1094
+ /** Filter by the object’s `createdAt` field. */
1095
+ createdAt?: DatetimeFilter;
1096
+ /** Filter by the object’s `databaseId` field. */
1097
+ databaseId?: UUIDFilter;
1098
+ /** Filter by the object’s `id` field. */
1099
+ id?: UUIDFilter;
1100
+ /** Filter by the object’s `isArchived` field. */
1101
+ isArchived?: BooleanFilter;
1102
+ /** Filter by the object’s `mode` field. */
1103
+ mode?: StringFilter;
1104
+ /** Filter by the object’s `model` field. */
1105
+ model?: StringFilter;
1106
+ /** Negates the expression. */
1107
+ not?: AgentThreadFilter;
1108
+ /** Checks for any expressions in this list. */
1109
+ or?: AgentThreadFilter[];
1110
+ /** Filter by the object’s `ownerId` field. */
1111
+ ownerId?: UUIDFilter;
1112
+ /** Filter by the object’s `parentThread` relation. */
1113
+ parentThread?: AgentThreadFilter;
1114
+ /** A related `parentThread` exists. */
1115
+ parentThreadExists?: boolean;
1116
+ /** Filter by the object’s `parentThreadId` field. */
1117
+ parentThreadId?: UUIDFilter;
1118
+ /** Filter by the object’s `promptTemplate` relation. */
1119
+ promptTemplate?: AgentPromptFilter;
1120
+ /** A related `promptTemplate` exists. */
1121
+ promptTemplateExists?: boolean;
1122
+ /** Filter by the object’s `promptTemplateId` field. */
1123
+ promptTemplateId?: UUIDFilter;
1124
+ /** Filter by the object’s `status` field. */
1125
+ status?: StringFilter;
1126
+ /** Filter by the object’s `systemPrompt` field. */
1127
+ systemPrompt?: StringFilter;
1128
+ /** Filter by the object’s `tags` field. */
1129
+ tags?: StringListFilter;
1130
+ /** Filter by the object’s `title` field. */
1131
+ title?: StringFilter;
1132
+ /** Filter by the object’s `updatedAt` field. */
1133
+ updatedAt?: DatetimeFilter;
1171
1134
  }
1135
+ export type AgentOrderBy = 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_EPHEMERAL_ASC' | 'IS_EPHEMERAL_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1136
+ export type AgentMessageOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'NATURAL' | 'PARTS_ASC' | 'PARTS_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1137
+ export type AgentPersonaOrderBy = 'CONFIG_ASC' | 'CONFIG_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC';
1138
+ export type AgentPlanOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1139
+ export type AgentPromptOrderBy = 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_DEFAULT_ASC' | 'IS_DEFAULT_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC';
1140
+ export type AgentResourceChunkOrderBy = 'AGENT_RESOURCE_ID_ASC' | 'AGENT_RESOURCE_ID_DESC' | 'BODY_ASC' | 'BODY_DESC' | 'CHUNK_INDEX_ASC' | 'CHUNK_INDEX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1141
+ export type AgentResourceOrderBy = 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'BODY_ASC' | 'BODY_DESC' | 'BODY_TRGM_SIMILARITY_ASC' | 'BODY_TRGM_SIMILARITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DESCRIPTION_TRGM_SIMILARITY_ASC' | 'DESCRIPTION_TRGM_SIMILARITY_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'EMBEDDING_UPDATED_AT_ASC' | 'EMBEDDING_UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'IS_ARCHIVED_ASC' | 'IS_ARCHIVED_DESC' | 'KEYWORDS_ASC' | 'KEYWORDS_DESC' | 'KIND_ASC' | 'KIND_DESC' | 'KIND_TRGM_SIMILARITY_ASC' | 'KIND_TRGM_SIMILARITY_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SEARCH_ASC' | 'SEARCH_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'TITLE_TRGM_SIMILARITY_ASC' | 'TITLE_TRGM_SIMILARITY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC';
1142
+ export type AgentTaskOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'APPROVAL_FEEDBACK_ASC' | 'APPROVAL_FEEDBACK_DESC' | 'APPROVAL_STATUS_ASC' | 'APPROVAL_STATUS_DESC' | 'APPROVED_AT_ASC' | 'APPROVED_AT_DESC' | 'APPROVED_BY_ASC' | 'APPROVED_BY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ID_ASC' | 'ID_DESC' | 'NATURAL' | 'ORDER_INDEX_ASC' | 'ORDER_INDEX_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REQUIRES_APPROVAL_ASC' | 'REQUIRES_APPROVAL_DESC' | 'SOURCE_ASC' | 'SOURCE_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1143
+ export type AgentThreadOrderBy = 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ARCHIVED_ASC' | 'IS_ARCHIVED_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'MODE_ASC' | 'MODE_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PARENT_THREAD_ID_ASC' | 'PARENT_THREAD_ID_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PROMPT_TEMPLATE_ID_ASC' | 'PROMPT_TEMPLATE_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1172
1144
  export interface CreateAgentInput {
1173
1145
  clientMutationId?: string;
1174
1146
  agent: {
1175
- ownerId?: string;
1147
+ config?: Record<string, unknown>;
1176
1148
  databaseId: string;
1177
- personaId?: string;
1178
- parentId?: string;
1149
+ isEphemeral?: boolean;
1179
1150
  name: string;
1180
- systemPrompt?: string;
1181
- config?: Record<string, unknown>;
1151
+ ownerId?: string;
1152
+ parentId?: string;
1153
+ personaId?: string;
1182
1154
  status?: string;
1183
- isEphemeral?: boolean;
1155
+ systemPrompt?: string;
1184
1156
  };
1185
1157
  }
1186
1158
  export interface AgentPatch {
1187
- ownerId?: string | null;
1159
+ config?: Record<string, unknown> | null;
1188
1160
  databaseId?: string | null;
1189
- personaId?: string | null;
1190
- parentId?: string | null;
1161
+ isEphemeral?: boolean | null;
1191
1162
  name?: string | null;
1192
- systemPrompt?: string | null;
1193
- config?: Record<string, unknown> | null;
1163
+ ownerId?: string | null;
1164
+ parentId?: string | null;
1165
+ personaId?: string | null;
1194
1166
  status?: string | null;
1195
- isEphemeral?: boolean | null;
1167
+ systemPrompt?: string | null;
1196
1168
  }
1197
1169
  export interface UpdateAgentInput {
1198
1170
  clientMutationId?: string;
@@ -1203,142 +1175,122 @@ export interface DeleteAgentInput {
1203
1175
  clientMutationId?: string;
1204
1176
  id: string;
1205
1177
  }
1206
- export interface CreateAgentThreadInput {
1178
+ export interface CreateAgentMessageInput {
1207
1179
  clientMutationId?: string;
1208
- agentThread: {
1209
- ownerId?: string;
1180
+ agentMessage: {
1181
+ actorId?: string;
1182
+ agentId?: string;
1183
+ authorRole: string;
1210
1184
  databaseId: string;
1211
- status?: string;
1212
- isArchived?: boolean;
1213
- archivedAt?: string;
1214
- title?: string;
1215
- mode?: string;
1216
1185
  model?: string;
1217
- systemPrompt?: string;
1218
- tags?: string[];
1219
- promptTemplateId?: string;
1220
- agentId?: string;
1221
- parentThreadId?: string;
1186
+ parts?: Record<string, unknown>;
1187
+ threadId: string;
1222
1188
  };
1223
1189
  }
1224
- export interface AgentThreadPatch {
1225
- ownerId?: string | null;
1190
+ export interface AgentMessagePatch {
1191
+ actorId?: string | null;
1192
+ agentId?: string | null;
1193
+ authorRole?: string | null;
1226
1194
  databaseId?: string | null;
1227
- status?: string | null;
1228
- isArchived?: boolean | null;
1229
- archivedAt?: string | null;
1230
- title?: string | null;
1231
- mode?: string | null;
1232
1195
  model?: string | null;
1233
- systemPrompt?: string | null;
1234
- tags?: string[] | null;
1235
- promptTemplateId?: string | null;
1236
- agentId?: string | null;
1237
- parentThreadId?: string | null;
1196
+ parts?: Record<string, unknown> | null;
1197
+ threadId?: string | null;
1238
1198
  }
1239
- export interface UpdateAgentThreadInput {
1199
+ export interface UpdateAgentMessageInput {
1240
1200
  clientMutationId?: string;
1241
1201
  id: string;
1242
- agentThreadPatch: AgentThreadPatch;
1202
+ agentMessagePatch: AgentMessagePatch;
1243
1203
  }
1244
- export interface DeleteAgentThreadInput {
1204
+ export interface DeleteAgentMessageInput {
1245
1205
  clientMutationId?: string;
1246
1206
  id: string;
1247
1207
  }
1248
- export interface CreateAgentMessageInput {
1208
+ export interface CreateAgentPersonaInput {
1249
1209
  clientMutationId?: string;
1250
- agentMessage: {
1251
- actorId?: string;
1252
- parts?: Record<string, unknown>;
1253
- threadId: string;
1210
+ agentPersona: {
1211
+ config?: Record<string, unknown>;
1212
+ createdBy?: string;
1254
1213
  databaseId: string;
1255
- authorRole: string;
1256
- model?: string;
1257
- agentId?: string;
1214
+ description?: string;
1215
+ isActive?: boolean;
1216
+ name: string;
1217
+ resources?: string[];
1218
+ slug: string;
1219
+ systemPrompt?: string;
1220
+ updatedBy?: string;
1258
1221
  };
1259
1222
  }
1260
- export interface AgentMessagePatch {
1261
- actorId?: string | null;
1262
- parts?: Record<string, unknown> | null;
1263
- threadId?: string | null;
1223
+ export interface AgentPersonaPatch {
1224
+ config?: Record<string, unknown> | null;
1225
+ createdBy?: string | null;
1264
1226
  databaseId?: string | null;
1265
- authorRole?: string | null;
1266
- model?: string | null;
1267
- agentId?: string | null;
1227
+ description?: string | null;
1228
+ isActive?: boolean | null;
1229
+ name?: string | null;
1230
+ resources?: string[] | null;
1231
+ slug?: string | null;
1232
+ systemPrompt?: string | null;
1233
+ updatedBy?: string | null;
1268
1234
  }
1269
- export interface UpdateAgentMessageInput {
1235
+ export interface UpdateAgentPersonaInput {
1270
1236
  clientMutationId?: string;
1271
1237
  id: string;
1272
- agentMessagePatch: AgentMessagePatch;
1238
+ agentPersonaPatch: AgentPersonaPatch;
1273
1239
  }
1274
- export interface DeleteAgentMessageInput {
1240
+ export interface DeleteAgentPersonaInput {
1275
1241
  clientMutationId?: string;
1276
1242
  id: string;
1277
1243
  }
1278
- export interface CreateAgentTaskInput {
1244
+ export interface CreateAgentPlanInput {
1279
1245
  clientMutationId?: string;
1280
- agentTask: {
1281
- actorId?: string;
1282
- status?: string;
1283
- planId: string;
1246
+ agentPlan: {
1284
1247
  databaseId: string;
1285
- description: string;
1286
- source?: string;
1287
- error?: string;
1288
- orderIndex?: number;
1289
- requiresApproval?: boolean;
1290
- approvalStatus?: string;
1291
- approvedBy?: string;
1292
- approvedAt?: string;
1293
- approvalFeedback?: string;
1248
+ description?: string;
1249
+ ownerId?: string;
1250
+ status?: string;
1251
+ threadId: string;
1252
+ title: string;
1294
1253
  };
1295
1254
  }
1296
- export interface AgentTaskPatch {
1297
- actorId?: string | null;
1298
- status?: string | null;
1299
- planId?: string | null;
1255
+ export interface AgentPlanPatch {
1300
1256
  databaseId?: string | null;
1301
1257
  description?: string | null;
1302
- source?: string | null;
1303
- error?: string | null;
1304
- orderIndex?: number | null;
1305
- requiresApproval?: boolean | null;
1306
- approvalStatus?: string | null;
1307
- approvedBy?: string | null;
1308
- approvedAt?: string | null;
1309
- approvalFeedback?: string | null;
1258
+ ownerId?: string | null;
1259
+ status?: string | null;
1260
+ threadId?: string | null;
1261
+ title?: string | null;
1310
1262
  }
1311
- export interface UpdateAgentTaskInput {
1263
+ export interface UpdateAgentPlanInput {
1312
1264
  clientMutationId?: string;
1313
1265
  id: string;
1314
- agentTaskPatch: AgentTaskPatch;
1266
+ agentPlanPatch: AgentPlanPatch;
1315
1267
  }
1316
- export interface DeleteAgentTaskInput {
1268
+ export interface DeleteAgentPlanInput {
1317
1269
  clientMutationId?: string;
1318
1270
  id: string;
1319
1271
  }
1320
1272
  export interface CreateAgentPromptInput {
1321
1273
  clientMutationId?: string;
1322
1274
  agentPrompt: {
1275
+ content: string;
1323
1276
  createdBy?: string;
1324
- updatedBy?: string;
1325
1277
  databaseId: string;
1326
- name: string;
1327
- content: string;
1328
1278
  description?: string;
1329
1279
  isDefault?: boolean;
1330
1280
  metadata?: Record<string, unknown>;
1281
+ name: string;
1282
+ updatedBy?: string;
1331
1283
  };
1332
1284
  }
1333
1285
  export interface AgentPromptPatch {
1286
+ content?: string | null;
1334
1287
  createdBy?: string | null;
1335
- updatedBy?: string | null;
1336
1288
  databaseId?: string | null;
1337
- name?: string | null;
1338
- content?: string | null;
1339
1289
  description?: string | null;
1340
1290
  isDefault?: boolean | null;
1341
1291
  metadata?: Record<string, unknown> | null;
1292
+ name?: string | null;
1293
+ updatedBy?: string | null;
1342
1294
  }
1343
1295
  export interface UpdateAgentPromptInput {
1344
1296
  clientMutationId?: string;
@@ -1356,8 +1308,8 @@ export interface CreateAgentResourceChunkInput {
1356
1308
  body: string;
1357
1309
  chunkIndex?: number;
1358
1310
  embedding?: number[];
1359
- metadata?: Record<string, unknown>;
1360
1311
  embeddingText?: string;
1312
+ metadata?: Record<string, unknown>;
1361
1313
  };
1362
1314
  }
1363
1315
  export interface AgentResourceChunkPatch {
@@ -1365,8 +1317,8 @@ export interface AgentResourceChunkPatch {
1365
1317
  body?: string | null;
1366
1318
  chunkIndex?: number | null;
1367
1319
  embedding?: number[] | null;
1368
- metadata?: Record<string, unknown> | null;
1369
1320
  embeddingText?: string | null;
1321
+ metadata?: Record<string, unknown> | null;
1370
1322
  }
1371
1323
  export interface UpdateAgentResourceChunkInput {
1372
1324
  clientMutationId?: string;
@@ -1377,87 +1329,135 @@ export interface DeleteAgentResourceChunkInput {
1377
1329
  clientMutationId?: string;
1378
1330
  id: string;
1379
1331
  }
1380
- export interface CreateAgentPersonaInput {
1332
+ export interface CreateAgentResourceInput {
1381
1333
  clientMutationId?: string;
1382
- agentPersona: {
1334
+ agentResource: {
1335
+ archivedAt?: string;
1336
+ body: string;
1383
1337
  createdBy?: string;
1384
- updatedBy?: string;
1385
1338
  databaseId: string;
1386
- slug: string;
1387
- name: string;
1388
1339
  description?: string;
1389
- systemPrompt?: string;
1390
- resources?: string[];
1391
- config?: Record<string, unknown>;
1340
+ embedding?: number[];
1341
+ embeddingText?: string;
1342
+ embeddingUpdatedAt?: string;
1392
1343
  isActive?: boolean;
1344
+ isArchived?: boolean;
1345
+ keywords?: string[];
1346
+ kind?: string;
1347
+ metadata?: Record<string, unknown>;
1348
+ slug: string;
1349
+ title: string;
1350
+ updatedBy?: string;
1393
1351
  };
1394
1352
  }
1395
- export interface AgentPersonaPatch {
1353
+ export interface AgentResourcePatch {
1354
+ archivedAt?: string | null;
1355
+ body?: string | null;
1396
1356
  createdBy?: string | null;
1357
+ databaseId?: string | null;
1358
+ description?: string | null;
1359
+ embedding?: number[] | null;
1360
+ embeddingText?: string | null;
1361
+ embeddingUpdatedAt?: string | null;
1362
+ isActive?: boolean | null;
1363
+ isArchived?: boolean | null;
1364
+ keywords?: string[] | null;
1365
+ kind?: string | null;
1366
+ metadata?: Record<string, unknown> | null;
1367
+ slug?: string | null;
1368
+ title?: string | null;
1397
1369
  updatedBy?: string | null;
1370
+ }
1371
+ export interface UpdateAgentResourceInput {
1372
+ clientMutationId?: string;
1373
+ id: string;
1374
+ agentResourcePatch: AgentResourcePatch;
1375
+ }
1376
+ export interface DeleteAgentResourceInput {
1377
+ clientMutationId?: string;
1378
+ id: string;
1379
+ }
1380
+ export interface CreateAgentTaskInput {
1381
+ clientMutationId?: string;
1382
+ agentTask: {
1383
+ actorId?: string;
1384
+ approvalFeedback?: string;
1385
+ approvalStatus?: string;
1386
+ approvedAt?: string;
1387
+ approvedBy?: string;
1388
+ databaseId: string;
1389
+ description: string;
1390
+ error?: string;
1391
+ orderIndex?: number;
1392
+ planId: string;
1393
+ requiresApproval?: boolean;
1394
+ source?: string;
1395
+ status?: string;
1396
+ };
1397
+ }
1398
+ export interface AgentTaskPatch {
1399
+ actorId?: string | null;
1400
+ approvalFeedback?: string | null;
1401
+ approvalStatus?: string | null;
1402
+ approvedAt?: string | null;
1403
+ approvedBy?: string | null;
1398
1404
  databaseId?: string | null;
1399
- slug?: string | null;
1400
- name?: string | null;
1401
1405
  description?: string | null;
1402
- systemPrompt?: string | null;
1403
- resources?: string[] | null;
1404
- config?: Record<string, unknown> | null;
1405
- isActive?: boolean | null;
1406
+ error?: string | null;
1407
+ orderIndex?: number | null;
1408
+ planId?: string | null;
1409
+ requiresApproval?: boolean | null;
1410
+ source?: string | null;
1411
+ status?: string | null;
1406
1412
  }
1407
- export interface UpdateAgentPersonaInput {
1413
+ export interface UpdateAgentTaskInput {
1408
1414
  clientMutationId?: string;
1409
1415
  id: string;
1410
- agentPersonaPatch: AgentPersonaPatch;
1416
+ agentTaskPatch: AgentTaskPatch;
1411
1417
  }
1412
- export interface DeleteAgentPersonaInput {
1418
+ export interface DeleteAgentTaskInput {
1413
1419
  clientMutationId?: string;
1414
1420
  id: string;
1415
1421
  }
1416
- export interface CreateAgentResourceInput {
1422
+ export interface CreateAgentThreadInput {
1417
1423
  clientMutationId?: string;
1418
- agentResource: {
1419
- createdBy?: string;
1420
- updatedBy?: string;
1424
+ agentThread: {
1425
+ agentId?: string;
1426
+ archivedAt?: string;
1421
1427
  databaseId: string;
1422
- slug: string;
1423
- kind?: string;
1424
- title: string;
1425
- description?: string;
1426
- body: string;
1427
- keywords?: string[];
1428
- isActive?: boolean;
1429
- metadata?: Record<string, unknown>;
1430
1428
  isArchived?: boolean;
1431
- archivedAt?: string;
1432
- embedding?: number[];
1433
- embeddingUpdatedAt?: string;
1434
- embeddingText?: string;
1429
+ mode?: string;
1430
+ model?: string;
1431
+ ownerId?: string;
1432
+ parentThreadId?: string;
1433
+ promptTemplateId?: string;
1434
+ status?: string;
1435
+ systemPrompt?: string;
1436
+ tags?: string[];
1437
+ title?: string;
1435
1438
  };
1436
1439
  }
1437
- export interface AgentResourcePatch {
1438
- createdBy?: string | null;
1439
- updatedBy?: string | null;
1440
+ export interface AgentThreadPatch {
1441
+ agentId?: string | null;
1442
+ archivedAt?: string | null;
1440
1443
  databaseId?: string | null;
1441
- slug?: string | null;
1442
- kind?: string | null;
1443
- title?: string | null;
1444
- description?: string | null;
1445
- body?: string | null;
1446
- keywords?: string[] | null;
1447
- isActive?: boolean | null;
1448
- metadata?: Record<string, unknown> | null;
1449
1444
  isArchived?: boolean | null;
1450
- archivedAt?: string | null;
1451
- embedding?: number[] | null;
1452
- embeddingUpdatedAt?: string | null;
1453
- embeddingText?: string | null;
1445
+ mode?: string | null;
1446
+ model?: string | null;
1447
+ ownerId?: string | null;
1448
+ parentThreadId?: string | null;
1449
+ promptTemplateId?: string | null;
1450
+ status?: string | null;
1451
+ systemPrompt?: string | null;
1452
+ tags?: string[] | null;
1453
+ title?: string | null;
1454
1454
  }
1455
- export interface UpdateAgentResourceInput {
1455
+ export interface UpdateAgentThreadInput {
1456
1456
  clientMutationId?: string;
1457
1457
  id: string;
1458
- agentResourcePatch: AgentResourcePatch;
1458
+ agentThreadPatch: AgentThreadPatch;
1459
1459
  }
1460
- export interface DeleteAgentResourceInput {
1460
+ export interface DeleteAgentThreadInput {
1461
1461
  clientMutationId?: string;
1462
1462
  id: string;
1463
1463
  }
@@ -1471,1065 +1471,1042 @@ export interface ProvisionBucketInput {
1471
1471
  */
1472
1472
  ownerId?: string;
1473
1473
  }
1474
- /** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */
1475
- export interface AgentPlanToManyAgentTaskFilter {
1476
- /** Filters to entities where at least one related entity matches. */
1477
- some?: AgentTaskFilter;
1474
+ /** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1475
+ export interface AgentToManyAgentMessageFilter {
1478
1476
  /** Filters to entities where every related entity matches. */
1479
- every?: AgentTaskFilter;
1477
+ every?: AgentMessageFilter;
1480
1478
  /** Filters to entities where no related entity matches. */
1481
- none?: AgentTaskFilter;
1479
+ none?: AgentMessageFilter;
1480
+ /** Filters to entities where at least one related entity matches. */
1481
+ some?: AgentMessageFilter;
1482
1482
  }
1483
1483
  /** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */
1484
1484
  export interface AgentToManyAgentThreadFilter {
1485
- /** Filters to entities where at least one related entity matches. */
1486
- some?: AgentThreadFilter;
1487
1485
  /** Filters to entities where every related entity matches. */
1488
1486
  every?: AgentThreadFilter;
1489
1487
  /** Filters to entities where no related entity matches. */
1490
1488
  none?: AgentThreadFilter;
1491
- }
1492
- /** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1493
- export interface AgentToManyAgentMessageFilter {
1494
1489
  /** Filters to entities where at least one related entity matches. */
1495
- some?: AgentMessageFilter;
1496
- /** Filters to entities where every related entity matches. */
1497
- every?: AgentMessageFilter;
1498
- /** Filters to entities where no related entity matches. */
1499
- none?: AgentMessageFilter;
1490
+ some?: AgentThreadFilter;
1500
1491
  }
1501
1492
  /** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */
1502
1493
  export interface AgentToManyAgentFilter {
1503
- /** Filters to entities where at least one related entity matches. */
1504
- some?: AgentFilter;
1505
1494
  /** Filters to entities where every related entity matches. */
1506
1495
  every?: AgentFilter;
1507
1496
  /** Filters to entities where no related entity matches. */
1508
1497
  none?: AgentFilter;
1509
- }
1510
- /** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */
1511
- export interface AgentThreadToManyAgentThreadFilter {
1512
1498
  /** Filters to entities where at least one related entity matches. */
1513
- some?: AgentThreadFilter;
1514
- /** Filters to entities where every related entity matches. */
1515
- every?: AgentThreadFilter;
1516
- /** Filters to entities where no related entity matches. */
1517
- none?: AgentThreadFilter;
1499
+ some?: AgentFilter;
1518
1500
  }
1519
- /** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1520
- export interface AgentThreadToManyAgentMessageFilter {
1521
- /** Filters to entities where at least one related entity matches. */
1522
- some?: AgentMessageFilter;
1501
+ /** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */
1502
+ export interface AgentPersonaToManyAgentFilter {
1523
1503
  /** Filters to entities where every related entity matches. */
1524
- every?: AgentMessageFilter;
1504
+ every?: AgentFilter;
1525
1505
  /** Filters to entities where no related entity matches. */
1526
- none?: AgentMessageFilter;
1527
- }
1528
- /** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */
1529
- export interface AgentThreadToManyAgentPlanFilter {
1506
+ none?: AgentFilter;
1530
1507
  /** Filters to entities where at least one related entity matches. */
1531
- some?: AgentPlanFilter;
1508
+ some?: AgentFilter;
1509
+ }
1510
+ /** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */
1511
+ export interface AgentPlanToManyAgentTaskFilter {
1532
1512
  /** Filters to entities where every related entity matches. */
1533
- every?: AgentPlanFilter;
1513
+ every?: AgentTaskFilter;
1534
1514
  /** Filters to entities where no related entity matches. */
1535
- none?: AgentPlanFilter;
1515
+ none?: AgentTaskFilter;
1516
+ /** Filters to entities where at least one related entity matches. */
1517
+ some?: AgentTaskFilter;
1536
1518
  }
1537
1519
  /** Input for vector similarity search. Provide a query vector, optional metric, and optional max distance threshold. */
1538
1520
  export interface VectorNearbyInput {
1539
- /** Query vector for similarity search. */
1540
- vector: number[];
1541
- /** Similarity metric to use (default: COSINE). */
1542
- metric?: VectorMetric;
1543
1521
  /** Maximum distance threshold. Only rows within this distance are returned. */
1544
1522
  distance?: number;
1545
1523
  /** When true (default for tables with @hasChunks), transparently queries the chunks table and returns the minimum distance across parent + all chunks. Set to false to only search the parent embedding. */
1546
1524
  includeChunks?: boolean;
1525
+ /** Similarity metric to use (default: COSINE). */
1526
+ metric?: VectorMetric;
1547
1527
  /** Natural language text to embed server-side for similarity search. Mutually exclusive with `vector` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */
1548
1528
  text?: string;
1529
+ /** Query vector for similarity search. */
1530
+ vector: number[];
1549
1531
  }
1550
- /** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */
1551
- export interface AgentPersonaToManyAgentFilter {
1552
- /** Filters to entities where at least one related entity matches. */
1553
- some?: AgentFilter;
1532
+ /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */
1533
+ export interface AgentResourceToManyAgentResourceChunkFilter {
1554
1534
  /** Filters to entities where every related entity matches. */
1555
- every?: AgentFilter;
1535
+ every?: AgentResourceChunkFilter;
1556
1536
  /** Filters to entities where no related entity matches. */
1557
- none?: AgentFilter;
1537
+ none?: AgentResourceChunkFilter;
1538
+ /** Filters to entities where at least one related entity matches. */
1539
+ some?: AgentResourceChunkFilter;
1558
1540
  }
1559
1541
  /** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */
1560
1542
  export interface StringTrgmFilter {
1561
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
1562
- isNull?: boolean;
1563
- /** Equal to the specified value. */
1564
- equalTo?: string;
1565
- /** Not equal to the specified value. */
1566
- notEqualTo?: string;
1567
1543
  /** Not equal to the specified value, treating null like an ordinary value. */
1568
1544
  distinctFrom?: string;
1569
- /** Equal to the specified value, treating null like an ordinary value. */
1570
- notDistinctFrom?: string;
1571
- /** Included in the specified list. */
1572
- in?: string[];
1573
- /** Not included in the specified list. */
1574
- notIn?: string[];
1575
- /** Less than the specified value. */
1576
- lessThan?: string;
1577
- /** Less than or equal to the specified value. */
1578
- lessThanOrEqualTo?: string;
1545
+ /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */
1546
+ distinctFromInsensitive?: string;
1547
+ /** Ends with the specified string (case-sensitive). */
1548
+ endsWith?: string;
1549
+ /** Ends with the specified string (case-insensitive). */
1550
+ endsWithInsensitive?: string;
1551
+ /** Equal to the specified value. */
1552
+ equalTo?: string;
1553
+ /** Equal to the specified value (case-insensitive). */
1554
+ equalToInsensitive?: string;
1579
1555
  /** Greater than the specified value. */
1580
1556
  greaterThan?: string;
1557
+ /** Greater than the specified value (case-insensitive). */
1558
+ greaterThanInsensitive?: string;
1581
1559
  /** Greater than or equal to the specified value. */
1582
1560
  greaterThanOrEqualTo?: string;
1561
+ /** Greater than or equal to the specified value (case-insensitive). */
1562
+ greaterThanOrEqualToInsensitive?: string;
1563
+ /** Included in the specified list. */
1564
+ in?: string[];
1565
+ /** Included in the specified list (case-insensitive). */
1566
+ inInsensitive?: string[];
1583
1567
  /** Contains the specified string (case-sensitive). */
1584
1568
  includes?: string;
1585
- /** Does not contain the specified string (case-sensitive). */
1586
- notIncludes?: string;
1587
1569
  /** Contains the specified string (case-insensitive). */
1588
1570
  includesInsensitive?: string;
1589
- /** Does not contain the specified string (case-insensitive). */
1590
- notIncludesInsensitive?: string;
1591
- /** Starts with the specified string (case-sensitive). */
1592
- startsWith?: string;
1593
- /** Does not start with the specified string (case-sensitive). */
1594
- notStartsWith?: string;
1595
- /** Starts with the specified string (case-insensitive). */
1596
- startsWithInsensitive?: string;
1597
- /** Does not start with the specified string (case-insensitive). */
1598
- notStartsWithInsensitive?: string;
1599
- /** Ends with the specified string (case-sensitive). */
1600
- endsWith?: string;
1601
- /** Does not end with the specified string (case-sensitive). */
1602
- notEndsWith?: string;
1603
- /** Ends with the specified string (case-insensitive). */
1604
- endsWithInsensitive?: string;
1605
- /** Does not end with the specified string (case-insensitive). */
1606
- notEndsWithInsensitive?: string;
1571
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
1572
+ isNull?: boolean;
1573
+ /** Less than the specified value. */
1574
+ lessThan?: string;
1575
+ /** Less than the specified value (case-insensitive). */
1576
+ lessThanInsensitive?: string;
1577
+ /** Less than or equal to the specified value. */
1578
+ lessThanOrEqualTo?: string;
1579
+ /** Less than or equal to the specified value (case-insensitive). */
1580
+ lessThanOrEqualToInsensitive?: string;
1607
1581
  /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
1608
1582
  like?: string;
1609
- /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
1610
- notLike?: string;
1611
1583
  /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
1612
1584
  likeInsensitive?: string;
1613
- /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
1614
- notLikeInsensitive?: string;
1615
- /** Equal to the specified value (case-insensitive). */
1616
- equalToInsensitive?: string;
1617
- /** Not equal to the specified value (case-insensitive). */
1618
- notEqualToInsensitive?: string;
1619
- /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */
1620
- distinctFromInsensitive?: string;
1585
+ /** Equal to the specified value, treating null like an ordinary value. */
1586
+ notDistinctFrom?: string;
1621
1587
  /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */
1622
1588
  notDistinctFromInsensitive?: string;
1623
- /** Included in the specified list (case-insensitive). */
1624
- inInsensitive?: string[];
1589
+ /** Does not end with the specified string (case-sensitive). */
1590
+ notEndsWith?: string;
1591
+ /** Does not end with the specified string (case-insensitive). */
1592
+ notEndsWithInsensitive?: string;
1593
+ /** Not equal to the specified value. */
1594
+ notEqualTo?: string;
1595
+ /** Not equal to the specified value (case-insensitive). */
1596
+ notEqualToInsensitive?: string;
1597
+ /** Not included in the specified list. */
1598
+ notIn?: string[];
1625
1599
  /** Not included in the specified list (case-insensitive). */
1626
1600
  notInInsensitive?: string[];
1627
- /** Less than the specified value (case-insensitive). */
1628
- lessThanInsensitive?: string;
1629
- /** Less than or equal to the specified value (case-insensitive). */
1630
- lessThanOrEqualToInsensitive?: string;
1631
- /** Greater than the specified value (case-insensitive). */
1632
- greaterThanInsensitive?: string;
1633
- /** Greater than or equal to the specified value (case-insensitive). */
1634
- greaterThanOrEqualToInsensitive?: string;
1601
+ /** Does not contain the specified string (case-sensitive). */
1602
+ notIncludes?: string;
1603
+ /** Does not contain the specified string (case-insensitive). */
1604
+ notIncludesInsensitive?: string;
1605
+ /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
1606
+ notLike?: string;
1607
+ /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
1608
+ notLikeInsensitive?: string;
1609
+ /** Does not start with the specified string (case-sensitive). */
1610
+ notStartsWith?: string;
1611
+ /** Does not start with the specified string (case-insensitive). */
1612
+ notStartsWithInsensitive?: string;
1635
1613
  /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */
1636
1614
  similarTo?: TrgmSearchInput;
1615
+ /** Starts with the specified string (case-sensitive). */
1616
+ startsWith?: string;
1617
+ /** Starts with the specified string (case-insensitive). */
1618
+ startsWithInsensitive?: string;
1637
1619
  /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */
1638
1620
  wordSimilarTo?: TrgmSearchInput;
1639
1621
  }
1640
- /** A filter to be used against many `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */
1641
- export interface AgentResourceToManyAgentResourceChunkFilter {
1642
- /** Filters to entities where at least one related entity matches. */
1643
- some?: AgentResourceChunkFilter;
1644
- /** Filters to entities where every related entity matches. */
1645
- every?: AgentResourceChunkFilter;
1646
- /** Filters to entities where no related entity matches. */
1647
- none?: AgentResourceChunkFilter;
1648
- }
1649
1622
  /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */
1650
1623
  export interface TrgmSearchInput {
1651
- /** The text to fuzzy-match against. Typos and misspellings are tolerated. */
1652
- value: string;
1653
1624
  /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */
1654
1625
  threshold?: number;
1626
+ /** The text to fuzzy-match against. Typos and misspellings are tolerated. */
1627
+ value: string;
1655
1628
  }
1656
- /** An input for mutations affecting `AgentPlan` */
1657
- export interface AgentPlanInput {
1658
- id?: string;
1659
- createdAt?: string;
1660
- updatedAt?: string;
1661
- /** User who owns this plan */
1662
- ownerId?: string;
1663
- /** Foreign key to agent_thread */
1664
- threadId: string;
1665
- /** Database that owns this resource (database-scoped isolation) */
1666
- databaseId: string;
1667
- /** Human-readable plan name */
1668
- title: string;
1669
- /** Overall goal or context for this plan */
1670
- description?: string;
1671
- /** Plan lifecycle: draft, active, completed, failed, cancelled */
1672
- status?: string;
1629
+ /** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1630
+ export interface AgentThreadToManyAgentMessageFilter {
1631
+ /** Filters to entities where every related entity matches. */
1632
+ every?: AgentMessageFilter;
1633
+ /** Filters to entities where no related entity matches. */
1634
+ none?: AgentMessageFilter;
1635
+ /** Filters to entities where at least one related entity matches. */
1636
+ some?: AgentMessageFilter;
1637
+ }
1638
+ /** A filter to be used against many `AgentPlan` object types. All fields are combined with a logical ‘and.’ */
1639
+ export interface AgentThreadToManyAgentPlanFilter {
1640
+ /** Filters to entities where every related entity matches. */
1641
+ every?: AgentPlanFilter;
1642
+ /** Filters to entities where no related entity matches. */
1643
+ none?: AgentPlanFilter;
1644
+ /** Filters to entities where at least one related entity matches. */
1645
+ some?: AgentPlanFilter;
1646
+ }
1647
+ /** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */
1648
+ export interface AgentThreadToManyAgentThreadFilter {
1649
+ /** Filters to entities where every related entity matches. */
1650
+ every?: AgentThreadFilter;
1651
+ /** Filters to entities where no related entity matches. */
1652
+ none?: AgentThreadFilter;
1653
+ /** Filters to entities where at least one related entity matches. */
1654
+ some?: AgentThreadFilter;
1673
1655
  }
1674
1656
  /** An input for mutations affecting `Agent` */
1675
1657
  export interface AgentInput {
1676
- id?: string;
1658
+ /** Per-instance config overrides (model, temperature, tools) */
1659
+ config?: Record<string, unknown>;
1677
1660
  createdAt?: string;
1678
- updatedAt?: string;
1679
- /** Human who owns/manages this agent */
1680
- ownerId?: string;
1681
1661
  /** Database that owns this resource (database-scoped isolation) */
1682
1662
  databaseId: string;
1683
- /** Persona template this agent was created from */
1684
- personaId?: string;
1685
- /** Parent agent (for sub-agent delegation hierarchy) */
1686
- parentId?: string;
1687
- /** Display name for this agent instance */
1688
- name: string;
1689
- /** System prompt override (NULL = inherit from persona) */
1690
- systemPrompt?: string;
1691
- /** Per-instance config overrides (model, temperature, tools) */
1692
- config?: Record<string, unknown>;
1693
- /** Agent lifecycle status: active, paused, terminated */
1694
- status?: string;
1663
+ id?: string;
1695
1664
  /** If true, agent is deleted when its spawning thread is deleted */
1696
1665
  isEphemeral?: boolean;
1697
- }
1698
- /** An input for mutations affecting `AgentThread` */
1699
- export interface AgentThreadInput {
1700
- id?: string;
1701
- createdAt?: string;
1702
- updatedAt?: string;
1703
- /** User who owns this thread */
1666
+ /** Display name for this agent instance */
1667
+ name: string;
1668
+ /** Human who owns/manages this agent */
1704
1669
  ownerId?: string;
1705
- /** Database that owns this resource (database-scoped isolation) */
1706
- databaseId: string;
1707
- /** Current status of this thread */
1670
+ /** Parent agent (for sub-agent delegation hierarchy) */
1671
+ parentId?: string;
1672
+ /** Persona template this agent was created from */
1673
+ personaId?: string;
1674
+ /** Agent lifecycle status: active, paused, terminated */
1708
1675
  status?: string;
1709
- /** Whether this record has been archived by the user */
1710
- isArchived?: boolean;
1711
- /** Timestamp when this record was archived, NULL if active */
1712
- archivedAt?: string;
1713
- /** Human-readable conversation title */
1714
- title?: string;
1715
- /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */
1716
- mode?: string;
1717
- /** LLM model id this thread is bound to */
1718
- model?: string;
1719
- /** System prompt active for this thread */
1676
+ /** System prompt override (NULL = inherit from persona) */
1720
1677
  systemPrompt?: string;
1721
- /** User-defined labels for organizing and filtering threads */
1722
- tags?: string[];
1723
- /** Optional FK to a shared prompt template */
1724
- promptTemplateId?: string;
1725
- /** Agent instance assigned to this thread */
1726
- agentId?: string;
1727
- /** Parent thread that spawned this sub-conversation */
1728
- parentThreadId?: string;
1678
+ updatedAt?: string;
1729
1679
  }
1730
1680
  /** An input for mutations affecting `AgentMessage` */
1731
1681
  export interface AgentMessageInput {
1732
- id?: string;
1733
- createdAt?: string;
1734
- updatedAt?: string;
1735
1682
  /** User who authored this message */
1736
1683
  actorId?: string;
1684
+ /** Agent that authored this message (NULL for human messages) */
1685
+ agentId?: string;
1686
+ /** Who authored this message: user or assistant */
1687
+ authorRole: string;
1688
+ createdAt?: string;
1689
+ /** Database that owns this resource (database-scoped isolation) */
1690
+ databaseId: string;
1691
+ id?: string;
1692
+ /** LLM model that generated this response */
1693
+ model?: string;
1737
1694
  /** Message content: TextPart and ToolPart array */
1738
1695
  parts?: Record<string, unknown>;
1739
1696
  /** Foreign key to agent_thread */
1740
1697
  threadId: string;
1698
+ updatedAt?: string;
1699
+ }
1700
+ /** An input for mutations affecting `AgentPersona` */
1701
+ export interface AgentPersonaInput {
1702
+ /** Model preferences, temperature, tool access, constraints */
1703
+ config?: Record<string, unknown>;
1704
+ createdAt?: string;
1705
+ createdBy?: string;
1741
1706
  /** Database that owns this resource (database-scoped isolation) */
1742
1707
  databaseId: string;
1743
- /** Who authored this message: user or assistant */
1744
- authorRole: string;
1745
- /** LLM model that generated this response */
1746
- model?: string;
1747
- /** Agent that authored this message (NULL for human messages) */
1748
- agentId?: string;
1749
- }
1750
- /** An input for mutations affecting `AgentTask` */
1751
- export interface AgentTaskInput {
1708
+ /** Brief description of this persona role */
1709
+ description?: string;
1752
1710
  id?: string;
1753
- createdAt?: string;
1711
+ /** Whether this persona is available for use */
1712
+ isActive?: boolean;
1713
+ /** Display name for this persona */
1714
+ name: string;
1715
+ /** Slugs of agent_resource entries to link when spawning */
1716
+ resources?: string[];
1717
+ /** Unique human-readable identifier for this persona */
1718
+ slug: string;
1719
+ /** Default system prompt for agents using this persona */
1720
+ systemPrompt?: string;
1754
1721
  updatedAt?: string;
1755
- /** User who authored this task */
1756
- actorId?: string;
1757
- /** Current status of this task */
1758
- status?: string;
1759
- /** Foreign key to agent_plan */
1760
- planId: string;
1722
+ updatedBy?: string;
1723
+ }
1724
+ /** An input for mutations affecting `AgentPlan` */
1725
+ export interface AgentPlanInput {
1726
+ createdAt?: string;
1761
1727
  /** Database that owns this resource (database-scoped isolation) */
1762
1728
  databaseId: string;
1763
- /** Natural-language description of the work to do */
1764
- description: string;
1765
- /** Who created the task: agent or user */
1766
- source?: string;
1767
- /** Error message captured when the task failed */
1768
- error?: string;
1769
- /** Position within the plan (for ordered task lists) */
1770
- orderIndex?: number;
1771
- /** Whether this task is an approval gate requiring human decision */
1772
- requiresApproval?: boolean;
1773
- /** Approval decision: pending, approved, rejected (NULL if not an approval task) */
1774
- approvalStatus?: string;
1775
- /** User who approved or rejected this task */
1776
- approvedBy?: string;
1777
- /** Timestamp of the approval or rejection decision */
1778
- approvedAt?: string;
1779
- /** Reviewer feedback or reason for the decision */
1780
- approvalFeedback?: string;
1729
+ /** Overall goal or context for this plan */
1730
+ description?: string;
1731
+ id?: string;
1732
+ /** User who owns this plan */
1733
+ ownerId?: string;
1734
+ /** Plan lifecycle: draft, active, completed, failed, cancelled */
1735
+ status?: string;
1736
+ /** Foreign key to agent_thread */
1737
+ threadId: string;
1738
+ /** Human-readable plan name */
1739
+ title: string;
1740
+ updatedAt?: string;
1781
1741
  }
1782
1742
  /** An input for mutations affecting `AgentPrompt` */
1783
1743
  export interface AgentPromptInput {
1784
- id?: string;
1744
+ /** The system prompt template content */
1745
+ content: string;
1785
1746
  createdAt?: string;
1786
- updatedAt?: string;
1787
1747
  createdBy?: string;
1788
- updatedBy?: string;
1789
1748
  /** Database that owns this resource (database-scoped isolation) */
1790
1749
  databaseId: string;
1791
- /** Unique name for lookup (e.g. default, code-review, sales-assistant) */
1792
- name: string;
1793
- /** The system prompt template content */
1794
- content: string;
1795
1750
  /** What this prompt template is for */
1796
1751
  description?: string;
1752
+ id?: string;
1797
1753
  /** Whether this is the default prompt for the entity/app */
1798
1754
  isDefault?: boolean;
1799
1755
  /** Variables, tags, category metadata */
1800
1756
  metadata?: Record<string, unknown>;
1757
+ /** Unique name for lookup (e.g. default, code-review, sales-assistant) */
1758
+ name: string;
1759
+ updatedAt?: string;
1760
+ updatedBy?: string;
1801
1761
  }
1802
1762
  /** An input for mutations affecting `AgentResourceChunk` */
1803
1763
  export interface AgentResourceChunkInput {
1804
- id?: string;
1805
1764
  agentResourceId: string;
1806
1765
  body: string;
1807
1766
  chunkIndex?: number;
1808
- embedding?: number[];
1809
- metadata?: Record<string, unknown>;
1810
- createdAt?: string;
1811
- updatedAt?: string;
1812
- /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */
1813
- embeddingText?: string;
1814
- }
1815
- /** An input for mutations affecting `AgentPersona` */
1816
- export interface AgentPersonaInput {
1817
- id?: string;
1818
1767
  createdAt?: string;
1819
- updatedAt?: string;
1820
- createdBy?: string;
1821
- updatedBy?: string;
1822
- /** Database that owns this resource (database-scoped isolation) */
1823
- databaseId: string;
1824
- /** Unique human-readable identifier for this persona */
1825
- slug: string;
1826
- /** Display name for this persona */
1827
- name: string;
1828
- /** Brief description of this persona role */
1829
- description?: string;
1830
- /** Default system prompt for agents using this persona */
1831
- systemPrompt?: string;
1832
- /** Slugs of agent_resource entries to link when spawning */
1833
- resources?: string[];
1834
- /** Model preferences, temperature, tool access, constraints */
1835
- config?: Record<string, unknown>;
1836
- /** Whether this persona is available for use */
1837
- isActive?: boolean;
1768
+ embedding?: number[];
1769
+ /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */
1770
+ embeddingText?: string;
1771
+ id?: string;
1772
+ metadata?: Record<string, unknown>;
1773
+ updatedAt?: string;
1838
1774
  }
1839
1775
  /** An input for mutations affecting `AgentResource` */
1840
1776
  export interface AgentResourceInput {
1841
- id?: string;
1777
+ /** Timestamp when this record was archived, NULL if active */
1778
+ archivedAt?: string;
1779
+ /** Full content (instructions for skills, reference text for knowledge) */
1780
+ body: string;
1842
1781
  createdAt?: string;
1843
- updatedAt?: string;
1844
1782
  createdBy?: string;
1845
- updatedBy?: string;
1846
1783
  /** Database that owns this resource (database-scoped isolation) */
1847
1784
  databaseId: string;
1848
- /** Unique human-readable identifier for portable references */
1849
- slug: string;
1850
- /** Resource type: skill, knowledge, or convention */
1851
- kind?: string;
1852
- /** Resource name or title */
1853
- title: string;
1854
1785
  /** Brief description of this resource */
1855
1786
  description?: string;
1856
- /** Full content (instructions for skills, reference text for knowledge) */
1857
- body: string;
1858
- /** Keywords for deterministic retrieval routing */
1859
- keywords?: string[];
1787
+ embedding?: number[];
1788
+ /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */
1789
+ embeddingText?: string;
1790
+ embeddingUpdatedAt?: string;
1791
+ id?: string;
1860
1792
  /** Whether this resource is active and retrievable */
1861
1793
  isActive?: boolean;
1862
- /** Structured metadata: category, version, author, custom attributes */
1863
- metadata?: Record<string, unknown>;
1864
1794
  /** Whether this record has been archived by the user */
1865
1795
  isArchived?: boolean;
1796
+ /** Keywords for deterministic retrieval routing */
1797
+ keywords?: string[];
1798
+ /** Resource type: skill, knowledge, or convention */
1799
+ kind?: string;
1800
+ /** Structured metadata: category, version, author, custom attributes */
1801
+ metadata?: Record<string, unknown>;
1802
+ /** Unique human-readable identifier for portable references */
1803
+ slug: string;
1804
+ /** Resource name or title */
1805
+ title: string;
1806
+ updatedAt?: string;
1807
+ updatedBy?: string;
1808
+ }
1809
+ /** An input for mutations affecting `AgentTask` */
1810
+ export interface AgentTaskInput {
1811
+ /** User who authored this task */
1812
+ actorId?: string;
1813
+ /** Reviewer feedback or reason for the decision */
1814
+ approvalFeedback?: string;
1815
+ /** Approval decision: pending, approved, rejected (NULL if not an approval task) */
1816
+ approvalStatus?: string;
1817
+ /** Timestamp of the approval or rejection decision */
1818
+ approvedAt?: string;
1819
+ /** User who approved or rejected this task */
1820
+ approvedBy?: string;
1821
+ createdAt?: string;
1822
+ /** Database that owns this resource (database-scoped isolation) */
1823
+ databaseId: string;
1824
+ /** Natural-language description of the work to do */
1825
+ description: string;
1826
+ /** Error message captured when the task failed */
1827
+ error?: string;
1828
+ id?: string;
1829
+ /** Position within the plan (for ordered task lists) */
1830
+ orderIndex?: number;
1831
+ /** Foreign key to agent_plan */
1832
+ planId: string;
1833
+ /** Whether this task is an approval gate requiring human decision */
1834
+ requiresApproval?: boolean;
1835
+ /** Who created the task: agent or user */
1836
+ source?: string;
1837
+ /** Current status of this task */
1838
+ status?: string;
1839
+ updatedAt?: string;
1840
+ }
1841
+ /** An input for mutations affecting `AgentThread` */
1842
+ export interface AgentThreadInput {
1843
+ /** Agent instance assigned to this thread */
1844
+ agentId?: string;
1866
1845
  /** Timestamp when this record was archived, NULL if active */
1867
1846
  archivedAt?: string;
1868
- embedding?: number[];
1869
- embeddingUpdatedAt?: string;
1870
- /** Natural language text to embed server-side into the `embedding` vector column. Mutually exclusive with `embedding` — provide one or the other. Requires the LLM plugin to be configured with an embedding provider. */
1871
- embeddingText?: string;
1847
+ createdAt?: string;
1848
+ /** Database that owns this resource (database-scoped isolation) */
1849
+ databaseId: string;
1850
+ id?: string;
1851
+ /** Whether this record has been archived by the user */
1852
+ isArchived?: boolean;
1853
+ /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */
1854
+ mode?: string;
1855
+ /** LLM model id this thread is bound to */
1856
+ model?: string;
1857
+ /** User who owns this thread */
1858
+ ownerId?: string;
1859
+ /** Parent thread that spawned this sub-conversation */
1860
+ parentThreadId?: string;
1861
+ /** Optional FK to a shared prompt template */
1862
+ promptTemplateId?: string;
1863
+ /** Current status of this thread */
1864
+ status?: string;
1865
+ /** System prompt active for this thread */
1866
+ systemPrompt?: string;
1867
+ /** User-defined labels for organizing and filtering threads */
1868
+ tags?: string[];
1869
+ /** Human-readable conversation title */
1870
+ title?: string;
1871
+ updatedAt?: string;
1872
1872
  }
1873
- /** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */
1874
- export interface AgentTaskFilter {
1875
- /** Filter by the object’s `id` field. */
1876
- id?: UUIDFilter;
1877
- /** Filter by the object’s `createdAt` field. */
1878
- createdAt?: DatetimeFilter;
1879
- /** Filter by the object’s `updatedAt` field. */
1880
- updatedAt?: DatetimeFilter;
1873
+ /** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1874
+ export interface AgentMessageFilter {
1881
1875
  /** Filter by the object’s `actorId` field. */
1882
1876
  actorId?: UUIDFilter;
1883
- /** Filter by the object’s `status` field. */
1884
- status?: StringFilter;
1885
- /** Filter by the object’s `planId` field. */
1886
- planId?: UUIDFilter;
1877
+ /** Filter by the object’s `agent` relation. */
1878
+ agent?: AgentFilter;
1879
+ /** A related `agent` exists. */
1880
+ agentExists?: boolean;
1881
+ /** Filter by the object’s `agentId` field. */
1882
+ agentId?: UUIDFilter;
1883
+ /** Checks for all expressions in this list. */
1884
+ and?: AgentMessageFilter[];
1885
+ /** Filter by the object’s `authorRole` field. */
1886
+ authorRole?: StringFilter;
1887
+ /** Filter by the object’s `createdAt` field. */
1888
+ createdAt?: DatetimeFilter;
1887
1889
  /** Filter by the object’s `databaseId` field. */
1888
1890
  databaseId?: UUIDFilter;
1889
- /** Filter by the object’s `description` field. */
1890
- description?: StringFilter;
1891
- /** Filter by the object’s `source` field. */
1892
- source?: StringFilter;
1893
- /** Filter by the object’s `error` field. */
1894
- error?: StringFilter;
1895
- /** Filter by the object’s `orderIndex` field. */
1896
- orderIndex?: IntFilter;
1897
- /** Filter by the object’s `requiresApproval` field. */
1898
- requiresApproval?: BooleanFilter;
1899
- /** Filter by the object’s `approvalStatus` field. */
1900
- approvalStatus?: StringFilter;
1901
- /** Filter by the object’s `approvedBy` field. */
1902
- approvedBy?: UUIDFilter;
1903
- /** Filter by the object’s `approvedAt` field. */
1904
- approvedAt?: DatetimeFilter;
1905
- /** Filter by the object’s `approvalFeedback` field. */
1906
- approvalFeedback?: StringFilter;
1907
- /** Checks for all expressions in this list. */
1908
- and?: AgentTaskFilter[];
1909
- /** Checks for any expressions in this list. */
1910
- or?: AgentTaskFilter[];
1891
+ /** Filter by the object’s `id` field. */
1892
+ id?: UUIDFilter;
1893
+ /** Filter by the object’s `model` field. */
1894
+ model?: StringFilter;
1911
1895
  /** Negates the expression. */
1912
- not?: AgentTaskFilter;
1913
- /** Filter by the object’s `plan` relation. */
1914
- plan?: AgentPlanFilter;
1896
+ not?: AgentMessageFilter;
1897
+ /** Checks for any expressions in this list. */
1898
+ or?: AgentMessageFilter[];
1899
+ /** Filter by the object’s `parts` field. */
1900
+ parts?: JSONFilter;
1901
+ /** Filter by the object’s `thread` relation. */
1902
+ thread?: AgentThreadFilter;
1903
+ /** Filter by the object’s `threadId` field. */
1904
+ threadId?: UUIDFilter;
1905
+ /** Filter by the object’s `updatedAt` field. */
1906
+ updatedAt?: DatetimeFilter;
1915
1907
  }
1916
1908
  /** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */
1917
1909
  export interface AgentThreadFilter {
1918
- /** Filter by the object’s `id` field. */
1919
- id?: UUIDFilter;
1910
+ /** Filter by the object’s `agent` relation. */
1911
+ agent?: AgentFilter;
1912
+ /** A related `agent` exists. */
1913
+ agentExists?: boolean;
1914
+ /** Filter by the object’s `agentId` field. */
1915
+ agentId?: UUIDFilter;
1916
+ /** Filter by the object’s `agentMessagesByThreadId` relation. */
1917
+ agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter;
1918
+ /** `agentMessagesByThreadId` exist. */
1919
+ agentMessagesByThreadIdExist?: boolean;
1920
+ /** Filter by the object’s `agentPlansByThreadId` relation. */
1921
+ agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter;
1922
+ /** `agentPlansByThreadId` exist. */
1923
+ agentPlansByThreadIdExist?: boolean;
1924
+ /** Filter by the object’s `agentThreadsByParentThreadId` relation. */
1925
+ agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter;
1926
+ /** `agentThreadsByParentThreadId` exist. */
1927
+ agentThreadsByParentThreadIdExist?: boolean;
1928
+ /** Checks for all expressions in this list. */
1929
+ and?: AgentThreadFilter[];
1930
+ /** Filter by the object’s `archivedAt` field. */
1931
+ archivedAt?: DatetimeFilter;
1920
1932
  /** Filter by the object’s `createdAt` field. */
1921
1933
  createdAt?: DatetimeFilter;
1922
- /** Filter by the object’s `updatedAt` field. */
1923
- updatedAt?: DatetimeFilter;
1924
- /** Filter by the object’s `ownerId` field. */
1925
- ownerId?: UUIDFilter;
1926
1934
  /** Filter by the object’s `databaseId` field. */
1927
1935
  databaseId?: UUIDFilter;
1928
- /** Filter by the object’s `status` field. */
1929
- status?: StringFilter;
1936
+ /** Filter by the object’s `id` field. */
1937
+ id?: UUIDFilter;
1930
1938
  /** Filter by the object’s `isArchived` field. */
1931
1939
  isArchived?: BooleanFilter;
1932
- /** Filter by the object’s `archivedAt` field. */
1933
- archivedAt?: DatetimeFilter;
1934
- /** Filter by the object’s `title` field. */
1935
- title?: StringFilter;
1936
1940
  /** Filter by the object’s `mode` field. */
1937
1941
  mode?: StringFilter;
1938
1942
  /** Filter by the object’s `model` field. */
1939
1943
  model?: StringFilter;
1940
- /** Filter by the object’s `systemPrompt` field. */
1941
- systemPrompt?: StringFilter;
1942
- /** Filter by the object’s `tags` field. */
1943
- tags?: StringListFilter;
1944
- /** Filter by the object’s `promptTemplateId` field. */
1945
- promptTemplateId?: UUIDFilter;
1946
- /** Filter by the object’s `agentId` field. */
1947
- agentId?: UUIDFilter;
1948
- /** Filter by the object’s `parentThreadId` field. */
1949
- parentThreadId?: UUIDFilter;
1950
- /** Checks for all expressions in this list. */
1951
- and?: AgentThreadFilter[];
1952
- /** Checks for any expressions in this list. */
1953
- or?: AgentThreadFilter[];
1954
1944
  /** Negates the expression. */
1955
1945
  not?: AgentThreadFilter;
1956
- /** Filter by the object’s `agent` relation. */
1957
- agent?: AgentFilter;
1958
- /** A related `agent` exists. */
1959
- agentExists?: boolean;
1946
+ /** Checks for any expressions in this list. */
1947
+ or?: AgentThreadFilter[];
1948
+ /** Filter by the object’s `ownerId` field. */
1949
+ ownerId?: UUIDFilter;
1960
1950
  /** Filter by the object’s `parentThread` relation. */
1961
1951
  parentThread?: AgentThreadFilter;
1962
1952
  /** A related `parentThread` exists. */
1963
1953
  parentThreadExists?: boolean;
1954
+ /** Filter by the object’s `parentThreadId` field. */
1955
+ parentThreadId?: UUIDFilter;
1964
1956
  /** Filter by the object’s `promptTemplate` relation. */
1965
1957
  promptTemplate?: AgentPromptFilter;
1966
1958
  /** A related `promptTemplate` exists. */
1967
1959
  promptTemplateExists?: boolean;
1968
- /** Filter by the object’s `agentThreadsByParentThreadId` relation. */
1969
- agentThreadsByParentThreadId?: AgentThreadToManyAgentThreadFilter;
1970
- /** `agentThreadsByParentThreadId` exist. */
1971
- agentThreadsByParentThreadIdExist?: boolean;
1972
- /** Filter by the object’s `agentMessagesByThreadId` relation. */
1973
- agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter;
1974
- /** `agentMessagesByThreadId` exist. */
1975
- agentMessagesByThreadIdExist?: boolean;
1976
- /** Filter by the object’s `agentPlansByThreadId` relation. */
1977
- agentPlansByThreadId?: AgentThreadToManyAgentPlanFilter;
1978
- /** `agentPlansByThreadId` exist. */
1979
- agentPlansByThreadIdExist?: boolean;
1980
- }
1981
- /** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1982
- export interface AgentMessageFilter {
1983
- /** Filter by the object’s `id` field. */
1984
- id?: UUIDFilter;
1985
- /** Filter by the object’s `createdAt` field. */
1986
- createdAt?: DatetimeFilter;
1960
+ /** Filter by the object’s `promptTemplateId` field. */
1961
+ promptTemplateId?: UUIDFilter;
1962
+ /** Filter by the object’s `status` field. */
1963
+ status?: StringFilter;
1964
+ /** Filter by the object’s `systemPrompt` field. */
1965
+ systemPrompt?: StringFilter;
1966
+ /** Filter by the object’s `tags` field. */
1967
+ tags?: StringListFilter;
1968
+ /** Filter by the object’s `title` field. */
1969
+ title?: StringFilter;
1987
1970
  /** Filter by the object’s `updatedAt` field. */
1988
1971
  updatedAt?: DatetimeFilter;
1989
- /** Filter by the object’s `actorId` field. */
1990
- actorId?: UUIDFilter;
1991
- /** Filter by the object’s `parts` field. */
1992
- parts?: JSONFilter;
1993
- /** Filter by the object’s `threadId` field. */
1994
- threadId?: UUIDFilter;
1995
- /** Filter by the object’s `databaseId` field. */
1996
- databaseId?: UUIDFilter;
1997
- /** Filter by the object’s `authorRole` field. */
1998
- authorRole?: StringFilter;
1999
- /** Filter by the object’s `model` field. */
2000
- model?: StringFilter;
2001
- /** Filter by the object’s `agentId` field. */
2002
- agentId?: UUIDFilter;
2003
- /** Checks for all expressions in this list. */
2004
- and?: AgentMessageFilter[];
2005
- /** Checks for any expressions in this list. */
2006
- or?: AgentMessageFilter[];
2007
- /** Negates the expression. */
2008
- not?: AgentMessageFilter;
2009
- /** Filter by the object’s `agent` relation. */
2010
- agent?: AgentFilter;
2011
- /** A related `agent` exists. */
2012
- agentExists?: boolean;
2013
- /** Filter by the object’s `thread` relation. */
2014
- thread?: AgentThreadFilter;
2015
1972
  }
2016
1973
  /** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */
2017
1974
  export interface AgentFilter {
2018
- /** Filter by the object’s `id` field. */
2019
- id?: UUIDFilter;
1975
+ /** Filter by the object’s `agentMessages` relation. */
1976
+ agentMessages?: AgentToManyAgentMessageFilter;
1977
+ /** `agentMessages` exist. */
1978
+ agentMessagesExist?: boolean;
1979
+ /** Filter by the object’s `agentThreads` relation. */
1980
+ agentThreads?: AgentToManyAgentThreadFilter;
1981
+ /** `agentThreads` exist. */
1982
+ agentThreadsExist?: boolean;
1983
+ /** Checks for all expressions in this list. */
1984
+ and?: AgentFilter[];
1985
+ /** Filter by the object’s `childAgents` relation. */
1986
+ childAgents?: AgentToManyAgentFilter;
1987
+ /** `childAgents` exist. */
1988
+ childAgentsExist?: boolean;
1989
+ /** Filter by the object’s `config` field. */
1990
+ config?: JSONFilter;
2020
1991
  /** Filter by the object’s `createdAt` field. */
2021
1992
  createdAt?: DatetimeFilter;
2022
- /** Filter by the object’s `updatedAt` field. */
2023
- updatedAt?: DatetimeFilter;
2024
- /** Filter by the object’s `ownerId` field. */
2025
- ownerId?: UUIDFilter;
2026
1993
  /** Filter by the object’s `databaseId` field. */
2027
1994
  databaseId?: UUIDFilter;
2028
- /** Filter by the object’s `personaId` field. */
2029
- personaId?: UUIDFilter;
2030
- /** Filter by the object’s `parentId` field. */
2031
- parentId?: UUIDFilter;
2032
- /** Filter by the object’s `name` field. */
2033
- name?: StringFilter;
2034
- /** Filter by the object’s `systemPrompt` field. */
2035
- systemPrompt?: StringFilter;
2036
- /** Filter by the object’s `config` field. */
2037
- config?: JSONFilter;
2038
- /** Filter by the object’s `status` field. */
2039
- status?: StringFilter;
1995
+ /** Filter by the object’s `id` field. */
1996
+ id?: UUIDFilter;
2040
1997
  /** Filter by the object’s `isEphemeral` field. */
2041
1998
  isEphemeral?: BooleanFilter;
2042
- /** Checks for all expressions in this list. */
2043
- and?: AgentFilter[];
2044
- /** Checks for any expressions in this list. */
2045
- or?: AgentFilter[];
1999
+ /** Filter by the object’s `name` field. */
2000
+ name?: StringFilter;
2046
2001
  /** Negates the expression. */
2047
2002
  not?: AgentFilter;
2003
+ /** Checks for any expressions in this list. */
2004
+ or?: AgentFilter[];
2005
+ /** Filter by the object’s `ownerId` field. */
2006
+ ownerId?: UUIDFilter;
2048
2007
  /** Filter by the object’s `parent` relation. */
2049
2008
  parent?: AgentFilter;
2050
2009
  /** A related `parent` exists. */
2051
2010
  parentExists?: boolean;
2011
+ /** Filter by the object’s `parentId` field. */
2012
+ parentId?: UUIDFilter;
2052
2013
  /** Filter by the object’s `persona` relation. */
2053
2014
  persona?: AgentPersonaFilter;
2054
2015
  /** A related `persona` exists. */
2055
2016
  personaExists?: boolean;
2056
- /** Filter by the object’s `agentThreads` relation. */
2057
- agentThreads?: AgentToManyAgentThreadFilter;
2058
- /** `agentThreads` exist. */
2059
- agentThreadsExist?: boolean;
2060
- /** Filter by the object’s `agentMessages` relation. */
2061
- agentMessages?: AgentToManyAgentMessageFilter;
2062
- /** `agentMessages` exist. */
2063
- agentMessagesExist?: boolean;
2064
- /** Filter by the object’s `childAgents` relation. */
2065
- childAgents?: AgentToManyAgentFilter;
2066
- /** `childAgents` exist. */
2067
- childAgentsExist?: boolean;
2017
+ /** Filter by the object’s `personaId` field. */
2018
+ personaId?: UUIDFilter;
2019
+ /** Filter by the object’s `status` field. */
2020
+ status?: StringFilter;
2021
+ /** Filter by the object’s `systemPrompt` field. */
2022
+ systemPrompt?: StringFilter;
2023
+ /** Filter by the object’s `updatedAt` field. */
2024
+ updatedAt?: DatetimeFilter;
2068
2025
  }
2069
- /** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */
2070
- export interface AgentPlanFilter {
2071
- /** Filter by the object’s `id` field. */
2072
- id?: UUIDFilter;
2026
+ /** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */
2027
+ export interface AgentTaskFilter {
2028
+ /** Filter by the object’s `actorId` field. */
2029
+ actorId?: UUIDFilter;
2030
+ /** Checks for all expressions in this list. */
2031
+ and?: AgentTaskFilter[];
2032
+ /** Filter by the object’s `approvalFeedback` field. */
2033
+ approvalFeedback?: StringFilter;
2034
+ /** Filter by the object’s `approvalStatus` field. */
2035
+ approvalStatus?: StringFilter;
2036
+ /** Filter by the object’s `approvedAt` field. */
2037
+ approvedAt?: DatetimeFilter;
2038
+ /** Filter by the object’s `approvedBy` field. */
2039
+ approvedBy?: UUIDFilter;
2073
2040
  /** Filter by the object’s `createdAt` field. */
2074
2041
  createdAt?: DatetimeFilter;
2075
- /** Filter by the object’s `updatedAt` field. */
2076
- updatedAt?: DatetimeFilter;
2077
- /** Filter by the object’s `ownerId` field. */
2078
- ownerId?: UUIDFilter;
2079
- /** Filter by the object’s `threadId` field. */
2080
- threadId?: UUIDFilter;
2081
2042
  /** Filter by the object’s `databaseId` field. */
2082
2043
  databaseId?: UUIDFilter;
2083
- /** Filter by the object’s `title` field. */
2084
- title?: StringFilter;
2085
2044
  /** Filter by the object’s `description` field. */
2086
2045
  description?: StringFilter;
2046
+ /** Filter by the object’s `error` field. */
2047
+ error?: StringFilter;
2048
+ /** Filter by the object’s `id` field. */
2049
+ id?: UUIDFilter;
2050
+ /** Negates the expression. */
2051
+ not?: AgentTaskFilter;
2052
+ /** Checks for any expressions in this list. */
2053
+ or?: AgentTaskFilter[];
2054
+ /** Filter by the object’s `orderIndex` field. */
2055
+ orderIndex?: IntFilter;
2056
+ /** Filter by the object’s `plan` relation. */
2057
+ plan?: AgentPlanFilter;
2058
+ /** Filter by the object’s `planId` field. */
2059
+ planId?: UUIDFilter;
2060
+ /** Filter by the object’s `requiresApproval` field. */
2061
+ requiresApproval?: BooleanFilter;
2062
+ /** Filter by the object’s `source` field. */
2063
+ source?: StringFilter;
2087
2064
  /** Filter by the object’s `status` field. */
2088
2065
  status?: StringFilter;
2089
- /** Checks for all expressions in this list. */
2090
- and?: AgentPlanFilter[];
2091
- /** Checks for any expressions in this list. */
2092
- or?: AgentPlanFilter[];
2093
- /** Negates the expression. */
2094
- not?: AgentPlanFilter;
2095
- /** Filter by the object’s `thread` relation. */
2096
- thread?: AgentThreadFilter;
2097
- /** Filter by the object’s `agentTasksByPlanId` relation. */
2098
- agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter;
2099
- /** `agentTasksByPlanId` exist. */
2100
- agentTasksByPlanIdExist?: boolean;
2066
+ /** Filter by the object’s `updatedAt` field. */
2067
+ updatedAt?: DatetimeFilter;
2101
2068
  }
2102
2069
  /** Similarity metric for vector search */
2103
- export type VectorMetric = 'COSINE' | 'L2' | 'IP';
2070
+ export type VectorMetric = 'COSINE' | 'IP' | 'L2';
2104
2071
  /** A filter to be used against `AgentResourceChunk` object types. All fields are combined with a logical ‘and.’ */
2105
2072
  export interface AgentResourceChunkFilter {
2106
- /** Filter by the object’s `id` field. */
2107
- id?: UUIDFilter;
2073
+ /** Filter by the object’s `agentResource` relation. */
2074
+ agentResource?: AgentResourceFilter;
2108
2075
  /** Filter by the object’s `agentResourceId` field. */
2109
2076
  agentResourceId?: UUIDFilter;
2077
+ /** Checks for all expressions in this list. */
2078
+ and?: AgentResourceChunkFilter[];
2110
2079
  /** Filter by the object’s `body` field. */
2111
2080
  body?: StringFilter;
2112
2081
  /** Filter by the object’s `chunkIndex` field. */
2113
2082
  chunkIndex?: IntFilter;
2083
+ /** Filter by the object’s `createdAt` field. */
2084
+ createdAt?: DatetimeFilter;
2114
2085
  /** Filter by the object’s `embedding` field. */
2115
2086
  embedding?: VectorFilter;
2087
+ /** Filter by the object’s `id` field. */
2088
+ id?: UUIDFilter;
2116
2089
  /** Filter by the object’s `metadata` field. */
2117
2090
  metadata?: JSONFilter;
2118
- /** Filter by the object’s `createdAt` field. */
2119
- createdAt?: DatetimeFilter;
2120
- /** Filter by the object’s `updatedAt` field. */
2121
- updatedAt?: DatetimeFilter;
2122
- /** Checks for all expressions in this list. */
2123
- and?: AgentResourceChunkFilter[];
2124
- /** Checks for any expressions in this list. */
2125
- or?: AgentResourceChunkFilter[];
2126
2091
  /** Negates the expression. */
2127
2092
  not?: AgentResourceChunkFilter;
2128
- /** Filter by the object’s `agentResource` relation. */
2129
- agentResource?: AgentResourceFilter;
2093
+ /** Checks for any expressions in this list. */
2094
+ or?: AgentResourceChunkFilter[];
2095
+ /** Filter by the object’s `updatedAt` field. */
2096
+ updatedAt?: DatetimeFilter;
2130
2097
  /** VECTOR search on the `embedding` column. */
2131
2098
  vectorEmbedding?: VectorNearbyInput;
2132
2099
  }
2100
+ /** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */
2101
+ export interface AgentPlanFilter {
2102
+ /** Filter by the object’s `agentTasksByPlanId` relation. */
2103
+ agentTasksByPlanId?: AgentPlanToManyAgentTaskFilter;
2104
+ /** `agentTasksByPlanId` exist. */
2105
+ agentTasksByPlanIdExist?: boolean;
2106
+ /** Checks for all expressions in this list. */
2107
+ and?: AgentPlanFilter[];
2108
+ /** Filter by the object’s `createdAt` field. */
2109
+ createdAt?: DatetimeFilter;
2110
+ /** Filter by the object’s `databaseId` field. */
2111
+ databaseId?: UUIDFilter;
2112
+ /** Filter by the object’s `description` field. */
2113
+ description?: StringFilter;
2114
+ /** Filter by the object’s `id` field. */
2115
+ id?: UUIDFilter;
2116
+ /** Negates the expression. */
2117
+ not?: AgentPlanFilter;
2118
+ /** Checks for any expressions in this list. */
2119
+ or?: AgentPlanFilter[];
2120
+ /** Filter by the object’s `ownerId` field. */
2121
+ ownerId?: UUIDFilter;
2122
+ /** Filter by the object’s `status` field. */
2123
+ status?: StringFilter;
2124
+ /** Filter by the object’s `thread` relation. */
2125
+ thread?: AgentThreadFilter;
2126
+ /** Filter by the object’s `threadId` field. */
2127
+ threadId?: UUIDFilter;
2128
+ /** Filter by the object’s `title` field. */
2129
+ title?: StringFilter;
2130
+ /** Filter by the object’s `updatedAt` field. */
2131
+ updatedAt?: DatetimeFilter;
2132
+ }
2133
2133
  /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */
2134
2134
  export interface UUIDFilter {
2135
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2136
- isNull?: boolean;
2137
- /** Equal to the specified value. */
2138
- equalTo?: string;
2139
- /** Not equal to the specified value. */
2140
- notEqualTo?: string;
2141
2135
  /** Not equal to the specified value, treating null like an ordinary value. */
2142
2136
  distinctFrom?: string;
2143
- /** Equal to the specified value, treating null like an ordinary value. */
2144
- notDistinctFrom?: string;
2145
- /** Included in the specified list. */
2146
- in?: string[];
2147
- /** Not included in the specified list. */
2148
- notIn?: string[];
2149
- /** Less than the specified value. */
2150
- lessThan?: string;
2151
- /** Less than or equal to the specified value. */
2152
- lessThanOrEqualTo?: string;
2153
- /** Greater than the specified value. */
2154
- greaterThan?: string;
2155
- /** Greater than or equal to the specified value. */
2156
- greaterThanOrEqualTo?: string;
2157
- }
2158
- /** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */
2159
- export interface DatetimeFilter {
2160
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2161
- isNull?: boolean;
2162
2137
  /** Equal to the specified value. */
2163
- equalTo?: string;
2164
- /** Not equal to the specified value. */
2165
- notEqualTo?: string;
2166
- /** Not equal to the specified value, treating null like an ordinary value. */
2167
- distinctFrom?: string;
2168
- /** Equal to the specified value, treating null like an ordinary value. */
2169
- notDistinctFrom?: string;
2170
- /** Included in the specified list. */
2171
- in?: string[];
2172
- /** Not included in the specified list. */
2173
- notIn?: string[];
2174
- /** Less than the specified value. */
2175
- lessThan?: string;
2176
- /** Less than or equal to the specified value. */
2177
- lessThanOrEqualTo?: string;
2138
+ equalTo?: string;
2178
2139
  /** Greater than the specified value. */
2179
2140
  greaterThan?: string;
2180
2141
  /** Greater than or equal to the specified value. */
2181
2142
  greaterThanOrEqualTo?: string;
2182
- }
2183
- /** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */
2184
- export interface StringFilter {
2185
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2186
- isNull?: boolean;
2187
- /** Equal to the specified value. */
2188
- equalTo?: string;
2189
- /** Not equal to the specified value. */
2190
- notEqualTo?: string;
2191
- /** Not equal to the specified value, treating null like an ordinary value. */
2192
- distinctFrom?: string;
2193
- /** Equal to the specified value, treating null like an ordinary value. */
2194
- notDistinctFrom?: string;
2195
2143
  /** Included in the specified list. */
2196
2144
  in?: string[];
2197
- /** Not included in the specified list. */
2198
- notIn?: string[];
2145
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2146
+ isNull?: boolean;
2199
2147
  /** Less than the specified value. */
2200
2148
  lessThan?: string;
2201
2149
  /** Less than or equal to the specified value. */
2202
2150
  lessThanOrEqualTo?: string;
2151
+ /** Equal to the specified value, treating null like an ordinary value. */
2152
+ notDistinctFrom?: string;
2153
+ /** Not equal to the specified value. */
2154
+ notEqualTo?: string;
2155
+ /** Not included in the specified list. */
2156
+ notIn?: string[];
2157
+ }
2158
+ /** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */
2159
+ export interface StringFilter {
2160
+ /** Not equal to the specified value, treating null like an ordinary value. */
2161
+ distinctFrom?: string;
2162
+ /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */
2163
+ distinctFromInsensitive?: string;
2164
+ /** Ends with the specified string (case-sensitive). */
2165
+ endsWith?: string;
2166
+ /** Ends with the specified string (case-insensitive). */
2167
+ endsWithInsensitive?: string;
2168
+ /** Equal to the specified value. */
2169
+ equalTo?: string;
2170
+ /** Equal to the specified value (case-insensitive). */
2171
+ equalToInsensitive?: string;
2203
2172
  /** Greater than the specified value. */
2204
2173
  greaterThan?: string;
2174
+ /** Greater than the specified value (case-insensitive). */
2175
+ greaterThanInsensitive?: string;
2205
2176
  /** Greater than or equal to the specified value. */
2206
2177
  greaterThanOrEqualTo?: string;
2178
+ /** Greater than or equal to the specified value (case-insensitive). */
2179
+ greaterThanOrEqualToInsensitive?: string;
2180
+ /** Included in the specified list. */
2181
+ in?: string[];
2182
+ /** Included in the specified list (case-insensitive). */
2183
+ inInsensitive?: string[];
2207
2184
  /** Contains the specified string (case-sensitive). */
2208
2185
  includes?: string;
2209
- /** Does not contain the specified string (case-sensitive). */
2210
- notIncludes?: string;
2211
2186
  /** Contains the specified string (case-insensitive). */
2212
2187
  includesInsensitive?: string;
2213
- /** Does not contain the specified string (case-insensitive). */
2214
- notIncludesInsensitive?: string;
2215
- /** Starts with the specified string (case-sensitive). */
2216
- startsWith?: string;
2217
- /** Does not start with the specified string (case-sensitive). */
2218
- notStartsWith?: string;
2219
- /** Starts with the specified string (case-insensitive). */
2220
- startsWithInsensitive?: string;
2221
- /** Does not start with the specified string (case-insensitive). */
2222
- notStartsWithInsensitive?: string;
2223
- /** Ends with the specified string (case-sensitive). */
2224
- endsWith?: string;
2225
- /** Does not end with the specified string (case-sensitive). */
2226
- notEndsWith?: string;
2227
- /** Ends with the specified string (case-insensitive). */
2228
- endsWithInsensitive?: string;
2229
- /** Does not end with the specified string (case-insensitive). */
2230
- notEndsWithInsensitive?: string;
2188
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2189
+ isNull?: boolean;
2190
+ /** Less than the specified value. */
2191
+ lessThan?: string;
2192
+ /** Less than the specified value (case-insensitive). */
2193
+ lessThanInsensitive?: string;
2194
+ /** Less than or equal to the specified value. */
2195
+ lessThanOrEqualTo?: string;
2196
+ /** Less than or equal to the specified value (case-insensitive). */
2197
+ lessThanOrEqualToInsensitive?: string;
2231
2198
  /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
2232
2199
  like?: string;
2233
- /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
2234
- notLike?: string;
2235
2200
  /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
2236
2201
  likeInsensitive?: string;
2237
- /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
2238
- notLikeInsensitive?: string;
2239
- /** Equal to the specified value (case-insensitive). */
2240
- equalToInsensitive?: string;
2241
- /** Not equal to the specified value (case-insensitive). */
2242
- notEqualToInsensitive?: string;
2243
- /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */
2244
- distinctFromInsensitive?: string;
2202
+ /** Equal to the specified value, treating null like an ordinary value. */
2203
+ notDistinctFrom?: string;
2245
2204
  /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */
2246
2205
  notDistinctFromInsensitive?: string;
2247
- /** Included in the specified list (case-insensitive). */
2248
- inInsensitive?: string[];
2206
+ /** Does not end with the specified string (case-sensitive). */
2207
+ notEndsWith?: string;
2208
+ /** Does not end with the specified string (case-insensitive). */
2209
+ notEndsWithInsensitive?: string;
2210
+ /** Not equal to the specified value. */
2211
+ notEqualTo?: string;
2212
+ /** Not equal to the specified value (case-insensitive). */
2213
+ notEqualToInsensitive?: string;
2214
+ /** Not included in the specified list. */
2215
+ notIn?: string[];
2249
2216
  /** Not included in the specified list (case-insensitive). */
2250
2217
  notInInsensitive?: string[];
2251
- /** Less than the specified value (case-insensitive). */
2252
- lessThanInsensitive?: string;
2253
- /** Less than or equal to the specified value (case-insensitive). */
2254
- lessThanOrEqualToInsensitive?: string;
2255
- /** Greater than the specified value (case-insensitive). */
2256
- greaterThanInsensitive?: string;
2257
- /** Greater than or equal to the specified value (case-insensitive). */
2258
- greaterThanOrEqualToInsensitive?: string;
2218
+ /** Does not contain the specified string (case-sensitive). */
2219
+ notIncludes?: string;
2220
+ /** Does not contain the specified string (case-insensitive). */
2221
+ notIncludesInsensitive?: string;
2222
+ /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
2223
+ notLike?: string;
2224
+ /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
2225
+ notLikeInsensitive?: string;
2226
+ /** Does not start with the specified string (case-sensitive). */
2227
+ notStartsWith?: string;
2228
+ /** Does not start with the specified string (case-insensitive). */
2229
+ notStartsWithInsensitive?: string;
2230
+ /** Starts with the specified string (case-sensitive). */
2231
+ startsWith?: string;
2232
+ /** Starts with the specified string (case-insensitive). */
2233
+ startsWithInsensitive?: string;
2259
2234
  }
2260
- /** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */
2261
- export interface IntFilter {
2235
+ /** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */
2236
+ export interface DatetimeFilter {
2237
+ /** Not equal to the specified value, treating null like an ordinary value. */
2238
+ distinctFrom?: string;
2239
+ /** Equal to the specified value. */
2240
+ equalTo?: string;
2241
+ /** Greater than the specified value. */
2242
+ greaterThan?: string;
2243
+ /** Greater than or equal to the specified value. */
2244
+ greaterThanOrEqualTo?: string;
2245
+ /** Included in the specified list. */
2246
+ in?: string[];
2262
2247
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2263
2248
  isNull?: boolean;
2264
- /** Equal to the specified value. */
2265
- equalTo?: number;
2249
+ /** Less than the specified value. */
2250
+ lessThan?: string;
2251
+ /** Less than or equal to the specified value. */
2252
+ lessThanOrEqualTo?: string;
2253
+ /** Equal to the specified value, treating null like an ordinary value. */
2254
+ notDistinctFrom?: string;
2266
2255
  /** Not equal to the specified value. */
2267
- notEqualTo?: number;
2256
+ notEqualTo?: string;
2257
+ /** Not included in the specified list. */
2258
+ notIn?: string[];
2259
+ }
2260
+ /** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */
2261
+ export interface JSONFilter {
2262
+ /** Contained by the specified JSON. */
2263
+ containedBy?: Record<string, unknown>;
2264
+ /** Contains the specified JSON. */
2265
+ contains?: Record<string, unknown>;
2266
+ /** Contains all of the specified keys. */
2267
+ containsAllKeys?: string[];
2268
+ /** Contains any of the specified keys. */
2269
+ containsAnyKeys?: string[];
2270
+ /** Contains the specified key. */
2271
+ containsKey?: string;
2268
2272
  /** Not equal to the specified value, treating null like an ordinary value. */
2269
- distinctFrom?: number;
2270
- /** Equal to the specified value, treating null like an ordinary value. */
2271
- notDistinctFrom?: number;
2273
+ distinctFrom?: Record<string, unknown>;
2274
+ /** Equal to the specified value. */
2275
+ equalTo?: Record<string, unknown>;
2276
+ /** Greater than the specified value. */
2277
+ greaterThan?: Record<string, unknown>;
2278
+ /** Greater than or equal to the specified value. */
2279
+ greaterThanOrEqualTo?: Record<string, unknown>;
2272
2280
  /** Included in the specified list. */
2273
- in?: number[];
2274
- /** Not included in the specified list. */
2275
- notIn?: number[];
2281
+ in?: Record<string, unknown>[];
2282
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2283
+ isNull?: boolean;
2276
2284
  /** Less than the specified value. */
2277
- lessThan?: number;
2285
+ lessThan?: Record<string, unknown>;
2278
2286
  /** Less than or equal to the specified value. */
2279
- lessThanOrEqualTo?: number;
2280
- /** Greater than the specified value. */
2281
- greaterThan?: number;
2282
- /** Greater than or equal to the specified value. */
2283
- greaterThanOrEqualTo?: number;
2287
+ lessThanOrEqualTo?: Record<string, unknown>;
2288
+ /** Equal to the specified value, treating null like an ordinary value. */
2289
+ notDistinctFrom?: Record<string, unknown>;
2290
+ /** Not equal to the specified value. */
2291
+ notEqualTo?: Record<string, unknown>;
2292
+ /** Not included in the specified list. */
2293
+ notIn?: Record<string, unknown>[];
2284
2294
  }
2285
2295
  /** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */
2286
2296
  export interface BooleanFilter {
2287
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2288
- isNull?: boolean;
2289
- /** Equal to the specified value. */
2290
- equalTo?: boolean;
2291
- /** Not equal to the specified value. */
2292
- notEqualTo?: boolean;
2293
2297
  /** Not equal to the specified value, treating null like an ordinary value. */
2294
2298
  distinctFrom?: boolean;
2295
- /** Equal to the specified value, treating null like an ordinary value. */
2296
- notDistinctFrom?: boolean;
2297
- /** Included in the specified list. */
2298
- in?: boolean[];
2299
- /** Not included in the specified list. */
2300
- notIn?: boolean[];
2301
- /** Less than the specified value. */
2302
- lessThan?: boolean;
2303
- /** Less than or equal to the specified value. */
2304
- lessThanOrEqualTo?: boolean;
2299
+ /** Equal to the specified value. */
2300
+ equalTo?: boolean;
2305
2301
  /** Greater than the specified value. */
2306
2302
  greaterThan?: boolean;
2307
2303
  /** Greater than or equal to the specified value. */
2308
2304
  greaterThanOrEqualTo?: boolean;
2309
- }
2310
- /** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */
2311
- export interface StringListFilter {
2305
+ /** Included in the specified list. */
2306
+ in?: boolean[];
2312
2307
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2313
2308
  isNull?: boolean;
2314
- /** Equal to the specified value. */
2315
- equalTo?: string[];
2316
- /** Not equal to the specified value. */
2317
- notEqualTo?: string[];
2318
- /** Not equal to the specified value, treating null like an ordinary value. */
2319
- distinctFrom?: string[];
2320
- /** Equal to the specified value, treating null like an ordinary value. */
2321
- notDistinctFrom?: string[];
2322
2309
  /** Less than the specified value. */
2323
- lessThan?: string[];
2310
+ lessThan?: boolean;
2324
2311
  /** Less than or equal to the specified value. */
2325
- lessThanOrEqualTo?: string[];
2326
- /** Greater than the specified value. */
2327
- greaterThan?: string[];
2328
- /** Greater than or equal to the specified value. */
2329
- greaterThanOrEqualTo?: string[];
2330
- /** Contains the specified list of values. */
2331
- contains?: string[];
2332
- /** Contained by the specified list of values. */
2333
- containedBy?: string[];
2334
- /** Overlaps the specified list of values. */
2335
- overlaps?: string[];
2336
- /** Any array item is equal to the specified value. */
2337
- anyEqualTo?: string;
2338
- /** Any array item is not equal to the specified value. */
2339
- anyNotEqualTo?: string;
2340
- /** Any array item is less than the specified value. */
2341
- anyLessThan?: string;
2342
- /** Any array item is less than or equal to the specified value. */
2343
- anyLessThanOrEqualTo?: string;
2344
- /** Any array item is greater than the specified value. */
2345
- anyGreaterThan?: string;
2346
- /** Any array item is greater than or equal to the specified value. */
2347
- anyGreaterThanOrEqualTo?: string;
2312
+ lessThanOrEqualTo?: boolean;
2313
+ /** Equal to the specified value, treating null like an ordinary value. */
2314
+ notDistinctFrom?: boolean;
2315
+ /** Not equal to the specified value. */
2316
+ notEqualTo?: boolean;
2317
+ /** Not included in the specified list. */
2318
+ notIn?: boolean[];
2348
2319
  }
2349
2320
  /** A filter to be used against `AgentPrompt` object types. All fields are combined with a logical ‘and.’ */
2350
2321
  export interface AgentPromptFilter {
2351
- /** Filter by the object’s `id` field. */
2352
- id?: UUIDFilter;
2322
+ /** Checks for all expressions in this list. */
2323
+ and?: AgentPromptFilter[];
2324
+ /** Filter by the object’s `content` field. */
2325
+ content?: StringFilter;
2353
2326
  /** Filter by the object’s `createdAt` field. */
2354
2327
  createdAt?: DatetimeFilter;
2355
- /** Filter by the object’s `updatedAt` field. */
2356
- updatedAt?: DatetimeFilter;
2357
2328
  /** Filter by the object’s `createdBy` field. */
2358
2329
  createdBy?: UUIDFilter;
2359
- /** Filter by the object’s `updatedBy` field. */
2360
- updatedBy?: UUIDFilter;
2361
2330
  /** Filter by the object’s `databaseId` field. */
2362
2331
  databaseId?: UUIDFilter;
2363
- /** Filter by the object’s `name` field. */
2364
- name?: StringFilter;
2365
- /** Filter by the object’s `content` field. */
2366
- content?: StringFilter;
2367
2332
  /** Filter by the object’s `description` field. */
2368
2333
  description?: StringFilter;
2334
+ /** Filter by the object’s `id` field. */
2335
+ id?: UUIDFilter;
2369
2336
  /** Filter by the object’s `isDefault` field. */
2370
2337
  isDefault?: BooleanFilter;
2371
2338
  /** Filter by the object’s `metadata` field. */
2372
2339
  metadata?: JSONFilter;
2373
- /** Checks for all expressions in this list. */
2374
- and?: AgentPromptFilter[];
2375
- /** Checks for any expressions in this list. */
2376
- or?: AgentPromptFilter[];
2340
+ /** Filter by the object’s `name` field. */
2341
+ name?: StringFilter;
2377
2342
  /** Negates the expression. */
2378
2343
  not?: AgentPromptFilter;
2344
+ /** Checks for any expressions in this list. */
2345
+ or?: AgentPromptFilter[];
2346
+ /** Filter by the object’s `updatedAt` field. */
2347
+ updatedAt?: DatetimeFilter;
2348
+ /** Filter by the object’s `updatedBy` field. */
2349
+ updatedBy?: UUIDFilter;
2379
2350
  }
2380
- /** A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ */
2381
- export interface JSONFilter {
2351
+ /** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */
2352
+ export interface StringListFilter {
2353
+ /** Any array item is equal to the specified value. */
2354
+ anyEqualTo?: string;
2355
+ /** Any array item is greater than the specified value. */
2356
+ anyGreaterThan?: string;
2357
+ /** Any array item is greater than or equal to the specified value. */
2358
+ anyGreaterThanOrEqualTo?: string;
2359
+ /** Any array item is less than the specified value. */
2360
+ anyLessThan?: string;
2361
+ /** Any array item is less than or equal to the specified value. */
2362
+ anyLessThanOrEqualTo?: string;
2363
+ /** Any array item is not equal to the specified value. */
2364
+ anyNotEqualTo?: string;
2365
+ /** Contained by the specified list of values. */
2366
+ containedBy?: string[];
2367
+ /** Contains the specified list of values. */
2368
+ contains?: string[];
2369
+ /** Not equal to the specified value, treating null like an ordinary value. */
2370
+ distinctFrom?: string[];
2371
+ /** Equal to the specified value. */
2372
+ equalTo?: string[];
2373
+ /** Greater than the specified value. */
2374
+ greaterThan?: string[];
2375
+ /** Greater than or equal to the specified value. */
2376
+ greaterThanOrEqualTo?: string[];
2382
2377
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2383
2378
  isNull?: boolean;
2384
- /** Equal to the specified value. */
2385
- equalTo?: Record<string, unknown>;
2386
- /** Not equal to the specified value. */
2387
- notEqualTo?: Record<string, unknown>;
2388
- /** Not equal to the specified value, treating null like an ordinary value. */
2389
- distinctFrom?: Record<string, unknown>;
2390
- /** Equal to the specified value, treating null like an ordinary value. */
2391
- notDistinctFrom?: Record<string, unknown>;
2392
- /** Included in the specified list. */
2393
- in?: Record<string, unknown>[];
2394
- /** Not included in the specified list. */
2395
- notIn?: Record<string, unknown>[];
2396
2379
  /** Less than the specified value. */
2397
- lessThan?: Record<string, unknown>;
2380
+ lessThan?: string[];
2398
2381
  /** Less than or equal to the specified value. */
2399
- lessThanOrEqualTo?: Record<string, unknown>;
2400
- /** Greater than the specified value. */
2401
- greaterThan?: Record<string, unknown>;
2402
- /** Greater than or equal to the specified value. */
2403
- greaterThanOrEqualTo?: Record<string, unknown>;
2404
- /** Contains the specified JSON. */
2405
- contains?: Record<string, unknown>;
2406
- /** Contains the specified key. */
2407
- containsKey?: string;
2408
- /** Contains all of the specified keys. */
2409
- containsAllKeys?: string[];
2410
- /** Contains any of the specified keys. */
2411
- containsAnyKeys?: string[];
2412
- /** Contained by the specified JSON. */
2413
- containedBy?: Record<string, unknown>;
2382
+ lessThanOrEqualTo?: string[];
2383
+ /** Equal to the specified value, treating null like an ordinary value. */
2384
+ notDistinctFrom?: string[];
2385
+ /** Not equal to the specified value. */
2386
+ notEqualTo?: string[];
2387
+ /** Overlaps the specified list of values. */
2388
+ overlaps?: string[];
2414
2389
  }
2415
2390
  /** A filter to be used against `AgentPersona` object types. All fields are combined with a logical ‘and.’ */
2416
2391
  export interface AgentPersonaFilter {
2417
- /** Filter by the object’s `id` field. */
2418
- id?: UUIDFilter;
2392
+ /** Filter by the object’s `agentsByPersonaId` relation. */
2393
+ agentsByPersonaId?: AgentPersonaToManyAgentFilter;
2394
+ /** `agentsByPersonaId` exist. */
2395
+ agentsByPersonaIdExist?: boolean;
2396
+ /** Checks for all expressions in this list. */
2397
+ and?: AgentPersonaFilter[];
2398
+ /** Filter by the object’s `config` field. */
2399
+ config?: JSONFilter;
2419
2400
  /** Filter by the object’s `createdAt` field. */
2420
2401
  createdAt?: DatetimeFilter;
2421
- /** Filter by the object’s `updatedAt` field. */
2422
- updatedAt?: DatetimeFilter;
2423
2402
  /** Filter by the object’s `createdBy` field. */
2424
2403
  createdBy?: UUIDFilter;
2425
- /** Filter by the object’s `updatedBy` field. */
2426
- updatedBy?: UUIDFilter;
2427
2404
  /** Filter by the object’s `databaseId` field. */
2428
2405
  databaseId?: UUIDFilter;
2429
- /** Filter by the object’s `slug` field. */
2430
- slug?: StringFilter;
2431
- /** Filter by the object’s `name` field. */
2432
- name?: StringFilter;
2433
2406
  /** Filter by the object’s `description` field. */
2434
2407
  description?: StringFilter;
2435
- /** Filter by the object’s `systemPrompt` field. */
2436
- systemPrompt?: StringFilter;
2437
- /** Filter by the object’s `resources` field. */
2438
- resources?: StringListFilter;
2439
- /** Filter by the object’s `config` field. */
2440
- config?: JSONFilter;
2408
+ /** Filter by the object’s `id` field. */
2409
+ id?: UUIDFilter;
2441
2410
  /** Filter by the object’s `isActive` field. */
2442
2411
  isActive?: BooleanFilter;
2443
- /** Checks for all expressions in this list. */
2444
- and?: AgentPersonaFilter[];
2445
- /** Checks for any expressions in this list. */
2446
- or?: AgentPersonaFilter[];
2412
+ /** Filter by the object’s `name` field. */
2413
+ name?: StringFilter;
2447
2414
  /** Negates the expression. */
2448
2415
  not?: AgentPersonaFilter;
2449
- /** Filter by the object’s `agentsByPersonaId` relation. */
2450
- agentsByPersonaId?: AgentPersonaToManyAgentFilter;
2451
- /** `agentsByPersonaId` exist. */
2452
- agentsByPersonaIdExist?: boolean;
2416
+ /** Checks for any expressions in this list. */
2417
+ or?: AgentPersonaFilter[];
2418
+ /** Filter by the object’s `resources` field. */
2419
+ resources?: StringListFilter;
2420
+ /** Filter by the object’s `slug` field. */
2421
+ slug?: StringFilter;
2422
+ /** Filter by the object’s `systemPrompt` field. */
2423
+ systemPrompt?: StringFilter;
2424
+ /** Filter by the object’s `updatedAt` field. */
2425
+ updatedAt?: DatetimeFilter;
2426
+ /** Filter by the object’s `updatedBy` field. */
2427
+ updatedBy?: UUIDFilter;
2453
2428
  }
2454
- /** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */
2455
- export interface VectorFilter {
2429
+ /** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */
2430
+ export interface IntFilter {
2431
+ /** Not equal to the specified value, treating null like an ordinary value. */
2432
+ distinctFrom?: number;
2433
+ /** Equal to the specified value. */
2434
+ equalTo?: number;
2435
+ /** Greater than the specified value. */
2436
+ greaterThan?: number;
2437
+ /** Greater than or equal to the specified value. */
2438
+ greaterThanOrEqualTo?: number;
2439
+ /** Included in the specified list. */
2440
+ in?: number[];
2456
2441
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2457
2442
  isNull?: boolean;
2458
- /** Equal to the specified value. */
2459
- equalTo?: number[];
2460
- /** Not equal to the specified value. */
2461
- notEqualTo?: number[];
2462
- /** Not equal to the specified value, treating null like an ordinary value. */
2463
- distinctFrom?: number[];
2443
+ /** Less than the specified value. */
2444
+ lessThan?: number;
2445
+ /** Less than or equal to the specified value. */
2446
+ lessThanOrEqualTo?: number;
2464
2447
  /** Equal to the specified value, treating null like an ordinary value. */
2465
- notDistinctFrom?: number[];
2466
- /** Included in the specified list. */
2467
- in?: number[][];
2448
+ notDistinctFrom?: number;
2449
+ /** Not equal to the specified value. */
2450
+ notEqualTo?: number;
2468
2451
  /** Not included in the specified list. */
2469
- notIn?: number[][];
2452
+ notIn?: number[];
2470
2453
  }
2471
2454
  /** A filter to be used against `AgentResource` object types. All fields are combined with a logical ‘and.’ */
2472
2455
  export interface AgentResourceFilter {
2473
- /** Filter by the object’s `id` field. */
2474
- id?: UUIDFilter;
2456
+ /** Filter by the object’s `agentResourceChunks` relation. */
2457
+ agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter;
2458
+ /** `agentResourceChunks` exist. */
2459
+ agentResourceChunksExist?: boolean;
2460
+ /** Checks for all expressions in this list. */
2461
+ and?: AgentResourceFilter[];
2462
+ /** Filter by the object’s `archivedAt` field. */
2463
+ archivedAt?: DatetimeFilter;
2464
+ /** Filter by the object’s `body` field. */
2465
+ body?: StringTrgmFilter;
2475
2466
  /** Filter by the object’s `createdAt` field. */
2476
2467
  createdAt?: DatetimeFilter;
2477
- /** Filter by the object’s `updatedAt` field. */
2478
- updatedAt?: DatetimeFilter;
2479
2468
  /** Filter by the object’s `createdBy` field. */
2480
2469
  createdBy?: UUIDFilter;
2481
- /** Filter by the object’s `updatedBy` field. */
2482
- updatedBy?: UUIDFilter;
2483
2470
  /** Filter by the object’s `databaseId` field. */
2484
2471
  databaseId?: UUIDFilter;
2485
- /** Filter by the object’s `slug` field. */
2486
- slug?: StringTrgmFilter;
2487
- /** Filter by the object’s `kind` field. */
2488
- kind?: StringTrgmFilter;
2489
- /** Filter by the object’s `title` field. */
2490
- title?: StringTrgmFilter;
2491
2472
  /** Filter by the object’s `description` field. */
2492
2473
  description?: StringTrgmFilter;
2493
- /** Filter by the object’s `body` field. */
2494
- body?: StringTrgmFilter;
2495
- /** Filter by the object’s `keywords` field. */
2496
- keywords?: StringListFilter;
2497
- /** Filter by the object’s `isActive` field. */
2498
- isActive?: BooleanFilter;
2499
- /** Filter by the object’s `metadata` field. */
2500
- metadata?: JSONFilter;
2501
- /** Filter by the object’s `isArchived` field. */
2502
- isArchived?: BooleanFilter;
2503
- /** Filter by the object’s `archivedAt` field. */
2504
- archivedAt?: DatetimeFilter;
2505
- /** Filter by the object’s `search` field. */
2506
- search?: FullTextFilter;
2507
2474
  /** Filter by the object’s `embedding` field. */
2508
2475
  embedding?: VectorFilter;
2509
2476
  /** Filter by the object’s `embeddingUpdatedAt` field. */
2510
2477
  embeddingUpdatedAt?: DatetimeFilter;
2511
- /** Checks for all expressions in this list. */
2512
- and?: AgentResourceFilter[];
2513
- /** Checks for any expressions in this list. */
2514
- or?: AgentResourceFilter[];
2478
+ /** Filter by the object’s `id` field. */
2479
+ id?: UUIDFilter;
2480
+ /** Filter by the object’s `isActive` field. */
2481
+ isActive?: BooleanFilter;
2482
+ /** Filter by the object’s `isArchived` field. */
2483
+ isArchived?: BooleanFilter;
2484
+ /** Filter by the object’s `keywords` field. */
2485
+ keywords?: StringListFilter;
2486
+ /** Filter by the object’s `kind` field. */
2487
+ kind?: StringTrgmFilter;
2488
+ /** Filter by the object’s `metadata` field. */
2489
+ metadata?: JSONFilter;
2515
2490
  /** Negates the expression. */
2516
2491
  not?: AgentResourceFilter;
2517
- /** Filter by the object’s `agentResourceChunks` relation. */
2518
- agentResourceChunks?: AgentResourceToManyAgentResourceChunkFilter;
2519
- /** `agentResourceChunks` exist. */
2520
- agentResourceChunksExist?: boolean;
2521
- /** TSV search on the `search` column. */
2522
- tsvSearch?: string;
2523
- /** VECTOR search on the `embedding` column. */
2524
- vectorEmbedding?: VectorNearbyInput;
2492
+ /** Checks for any expressions in this list. */
2493
+ or?: AgentResourceFilter[];
2494
+ /** Filter by the object’s `search` field. */
2495
+ search?: FullTextFilter;
2496
+ /** Filter by the object’s `slug` field. */
2497
+ slug?: StringTrgmFilter;
2498
+ /** Filter by the object’s `title` field. */
2499
+ title?: StringTrgmFilter;
2500
+ /** TRGM search on the `body` column. */
2501
+ trgmBody?: TrgmSearchInput;
2502
+ /** TRGM search on the `description` column. */
2503
+ trgmDescription?: TrgmSearchInput;
2525
2504
  /** TRGM search on the `kind` column. */
2526
2505
  trgmKind?: TrgmSearchInput;
2527
2506
  /** TRGM search on the `title` column. */
2528
2507
  trgmTitle?: TrgmSearchInput;
2529
- /** TRGM search on the `description` column. */
2530
- trgmDescription?: TrgmSearchInput;
2531
- /** TRGM search on the `body` column. */
2532
- trgmBody?: TrgmSearchInput;
2508
+ /** TSV search on the `search` column. */
2509
+ tsvSearch?: string;
2533
2510
  /**
2534
2511
  * Composite unified search. Provide a search string and it will be dispatched to
2535
2512
  * all text-compatible search algorithms (tsvector, BM25, pg_trgm)
@@ -2538,464 +2515,475 @@ export interface AgentResourceFilter {
2538
2515
  * fields are populated.
2539
2516
  */
2540
2517
  unifiedSearch?: string;
2518
+ /** Filter by the object’s `updatedAt` field. */
2519
+ updatedAt?: DatetimeFilter;
2520
+ /** Filter by the object’s `updatedBy` field. */
2521
+ updatedBy?: UUIDFilter;
2522
+ /** VECTOR search on the `embedding` column. */
2523
+ vectorEmbedding?: VectorNearbyInput;
2541
2524
  }
2542
- /** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */
2543
- export interface FullTextFilter {
2525
+ /** A filter to be used against Vector fields. All fields are combined with a logical ‘and.’ */
2526
+ export interface VectorFilter {
2527
+ /** Not equal to the specified value, treating null like an ordinary value. */
2528
+ distinctFrom?: number[];
2529
+ /** Equal to the specified value. */
2530
+ equalTo?: number[];
2531
+ /** Included in the specified list. */
2532
+ in?: number[][];
2544
2533
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2545
2534
  isNull?: boolean;
2546
- /** Equal to the specified value. */
2547
- equalTo?: string;
2535
+ /** Equal to the specified value, treating null like an ordinary value. */
2536
+ notDistinctFrom?: number[];
2548
2537
  /** Not equal to the specified value. */
2549
- notEqualTo?: string;
2538
+ notEqualTo?: number[];
2539
+ /** Not included in the specified list. */
2540
+ notIn?: number[][];
2541
+ }
2542
+ /** A filter to be used against FullText fields. All fields are combined with a logical ‘and.’ */
2543
+ export interface FullTextFilter {
2550
2544
  /** Not equal to the specified value, treating null like an ordinary value. */
2551
2545
  distinctFrom?: string;
2552
- /** Equal to the specified value, treating null like an ordinary value. */
2553
- notDistinctFrom?: string;
2546
+ /** Equal to the specified value. */
2547
+ equalTo?: string;
2554
2548
  /** Included in the specified list. */
2555
2549
  in?: string[];
2556
- /** Not included in the specified list. */
2557
- notIn?: string[];
2550
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2551
+ isNull?: boolean;
2558
2552
  /** Performs a full text search on the field. */
2559
2553
  matches?: string;
2554
+ /** Equal to the specified value, treating null like an ordinary value. */
2555
+ notDistinctFrom?: string;
2556
+ /** Not equal to the specified value. */
2557
+ notEqualTo?: string;
2558
+ /** Not included in the specified list. */
2559
+ notIn?: string[];
2560
2560
  }
2561
2561
  export interface ProvisionBucketPayload {
2562
- /** Whether provisioning succeeded */
2563
- success: boolean;
2564
- /** The S3 bucket name that was provisioned */
2565
- bucketName: string;
2566
2562
  /** The access type applied */
2567
2563
  accessType: string;
2568
- /** The storage provider used */
2569
- provider: string;
2564
+ /** The S3 bucket name that was provisioned */
2565
+ bucketName: string;
2570
2566
  /** The S3 endpoint (null for AWS S3 default) */
2571
2567
  endpoint?: string | null;
2572
2568
  /** Error message if provisioning failed */
2573
2569
  error?: string | null;
2570
+ /** The storage provider used */
2571
+ provider: string;
2572
+ /** Whether provisioning succeeded */
2573
+ success: boolean;
2574
2574
  }
2575
2575
  export type ProvisionBucketPayloadSelect = {
2576
- success?: boolean;
2577
- bucketName?: boolean;
2578
2576
  accessType?: boolean;
2579
- provider?: boolean;
2577
+ bucketName?: boolean;
2580
2578
  endpoint?: boolean;
2581
2579
  error?: boolean;
2582
- };
2583
- export interface CreateAgentPlanPayload {
2584
- clientMutationId?: string | null;
2585
- /** The `AgentPlan` that was created by this mutation. */
2586
- agentPlan?: AgentPlan | null;
2587
- agentPlanEdge?: AgentPlanEdge | null;
2588
- }
2589
- export type CreateAgentPlanPayloadSelect = {
2590
- clientMutationId?: boolean;
2591
- agentPlan?: {
2592
- select: AgentPlanSelect;
2593
- };
2594
- agentPlanEdge?: {
2595
- select: AgentPlanEdgeSelect;
2596
- };
2597
- };
2598
- export interface UpdateAgentPlanPayload {
2599
- clientMutationId?: string | null;
2600
- /** The `AgentPlan` that was updated by this mutation. */
2601
- agentPlan?: AgentPlan | null;
2602
- agentPlanEdge?: AgentPlanEdge | null;
2603
- }
2604
- export type UpdateAgentPlanPayloadSelect = {
2605
- clientMutationId?: boolean;
2606
- agentPlan?: {
2607
- select: AgentPlanSelect;
2608
- };
2609
- agentPlanEdge?: {
2610
- select: AgentPlanEdgeSelect;
2611
- };
2612
- };
2613
- export interface DeleteAgentPlanPayload {
2614
- clientMutationId?: string | null;
2615
- /** The `AgentPlan` that was deleted by this mutation. */
2616
- agentPlan?: AgentPlan | null;
2617
- agentPlanEdge?: AgentPlanEdge | null;
2618
- }
2619
- export type DeleteAgentPlanPayloadSelect = {
2620
- clientMutationId?: boolean;
2621
- agentPlan?: {
2622
- select: AgentPlanSelect;
2623
- };
2624
- agentPlanEdge?: {
2625
- select: AgentPlanEdgeSelect;
2626
- };
2580
+ provider?: boolean;
2581
+ success?: boolean;
2627
2582
  };
2628
2583
  export interface CreateAgentPayload {
2629
- clientMutationId?: string | null;
2630
2584
  /** The `Agent` that was created by this mutation. */
2631
2585
  agent?: Agent | null;
2632
2586
  agentEdge?: AgentEdge | null;
2587
+ clientMutationId?: string | null;
2633
2588
  }
2634
2589
  export type CreateAgentPayloadSelect = {
2635
- clientMutationId?: boolean;
2636
2590
  agent?: {
2637
2591
  select: AgentSelect;
2638
2592
  };
2639
2593
  agentEdge?: {
2640
2594
  select: AgentEdgeSelect;
2641
2595
  };
2596
+ clientMutationId?: boolean;
2642
2597
  };
2643
2598
  export interface UpdateAgentPayload {
2644
- clientMutationId?: string | null;
2645
2599
  /** The `Agent` that was updated by this mutation. */
2646
2600
  agent?: Agent | null;
2647
2601
  agentEdge?: AgentEdge | null;
2602
+ clientMutationId?: string | null;
2648
2603
  }
2649
2604
  export type UpdateAgentPayloadSelect = {
2650
- clientMutationId?: boolean;
2651
2605
  agent?: {
2652
2606
  select: AgentSelect;
2653
2607
  };
2654
2608
  agentEdge?: {
2655
2609
  select: AgentEdgeSelect;
2656
2610
  };
2611
+ clientMutationId?: boolean;
2657
2612
  };
2658
2613
  export interface DeleteAgentPayload {
2659
- clientMutationId?: string | null;
2660
2614
  /** The `Agent` that was deleted by this mutation. */
2661
2615
  agent?: Agent | null;
2662
2616
  agentEdge?: AgentEdge | null;
2617
+ clientMutationId?: string | null;
2663
2618
  }
2664
2619
  export type DeleteAgentPayloadSelect = {
2665
- clientMutationId?: boolean;
2666
2620
  agent?: {
2667
2621
  select: AgentSelect;
2668
2622
  };
2669
2623
  agentEdge?: {
2670
2624
  select: AgentEdgeSelect;
2671
2625
  };
2672
- };
2673
- export interface CreateAgentThreadPayload {
2674
- clientMutationId?: string | null;
2675
- /** The `AgentThread` that was created by this mutation. */
2676
- agentThread?: AgentThread | null;
2677
- agentThreadEdge?: AgentThreadEdge | null;
2678
- }
2679
- export type CreateAgentThreadPayloadSelect = {
2680
- clientMutationId?: boolean;
2681
- agentThread?: {
2682
- select: AgentThreadSelect;
2683
- };
2684
- agentThreadEdge?: {
2685
- select: AgentThreadEdgeSelect;
2686
- };
2687
- };
2688
- export interface UpdateAgentThreadPayload {
2689
- clientMutationId?: string | null;
2690
- /** The `AgentThread` that was updated by this mutation. */
2691
- agentThread?: AgentThread | null;
2692
- agentThreadEdge?: AgentThreadEdge | null;
2693
- }
2694
- export type UpdateAgentThreadPayloadSelect = {
2695
- clientMutationId?: boolean;
2696
- agentThread?: {
2697
- select: AgentThreadSelect;
2698
- };
2699
- agentThreadEdge?: {
2700
- select: AgentThreadEdgeSelect;
2701
- };
2702
- };
2703
- export interface DeleteAgentThreadPayload {
2704
- clientMutationId?: string | null;
2705
- /** The `AgentThread` that was deleted by this mutation. */
2706
- agentThread?: AgentThread | null;
2707
- agentThreadEdge?: AgentThreadEdge | null;
2708
- }
2709
- export type DeleteAgentThreadPayloadSelect = {
2710
2626
  clientMutationId?: boolean;
2711
- agentThread?: {
2712
- select: AgentThreadSelect;
2713
- };
2714
- agentThreadEdge?: {
2715
- select: AgentThreadEdgeSelect;
2716
- };
2717
2627
  };
2718
2628
  export interface CreateAgentMessagePayload {
2719
- clientMutationId?: string | null;
2720
2629
  /** The `AgentMessage` that was created by this mutation. */
2721
2630
  agentMessage?: AgentMessage | null;
2722
2631
  agentMessageEdge?: AgentMessageEdge | null;
2632
+ clientMutationId?: string | null;
2723
2633
  }
2724
2634
  export type CreateAgentMessagePayloadSelect = {
2725
- clientMutationId?: boolean;
2726
2635
  agentMessage?: {
2727
2636
  select: AgentMessageSelect;
2728
2637
  };
2729
2638
  agentMessageEdge?: {
2730
2639
  select: AgentMessageEdgeSelect;
2731
2640
  };
2641
+ clientMutationId?: boolean;
2732
2642
  };
2733
2643
  export interface UpdateAgentMessagePayload {
2734
- clientMutationId?: string | null;
2735
2644
  /** The `AgentMessage` that was updated by this mutation. */
2736
2645
  agentMessage?: AgentMessage | null;
2737
2646
  agentMessageEdge?: AgentMessageEdge | null;
2647
+ clientMutationId?: string | null;
2738
2648
  }
2739
2649
  export type UpdateAgentMessagePayloadSelect = {
2740
- clientMutationId?: boolean;
2741
2650
  agentMessage?: {
2742
2651
  select: AgentMessageSelect;
2743
2652
  };
2744
2653
  agentMessageEdge?: {
2745
2654
  select: AgentMessageEdgeSelect;
2746
2655
  };
2656
+ clientMutationId?: boolean;
2747
2657
  };
2748
2658
  export interface DeleteAgentMessagePayload {
2749
- clientMutationId?: string | null;
2750
2659
  /** The `AgentMessage` that was deleted by this mutation. */
2751
2660
  agentMessage?: AgentMessage | null;
2752
2661
  agentMessageEdge?: AgentMessageEdge | null;
2662
+ clientMutationId?: string | null;
2753
2663
  }
2754
2664
  export type DeleteAgentMessagePayloadSelect = {
2755
- clientMutationId?: boolean;
2756
2665
  agentMessage?: {
2757
2666
  select: AgentMessageSelect;
2758
2667
  };
2759
2668
  agentMessageEdge?: {
2760
2669
  select: AgentMessageEdgeSelect;
2761
2670
  };
2671
+ clientMutationId?: boolean;
2762
2672
  };
2763
- export interface CreateAgentTaskPayload {
2673
+ export interface CreateAgentPersonaPayload {
2674
+ /** The `AgentPersona` that was created by this mutation. */
2675
+ agentPersona?: AgentPersona | null;
2676
+ agentPersonaEdge?: AgentPersonaEdge | null;
2764
2677
  clientMutationId?: string | null;
2765
- /** The `AgentTask` that was created by this mutation. */
2766
- agentTask?: AgentTask | null;
2767
- agentTaskEdge?: AgentTaskEdge | null;
2768
2678
  }
2769
- export type CreateAgentTaskPayloadSelect = {
2679
+ export type CreateAgentPersonaPayloadSelect = {
2680
+ agentPersona?: {
2681
+ select: AgentPersonaSelect;
2682
+ };
2683
+ agentPersonaEdge?: {
2684
+ select: AgentPersonaEdgeSelect;
2685
+ };
2770
2686
  clientMutationId?: boolean;
2771
- agentTask?: {
2772
- select: AgentTaskSelect;
2687
+ };
2688
+ export interface UpdateAgentPersonaPayload {
2689
+ /** The `AgentPersona` that was updated by this mutation. */
2690
+ agentPersona?: AgentPersona | null;
2691
+ agentPersonaEdge?: AgentPersonaEdge | null;
2692
+ clientMutationId?: string | null;
2693
+ }
2694
+ export type UpdateAgentPersonaPayloadSelect = {
2695
+ agentPersona?: {
2696
+ select: AgentPersonaSelect;
2773
2697
  };
2774
- agentTaskEdge?: {
2775
- select: AgentTaskEdgeSelect;
2698
+ agentPersonaEdge?: {
2699
+ select: AgentPersonaEdgeSelect;
2776
2700
  };
2701
+ clientMutationId?: boolean;
2777
2702
  };
2778
- export interface UpdateAgentTaskPayload {
2703
+ export interface DeleteAgentPersonaPayload {
2704
+ /** The `AgentPersona` that was deleted by this mutation. */
2705
+ agentPersona?: AgentPersona | null;
2706
+ agentPersonaEdge?: AgentPersonaEdge | null;
2779
2707
  clientMutationId?: string | null;
2780
- /** The `AgentTask` that was updated by this mutation. */
2781
- agentTask?: AgentTask | null;
2782
- agentTaskEdge?: AgentTaskEdge | null;
2783
2708
  }
2784
- export type UpdateAgentTaskPayloadSelect = {
2709
+ export type DeleteAgentPersonaPayloadSelect = {
2710
+ agentPersona?: {
2711
+ select: AgentPersonaSelect;
2712
+ };
2713
+ agentPersonaEdge?: {
2714
+ select: AgentPersonaEdgeSelect;
2715
+ };
2785
2716
  clientMutationId?: boolean;
2786
- agentTask?: {
2787
- select: AgentTaskSelect;
2717
+ };
2718
+ export interface CreateAgentPlanPayload {
2719
+ /** The `AgentPlan` that was created by this mutation. */
2720
+ agentPlan?: AgentPlan | null;
2721
+ agentPlanEdge?: AgentPlanEdge | null;
2722
+ clientMutationId?: string | null;
2723
+ }
2724
+ export type CreateAgentPlanPayloadSelect = {
2725
+ agentPlan?: {
2726
+ select: AgentPlanSelect;
2788
2727
  };
2789
- agentTaskEdge?: {
2790
- select: AgentTaskEdgeSelect;
2728
+ agentPlanEdge?: {
2729
+ select: AgentPlanEdgeSelect;
2791
2730
  };
2731
+ clientMutationId?: boolean;
2792
2732
  };
2793
- export interface DeleteAgentTaskPayload {
2733
+ export interface UpdateAgentPlanPayload {
2734
+ /** The `AgentPlan` that was updated by this mutation. */
2735
+ agentPlan?: AgentPlan | null;
2736
+ agentPlanEdge?: AgentPlanEdge | null;
2794
2737
  clientMutationId?: string | null;
2795
- /** The `AgentTask` that was deleted by this mutation. */
2796
- agentTask?: AgentTask | null;
2797
- agentTaskEdge?: AgentTaskEdge | null;
2798
2738
  }
2799
- export type DeleteAgentTaskPayloadSelect = {
2739
+ export type UpdateAgentPlanPayloadSelect = {
2740
+ agentPlan?: {
2741
+ select: AgentPlanSelect;
2742
+ };
2743
+ agentPlanEdge?: {
2744
+ select: AgentPlanEdgeSelect;
2745
+ };
2800
2746
  clientMutationId?: boolean;
2801
- agentTask?: {
2802
- select: AgentTaskSelect;
2747
+ };
2748
+ export interface DeleteAgentPlanPayload {
2749
+ /** The `AgentPlan` that was deleted by this mutation. */
2750
+ agentPlan?: AgentPlan | null;
2751
+ agentPlanEdge?: AgentPlanEdge | null;
2752
+ clientMutationId?: string | null;
2753
+ }
2754
+ export type DeleteAgentPlanPayloadSelect = {
2755
+ agentPlan?: {
2756
+ select: AgentPlanSelect;
2803
2757
  };
2804
- agentTaskEdge?: {
2805
- select: AgentTaskEdgeSelect;
2758
+ agentPlanEdge?: {
2759
+ select: AgentPlanEdgeSelect;
2806
2760
  };
2761
+ clientMutationId?: boolean;
2807
2762
  };
2808
2763
  export interface CreateAgentPromptPayload {
2809
- clientMutationId?: string | null;
2810
2764
  /** The `AgentPrompt` that was created by this mutation. */
2811
2765
  agentPrompt?: AgentPrompt | null;
2812
2766
  agentPromptEdge?: AgentPromptEdge | null;
2767
+ clientMutationId?: string | null;
2813
2768
  }
2814
2769
  export type CreateAgentPromptPayloadSelect = {
2815
- clientMutationId?: boolean;
2816
2770
  agentPrompt?: {
2817
2771
  select: AgentPromptSelect;
2818
2772
  };
2819
2773
  agentPromptEdge?: {
2820
2774
  select: AgentPromptEdgeSelect;
2821
2775
  };
2776
+ clientMutationId?: boolean;
2822
2777
  };
2823
2778
  export interface UpdateAgentPromptPayload {
2824
- clientMutationId?: string | null;
2825
2779
  /** The `AgentPrompt` that was updated by this mutation. */
2826
2780
  agentPrompt?: AgentPrompt | null;
2827
2781
  agentPromptEdge?: AgentPromptEdge | null;
2782
+ clientMutationId?: string | null;
2828
2783
  }
2829
2784
  export type UpdateAgentPromptPayloadSelect = {
2830
- clientMutationId?: boolean;
2831
2785
  agentPrompt?: {
2832
2786
  select: AgentPromptSelect;
2833
2787
  };
2834
2788
  agentPromptEdge?: {
2835
2789
  select: AgentPromptEdgeSelect;
2836
2790
  };
2791
+ clientMutationId?: boolean;
2837
2792
  };
2838
2793
  export interface DeleteAgentPromptPayload {
2839
- clientMutationId?: string | null;
2840
2794
  /** The `AgentPrompt` that was deleted by this mutation. */
2841
2795
  agentPrompt?: AgentPrompt | null;
2842
2796
  agentPromptEdge?: AgentPromptEdge | null;
2797
+ clientMutationId?: string | null;
2843
2798
  }
2844
2799
  export type DeleteAgentPromptPayloadSelect = {
2845
- clientMutationId?: boolean;
2846
2800
  agentPrompt?: {
2847
2801
  select: AgentPromptSelect;
2848
2802
  };
2849
2803
  agentPromptEdge?: {
2850
2804
  select: AgentPromptEdgeSelect;
2851
2805
  };
2806
+ clientMutationId?: boolean;
2852
2807
  };
2853
2808
  export interface CreateAgentResourceChunkPayload {
2854
- clientMutationId?: string | null;
2855
2809
  /** The `AgentResourceChunk` that was created by this mutation. */
2856
2810
  agentResourceChunk?: AgentResourceChunk | null;
2857
2811
  agentResourceChunkEdge?: AgentResourceChunkEdge | null;
2812
+ clientMutationId?: string | null;
2858
2813
  }
2859
2814
  export type CreateAgentResourceChunkPayloadSelect = {
2860
- clientMutationId?: boolean;
2861
2815
  agentResourceChunk?: {
2862
2816
  select: AgentResourceChunkSelect;
2863
2817
  };
2864
2818
  agentResourceChunkEdge?: {
2865
2819
  select: AgentResourceChunkEdgeSelect;
2866
2820
  };
2821
+ clientMutationId?: boolean;
2867
2822
  };
2868
2823
  export interface UpdateAgentResourceChunkPayload {
2869
- clientMutationId?: string | null;
2870
2824
  /** The `AgentResourceChunk` that was updated by this mutation. */
2871
2825
  agentResourceChunk?: AgentResourceChunk | null;
2872
2826
  agentResourceChunkEdge?: AgentResourceChunkEdge | null;
2827
+ clientMutationId?: string | null;
2873
2828
  }
2874
2829
  export type UpdateAgentResourceChunkPayloadSelect = {
2875
- clientMutationId?: boolean;
2876
2830
  agentResourceChunk?: {
2877
2831
  select: AgentResourceChunkSelect;
2878
2832
  };
2879
2833
  agentResourceChunkEdge?: {
2880
2834
  select: AgentResourceChunkEdgeSelect;
2881
2835
  };
2836
+ clientMutationId?: boolean;
2882
2837
  };
2883
2838
  export interface DeleteAgentResourceChunkPayload {
2884
- clientMutationId?: string | null;
2885
2839
  /** The `AgentResourceChunk` that was deleted by this mutation. */
2886
2840
  agentResourceChunk?: AgentResourceChunk | null;
2887
2841
  agentResourceChunkEdge?: AgentResourceChunkEdge | null;
2842
+ clientMutationId?: string | null;
2888
2843
  }
2889
2844
  export type DeleteAgentResourceChunkPayloadSelect = {
2890
- clientMutationId?: boolean;
2891
2845
  agentResourceChunk?: {
2892
2846
  select: AgentResourceChunkSelect;
2893
2847
  };
2894
2848
  agentResourceChunkEdge?: {
2895
2849
  select: AgentResourceChunkEdgeSelect;
2896
2850
  };
2897
- };
2898
- export interface CreateAgentPersonaPayload {
2899
- clientMutationId?: string | null;
2900
- /** The `AgentPersona` that was created by this mutation. */
2901
- agentPersona?: AgentPersona | null;
2902
- agentPersonaEdge?: AgentPersonaEdge | null;
2903
- }
2904
- export type CreateAgentPersonaPayloadSelect = {
2905
- clientMutationId?: boolean;
2906
- agentPersona?: {
2907
- select: AgentPersonaSelect;
2908
- };
2909
- agentPersonaEdge?: {
2910
- select: AgentPersonaEdgeSelect;
2911
- };
2912
- };
2913
- export interface UpdateAgentPersonaPayload {
2914
- clientMutationId?: string | null;
2915
- /** The `AgentPersona` that was updated by this mutation. */
2916
- agentPersona?: AgentPersona | null;
2917
- agentPersonaEdge?: AgentPersonaEdge | null;
2918
- }
2919
- export type UpdateAgentPersonaPayloadSelect = {
2920
- clientMutationId?: boolean;
2921
- agentPersona?: {
2922
- select: AgentPersonaSelect;
2923
- };
2924
- agentPersonaEdge?: {
2925
- select: AgentPersonaEdgeSelect;
2926
- };
2927
- };
2928
- export interface DeleteAgentPersonaPayload {
2929
- clientMutationId?: string | null;
2930
- /** The `AgentPersona` that was deleted by this mutation. */
2931
- agentPersona?: AgentPersona | null;
2932
- agentPersonaEdge?: AgentPersonaEdge | null;
2933
- }
2934
- export type DeleteAgentPersonaPayloadSelect = {
2935
2851
  clientMutationId?: boolean;
2936
- agentPersona?: {
2937
- select: AgentPersonaSelect;
2938
- };
2939
- agentPersonaEdge?: {
2940
- select: AgentPersonaEdgeSelect;
2941
- };
2942
2852
  };
2943
2853
  export interface CreateAgentResourcePayload {
2944
- clientMutationId?: string | null;
2945
2854
  /** The `AgentResource` that was created by this mutation. */
2946
2855
  agentResource?: AgentResource | null;
2947
2856
  agentResourceEdge?: AgentResourceEdge | null;
2857
+ clientMutationId?: string | null;
2948
2858
  }
2949
2859
  export type CreateAgentResourcePayloadSelect = {
2950
- clientMutationId?: boolean;
2951
2860
  agentResource?: {
2952
2861
  select: AgentResourceSelect;
2953
2862
  };
2954
2863
  agentResourceEdge?: {
2955
2864
  select: AgentResourceEdgeSelect;
2956
2865
  };
2866
+ clientMutationId?: boolean;
2957
2867
  };
2958
2868
  export interface UpdateAgentResourcePayload {
2959
- clientMutationId?: string | null;
2960
2869
  /** The `AgentResource` that was updated by this mutation. */
2961
2870
  agentResource?: AgentResource | null;
2962
2871
  agentResourceEdge?: AgentResourceEdge | null;
2872
+ clientMutationId?: string | null;
2963
2873
  }
2964
2874
  export type UpdateAgentResourcePayloadSelect = {
2965
- clientMutationId?: boolean;
2966
2875
  agentResource?: {
2967
2876
  select: AgentResourceSelect;
2968
2877
  };
2969
2878
  agentResourceEdge?: {
2970
2879
  select: AgentResourceEdgeSelect;
2971
2880
  };
2881
+ clientMutationId?: boolean;
2972
2882
  };
2973
2883
  export interface DeleteAgentResourcePayload {
2974
- clientMutationId?: string | null;
2975
2884
  /** The `AgentResource` that was deleted by this mutation. */
2976
2885
  agentResource?: AgentResource | null;
2977
2886
  agentResourceEdge?: AgentResourceEdge | null;
2887
+ clientMutationId?: string | null;
2978
2888
  }
2979
2889
  export type DeleteAgentResourcePayloadSelect = {
2980
- clientMutationId?: boolean;
2981
2890
  agentResource?: {
2982
2891
  select: AgentResourceSelect;
2983
2892
  };
2984
2893
  agentResourceEdge?: {
2985
2894
  select: AgentResourceEdgeSelect;
2986
2895
  };
2896
+ clientMutationId?: boolean;
2987
2897
  };
2988
- /** A `AgentPlan` edge in the connection. */
2989
- export interface AgentPlanEdge {
2990
- cursor?: string | null;
2991
- /** The `AgentPlan` at the end of the edge. */
2992
- node?: AgentPlan | null;
2898
+ export interface CreateAgentTaskPayload {
2899
+ /** The `AgentTask` that was created by this mutation. */
2900
+ agentTask?: AgentTask | null;
2901
+ agentTaskEdge?: AgentTaskEdge | null;
2902
+ clientMutationId?: string | null;
2993
2903
  }
2994
- export type AgentPlanEdgeSelect = {
2995
- cursor?: boolean;
2996
- node?: {
2997
- select: AgentPlanSelect;
2904
+ export type CreateAgentTaskPayloadSelect = {
2905
+ agentTask?: {
2906
+ select: AgentTaskSelect;
2907
+ };
2908
+ agentTaskEdge?: {
2909
+ select: AgentTaskEdgeSelect;
2910
+ };
2911
+ clientMutationId?: boolean;
2912
+ };
2913
+ export interface UpdateAgentTaskPayload {
2914
+ /** The `AgentTask` that was updated by this mutation. */
2915
+ agentTask?: AgentTask | null;
2916
+ agentTaskEdge?: AgentTaskEdge | null;
2917
+ clientMutationId?: string | null;
2918
+ }
2919
+ export type UpdateAgentTaskPayloadSelect = {
2920
+ agentTask?: {
2921
+ select: AgentTaskSelect;
2922
+ };
2923
+ agentTaskEdge?: {
2924
+ select: AgentTaskEdgeSelect;
2925
+ };
2926
+ clientMutationId?: boolean;
2927
+ };
2928
+ export interface DeleteAgentTaskPayload {
2929
+ /** The `AgentTask` that was deleted by this mutation. */
2930
+ agentTask?: AgentTask | null;
2931
+ agentTaskEdge?: AgentTaskEdge | null;
2932
+ clientMutationId?: string | null;
2933
+ }
2934
+ export type DeleteAgentTaskPayloadSelect = {
2935
+ agentTask?: {
2936
+ select: AgentTaskSelect;
2937
+ };
2938
+ agentTaskEdge?: {
2939
+ select: AgentTaskEdgeSelect;
2940
+ };
2941
+ clientMutationId?: boolean;
2942
+ };
2943
+ export interface CreateAgentThreadPayload {
2944
+ /** The `AgentThread` that was created by this mutation. */
2945
+ agentThread?: AgentThread | null;
2946
+ agentThreadEdge?: AgentThreadEdge | null;
2947
+ clientMutationId?: string | null;
2948
+ }
2949
+ export type CreateAgentThreadPayloadSelect = {
2950
+ agentThread?: {
2951
+ select: AgentThreadSelect;
2952
+ };
2953
+ agentThreadEdge?: {
2954
+ select: AgentThreadEdgeSelect;
2955
+ };
2956
+ clientMutationId?: boolean;
2957
+ };
2958
+ export interface UpdateAgentThreadPayload {
2959
+ /** The `AgentThread` that was updated by this mutation. */
2960
+ agentThread?: AgentThread | null;
2961
+ agentThreadEdge?: AgentThreadEdge | null;
2962
+ clientMutationId?: string | null;
2963
+ }
2964
+ export type UpdateAgentThreadPayloadSelect = {
2965
+ agentThread?: {
2966
+ select: AgentThreadSelect;
2967
+ };
2968
+ agentThreadEdge?: {
2969
+ select: AgentThreadEdgeSelect;
2970
+ };
2971
+ clientMutationId?: boolean;
2972
+ };
2973
+ export interface DeleteAgentThreadPayload {
2974
+ /** The `AgentThread` that was deleted by this mutation. */
2975
+ agentThread?: AgentThread | null;
2976
+ agentThreadEdge?: AgentThreadEdge | null;
2977
+ clientMutationId?: string | null;
2978
+ }
2979
+ export type DeleteAgentThreadPayloadSelect = {
2980
+ agentThread?: {
2981
+ select: AgentThreadSelect;
2998
2982
  };
2983
+ agentThreadEdge?: {
2984
+ select: AgentThreadEdgeSelect;
2985
+ };
2986
+ clientMutationId?: boolean;
2999
2987
  };
3000
2988
  /** A `Agent` edge in the connection. */
3001
2989
  export interface AgentEdge {
@@ -3009,18 +2997,6 @@ export type AgentEdgeSelect = {
3009
2997
  select: AgentSelect;
3010
2998
  };
3011
2999
  };
3012
- /** A `AgentThread` edge in the connection. */
3013
- export interface AgentThreadEdge {
3014
- cursor?: string | null;
3015
- /** The `AgentThread` at the end of the edge. */
3016
- node?: AgentThread | null;
3017
- }
3018
- export type AgentThreadEdgeSelect = {
3019
- cursor?: boolean;
3020
- node?: {
3021
- select: AgentThreadSelect;
3022
- };
3023
- };
3024
3000
  /** A `AgentMessage` edge in the connection. */
3025
3001
  export interface AgentMessageEdge {
3026
3002
  cursor?: string | null;
@@ -3033,16 +3009,28 @@ export type AgentMessageEdgeSelect = {
3033
3009
  select: AgentMessageSelect;
3034
3010
  };
3035
3011
  };
3036
- /** A `AgentTask` edge in the connection. */
3037
- export interface AgentTaskEdge {
3012
+ /** A `AgentPersona` edge in the connection. */
3013
+ export interface AgentPersonaEdge {
3038
3014
  cursor?: string | null;
3039
- /** The `AgentTask` at the end of the edge. */
3040
- node?: AgentTask | null;
3015
+ /** The `AgentPersona` at the end of the edge. */
3016
+ node?: AgentPersona | null;
3041
3017
  }
3042
- export type AgentTaskEdgeSelect = {
3018
+ export type AgentPersonaEdgeSelect = {
3043
3019
  cursor?: boolean;
3044
3020
  node?: {
3045
- select: AgentTaskSelect;
3021
+ select: AgentPersonaSelect;
3022
+ };
3023
+ };
3024
+ /** A `AgentPlan` edge in the connection. */
3025
+ export interface AgentPlanEdge {
3026
+ cursor?: string | null;
3027
+ /** The `AgentPlan` at the end of the edge. */
3028
+ node?: AgentPlan | null;
3029
+ }
3030
+ export type AgentPlanEdgeSelect = {
3031
+ cursor?: boolean;
3032
+ node?: {
3033
+ select: AgentPlanSelect;
3046
3034
  };
3047
3035
  };
3048
3036
  /** A `AgentPrompt` edge in the connection. */
@@ -3069,18 +3057,6 @@ export type AgentResourceChunkEdgeSelect = {
3069
3057
  select: AgentResourceChunkSelect;
3070
3058
  };
3071
3059
  };
3072
- /** A `AgentPersona` edge in the connection. */
3073
- export interface AgentPersonaEdge {
3074
- cursor?: string | null;
3075
- /** The `AgentPersona` at the end of the edge. */
3076
- node?: AgentPersona | null;
3077
- }
3078
- export type AgentPersonaEdgeSelect = {
3079
- cursor?: boolean;
3080
- node?: {
3081
- select: AgentPersonaSelect;
3082
- };
3083
- };
3084
3060
  /** A `AgentResource` edge in the connection. */
3085
3061
  export interface AgentResourceEdge {
3086
3062
  cursor?: string | null;
@@ -3093,3 +3069,27 @@ export type AgentResourceEdgeSelect = {
3093
3069
  select: AgentResourceSelect;
3094
3070
  };
3095
3071
  };
3072
+ /** A `AgentTask` edge in the connection. */
3073
+ export interface AgentTaskEdge {
3074
+ cursor?: string | null;
3075
+ /** The `AgentTask` at the end of the edge. */
3076
+ node?: AgentTask | null;
3077
+ }
3078
+ export type AgentTaskEdgeSelect = {
3079
+ cursor?: boolean;
3080
+ node?: {
3081
+ select: AgentTaskSelect;
3082
+ };
3083
+ };
3084
+ /** A `AgentThread` edge in the connection. */
3085
+ export interface AgentThreadEdge {
3086
+ cursor?: string | null;
3087
+ /** The `AgentThread` at the end of the edge. */
3088
+ node?: AgentThread | null;
3089
+ }
3090
+ export type AgentThreadEdgeSelect = {
3091
+ cursor?: boolean;
3092
+ node?: {
3093
+ select: AgentThreadSelect;
3094
+ };
3095
+ };