@constructive-io/react 0.23.9 → 0.23.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/admin/hooks/index.d.ts +1 -1
  2. package/admin/hooks/index.js +1 -1
  3. package/admin/hooks/invalidation.d.ts +30 -6
  4. package/admin/hooks/invalidation.js +80 -16
  5. package/admin/hooks/mutation-keys.d.ts +60 -12
  6. package/admin/hooks/mutation-keys.js +48 -8
  7. package/admin/hooks/mutations/index.d.ts +15 -3
  8. package/admin/hooks/mutations/index.js +15 -3
  9. package/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.d.ts +34 -0
  10. package/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.js +34 -0
  11. package/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.d.ts +34 -0
  12. package/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.js +34 -0
  13. package/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.d.ts +34 -0
  14. package/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.js +34 -0
  15. package/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.d.ts +34 -0
  16. package/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.js +34 -0
  17. package/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.d.ts +38 -0
  18. package/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.js +39 -0
  19. package/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.d.ts +38 -0
  20. package/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.js +39 -0
  21. package/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.d.ts +38 -0
  22. package/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.js +39 -0
  23. package/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.d.ts +38 -0
  24. package/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.js +39 -0
  25. package/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.d.ts +40 -0
  26. package/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.js +40 -0
  27. package/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.d.ts +40 -0
  28. package/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.js +40 -0
  29. package/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.d.ts +40 -0
  30. package/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.js +40 -0
  31. package/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.d.ts +40 -0
  32. package/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.js +40 -0
  33. package/admin/hooks/queries/index.d.ts +10 -2
  34. package/admin/hooks/queries/index.js +10 -2
  35. package/admin/hooks/queries/useAppPermissionDefaultGrantQuery.d.ts +65 -0
  36. package/admin/hooks/queries/useAppPermissionDefaultGrantQuery.js +53 -0
  37. package/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.d.ts +69 -0
  38. package/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.js +38 -0
  39. package/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.d.ts +65 -0
  40. package/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.js +53 -0
  41. package/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.d.ts +69 -0
  42. package/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.js +38 -0
  43. package/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.d.ts +65 -0
  44. package/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.js +53 -0
  45. package/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.d.ts +69 -0
  46. package/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.js +38 -0
  47. package/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.d.ts +65 -0
  48. package/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.js +53 -0
  49. package/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.d.ts +69 -0
  50. package/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.js +38 -0
  51. package/admin/hooks/query-keys.d.ts +70 -14
  52. package/admin/hooks/query-keys.js +45 -9
  53. package/admin/orm/index.d.ts +10 -2
  54. package/admin/orm/index.js +10 -2
  55. package/admin/orm/input-types.d.ts +1611 -230
  56. package/admin/orm/input-types.js +9 -1
  57. package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  58. package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
  59. package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  60. package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
  61. package/admin/orm/models/index.d.ts +5 -1
  62. package/admin/orm/models/index.js +11 -3
  63. package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  64. package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
  65. package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  66. package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
  67. package/admin/schema-types.d.ts +702 -271
  68. package/admin/types.d.ts +49 -15
  69. package/agent/orm/input-types.d.ts +289 -47
  70. package/agent/orm/input-types.js +1 -0
  71. package/agent/schema-types.d.ts +37 -14
  72. package/agent/types.d.ts +3 -2
  73. package/api/hooks/index.d.ts +1 -1
  74. package/api/hooks/index.js +1 -1
  75. package/api/hooks/invalidation.d.ts +6 -0
  76. package/api/hooks/invalidation.js +16 -0
  77. package/api/hooks/mutation-keys.d.ts +12 -0
  78. package/api/hooks/mutation-keys.js +8 -1
  79. package/api/hooks/mutations/index.d.ts +3 -0
  80. package/api/hooks/mutations/index.js +3 -0
  81. package/api/hooks/mutations/useCreateCompositeTypeMutation.d.ts +34 -0
  82. package/api/hooks/mutations/useCreateCompositeTypeMutation.js +34 -0
  83. package/api/hooks/mutations/useDeleteCompositeTypeMutation.d.ts +38 -0
  84. package/api/hooks/mutations/useDeleteCompositeTypeMutation.js +39 -0
  85. package/api/hooks/mutations/useUpdateCompositeTypeMutation.d.ts +40 -0
  86. package/api/hooks/mutations/useUpdateCompositeTypeMutation.js +40 -0
  87. package/api/hooks/queries/index.d.ts +2 -0
  88. package/api/hooks/queries/index.js +2 -0
  89. package/api/hooks/queries/useCompositeTypeQuery.d.ts +65 -0
  90. package/api/hooks/queries/useCompositeTypeQuery.js +53 -0
  91. package/api/hooks/queries/useCompositeTypesQuery.d.ts +69 -0
  92. package/api/hooks/queries/useCompositeTypesQuery.js +38 -0
  93. package/api/hooks/query-keys.d.ts +14 -0
  94. package/api/hooks/query-keys.js +9 -1
  95. package/api/orm/index.d.ts +2 -0
  96. package/api/orm/index.js +2 -0
  97. package/api/orm/input-types.d.ts +1064 -125
  98. package/api/orm/input-types.js +3 -0
  99. package/api/orm/models/compositeType.d.ts +54 -0
  100. package/api/orm/models/compositeType.js +104 -0
  101. package/api/orm/models/index.d.ts +1 -0
  102. package/api/orm/models/index.js +3 -1
  103. package/api/schema-types.d.ts +664 -560
  104. package/api/types.d.ts +15 -14
  105. package/auth/hooks/mutation-keys.d.ts +6 -0
  106. package/auth/hooks/mutation-keys.js +9 -0
  107. package/auth/hooks/mutations/index.d.ts +3 -0
  108. package/auth/hooks/mutations/index.js +3 -0
  109. package/auth/hooks/mutations/useLinkIdentityMutation.d.ts +20 -0
  110. package/auth/hooks/mutations/useLinkIdentityMutation.js +26 -0
  111. package/auth/hooks/mutations/useSignInSmsOtpMutation.d.ts +20 -0
  112. package/auth/hooks/mutations/useSignInSmsOtpMutation.js +26 -0
  113. package/auth/hooks/mutations/useSignUpSmsMutation.d.ts +20 -0
  114. package/auth/hooks/mutations/useSignUpSmsMutation.js +26 -0
  115. package/auth/orm/index.d.ts +15 -0
  116. package/auth/orm/input-types.d.ts +197 -1
  117. package/auth/orm/mutation/index.d.ts +25 -1
  118. package/auth/orm/mutation/index.js +36 -0
  119. package/auth/schema-types.d.ts +78 -34
  120. package/esm/admin/hooks/index.d.ts +1 -1
  121. package/esm/admin/hooks/index.js +1 -1
  122. package/esm/admin/hooks/invalidation.d.ts +30 -6
  123. package/esm/admin/hooks/invalidation.js +81 -17
  124. package/esm/admin/hooks/mutation-keys.d.ts +60 -12
  125. package/esm/admin/hooks/mutation-keys.js +47 -7
  126. package/esm/admin/hooks/mutations/index.d.ts +15 -3
  127. package/esm/admin/hooks/mutations/index.js +15 -3
  128. package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.d.ts +34 -0
  129. package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.js +31 -0
  130. package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.d.ts +34 -0
  131. package/esm/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.js +31 -0
  132. package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.d.ts +34 -0
  133. package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.js +31 -0
  134. package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.d.ts +34 -0
  135. package/esm/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.js +31 -0
  136. package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.d.ts +38 -0
  137. package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.js +36 -0
  138. package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.d.ts +38 -0
  139. package/esm/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.js +36 -0
  140. package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.d.ts +38 -0
  141. package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.js +36 -0
  142. package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.d.ts +38 -0
  143. package/esm/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.js +36 -0
  144. package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.d.ts +40 -0
  145. package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.js +37 -0
  146. package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.d.ts +40 -0
  147. package/esm/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.js +37 -0
  148. package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.d.ts +40 -0
  149. package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.js +37 -0
  150. package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.d.ts +40 -0
  151. package/esm/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.js +37 -0
  152. package/esm/admin/hooks/queries/index.d.ts +10 -2
  153. package/esm/admin/hooks/queries/index.js +10 -2
  154. package/esm/admin/hooks/queries/useAppPermissionDefaultGrantQuery.d.ts +65 -0
  155. package/esm/admin/hooks/queries/useAppPermissionDefaultGrantQuery.js +47 -0
  156. package/esm/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.d.ts +69 -0
  157. package/esm/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.js +32 -0
  158. package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.d.ts +65 -0
  159. package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.js +47 -0
  160. package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.d.ts +69 -0
  161. package/esm/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.js +32 -0
  162. package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.d.ts +65 -0
  163. package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.js +47 -0
  164. package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.d.ts +69 -0
  165. package/esm/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.js +32 -0
  166. package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.d.ts +65 -0
  167. package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.js +47 -0
  168. package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.d.ts +69 -0
  169. package/esm/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.js +32 -0
  170. package/esm/admin/hooks/query-keys.d.ts +70 -14
  171. package/esm/admin/hooks/query-keys.js +44 -8
  172. package/esm/admin/orm/index.d.ts +10 -2
  173. package/esm/admin/orm/index.js +10 -2
  174. package/esm/admin/orm/input-types.d.ts +1611 -230
  175. package/esm/admin/orm/input-types.js +9 -1
  176. package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  177. package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
  178. package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  179. package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
  180. package/esm/admin/orm/models/index.d.ts +5 -1
  181. package/esm/admin/orm/models/index.js +5 -1
  182. package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  183. package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
  184. package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  185. package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
  186. package/esm/admin/schema-types.d.ts +702 -271
  187. package/esm/admin/types.d.ts +49 -15
  188. package/esm/agent/orm/input-types.d.ts +289 -47
  189. package/esm/agent/orm/input-types.js +1 -0
  190. package/esm/agent/schema-types.d.ts +37 -14
  191. package/esm/agent/types.d.ts +3 -2
  192. package/esm/api/hooks/index.d.ts +1 -1
  193. package/esm/api/hooks/index.js +1 -1
  194. package/esm/api/hooks/invalidation.d.ts +6 -0
  195. package/esm/api/hooks/invalidation.js +17 -1
  196. package/esm/api/hooks/mutation-keys.d.ts +12 -0
  197. package/esm/api/hooks/mutation-keys.js +7 -0
  198. package/esm/api/hooks/mutations/index.d.ts +3 -0
  199. package/esm/api/hooks/mutations/index.js +3 -0
  200. package/esm/api/hooks/mutations/useCreateCompositeTypeMutation.d.ts +34 -0
  201. package/esm/api/hooks/mutations/useCreateCompositeTypeMutation.js +31 -0
  202. package/esm/api/hooks/mutations/useDeleteCompositeTypeMutation.d.ts +38 -0
  203. package/esm/api/hooks/mutations/useDeleteCompositeTypeMutation.js +36 -0
  204. package/esm/api/hooks/mutations/useUpdateCompositeTypeMutation.d.ts +40 -0
  205. package/esm/api/hooks/mutations/useUpdateCompositeTypeMutation.js +37 -0
  206. package/esm/api/hooks/queries/index.d.ts +2 -0
  207. package/esm/api/hooks/queries/index.js +2 -0
  208. package/esm/api/hooks/queries/useCompositeTypeQuery.d.ts +65 -0
  209. package/esm/api/hooks/queries/useCompositeTypeQuery.js +47 -0
  210. package/esm/api/hooks/queries/useCompositeTypesQuery.d.ts +69 -0
  211. package/esm/api/hooks/queries/useCompositeTypesQuery.js +32 -0
  212. package/esm/api/hooks/query-keys.d.ts +14 -0
  213. package/esm/api/hooks/query-keys.js +8 -0
  214. package/esm/api/orm/index.d.ts +2 -0
  215. package/esm/api/orm/index.js +2 -0
  216. package/esm/api/orm/input-types.d.ts +1064 -125
  217. package/esm/api/orm/input-types.js +3 -0
  218. package/esm/api/orm/models/compositeType.d.ts +54 -0
  219. package/esm/api/orm/models/compositeType.js +100 -0
  220. package/esm/api/orm/models/index.d.ts +1 -0
  221. package/esm/api/orm/models/index.js +1 -0
  222. package/esm/api/schema-types.d.ts +664 -560
  223. package/esm/api/types.d.ts +15 -14
  224. package/esm/auth/hooks/mutation-keys.d.ts +6 -0
  225. package/esm/auth/hooks/mutation-keys.js +9 -0
  226. package/esm/auth/hooks/mutations/index.d.ts +3 -0
  227. package/esm/auth/hooks/mutations/index.js +3 -0
  228. package/esm/auth/hooks/mutations/useLinkIdentityMutation.d.ts +20 -0
  229. package/esm/auth/hooks/mutations/useLinkIdentityMutation.js +23 -0
  230. package/esm/auth/hooks/mutations/useSignInSmsOtpMutation.d.ts +20 -0
  231. package/esm/auth/hooks/mutations/useSignInSmsOtpMutation.js +23 -0
  232. package/esm/auth/hooks/mutations/useSignUpSmsMutation.d.ts +20 -0
  233. package/esm/auth/hooks/mutations/useSignUpSmsMutation.js +23 -0
  234. package/esm/auth/orm/index.d.ts +15 -0
  235. package/esm/auth/orm/input-types.d.ts +197 -1
  236. package/esm/auth/orm/mutation/index.d.ts +25 -1
  237. package/esm/auth/orm/mutation/index.js +36 -0
  238. package/esm/auth/schema-types.d.ts +78 -34
  239. package/esm/modules/hooks/index.d.ts +1 -1
  240. package/esm/modules/hooks/index.js +1 -1
  241. package/esm/modules/hooks/invalidation.d.ts +79 -73
  242. package/esm/modules/hooks/invalidation.js +183 -167
  243. package/esm/modules/hooks/mutation-keys.d.ts +158 -146
  244. package/esm/modules/hooks/mutation-keys.js +104 -94
  245. package/esm/modules/hooks/mutations/index.d.ts +42 -39
  246. package/esm/modules/hooks/mutations/index.js +42 -39
  247. package/esm/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.d.ts +34 -0
  248. package/esm/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.js +31 -0
  249. package/esm/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.d.ts +38 -0
  250. package/esm/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.js +36 -0
  251. package/esm/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.d.ts +40 -0
  252. package/esm/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.js +37 -0
  253. package/esm/modules/hooks/queries/index.d.ts +28 -26
  254. package/esm/modules/hooks/queries/index.js +28 -26
  255. package/esm/modules/hooks/queries/useFunctionInvocationModuleQuery.d.ts +65 -0
  256. package/esm/modules/hooks/queries/useFunctionInvocationModuleQuery.js +47 -0
  257. package/esm/modules/hooks/queries/useFunctionInvocationModulesQuery.d.ts +69 -0
  258. package/esm/modules/hooks/queries/useFunctionInvocationModulesQuery.js +32 -0
  259. package/esm/modules/hooks/query-keys.d.ts +186 -172
  260. package/esm/modules/hooks/query-keys.js +107 -99
  261. package/esm/modules/orm/index.d.ts +28 -26
  262. package/esm/modules/orm/index.js +28 -26
  263. package/esm/modules/orm/input-types.d.ts +4485 -2514
  264. package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
  265. package/esm/modules/orm/models/functionInvocationModule.js +100 -0
  266. package/esm/modules/orm/models/index.d.ts +14 -13
  267. package/esm/modules/orm/models/index.js +14 -13
  268. package/esm/modules/schema-types.d.ts +2258 -1951
  269. package/esm/modules/types.d.ts +296 -233
  270. package/esm/objects/orm/input-types.d.ts +62 -0
  271. package/esm/usage/orm/input-types.d.ts +314 -19
  272. package/modules/hooks/index.d.ts +1 -1
  273. package/modules/hooks/index.js +1 -1
  274. package/modules/hooks/invalidation.d.ts +79 -73
  275. package/modules/hooks/invalidation.js +182 -166
  276. package/modules/hooks/mutation-keys.d.ts +158 -146
  277. package/modules/hooks/mutation-keys.js +106 -96
  278. package/modules/hooks/mutations/index.d.ts +42 -39
  279. package/modules/hooks/mutations/index.js +42 -39
  280. package/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.d.ts +34 -0
  281. package/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.js +34 -0
  282. package/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.d.ts +38 -0
  283. package/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.js +39 -0
  284. package/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.d.ts +40 -0
  285. package/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.js +40 -0
  286. package/modules/hooks/queries/index.d.ts +28 -26
  287. package/modules/hooks/queries/index.js +28 -26
  288. package/modules/hooks/queries/useFunctionInvocationModuleQuery.d.ts +65 -0
  289. package/modules/hooks/queries/useFunctionInvocationModuleQuery.js +53 -0
  290. package/modules/hooks/queries/useFunctionInvocationModulesQuery.d.ts +69 -0
  291. package/modules/hooks/queries/useFunctionInvocationModulesQuery.js +38 -0
  292. package/modules/hooks/query-keys.d.ts +186 -172
  293. package/modules/hooks/query-keys.js +109 -101
  294. package/modules/orm/index.d.ts +28 -26
  295. package/modules/orm/index.js +28 -26
  296. package/modules/orm/input-types.d.ts +4485 -2514
  297. package/modules/orm/models/functionInvocationModule.d.ts +54 -0
  298. package/modules/orm/models/functionInvocationModule.js +104 -0
  299. package/modules/orm/models/index.d.ts +14 -13
  300. package/modules/orm/models/index.js +30 -28
  301. package/modules/schema-types.d.ts +2258 -1951
  302. package/modules/types.d.ts +296 -233
  303. package/objects/orm/input-types.d.ts +62 -0
  304. package/package.json +4 -4
  305. package/usage/orm/input-types.d.ts +314 -19
@@ -20,6 +20,14 @@ export interface AppPermission {
20
20
  bitstr: string | null;
21
21
  description: string | null;
22
22
  }
23
+ export interface AppPermissionDefaultGrant {
24
+ id: string | null;
25
+ permissionId: string | null;
26
+ isGrant: boolean | null;
27
+ grantorId: string | null;
28
+ createdAt: string | null;
29
+ updatedAt: string | null;
30
+ }
23
31
  export interface OrgPermission {
24
32
  id: string | null;
25
33
  name: string | null;
@@ -27,6 +35,22 @@ export interface OrgPermission {
27
35
  bitstr: string | null;
28
36
  description: string | null;
29
37
  }
38
+ export interface OrgPermissionDefaultPermission {
39
+ id: string | null;
40
+ permissionId: string | null;
41
+ entityId: string | null;
42
+ createdAt: string | null;
43
+ updatedAt: string | null;
44
+ }
45
+ export interface OrgPermissionDefaultGrant {
46
+ id: string | null;
47
+ permissionId: string | null;
48
+ isGrant: boolean | null;
49
+ grantorId: string | null;
50
+ entityId: string | null;
51
+ createdAt: string | null;
52
+ updatedAt: string | null;
53
+ }
30
54
  export interface OrgMember {
31
55
  id: string | null;
32
56
  isAdmin: boolean | null;
@@ -42,6 +66,12 @@ export interface OrgPermissionDefault {
42
66
  permissions: string | null;
43
67
  entityId: string | null;
44
68
  }
69
+ export interface AppPermissionDefaultPermission {
70
+ id: string | null;
71
+ permissionId: string | null;
72
+ createdAt: string | null;
73
+ updatedAt: string | null;
74
+ }
45
75
  export interface AppAdminGrant {
46
76
  id: string | null;
47
77
  isGrant: boolean | null;
@@ -193,21 +223,6 @@ export interface AppMembership {
193
223
  actorId: string | null;
194
224
  profileId: string | null;
195
225
  }
196
- export interface AppInvite {
197
- id: string | null;
198
- email: ConstructiveInternalTypeEmail | null;
199
- senderId: string | null;
200
- inviteToken: string | null;
201
- inviteValid: boolean | null;
202
- inviteLimit: number | null;
203
- inviteCount: number | null;
204
- multiple: boolean | null;
205
- data: unknown | null;
206
- profileId: string | null;
207
- expiresAt: string | null;
208
- createdAt: string | null;
209
- updatedAt: string | null;
210
- }
211
226
  export interface OrgMembership {
212
227
  id: string | null;
213
228
  createdAt: string | null;
@@ -241,9 +256,28 @@ export interface OrgMemberProfile {
241
256
  bio: string | null;
242
257
  profilePicture: ConstructiveInternalTypeImage | null;
243
258
  }
259
+ export interface AppInvite {
260
+ id: string | null;
261
+ channel: string | null;
262
+ email: ConstructiveInternalTypeEmail | null;
263
+ phone: string | null;
264
+ senderId: string | null;
265
+ inviteToken: string | null;
266
+ inviteValid: boolean | null;
267
+ inviteLimit: number | null;
268
+ inviteCount: number | null;
269
+ multiple: boolean | null;
270
+ data: unknown | null;
271
+ profileId: string | null;
272
+ expiresAt: string | null;
273
+ createdAt: string | null;
274
+ updatedAt: string | null;
275
+ }
244
276
  export interface OrgInvite {
245
277
  id: string | null;
278
+ channel: string | null;
246
279
  email: ConstructiveInternalTypeEmail | null;
280
+ phone: string | null;
247
281
  senderId: string | null;
248
282
  receiverId: string | null;
249
283
  inviteToken: string | null;
@@ -302,8 +302,8 @@ export interface AgentMessage {
302
302
  id: string;
303
303
  createdAt?: string | null;
304
304
  updatedAt?: string | null;
305
- /** User who owns this message */
306
- ownerId?: string | null;
305
+ /** User who authored this message */
306
+ actorId?: string | null;
307
307
  /** Message content: TextPart and ToolPart array */
308
308
  parts?: Record<string, unknown> | null;
309
309
  /** Foreign key to agent_thread */
@@ -312,14 +312,16 @@ export interface AgentMessage {
312
312
  authorRole?: string | null;
313
313
  /** LLM model that generated this response */
314
314
  model?: string | null;
315
+ /** Agent that authored this message (NULL for human messages) */
316
+ agentId?: string | null;
315
317
  }
316
318
  /** Task within a plan, with ordering and optional approval gates */
317
319
  export interface AgentTask {
318
320
  id: string;
319
321
  createdAt?: string | null;
320
322
  updatedAt?: string | null;
321
- /** User who owns this task */
322
- ownerId?: string | null;
323
+ /** User who authored this task */
324
+ actorId?: string | null;
323
325
  /** Current status of this task */
324
326
  status?: string | null;
325
327
  /** Foreign key to agent_plan */
@@ -372,7 +374,7 @@ export interface AgentResourceChunk {
372
374
  updatedAt?: string | null;
373
375
  /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */
374
376
  embeddingVectorDistance?: number | null;
375
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
377
+ /** 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. */
376
378
  searchScore?: number | null;
377
379
  }
378
380
  /** Agent persona templates (role, system prompt, default skills/knowledge) */
@@ -439,7 +441,7 @@ export interface AgentResource {
439
441
  descriptionTrgmSimilarity?: number | null;
440
442
  /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */
441
443
  bodyTrgmSimilarity?: number | null;
442
- /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
444
+ /** 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. */
443
445
  searchScore?: number | null;
444
446
  }
445
447
  export interface ConnectionResult<T> {
@@ -461,6 +463,7 @@ export interface AgentRelations {
461
463
  parent?: Agent | null;
462
464
  persona?: AgentPersona | null;
463
465
  agentThreads?: ConnectionResult<AgentThread>;
466
+ agentMessages?: ConnectionResult<AgentMessage>;
464
467
  childAgents?: ConnectionResult<Agent>;
465
468
  }
466
469
  export interface AgentThreadRelations {
@@ -472,6 +475,7 @@ export interface AgentThreadRelations {
472
475
  agentPlansByThreadId?: ConnectionResult<AgentPlan>;
473
476
  }
474
477
  export interface AgentMessageRelations {
478
+ agent?: Agent | null;
475
479
  thread?: AgentThread | null;
476
480
  }
477
481
  export interface AgentTaskRelations {
@@ -540,6 +544,12 @@ export type AgentSelect = {
540
544
  filter?: AgentThreadFilter;
541
545
  orderBy?: AgentThreadOrderBy[];
542
546
  };
547
+ agentMessages?: {
548
+ select: AgentMessageSelect;
549
+ first?: number;
550
+ filter?: AgentMessageFilter;
551
+ orderBy?: AgentMessageOrderBy[];
552
+ };
543
553
  childAgents?: {
544
554
  select: AgentSelect;
545
555
  first?: number;
@@ -595,11 +605,15 @@ export type AgentMessageSelect = {
595
605
  id?: boolean;
596
606
  createdAt?: boolean;
597
607
  updatedAt?: boolean;
598
- ownerId?: boolean;
608
+ actorId?: boolean;
599
609
  parts?: boolean;
600
610
  threadId?: boolean;
601
611
  authorRole?: boolean;
602
612
  model?: boolean;
613
+ agentId?: boolean;
614
+ agent?: {
615
+ select: AgentSelect;
616
+ };
603
617
  thread?: {
604
618
  select: AgentThreadSelect;
605
619
  };
@@ -608,7 +622,7 @@ export type AgentTaskSelect = {
608
622
  id?: boolean;
609
623
  createdAt?: boolean;
610
624
  updatedAt?: boolean;
611
- ownerId?: boolean;
625
+ actorId?: boolean;
612
626
  status?: boolean;
613
627
  planId?: boolean;
614
628
  description?: boolean;
@@ -775,6 +789,10 @@ export interface AgentFilter {
775
789
  agentThreads?: AgentToManyAgentThreadFilter;
776
790
  /** `agentThreads` exist. */
777
791
  agentThreadsExist?: boolean;
792
+ /** Filter by the object’s `agentMessages` relation. */
793
+ agentMessages?: AgentToManyAgentMessageFilter;
794
+ /** `agentMessages` exist. */
795
+ agentMessagesExist?: boolean;
778
796
  /** Filter by the object’s `childAgents` relation. */
779
797
  childAgents?: AgentToManyAgentFilter;
780
798
  /** `childAgents` exist. */
@@ -849,8 +867,8 @@ export interface AgentMessageFilter {
849
867
  createdAt?: DatetimeFilter;
850
868
  /** Filter by the object’s `updatedAt` field. */
851
869
  updatedAt?: DatetimeFilter;
852
- /** Filter by the object’s `ownerId` field. */
853
- ownerId?: UUIDFilter;
870
+ /** Filter by the object’s `actorId` field. */
871
+ actorId?: UUIDFilter;
854
872
  /** Filter by the object’s `parts` field. */
855
873
  parts?: JSONFilter;
856
874
  /** Filter by the object’s `threadId` field. */
@@ -859,12 +877,18 @@ export interface AgentMessageFilter {
859
877
  authorRole?: StringFilter;
860
878
  /** Filter by the object’s `model` field. */
861
879
  model?: StringFilter;
880
+ /** Filter by the object’s `agentId` field. */
881
+ agentId?: UUIDFilter;
862
882
  /** Checks for all expressions in this list. */
863
883
  and?: AgentMessageFilter[];
864
884
  /** Checks for any expressions in this list. */
865
885
  or?: AgentMessageFilter[];
866
886
  /** Negates the expression. */
867
887
  not?: AgentMessageFilter;
888
+ /** Filter by the object’s `agent` relation. */
889
+ agent?: AgentFilter;
890
+ /** A related `agent` exists. */
891
+ agentExists?: boolean;
868
892
  /** Filter by the object’s `thread` relation. */
869
893
  thread?: AgentThreadFilter;
870
894
  }
@@ -875,8 +899,8 @@ export interface AgentTaskFilter {
875
899
  createdAt?: DatetimeFilter;
876
900
  /** Filter by the object’s `updatedAt` field. */
877
901
  updatedAt?: DatetimeFilter;
878
- /** Filter by the object’s `ownerId` field. */
879
- ownerId?: UUIDFilter;
902
+ /** Filter by the object’s `actorId` field. */
903
+ actorId?: UUIDFilter;
880
904
  /** Filter by the object’s `status` field. */
881
905
  status?: StringFilter;
882
906
  /** Filter by the object’s `planId` field. */
@@ -1070,8 +1094,8 @@ export interface AgentResourceFilter {
1070
1094
  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' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'STATUS_ASC' | 'STATUS_DESC';
1071
1095
  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' | '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';
1072
1096
  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' | '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';
1073
- 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' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PARTS_ASC' | 'PARTS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' | 'MODEL_DESC';
1074
- 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' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'PLAN_ID_ASC' | 'PLAN_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';
1097
+ 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' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'AGENT_ID_ASC' | 'AGENT_ID_DESC';
1098
+ 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' | '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';
1075
1099
  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' | 'NAME_ASC' | 'NAME_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'IS_DEFAULT_ASC' | 'IS_DEFAULT_DESC' | 'METADATA_ASC' | 'METADATA_DESC';
1076
1100
  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';
1077
1101
  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' | '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';
@@ -1177,19 +1201,21 @@ export interface DeleteAgentThreadInput {
1177
1201
  export interface CreateAgentMessageInput {
1178
1202
  clientMutationId?: string;
1179
1203
  agentMessage: {
1180
- ownerId?: string;
1204
+ actorId?: string;
1181
1205
  parts?: Record<string, unknown>;
1182
1206
  threadId: string;
1183
1207
  authorRole: string;
1184
1208
  model?: string;
1209
+ agentId?: string;
1185
1210
  };
1186
1211
  }
1187
1212
  export interface AgentMessagePatch {
1188
- ownerId?: string | null;
1213
+ actorId?: string | null;
1189
1214
  parts?: Record<string, unknown> | null;
1190
1215
  threadId?: string | null;
1191
1216
  authorRole?: string | null;
1192
1217
  model?: string | null;
1218
+ agentId?: string | null;
1193
1219
  }
1194
1220
  export interface UpdateAgentMessageInput {
1195
1221
  clientMutationId?: string;
@@ -1203,7 +1229,7 @@ export interface DeleteAgentMessageInput {
1203
1229
  export interface CreateAgentTaskInput {
1204
1230
  clientMutationId?: string;
1205
1231
  agentTask: {
1206
- ownerId?: string;
1232
+ actorId?: string;
1207
1233
  status?: string;
1208
1234
  planId: string;
1209
1235
  description: string;
@@ -1218,7 +1244,7 @@ export interface CreateAgentTaskInput {
1218
1244
  };
1219
1245
  }
1220
1246
  export interface AgentTaskPatch {
1221
- ownerId?: string | null;
1247
+ actorId?: string | null;
1222
1248
  status?: string | null;
1223
1249
  planId?: string | null;
1224
1250
  description?: string | null;
@@ -1402,6 +1428,15 @@ export interface AgentToManyAgentThreadFilter {
1402
1428
  /** Filters to entities where no related entity matches. */
1403
1429
  none?: AgentThreadFilter;
1404
1430
  }
1431
+ /** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1432
+ export interface AgentToManyAgentMessageFilter {
1433
+ /** Filters to entities where at least one related entity matches. */
1434
+ some?: AgentMessageFilter;
1435
+ /** Filters to entities where every related entity matches. */
1436
+ every?: AgentMessageFilter;
1437
+ /** Filters to entities where no related entity matches. */
1438
+ none?: AgentMessageFilter;
1439
+ }
1405
1440
  /** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */
1406
1441
  export interface AgentToManyAgentFilter {
1407
1442
  /** Filters to entities where at least one related entity matches. */
@@ -1555,6 +1590,203 @@ export interface TrgmSearchInput {
1555
1590
  /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */
1556
1591
  threshold?: number;
1557
1592
  }
1593
+ /** An input for mutations affecting `AgentPlan` */
1594
+ export interface AgentPlanInput {
1595
+ id?: string;
1596
+ createdAt?: string;
1597
+ updatedAt?: string;
1598
+ /** User who owns this plan */
1599
+ ownerId?: string;
1600
+ /** Foreign key to agent_thread */
1601
+ threadId: string;
1602
+ /** Human-readable plan name */
1603
+ title: string;
1604
+ /** Overall goal or context for this plan */
1605
+ description?: string;
1606
+ /** Plan lifecycle: draft, active, completed, failed, cancelled */
1607
+ status?: string;
1608
+ }
1609
+ /** An input for mutations affecting `Agent` */
1610
+ export interface AgentInput {
1611
+ id?: string;
1612
+ createdAt?: string;
1613
+ updatedAt?: string;
1614
+ /** Human who owns/manages this agent */
1615
+ ownerId?: string;
1616
+ /** Persona template this agent was created from */
1617
+ personaId?: string;
1618
+ /** Parent agent (for sub-agent delegation hierarchy) */
1619
+ parentId?: string;
1620
+ /** Display name for this agent instance */
1621
+ name: string;
1622
+ /** System prompt override (NULL = inherit from persona) */
1623
+ systemPrompt?: string;
1624
+ /** Per-instance config overrides (model, temperature, tools) */
1625
+ config?: Record<string, unknown>;
1626
+ /** Agent lifecycle status: active, paused, terminated */
1627
+ status?: string;
1628
+ /** If true, agent is deleted when its spawning thread is deleted */
1629
+ isEphemeral?: boolean;
1630
+ }
1631
+ /** An input for mutations affecting `AgentThread` */
1632
+ export interface AgentThreadInput {
1633
+ id?: string;
1634
+ createdAt?: string;
1635
+ updatedAt?: string;
1636
+ /** User who owns this thread */
1637
+ ownerId?: string;
1638
+ /** Current status of this thread */
1639
+ status?: string;
1640
+ /** Whether this record has been archived by the user */
1641
+ isArchived?: boolean;
1642
+ /** Timestamp when this record was archived, NULL if active */
1643
+ archivedAt?: string;
1644
+ /** Human-readable conversation title */
1645
+ title?: string;
1646
+ /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */
1647
+ mode?: string;
1648
+ /** LLM model id this thread is bound to */
1649
+ model?: string;
1650
+ /** System prompt active for this thread */
1651
+ systemPrompt?: string;
1652
+ /** User-defined labels for organizing and filtering threads */
1653
+ tags?: string[];
1654
+ /** Optional FK to a shared prompt template */
1655
+ promptTemplateId?: string;
1656
+ /** Agent instance assigned to this thread */
1657
+ agentId?: string;
1658
+ /** Parent thread that spawned this sub-conversation */
1659
+ parentThreadId?: string;
1660
+ }
1661
+ /** An input for mutations affecting `AgentMessage` */
1662
+ export interface AgentMessageInput {
1663
+ id?: string;
1664
+ createdAt?: string;
1665
+ updatedAt?: string;
1666
+ /** User who authored this message */
1667
+ actorId?: string;
1668
+ /** Message content: TextPart and ToolPart array */
1669
+ parts?: Record<string, unknown>;
1670
+ /** Foreign key to agent_thread */
1671
+ threadId: string;
1672
+ /** Who authored this message: user or assistant */
1673
+ authorRole: string;
1674
+ /** LLM model that generated this response */
1675
+ model?: string;
1676
+ /** Agent that authored this message (NULL for human messages) */
1677
+ agentId?: string;
1678
+ }
1679
+ /** An input for mutations affecting `AgentTask` */
1680
+ export interface AgentTaskInput {
1681
+ id?: string;
1682
+ createdAt?: string;
1683
+ updatedAt?: string;
1684
+ /** User who authored this task */
1685
+ actorId?: string;
1686
+ /** Current status of this task */
1687
+ status?: string;
1688
+ /** Foreign key to agent_plan */
1689
+ planId: string;
1690
+ /** Natural-language description of the work to do */
1691
+ description: string;
1692
+ /** Who created the task: agent or user */
1693
+ source?: string;
1694
+ /** Error message captured when the task failed */
1695
+ error?: string;
1696
+ /** Position within the plan (for ordered task lists) */
1697
+ orderIndex?: number;
1698
+ /** Whether this task is an approval gate requiring human decision */
1699
+ requiresApproval?: boolean;
1700
+ /** Approval decision: pending, approved, rejected (NULL if not an approval task) */
1701
+ approvalStatus?: string;
1702
+ /** User who approved or rejected this task */
1703
+ approvedBy?: string;
1704
+ /** Timestamp of the approval or rejection decision */
1705
+ approvedAt?: string;
1706
+ /** Reviewer feedback or reason for the decision */
1707
+ approvalFeedback?: string;
1708
+ }
1709
+ /** An input for mutations affecting `AgentPrompt` */
1710
+ export interface AgentPromptInput {
1711
+ id?: string;
1712
+ createdAt?: string;
1713
+ updatedAt?: string;
1714
+ createdBy?: string;
1715
+ updatedBy?: string;
1716
+ /** Unique name for lookup (e.g. default, code-review, sales-assistant) */
1717
+ name: string;
1718
+ /** The system prompt template content */
1719
+ content: string;
1720
+ /** What this prompt template is for */
1721
+ description?: string;
1722
+ /** Whether this is the default prompt for the entity/app */
1723
+ isDefault?: boolean;
1724
+ /** Variables, tags, category metadata */
1725
+ metadata?: Record<string, unknown>;
1726
+ }
1727
+ /** An input for mutations affecting `AgentResourceChunk` */
1728
+ export interface AgentResourceChunkInput {
1729
+ id?: string;
1730
+ agentResourceId: string;
1731
+ body: string;
1732
+ chunkIndex?: number;
1733
+ embedding?: number[];
1734
+ metadata?: Record<string, unknown>;
1735
+ createdAt?: string;
1736
+ updatedAt?: string;
1737
+ }
1738
+ /** An input for mutations affecting `AgentPersona` */
1739
+ export interface AgentPersonaInput {
1740
+ id?: string;
1741
+ createdAt?: string;
1742
+ updatedAt?: string;
1743
+ createdBy?: string;
1744
+ updatedBy?: string;
1745
+ /** Unique human-readable identifier for this persona */
1746
+ slug: string;
1747
+ /** Display name for this persona */
1748
+ name: string;
1749
+ /** Brief description of this persona role */
1750
+ description?: string;
1751
+ /** Default system prompt for agents using this persona */
1752
+ systemPrompt?: string;
1753
+ /** Slugs of agent_resource entries to link when spawning */
1754
+ resources?: string[];
1755
+ /** Model preferences, temperature, tool access, constraints */
1756
+ config?: Record<string, unknown>;
1757
+ /** Whether this persona is available for use */
1758
+ isActive?: boolean;
1759
+ }
1760
+ /** An input for mutations affecting `AgentResource` */
1761
+ export interface AgentResourceInput {
1762
+ id?: string;
1763
+ createdAt?: string;
1764
+ updatedAt?: string;
1765
+ createdBy?: string;
1766
+ updatedBy?: string;
1767
+ /** Unique human-readable identifier for portable references */
1768
+ slug: string;
1769
+ /** Resource type: skill, knowledge, or convention */
1770
+ kind?: string;
1771
+ /** Resource name or title */
1772
+ title: string;
1773
+ /** Brief description of this resource */
1774
+ description?: string;
1775
+ /** Full content (instructions for skills, reference text for knowledge) */
1776
+ body: string;
1777
+ /** Keywords for deterministic retrieval routing */
1778
+ keywords?: string[];
1779
+ /** Whether this resource is active and retrievable */
1780
+ isActive?: boolean;
1781
+ /** Structured metadata: category, version, author, custom attributes */
1782
+ metadata?: Record<string, unknown>;
1783
+ /** Whether this record has been archived by the user */
1784
+ isArchived?: boolean;
1785
+ /** Timestamp when this record was archived, NULL if active */
1786
+ archivedAt?: string;
1787
+ embedding?: number[];
1788
+ embeddingUpdatedAt?: string;
1789
+ }
1558
1790
  /** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */
1559
1791
  export interface AgentTaskFilter {
1560
1792
  /** Filter by the object’s `id` field. */
@@ -1563,8 +1795,8 @@ export interface AgentTaskFilter {
1563
1795
  createdAt?: DatetimeFilter;
1564
1796
  /** Filter by the object’s `updatedAt` field. */
1565
1797
  updatedAt?: DatetimeFilter;
1566
- /** Filter by the object’s `ownerId` field. */
1567
- ownerId?: UUIDFilter;
1798
+ /** Filter by the object’s `actorId` field. */
1799
+ actorId?: UUIDFilter;
1568
1800
  /** Filter by the object’s `status` field. */
1569
1801
  status?: StringFilter;
1570
1802
  /** Filter by the object’s `planId` field. */
@@ -1659,6 +1891,39 @@ export interface AgentThreadFilter {
1659
1891
  /** `agentPlansByThreadId` exist. */
1660
1892
  agentPlansByThreadIdExist?: boolean;
1661
1893
  }
1894
+ /** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1895
+ export interface AgentMessageFilter {
1896
+ /** Filter by the object’s `id` field. */
1897
+ id?: UUIDFilter;
1898
+ /** Filter by the object’s `createdAt` field. */
1899
+ createdAt?: DatetimeFilter;
1900
+ /** Filter by the object’s `updatedAt` field. */
1901
+ updatedAt?: DatetimeFilter;
1902
+ /** Filter by the object’s `actorId` field. */
1903
+ actorId?: UUIDFilter;
1904
+ /** Filter by the object’s `parts` field. */
1905
+ parts?: JSONFilter;
1906
+ /** Filter by the object’s `threadId` field. */
1907
+ threadId?: UUIDFilter;
1908
+ /** Filter by the object’s `authorRole` field. */
1909
+ authorRole?: StringFilter;
1910
+ /** Filter by the object’s `model` field. */
1911
+ model?: StringFilter;
1912
+ /** Filter by the object’s `agentId` field. */
1913
+ agentId?: UUIDFilter;
1914
+ /** Checks for all expressions in this list. */
1915
+ and?: AgentMessageFilter[];
1916
+ /** Checks for any expressions in this list. */
1917
+ or?: AgentMessageFilter[];
1918
+ /** Negates the expression. */
1919
+ not?: AgentMessageFilter;
1920
+ /** Filter by the object’s `agent` relation. */
1921
+ agent?: AgentFilter;
1922
+ /** A related `agent` exists. */
1923
+ agentExists?: boolean;
1924
+ /** Filter by the object’s `thread` relation. */
1925
+ thread?: AgentThreadFilter;
1926
+ }
1662
1927
  /** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */
1663
1928
  export interface AgentFilter {
1664
1929
  /** Filter by the object’s `id` field. */
@@ -1701,38 +1966,15 @@ export interface AgentFilter {
1701
1966
  agentThreads?: AgentToManyAgentThreadFilter;
1702
1967
  /** `agentThreads` exist. */
1703
1968
  agentThreadsExist?: boolean;
1969
+ /** Filter by the object’s `agentMessages` relation. */
1970
+ agentMessages?: AgentToManyAgentMessageFilter;
1971
+ /** `agentMessages` exist. */
1972
+ agentMessagesExist?: boolean;
1704
1973
  /** Filter by the object’s `childAgents` relation. */
1705
1974
  childAgents?: AgentToManyAgentFilter;
1706
1975
  /** `childAgents` exist. */
1707
1976
  childAgentsExist?: boolean;
1708
1977
  }
1709
- /** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
1710
- export interface AgentMessageFilter {
1711
- /** Filter by the object’s `id` field. */
1712
- id?: UUIDFilter;
1713
- /** Filter by the object’s `createdAt` field. */
1714
- createdAt?: DatetimeFilter;
1715
- /** Filter by the object’s `updatedAt` field. */
1716
- updatedAt?: DatetimeFilter;
1717
- /** Filter by the object’s `ownerId` field. */
1718
- ownerId?: UUIDFilter;
1719
- /** Filter by the object’s `parts` field. */
1720
- parts?: JSONFilter;
1721
- /** Filter by the object’s `threadId` field. */
1722
- threadId?: UUIDFilter;
1723
- /** Filter by the object’s `authorRole` field. */
1724
- authorRole?: StringFilter;
1725
- /** Filter by the object’s `model` field. */
1726
- model?: StringFilter;
1727
- /** Checks for all expressions in this list. */
1728
- and?: AgentMessageFilter[];
1729
- /** Checks for any expressions in this list. */
1730
- or?: AgentMessageFilter[];
1731
- /** Negates the expression. */
1732
- not?: AgentMessageFilter;
1733
- /** Filter by the object’s `thread` relation. */
1734
- thread?: AgentThreadFilter;
1735
- }
1736
1978
  /** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */
1737
1979
  export interface AgentPlanFilter {
1738
1980
  /** Filter by the object’s `id` field. */
@@ -5,6 +5,7 @@ export const connectionFieldsMap = {
5
5
  },
6
6
  Agent: {
7
7
  agentThreads: 'AgentThread',
8
+ agentMessages: 'AgentMessage',
8
9
  childAgents: 'Agent',
9
10
  },
10
11
  AgentThread: {