@wardby/cli 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/.env.example +34 -4
  2. package/README.md +183 -71
  3. package/dist/claude-coding-worker/driver.d.ts +7 -1
  4. package/dist/claude-coding-worker/driver.js +31 -2
  5. package/dist/claude-coding-worker/main.js +5 -2
  6. package/dist/claude-coding-worker/tool-socket.d.ts +9 -0
  7. package/dist/claude-coding-worker/tool-socket.js +26 -0
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +13 -4
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +219 -29
  12. package/dist/coding/collect-exclude.d.ts +25 -0
  13. package/dist/coding/collect-exclude.js +76 -0
  14. package/dist/coding/profile.d.ts +67 -22
  15. package/dist/coding/profile.js +58 -25
  16. package/dist/coding/protected-path-wording.d.ts +24 -0
  17. package/dist/coding/protected-path-wording.js +55 -0
  18. package/dist/coding/protected-paths.d.ts +31 -0
  19. package/dist/coding/protected-paths.js +48 -0
  20. package/dist/coding/protocol.d.ts +99 -3
  21. package/dist/coding/protocol.js +155 -4
  22. package/dist/coding/registry/adapters.d.ts +2 -0
  23. package/dist/coding/registry/adapters.js +9 -0
  24. package/dist/coding/registry/allowlist.d.ts +9 -0
  25. package/dist/coding/registry/allowlist.js +28 -0
  26. package/dist/coding/registry/json-scan.d.ts +55 -0
  27. package/dist/coding/registry/json-scan.js +191 -0
  28. package/dist/coding/registry/lockfiles.d.ts +6 -0
  29. package/dist/coding/registry/lockfiles.js +89 -0
  30. package/dist/coding/registry/npm-lockfile.d.ts +9 -0
  31. package/dist/coding/registry/npm-lockfile.js +73 -0
  32. package/dist/coding/registry/npm-plan.d.ts +29 -0
  33. package/dist/coding/registry/npm-plan.js +289 -0
  34. package/dist/coding/registry/npm.d.ts +7 -0
  35. package/dist/coding/registry/npm.js +252 -0
  36. package/dist/coding/registry/pypi.d.ts +4 -0
  37. package/dist/coding/registry/pypi.js +210 -0
  38. package/dist/coding/registry/report.d.ts +37 -0
  39. package/dist/coding/registry/report.js +31 -0
  40. package/dist/coding/registry/token.d.ts +4 -0
  41. package/dist/coding/registry/token.js +7 -0
  42. package/dist/coding/registry/types.d.ts +286 -0
  43. package/dist/coding/registry/types.js +19 -0
  44. package/dist/coding/registry/worker-config.d.ts +14 -0
  45. package/dist/coding/registry/worker-config.js +31 -0
  46. package/dist/coding/services/builtins.d.ts +22 -0
  47. package/dist/coding/services/builtins.js +85 -0
  48. package/dist/coding/services/catalog.d.ts +443 -0
  49. package/dist/coding/services/catalog.js +159 -0
  50. package/dist/coding/services/declaration.d.ts +11 -0
  51. package/dist/coding/services/declaration.js +114 -0
  52. package/dist/coding/services/note.d.ts +8 -0
  53. package/dist/coding/services/note.js +15 -0
  54. package/dist/coding/services/resolve.d.ts +25 -0
  55. package/dist/coding/services/resolve.js +50 -0
  56. package/dist/coding/services/wording.d.ts +25 -0
  57. package/dist/coding/services/wording.js +70 -0
  58. package/dist/coding-proxy/main.js +24 -4
  59. package/dist/coding-worker/artifact.d.ts +18 -0
  60. package/dist/coding-worker/artifact.js +48 -6
  61. package/dist/coding-worker/debug-trace.d.ts +37 -0
  62. package/dist/coding-worker/debug-trace.js +117 -0
  63. package/dist/coding-worker/driver.d.ts +14 -1
  64. package/dist/coding-worker/driver.js +106 -14
  65. package/dist/coding-worker/errors.d.ts +7 -0
  66. package/dist/coding-worker/errors.js +26 -0
  67. package/dist/coding-worker/main.js +13 -4
  68. package/dist/coding-worker/sdk.d.ts +2 -2
  69. package/dist/coding-worker/sdk.js +7 -2
  70. package/dist/coding-worker/types.d.ts +3 -0
  71. package/dist/config/providers.d.ts +41 -0
  72. package/dist/config/providers.js +66 -0
  73. package/dist/core/budget-groups.d.ts +109 -6
  74. package/dist/core/budget-groups.js +125 -19
  75. package/dist/core/budget-wording.d.ts +22 -0
  76. package/dist/core/budget-wording.js +55 -0
  77. package/dist/core/coding-queue.d.ts +1 -1
  78. package/dist/core/datastores.d.ts +1 -1
  79. package/dist/core/datastores.js +18 -2
  80. package/dist/core/db.d.ts +40 -2
  81. package/dist/core/db.js +75 -2
  82. package/dist/core/dispatch.d.ts +49 -7
  83. package/dist/core/dispatch.js +290 -45
  84. package/dist/core/engine-native.js +27 -10
  85. package/dist/core/grants.d.ts +86 -0
  86. package/dist/core/grants.js +126 -0
  87. package/dist/core/host-events.d.ts +49 -0
  88. package/dist/core/host-events.js +257 -0
  89. package/dist/core/host-identity-links.d.ts +54 -0
  90. package/dist/core/host-identity-links.js +189 -0
  91. package/dist/core/host-status.d.ts +61 -0
  92. package/dist/core/host-status.js +211 -0
  93. package/dist/core/http-runtime.js +3 -4
  94. package/dist/core/in-flight-runs.d.ts +8 -0
  95. package/dist/core/in-flight-runs.js +56 -0
  96. package/dist/core/lease.d.ts +1 -1
  97. package/dist/core/private-directory.d.ts +20 -0
  98. package/dist/core/private-directory.js +36 -0
  99. package/dist/core/provider-wording.d.ts +12 -0
  100. package/dist/core/provider-wording.js +44 -0
  101. package/dist/core/reconciler.d.ts +39 -3
  102. package/dist/core/reconciler.js +86 -2
  103. package/dist/core/repo-access.d.ts +99 -0
  104. package/dist/core/repo-access.js +136 -0
  105. package/dist/core/review-host-checks.d.ts +11 -0
  106. package/dist/core/review-host-checks.js +41 -0
  107. package/dist/core/review-host-tools.d.ts +47 -0
  108. package/dist/core/review-host-tools.js +347 -0
  109. package/dist/core/run-heartbeat.d.ts +27 -0
  110. package/dist/core/run-heartbeat.js +54 -0
  111. package/dist/core/runner.d.ts +31 -9
  112. package/dist/core/runner.js +237 -40
  113. package/dist/core/scheduler.d.ts +1 -1
  114. package/dist/core/secrets.d.ts +12 -3
  115. package/dist/core/secrets.js +25 -6
  116. package/dist/core/subagent-memory-tools.d.ts +2 -2
  117. package/dist/core/subagent-memory-tools.js +16 -3
  118. package/dist/core/tool-admin.d.ts +81 -0
  119. package/dist/core/tool-admin.js +129 -0
  120. package/dist/core/tool-names.d.ts +42 -0
  121. package/dist/core/tool-names.js +64 -0
  122. package/dist/core/untrusted-content.d.ts +32 -0
  123. package/dist/core/untrusted-content.js +72 -0
  124. package/dist/core/webhooks.d.ts +9 -2
  125. package/dist/core/webhooks.js +23 -2
  126. package/dist/generated/prisma/browser.d.ts +328 -0
  127. package/dist/generated/prisma/browser.js +17 -0
  128. package/dist/generated/prisma/client.d.ts +347 -0
  129. package/dist/generated/prisma/client.js +34 -0
  130. package/dist/generated/prisma/commonInputTypes.d.ts +839 -0
  131. package/dist/generated/prisma/commonInputTypes.js +10 -0
  132. package/dist/generated/prisma/enums.d.ts +59 -0
  133. package/dist/generated/prisma/enums.js +59 -0
  134. package/dist/generated/prisma/internal/class.d.ts +605 -0
  135. package/dist/generated/prisma/internal/class.js +49 -0
  136. package/dist/generated/prisma/internal/prismaNamespace.d.ts +4494 -0
  137. package/dist/generated/prisma/internal/prismaNamespace.js +628 -0
  138. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +635 -0
  139. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +599 -0
  140. package/dist/generated/prisma/models/Agent.d.ts +3560 -0
  141. package/dist/generated/prisma/models/Agent.js +1 -0
  142. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  143. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  144. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  145. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  146. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  147. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  148. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  149. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  150. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  151. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  152. package/dist/generated/prisma/models/AgentTool.d.ts +1403 -0
  153. package/dist/generated/prisma/models/AgentTool.js +1 -0
  154. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  155. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  156. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  157. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  158. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  159. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  160. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  161. package/dist/generated/prisma/models/AuthSession.js +1 -0
  162. package/dist/generated/prisma/models/AuthUser.d.ts +1700 -0
  163. package/dist/generated/prisma/models/AuthUser.js +1 -0
  164. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  165. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  166. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1681 -0
  167. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  168. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  169. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  170. package/dist/generated/prisma/models/CodingProxySession.d.ts +1626 -0
  171. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  172. package/dist/generated/prisma/models/CodingRun.d.ts +3583 -0
  173. package/dist/generated/prisma/models/CodingRun.js +1 -0
  174. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  175. package/dist/generated/prisma/models/CodingService.js +1 -0
  176. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  177. package/dist/generated/prisma/models/Datastore.js +1 -0
  178. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  179. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  180. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  181. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  182. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  183. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  184. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  185. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  186. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  187. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  188. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  189. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  190. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  191. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  192. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  193. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  194. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  195. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  196. package/dist/generated/prisma/models/Principal.d.ts +2245 -0
  197. package/dist/generated/prisma/models/Principal.js +1 -0
  198. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  199. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  200. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  201. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  202. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  203. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  204. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  205. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  206. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  207. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  208. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  209. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  210. package/dist/generated/prisma/models/Run.d.ts +2669 -0
  211. package/dist/generated/prisma/models/Run.js +1 -0
  212. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  213. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  214. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  215. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  216. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  217. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  218. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  219. package/dist/generated/prisma/models/Secret.js +1 -0
  220. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  221. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  222. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  223. package/dist/generated/prisma/models/Task.js +1 -0
  224. package/dist/generated/prisma/models/Tool.d.ts +1490 -0
  225. package/dist/generated/prisma/models/Tool.js +1 -0
  226. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  227. package/dist/generated/prisma/models/Webhook.js +1 -0
  228. package/dist/generated/prisma/models.d.ts +45 -0
  229. package/dist/generated/prisma/models.js +1 -0
  230. package/dist/help/build.d.ts +1 -0
  231. package/dist/help/build.js +9 -0
  232. package/dist/help/catalog.d.ts +24 -0
  233. package/dist/help/catalog.js +160 -0
  234. package/dist/help/cli.d.ts +2 -0
  235. package/dist/help/cli.js +65 -0
  236. package/dist/help/runtime.d.ts +3 -0
  237. package/dist/help/runtime.js +44 -0
  238. package/dist/help/search.d.ts +9 -0
  239. package/dist/help/search.js +104 -0
  240. package/dist/help-index.json +660 -0
  241. package/dist/import/cli-args.js +3 -2
  242. package/dist/import/create.d.ts +6 -1
  243. package/dist/import/create.js +68 -14
  244. package/dist/import/index.d.ts +1 -1
  245. package/dist/import/index.js +19 -9
  246. package/dist/import/neutral-schema.d.ts +11 -11
  247. package/dist/mcp/auth/access.d.ts +70 -0
  248. package/dist/mcp/auth/access.js +58 -0
  249. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  250. package/dist/mcp/auth/grants-cli.js +518 -0
  251. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  252. package/dist/mcp/auth/host-account-cli.js +47 -0
  253. package/dist/mcp/auth/ownership.d.ts +37 -63
  254. package/dist/mcp/auth/ownership.js +19 -14
  255. package/dist/mcp/auth/principal.d.ts +1 -1
  256. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  257. package/dist/mcp/auth/repo-authorization.js +51 -0
  258. package/dist/mcp/auth/resource-server.d.ts +32 -3
  259. package/dist/mcp/auth/resource-server.js +84 -3
  260. package/dist/mcp/auth/self-hosted/browser.js +22 -8
  261. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  262. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  263. package/dist/mcp/auth/self-hosted/credentials.d.ts +21 -3
  264. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  265. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  266. package/dist/mcp/auth/self-hosted/session.d.ts +3 -2
  267. package/dist/mcp/context.d.ts +28 -2
  268. package/dist/mcp/errors.d.ts +25 -6
  269. package/dist/mcp/errors.js +98 -0
  270. package/dist/mcp/host-events/github-ingress.d.ts +36 -0
  271. package/dist/mcp/host-events/github-ingress.js +92 -0
  272. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  273. package/dist/mcp/host-events/github-user-callback.js +50 -0
  274. package/dist/mcp/index.d.ts +8 -1
  275. package/dist/mcp/index.js +106 -16
  276. package/dist/mcp/server.d.ts +1 -1
  277. package/dist/mcp/server.js +27 -9
  278. package/dist/mcp/shared/page-style.d.ts +16 -0
  279. package/dist/mcp/shared/page-style.js +129 -0
  280. package/dist/mcp/tasks/manager.d.ts +1 -1
  281. package/dist/mcp/tools/agents.js +447 -49
  282. package/dist/mcp/tools/budget-groups.js +3 -3
  283. package/dist/mcp/tools/datastore.js +23 -16
  284. package/dist/mcp/tools/grants.d.ts +2 -0
  285. package/dist/mcp/tools/grants.js +239 -0
  286. package/dist/mcp/tools/help.d.ts +5 -0
  287. package/dist/mcp/tools/help.js +67 -0
  288. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  289. package/dist/mcp/tools/host-accounts.js +114 -0
  290. package/dist/mcp/tools/memory.d.ts +7 -1
  291. package/dist/mcp/tools/memory.js +5 -5
  292. package/dist/mcp/tools/repositories.d.ts +2 -0
  293. package/dist/mcp/tools/repositories.js +181 -0
  294. package/dist/mcp/tools/runs.d.ts +6 -0
  295. package/dist/mcp/tools/runs.js +60 -6
  296. package/dist/mcp/tools/scheduling.js +4 -7
  297. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  298. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  299. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  300. package/dist/mcp/tools/secrets.js +18 -6
  301. package/dist/mcp/tools/services.d.ts +2 -0
  302. package/dist/mcp/tools/services.js +222 -0
  303. package/dist/mcp/tools/subagents.js +53 -17
  304. package/dist/mcp/tools/tools.d.ts +41 -0
  305. package/dist/mcp/tools/tools.js +202 -41
  306. package/dist/mcp/tools/trigger.js +36 -6
  307. package/dist/mcp/tools/webhooks.js +15 -4
  308. package/dist/mcp/transport/streamable-http.d.ts +11 -1
  309. package/dist/mcp/transport/streamable-http.js +32 -2
  310. package/dist/mcp/unattended-schedules.d.ts +1 -1
  311. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  312. package/dist/providers/auth/delegating.d.ts +19 -0
  313. package/dist/providers/auth/delegating.js +71 -0
  314. package/dist/providers/auth/index.d.ts +3 -1
  315. package/dist/providers/auth/index.js +11 -0
  316. package/dist/providers/auth/self-hosted.d.ts +4 -3
  317. package/dist/providers/auth/self-hosted.js +16 -4
  318. package/dist/providers/auth/types.d.ts +6 -0
  319. package/dist/providers/coding-proxy/memory-ledger.d.ts +3 -0
  320. package/dist/providers/coding-proxy/memory-ledger.js +21 -2
  321. package/dist/providers/coding-proxy/metering.d.ts +4 -0
  322. package/dist/providers/coding-proxy/metering.js +28 -2
  323. package/dist/providers/coding-proxy/prisma-ledger.d.ts +18 -1
  324. package/dist/providers/coding-proxy/prisma-ledger.js +50 -5
  325. package/dist/providers/coding-proxy/proxy.d.ts +13 -0
  326. package/dist/providers/coding-proxy/proxy.js +479 -18
  327. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  328. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  329. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  330. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  331. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  332. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  333. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  334. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  335. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  336. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  337. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  338. package/dist/providers/coding-proxy/registry/store.js +70 -0
  339. package/dist/providers/coding-proxy/runtime.d.ts +18 -1
  340. package/dist/providers/coding-proxy/runtime.js +63 -0
  341. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  342. package/dist/providers/coding-proxy/server.d.ts +11 -0
  343. package/dist/providers/coding-proxy/server.js +163 -0
  344. package/dist/providers/coding-proxy/types.d.ts +15 -0
  345. package/dist/providers/datastore/postgres.d.ts +1 -1
  346. package/dist/providers/engine/types.d.ts +10 -0
  347. package/dist/providers/executor/build.d.ts +3 -3
  348. package/dist/providers/executor/composition.d.ts +4 -1
  349. package/dist/providers/executor/composition.js +19 -0
  350. package/dist/providers/executor/container.d.ts +106 -4
  351. package/dist/providers/executor/container.js +305 -22
  352. package/dist/providers/executor/dbos.d.ts +3 -4
  353. package/dist/providers/executor/in-process.d.ts +2 -3
  354. package/dist/providers/executor/routing.d.ts +7 -0
  355. package/dist/providers/executor/routing.js +13 -0
  356. package/dist/providers/executor/types.d.ts +22 -0
  357. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  358. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  359. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  360. package/dist/providers/jobs/collect-prune.js +27 -0
  361. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  362. package/dist/providers/jobs/docker-isolation.js +213 -22
  363. package/dist/providers/jobs/docker-services.d.ts +35 -0
  364. package/dist/providers/jobs/docker-services.js +191 -0
  365. package/dist/providers/jobs/docker.d.ts +60 -2
  366. package/dist/providers/jobs/docker.js +313 -50
  367. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  368. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  369. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  370. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  371. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  372. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  373. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  374. package/dist/providers/jobs/kubernetes.d.ts +21 -2
  375. package/dist/providers/jobs/kubernetes.js +117 -31
  376. package/dist/providers/jobs/types.d.ts +20 -0
  377. package/dist/providers/llm/anthropic.js +6 -2
  378. package/dist/providers/llm/bedrock.js +2 -1
  379. package/dist/providers/llm/claude-messages.d.ts +5 -1
  380. package/dist/providers/llm/claude-messages.js +1 -0
  381. package/dist/providers/llm/claude-provider.d.ts +3 -1
  382. package/dist/providers/llm/claude-provider.js +5 -1
  383. package/dist/providers/llm/index.d.ts +1 -1
  384. package/dist/providers/llm/index.js +1 -1
  385. package/dist/providers/llm/pricing-anthropic.d.ts +10 -0
  386. package/dist/providers/llm/pricing-anthropic.js +32 -14
  387. package/dist/providers/llm/pricing-bedrock-claude.d.ts +8 -0
  388. package/dist/providers/llm/pricing-bedrock-claude.js +9 -0
  389. package/dist/providers/llm/routing.d.ts +10 -1
  390. package/dist/providers/llm/routing.js +18 -0
  391. package/dist/providers/llm/types.d.ts +12 -0
  392. package/dist/providers/llm/types.js +8 -1
  393. package/dist/providers/memory/postgres.d.ts +1 -1
  394. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  395. package/dist/providers/review-host/diff-lines.js +59 -0
  396. package/dist/providers/review-host/github-events.d.ts +6 -0
  397. package/dist/providers/review-host/github-events.js +180 -0
  398. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  399. package/dist/providers/review-host/github-user-auth.js +128 -0
  400. package/dist/providers/review-host/github.d.ts +57 -0
  401. package/dist/providers/review-host/github.js +567 -0
  402. package/dist/providers/review-host/index.d.ts +12 -0
  403. package/dist/providers/review-host/index.js +30 -0
  404. package/dist/providers/review-host/review-format.d.ts +19 -0
  405. package/dist/providers/review-host/review-format.js +59 -0
  406. package/dist/providers/review-host/types.d.ts +284 -0
  407. package/dist/providers/review-host/types.js +24 -0
  408. package/dist/providers/vcs/git.d.ts +16 -6
  409. package/dist/providers/vcs/git.js +79 -14
  410. package/dist/providers/vcs/github.d.ts +74 -3
  411. package/dist/providers/vcs/github.js +195 -15
  412. package/dist/providers/vcs/types.d.ts +42 -4
  413. package/dist/quickstart/index.js +34 -32
  414. package/dist/quickstart/migrate.d.ts +23 -0
  415. package/dist/quickstart/migrate.js +125 -0
  416. package/dist/sandbox/fetch-policy.d.ts +20 -2
  417. package/dist/sandbox/fetch-policy.js +64 -3
  418. package/dist/sandbox/host-functions.d.ts +9 -1
  419. package/dist/sandbox/host-functions.js +12 -5
  420. package/dist/serve.js +1 -1
  421. package/dist/wardby-bin.js +6 -0
  422. package/docs/README.md +30 -0
  423. package/docs/architecture-runtime.md +90 -0
  424. package/docs/assets/brand/wardby-icon-512.png +0 -0
  425. package/docs/assets/brand/wardby-icon.svg +16 -0
  426. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  427. package/docs/assets/brand/wardby-mascot.png +0 -0
  428. package/docs/assets/brand/wardby-mascot.svg +5 -0
  429. package/docs/assets/wardby-workflow.svg +106 -0
  430. package/docs/code-review-agents.md +481 -0
  431. package/docs/coding-agent-setup.md +172 -0
  432. package/docs/coding-packages.md +455 -0
  433. package/docs/coding-services.md +300 -0
  434. package/docs/coding-worker-byo-images.md +98 -0
  435. package/docs/coding-worker-isolation.md +1061 -0
  436. package/docs/getting-started-gke.md +615 -0
  437. package/docs/getting-started-identity-provider.md +308 -0
  438. package/docs/getting-started.md +133 -0
  439. package/docs/observability.md +53 -0
  440. package/docs/release-verification.md +66 -0
  441. package/docs/security-deployment.md +657 -0
  442. package/help/code-review-agents.md +31 -0
  443. package/help/coding-packages.md +31 -0
  444. package/help/coding-services.md +71 -0
  445. package/help/creating-agents.md +68 -0
  446. package/help/deploy-gke.md +39 -0
  447. package/help/deployment-targets.md +39 -0
  448. package/help/errors/budget-group-exhausted.md +25 -0
  449. package/help/errors/docker-isolation-unsupported.md +26 -0
  450. package/help/errors/protected-path.md +45 -0
  451. package/help/errors/repo-access.md +27 -0
  452. package/help/errors/service-declaration-invalid.md +27 -0
  453. package/help/errors/service-declaration-unavailable.md +25 -0
  454. package/help/errors/service-launcher-unsupported.md +30 -0
  455. package/help/errors/service-not-allowed.md +27 -0
  456. package/help/errors/service-unknown.md +23 -0
  457. package/help/errors/service-unready.md +49 -0
  458. package/help/getting-started.md +31 -0
  459. package/help/github.md +30 -0
  460. package/help/identity-and-access.md +39 -0
  461. package/help/mcp.md +30 -0
  462. package/help/native-capabilities.md +30 -0
  463. package/help/observability.md +41 -0
  464. package/help/operating-agents.md +30 -0
  465. package/help/security.md +27 -0
  466. package/help/troubleshooting/budgets.md +26 -0
  467. package/help/troubleshooting/coding-workers.md +47 -0
  468. package/help/troubleshooting/repository-access.md +27 -0
  469. package/package.json +30 -11
  470. package/prisma/migrate.config.mjs +20 -0
  471. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  472. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  473. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  474. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  475. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  476. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  477. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  478. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  479. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  480. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  481. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  482. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  483. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  484. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  485. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  486. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  487. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  488. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  489. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  490. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  491. package/prisma/schema.prisma +417 -23
@@ -0,0 +1,3560 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model Agent
6
+ *
7
+ */
8
+ export type AgentModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentPayload>;
9
+ export type AggregateAgent = {
10
+ _count: AgentCountAggregateOutputType | null;
11
+ _avg: AgentAvgAggregateOutputType | null;
12
+ _sum: AgentSumAggregateOutputType | null;
13
+ _min: AgentMinAggregateOutputType | null;
14
+ _max: AgentMaxAggregateOutputType | null;
15
+ };
16
+ export type AgentAvgAggregateOutputType = {
17
+ budgetUsd: runtime.Decimal | null;
18
+ maxTurns: number | null;
19
+ };
20
+ export type AgentSumAggregateOutputType = {
21
+ budgetUsd: runtime.Decimal | null;
22
+ maxTurns: number | null;
23
+ };
24
+ export type AgentMinAggregateOutputType = {
25
+ id: string | null;
26
+ name: string | null;
27
+ systemPrompt: string | null;
28
+ model: string | null;
29
+ budgetUsd: runtime.Decimal | null;
30
+ createdAt: Date | null;
31
+ updatedAt: Date | null;
32
+ kind: $Enums.AgentKind | null;
33
+ schedule: string | null;
34
+ timezone: string | null;
35
+ scheduleEnabled: boolean | null;
36
+ lastScheduledAt: Date | null;
37
+ maxTurns: number | null;
38
+ ownerId: string | null;
39
+ budgetGroupId: string | null;
40
+ memoryEnabled: boolean | null;
41
+ effort: string | null;
42
+ };
43
+ export type AgentMaxAggregateOutputType = {
44
+ id: string | null;
45
+ name: string | null;
46
+ systemPrompt: string | null;
47
+ model: string | null;
48
+ budgetUsd: runtime.Decimal | null;
49
+ createdAt: Date | null;
50
+ updatedAt: Date | null;
51
+ kind: $Enums.AgentKind | null;
52
+ schedule: string | null;
53
+ timezone: string | null;
54
+ scheduleEnabled: boolean | null;
55
+ lastScheduledAt: Date | null;
56
+ maxTurns: number | null;
57
+ ownerId: string | null;
58
+ budgetGroupId: string | null;
59
+ memoryEnabled: boolean | null;
60
+ effort: string | null;
61
+ };
62
+ export type AgentCountAggregateOutputType = {
63
+ id: number;
64
+ name: number;
65
+ systemPrompt: number;
66
+ model: number;
67
+ budgetUsd: number;
68
+ createdAt: number;
69
+ updatedAt: number;
70
+ kind: number;
71
+ schedule: number;
72
+ timezone: number;
73
+ scheduleEnabled: number;
74
+ lastScheduledAt: number;
75
+ maxTurns: number;
76
+ ownerId: number;
77
+ budgetGroupId: number;
78
+ memoryEnabled: number;
79
+ effort: number;
80
+ _all: number;
81
+ };
82
+ export type AgentAvgAggregateInputType = {
83
+ budgetUsd?: true;
84
+ maxTurns?: true;
85
+ };
86
+ export type AgentSumAggregateInputType = {
87
+ budgetUsd?: true;
88
+ maxTurns?: true;
89
+ };
90
+ export type AgentMinAggregateInputType = {
91
+ id?: true;
92
+ name?: true;
93
+ systemPrompt?: true;
94
+ model?: true;
95
+ budgetUsd?: true;
96
+ createdAt?: true;
97
+ updatedAt?: true;
98
+ kind?: true;
99
+ schedule?: true;
100
+ timezone?: true;
101
+ scheduleEnabled?: true;
102
+ lastScheduledAt?: true;
103
+ maxTurns?: true;
104
+ ownerId?: true;
105
+ budgetGroupId?: true;
106
+ memoryEnabled?: true;
107
+ effort?: true;
108
+ };
109
+ export type AgentMaxAggregateInputType = {
110
+ id?: true;
111
+ name?: true;
112
+ systemPrompt?: true;
113
+ model?: true;
114
+ budgetUsd?: true;
115
+ createdAt?: true;
116
+ updatedAt?: true;
117
+ kind?: true;
118
+ schedule?: true;
119
+ timezone?: true;
120
+ scheduleEnabled?: true;
121
+ lastScheduledAt?: true;
122
+ maxTurns?: true;
123
+ ownerId?: true;
124
+ budgetGroupId?: true;
125
+ memoryEnabled?: true;
126
+ effort?: true;
127
+ };
128
+ export type AgentCountAggregateInputType = {
129
+ id?: true;
130
+ name?: true;
131
+ systemPrompt?: true;
132
+ model?: true;
133
+ budgetUsd?: true;
134
+ createdAt?: true;
135
+ updatedAt?: true;
136
+ kind?: true;
137
+ schedule?: true;
138
+ timezone?: true;
139
+ scheduleEnabled?: true;
140
+ lastScheduledAt?: true;
141
+ maxTurns?: true;
142
+ ownerId?: true;
143
+ budgetGroupId?: true;
144
+ memoryEnabled?: true;
145
+ effort?: true;
146
+ _all?: true;
147
+ };
148
+ export type AgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
149
+ /**
150
+ * Filter which Agent to aggregate.
151
+ */
152
+ where?: Prisma.AgentWhereInput;
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
155
+ *
156
+ * Determine the order of Agents to fetch.
157
+ */
158
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
161
+ *
162
+ * Sets the start position
163
+ */
164
+ cursor?: Prisma.AgentWhereUniqueInput;
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
+ *
168
+ * Take `±n` Agents from the position of the cursor.
169
+ */
170
+ take?: number;
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
173
+ *
174
+ * Skip the first `n` Agents.
175
+ */
176
+ skip?: number;
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Count returned Agents
181
+ **/
182
+ _count?: true | AgentCountAggregateInputType;
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to average
187
+ **/
188
+ _avg?: AgentAvgAggregateInputType;
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Select which fields to sum
193
+ **/
194
+ _sum?: AgentSumAggregateInputType;
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to find the minimum value
199
+ **/
200
+ _min?: AgentMinAggregateInputType;
201
+ /**
202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
203
+ *
204
+ * Select which fields to find the maximum value
205
+ **/
206
+ _max?: AgentMaxAggregateInputType;
207
+ };
208
+ export type GetAgentAggregateType<T extends AgentAggregateArgs> = {
209
+ [P in keyof T & keyof AggregateAgent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgent[P]> : Prisma.GetScalarType<T[P], AggregateAgent[P]>;
210
+ };
211
+ export type AgentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
212
+ where?: Prisma.AgentWhereInput;
213
+ orderBy?: Prisma.AgentOrderByWithAggregationInput | Prisma.AgentOrderByWithAggregationInput[];
214
+ by: Prisma.AgentScalarFieldEnum[] | Prisma.AgentScalarFieldEnum;
215
+ having?: Prisma.AgentScalarWhereWithAggregatesInput;
216
+ take?: number;
217
+ skip?: number;
218
+ _count?: AgentCountAggregateInputType | true;
219
+ _avg?: AgentAvgAggregateInputType;
220
+ _sum?: AgentSumAggregateInputType;
221
+ _min?: AgentMinAggregateInputType;
222
+ _max?: AgentMaxAggregateInputType;
223
+ };
224
+ export type AgentGroupByOutputType = {
225
+ id: string;
226
+ name: string;
227
+ systemPrompt: string;
228
+ model: string;
229
+ budgetUsd: runtime.Decimal;
230
+ createdAt: Date;
231
+ updatedAt: Date;
232
+ kind: $Enums.AgentKind;
233
+ schedule: string | null;
234
+ timezone: string;
235
+ scheduleEnabled: boolean;
236
+ lastScheduledAt: Date | null;
237
+ maxTurns: number;
238
+ ownerId: string | null;
239
+ budgetGroupId: string | null;
240
+ memoryEnabled: boolean;
241
+ effort: string | null;
242
+ _count: AgentCountAggregateOutputType | null;
243
+ _avg: AgentAvgAggregateOutputType | null;
244
+ _sum: AgentSumAggregateOutputType | null;
245
+ _min: AgentMinAggregateOutputType | null;
246
+ _max: AgentMaxAggregateOutputType | null;
247
+ };
248
+ export type GetAgentGroupByPayload<T extends AgentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentGroupByOutputType, T['by']> & {
249
+ [P in ((keyof T) & (keyof AgentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]>;
250
+ }>>;
251
+ export type AgentWhereInput = {
252
+ AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
253
+ OR?: Prisma.AgentWhereInput[];
254
+ NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
255
+ id?: Prisma.StringFilter<"Agent"> | string;
256
+ name?: Prisma.StringFilter<"Agent"> | string;
257
+ systemPrompt?: Prisma.StringFilter<"Agent"> | string;
258
+ model?: Prisma.StringFilter<"Agent"> | string;
259
+ budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
260
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
261
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
262
+ kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
263
+ schedule?: Prisma.StringNullableFilter<"Agent"> | string | null;
264
+ timezone?: Prisma.StringFilter<"Agent"> | string;
265
+ scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
266
+ lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
267
+ maxTurns?: Prisma.IntFilter<"Agent"> | number;
268
+ ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
269
+ budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
270
+ memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
271
+ effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
272
+ runs?: Prisma.RunListRelationFilter;
273
+ codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
274
+ tools?: Prisma.AgentToolListRelationFilter;
275
+ owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
276
+ secrets?: Prisma.AgentSecretListRelationFilter;
277
+ datastores?: Prisma.AgentDatastoreListRelationFilter;
278
+ webhooks?: Prisma.WebhookListRelationFilter;
279
+ repositories?: Prisma.AgentRepositoryListRelationFilter;
280
+ budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
281
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
282
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
283
+ };
284
+ export type AgentOrderByWithRelationInput = {
285
+ id?: Prisma.SortOrder;
286
+ name?: Prisma.SortOrder;
287
+ systemPrompt?: Prisma.SortOrder;
288
+ model?: Prisma.SortOrder;
289
+ budgetUsd?: Prisma.SortOrder;
290
+ createdAt?: Prisma.SortOrder;
291
+ updatedAt?: Prisma.SortOrder;
292
+ kind?: Prisma.SortOrder;
293
+ schedule?: Prisma.SortOrderInput | Prisma.SortOrder;
294
+ timezone?: Prisma.SortOrder;
295
+ scheduleEnabled?: Prisma.SortOrder;
296
+ lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
297
+ maxTurns?: Prisma.SortOrder;
298
+ ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
299
+ budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
300
+ memoryEnabled?: Prisma.SortOrder;
301
+ effort?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ runs?: Prisma.RunOrderByRelationAggregateInput;
303
+ codingProfile?: Prisma.CodingAgentProfileOrderByWithRelationInput;
304
+ tools?: Prisma.AgentToolOrderByRelationAggregateInput;
305
+ owner?: Prisma.PrincipalOrderByWithRelationInput;
306
+ secrets?: Prisma.AgentSecretOrderByRelationAggregateInput;
307
+ datastores?: Prisma.AgentDatastoreOrderByRelationAggregateInput;
308
+ webhooks?: Prisma.WebhookOrderByRelationAggregateInput;
309
+ repositories?: Prisma.AgentRepositoryOrderByRelationAggregateInput;
310
+ budgetGroup?: Prisma.BudgetGroupOrderByWithRelationInput;
311
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
312
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
313
+ };
314
+ export type AgentWhereUniqueInput = Prisma.AtLeast<{
315
+ id?: string;
316
+ name?: string;
317
+ AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
318
+ OR?: Prisma.AgentWhereInput[];
319
+ NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
320
+ systemPrompt?: Prisma.StringFilter<"Agent"> | string;
321
+ model?: Prisma.StringFilter<"Agent"> | string;
322
+ budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
323
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
324
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
325
+ kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
326
+ schedule?: Prisma.StringNullableFilter<"Agent"> | string | null;
327
+ timezone?: Prisma.StringFilter<"Agent"> | string;
328
+ scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
329
+ lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
330
+ maxTurns?: Prisma.IntFilter<"Agent"> | number;
331
+ ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
332
+ budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
333
+ memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
334
+ effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
335
+ runs?: Prisma.RunListRelationFilter;
336
+ codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
337
+ tools?: Prisma.AgentToolListRelationFilter;
338
+ owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
339
+ secrets?: Prisma.AgentSecretListRelationFilter;
340
+ datastores?: Prisma.AgentDatastoreListRelationFilter;
341
+ webhooks?: Prisma.WebhookListRelationFilter;
342
+ repositories?: Prisma.AgentRepositoryListRelationFilter;
343
+ budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
344
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
345
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
346
+ }, "id" | "name">;
347
+ export type AgentOrderByWithAggregationInput = {
348
+ id?: Prisma.SortOrder;
349
+ name?: Prisma.SortOrder;
350
+ systemPrompt?: Prisma.SortOrder;
351
+ model?: Prisma.SortOrder;
352
+ budgetUsd?: Prisma.SortOrder;
353
+ createdAt?: Prisma.SortOrder;
354
+ updatedAt?: Prisma.SortOrder;
355
+ kind?: Prisma.SortOrder;
356
+ schedule?: Prisma.SortOrderInput | Prisma.SortOrder;
357
+ timezone?: Prisma.SortOrder;
358
+ scheduleEnabled?: Prisma.SortOrder;
359
+ lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
360
+ maxTurns?: Prisma.SortOrder;
361
+ ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
362
+ budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
363
+ memoryEnabled?: Prisma.SortOrder;
364
+ effort?: Prisma.SortOrderInput | Prisma.SortOrder;
365
+ _count?: Prisma.AgentCountOrderByAggregateInput;
366
+ _avg?: Prisma.AgentAvgOrderByAggregateInput;
367
+ _max?: Prisma.AgentMaxOrderByAggregateInput;
368
+ _min?: Prisma.AgentMinOrderByAggregateInput;
369
+ _sum?: Prisma.AgentSumOrderByAggregateInput;
370
+ };
371
+ export type AgentScalarWhereWithAggregatesInput = {
372
+ AND?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[];
373
+ OR?: Prisma.AgentScalarWhereWithAggregatesInput[];
374
+ NOT?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[];
375
+ id?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
376
+ name?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
377
+ systemPrompt?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
378
+ model?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
379
+ budgetUsd?: Prisma.DecimalWithAggregatesFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
380
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
381
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
382
+ kind?: Prisma.EnumAgentKindWithAggregatesFilter<"Agent"> | $Enums.AgentKind;
383
+ schedule?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
384
+ timezone?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
385
+ scheduleEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
386
+ lastScheduledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Agent"> | Date | string | null;
387
+ maxTurns?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
388
+ ownerId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
389
+ budgetGroupId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
390
+ memoryEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
391
+ effort?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
392
+ };
393
+ export type AgentCreateInput = {
394
+ id?: string;
395
+ name: string;
396
+ systemPrompt: string;
397
+ model: string;
398
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
399
+ createdAt?: Date | string;
400
+ updatedAt?: Date | string;
401
+ kind?: $Enums.AgentKind;
402
+ schedule?: string | null;
403
+ timezone?: string;
404
+ scheduleEnabled?: boolean;
405
+ lastScheduledAt?: Date | string | null;
406
+ maxTurns?: number;
407
+ memoryEnabled?: boolean;
408
+ effort?: string | null;
409
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
410
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
411
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
412
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
413
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
414
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
415
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
416
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
417
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
418
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
419
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
420
+ };
421
+ export type AgentUncheckedCreateInput = {
422
+ id?: string;
423
+ name: string;
424
+ systemPrompt: string;
425
+ model: string;
426
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
427
+ createdAt?: Date | string;
428
+ updatedAt?: Date | string;
429
+ kind?: $Enums.AgentKind;
430
+ schedule?: string | null;
431
+ timezone?: string;
432
+ scheduleEnabled?: boolean;
433
+ lastScheduledAt?: Date | string | null;
434
+ maxTurns?: number;
435
+ ownerId?: string | null;
436
+ budgetGroupId?: string | null;
437
+ memoryEnabled?: boolean;
438
+ effort?: string | null;
439
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
440
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
441
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
442
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
443
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
444
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
445
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
446
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
447
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
448
+ };
449
+ export type AgentUpdateInput = {
450
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
451
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
452
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
453
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
454
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
455
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
456
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
457
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
458
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
459
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
460
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
461
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
462
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
463
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
464
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
465
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
466
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
467
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
468
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
469
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
470
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
471
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
472
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
473
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
474
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
475
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
476
+ };
477
+ export type AgentUncheckedUpdateInput = {
478
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
479
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
480
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
481
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
482
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
483
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
484
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
485
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
486
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
487
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
488
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
489
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
490
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
491
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
492
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
493
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
494
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
495
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
496
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
497
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
498
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
499
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
500
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
501
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
502
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
503
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
504
+ };
505
+ export type AgentCreateManyInput = {
506
+ id?: string;
507
+ name: string;
508
+ systemPrompt: string;
509
+ model: string;
510
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
511
+ createdAt?: Date | string;
512
+ updatedAt?: Date | string;
513
+ kind?: $Enums.AgentKind;
514
+ schedule?: string | null;
515
+ timezone?: string;
516
+ scheduleEnabled?: boolean;
517
+ lastScheduledAt?: Date | string | null;
518
+ maxTurns?: number;
519
+ ownerId?: string | null;
520
+ budgetGroupId?: string | null;
521
+ memoryEnabled?: boolean;
522
+ effort?: string | null;
523
+ };
524
+ export type AgentUpdateManyMutationInput = {
525
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
526
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
527
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
528
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
529
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
530
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
531
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
532
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
533
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
534
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
535
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
536
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
537
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
538
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
539
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
540
+ };
541
+ export type AgentUncheckedUpdateManyInput = {
542
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
543
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
544
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
545
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
546
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
547
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
548
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
549
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
550
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
551
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
552
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
553
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
554
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
555
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
556
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
557
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
558
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
559
+ };
560
+ export type AgentCountOrderByAggregateInput = {
561
+ id?: Prisma.SortOrder;
562
+ name?: Prisma.SortOrder;
563
+ systemPrompt?: Prisma.SortOrder;
564
+ model?: Prisma.SortOrder;
565
+ budgetUsd?: Prisma.SortOrder;
566
+ createdAt?: Prisma.SortOrder;
567
+ updatedAt?: Prisma.SortOrder;
568
+ kind?: Prisma.SortOrder;
569
+ schedule?: Prisma.SortOrder;
570
+ timezone?: Prisma.SortOrder;
571
+ scheduleEnabled?: Prisma.SortOrder;
572
+ lastScheduledAt?: Prisma.SortOrder;
573
+ maxTurns?: Prisma.SortOrder;
574
+ ownerId?: Prisma.SortOrder;
575
+ budgetGroupId?: Prisma.SortOrder;
576
+ memoryEnabled?: Prisma.SortOrder;
577
+ effort?: Prisma.SortOrder;
578
+ };
579
+ export type AgentAvgOrderByAggregateInput = {
580
+ budgetUsd?: Prisma.SortOrder;
581
+ maxTurns?: Prisma.SortOrder;
582
+ };
583
+ export type AgentMaxOrderByAggregateInput = {
584
+ id?: Prisma.SortOrder;
585
+ name?: Prisma.SortOrder;
586
+ systemPrompt?: Prisma.SortOrder;
587
+ model?: Prisma.SortOrder;
588
+ budgetUsd?: Prisma.SortOrder;
589
+ createdAt?: Prisma.SortOrder;
590
+ updatedAt?: Prisma.SortOrder;
591
+ kind?: Prisma.SortOrder;
592
+ schedule?: Prisma.SortOrder;
593
+ timezone?: Prisma.SortOrder;
594
+ scheduleEnabled?: Prisma.SortOrder;
595
+ lastScheduledAt?: Prisma.SortOrder;
596
+ maxTurns?: Prisma.SortOrder;
597
+ ownerId?: Prisma.SortOrder;
598
+ budgetGroupId?: Prisma.SortOrder;
599
+ memoryEnabled?: Prisma.SortOrder;
600
+ effort?: Prisma.SortOrder;
601
+ };
602
+ export type AgentMinOrderByAggregateInput = {
603
+ id?: Prisma.SortOrder;
604
+ name?: Prisma.SortOrder;
605
+ systemPrompt?: Prisma.SortOrder;
606
+ model?: Prisma.SortOrder;
607
+ budgetUsd?: Prisma.SortOrder;
608
+ createdAt?: Prisma.SortOrder;
609
+ updatedAt?: Prisma.SortOrder;
610
+ kind?: Prisma.SortOrder;
611
+ schedule?: Prisma.SortOrder;
612
+ timezone?: Prisma.SortOrder;
613
+ scheduleEnabled?: Prisma.SortOrder;
614
+ lastScheduledAt?: Prisma.SortOrder;
615
+ maxTurns?: Prisma.SortOrder;
616
+ ownerId?: Prisma.SortOrder;
617
+ budgetGroupId?: Prisma.SortOrder;
618
+ memoryEnabled?: Prisma.SortOrder;
619
+ effort?: Prisma.SortOrder;
620
+ };
621
+ export type AgentSumOrderByAggregateInput = {
622
+ budgetUsd?: Prisma.SortOrder;
623
+ maxTurns?: Prisma.SortOrder;
624
+ };
625
+ export type AgentScalarRelationFilter = {
626
+ is?: Prisma.AgentWhereInput;
627
+ isNot?: Prisma.AgentWhereInput;
628
+ };
629
+ export type AgentListRelationFilter = {
630
+ every?: Prisma.AgentWhereInput;
631
+ some?: Prisma.AgentWhereInput;
632
+ none?: Prisma.AgentWhereInput;
633
+ };
634
+ export type AgentOrderByRelationAggregateInput = {
635
+ _count?: Prisma.SortOrder;
636
+ };
637
+ export type StringFieldUpdateOperationsInput = {
638
+ set?: string;
639
+ };
640
+ export type DecimalFieldUpdateOperationsInput = {
641
+ set?: runtime.Decimal | runtime.DecimalJsLike | number | string;
642
+ increment?: runtime.Decimal | runtime.DecimalJsLike | number | string;
643
+ decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string;
644
+ multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string;
645
+ divide?: runtime.Decimal | runtime.DecimalJsLike | number | string;
646
+ };
647
+ export type DateTimeFieldUpdateOperationsInput = {
648
+ set?: Date | string;
649
+ };
650
+ export type EnumAgentKindFieldUpdateOperationsInput = {
651
+ set?: $Enums.AgentKind;
652
+ };
653
+ export type NullableStringFieldUpdateOperationsInput = {
654
+ set?: string | null;
655
+ };
656
+ export type BoolFieldUpdateOperationsInput = {
657
+ set?: boolean;
658
+ };
659
+ export type NullableDateTimeFieldUpdateOperationsInput = {
660
+ set?: Date | string | null;
661
+ };
662
+ export type IntFieldUpdateOperationsInput = {
663
+ set?: number;
664
+ increment?: number;
665
+ decrement?: number;
666
+ multiply?: number;
667
+ divide?: number;
668
+ };
669
+ export type AgentCreateNestedOneWithoutSubAgentEdgesAsParentInput = {
670
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
671
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput;
672
+ connect?: Prisma.AgentWhereUniqueInput;
673
+ };
674
+ export type AgentCreateNestedOneWithoutSubAgentEdgesAsChildInput = {
675
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
676
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput;
677
+ connect?: Prisma.AgentWhereUniqueInput;
678
+ };
679
+ export type AgentUpdateOneRequiredWithoutSubAgentEdgesAsParentNestedInput = {
680
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
681
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput;
682
+ upsert?: Prisma.AgentUpsertWithoutSubAgentEdgesAsParentInput;
683
+ connect?: Prisma.AgentWhereUniqueInput;
684
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsParentInput, Prisma.AgentUpdateWithoutSubAgentEdgesAsParentInput>, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput>;
685
+ };
686
+ export type AgentUpdateOneRequiredWithoutSubAgentEdgesAsChildNestedInput = {
687
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
688
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput;
689
+ upsert?: Prisma.AgentUpsertWithoutSubAgentEdgesAsChildInput;
690
+ connect?: Prisma.AgentWhereUniqueInput;
691
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsChildInput, Prisma.AgentUpdateWithoutSubAgentEdgesAsChildInput>, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput>;
692
+ };
693
+ export type AgentCreateNestedManyWithoutBudgetGroupInput = {
694
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
695
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
696
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
697
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
698
+ };
699
+ export type AgentUncheckedCreateNestedManyWithoutBudgetGroupInput = {
700
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
701
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
702
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
703
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
704
+ };
705
+ export type AgentUpdateManyWithoutBudgetGroupNestedInput = {
706
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
707
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
708
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput[];
709
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
710
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
711
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
712
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
713
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
714
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput[];
715
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput | Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput[];
716
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
717
+ };
718
+ export type AgentUncheckedUpdateManyWithoutBudgetGroupNestedInput = {
719
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
720
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
721
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput[];
722
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
723
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
724
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
725
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
726
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
727
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput[];
728
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput | Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput[];
729
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
730
+ };
731
+ export type AgentCreateNestedOneWithoutToolsInput = {
732
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
733
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutToolsInput;
734
+ connect?: Prisma.AgentWhereUniqueInput;
735
+ };
736
+ export type AgentUpdateOneRequiredWithoutToolsNestedInput = {
737
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
738
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutToolsInput;
739
+ upsert?: Prisma.AgentUpsertWithoutToolsInput;
740
+ connect?: Prisma.AgentWhereUniqueInput;
741
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutToolsInput, Prisma.AgentUpdateWithoutToolsInput>, Prisma.AgentUncheckedUpdateWithoutToolsInput>;
742
+ };
743
+ export type AgentCreateNestedOneWithoutDatastoresInput = {
744
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
745
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutDatastoresInput;
746
+ connect?: Prisma.AgentWhereUniqueInput;
747
+ };
748
+ export type AgentUpdateOneRequiredWithoutDatastoresNestedInput = {
749
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
750
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutDatastoresInput;
751
+ upsert?: Prisma.AgentUpsertWithoutDatastoresInput;
752
+ connect?: Prisma.AgentWhereUniqueInput;
753
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutDatastoresInput, Prisma.AgentUpdateWithoutDatastoresInput>, Prisma.AgentUncheckedUpdateWithoutDatastoresInput>;
754
+ };
755
+ export type AgentCreateNestedOneWithoutRunsInput = {
756
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
757
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRunsInput;
758
+ connect?: Prisma.AgentWhereUniqueInput;
759
+ };
760
+ export type AgentUpdateOneRequiredWithoutRunsNestedInput = {
761
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
762
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRunsInput;
763
+ upsert?: Prisma.AgentUpsertWithoutRunsInput;
764
+ connect?: Prisma.AgentWhereUniqueInput;
765
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutRunsInput, Prisma.AgentUpdateWithoutRunsInput>, Prisma.AgentUncheckedUpdateWithoutRunsInput>;
766
+ };
767
+ export type AgentCreateNestedOneWithoutCodingProfileInput = {
768
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
769
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutCodingProfileInput;
770
+ connect?: Prisma.AgentWhereUniqueInput;
771
+ };
772
+ export type AgentUpdateOneRequiredWithoutCodingProfileNestedInput = {
773
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
774
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutCodingProfileInput;
775
+ upsert?: Prisma.AgentUpsertWithoutCodingProfileInput;
776
+ connect?: Prisma.AgentWhereUniqueInput;
777
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutCodingProfileInput, Prisma.AgentUpdateWithoutCodingProfileInput>, Prisma.AgentUncheckedUpdateWithoutCodingProfileInput>;
778
+ };
779
+ export type AgentCreateNestedManyWithoutOwnerInput = {
780
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
781
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
782
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
783
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
784
+ };
785
+ export type AgentUncheckedCreateNestedManyWithoutOwnerInput = {
786
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
787
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
788
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
789
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
790
+ };
791
+ export type AgentUpdateManyWithoutOwnerNestedInput = {
792
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
793
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
794
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput[];
795
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
796
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
797
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
798
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
799
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
800
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput[];
801
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutOwnerInput | Prisma.AgentUpdateManyWithWhereWithoutOwnerInput[];
802
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
803
+ };
804
+ export type AgentUncheckedUpdateManyWithoutOwnerNestedInput = {
805
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
806
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
807
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput[];
808
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
809
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
810
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
811
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
812
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
813
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput[];
814
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutOwnerInput | Prisma.AgentUpdateManyWithWhereWithoutOwnerInput[];
815
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
816
+ };
817
+ export type AgentCreateNestedOneWithoutSecretsInput = {
818
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
819
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSecretsInput;
820
+ connect?: Prisma.AgentWhereUniqueInput;
821
+ };
822
+ export type AgentUpdateOneRequiredWithoutSecretsNestedInput = {
823
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
824
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSecretsInput;
825
+ upsert?: Prisma.AgentUpsertWithoutSecretsInput;
826
+ connect?: Prisma.AgentWhereUniqueInput;
827
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutSecretsInput, Prisma.AgentUpdateWithoutSecretsInput>, Prisma.AgentUncheckedUpdateWithoutSecretsInput>;
828
+ };
829
+ export type AgentCreateNestedOneWithoutWebhooksInput = {
830
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
831
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutWebhooksInput;
832
+ connect?: Prisma.AgentWhereUniqueInput;
833
+ };
834
+ export type AgentUpdateOneRequiredWithoutWebhooksNestedInput = {
835
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
836
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutWebhooksInput;
837
+ upsert?: Prisma.AgentUpsertWithoutWebhooksInput;
838
+ connect?: Prisma.AgentWhereUniqueInput;
839
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutWebhooksInput, Prisma.AgentUpdateWithoutWebhooksInput>, Prisma.AgentUncheckedUpdateWithoutWebhooksInput>;
840
+ };
841
+ export type AgentCreateNestedOneWithoutRepositoriesInput = {
842
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
843
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRepositoriesInput;
844
+ connect?: Prisma.AgentWhereUniqueInput;
845
+ };
846
+ export type AgentUpdateOneRequiredWithoutRepositoriesNestedInput = {
847
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
848
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRepositoriesInput;
849
+ upsert?: Prisma.AgentUpsertWithoutRepositoriesInput;
850
+ connect?: Prisma.AgentWhereUniqueInput;
851
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutRepositoriesInput, Prisma.AgentUpdateWithoutRepositoriesInput>, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
852
+ };
853
+ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
854
+ id?: string;
855
+ name: string;
856
+ systemPrompt: string;
857
+ model: string;
858
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
859
+ createdAt?: Date | string;
860
+ updatedAt?: Date | string;
861
+ kind?: $Enums.AgentKind;
862
+ schedule?: string | null;
863
+ timezone?: string;
864
+ scheduleEnabled?: boolean;
865
+ lastScheduledAt?: Date | string | null;
866
+ maxTurns?: number;
867
+ memoryEnabled?: boolean;
868
+ effort?: string | null;
869
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
870
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
871
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
872
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
873
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
874
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
875
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
876
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
877
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
878
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
879
+ };
880
+ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
881
+ id?: string;
882
+ name: string;
883
+ systemPrompt: string;
884
+ model: string;
885
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
886
+ createdAt?: Date | string;
887
+ updatedAt?: Date | string;
888
+ kind?: $Enums.AgentKind;
889
+ schedule?: string | null;
890
+ timezone?: string;
891
+ scheduleEnabled?: boolean;
892
+ lastScheduledAt?: Date | string | null;
893
+ maxTurns?: number;
894
+ ownerId?: string | null;
895
+ budgetGroupId?: string | null;
896
+ memoryEnabled?: boolean;
897
+ effort?: string | null;
898
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
899
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
900
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
901
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
902
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
903
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
904
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
905
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
906
+ };
907
+ export type AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput = {
908
+ where: Prisma.AgentWhereUniqueInput;
909
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
910
+ };
911
+ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
912
+ id?: string;
913
+ name: string;
914
+ systemPrompt: string;
915
+ model: string;
916
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
917
+ createdAt?: Date | string;
918
+ updatedAt?: Date | string;
919
+ kind?: $Enums.AgentKind;
920
+ schedule?: string | null;
921
+ timezone?: string;
922
+ scheduleEnabled?: boolean;
923
+ lastScheduledAt?: Date | string | null;
924
+ maxTurns?: number;
925
+ memoryEnabled?: boolean;
926
+ effort?: string | null;
927
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
928
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
929
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
930
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
931
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
932
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
933
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
934
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
935
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
936
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
937
+ };
938
+ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
939
+ id?: string;
940
+ name: string;
941
+ systemPrompt: string;
942
+ model: string;
943
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
944
+ createdAt?: Date | string;
945
+ updatedAt?: Date | string;
946
+ kind?: $Enums.AgentKind;
947
+ schedule?: string | null;
948
+ timezone?: string;
949
+ scheduleEnabled?: boolean;
950
+ lastScheduledAt?: Date | string | null;
951
+ maxTurns?: number;
952
+ ownerId?: string | null;
953
+ budgetGroupId?: string | null;
954
+ memoryEnabled?: boolean;
955
+ effort?: string | null;
956
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
957
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
958
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
959
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
960
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
961
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
962
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
963
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
964
+ };
965
+ export type AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput = {
966
+ where: Prisma.AgentWhereUniqueInput;
967
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
968
+ };
969
+ export type AgentUpsertWithoutSubAgentEdgesAsParentInput = {
970
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput>;
971
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
972
+ where?: Prisma.AgentWhereInput;
973
+ };
974
+ export type AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsParentInput = {
975
+ where?: Prisma.AgentWhereInput;
976
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput>;
977
+ };
978
+ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
979
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
980
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
981
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
982
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
983
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
984
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
985
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
986
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
987
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
988
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
989
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
990
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
991
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
992
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
993
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
994
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
995
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
996
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
997
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
998
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
999
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1000
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1001
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1002
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1003
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1004
+ };
1005
+ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
1006
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1007
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1008
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1009
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1010
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1011
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1012
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1013
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1014
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1015
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1016
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1017
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1018
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1019
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1021
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1022
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1023
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1024
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1025
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1026
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1027
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1028
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1029
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1030
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1031
+ };
1032
+ export type AgentUpsertWithoutSubAgentEdgesAsChildInput = {
1033
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput>;
1034
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
1035
+ where?: Prisma.AgentWhereInput;
1036
+ };
1037
+ export type AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsChildInput = {
1038
+ where?: Prisma.AgentWhereInput;
1039
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput>;
1040
+ };
1041
+ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
1042
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1043
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1044
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1045
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1046
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1047
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1048
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1049
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1050
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1051
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1052
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1053
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1054
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1055
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1056
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1057
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1058
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1059
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1060
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1061
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1062
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1063
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1064
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1065
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1066
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1067
+ };
1068
+ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1069
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1070
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1071
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1072
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1073
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1074
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1075
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1076
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1077
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1078
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1079
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1080
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1081
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1082
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1083
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1084
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1085
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1086
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1087
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1088
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1089
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1090
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1091
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1092
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1093
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1094
+ };
1095
+ export type AgentCreateWithoutBudgetGroupInput = {
1096
+ id?: string;
1097
+ name: string;
1098
+ systemPrompt: string;
1099
+ model: string;
1100
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1101
+ createdAt?: Date | string;
1102
+ updatedAt?: Date | string;
1103
+ kind?: $Enums.AgentKind;
1104
+ schedule?: string | null;
1105
+ timezone?: string;
1106
+ scheduleEnabled?: boolean;
1107
+ lastScheduledAt?: Date | string | null;
1108
+ maxTurns?: number;
1109
+ memoryEnabled?: boolean;
1110
+ effort?: string | null;
1111
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1112
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1113
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1114
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1115
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1116
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1117
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1118
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1119
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1120
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1121
+ };
1122
+ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1123
+ id?: string;
1124
+ name: string;
1125
+ systemPrompt: string;
1126
+ model: string;
1127
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1128
+ createdAt?: Date | string;
1129
+ updatedAt?: Date | string;
1130
+ kind?: $Enums.AgentKind;
1131
+ schedule?: string | null;
1132
+ timezone?: string;
1133
+ scheduleEnabled?: boolean;
1134
+ lastScheduledAt?: Date | string | null;
1135
+ maxTurns?: number;
1136
+ ownerId?: string | null;
1137
+ memoryEnabled?: boolean;
1138
+ effort?: string | null;
1139
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1140
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1141
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1142
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1143
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1144
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1145
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1146
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1147
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1148
+ };
1149
+ export type AgentCreateOrConnectWithoutBudgetGroupInput = {
1150
+ where: Prisma.AgentWhereUniqueInput;
1151
+ create: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput>;
1152
+ };
1153
+ export type AgentCreateManyBudgetGroupInputEnvelope = {
1154
+ data: Prisma.AgentCreateManyBudgetGroupInput | Prisma.AgentCreateManyBudgetGroupInput[];
1155
+ skipDuplicates?: boolean;
1156
+ };
1157
+ export type AgentUpsertWithWhereUniqueWithoutBudgetGroupInput = {
1158
+ where: Prisma.AgentWhereUniqueInput;
1159
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutBudgetGroupInput, Prisma.AgentUncheckedUpdateWithoutBudgetGroupInput>;
1160
+ create: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput>;
1161
+ };
1162
+ export type AgentUpdateWithWhereUniqueWithoutBudgetGroupInput = {
1163
+ where: Prisma.AgentWhereUniqueInput;
1164
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutBudgetGroupInput, Prisma.AgentUncheckedUpdateWithoutBudgetGroupInput>;
1165
+ };
1166
+ export type AgentUpdateManyWithWhereWithoutBudgetGroupInput = {
1167
+ where: Prisma.AgentScalarWhereInput;
1168
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutBudgetGroupInput>;
1169
+ };
1170
+ export type AgentScalarWhereInput = {
1171
+ AND?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
1172
+ OR?: Prisma.AgentScalarWhereInput[];
1173
+ NOT?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
1174
+ id?: Prisma.StringFilter<"Agent"> | string;
1175
+ name?: Prisma.StringFilter<"Agent"> | string;
1176
+ systemPrompt?: Prisma.StringFilter<"Agent"> | string;
1177
+ model?: Prisma.StringFilter<"Agent"> | string;
1178
+ budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
1179
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1180
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1181
+ kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
1182
+ schedule?: Prisma.StringNullableFilter<"Agent"> | string | null;
1183
+ timezone?: Prisma.StringFilter<"Agent"> | string;
1184
+ scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1185
+ lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
1186
+ maxTurns?: Prisma.IntFilter<"Agent"> | number;
1187
+ ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1188
+ budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1189
+ memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1190
+ effort?: Prisma.StringNullableFilter<"Agent"> | string | null;
1191
+ };
1192
+ export type AgentCreateWithoutToolsInput = {
1193
+ id?: string;
1194
+ name: string;
1195
+ systemPrompt: string;
1196
+ model: string;
1197
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1198
+ createdAt?: Date | string;
1199
+ updatedAt?: Date | string;
1200
+ kind?: $Enums.AgentKind;
1201
+ schedule?: string | null;
1202
+ timezone?: string;
1203
+ scheduleEnabled?: boolean;
1204
+ lastScheduledAt?: Date | string | null;
1205
+ maxTurns?: number;
1206
+ memoryEnabled?: boolean;
1207
+ effort?: string | null;
1208
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1209
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1210
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1211
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1212
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1213
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1214
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1215
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1216
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1217
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1218
+ };
1219
+ export type AgentUncheckedCreateWithoutToolsInput = {
1220
+ id?: string;
1221
+ name: string;
1222
+ systemPrompt: string;
1223
+ model: string;
1224
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1225
+ createdAt?: Date | string;
1226
+ updatedAt?: Date | string;
1227
+ kind?: $Enums.AgentKind;
1228
+ schedule?: string | null;
1229
+ timezone?: string;
1230
+ scheduleEnabled?: boolean;
1231
+ lastScheduledAt?: Date | string | null;
1232
+ maxTurns?: number;
1233
+ ownerId?: string | null;
1234
+ budgetGroupId?: string | null;
1235
+ memoryEnabled?: boolean;
1236
+ effort?: string | null;
1237
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1238
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1239
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1240
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1241
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1242
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1243
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1244
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1245
+ };
1246
+ export type AgentCreateOrConnectWithoutToolsInput = {
1247
+ where: Prisma.AgentWhereUniqueInput;
1248
+ create: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
1249
+ };
1250
+ export type AgentUpsertWithoutToolsInput = {
1251
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutToolsInput, Prisma.AgentUncheckedUpdateWithoutToolsInput>;
1252
+ create: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
1253
+ where?: Prisma.AgentWhereInput;
1254
+ };
1255
+ export type AgentUpdateToOneWithWhereWithoutToolsInput = {
1256
+ where?: Prisma.AgentWhereInput;
1257
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutToolsInput, Prisma.AgentUncheckedUpdateWithoutToolsInput>;
1258
+ };
1259
+ export type AgentUpdateWithoutToolsInput = {
1260
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1261
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1262
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1263
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1264
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1265
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1266
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1267
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1268
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1269
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1270
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1271
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1272
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1273
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1274
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1275
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1276
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1277
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1278
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1279
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1280
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1281
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1282
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1283
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1284
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1285
+ };
1286
+ export type AgentUncheckedUpdateWithoutToolsInput = {
1287
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1288
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1289
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1290
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1291
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1292
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1293
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1294
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1295
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1296
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1297
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1298
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1299
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1300
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1301
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1302
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1303
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1304
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1305
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1306
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1307
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1308
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1309
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1310
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1311
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1312
+ };
1313
+ export type AgentCreateWithoutDatastoresInput = {
1314
+ id?: string;
1315
+ name: string;
1316
+ systemPrompt: string;
1317
+ model: string;
1318
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1319
+ createdAt?: Date | string;
1320
+ updatedAt?: Date | string;
1321
+ kind?: $Enums.AgentKind;
1322
+ schedule?: string | null;
1323
+ timezone?: string;
1324
+ scheduleEnabled?: boolean;
1325
+ lastScheduledAt?: Date | string | null;
1326
+ maxTurns?: number;
1327
+ memoryEnabled?: boolean;
1328
+ effort?: string | null;
1329
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1330
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1331
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1332
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1333
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1334
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1335
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1336
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1337
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1338
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1339
+ };
1340
+ export type AgentUncheckedCreateWithoutDatastoresInput = {
1341
+ id?: string;
1342
+ name: string;
1343
+ systemPrompt: string;
1344
+ model: string;
1345
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1346
+ createdAt?: Date | string;
1347
+ updatedAt?: Date | string;
1348
+ kind?: $Enums.AgentKind;
1349
+ schedule?: string | null;
1350
+ timezone?: string;
1351
+ scheduleEnabled?: boolean;
1352
+ lastScheduledAt?: Date | string | null;
1353
+ maxTurns?: number;
1354
+ ownerId?: string | null;
1355
+ budgetGroupId?: string | null;
1356
+ memoryEnabled?: boolean;
1357
+ effort?: string | null;
1358
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1359
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1360
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1361
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1362
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1363
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1364
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1365
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1366
+ };
1367
+ export type AgentCreateOrConnectWithoutDatastoresInput = {
1368
+ where: Prisma.AgentWhereUniqueInput;
1369
+ create: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
1370
+ };
1371
+ export type AgentUpsertWithoutDatastoresInput = {
1372
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutDatastoresInput, Prisma.AgentUncheckedUpdateWithoutDatastoresInput>;
1373
+ create: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
1374
+ where?: Prisma.AgentWhereInput;
1375
+ };
1376
+ export type AgentUpdateToOneWithWhereWithoutDatastoresInput = {
1377
+ where?: Prisma.AgentWhereInput;
1378
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutDatastoresInput, Prisma.AgentUncheckedUpdateWithoutDatastoresInput>;
1379
+ };
1380
+ export type AgentUpdateWithoutDatastoresInput = {
1381
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1382
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1383
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1384
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1385
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1386
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1387
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1388
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1389
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1390
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1391
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1392
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1393
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1394
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1395
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1396
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1397
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1398
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1399
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1400
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1401
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1402
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1403
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1404
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1405
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1406
+ };
1407
+ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1408
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1409
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1410
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1411
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1412
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1413
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1414
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1415
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1416
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1417
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1418
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1419
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1420
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1421
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1422
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1423
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1424
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1425
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1426
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1427
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1428
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1429
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1430
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1431
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1432
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1433
+ };
1434
+ export type AgentCreateWithoutRunsInput = {
1435
+ id?: string;
1436
+ name: string;
1437
+ systemPrompt: string;
1438
+ model: string;
1439
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1440
+ createdAt?: Date | string;
1441
+ updatedAt?: Date | string;
1442
+ kind?: $Enums.AgentKind;
1443
+ schedule?: string | null;
1444
+ timezone?: string;
1445
+ scheduleEnabled?: boolean;
1446
+ lastScheduledAt?: Date | string | null;
1447
+ maxTurns?: number;
1448
+ memoryEnabled?: boolean;
1449
+ effort?: string | null;
1450
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1451
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1452
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1453
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1454
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1455
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1456
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1457
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1458
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1459
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1460
+ };
1461
+ export type AgentUncheckedCreateWithoutRunsInput = {
1462
+ id?: string;
1463
+ name: string;
1464
+ systemPrompt: string;
1465
+ model: string;
1466
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1467
+ createdAt?: Date | string;
1468
+ updatedAt?: Date | string;
1469
+ kind?: $Enums.AgentKind;
1470
+ schedule?: string | null;
1471
+ timezone?: string;
1472
+ scheduleEnabled?: boolean;
1473
+ lastScheduledAt?: Date | string | null;
1474
+ maxTurns?: number;
1475
+ ownerId?: string | null;
1476
+ budgetGroupId?: string | null;
1477
+ memoryEnabled?: boolean;
1478
+ effort?: string | null;
1479
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1480
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1481
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1482
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1483
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1484
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1485
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1486
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1487
+ };
1488
+ export type AgentCreateOrConnectWithoutRunsInput = {
1489
+ where: Prisma.AgentWhereUniqueInput;
1490
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
1491
+ };
1492
+ export type AgentUpsertWithoutRunsInput = {
1493
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutRunsInput, Prisma.AgentUncheckedUpdateWithoutRunsInput>;
1494
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
1495
+ where?: Prisma.AgentWhereInput;
1496
+ };
1497
+ export type AgentUpdateToOneWithWhereWithoutRunsInput = {
1498
+ where?: Prisma.AgentWhereInput;
1499
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutRunsInput, Prisma.AgentUncheckedUpdateWithoutRunsInput>;
1500
+ };
1501
+ export type AgentUpdateWithoutRunsInput = {
1502
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1503
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1504
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1505
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1506
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1507
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1508
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1509
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1510
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1511
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1512
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1513
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1514
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1515
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1516
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1517
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1518
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1519
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1520
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1521
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1522
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1523
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1524
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1525
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1526
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1527
+ };
1528
+ export type AgentUncheckedUpdateWithoutRunsInput = {
1529
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1530
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1531
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1532
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1533
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1534
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1535
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1536
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1537
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1538
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1539
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1540
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1541
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1542
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1543
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1544
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1545
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1546
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1547
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1548
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1549
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1550
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1551
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1552
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1553
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1554
+ };
1555
+ export type AgentCreateWithoutCodingProfileInput = {
1556
+ id?: string;
1557
+ name: string;
1558
+ systemPrompt: string;
1559
+ model: string;
1560
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1561
+ createdAt?: Date | string;
1562
+ updatedAt?: Date | string;
1563
+ kind?: $Enums.AgentKind;
1564
+ schedule?: string | null;
1565
+ timezone?: string;
1566
+ scheduleEnabled?: boolean;
1567
+ lastScheduledAt?: Date | string | null;
1568
+ maxTurns?: number;
1569
+ memoryEnabled?: boolean;
1570
+ effort?: string | null;
1571
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1572
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1573
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1574
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1575
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1576
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1577
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1578
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1579
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1580
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1581
+ };
1582
+ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1583
+ id?: string;
1584
+ name: string;
1585
+ systemPrompt: string;
1586
+ model: string;
1587
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1588
+ createdAt?: Date | string;
1589
+ updatedAt?: Date | string;
1590
+ kind?: $Enums.AgentKind;
1591
+ schedule?: string | null;
1592
+ timezone?: string;
1593
+ scheduleEnabled?: boolean;
1594
+ lastScheduledAt?: Date | string | null;
1595
+ maxTurns?: number;
1596
+ ownerId?: string | null;
1597
+ budgetGroupId?: string | null;
1598
+ memoryEnabled?: boolean;
1599
+ effort?: string | null;
1600
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1601
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1602
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1603
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1604
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1605
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1606
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1607
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1608
+ };
1609
+ export type AgentCreateOrConnectWithoutCodingProfileInput = {
1610
+ where: Prisma.AgentWhereUniqueInput;
1611
+ create: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
1612
+ };
1613
+ export type AgentUpsertWithoutCodingProfileInput = {
1614
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutCodingProfileInput, Prisma.AgentUncheckedUpdateWithoutCodingProfileInput>;
1615
+ create: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
1616
+ where?: Prisma.AgentWhereInput;
1617
+ };
1618
+ export type AgentUpdateToOneWithWhereWithoutCodingProfileInput = {
1619
+ where?: Prisma.AgentWhereInput;
1620
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutCodingProfileInput, Prisma.AgentUncheckedUpdateWithoutCodingProfileInput>;
1621
+ };
1622
+ export type AgentUpdateWithoutCodingProfileInput = {
1623
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1624
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1625
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1626
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1627
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1628
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1629
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1630
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1631
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1632
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1633
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1634
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1635
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1636
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1637
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1638
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1639
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1640
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1641
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1642
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1643
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1644
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1645
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1646
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1647
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1648
+ };
1649
+ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1650
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1651
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1652
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1653
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1654
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1655
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1656
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1657
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1658
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1659
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1660
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1661
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1662
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1663
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1664
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1665
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1666
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1667
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1668
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1669
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1670
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1671
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1672
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1673
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1674
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1675
+ };
1676
+ export type AgentCreateWithoutOwnerInput = {
1677
+ id?: string;
1678
+ name: string;
1679
+ systemPrompt: string;
1680
+ model: string;
1681
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1682
+ createdAt?: Date | string;
1683
+ updatedAt?: Date | string;
1684
+ kind?: $Enums.AgentKind;
1685
+ schedule?: string | null;
1686
+ timezone?: string;
1687
+ scheduleEnabled?: boolean;
1688
+ lastScheduledAt?: Date | string | null;
1689
+ maxTurns?: number;
1690
+ memoryEnabled?: boolean;
1691
+ effort?: string | null;
1692
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1693
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1694
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1695
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1696
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1697
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1698
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1699
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1700
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1701
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1702
+ };
1703
+ export type AgentUncheckedCreateWithoutOwnerInput = {
1704
+ id?: string;
1705
+ name: string;
1706
+ systemPrompt: string;
1707
+ model: string;
1708
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1709
+ createdAt?: Date | string;
1710
+ updatedAt?: Date | string;
1711
+ kind?: $Enums.AgentKind;
1712
+ schedule?: string | null;
1713
+ timezone?: string;
1714
+ scheduleEnabled?: boolean;
1715
+ lastScheduledAt?: Date | string | null;
1716
+ maxTurns?: number;
1717
+ budgetGroupId?: string | null;
1718
+ memoryEnabled?: boolean;
1719
+ effort?: string | null;
1720
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1721
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1722
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1723
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1724
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1725
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1726
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1727
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1728
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1729
+ };
1730
+ export type AgentCreateOrConnectWithoutOwnerInput = {
1731
+ where: Prisma.AgentWhereUniqueInput;
1732
+ create: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput>;
1733
+ };
1734
+ export type AgentCreateManyOwnerInputEnvelope = {
1735
+ data: Prisma.AgentCreateManyOwnerInput | Prisma.AgentCreateManyOwnerInput[];
1736
+ skipDuplicates?: boolean;
1737
+ };
1738
+ export type AgentUpsertWithWhereUniqueWithoutOwnerInput = {
1739
+ where: Prisma.AgentWhereUniqueInput;
1740
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutOwnerInput, Prisma.AgentUncheckedUpdateWithoutOwnerInput>;
1741
+ create: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput>;
1742
+ };
1743
+ export type AgentUpdateWithWhereUniqueWithoutOwnerInput = {
1744
+ where: Prisma.AgentWhereUniqueInput;
1745
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutOwnerInput, Prisma.AgentUncheckedUpdateWithoutOwnerInput>;
1746
+ };
1747
+ export type AgentUpdateManyWithWhereWithoutOwnerInput = {
1748
+ where: Prisma.AgentScalarWhereInput;
1749
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutOwnerInput>;
1750
+ };
1751
+ export type AgentCreateWithoutSecretsInput = {
1752
+ id?: string;
1753
+ name: string;
1754
+ systemPrompt: string;
1755
+ model: string;
1756
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1757
+ createdAt?: Date | string;
1758
+ updatedAt?: Date | string;
1759
+ kind?: $Enums.AgentKind;
1760
+ schedule?: string | null;
1761
+ timezone?: string;
1762
+ scheduleEnabled?: boolean;
1763
+ lastScheduledAt?: Date | string | null;
1764
+ maxTurns?: number;
1765
+ memoryEnabled?: boolean;
1766
+ effort?: string | null;
1767
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1768
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1769
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1770
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1771
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1772
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1773
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1774
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1775
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1776
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1777
+ };
1778
+ export type AgentUncheckedCreateWithoutSecretsInput = {
1779
+ id?: string;
1780
+ name: string;
1781
+ systemPrompt: string;
1782
+ model: string;
1783
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1784
+ createdAt?: Date | string;
1785
+ updatedAt?: Date | string;
1786
+ kind?: $Enums.AgentKind;
1787
+ schedule?: string | null;
1788
+ timezone?: string;
1789
+ scheduleEnabled?: boolean;
1790
+ lastScheduledAt?: Date | string | null;
1791
+ maxTurns?: number;
1792
+ ownerId?: string | null;
1793
+ budgetGroupId?: string | null;
1794
+ memoryEnabled?: boolean;
1795
+ effort?: string | null;
1796
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1797
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1798
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1799
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1800
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1801
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1802
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1803
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1804
+ };
1805
+ export type AgentCreateOrConnectWithoutSecretsInput = {
1806
+ where: Prisma.AgentWhereUniqueInput;
1807
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
1808
+ };
1809
+ export type AgentUpsertWithoutSecretsInput = {
1810
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutSecretsInput, Prisma.AgentUncheckedUpdateWithoutSecretsInput>;
1811
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
1812
+ where?: Prisma.AgentWhereInput;
1813
+ };
1814
+ export type AgentUpdateToOneWithWhereWithoutSecretsInput = {
1815
+ where?: Prisma.AgentWhereInput;
1816
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutSecretsInput, Prisma.AgentUncheckedUpdateWithoutSecretsInput>;
1817
+ };
1818
+ export type AgentUpdateWithoutSecretsInput = {
1819
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1820
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1821
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1822
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1823
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1824
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1825
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1826
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1827
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1828
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1829
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1830
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1831
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1832
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1833
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1834
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1835
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1836
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1837
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1838
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1839
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1840
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1841
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1842
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1843
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1844
+ };
1845
+ export type AgentUncheckedUpdateWithoutSecretsInput = {
1846
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1847
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1848
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1849
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1850
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1851
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1852
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1853
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1854
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1855
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1856
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1857
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1858
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1859
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1860
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1861
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1862
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1863
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1864
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1865
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1866
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1867
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1868
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1869
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1870
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1871
+ };
1872
+ export type AgentCreateWithoutWebhooksInput = {
1873
+ id?: string;
1874
+ name: string;
1875
+ systemPrompt: string;
1876
+ model: string;
1877
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1878
+ createdAt?: Date | string;
1879
+ updatedAt?: Date | string;
1880
+ kind?: $Enums.AgentKind;
1881
+ schedule?: string | null;
1882
+ timezone?: string;
1883
+ scheduleEnabled?: boolean;
1884
+ lastScheduledAt?: Date | string | null;
1885
+ maxTurns?: number;
1886
+ memoryEnabled?: boolean;
1887
+ effort?: string | null;
1888
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1889
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1890
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1891
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1892
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1893
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1894
+ repositories?: Prisma.AgentRepositoryCreateNestedManyWithoutAgentInput;
1895
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1896
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1897
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1898
+ };
1899
+ export type AgentUncheckedCreateWithoutWebhooksInput = {
1900
+ id?: string;
1901
+ name: string;
1902
+ systemPrompt: string;
1903
+ model: string;
1904
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1905
+ createdAt?: Date | string;
1906
+ updatedAt?: Date | string;
1907
+ kind?: $Enums.AgentKind;
1908
+ schedule?: string | null;
1909
+ timezone?: string;
1910
+ scheduleEnabled?: boolean;
1911
+ lastScheduledAt?: Date | string | null;
1912
+ maxTurns?: number;
1913
+ ownerId?: string | null;
1914
+ budgetGroupId?: string | null;
1915
+ memoryEnabled?: boolean;
1916
+ effort?: string | null;
1917
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1918
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1919
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1920
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1921
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1922
+ repositories?: Prisma.AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput;
1923
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1924
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1925
+ };
1926
+ export type AgentCreateOrConnectWithoutWebhooksInput = {
1927
+ where: Prisma.AgentWhereUniqueInput;
1928
+ create: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
1929
+ };
1930
+ export type AgentUpsertWithoutWebhooksInput = {
1931
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutWebhooksInput, Prisma.AgentUncheckedUpdateWithoutWebhooksInput>;
1932
+ create: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
1933
+ where?: Prisma.AgentWhereInput;
1934
+ };
1935
+ export type AgentUpdateToOneWithWhereWithoutWebhooksInput = {
1936
+ where?: Prisma.AgentWhereInput;
1937
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutWebhooksInput, Prisma.AgentUncheckedUpdateWithoutWebhooksInput>;
1938
+ };
1939
+ export type AgentUpdateWithoutWebhooksInput = {
1940
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1941
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1942
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1943
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1944
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1945
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1946
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1947
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1948
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1949
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1950
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1951
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1952
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1953
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1954
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1955
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1956
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1957
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1958
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1959
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1960
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1961
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
1962
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1963
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1964
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1965
+ };
1966
+ export type AgentUncheckedUpdateWithoutWebhooksInput = {
1967
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1968
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1969
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1970
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1971
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1972
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1973
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1974
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1975
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1976
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1977
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1978
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1979
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1980
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1981
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1982
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1983
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1984
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1985
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1986
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1987
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1988
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1989
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
1990
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1991
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1992
+ };
1993
+ export type AgentCreateWithoutRepositoriesInput = {
1994
+ id?: string;
1995
+ name: string;
1996
+ systemPrompt: string;
1997
+ model: string;
1998
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1999
+ createdAt?: Date | string;
2000
+ updatedAt?: Date | string;
2001
+ kind?: $Enums.AgentKind;
2002
+ schedule?: string | null;
2003
+ timezone?: string;
2004
+ scheduleEnabled?: boolean;
2005
+ lastScheduledAt?: Date | string | null;
2006
+ maxTurns?: number;
2007
+ memoryEnabled?: boolean;
2008
+ effort?: string | null;
2009
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
2010
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
2011
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
2012
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
2013
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
2014
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
2015
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
2016
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
2017
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
2018
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
2019
+ };
2020
+ export type AgentUncheckedCreateWithoutRepositoriesInput = {
2021
+ id?: string;
2022
+ name: string;
2023
+ systemPrompt: string;
2024
+ model: string;
2025
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2026
+ createdAt?: Date | string;
2027
+ updatedAt?: Date | string;
2028
+ kind?: $Enums.AgentKind;
2029
+ schedule?: string | null;
2030
+ timezone?: string;
2031
+ scheduleEnabled?: boolean;
2032
+ lastScheduledAt?: Date | string | null;
2033
+ maxTurns?: number;
2034
+ ownerId?: string | null;
2035
+ budgetGroupId?: string | null;
2036
+ memoryEnabled?: boolean;
2037
+ effort?: string | null;
2038
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
2039
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
2040
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
2041
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
2042
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
2043
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
2044
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
2045
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
2046
+ };
2047
+ export type AgentCreateOrConnectWithoutRepositoriesInput = {
2048
+ where: Prisma.AgentWhereUniqueInput;
2049
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
2050
+ };
2051
+ export type AgentUpsertWithoutRepositoriesInput = {
2052
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutRepositoriesInput, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
2053
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRepositoriesInput, Prisma.AgentUncheckedCreateWithoutRepositoriesInput>;
2054
+ where?: Prisma.AgentWhereInput;
2055
+ };
2056
+ export type AgentUpdateToOneWithWhereWithoutRepositoriesInput = {
2057
+ where?: Prisma.AgentWhereInput;
2058
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutRepositoriesInput, Prisma.AgentUncheckedUpdateWithoutRepositoriesInput>;
2059
+ };
2060
+ export type AgentUpdateWithoutRepositoriesInput = {
2061
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2062
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2063
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2064
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2065
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2066
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2067
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2068
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2069
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2070
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2071
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2072
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2073
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2074
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2075
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2076
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2077
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2078
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
2079
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
2080
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2081
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2082
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2083
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2084
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2085
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2086
+ };
2087
+ export type AgentUncheckedUpdateWithoutRepositoriesInput = {
2088
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2089
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2090
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2091
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2092
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2093
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2094
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2095
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2096
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2097
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2098
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2099
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2100
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2101
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2102
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2103
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2104
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2105
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2106
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2107
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2108
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2109
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2110
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2111
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2112
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2113
+ };
2114
+ export type AgentCreateManyBudgetGroupInput = {
2115
+ id?: string;
2116
+ name: string;
2117
+ systemPrompt: string;
2118
+ model: string;
2119
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2120
+ createdAt?: Date | string;
2121
+ updatedAt?: Date | string;
2122
+ kind?: $Enums.AgentKind;
2123
+ schedule?: string | null;
2124
+ timezone?: string;
2125
+ scheduleEnabled?: boolean;
2126
+ lastScheduledAt?: Date | string | null;
2127
+ maxTurns?: number;
2128
+ ownerId?: string | null;
2129
+ memoryEnabled?: boolean;
2130
+ effort?: string | null;
2131
+ };
2132
+ export type AgentUpdateWithoutBudgetGroupInput = {
2133
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2134
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2135
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2136
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2137
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2138
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2139
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2140
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2141
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2142
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2143
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2144
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2145
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2146
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2147
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2148
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2149
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2150
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
2151
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
2152
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2153
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2154
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2155
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2156
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2157
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2158
+ };
2159
+ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
2160
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2161
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2162
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2163
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2164
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2165
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2166
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2167
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2168
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2169
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2170
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2171
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2172
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2173
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2174
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2175
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2176
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2177
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2178
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2179
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2180
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2181
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2182
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2183
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2184
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2185
+ };
2186
+ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
2187
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2188
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2189
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2190
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2191
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2192
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2193
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2194
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2195
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2196
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2197
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2198
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2199
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2200
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2201
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2202
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2203
+ };
2204
+ export type AgentCreateManyOwnerInput = {
2205
+ id?: string;
2206
+ name: string;
2207
+ systemPrompt: string;
2208
+ model: string;
2209
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
2210
+ createdAt?: Date | string;
2211
+ updatedAt?: Date | string;
2212
+ kind?: $Enums.AgentKind;
2213
+ schedule?: string | null;
2214
+ timezone?: string;
2215
+ scheduleEnabled?: boolean;
2216
+ lastScheduledAt?: Date | string | null;
2217
+ maxTurns?: number;
2218
+ budgetGroupId?: string | null;
2219
+ memoryEnabled?: boolean;
2220
+ effort?: string | null;
2221
+ };
2222
+ export type AgentUpdateWithoutOwnerInput = {
2223
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2224
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2225
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2226
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2227
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2228
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2229
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2230
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2231
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2232
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2233
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2234
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2235
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2236
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2237
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2238
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
2239
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
2240
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
2241
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
2242
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2243
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2244
+ repositories?: Prisma.AgentRepositoryUpdateManyWithoutAgentNestedInput;
2245
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2246
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2247
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2248
+ };
2249
+ export type AgentUncheckedUpdateWithoutOwnerInput = {
2250
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2251
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2252
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2253
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2254
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2255
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2256
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2257
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2258
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2259
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2260
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2261
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2262
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2263
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2264
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2265
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2266
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2267
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2268
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2269
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2270
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2271
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2272
+ repositories?: Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput;
2273
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2274
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2275
+ };
2276
+ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
2277
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2278
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2279
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2280
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2281
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2282
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2283
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2284
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2285
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2286
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2287
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2288
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2289
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2290
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2291
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2292
+ effort?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2293
+ };
2294
+ /**
2295
+ * Count Type AgentCountOutputType
2296
+ */
2297
+ export type AgentCountOutputType = {
2298
+ runs: number;
2299
+ tools: number;
2300
+ secrets: number;
2301
+ datastores: number;
2302
+ webhooks: number;
2303
+ repositories: number;
2304
+ subAgentEdgesAsParent: number;
2305
+ subAgentEdgesAsChild: number;
2306
+ };
2307
+ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2308
+ runs?: boolean | AgentCountOutputTypeCountRunsArgs;
2309
+ tools?: boolean | AgentCountOutputTypeCountToolsArgs;
2310
+ secrets?: boolean | AgentCountOutputTypeCountSecretsArgs;
2311
+ datastores?: boolean | AgentCountOutputTypeCountDatastoresArgs;
2312
+ webhooks?: boolean | AgentCountOutputTypeCountWebhooksArgs;
2313
+ repositories?: boolean | AgentCountOutputTypeCountRepositoriesArgs;
2314
+ subAgentEdgesAsParent?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsParentArgs;
2315
+ subAgentEdgesAsChild?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsChildArgs;
2316
+ };
2317
+ /**
2318
+ * AgentCountOutputType without action
2319
+ */
2320
+ export type AgentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2321
+ /**
2322
+ * Select specific fields to fetch from the AgentCountOutputType
2323
+ */
2324
+ select?: Prisma.AgentCountOutputTypeSelect<ExtArgs> | null;
2325
+ };
2326
+ /**
2327
+ * AgentCountOutputType without action
2328
+ */
2329
+ export type AgentCountOutputTypeCountRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2330
+ where?: Prisma.RunWhereInput;
2331
+ };
2332
+ /**
2333
+ * AgentCountOutputType without action
2334
+ */
2335
+ export type AgentCountOutputTypeCountToolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2336
+ where?: Prisma.AgentToolWhereInput;
2337
+ };
2338
+ /**
2339
+ * AgentCountOutputType without action
2340
+ */
2341
+ export type AgentCountOutputTypeCountSecretsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2342
+ where?: Prisma.AgentSecretWhereInput;
2343
+ };
2344
+ /**
2345
+ * AgentCountOutputType without action
2346
+ */
2347
+ export type AgentCountOutputTypeCountDatastoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2348
+ where?: Prisma.AgentDatastoreWhereInput;
2349
+ };
2350
+ /**
2351
+ * AgentCountOutputType without action
2352
+ */
2353
+ export type AgentCountOutputTypeCountWebhooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2354
+ where?: Prisma.WebhookWhereInput;
2355
+ };
2356
+ /**
2357
+ * AgentCountOutputType without action
2358
+ */
2359
+ export type AgentCountOutputTypeCountRepositoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2360
+ where?: Prisma.AgentRepositoryWhereInput;
2361
+ };
2362
+ /**
2363
+ * AgentCountOutputType without action
2364
+ */
2365
+ export type AgentCountOutputTypeCountSubAgentEdgesAsParentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2366
+ where?: Prisma.AgentSubAgentWhereInput;
2367
+ };
2368
+ /**
2369
+ * AgentCountOutputType without action
2370
+ */
2371
+ export type AgentCountOutputTypeCountSubAgentEdgesAsChildArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2372
+ where?: Prisma.AgentSubAgentWhereInput;
2373
+ };
2374
+ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2375
+ id?: boolean;
2376
+ name?: boolean;
2377
+ systemPrompt?: boolean;
2378
+ model?: boolean;
2379
+ budgetUsd?: boolean;
2380
+ createdAt?: boolean;
2381
+ updatedAt?: boolean;
2382
+ kind?: boolean;
2383
+ schedule?: boolean;
2384
+ timezone?: boolean;
2385
+ scheduleEnabled?: boolean;
2386
+ lastScheduledAt?: boolean;
2387
+ maxTurns?: boolean;
2388
+ ownerId?: boolean;
2389
+ budgetGroupId?: boolean;
2390
+ memoryEnabled?: boolean;
2391
+ effort?: boolean;
2392
+ runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2393
+ codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
2394
+ tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>;
2395
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2396
+ secrets?: boolean | Prisma.Agent$secretsArgs<ExtArgs>;
2397
+ datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2398
+ webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2399
+ repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
2400
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2401
+ subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2402
+ subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
2403
+ _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>;
2404
+ }, ExtArgs["result"]["agent"]>;
2405
+ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2406
+ id?: boolean;
2407
+ name?: boolean;
2408
+ systemPrompt?: boolean;
2409
+ model?: boolean;
2410
+ budgetUsd?: boolean;
2411
+ createdAt?: boolean;
2412
+ updatedAt?: boolean;
2413
+ kind?: boolean;
2414
+ schedule?: boolean;
2415
+ timezone?: boolean;
2416
+ scheduleEnabled?: boolean;
2417
+ lastScheduledAt?: boolean;
2418
+ maxTurns?: boolean;
2419
+ ownerId?: boolean;
2420
+ budgetGroupId?: boolean;
2421
+ memoryEnabled?: boolean;
2422
+ effort?: boolean;
2423
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2424
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2425
+ }, ExtArgs["result"]["agent"]>;
2426
+ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2427
+ id?: boolean;
2428
+ name?: boolean;
2429
+ systemPrompt?: boolean;
2430
+ model?: boolean;
2431
+ budgetUsd?: boolean;
2432
+ createdAt?: boolean;
2433
+ updatedAt?: boolean;
2434
+ kind?: boolean;
2435
+ schedule?: boolean;
2436
+ timezone?: boolean;
2437
+ scheduleEnabled?: boolean;
2438
+ lastScheduledAt?: boolean;
2439
+ maxTurns?: boolean;
2440
+ ownerId?: boolean;
2441
+ budgetGroupId?: boolean;
2442
+ memoryEnabled?: boolean;
2443
+ effort?: boolean;
2444
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2445
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2446
+ }, ExtArgs["result"]["agent"]>;
2447
+ export type AgentSelectScalar = {
2448
+ id?: boolean;
2449
+ name?: boolean;
2450
+ systemPrompt?: boolean;
2451
+ model?: boolean;
2452
+ budgetUsd?: boolean;
2453
+ createdAt?: boolean;
2454
+ updatedAt?: boolean;
2455
+ kind?: boolean;
2456
+ schedule?: boolean;
2457
+ timezone?: boolean;
2458
+ scheduleEnabled?: boolean;
2459
+ lastScheduledAt?: boolean;
2460
+ maxTurns?: boolean;
2461
+ ownerId?: boolean;
2462
+ budgetGroupId?: boolean;
2463
+ memoryEnabled?: boolean;
2464
+ effort?: boolean;
2465
+ };
2466
+ export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "systemPrompt" | "model" | "budgetUsd" | "createdAt" | "updatedAt" | "kind" | "schedule" | "timezone" | "scheduleEnabled" | "lastScheduledAt" | "maxTurns" | "ownerId" | "budgetGroupId" | "memoryEnabled" | "effort", ExtArgs["result"]["agent"]>;
2467
+ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2468
+ runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2469
+ codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
2470
+ tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>;
2471
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2472
+ secrets?: boolean | Prisma.Agent$secretsArgs<ExtArgs>;
2473
+ datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2474
+ webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2475
+ repositories?: boolean | Prisma.Agent$repositoriesArgs<ExtArgs>;
2476
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2477
+ subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2478
+ subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
2479
+ _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>;
2480
+ };
2481
+ export type AgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2482
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2483
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2484
+ };
2485
+ export type AgentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2486
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2487
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2488
+ };
2489
+ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2490
+ name: "Agent";
2491
+ objects: {
2492
+ runs: Prisma.$RunPayload<ExtArgs>[];
2493
+ codingProfile: Prisma.$CodingAgentProfilePayload<ExtArgs> | null;
2494
+ tools: Prisma.$AgentToolPayload<ExtArgs>[];
2495
+ owner: Prisma.$PrincipalPayload<ExtArgs> | null;
2496
+ secrets: Prisma.$AgentSecretPayload<ExtArgs>[];
2497
+ datastores: Prisma.$AgentDatastorePayload<ExtArgs>[];
2498
+ webhooks: Prisma.$WebhookPayload<ExtArgs>[];
2499
+ repositories: Prisma.$AgentRepositoryPayload<ExtArgs>[];
2500
+ budgetGroup: Prisma.$BudgetGroupPayload<ExtArgs> | null;
2501
+ /**
2502
+ * Un-phased: sub-agent composition edges (see AgentSubAgent below). An
2503
+ * agent can be a parent (has children it can delegate to) and/or a
2504
+ * child (is delegated to by others) independently.
2505
+ */
2506
+ subAgentEdgesAsParent: Prisma.$AgentSubAgentPayload<ExtArgs>[];
2507
+ subAgentEdgesAsChild: Prisma.$AgentSubAgentPayload<ExtArgs>[];
2508
+ };
2509
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
2510
+ id: string;
2511
+ name: string;
2512
+ systemPrompt: string;
2513
+ model: string;
2514
+ budgetUsd: runtime.Decimal;
2515
+ createdAt: Date;
2516
+ updatedAt: Date;
2517
+ kind: $Enums.AgentKind;
2518
+ schedule: string | null;
2519
+ timezone: string;
2520
+ scheduleEnabled: boolean;
2521
+ /**
2522
+ * Start of the most recent due window this agent was fired for.
2523
+ */
2524
+ lastScheduledAt: Date | null;
2525
+ maxTurns: number;
2526
+ ownerId: string | null;
2527
+ budgetGroupId: string | null;
2528
+ /**
2529
+ * Un-phased: gates the memory_get/memory_set/memory_list/memory_search
2530
+ * built-in tools (see AgentMemory below). Off by default — a memory-less
2531
+ * agent sees no memory tools at all, and no AgentMemory rows are ever
2532
+ * created for it.
2533
+ */
2534
+ memoryEnabled: boolean;
2535
+ /**
2536
+ * Un-phased: reasoning effort for native agents (low, medium, high,
2537
+ * xhigh, max). Validated against the model in code, not a DB enum.
2538
+ * Null = the provider's default.
2539
+ */
2540
+ effort: string | null;
2541
+ }, ExtArgs["result"]["agent"]>;
2542
+ composites: {};
2543
+ };
2544
+ export type AgentGetPayload<S extends boolean | null | undefined | AgentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentPayload, S>;
2545
+ export type AgentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
2546
+ select?: AgentCountAggregateInputType | true;
2547
+ };
2548
+ export interface AgentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
2549
+ [K: symbol]: {
2550
+ types: Prisma.TypeMap<ExtArgs>['model']['Agent'];
2551
+ meta: {
2552
+ name: 'Agent';
2553
+ };
2554
+ };
2555
+ /**
2556
+ * Find zero or one Agent that matches the filter.
2557
+ * @param {AgentFindUniqueArgs} args - Arguments to find a Agent
2558
+ * @example
2559
+ * // Get one Agent
2560
+ * const agent = await prisma.agent.findUnique({
2561
+ * where: {
2562
+ * // ... provide filter here
2563
+ * }
2564
+ * })
2565
+ */
2566
+ findUnique<T extends AgentFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2567
+ /**
2568
+ * Find one Agent that matches the filter or throw an error with `error.code='P2025'`
2569
+ * if no matches were found.
2570
+ * @param {AgentFindUniqueOrThrowArgs} args - Arguments to find a Agent
2571
+ * @example
2572
+ * // Get one Agent
2573
+ * const agent = await prisma.agent.findUniqueOrThrow({
2574
+ * where: {
2575
+ * // ... provide filter here
2576
+ * }
2577
+ * })
2578
+ */
2579
+ findUniqueOrThrow<T extends AgentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2580
+ /**
2581
+ * Find the first Agent that matches the filter.
2582
+ * Note, that providing `undefined` is treated as the value not being there.
2583
+ * Read more here: https://pris.ly/d/null-undefined
2584
+ * @param {AgentFindFirstArgs} args - Arguments to find a Agent
2585
+ * @example
2586
+ * // Get one Agent
2587
+ * const agent = await prisma.agent.findFirst({
2588
+ * where: {
2589
+ * // ... provide filter here
2590
+ * }
2591
+ * })
2592
+ */
2593
+ findFirst<T extends AgentFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2594
+ /**
2595
+ * Find the first Agent that matches the filter or
2596
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2597
+ * Note, that providing `undefined` is treated as the value not being there.
2598
+ * Read more here: https://pris.ly/d/null-undefined
2599
+ * @param {AgentFindFirstOrThrowArgs} args - Arguments to find a Agent
2600
+ * @example
2601
+ * // Get one Agent
2602
+ * const agent = await prisma.agent.findFirstOrThrow({
2603
+ * where: {
2604
+ * // ... provide filter here
2605
+ * }
2606
+ * })
2607
+ */
2608
+ findFirstOrThrow<T extends AgentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2609
+ /**
2610
+ * Find zero or more Agents that matches the filter.
2611
+ * Note, that providing `undefined` is treated as the value not being there.
2612
+ * Read more here: https://pris.ly/d/null-undefined
2613
+ * @param {AgentFindManyArgs} args - Arguments to filter and select certain fields only.
2614
+ * @example
2615
+ * // Get all Agents
2616
+ * const agents = await prisma.agent.findMany()
2617
+ *
2618
+ * // Get first 10 Agents
2619
+ * const agents = await prisma.agent.findMany({ take: 10 })
2620
+ *
2621
+ * // Only select the `id`
2622
+ * const agentWithIdOnly = await prisma.agent.findMany({ select: { id: true } })
2623
+ *
2624
+ */
2625
+ findMany<T extends AgentFindManyArgs>(args?: Prisma.SelectSubset<T, AgentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
2626
+ /**
2627
+ * Create a Agent.
2628
+ * @param {AgentCreateArgs} args - Arguments to create a Agent.
2629
+ * @example
2630
+ * // Create one Agent
2631
+ * const Agent = await prisma.agent.create({
2632
+ * data: {
2633
+ * // ... data to create a Agent
2634
+ * }
2635
+ * })
2636
+ *
2637
+ */
2638
+ create<T extends AgentCreateArgs>(args: Prisma.SelectSubset<T, AgentCreateArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2639
+ /**
2640
+ * Create many Agents.
2641
+ * @param {AgentCreateManyArgs} args - Arguments to create many Agents.
2642
+ * @example
2643
+ * // Create many Agents
2644
+ * const agent = await prisma.agent.createMany({
2645
+ * data: [
2646
+ * // ... provide data here
2647
+ * ]
2648
+ * })
2649
+ *
2650
+ */
2651
+ createMany<T extends AgentCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2652
+ /**
2653
+ * Create many Agents and returns the data saved in the database.
2654
+ * @param {AgentCreateManyAndReturnArgs} args - Arguments to create many Agents.
2655
+ * @example
2656
+ * // Create many Agents
2657
+ * const agent = await prisma.agent.createManyAndReturn({
2658
+ * data: [
2659
+ * // ... provide data here
2660
+ * ]
2661
+ * })
2662
+ *
2663
+ * // Create many Agents and only return the `id`
2664
+ * const agentWithIdOnly = await prisma.agent.createManyAndReturn({
2665
+ * select: { id: true },
2666
+ * data: [
2667
+ * // ... provide data here
2668
+ * ]
2669
+ * })
2670
+ * Note, that providing `undefined` is treated as the value not being there.
2671
+ * Read more here: https://pris.ly/d/null-undefined
2672
+ *
2673
+ */
2674
+ createManyAndReturn<T extends AgentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
2675
+ /**
2676
+ * Delete a Agent.
2677
+ * @param {AgentDeleteArgs} args - Arguments to delete one Agent.
2678
+ * @example
2679
+ * // Delete one Agent
2680
+ * const Agent = await prisma.agent.delete({
2681
+ * where: {
2682
+ * // ... filter to delete one Agent
2683
+ * }
2684
+ * })
2685
+ *
2686
+ */
2687
+ delete<T extends AgentDeleteArgs>(args: Prisma.SelectSubset<T, AgentDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2688
+ /**
2689
+ * Update one Agent.
2690
+ * @param {AgentUpdateArgs} args - Arguments to update one Agent.
2691
+ * @example
2692
+ * // Update one Agent
2693
+ * const agent = await prisma.agent.update({
2694
+ * where: {
2695
+ * // ... provide filter here
2696
+ * },
2697
+ * data: {
2698
+ * // ... provide data here
2699
+ * }
2700
+ * })
2701
+ *
2702
+ */
2703
+ update<T extends AgentUpdateArgs>(args: Prisma.SelectSubset<T, AgentUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2704
+ /**
2705
+ * Delete zero or more Agents.
2706
+ * @param {AgentDeleteManyArgs} args - Arguments to filter Agents to delete.
2707
+ * @example
2708
+ * // Delete a few Agents
2709
+ * const { count } = await prisma.agent.deleteMany({
2710
+ * where: {
2711
+ * // ... provide filter here
2712
+ * }
2713
+ * })
2714
+ *
2715
+ */
2716
+ deleteMany<T extends AgentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2717
+ /**
2718
+ * Update zero or more Agents.
2719
+ * Note, that providing `undefined` is treated as the value not being there.
2720
+ * Read more here: https://pris.ly/d/null-undefined
2721
+ * @param {AgentUpdateManyArgs} args - Arguments to update one or more rows.
2722
+ * @example
2723
+ * // Update many Agents
2724
+ * const agent = await prisma.agent.updateMany({
2725
+ * where: {
2726
+ * // ... provide filter here
2727
+ * },
2728
+ * data: {
2729
+ * // ... provide data here
2730
+ * }
2731
+ * })
2732
+ *
2733
+ */
2734
+ updateMany<T extends AgentUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2735
+ /**
2736
+ * Update zero or more Agents and returns the data updated in the database.
2737
+ * @param {AgentUpdateManyAndReturnArgs} args - Arguments to update many Agents.
2738
+ * @example
2739
+ * // Update many Agents
2740
+ * const agent = await prisma.agent.updateManyAndReturn({
2741
+ * where: {
2742
+ * // ... provide filter here
2743
+ * },
2744
+ * data: [
2745
+ * // ... provide data here
2746
+ * ]
2747
+ * })
2748
+ *
2749
+ * // Update zero or more Agents and only return the `id`
2750
+ * const agentWithIdOnly = await prisma.agent.updateManyAndReturn({
2751
+ * select: { id: true },
2752
+ * where: {
2753
+ * // ... provide filter here
2754
+ * },
2755
+ * data: [
2756
+ * // ... provide data here
2757
+ * ]
2758
+ * })
2759
+ * Note, that providing `undefined` is treated as the value not being there.
2760
+ * Read more here: https://pris.ly/d/null-undefined
2761
+ *
2762
+ */
2763
+ updateManyAndReturn<T extends AgentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2764
+ /**
2765
+ * Create or update one Agent.
2766
+ * @param {AgentUpsertArgs} args - Arguments to update or create a Agent.
2767
+ * @example
2768
+ * // Update or create a Agent
2769
+ * const agent = await prisma.agent.upsert({
2770
+ * create: {
2771
+ * // ... data to create a Agent
2772
+ * },
2773
+ * update: {
2774
+ * // ... in case it already exists, update
2775
+ * },
2776
+ * where: {
2777
+ * // ... the filter for the Agent we want to update
2778
+ * }
2779
+ * })
2780
+ */
2781
+ upsert<T extends AgentUpsertArgs>(args: Prisma.SelectSubset<T, AgentUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2782
+ /**
2783
+ * Count the number of Agents.
2784
+ * Note, that providing `undefined` is treated as the value not being there.
2785
+ * Read more here: https://pris.ly/d/null-undefined
2786
+ * @param {AgentCountArgs} args - Arguments to filter Agents to count.
2787
+ * @example
2788
+ * // Count the number of Agents
2789
+ * const count = await prisma.agent.count({
2790
+ * where: {
2791
+ * // ... the filter for the Agents we want to count
2792
+ * }
2793
+ * })
2794
+ **/
2795
+ count<T extends AgentCountArgs>(args?: Prisma.Subset<T, AgentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentCountAggregateOutputType> : number>;
2796
+ /**
2797
+ * Allows you to perform aggregations operations on a Agent.
2798
+ * Note, that providing `undefined` is treated as the value not being there.
2799
+ * Read more here: https://pris.ly/d/null-undefined
2800
+ * @param {AgentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2801
+ * @example
2802
+ * // Ordered by age ascending
2803
+ * // Where email contains prisma.io
2804
+ * // Limited to the 10 users
2805
+ * const aggregations = await prisma.user.aggregate({
2806
+ * _avg: {
2807
+ * age: true,
2808
+ * },
2809
+ * where: {
2810
+ * email: {
2811
+ * contains: "prisma.io",
2812
+ * },
2813
+ * },
2814
+ * orderBy: {
2815
+ * age: "asc",
2816
+ * },
2817
+ * take: 10,
2818
+ * })
2819
+ **/
2820
+ aggregate<T extends AgentAggregateArgs>(args: Prisma.Subset<T, AgentAggregateArgs>): Prisma.PrismaPromise<GetAgentAggregateType<T>>;
2821
+ /**
2822
+ * Group by Agent.
2823
+ * Note, that providing `undefined` is treated as the value not being there.
2824
+ * Read more here: https://pris.ly/d/null-undefined
2825
+ * @param {AgentGroupByArgs} args - Group by arguments.
2826
+ * @example
2827
+ * // Group by city, order by createdAt, get count
2828
+ * const result = await prisma.user.groupBy({
2829
+ * by: ['city', 'createdAt'],
2830
+ * orderBy: {
2831
+ * createdAt: true
2832
+ * },
2833
+ * _count: {
2834
+ * _all: true
2835
+ * },
2836
+ * })
2837
+ *
2838
+ **/
2839
+ groupBy<T extends AgentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2840
+ orderBy: AgentGroupByArgs['orderBy'];
2841
+ } : {
2842
+ orderBy?: AgentGroupByArgs['orderBy'];
2843
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
2844
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2845
+ Error,
2846
+ 'Field ',
2847
+ P,
2848
+ ` in "having" needs to be provided in "by"`
2849
+ ];
2850
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2851
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2852
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2853
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2854
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2855
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2856
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2857
+ /**
2858
+ * Fields of the Agent model
2859
+ */
2860
+ readonly fields: AgentFieldRefs;
2861
+ }
2862
+ /**
2863
+ * The delegate class that acts as a "Promise-like" for Agent.
2864
+ * Why is this prefixed with `Prisma__`?
2865
+ * Because we want to prevent naming conflicts as mentioned in
2866
+ * https://github.com/prisma/prisma-client-js/issues/707
2867
+ */
2868
+ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2869
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2870
+ runs<T extends Prisma.Agent$runsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$runsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2871
+ codingProfile<T extends Prisma.Agent$codingProfileArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$codingProfileArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2872
+ tools<T extends Prisma.Agent$toolsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$toolsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2873
+ owner<T extends Prisma.Agent$ownerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$ownerArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2874
+ secrets<T extends Prisma.Agent$secretsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$secretsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSecretPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2875
+ datastores<T extends Prisma.Agent$datastoresArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$datastoresArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentDatastorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2876
+ webhooks<T extends Prisma.Agent$webhooksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$webhooksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2877
+ repositories<T extends Prisma.Agent$repositoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$repositoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2878
+ budgetGroup<T extends Prisma.Agent$budgetGroupArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$budgetGroupArgs<ExtArgs>>): Prisma.Prisma__BudgetGroupClient<runtime.Types.Result.GetResult<Prisma.$BudgetGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2879
+ subAgentEdgesAsParent<T extends Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2880
+ subAgentEdgesAsChild<T extends Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2881
+ /**
2882
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2883
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2884
+ * @param onrejected The callback to execute when the Promise is rejected.
2885
+ * @returns A Promise for the completion of which ever callback is executed.
2886
+ */
2887
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
2888
+ /**
2889
+ * Attaches a callback for only the rejection of the Promise.
2890
+ * @param onrejected The callback to execute when the Promise is rejected.
2891
+ * @returns A Promise for the completion of the callback.
2892
+ */
2893
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2894
+ /**
2895
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2896
+ * resolved value cannot be modified from the callback.
2897
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2898
+ * @returns A Promise for the completion of the callback.
2899
+ */
2900
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2901
+ }
2902
+ /**
2903
+ * Fields of the Agent model
2904
+ */
2905
+ export interface AgentFieldRefs {
2906
+ readonly id: Prisma.FieldRef<"Agent", 'String'>;
2907
+ readonly name: Prisma.FieldRef<"Agent", 'String'>;
2908
+ readonly systemPrompt: Prisma.FieldRef<"Agent", 'String'>;
2909
+ readonly model: Prisma.FieldRef<"Agent", 'String'>;
2910
+ readonly budgetUsd: Prisma.FieldRef<"Agent", 'Decimal'>;
2911
+ readonly createdAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2912
+ readonly updatedAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2913
+ readonly kind: Prisma.FieldRef<"Agent", 'AgentKind'>;
2914
+ readonly schedule: Prisma.FieldRef<"Agent", 'String'>;
2915
+ readonly timezone: Prisma.FieldRef<"Agent", 'String'>;
2916
+ readonly scheduleEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
2917
+ readonly lastScheduledAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2918
+ readonly maxTurns: Prisma.FieldRef<"Agent", 'Int'>;
2919
+ readonly ownerId: Prisma.FieldRef<"Agent", 'String'>;
2920
+ readonly budgetGroupId: Prisma.FieldRef<"Agent", 'String'>;
2921
+ readonly memoryEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
2922
+ readonly effort: Prisma.FieldRef<"Agent", 'String'>;
2923
+ }
2924
+ /**
2925
+ * Agent findUnique
2926
+ */
2927
+ export type AgentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2928
+ /**
2929
+ * Select specific fields to fetch from the Agent
2930
+ */
2931
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2932
+ /**
2933
+ * Omit specific fields from the Agent
2934
+ */
2935
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2936
+ /**
2937
+ * Choose, which related nodes to fetch as well
2938
+ */
2939
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2940
+ /**
2941
+ * Filter, which Agent to fetch.
2942
+ */
2943
+ where: Prisma.AgentWhereUniqueInput;
2944
+ };
2945
+ /**
2946
+ * Agent findUniqueOrThrow
2947
+ */
2948
+ export type AgentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2949
+ /**
2950
+ * Select specific fields to fetch from the Agent
2951
+ */
2952
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2953
+ /**
2954
+ * Omit specific fields from the Agent
2955
+ */
2956
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2957
+ /**
2958
+ * Choose, which related nodes to fetch as well
2959
+ */
2960
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2961
+ /**
2962
+ * Filter, which Agent to fetch.
2963
+ */
2964
+ where: Prisma.AgentWhereUniqueInput;
2965
+ };
2966
+ /**
2967
+ * Agent findFirst
2968
+ */
2969
+ export type AgentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2970
+ /**
2971
+ * Select specific fields to fetch from the Agent
2972
+ */
2973
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2974
+ /**
2975
+ * Omit specific fields from the Agent
2976
+ */
2977
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2978
+ /**
2979
+ * Choose, which related nodes to fetch as well
2980
+ */
2981
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2982
+ /**
2983
+ * Filter, which Agent to fetch.
2984
+ */
2985
+ where?: Prisma.AgentWhereInput;
2986
+ /**
2987
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2988
+ *
2989
+ * Determine the order of Agents to fetch.
2990
+ */
2991
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
2992
+ /**
2993
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2994
+ *
2995
+ * Sets the position for searching for Agents.
2996
+ */
2997
+ cursor?: Prisma.AgentWhereUniqueInput;
2998
+ /**
2999
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3000
+ *
3001
+ * Take `±n` Agents from the position of the cursor.
3002
+ */
3003
+ take?: number;
3004
+ /**
3005
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3006
+ *
3007
+ * Skip the first `n` Agents.
3008
+ */
3009
+ skip?: number;
3010
+ /**
3011
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3012
+ *
3013
+ * Filter by unique combinations of Agents.
3014
+ */
3015
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[];
3016
+ };
3017
+ /**
3018
+ * Agent findFirstOrThrow
3019
+ */
3020
+ export type AgentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3021
+ /**
3022
+ * Select specific fields to fetch from the Agent
3023
+ */
3024
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3025
+ /**
3026
+ * Omit specific fields from the Agent
3027
+ */
3028
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3029
+ /**
3030
+ * Choose, which related nodes to fetch as well
3031
+ */
3032
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3033
+ /**
3034
+ * Filter, which Agent to fetch.
3035
+ */
3036
+ where?: Prisma.AgentWhereInput;
3037
+ /**
3038
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3039
+ *
3040
+ * Determine the order of Agents to fetch.
3041
+ */
3042
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
3043
+ /**
3044
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3045
+ *
3046
+ * Sets the position for searching for Agents.
3047
+ */
3048
+ cursor?: Prisma.AgentWhereUniqueInput;
3049
+ /**
3050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3051
+ *
3052
+ * Take `±n` Agents from the position of the cursor.
3053
+ */
3054
+ take?: number;
3055
+ /**
3056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3057
+ *
3058
+ * Skip the first `n` Agents.
3059
+ */
3060
+ skip?: number;
3061
+ /**
3062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3063
+ *
3064
+ * Filter by unique combinations of Agents.
3065
+ */
3066
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[];
3067
+ };
3068
+ /**
3069
+ * Agent findMany
3070
+ */
3071
+ export type AgentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3072
+ /**
3073
+ * Select specific fields to fetch from the Agent
3074
+ */
3075
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3076
+ /**
3077
+ * Omit specific fields from the Agent
3078
+ */
3079
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3080
+ /**
3081
+ * Choose, which related nodes to fetch as well
3082
+ */
3083
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3084
+ /**
3085
+ * Filter, which Agents to fetch.
3086
+ */
3087
+ where?: Prisma.AgentWhereInput;
3088
+ /**
3089
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3090
+ *
3091
+ * Determine the order of Agents to fetch.
3092
+ */
3093
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
3094
+ /**
3095
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3096
+ *
3097
+ * Sets the position for listing Agents.
3098
+ */
3099
+ cursor?: Prisma.AgentWhereUniqueInput;
3100
+ /**
3101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3102
+ *
3103
+ * Take `±n` Agents from the position of the cursor.
3104
+ */
3105
+ take?: number;
3106
+ /**
3107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3108
+ *
3109
+ * Skip the first `n` Agents.
3110
+ */
3111
+ skip?: number;
3112
+ /**
3113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3114
+ *
3115
+ * Filter by unique combinations of Agents.
3116
+ */
3117
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[];
3118
+ };
3119
+ /**
3120
+ * Agent create
3121
+ */
3122
+ export type AgentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3123
+ /**
3124
+ * Select specific fields to fetch from the Agent
3125
+ */
3126
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3127
+ /**
3128
+ * Omit specific fields from the Agent
3129
+ */
3130
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3131
+ /**
3132
+ * Choose, which related nodes to fetch as well
3133
+ */
3134
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3135
+ /**
3136
+ * The data needed to create a Agent.
3137
+ */
3138
+ data: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>;
3139
+ };
3140
+ /**
3141
+ * Agent createMany
3142
+ */
3143
+ export type AgentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3144
+ /**
3145
+ * The data used to create many Agents.
3146
+ */
3147
+ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[];
3148
+ skipDuplicates?: boolean;
3149
+ };
3150
+ /**
3151
+ * Agent createManyAndReturn
3152
+ */
3153
+ export type AgentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3154
+ /**
3155
+ * Select specific fields to fetch from the Agent
3156
+ */
3157
+ select?: Prisma.AgentSelectCreateManyAndReturn<ExtArgs> | null;
3158
+ /**
3159
+ * Omit specific fields from the Agent
3160
+ */
3161
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3162
+ /**
3163
+ * The data used to create many Agents.
3164
+ */
3165
+ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[];
3166
+ skipDuplicates?: boolean;
3167
+ /**
3168
+ * Choose, which related nodes to fetch as well
3169
+ */
3170
+ include?: Prisma.AgentIncludeCreateManyAndReturn<ExtArgs> | null;
3171
+ };
3172
+ /**
3173
+ * Agent update
3174
+ */
3175
+ export type AgentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3176
+ /**
3177
+ * Select specific fields to fetch from the Agent
3178
+ */
3179
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3180
+ /**
3181
+ * Omit specific fields from the Agent
3182
+ */
3183
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3184
+ /**
3185
+ * Choose, which related nodes to fetch as well
3186
+ */
3187
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3188
+ /**
3189
+ * The data needed to update a Agent.
3190
+ */
3191
+ data: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>;
3192
+ /**
3193
+ * Choose, which Agent to update.
3194
+ */
3195
+ where: Prisma.AgentWhereUniqueInput;
3196
+ };
3197
+ /**
3198
+ * Agent updateMany
3199
+ */
3200
+ export type AgentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3201
+ /**
3202
+ * The data used to update Agents.
3203
+ */
3204
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>;
3205
+ /**
3206
+ * Filter which Agents to update
3207
+ */
3208
+ where?: Prisma.AgentWhereInput;
3209
+ /**
3210
+ * Limit how many Agents to update.
3211
+ */
3212
+ limit?: number;
3213
+ };
3214
+ /**
3215
+ * Agent updateManyAndReturn
3216
+ */
3217
+ export type AgentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3218
+ /**
3219
+ * Select specific fields to fetch from the Agent
3220
+ */
3221
+ select?: Prisma.AgentSelectUpdateManyAndReturn<ExtArgs> | null;
3222
+ /**
3223
+ * Omit specific fields from the Agent
3224
+ */
3225
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3226
+ /**
3227
+ * The data used to update Agents.
3228
+ */
3229
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>;
3230
+ /**
3231
+ * Filter which Agents to update
3232
+ */
3233
+ where?: Prisma.AgentWhereInput;
3234
+ /**
3235
+ * Limit how many Agents to update.
3236
+ */
3237
+ limit?: number;
3238
+ /**
3239
+ * Choose, which related nodes to fetch as well
3240
+ */
3241
+ include?: Prisma.AgentIncludeUpdateManyAndReturn<ExtArgs> | null;
3242
+ };
3243
+ /**
3244
+ * Agent upsert
3245
+ */
3246
+ export type AgentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3247
+ /**
3248
+ * Select specific fields to fetch from the Agent
3249
+ */
3250
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3251
+ /**
3252
+ * Omit specific fields from the Agent
3253
+ */
3254
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3255
+ /**
3256
+ * Choose, which related nodes to fetch as well
3257
+ */
3258
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3259
+ /**
3260
+ * The filter to search for the Agent to update in case it exists.
3261
+ */
3262
+ where: Prisma.AgentWhereUniqueInput;
3263
+ /**
3264
+ * In case the Agent found by the `where` argument doesn't exist, create a new Agent with this data.
3265
+ */
3266
+ create: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>;
3267
+ /**
3268
+ * In case the Agent was found with the provided `where` argument, update it with this data.
3269
+ */
3270
+ update: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>;
3271
+ };
3272
+ /**
3273
+ * Agent delete
3274
+ */
3275
+ export type AgentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3276
+ /**
3277
+ * Select specific fields to fetch from the Agent
3278
+ */
3279
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3280
+ /**
3281
+ * Omit specific fields from the Agent
3282
+ */
3283
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3284
+ /**
3285
+ * Choose, which related nodes to fetch as well
3286
+ */
3287
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3288
+ /**
3289
+ * Filter which Agent to delete.
3290
+ */
3291
+ where: Prisma.AgentWhereUniqueInput;
3292
+ };
3293
+ /**
3294
+ * Agent deleteMany
3295
+ */
3296
+ export type AgentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3297
+ /**
3298
+ * Filter which Agents to delete
3299
+ */
3300
+ where?: Prisma.AgentWhereInput;
3301
+ /**
3302
+ * Limit how many Agents to delete.
3303
+ */
3304
+ limit?: number;
3305
+ };
3306
+ /**
3307
+ * Agent.runs
3308
+ */
3309
+ export type Agent$runsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3310
+ /**
3311
+ * Select specific fields to fetch from the Run
3312
+ */
3313
+ select?: Prisma.RunSelect<ExtArgs> | null;
3314
+ /**
3315
+ * Omit specific fields from the Run
3316
+ */
3317
+ omit?: Prisma.RunOmit<ExtArgs> | null;
3318
+ /**
3319
+ * Choose, which related nodes to fetch as well
3320
+ */
3321
+ include?: Prisma.RunInclude<ExtArgs> | null;
3322
+ where?: Prisma.RunWhereInput;
3323
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
3324
+ cursor?: Prisma.RunWhereUniqueInput;
3325
+ take?: number;
3326
+ skip?: number;
3327
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
3328
+ };
3329
+ /**
3330
+ * Agent.codingProfile
3331
+ */
3332
+ export type Agent$codingProfileArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3333
+ /**
3334
+ * Select specific fields to fetch from the CodingAgentProfile
3335
+ */
3336
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
3337
+ /**
3338
+ * Omit specific fields from the CodingAgentProfile
3339
+ */
3340
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
3341
+ /**
3342
+ * Choose, which related nodes to fetch as well
3343
+ */
3344
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
3345
+ where?: Prisma.CodingAgentProfileWhereInput;
3346
+ };
3347
+ /**
3348
+ * Agent.tools
3349
+ */
3350
+ export type Agent$toolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3351
+ /**
3352
+ * Select specific fields to fetch from the AgentTool
3353
+ */
3354
+ select?: Prisma.AgentToolSelect<ExtArgs> | null;
3355
+ /**
3356
+ * Omit specific fields from the AgentTool
3357
+ */
3358
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null;
3359
+ /**
3360
+ * Choose, which related nodes to fetch as well
3361
+ */
3362
+ include?: Prisma.AgentToolInclude<ExtArgs> | null;
3363
+ where?: Prisma.AgentToolWhereInput;
3364
+ orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[];
3365
+ cursor?: Prisma.AgentToolWhereUniqueInput;
3366
+ take?: number;
3367
+ skip?: number;
3368
+ distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[];
3369
+ };
3370
+ /**
3371
+ * Agent.owner
3372
+ */
3373
+ export type Agent$ownerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3374
+ /**
3375
+ * Select specific fields to fetch from the Principal
3376
+ */
3377
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
3378
+ /**
3379
+ * Omit specific fields from the Principal
3380
+ */
3381
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
3382
+ /**
3383
+ * Choose, which related nodes to fetch as well
3384
+ */
3385
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
3386
+ where?: Prisma.PrincipalWhereInput;
3387
+ };
3388
+ /**
3389
+ * Agent.secrets
3390
+ */
3391
+ export type Agent$secretsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3392
+ /**
3393
+ * Select specific fields to fetch from the AgentSecret
3394
+ */
3395
+ select?: Prisma.AgentSecretSelect<ExtArgs> | null;
3396
+ /**
3397
+ * Omit specific fields from the AgentSecret
3398
+ */
3399
+ omit?: Prisma.AgentSecretOmit<ExtArgs> | null;
3400
+ /**
3401
+ * Choose, which related nodes to fetch as well
3402
+ */
3403
+ include?: Prisma.AgentSecretInclude<ExtArgs> | null;
3404
+ where?: Prisma.AgentSecretWhereInput;
3405
+ orderBy?: Prisma.AgentSecretOrderByWithRelationInput | Prisma.AgentSecretOrderByWithRelationInput[];
3406
+ cursor?: Prisma.AgentSecretWhereUniqueInput;
3407
+ take?: number;
3408
+ skip?: number;
3409
+ distinct?: Prisma.AgentSecretScalarFieldEnum | Prisma.AgentSecretScalarFieldEnum[];
3410
+ };
3411
+ /**
3412
+ * Agent.datastores
3413
+ */
3414
+ export type Agent$datastoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3415
+ /**
3416
+ * Select specific fields to fetch from the AgentDatastore
3417
+ */
3418
+ select?: Prisma.AgentDatastoreSelect<ExtArgs> | null;
3419
+ /**
3420
+ * Omit specific fields from the AgentDatastore
3421
+ */
3422
+ omit?: Prisma.AgentDatastoreOmit<ExtArgs> | null;
3423
+ /**
3424
+ * Choose, which related nodes to fetch as well
3425
+ */
3426
+ include?: Prisma.AgentDatastoreInclude<ExtArgs> | null;
3427
+ where?: Prisma.AgentDatastoreWhereInput;
3428
+ orderBy?: Prisma.AgentDatastoreOrderByWithRelationInput | Prisma.AgentDatastoreOrderByWithRelationInput[];
3429
+ cursor?: Prisma.AgentDatastoreWhereUniqueInput;
3430
+ take?: number;
3431
+ skip?: number;
3432
+ distinct?: Prisma.AgentDatastoreScalarFieldEnum | Prisma.AgentDatastoreScalarFieldEnum[];
3433
+ };
3434
+ /**
3435
+ * Agent.webhooks
3436
+ */
3437
+ export type Agent$webhooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3438
+ /**
3439
+ * Select specific fields to fetch from the Webhook
3440
+ */
3441
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
3442
+ /**
3443
+ * Omit specific fields from the Webhook
3444
+ */
3445
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
3446
+ /**
3447
+ * Choose, which related nodes to fetch as well
3448
+ */
3449
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
3450
+ where?: Prisma.WebhookWhereInput;
3451
+ orderBy?: Prisma.WebhookOrderByWithRelationInput | Prisma.WebhookOrderByWithRelationInput[];
3452
+ cursor?: Prisma.WebhookWhereUniqueInput;
3453
+ take?: number;
3454
+ skip?: number;
3455
+ distinct?: Prisma.WebhookScalarFieldEnum | Prisma.WebhookScalarFieldEnum[];
3456
+ };
3457
+ /**
3458
+ * Agent.repositories
3459
+ */
3460
+ export type Agent$repositoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3461
+ /**
3462
+ * Select specific fields to fetch from the AgentRepository
3463
+ */
3464
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
3465
+ /**
3466
+ * Omit specific fields from the AgentRepository
3467
+ */
3468
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
3469
+ /**
3470
+ * Choose, which related nodes to fetch as well
3471
+ */
3472
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
3473
+ where?: Prisma.AgentRepositoryWhereInput;
3474
+ orderBy?: Prisma.AgentRepositoryOrderByWithRelationInput | Prisma.AgentRepositoryOrderByWithRelationInput[];
3475
+ cursor?: Prisma.AgentRepositoryWhereUniqueInput;
3476
+ take?: number;
3477
+ skip?: number;
3478
+ distinct?: Prisma.AgentRepositoryScalarFieldEnum | Prisma.AgentRepositoryScalarFieldEnum[];
3479
+ };
3480
+ /**
3481
+ * Agent.budgetGroup
3482
+ */
3483
+ export type Agent$budgetGroupArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3484
+ /**
3485
+ * Select specific fields to fetch from the BudgetGroup
3486
+ */
3487
+ select?: Prisma.BudgetGroupSelect<ExtArgs> | null;
3488
+ /**
3489
+ * Omit specific fields from the BudgetGroup
3490
+ */
3491
+ omit?: Prisma.BudgetGroupOmit<ExtArgs> | null;
3492
+ /**
3493
+ * Choose, which related nodes to fetch as well
3494
+ */
3495
+ include?: Prisma.BudgetGroupInclude<ExtArgs> | null;
3496
+ where?: Prisma.BudgetGroupWhereInput;
3497
+ };
3498
+ /**
3499
+ * Agent.subAgentEdgesAsParent
3500
+ */
3501
+ export type Agent$subAgentEdgesAsParentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3502
+ /**
3503
+ * Select specific fields to fetch from the AgentSubAgent
3504
+ */
3505
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
3506
+ /**
3507
+ * Omit specific fields from the AgentSubAgent
3508
+ */
3509
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
3510
+ /**
3511
+ * Choose, which related nodes to fetch as well
3512
+ */
3513
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
3514
+ where?: Prisma.AgentSubAgentWhereInput;
3515
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
3516
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
3517
+ take?: number;
3518
+ skip?: number;
3519
+ distinct?: Prisma.AgentSubAgentScalarFieldEnum | Prisma.AgentSubAgentScalarFieldEnum[];
3520
+ };
3521
+ /**
3522
+ * Agent.subAgentEdgesAsChild
3523
+ */
3524
+ export type Agent$subAgentEdgesAsChildArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3525
+ /**
3526
+ * Select specific fields to fetch from the AgentSubAgent
3527
+ */
3528
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
3529
+ /**
3530
+ * Omit specific fields from the AgentSubAgent
3531
+ */
3532
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
3533
+ /**
3534
+ * Choose, which related nodes to fetch as well
3535
+ */
3536
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
3537
+ where?: Prisma.AgentSubAgentWhereInput;
3538
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
3539
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
3540
+ take?: number;
3541
+ skip?: number;
3542
+ distinct?: Prisma.AgentSubAgentScalarFieldEnum | Prisma.AgentSubAgentScalarFieldEnum[];
3543
+ };
3544
+ /**
3545
+ * Agent without action
3546
+ */
3547
+ export type AgentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3548
+ /**
3549
+ * Select specific fields to fetch from the Agent
3550
+ */
3551
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3552
+ /**
3553
+ * Omit specific fields from the Agent
3554
+ */
3555
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3556
+ /**
3557
+ * Choose, which related nodes to fetch as well
3558
+ */
3559
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3560
+ };