@app-vitals/agent-admin 0.0.0-stage → 0.1.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 (325) hide show
  1. package/Dockerfile +43 -0
  2. package/README.md +72 -2
  3. package/e2e/agents-page.e2e.ts +338 -0
  4. package/e2e/chat-degraded.e2e.ts +153 -0
  5. package/e2e/chat-page.e2e.ts +169 -0
  6. package/e2e/chat-progress.e2e.ts +206 -0
  7. package/e2e/chat-thread-page.e2e.ts +444 -0
  8. package/e2e/login-page.e2e.ts +148 -0
  9. package/e2e/test-server.ts +427 -0
  10. package/openapi.json +6098 -0
  11. package/openapi.platform.json +5553 -0
  12. package/package.json +64 -4
  13. package/playwright.config.ts +25 -0
  14. package/prisma/client/browser.ts +134 -0
  15. package/prisma/client/client.ts +158 -0
  16. package/prisma/client/commonInputTypes.ts +578 -0
  17. package/prisma/client/enums.ts +15 -0
  18. package/prisma/client/internal/class.ts +424 -0
  19. package/prisma/client/internal/prismaNamespace.ts +2898 -0
  20. package/prisma/client/internal/prismaNamespaceBrowser.ts +476 -0
  21. package/prisma/client/models/Account.ts +1774 -0
  22. package/prisma/client/models/AccountInvite.ts +1386 -0
  23. package/prisma/client/models/AccountMember.ts +1351 -0
  24. package/prisma/client/models/Agent.ts +4554 -0
  25. package/prisma/client/models/AgentAsk.ts +1373 -0
  26. package/prisma/client/models/AgentChatTokenUsageDailyByModel.ts +1638 -0
  27. package/prisma/client/models/AgentCronJob.ts +2416 -0
  28. package/prisma/client/models/AgentCronRun.ts +2858 -0
  29. package/prisma/client/models/AgentCronRunModelBreakdown.ts +1532 -0
  30. package/prisma/client/models/AgentCronRunSkillUsage.ts +1642 -0
  31. package/prisma/client/models/AgentEnv.ts +1421 -0
  32. package/prisma/client/models/AgentGitHubInstallationsSnapshot.ts +1289 -0
  33. package/prisma/client/models/AgentMember.ts +1316 -0
  34. package/prisma/client/models/AgentPhaseMethodology.ts +1355 -0
  35. package/prisma/client/models/AgentPlugin.ts +1421 -0
  36. package/prisma/client/models/AgentToken.ts +1380 -0
  37. package/prisma/client/models/AgentTool.ts +1351 -0
  38. package/prisma/client/models/AgentWorkQueueSnapshot.ts +1297 -0
  39. package/prisma/client/models/ChatThreadWatch.ts +1183 -0
  40. package/prisma/client/models/PushSubscription.ts +1233 -0
  41. package/prisma/client/models/SessionAlertState.ts +1187 -0
  42. package/prisma/client/models/SessionFollow.ts +1187 -0
  43. package/prisma/client/models/UserNotificationPrefs.ts +1221 -0
  44. package/prisma/client/models.ts +34 -0
  45. package/prisma/migrations/20260608000000_init/migration.sql +112 -0
  46. package/prisma/migrations/20260616000000_agent_members/migration.sql +18 -0
  47. package/prisma/migrations/20260624000000_add_agent_self_hosted/migration.sql +2 -0
  48. package/prisma/migrations/20260624120000_add_agent_repos/migration.sql +3 -0
  49. package/prisma/migrations/20260625000000_add_agent_cron_run/migration.sql +26 -0
  50. package/prisma/migrations/20260626000000_add_cron_run_token_fields/migration.sql +10 -0
  51. package/prisma/migrations/20260627000000_add_agent_chat_token_usage_daily/migration.sql +18 -0
  52. package/prisma/migrations/20260627010000_add_agent_chat_token_usage_fk/migration.sql +2 -0
  53. package/prisma/migrations/20260701000000_add_chat_threads_messages/migration.sql +37 -0
  54. package/prisma/migrations/20260701010000_drop_chat_threads_messages/migration.sql +17 -0
  55. package/prisma/migrations/20260701020000_add_cron_run_model_breakdown/migration.sql +23 -0
  56. package/prisma/migrations/20260701020000_chat_token_by_model/migration.sql +25 -0
  57. package/prisma/migrations/20260701030000_add_secret_flag_to_agent_env/migration.sql +2 -0
  58. package/prisma/migrations/20260701030000_drop_cron_run_legacy_columns/migration.sql +5 -0
  59. package/prisma/migrations/20260706000000_consolidate_cron_run_token_accounting/migration.sql +54 -0
  60. package/prisma/migrations/20260709000000_add_phase_to_agent_cron_run/migration.sql +8 -0
  61. package/prisma/migrations/20260717000000_add_item_tracking_to_agent_cron_run/migration.sql +10 -0
  62. package/prisma/migrations/20260717010000_add_agent_work_queue_snapshot/migration.sql +20 -0
  63. package/prisma/migrations/20260718000000_add_cron_phase_columns/migration.sql +25 -0
  64. package/prisma/migrations/20260718100000_drop_agent_cron_run_phase_column/migration.sql +8 -0
  65. package/prisma/migrations/20260724000000_add_agent_type_name/migration.sql +3 -0
  66. package/prisma/migrations/20260725232433_add_agent_author_allowlist/migration.sql +2 -0
  67. package/prisma/migrations/20260727120000_add_not_null_to_agent_author_allowlist/migration.sql +3 -0
  68. package/prisma/migrations/20260731000000_add_session_id_to_agent_cron_run/migration.sql +2 -0
  69. package/prisma/migrations/20260821000000_add_agent_restrict_slack_to_members/migration.sql +3 -0
  70. package/prisma/migrations/20260901000000_add_push_subscription_and_chat_thread_watch/migration.sql +40 -0
  71. package/prisma/migrations/20260903000000_add_agent_patch_author_allowlist/migration.sql +2 -0
  72. package/prisma/migrations/20260903120000_add_agent_review_author_allowlist/migration.sql +18 -0
  73. package/prisma/migrations/20260903150000_drop_agent_author_allowlist/migration.sql +14 -0
  74. package/prisma/migrations/20260905000000_add_started_at_index_to_agent_cron_run/migration.sql +11 -0
  75. package/prisma/migrations/20260906000000_add_session_follow_notification_prefs_alert_state/migration.sql +47 -0
  76. package/prisma/migrations/20260911000000_backfill_auto_follow_since/migration.sql +16 -0
  77. package/prisma/migrations/20260923115814_add_last_heartbeat_at_to_agent_cron_run/migration.sql +2 -0
  78. package/prisma/migrations/20260924120000_add_trial_expiry_fields_to_agent/migration.sql +6 -0
  79. package/prisma/migrations/20260929000000_add_agent_phase_methodology/migration.sql +21 -0
  80. package/prisma/migrations/20260929120000_add_agent_policy_fields/migration.sql +15 -0
  81. package/prisma/migrations/20261005000000_add_agent_github_installations_snapshot/migration.sql +21 -0
  82. package/prisma/migrations/20261008000000_add_cron_run_telemetry/migration.sql +50 -0
  83. package/prisma/migrations/20261008010000_add_account_models/migration.sql +48 -0
  84. package/prisma/migrations/20261008020000_add_cron_lockdown_disabled_at/migration.sql +3 -0
  85. package/prisma/migrations/20261009000000_chat_token_usage_bigint/migration.sql +7 -0
  86. package/prisma/migrations/20261010000000_add_cron_run_command_variant/migration.sql +2 -0
  87. package/prisma/migrations/20261019000000_add_agent_anthropic_identity/migration.sql +9 -0
  88. package/prisma/migrations/20261025000000_add_agent_ask/migration.sql +23 -0
  89. package/prisma/migrations/migration_lock.toml +3 -0
  90. package/prisma/schema/coding.prisma +85 -0
  91. package/prisma/schema/schema.prisma +506 -0
  92. package/prisma.config.ts +34 -0
  93. package/pwa-assets/icons/apple-touch-icon.png +0 -0
  94. package/pwa-assets/icons/favicon-32.png +0 -0
  95. package/pwa-assets/icons/icon-192.png +0 -0
  96. package/pwa-assets/icons/icon-512.png +0 -0
  97. package/pwa-assets/icons/icon-maskable-192.png +0 -0
  98. package/pwa-assets/icons/icon-maskable-512.png +0 -0
  99. package/src/account-agent-create.ts +42 -0
  100. package/src/account-agent-create.unit.test.ts +28 -0
  101. package/src/account-created-notifier.ts +71 -0
  102. package/src/account-created-notifier.unit.test.ts +70 -0
  103. package/src/account-email.ts +9 -0
  104. package/src/account-email.unit.test.ts +21 -0
  105. package/src/account-invites.ts +70 -0
  106. package/src/account-lifecycle.integration.test.ts +329 -0
  107. package/src/account-lifecycle.ts +206 -0
  108. package/src/account-lifecycle.unit.test.ts +108 -0
  109. package/src/account-members.ts +128 -0
  110. package/src/account-onboarding.integration.test.ts +101 -0
  111. package/src/account-onboarding.ts +95 -0
  112. package/src/account-trial-expiry-sweeper.ts +85 -0
  113. package/src/account-trial-warning-sweeper.integration.test.ts +228 -0
  114. package/src/account-trial-warning-sweeper.ts +216 -0
  115. package/src/accounts-api.integration.test.ts +196 -0
  116. package/src/accounts-api.smoke.test.ts +292 -0
  117. package/src/accounts-api.ts +289 -0
  118. package/src/accounts-api.unit.test.ts +93 -0
  119. package/src/accounts.integration.test.ts +178 -0
  120. package/src/accounts.ts +208 -0
  121. package/src/admin-boot-config.ts +574 -0
  122. package/src/admin-boot-config.unit.test.ts +28 -0
  123. package/src/admin-boot.boot-order.unit.test.ts +91 -0
  124. package/src/admin-boot.ts +690 -0
  125. package/src/admin-dev-login.smoke.test.ts +317 -0
  126. package/src/admin-extension.ts +432 -0
  127. package/src/admin-extension.unit.test.ts +532 -0
  128. package/src/admin-local-agent.smoke.test.ts +1643 -0
  129. package/src/admin-spec.smoke.test.ts +96 -0
  130. package/src/admin-spec.ts +186 -0
  131. package/src/admin-ui-account-nav.ts +20 -0
  132. package/src/admin-ui-account-pages.ts +131 -0
  133. package/src/admin-ui-account-pages.unit.test.ts +112 -0
  134. package/src/admin-ui-account.smoke.test.ts +286 -0
  135. package/src/admin-ui-account.ts +185 -0
  136. package/src/admin-ui-accounts-pages.ts +202 -0
  137. package/src/admin-ui-accounts-pages.unit.test.ts +138 -0
  138. package/src/admin-ui-accounts.smoke.test.ts +434 -0
  139. package/src/admin-ui-accounts.ts +266 -0
  140. package/src/admin-ui-layout.ts +60 -0
  141. package/src/admin-ui-layout.unit.test.ts +140 -0
  142. package/src/admin-ui-pages.ts +3489 -0
  143. package/src/admin-ui-pages.unit.test.ts +4355 -0
  144. package/src/admin-ui-push-test.smoke.test.ts +125 -0
  145. package/src/admin-ui-push-test.ts +102 -0
  146. package/src/admin-ui-styles.ts +656 -0
  147. package/src/admin-ui-styles.unit.test.ts +103 -0
  148. package/src/admin-ui.fixtures.ts +457 -0
  149. package/src/admin-ui.smoke.test.ts +7227 -0
  150. package/src/admin-ui.ts +3824 -0
  151. package/src/agent-account-assignment.ts +49 -0
  152. package/src/agent-account-assignment.unit.test.ts +99 -0
  153. package/src/agent-anthropic-identity.integration.test.ts +99 -0
  154. package/src/agent-anthropic-identity.ts +78 -0
  155. package/src/agent-anthropic-identity.unit.test.ts +77 -0
  156. package/src/agent-ask-config.ts +59 -0
  157. package/src/agent-ask-config.unit.test.ts +70 -0
  158. package/src/agent-ask.integration.test.ts +175 -0
  159. package/src/agent-ask.smoke.test.ts +457 -0
  160. package/src/agent-ask.ts +378 -0
  161. package/src/agent-chat-tokens.integration.test.ts +420 -0
  162. package/src/agent-chat-tokens.smoke.test.ts +551 -0
  163. package/src/agent-chat-tokens.ts +259 -0
  164. package/src/agent-cron-jobs.integration.test.ts +582 -0
  165. package/src/agent-cron-jobs.ts +615 -0
  166. package/src/agent-cron-jobs.unit.test.ts +420 -0
  167. package/src/agent-cron-run-stats.integration.test.ts +1551 -0
  168. package/src/agent-cron-run-stats.smoke.test.ts +953 -0
  169. package/src/agent-cron-run-stats.ts +752 -0
  170. package/src/agent-cron-runs.integration.test.ts +1491 -0
  171. package/src/agent-cron-runs.ts +489 -0
  172. package/src/agent-deletion-checklist.ts +128 -0
  173. package/src/agent-deletion-checklist.unit.test.ts +201 -0
  174. package/src/agent-deletion-per-agent.integration.test.ts +323 -0
  175. package/src/agent-deletion.integration.test.ts +323 -0
  176. package/src/agent-deletion.ts +329 -0
  177. package/src/agent-deletion.unit.test.ts +412 -0
  178. package/src/agent-envs.integration.test.ts +323 -0
  179. package/src/agent-envs.ts +244 -0
  180. package/src/agent-github-installations.integration.test.ts +115 -0
  181. package/src/agent-github-installations.ts +52 -0
  182. package/src/agent-manifest.ts +685 -0
  183. package/src/agent-manifest.unit.test.ts +870 -0
  184. package/src/agent-members.ts +69 -0
  185. package/src/agent-members.unit.test.ts +250 -0
  186. package/src/agent-patch-author-allowlist.integration.test.ts +218 -0
  187. package/src/agent-plugins.integration.test.ts +157 -0
  188. package/src/agent-plugins.ts +95 -0
  189. package/src/agent-plugins.unit.test.ts +43 -0
  190. package/src/agent-provisioner-per-agent.integration.test.ts +949 -0
  191. package/src/agent-provisioner.integration.test.ts +1245 -0
  192. package/src/agent-provisioner.ts +1650 -0
  193. package/src/agent-provisioner.unit.test.ts +1852 -0
  194. package/src/agent-tokens.integration.test.ts +150 -0
  195. package/src/agent-tokens.ts +112 -0
  196. package/src/agent-tools.integration.test.ts +129 -0
  197. package/src/agent-tools.ts +111 -0
  198. package/src/agents-api.integration.test.ts +705 -0
  199. package/src/agents-api.sentry.smoke.test.ts +478 -0
  200. package/src/agents-api.smoke.test.ts +5986 -0
  201. package/src/agents-api.ts +2826 -0
  202. package/src/agents.integration.test.ts +512 -0
  203. package/src/agents.ts +1097 -0
  204. package/src/agents.unit.test.ts +1736 -0
  205. package/src/anthropic-credential-guard.ts +44 -0
  206. package/src/anthropic-credential-guard.unit.test.ts +88 -0
  207. package/src/anthropic-federated-token-provider.integration.test.ts +248 -0
  208. package/src/anthropic-federated-token-provider.ts +249 -0
  209. package/src/anthropic-identity-client.fixtures.ts +237 -0
  210. package/src/anthropic-identity-client.integration.test.ts +342 -0
  211. package/src/anthropic-identity-client.ts +473 -0
  212. package/src/anthropic-identity-fixture-spec.integration.test.ts +169 -0
  213. package/src/anthropic-identity-name.integration.test.ts +83 -0
  214. package/src/anthropic-identity-name.ts +163 -0
  215. package/src/anthropic-identity-name.unit.test.ts +345 -0
  216. package/src/anthropic-openapi-contract.fixtures.ts +192 -0
  217. package/src/api-auth.ts +383 -0
  218. package/src/api-auth.unit.test.ts +837 -0
  219. package/src/api.smoke.test.ts +1225 -0
  220. package/src/api.ts +376 -0
  221. package/src/attachment-validation.ts +124 -0
  222. package/src/attachment-validation.unit.test.ts +218 -0
  223. package/src/caller-scope.ts +131 -0
  224. package/src/caller-scope.unit.test.ts +116 -0
  225. package/src/chat-credential-config.ts +22 -0
  226. package/src/chat-credentials-logging.unit.test.ts +92 -0
  227. package/src/chat-markers.ts +114 -0
  228. package/src/chat-markers.unit.test.ts +116 -0
  229. package/src/chat-service-provisioning-client.integration.test.ts +412 -0
  230. package/src/chat-service-provisioning-client.ts +221 -0
  231. package/src/chat.smoke.test.ts +1875 -0
  232. package/src/clock.ts +47 -0
  233. package/src/coding-task-store-provisioning-client.integration.test.ts +372 -0
  234. package/src/coding-task-store-provisioning-client.ts +156 -0
  235. package/src/crypto.ts +83 -0
  236. package/src/dev-auth-guard.ts +29 -0
  237. package/src/dev-auth-guard.unit.test.ts +51 -0
  238. package/src/errors.ts +77 -0
  239. package/src/errors.unit.test.ts +52 -0
  240. package/src/fixtures/anthropic-identity-recorded-fixtures.json +850 -0
  241. package/src/fixtures/anthropic-openapi/SDK_VERSION +1 -0
  242. package/src/fixtures/anthropic-openapi/mock-spec.json.gz +0 -0
  243. package/src/fixtures/chat-service-provisioning-cassette.json +156 -0
  244. package/src/fixtures/github-app-manifest-cassette.json +44 -0
  245. package/src/fixtures/google-auth-cassette.json +36 -0
  246. package/src/fixtures/http-chat-client-cassette.json +226 -0
  247. package/src/fixtures/k8s-cassette.json +470 -0
  248. package/src/fixtures/okta-auth-cassette.json +36 -0
  249. package/src/fixtures/slack-provision-cassette.json +12 -0
  250. package/src/fixtures/slack-provisioning-http-cassette.json +98 -0
  251. package/src/fixtures/task-store-provisioning-cassette.json +85 -0
  252. package/src/github-app-provisioning-client.integration.test.ts +149 -0
  253. package/src/github-app-provisioning-client.ts +161 -0
  254. package/src/github-app-provisioning-client.unit.test.ts +114 -0
  255. package/src/github-provisioning-service.ts +569 -0
  256. package/src/github-provisioning-service.unit.test.ts +123 -0
  257. package/src/google-auth-client.integration.test.ts +195 -0
  258. package/src/google-auth-client.ts +121 -0
  259. package/src/http-chat-client.integration.test.ts +554 -0
  260. package/src/http-chat-client.ts +533 -0
  261. package/src/http-chat-client.unit.test.ts +119 -0
  262. package/src/import-boundary.unit.test.ts +240 -0
  263. package/src/kubernetes-client.integration.test.ts +697 -0
  264. package/src/kubernetes-client.ts +1027 -0
  265. package/src/kubernetes-client.unit.test.ts +726 -0
  266. package/src/main.smoke.test.ts +91 -0
  267. package/src/main.ts +21 -0
  268. package/src/main.unit.test.ts +801 -0
  269. package/src/okta-auth-client.integration.test.ts +263 -0
  270. package/src/okta-auth-client.ts +152 -0
  271. package/src/openapi-schemas.ts +1310 -0
  272. package/src/openapi-schemas.unit.test.ts +348 -0
  273. package/src/per-agent-identity.fixtures.ts +305 -0
  274. package/src/platform-doc-route.ts +40 -0
  275. package/src/prisma-client.integration.test.ts +57 -0
  276. package/src/prisma-client.ts +187 -0
  277. package/src/prisma-client.unit.test.ts +178 -0
  278. package/src/prisma-tx.ts +23 -0
  279. package/src/push-content.ts +177 -0
  280. package/src/push-content.unit.test.ts +213 -0
  281. package/src/push-crypto.ts +135 -0
  282. package/src/push-crypto.unit.test.ts +66 -0
  283. package/src/push-sender.ts +169 -0
  284. package/src/push-sender.unit.test.ts +107 -0
  285. package/src/push-service.ts +332 -0
  286. package/src/push-service.unit.test.ts +679 -0
  287. package/src/push-toggle.ts +135 -0
  288. package/src/push-toggle.unit.test.ts +78 -0
  289. package/src/pwa-https-gating.smoke.test.ts +229 -0
  290. package/src/pwa-icons.unit.test.ts +41 -0
  291. package/src/pwa-routes.smoke.test.ts +276 -0
  292. package/src/pwa.ts +380 -0
  293. package/src/pwa.unit.test.ts +321 -0
  294. package/src/schema.unit.test.ts +122 -0
  295. package/src/self-serve-config.ts +52 -0
  296. package/src/self-serve-config.unit.test.ts +79 -0
  297. package/src/server.smoke.test.ts +273 -0
  298. package/src/server.ts +50 -0
  299. package/src/service-integration.ts +67 -0
  300. package/src/service-integration.unit.test.ts +129 -0
  301. package/src/slack-provisioning-client.integration.test.ts +308 -0
  302. package/src/slack-provisioning-client.ts +411 -0
  303. package/src/slack-provisioning-client.unit.test.ts +80 -0
  304. package/src/slack-provisioning-service.integration.test.ts +637 -0
  305. package/src/slack-provisioning-service.ts +451 -0
  306. package/src/slack-provisioning.integration.test.ts +395 -0
  307. package/src/specialty-manifest-loader.fixture.integration.test.ts +63 -0
  308. package/src/specialty-manifest-loader.ts +255 -0
  309. package/src/specialty-manifest-loader.unit.test.ts +301 -0
  310. package/src/specialty-registry.schema.unit.test.ts +35 -0
  311. package/src/specialty-registry.ts +236 -0
  312. package/src/specialty-registry.unit.test.ts +272 -0
  313. package/src/startup-policy-reconcile.ts +77 -0
  314. package/src/startup-policy-reconcile.unit.test.ts +251 -0
  315. package/src/theme-tokens.json +12 -0
  316. package/src/token-crypto.ts +60 -0
  317. package/src/token-crypto.unit.test.ts +182 -0
  318. package/src/trial-expiry-sweeper.integration.test.ts +318 -0
  319. package/src/trial-expiry-sweeper.ts +132 -0
  320. package/src/trial-expiry-sweeper.unit.test.ts +391 -0
  321. package/src/trial-expiry-warning-sweeper.integration.test.ts +468 -0
  322. package/src/trial-expiry-warning-sweeper.ts +447 -0
  323. package/src/trial-expiry-warning-sweeper.unit.test.ts +148 -0
  324. package/src/voice-contract.unit.test.ts +102 -0
  325. package/tsconfig.json +9 -0
@@ -0,0 +1,4554 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Agent` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model Agent
17
+ *
18
+ */
19
+ export type AgentModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentPayload>
20
+
21
+ export type AggregateAgent = {
22
+ _count: AgentCountAggregateOutputType | null
23
+ _avg: AgentAvgAggregateOutputType | null
24
+ _sum: AgentSumAggregateOutputType | null
25
+ _min: AgentMinAggregateOutputType | null
26
+ _max: AgentMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AgentAvgAggregateOutputType = {
30
+ minConfidence: number | null
31
+ maxFindings: number | null
32
+ cleanupAfterDays: number | null
33
+ }
34
+
35
+ export type AgentSumAggregateOutputType = {
36
+ minConfidence: number | null
37
+ maxFindings: number | null
38
+ cleanupAfterDays: number | null
39
+ }
40
+
41
+ export type AgentMinAggregateOutputType = {
42
+ id: string | null
43
+ name: string | null
44
+ slackId: string | null
45
+ slackBotToken: string | null
46
+ anthropicApiKey: string | null
47
+ selfHosted: boolean | null
48
+ restrictSlackToMembers: boolean | null
49
+ typeName: string | null
50
+ accountId: string | null
51
+ trialExpiresAt: Date | null
52
+ trialExpiryWarnedAt: Date | null
53
+ ownerEmail: string | null
54
+ anthropicIdentityName: string | null
55
+ anthropicServiceAccountId: string | null
56
+ anthropicFederationRuleId: string | null
57
+ k8sServiceAccountName: string | null
58
+ autoPostReviews: boolean | null
59
+ allowSelfReview: boolean | null
60
+ minConfidence: number | null
61
+ maxFindings: number | null
62
+ cleanupMergedWorktrees: boolean | null
63
+ cleanupAfterDays: number | null
64
+ createdAt: Date | null
65
+ updatedAt: Date | null
66
+ }
67
+
68
+ export type AgentMaxAggregateOutputType = {
69
+ id: string | null
70
+ name: string | null
71
+ slackId: string | null
72
+ slackBotToken: string | null
73
+ anthropicApiKey: string | null
74
+ selfHosted: boolean | null
75
+ restrictSlackToMembers: boolean | null
76
+ typeName: string | null
77
+ accountId: string | null
78
+ trialExpiresAt: Date | null
79
+ trialExpiryWarnedAt: Date | null
80
+ ownerEmail: string | null
81
+ anthropicIdentityName: string | null
82
+ anthropicServiceAccountId: string | null
83
+ anthropicFederationRuleId: string | null
84
+ k8sServiceAccountName: string | null
85
+ autoPostReviews: boolean | null
86
+ allowSelfReview: boolean | null
87
+ minConfidence: number | null
88
+ maxFindings: number | null
89
+ cleanupMergedWorktrees: boolean | null
90
+ cleanupAfterDays: number | null
91
+ createdAt: Date | null
92
+ updatedAt: Date | null
93
+ }
94
+
95
+ export type AgentCountAggregateOutputType = {
96
+ id: number
97
+ name: number
98
+ slackId: number
99
+ slackBotToken: number
100
+ anthropicApiKey: number
101
+ selfHosted: number
102
+ repos: number
103
+ reviewAuthorAllowlist: number
104
+ patchAuthorAllowlist: number
105
+ restrictSlackToMembers: number
106
+ typeName: number
107
+ accountId: number
108
+ trialExpiresAt: number
109
+ trialExpiryWarnedAt: number
110
+ ownerEmail: number
111
+ anthropicIdentityName: number
112
+ anthropicServiceAccountId: number
113
+ anthropicFederationRuleId: number
114
+ k8sServiceAccountName: number
115
+ autoPostReviews: number
116
+ allowSelfReview: number
117
+ minConfidence: number
118
+ maxFindings: number
119
+ cleanupMergedWorktrees: number
120
+ cleanupAfterDays: number
121
+ createdAt: number
122
+ updatedAt: number
123
+ _all: number
124
+ }
125
+
126
+
127
+ export type AgentAvgAggregateInputType = {
128
+ minConfidence?: true
129
+ maxFindings?: true
130
+ cleanupAfterDays?: true
131
+ }
132
+
133
+ export type AgentSumAggregateInputType = {
134
+ minConfidence?: true
135
+ maxFindings?: true
136
+ cleanupAfterDays?: true
137
+ }
138
+
139
+ export type AgentMinAggregateInputType = {
140
+ id?: true
141
+ name?: true
142
+ slackId?: true
143
+ slackBotToken?: true
144
+ anthropicApiKey?: true
145
+ selfHosted?: true
146
+ restrictSlackToMembers?: true
147
+ typeName?: true
148
+ accountId?: true
149
+ trialExpiresAt?: true
150
+ trialExpiryWarnedAt?: true
151
+ ownerEmail?: true
152
+ anthropicIdentityName?: true
153
+ anthropicServiceAccountId?: true
154
+ anthropicFederationRuleId?: true
155
+ k8sServiceAccountName?: true
156
+ autoPostReviews?: true
157
+ allowSelfReview?: true
158
+ minConfidence?: true
159
+ maxFindings?: true
160
+ cleanupMergedWorktrees?: true
161
+ cleanupAfterDays?: true
162
+ createdAt?: true
163
+ updatedAt?: true
164
+ }
165
+
166
+ export type AgentMaxAggregateInputType = {
167
+ id?: true
168
+ name?: true
169
+ slackId?: true
170
+ slackBotToken?: true
171
+ anthropicApiKey?: true
172
+ selfHosted?: true
173
+ restrictSlackToMembers?: true
174
+ typeName?: true
175
+ accountId?: true
176
+ trialExpiresAt?: true
177
+ trialExpiryWarnedAt?: true
178
+ ownerEmail?: true
179
+ anthropicIdentityName?: true
180
+ anthropicServiceAccountId?: true
181
+ anthropicFederationRuleId?: true
182
+ k8sServiceAccountName?: true
183
+ autoPostReviews?: true
184
+ allowSelfReview?: true
185
+ minConfidence?: true
186
+ maxFindings?: true
187
+ cleanupMergedWorktrees?: true
188
+ cleanupAfterDays?: true
189
+ createdAt?: true
190
+ updatedAt?: true
191
+ }
192
+
193
+ export type AgentCountAggregateInputType = {
194
+ id?: true
195
+ name?: true
196
+ slackId?: true
197
+ slackBotToken?: true
198
+ anthropicApiKey?: true
199
+ selfHosted?: true
200
+ repos?: true
201
+ reviewAuthorAllowlist?: true
202
+ patchAuthorAllowlist?: true
203
+ restrictSlackToMembers?: true
204
+ typeName?: true
205
+ accountId?: true
206
+ trialExpiresAt?: true
207
+ trialExpiryWarnedAt?: true
208
+ ownerEmail?: true
209
+ anthropicIdentityName?: true
210
+ anthropicServiceAccountId?: true
211
+ anthropicFederationRuleId?: true
212
+ k8sServiceAccountName?: true
213
+ autoPostReviews?: true
214
+ allowSelfReview?: true
215
+ minConfidence?: true
216
+ maxFindings?: true
217
+ cleanupMergedWorktrees?: true
218
+ cleanupAfterDays?: true
219
+ createdAt?: true
220
+ updatedAt?: true
221
+ _all?: true
222
+ }
223
+
224
+ export type AgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
225
+ /**
226
+ * Filter which Agent to aggregate.
227
+ */
228
+ where?: Prisma.AgentWhereInput
229
+ /**
230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
231
+ *
232
+ * Determine the order of Agents to fetch.
233
+ */
234
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
235
+ /**
236
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
237
+ *
238
+ * Sets the start position
239
+ */
240
+ cursor?: Prisma.AgentWhereUniqueInput
241
+ /**
242
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
243
+ *
244
+ * Take `±n` Agents from the position of the cursor.
245
+ */
246
+ take?: number
247
+ /**
248
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
249
+ *
250
+ * Skip the first `n` Agents.
251
+ */
252
+ skip?: number
253
+ /**
254
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
255
+ *
256
+ * Count returned Agents
257
+ **/
258
+ _count?: true | AgentCountAggregateInputType
259
+ /**
260
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
261
+ *
262
+ * Select which fields to average
263
+ **/
264
+ _avg?: AgentAvgAggregateInputType
265
+ /**
266
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
267
+ *
268
+ * Select which fields to sum
269
+ **/
270
+ _sum?: AgentSumAggregateInputType
271
+ /**
272
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
273
+ *
274
+ * Select which fields to find the minimum value
275
+ **/
276
+ _min?: AgentMinAggregateInputType
277
+ /**
278
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
279
+ *
280
+ * Select which fields to find the maximum value
281
+ **/
282
+ _max?: AgentMaxAggregateInputType
283
+ }
284
+
285
+ export type GetAgentAggregateType<T extends AgentAggregateArgs> = {
286
+ [P in keyof T & keyof AggregateAgent]: P extends '_count' | 'count'
287
+ ? T[P] extends true
288
+ ? number
289
+ : Prisma.GetScalarType<T[P], AggregateAgent[P]>
290
+ : Prisma.GetScalarType<T[P], AggregateAgent[P]>
291
+ }
292
+
293
+
294
+
295
+
296
+ export type AgentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
297
+ where?: Prisma.AgentWhereInput
298
+ orderBy?: Prisma.AgentOrderByWithAggregationInput | Prisma.AgentOrderByWithAggregationInput[]
299
+ by: Prisma.AgentScalarFieldEnum[] | Prisma.AgentScalarFieldEnum
300
+ having?: Prisma.AgentScalarWhereWithAggregatesInput
301
+ take?: number
302
+ skip?: number
303
+ _count?: AgentCountAggregateInputType | true
304
+ _avg?: AgentAvgAggregateInputType
305
+ _sum?: AgentSumAggregateInputType
306
+ _min?: AgentMinAggregateInputType
307
+ _max?: AgentMaxAggregateInputType
308
+ }
309
+
310
+ export type AgentGroupByOutputType = {
311
+ id: string
312
+ name: string
313
+ slackId: string | null
314
+ slackBotToken: string | null
315
+ anthropicApiKey: string | null
316
+ selfHosted: boolean
317
+ repos: string[]
318
+ reviewAuthorAllowlist: string[]
319
+ patchAuthorAllowlist: string[]
320
+ restrictSlackToMembers: boolean
321
+ typeName: string
322
+ accountId: string | null
323
+ trialExpiresAt: Date | null
324
+ trialExpiryWarnedAt: Date | null
325
+ ownerEmail: string | null
326
+ anthropicIdentityName: string | null
327
+ anthropicServiceAccountId: string | null
328
+ anthropicFederationRuleId: string | null
329
+ k8sServiceAccountName: string | null
330
+ autoPostReviews: boolean
331
+ allowSelfReview: boolean
332
+ minConfidence: number
333
+ maxFindings: number
334
+ cleanupMergedWorktrees: boolean
335
+ cleanupAfterDays: number
336
+ createdAt: Date
337
+ updatedAt: Date
338
+ _count: AgentCountAggregateOutputType | null
339
+ _avg: AgentAvgAggregateOutputType | null
340
+ _sum: AgentSumAggregateOutputType | null
341
+ _min: AgentMinAggregateOutputType | null
342
+ _max: AgentMaxAggregateOutputType | null
343
+ }
344
+
345
+ export type GetAgentGroupByPayload<T extends AgentGroupByArgs> = Prisma.PrismaPromise<
346
+ Array<
347
+ Prisma.PickEnumerable<AgentGroupByOutputType, T['by']> &
348
+ {
349
+ [P in ((keyof T) & (keyof AgentGroupByOutputType))]: P extends '_count'
350
+ ? T[P] extends boolean
351
+ ? number
352
+ : Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]>
353
+ : Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]>
354
+ }
355
+ >
356
+ >
357
+
358
+
359
+
360
+ export type AgentWhereInput = {
361
+ AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
362
+ OR?: Prisma.AgentWhereInput[]
363
+ NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
364
+ id?: Prisma.StringFilter<"Agent"> | string
365
+ name?: Prisma.StringFilter<"Agent"> | string
366
+ slackId?: Prisma.StringNullableFilter<"Agent"> | string | null
367
+ slackBotToken?: Prisma.StringNullableFilter<"Agent"> | string | null
368
+ anthropicApiKey?: Prisma.StringNullableFilter<"Agent"> | string | null
369
+ selfHosted?: Prisma.BoolFilter<"Agent"> | boolean
370
+ repos?: Prisma.StringNullableListFilter<"Agent">
371
+ reviewAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
372
+ patchAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
373
+ restrictSlackToMembers?: Prisma.BoolFilter<"Agent"> | boolean
374
+ typeName?: Prisma.StringFilter<"Agent"> | string
375
+ accountId?: Prisma.StringNullableFilter<"Agent"> | string | null
376
+ trialExpiresAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null
377
+ trialExpiryWarnedAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null
378
+ ownerEmail?: Prisma.StringNullableFilter<"Agent"> | string | null
379
+ anthropicIdentityName?: Prisma.StringNullableFilter<"Agent"> | string | null
380
+ anthropicServiceAccountId?: Prisma.StringNullableFilter<"Agent"> | string | null
381
+ anthropicFederationRuleId?: Prisma.StringNullableFilter<"Agent"> | string | null
382
+ k8sServiceAccountName?: Prisma.StringNullableFilter<"Agent"> | string | null
383
+ autoPostReviews?: Prisma.BoolFilter<"Agent"> | boolean
384
+ allowSelfReview?: Prisma.BoolFilter<"Agent"> | boolean
385
+ minConfidence?: Prisma.IntFilter<"Agent"> | number
386
+ maxFindings?: Prisma.IntFilter<"Agent"> | number
387
+ cleanupMergedWorktrees?: Prisma.BoolFilter<"Agent"> | boolean
388
+ cleanupAfterDays?: Prisma.IntFilter<"Agent"> | number
389
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
390
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
391
+ account?: Prisma.XOR<Prisma.AccountNullableScalarRelationFilter, Prisma.AccountWhereInput> | null
392
+ envVars?: Prisma.AgentEnvListRelationFilter
393
+ cronJobs?: Prisma.AgentCronJobListRelationFilter
394
+ tools?: Prisma.AgentToolListRelationFilter
395
+ tokens?: Prisma.AgentTokenListRelationFilter
396
+ plugins?: Prisma.AgentPluginListRelationFilter
397
+ members?: Prisma.AgentMemberListRelationFilter
398
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelListRelationFilter
399
+ workQueueSnapshot?: Prisma.XOR<Prisma.AgentWorkQueueSnapshotNullableScalarRelationFilter, Prisma.AgentWorkQueueSnapshotWhereInput> | null
400
+ githubInstallationsSnapshot?: Prisma.XOR<Prisma.AgentGitHubInstallationsSnapshotNullableScalarRelationFilter, Prisma.AgentGitHubInstallationsSnapshotWhereInput> | null
401
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyListRelationFilter
402
+ }
403
+
404
+ export type AgentOrderByWithRelationInput = {
405
+ id?: Prisma.SortOrder
406
+ name?: Prisma.SortOrder
407
+ slackId?: Prisma.SortOrderInput | Prisma.SortOrder
408
+ slackBotToken?: Prisma.SortOrderInput | Prisma.SortOrder
409
+ anthropicApiKey?: Prisma.SortOrderInput | Prisma.SortOrder
410
+ selfHosted?: Prisma.SortOrder
411
+ repos?: Prisma.SortOrder
412
+ reviewAuthorAllowlist?: Prisma.SortOrder
413
+ patchAuthorAllowlist?: Prisma.SortOrder
414
+ restrictSlackToMembers?: Prisma.SortOrder
415
+ typeName?: Prisma.SortOrder
416
+ accountId?: Prisma.SortOrderInput | Prisma.SortOrder
417
+ trialExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
418
+ trialExpiryWarnedAt?: Prisma.SortOrderInput | Prisma.SortOrder
419
+ ownerEmail?: Prisma.SortOrderInput | Prisma.SortOrder
420
+ anthropicIdentityName?: Prisma.SortOrderInput | Prisma.SortOrder
421
+ anthropicServiceAccountId?: Prisma.SortOrderInput | Prisma.SortOrder
422
+ anthropicFederationRuleId?: Prisma.SortOrderInput | Prisma.SortOrder
423
+ k8sServiceAccountName?: Prisma.SortOrderInput | Prisma.SortOrder
424
+ autoPostReviews?: Prisma.SortOrder
425
+ allowSelfReview?: Prisma.SortOrder
426
+ minConfidence?: Prisma.SortOrder
427
+ maxFindings?: Prisma.SortOrder
428
+ cleanupMergedWorktrees?: Prisma.SortOrder
429
+ cleanupAfterDays?: Prisma.SortOrder
430
+ createdAt?: Prisma.SortOrder
431
+ updatedAt?: Prisma.SortOrder
432
+ account?: Prisma.AccountOrderByWithRelationInput
433
+ envVars?: Prisma.AgentEnvOrderByRelationAggregateInput
434
+ cronJobs?: Prisma.AgentCronJobOrderByRelationAggregateInput
435
+ tools?: Prisma.AgentToolOrderByRelationAggregateInput
436
+ tokens?: Prisma.AgentTokenOrderByRelationAggregateInput
437
+ plugins?: Prisma.AgentPluginOrderByRelationAggregateInput
438
+ members?: Prisma.AgentMemberOrderByRelationAggregateInput
439
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelOrderByRelationAggregateInput
440
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotOrderByWithRelationInput
441
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotOrderByWithRelationInput
442
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyOrderByRelationAggregateInput
443
+ }
444
+
445
+ export type AgentWhereUniqueInput = Prisma.AtLeast<{
446
+ id?: string
447
+ slackId?: string
448
+ anthropicIdentityName?: string
449
+ AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
450
+ OR?: Prisma.AgentWhereInput[]
451
+ NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
452
+ name?: Prisma.StringFilter<"Agent"> | string
453
+ slackBotToken?: Prisma.StringNullableFilter<"Agent"> | string | null
454
+ anthropicApiKey?: Prisma.StringNullableFilter<"Agent"> | string | null
455
+ selfHosted?: Prisma.BoolFilter<"Agent"> | boolean
456
+ repos?: Prisma.StringNullableListFilter<"Agent">
457
+ reviewAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
458
+ patchAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
459
+ restrictSlackToMembers?: Prisma.BoolFilter<"Agent"> | boolean
460
+ typeName?: Prisma.StringFilter<"Agent"> | string
461
+ accountId?: Prisma.StringNullableFilter<"Agent"> | string | null
462
+ trialExpiresAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null
463
+ trialExpiryWarnedAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null
464
+ ownerEmail?: Prisma.StringNullableFilter<"Agent"> | string | null
465
+ anthropicServiceAccountId?: Prisma.StringNullableFilter<"Agent"> | string | null
466
+ anthropicFederationRuleId?: Prisma.StringNullableFilter<"Agent"> | string | null
467
+ k8sServiceAccountName?: Prisma.StringNullableFilter<"Agent"> | string | null
468
+ autoPostReviews?: Prisma.BoolFilter<"Agent"> | boolean
469
+ allowSelfReview?: Prisma.BoolFilter<"Agent"> | boolean
470
+ minConfidence?: Prisma.IntFilter<"Agent"> | number
471
+ maxFindings?: Prisma.IntFilter<"Agent"> | number
472
+ cleanupMergedWorktrees?: Prisma.BoolFilter<"Agent"> | boolean
473
+ cleanupAfterDays?: Prisma.IntFilter<"Agent"> | number
474
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
475
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
476
+ account?: Prisma.XOR<Prisma.AccountNullableScalarRelationFilter, Prisma.AccountWhereInput> | null
477
+ envVars?: Prisma.AgentEnvListRelationFilter
478
+ cronJobs?: Prisma.AgentCronJobListRelationFilter
479
+ tools?: Prisma.AgentToolListRelationFilter
480
+ tokens?: Prisma.AgentTokenListRelationFilter
481
+ plugins?: Prisma.AgentPluginListRelationFilter
482
+ members?: Prisma.AgentMemberListRelationFilter
483
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelListRelationFilter
484
+ workQueueSnapshot?: Prisma.XOR<Prisma.AgentWorkQueueSnapshotNullableScalarRelationFilter, Prisma.AgentWorkQueueSnapshotWhereInput> | null
485
+ githubInstallationsSnapshot?: Prisma.XOR<Prisma.AgentGitHubInstallationsSnapshotNullableScalarRelationFilter, Prisma.AgentGitHubInstallationsSnapshotWhereInput> | null
486
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyListRelationFilter
487
+ }, "id" | "slackId" | "anthropicIdentityName">
488
+
489
+ export type AgentOrderByWithAggregationInput = {
490
+ id?: Prisma.SortOrder
491
+ name?: Prisma.SortOrder
492
+ slackId?: Prisma.SortOrderInput | Prisma.SortOrder
493
+ slackBotToken?: Prisma.SortOrderInput | Prisma.SortOrder
494
+ anthropicApiKey?: Prisma.SortOrderInput | Prisma.SortOrder
495
+ selfHosted?: Prisma.SortOrder
496
+ repos?: Prisma.SortOrder
497
+ reviewAuthorAllowlist?: Prisma.SortOrder
498
+ patchAuthorAllowlist?: Prisma.SortOrder
499
+ restrictSlackToMembers?: Prisma.SortOrder
500
+ typeName?: Prisma.SortOrder
501
+ accountId?: Prisma.SortOrderInput | Prisma.SortOrder
502
+ trialExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
503
+ trialExpiryWarnedAt?: Prisma.SortOrderInput | Prisma.SortOrder
504
+ ownerEmail?: Prisma.SortOrderInput | Prisma.SortOrder
505
+ anthropicIdentityName?: Prisma.SortOrderInput | Prisma.SortOrder
506
+ anthropicServiceAccountId?: Prisma.SortOrderInput | Prisma.SortOrder
507
+ anthropicFederationRuleId?: Prisma.SortOrderInput | Prisma.SortOrder
508
+ k8sServiceAccountName?: Prisma.SortOrderInput | Prisma.SortOrder
509
+ autoPostReviews?: Prisma.SortOrder
510
+ allowSelfReview?: Prisma.SortOrder
511
+ minConfidence?: Prisma.SortOrder
512
+ maxFindings?: Prisma.SortOrder
513
+ cleanupMergedWorktrees?: Prisma.SortOrder
514
+ cleanupAfterDays?: Prisma.SortOrder
515
+ createdAt?: Prisma.SortOrder
516
+ updatedAt?: Prisma.SortOrder
517
+ _count?: Prisma.AgentCountOrderByAggregateInput
518
+ _avg?: Prisma.AgentAvgOrderByAggregateInput
519
+ _max?: Prisma.AgentMaxOrderByAggregateInput
520
+ _min?: Prisma.AgentMinOrderByAggregateInput
521
+ _sum?: Prisma.AgentSumOrderByAggregateInput
522
+ }
523
+
524
+ export type AgentScalarWhereWithAggregatesInput = {
525
+ AND?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[]
526
+ OR?: Prisma.AgentScalarWhereWithAggregatesInput[]
527
+ NOT?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[]
528
+ id?: Prisma.StringWithAggregatesFilter<"Agent"> | string
529
+ name?: Prisma.StringWithAggregatesFilter<"Agent"> | string
530
+ slackId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
531
+ slackBotToken?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
532
+ anthropicApiKey?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
533
+ selfHosted?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean
534
+ repos?: Prisma.StringNullableListFilter<"Agent">
535
+ reviewAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
536
+ patchAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
537
+ restrictSlackToMembers?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean
538
+ typeName?: Prisma.StringWithAggregatesFilter<"Agent"> | string
539
+ accountId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
540
+ trialExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Agent"> | Date | string | null
541
+ trialExpiryWarnedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Agent"> | Date | string | null
542
+ ownerEmail?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
543
+ anthropicIdentityName?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
544
+ anthropicServiceAccountId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
545
+ anthropicFederationRuleId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
546
+ k8sServiceAccountName?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
547
+ autoPostReviews?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean
548
+ allowSelfReview?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean
549
+ minConfidence?: Prisma.IntWithAggregatesFilter<"Agent"> | number
550
+ maxFindings?: Prisma.IntWithAggregatesFilter<"Agent"> | number
551
+ cleanupMergedWorktrees?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean
552
+ cleanupAfterDays?: Prisma.IntWithAggregatesFilter<"Agent"> | number
553
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string
554
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string
555
+ }
556
+
557
+ export type AgentCreateInput = {
558
+ id?: string
559
+ name: string
560
+ slackId?: string | null
561
+ slackBotToken?: string | null
562
+ anthropicApiKey?: string | null
563
+ selfHosted?: boolean
564
+ repos?: Prisma.AgentCreatereposInput | string[]
565
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
566
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
567
+ restrictSlackToMembers?: boolean
568
+ typeName?: string
569
+ trialExpiresAt?: Date | string | null
570
+ trialExpiryWarnedAt?: Date | string | null
571
+ ownerEmail?: string | null
572
+ anthropicIdentityName?: string | null
573
+ anthropicServiceAccountId?: string | null
574
+ anthropicFederationRuleId?: string | null
575
+ k8sServiceAccountName?: string | null
576
+ autoPostReviews?: boolean
577
+ allowSelfReview?: boolean
578
+ minConfidence?: number
579
+ maxFindings?: number
580
+ cleanupMergedWorktrees?: boolean
581
+ cleanupAfterDays?: number
582
+ createdAt?: Date | string
583
+ updatedAt?: Date | string
584
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
585
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
586
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
587
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
588
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
589
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
590
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
591
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
592
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
593
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
594
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
595
+ }
596
+
597
+ export type AgentUncheckedCreateInput = {
598
+ id?: string
599
+ name: string
600
+ slackId?: string | null
601
+ slackBotToken?: string | null
602
+ anthropicApiKey?: string | null
603
+ selfHosted?: boolean
604
+ repos?: Prisma.AgentCreatereposInput | string[]
605
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
606
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
607
+ restrictSlackToMembers?: boolean
608
+ typeName?: string
609
+ accountId?: string | null
610
+ trialExpiresAt?: Date | string | null
611
+ trialExpiryWarnedAt?: Date | string | null
612
+ ownerEmail?: string | null
613
+ anthropicIdentityName?: string | null
614
+ anthropicServiceAccountId?: string | null
615
+ anthropicFederationRuleId?: string | null
616
+ k8sServiceAccountName?: string | null
617
+ autoPostReviews?: boolean
618
+ allowSelfReview?: boolean
619
+ minConfidence?: number
620
+ maxFindings?: number
621
+ cleanupMergedWorktrees?: boolean
622
+ cleanupAfterDays?: number
623
+ createdAt?: Date | string
624
+ updatedAt?: Date | string
625
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
626
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
627
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
628
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
629
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
630
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
631
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
632
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
633
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
634
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
635
+ }
636
+
637
+ export type AgentUpdateInput = {
638
+ id?: Prisma.StringFieldUpdateOperationsInput | string
639
+ name?: Prisma.StringFieldUpdateOperationsInput | string
640
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
641
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
642
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
643
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
644
+ repos?: Prisma.AgentUpdatereposInput | string[]
645
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
646
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
647
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
648
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
649
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
650
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
651
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
652
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
653
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
654
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
655
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
656
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
657
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
658
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
659
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
660
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
661
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
662
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
663
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
664
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
665
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
666
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
667
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
668
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
669
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
670
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
671
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
672
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
673
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
674
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
675
+ }
676
+
677
+ export type AgentUncheckedUpdateInput = {
678
+ id?: Prisma.StringFieldUpdateOperationsInput | string
679
+ name?: Prisma.StringFieldUpdateOperationsInput | string
680
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
681
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
682
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
683
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
684
+ repos?: Prisma.AgentUpdatereposInput | string[]
685
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
686
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
687
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
688
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
689
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
690
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
691
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
692
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
693
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
694
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
695
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
696
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
697
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
698
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
699
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
700
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
701
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
702
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
703
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
704
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
705
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
706
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
707
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
708
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
709
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
710
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
711
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
712
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
713
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
714
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
715
+ }
716
+
717
+ export type AgentCreateManyInput = {
718
+ id?: string
719
+ name: string
720
+ slackId?: string | null
721
+ slackBotToken?: string | null
722
+ anthropicApiKey?: string | null
723
+ selfHosted?: boolean
724
+ repos?: Prisma.AgentCreatereposInput | string[]
725
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
726
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
727
+ restrictSlackToMembers?: boolean
728
+ typeName?: string
729
+ accountId?: string | null
730
+ trialExpiresAt?: Date | string | null
731
+ trialExpiryWarnedAt?: Date | string | null
732
+ ownerEmail?: string | null
733
+ anthropicIdentityName?: string | null
734
+ anthropicServiceAccountId?: string | null
735
+ anthropicFederationRuleId?: string | null
736
+ k8sServiceAccountName?: string | null
737
+ autoPostReviews?: boolean
738
+ allowSelfReview?: boolean
739
+ minConfidence?: number
740
+ maxFindings?: number
741
+ cleanupMergedWorktrees?: boolean
742
+ cleanupAfterDays?: number
743
+ createdAt?: Date | string
744
+ updatedAt?: Date | string
745
+ }
746
+
747
+ export type AgentUpdateManyMutationInput = {
748
+ id?: Prisma.StringFieldUpdateOperationsInput | string
749
+ name?: Prisma.StringFieldUpdateOperationsInput | string
750
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
751
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
752
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
753
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
754
+ repos?: Prisma.AgentUpdatereposInput | string[]
755
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
756
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
757
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
758
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
759
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
760
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
761
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
762
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
763
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
764
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
765
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
766
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
767
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
768
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
769
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
770
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
771
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
772
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
773
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
774
+ }
775
+
776
+ export type AgentUncheckedUpdateManyInput = {
777
+ id?: Prisma.StringFieldUpdateOperationsInput | string
778
+ name?: Prisma.StringFieldUpdateOperationsInput | string
779
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
780
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
781
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
782
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
783
+ repos?: Prisma.AgentUpdatereposInput | string[]
784
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
785
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
786
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
787
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
788
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
789
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
790
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
791
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
792
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
793
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
794
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
795
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
796
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
797
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
798
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
799
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
800
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
801
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
802
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
803
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
804
+ }
805
+
806
+ export type AgentScalarRelationFilter = {
807
+ is?: Prisma.AgentWhereInput
808
+ isNot?: Prisma.AgentWhereInput
809
+ }
810
+
811
+ export type StringNullableListFilter<$PrismaModel = never> = {
812
+ equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
813
+ has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
814
+ hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
815
+ hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
816
+ isEmpty?: boolean
817
+ }
818
+
819
+ export type AgentCountOrderByAggregateInput = {
820
+ id?: Prisma.SortOrder
821
+ name?: Prisma.SortOrder
822
+ slackId?: Prisma.SortOrder
823
+ slackBotToken?: Prisma.SortOrder
824
+ anthropicApiKey?: Prisma.SortOrder
825
+ selfHosted?: Prisma.SortOrder
826
+ repos?: Prisma.SortOrder
827
+ reviewAuthorAllowlist?: Prisma.SortOrder
828
+ patchAuthorAllowlist?: Prisma.SortOrder
829
+ restrictSlackToMembers?: Prisma.SortOrder
830
+ typeName?: Prisma.SortOrder
831
+ accountId?: Prisma.SortOrder
832
+ trialExpiresAt?: Prisma.SortOrder
833
+ trialExpiryWarnedAt?: Prisma.SortOrder
834
+ ownerEmail?: Prisma.SortOrder
835
+ anthropicIdentityName?: Prisma.SortOrder
836
+ anthropicServiceAccountId?: Prisma.SortOrder
837
+ anthropicFederationRuleId?: Prisma.SortOrder
838
+ k8sServiceAccountName?: Prisma.SortOrder
839
+ autoPostReviews?: Prisma.SortOrder
840
+ allowSelfReview?: Prisma.SortOrder
841
+ minConfidence?: Prisma.SortOrder
842
+ maxFindings?: Prisma.SortOrder
843
+ cleanupMergedWorktrees?: Prisma.SortOrder
844
+ cleanupAfterDays?: Prisma.SortOrder
845
+ createdAt?: Prisma.SortOrder
846
+ updatedAt?: Prisma.SortOrder
847
+ }
848
+
849
+ export type AgentAvgOrderByAggregateInput = {
850
+ minConfidence?: Prisma.SortOrder
851
+ maxFindings?: Prisma.SortOrder
852
+ cleanupAfterDays?: Prisma.SortOrder
853
+ }
854
+
855
+ export type AgentMaxOrderByAggregateInput = {
856
+ id?: Prisma.SortOrder
857
+ name?: Prisma.SortOrder
858
+ slackId?: Prisma.SortOrder
859
+ slackBotToken?: Prisma.SortOrder
860
+ anthropicApiKey?: Prisma.SortOrder
861
+ selfHosted?: Prisma.SortOrder
862
+ restrictSlackToMembers?: Prisma.SortOrder
863
+ typeName?: Prisma.SortOrder
864
+ accountId?: Prisma.SortOrder
865
+ trialExpiresAt?: Prisma.SortOrder
866
+ trialExpiryWarnedAt?: Prisma.SortOrder
867
+ ownerEmail?: Prisma.SortOrder
868
+ anthropicIdentityName?: Prisma.SortOrder
869
+ anthropicServiceAccountId?: Prisma.SortOrder
870
+ anthropicFederationRuleId?: Prisma.SortOrder
871
+ k8sServiceAccountName?: Prisma.SortOrder
872
+ autoPostReviews?: Prisma.SortOrder
873
+ allowSelfReview?: Prisma.SortOrder
874
+ minConfidence?: Prisma.SortOrder
875
+ maxFindings?: Prisma.SortOrder
876
+ cleanupMergedWorktrees?: Prisma.SortOrder
877
+ cleanupAfterDays?: Prisma.SortOrder
878
+ createdAt?: Prisma.SortOrder
879
+ updatedAt?: Prisma.SortOrder
880
+ }
881
+
882
+ export type AgentMinOrderByAggregateInput = {
883
+ id?: Prisma.SortOrder
884
+ name?: Prisma.SortOrder
885
+ slackId?: Prisma.SortOrder
886
+ slackBotToken?: Prisma.SortOrder
887
+ anthropicApiKey?: Prisma.SortOrder
888
+ selfHosted?: Prisma.SortOrder
889
+ restrictSlackToMembers?: Prisma.SortOrder
890
+ typeName?: Prisma.SortOrder
891
+ accountId?: Prisma.SortOrder
892
+ trialExpiresAt?: Prisma.SortOrder
893
+ trialExpiryWarnedAt?: Prisma.SortOrder
894
+ ownerEmail?: Prisma.SortOrder
895
+ anthropicIdentityName?: Prisma.SortOrder
896
+ anthropicServiceAccountId?: Prisma.SortOrder
897
+ anthropicFederationRuleId?: Prisma.SortOrder
898
+ k8sServiceAccountName?: Prisma.SortOrder
899
+ autoPostReviews?: Prisma.SortOrder
900
+ allowSelfReview?: Prisma.SortOrder
901
+ minConfidence?: Prisma.SortOrder
902
+ maxFindings?: Prisma.SortOrder
903
+ cleanupMergedWorktrees?: Prisma.SortOrder
904
+ cleanupAfterDays?: Prisma.SortOrder
905
+ createdAt?: Prisma.SortOrder
906
+ updatedAt?: Prisma.SortOrder
907
+ }
908
+
909
+ export type AgentSumOrderByAggregateInput = {
910
+ minConfidence?: Prisma.SortOrder
911
+ maxFindings?: Prisma.SortOrder
912
+ cleanupAfterDays?: Prisma.SortOrder
913
+ }
914
+
915
+ export type AgentListRelationFilter = {
916
+ every?: Prisma.AgentWhereInput
917
+ some?: Prisma.AgentWhereInput
918
+ none?: Prisma.AgentWhereInput
919
+ }
920
+
921
+ export type AgentOrderByRelationAggregateInput = {
922
+ _count?: Prisma.SortOrder
923
+ }
924
+
925
+ export type AgentCreateNestedOneWithoutWorkQueueSnapshotInput = {
926
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutWorkQueueSnapshotInput, Prisma.AgentUncheckedCreateWithoutWorkQueueSnapshotInput>
927
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutWorkQueueSnapshotInput
928
+ connect?: Prisma.AgentWhereUniqueInput
929
+ }
930
+
931
+ export type AgentUpdateOneRequiredWithoutWorkQueueSnapshotNestedInput = {
932
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutWorkQueueSnapshotInput, Prisma.AgentUncheckedCreateWithoutWorkQueueSnapshotInput>
933
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutWorkQueueSnapshotInput
934
+ upsert?: Prisma.AgentUpsertWithoutWorkQueueSnapshotInput
935
+ connect?: Prisma.AgentWhereUniqueInput
936
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutWorkQueueSnapshotInput, Prisma.AgentUpdateWithoutWorkQueueSnapshotInput>, Prisma.AgentUncheckedUpdateWithoutWorkQueueSnapshotInput>
937
+ }
938
+
939
+ export type AgentCreateNestedOneWithoutPhaseMethodologiesInput = {
940
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutPhaseMethodologiesInput, Prisma.AgentUncheckedCreateWithoutPhaseMethodologiesInput>
941
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutPhaseMethodologiesInput
942
+ connect?: Prisma.AgentWhereUniqueInput
943
+ }
944
+
945
+ export type AgentUpdateOneRequiredWithoutPhaseMethodologiesNestedInput = {
946
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutPhaseMethodologiesInput, Prisma.AgentUncheckedCreateWithoutPhaseMethodologiesInput>
947
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutPhaseMethodologiesInput
948
+ upsert?: Prisma.AgentUpsertWithoutPhaseMethodologiesInput
949
+ connect?: Prisma.AgentWhereUniqueInput
950
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutPhaseMethodologiesInput, Prisma.AgentUpdateWithoutPhaseMethodologiesInput>, Prisma.AgentUncheckedUpdateWithoutPhaseMethodologiesInput>
951
+ }
952
+
953
+ export type AgentCreatereposInput = {
954
+ set: string[]
955
+ }
956
+
957
+ export type AgentCreatereviewAuthorAllowlistInput = {
958
+ set: string[]
959
+ }
960
+
961
+ export type AgentCreatepatchAuthorAllowlistInput = {
962
+ set: string[]
963
+ }
964
+
965
+ export type AgentUpdatereposInput = {
966
+ set?: string[]
967
+ push?: string | string[]
968
+ }
969
+
970
+ export type AgentUpdatereviewAuthorAllowlistInput = {
971
+ set?: string[]
972
+ push?: string | string[]
973
+ }
974
+
975
+ export type AgentUpdatepatchAuthorAllowlistInput = {
976
+ set?: string[]
977
+ push?: string | string[]
978
+ }
979
+
980
+ export type IntFieldUpdateOperationsInput = {
981
+ set?: number
982
+ increment?: number
983
+ decrement?: number
984
+ multiply?: number
985
+ divide?: number
986
+ }
987
+
988
+ export type AgentCreateNestedOneWithoutEnvVarsInput = {
989
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutEnvVarsInput, Prisma.AgentUncheckedCreateWithoutEnvVarsInput>
990
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutEnvVarsInput
991
+ connect?: Prisma.AgentWhereUniqueInput
992
+ }
993
+
994
+ export type AgentUpdateOneRequiredWithoutEnvVarsNestedInput = {
995
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutEnvVarsInput, Prisma.AgentUncheckedCreateWithoutEnvVarsInput>
996
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutEnvVarsInput
997
+ upsert?: Prisma.AgentUpsertWithoutEnvVarsInput
998
+ connect?: Prisma.AgentWhereUniqueInput
999
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutEnvVarsInput, Prisma.AgentUpdateWithoutEnvVarsInput>, Prisma.AgentUncheckedUpdateWithoutEnvVarsInput>
1000
+ }
1001
+
1002
+ export type AgentCreateNestedOneWithoutCronJobsInput = {
1003
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutCronJobsInput, Prisma.AgentUncheckedCreateWithoutCronJobsInput>
1004
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutCronJobsInput
1005
+ connect?: Prisma.AgentWhereUniqueInput
1006
+ }
1007
+
1008
+ export type AgentUpdateOneRequiredWithoutCronJobsNestedInput = {
1009
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutCronJobsInput, Prisma.AgentUncheckedCreateWithoutCronJobsInput>
1010
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutCronJobsInput
1011
+ upsert?: Prisma.AgentUpsertWithoutCronJobsInput
1012
+ connect?: Prisma.AgentWhereUniqueInput
1013
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutCronJobsInput, Prisma.AgentUpdateWithoutCronJobsInput>, Prisma.AgentUncheckedUpdateWithoutCronJobsInput>
1014
+ }
1015
+
1016
+ export type AgentCreateNestedOneWithoutToolsInput = {
1017
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>
1018
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutToolsInput
1019
+ connect?: Prisma.AgentWhereUniqueInput
1020
+ }
1021
+
1022
+ export type AgentUpdateOneRequiredWithoutToolsNestedInput = {
1023
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>
1024
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutToolsInput
1025
+ upsert?: Prisma.AgentUpsertWithoutToolsInput
1026
+ connect?: Prisma.AgentWhereUniqueInput
1027
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutToolsInput, Prisma.AgentUpdateWithoutToolsInput>, Prisma.AgentUncheckedUpdateWithoutToolsInput>
1028
+ }
1029
+
1030
+ export type AgentCreateNestedOneWithoutTokensInput = {
1031
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutTokensInput, Prisma.AgentUncheckedCreateWithoutTokensInput>
1032
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutTokensInput
1033
+ connect?: Prisma.AgentWhereUniqueInput
1034
+ }
1035
+
1036
+ export type AgentUpdateOneRequiredWithoutTokensNestedInput = {
1037
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutTokensInput, Prisma.AgentUncheckedCreateWithoutTokensInput>
1038
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutTokensInput
1039
+ upsert?: Prisma.AgentUpsertWithoutTokensInput
1040
+ connect?: Prisma.AgentWhereUniqueInput
1041
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutTokensInput, Prisma.AgentUpdateWithoutTokensInput>, Prisma.AgentUncheckedUpdateWithoutTokensInput>
1042
+ }
1043
+
1044
+ export type AgentCreateNestedOneWithoutPluginsInput = {
1045
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutPluginsInput, Prisma.AgentUncheckedCreateWithoutPluginsInput>
1046
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutPluginsInput
1047
+ connect?: Prisma.AgentWhereUniqueInput
1048
+ }
1049
+
1050
+ export type AgentUpdateOneRequiredWithoutPluginsNestedInput = {
1051
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutPluginsInput, Prisma.AgentUncheckedCreateWithoutPluginsInput>
1052
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutPluginsInput
1053
+ upsert?: Prisma.AgentUpsertWithoutPluginsInput
1054
+ connect?: Prisma.AgentWhereUniqueInput
1055
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutPluginsInput, Prisma.AgentUpdateWithoutPluginsInput>, Prisma.AgentUncheckedUpdateWithoutPluginsInput>
1056
+ }
1057
+
1058
+ export type AgentCreateNestedOneWithoutMembersInput = {
1059
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutMembersInput, Prisma.AgentUncheckedCreateWithoutMembersInput>
1060
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutMembersInput
1061
+ connect?: Prisma.AgentWhereUniqueInput
1062
+ }
1063
+
1064
+ export type AgentUpdateOneRequiredWithoutMembersNestedInput = {
1065
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutMembersInput, Prisma.AgentUncheckedCreateWithoutMembersInput>
1066
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutMembersInput
1067
+ upsert?: Prisma.AgentUpsertWithoutMembersInput
1068
+ connect?: Prisma.AgentWhereUniqueInput
1069
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutMembersInput, Prisma.AgentUpdateWithoutMembersInput>, Prisma.AgentUncheckedUpdateWithoutMembersInput>
1070
+ }
1071
+
1072
+ export type AgentCreateNestedManyWithoutAccountInput = {
1073
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutAccountInput, Prisma.AgentUncheckedCreateWithoutAccountInput> | Prisma.AgentCreateWithoutAccountInput[] | Prisma.AgentUncheckedCreateWithoutAccountInput[]
1074
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAccountInput | Prisma.AgentCreateOrConnectWithoutAccountInput[]
1075
+ createMany?: Prisma.AgentCreateManyAccountInputEnvelope
1076
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1077
+ }
1078
+
1079
+ export type AgentUncheckedCreateNestedManyWithoutAccountInput = {
1080
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutAccountInput, Prisma.AgentUncheckedCreateWithoutAccountInput> | Prisma.AgentCreateWithoutAccountInput[] | Prisma.AgentUncheckedCreateWithoutAccountInput[]
1081
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAccountInput | Prisma.AgentCreateOrConnectWithoutAccountInput[]
1082
+ createMany?: Prisma.AgentCreateManyAccountInputEnvelope
1083
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1084
+ }
1085
+
1086
+ export type AgentUpdateManyWithoutAccountNestedInput = {
1087
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutAccountInput, Prisma.AgentUncheckedCreateWithoutAccountInput> | Prisma.AgentCreateWithoutAccountInput[] | Prisma.AgentUncheckedCreateWithoutAccountInput[]
1088
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAccountInput | Prisma.AgentCreateOrConnectWithoutAccountInput[]
1089
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutAccountInput | Prisma.AgentUpsertWithWhereUniqueWithoutAccountInput[]
1090
+ createMany?: Prisma.AgentCreateManyAccountInputEnvelope
1091
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1092
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1093
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1094
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1095
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutAccountInput | Prisma.AgentUpdateWithWhereUniqueWithoutAccountInput[]
1096
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutAccountInput | Prisma.AgentUpdateManyWithWhereWithoutAccountInput[]
1097
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
1098
+ }
1099
+
1100
+ export type AgentUncheckedUpdateManyWithoutAccountNestedInput = {
1101
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutAccountInput, Prisma.AgentUncheckedCreateWithoutAccountInput> | Prisma.AgentCreateWithoutAccountInput[] | Prisma.AgentUncheckedCreateWithoutAccountInput[]
1102
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAccountInput | Prisma.AgentCreateOrConnectWithoutAccountInput[]
1103
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutAccountInput | Prisma.AgentUpsertWithWhereUniqueWithoutAccountInput[]
1104
+ createMany?: Prisma.AgentCreateManyAccountInputEnvelope
1105
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1106
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1107
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1108
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
1109
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutAccountInput | Prisma.AgentUpdateWithWhereUniqueWithoutAccountInput[]
1110
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutAccountInput | Prisma.AgentUpdateManyWithWhereWithoutAccountInput[]
1111
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
1112
+ }
1113
+
1114
+ export type AgentCreateNestedOneWithoutChatTokenUsageInput = {
1115
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutChatTokenUsageInput, Prisma.AgentUncheckedCreateWithoutChatTokenUsageInput>
1116
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutChatTokenUsageInput
1117
+ connect?: Prisma.AgentWhereUniqueInput
1118
+ }
1119
+
1120
+ export type AgentUpdateOneRequiredWithoutChatTokenUsageNestedInput = {
1121
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutChatTokenUsageInput, Prisma.AgentUncheckedCreateWithoutChatTokenUsageInput>
1122
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutChatTokenUsageInput
1123
+ upsert?: Prisma.AgentUpsertWithoutChatTokenUsageInput
1124
+ connect?: Prisma.AgentWhereUniqueInput
1125
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutChatTokenUsageInput, Prisma.AgentUpdateWithoutChatTokenUsageInput>, Prisma.AgentUncheckedUpdateWithoutChatTokenUsageInput>
1126
+ }
1127
+
1128
+ export type AgentCreateNestedOneWithoutGithubInstallationsSnapshotInput = {
1129
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutGithubInstallationsSnapshotInput, Prisma.AgentUncheckedCreateWithoutGithubInstallationsSnapshotInput>
1130
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutGithubInstallationsSnapshotInput
1131
+ connect?: Prisma.AgentWhereUniqueInput
1132
+ }
1133
+
1134
+ export type AgentUpdateOneRequiredWithoutGithubInstallationsSnapshotNestedInput = {
1135
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutGithubInstallationsSnapshotInput, Prisma.AgentUncheckedCreateWithoutGithubInstallationsSnapshotInput>
1136
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutGithubInstallationsSnapshotInput
1137
+ upsert?: Prisma.AgentUpsertWithoutGithubInstallationsSnapshotInput
1138
+ connect?: Prisma.AgentWhereUniqueInput
1139
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutGithubInstallationsSnapshotInput, Prisma.AgentUpdateWithoutGithubInstallationsSnapshotInput>, Prisma.AgentUncheckedUpdateWithoutGithubInstallationsSnapshotInput>
1140
+ }
1141
+
1142
+ export type AgentCreateWithoutWorkQueueSnapshotInput = {
1143
+ id?: string
1144
+ name: string
1145
+ slackId?: string | null
1146
+ slackBotToken?: string | null
1147
+ anthropicApiKey?: string | null
1148
+ selfHosted?: boolean
1149
+ repos?: Prisma.AgentCreatereposInput | string[]
1150
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1151
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1152
+ restrictSlackToMembers?: boolean
1153
+ typeName?: string
1154
+ trialExpiresAt?: Date | string | null
1155
+ trialExpiryWarnedAt?: Date | string | null
1156
+ ownerEmail?: string | null
1157
+ anthropicIdentityName?: string | null
1158
+ anthropicServiceAccountId?: string | null
1159
+ anthropicFederationRuleId?: string | null
1160
+ k8sServiceAccountName?: string | null
1161
+ autoPostReviews?: boolean
1162
+ allowSelfReview?: boolean
1163
+ minConfidence?: number
1164
+ maxFindings?: number
1165
+ cleanupMergedWorktrees?: boolean
1166
+ cleanupAfterDays?: number
1167
+ createdAt?: Date | string
1168
+ updatedAt?: Date | string
1169
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
1170
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
1171
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
1172
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
1173
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
1174
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
1175
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
1176
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
1177
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
1178
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
1179
+ }
1180
+
1181
+ export type AgentUncheckedCreateWithoutWorkQueueSnapshotInput = {
1182
+ id?: string
1183
+ name: string
1184
+ slackId?: string | null
1185
+ slackBotToken?: string | null
1186
+ anthropicApiKey?: string | null
1187
+ selfHosted?: boolean
1188
+ repos?: Prisma.AgentCreatereposInput | string[]
1189
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1190
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1191
+ restrictSlackToMembers?: boolean
1192
+ typeName?: string
1193
+ accountId?: string | null
1194
+ trialExpiresAt?: Date | string | null
1195
+ trialExpiryWarnedAt?: Date | string | null
1196
+ ownerEmail?: string | null
1197
+ anthropicIdentityName?: string | null
1198
+ anthropicServiceAccountId?: string | null
1199
+ anthropicFederationRuleId?: string | null
1200
+ k8sServiceAccountName?: string | null
1201
+ autoPostReviews?: boolean
1202
+ allowSelfReview?: boolean
1203
+ minConfidence?: number
1204
+ maxFindings?: number
1205
+ cleanupMergedWorktrees?: boolean
1206
+ cleanupAfterDays?: number
1207
+ createdAt?: Date | string
1208
+ updatedAt?: Date | string
1209
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
1210
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
1211
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
1212
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
1213
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
1214
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
1215
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
1216
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
1217
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
1218
+ }
1219
+
1220
+ export type AgentCreateOrConnectWithoutWorkQueueSnapshotInput = {
1221
+ where: Prisma.AgentWhereUniqueInput
1222
+ create: Prisma.XOR<Prisma.AgentCreateWithoutWorkQueueSnapshotInput, Prisma.AgentUncheckedCreateWithoutWorkQueueSnapshotInput>
1223
+ }
1224
+
1225
+ export type AgentUpsertWithoutWorkQueueSnapshotInput = {
1226
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutWorkQueueSnapshotInput, Prisma.AgentUncheckedUpdateWithoutWorkQueueSnapshotInput>
1227
+ create: Prisma.XOR<Prisma.AgentCreateWithoutWorkQueueSnapshotInput, Prisma.AgentUncheckedCreateWithoutWorkQueueSnapshotInput>
1228
+ where?: Prisma.AgentWhereInput
1229
+ }
1230
+
1231
+ export type AgentUpdateToOneWithWhereWithoutWorkQueueSnapshotInput = {
1232
+ where?: Prisma.AgentWhereInput
1233
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutWorkQueueSnapshotInput, Prisma.AgentUncheckedUpdateWithoutWorkQueueSnapshotInput>
1234
+ }
1235
+
1236
+ export type AgentUpdateWithoutWorkQueueSnapshotInput = {
1237
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1238
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1239
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1240
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1241
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1242
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1243
+ repos?: Prisma.AgentUpdatereposInput | string[]
1244
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1245
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1246
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1247
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1248
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1249
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1250
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1251
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1252
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1253
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1254
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1255
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1256
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1257
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1258
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1259
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1260
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1261
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1262
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1263
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
1264
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
1265
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
1266
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
1267
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
1268
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
1269
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
1270
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
1271
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
1272
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
1273
+ }
1274
+
1275
+ export type AgentUncheckedUpdateWithoutWorkQueueSnapshotInput = {
1276
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1277
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1278
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1279
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1280
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1281
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1282
+ repos?: Prisma.AgentUpdatereposInput | string[]
1283
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1284
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1285
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1286
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1287
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1288
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1289
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1290
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1291
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1292
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1293
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1294
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1295
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1296
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1297
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1298
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1299
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1300
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1301
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1302
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1303
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
1304
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
1305
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
1306
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
1307
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
1308
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
1309
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
1310
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1311
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
1312
+ }
1313
+
1314
+ export type AgentCreateWithoutPhaseMethodologiesInput = {
1315
+ id?: string
1316
+ name: string
1317
+ slackId?: string | null
1318
+ slackBotToken?: string | null
1319
+ anthropicApiKey?: string | null
1320
+ selfHosted?: boolean
1321
+ repos?: Prisma.AgentCreatereposInput | string[]
1322
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1323
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1324
+ restrictSlackToMembers?: boolean
1325
+ typeName?: string
1326
+ trialExpiresAt?: Date | string | null
1327
+ trialExpiryWarnedAt?: Date | string | null
1328
+ ownerEmail?: string | null
1329
+ anthropicIdentityName?: string | null
1330
+ anthropicServiceAccountId?: string | null
1331
+ anthropicFederationRuleId?: string | null
1332
+ k8sServiceAccountName?: string | null
1333
+ autoPostReviews?: boolean
1334
+ allowSelfReview?: boolean
1335
+ minConfidence?: number
1336
+ maxFindings?: number
1337
+ cleanupMergedWorktrees?: boolean
1338
+ cleanupAfterDays?: number
1339
+ createdAt?: Date | string
1340
+ updatedAt?: Date | string
1341
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
1342
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
1343
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
1344
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
1345
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
1346
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
1347
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
1348
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
1349
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
1350
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
1351
+ }
1352
+
1353
+ export type AgentUncheckedCreateWithoutPhaseMethodologiesInput = {
1354
+ id?: string
1355
+ name: string
1356
+ slackId?: string | null
1357
+ slackBotToken?: string | null
1358
+ anthropicApiKey?: string | null
1359
+ selfHosted?: boolean
1360
+ repos?: Prisma.AgentCreatereposInput | string[]
1361
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1362
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1363
+ restrictSlackToMembers?: boolean
1364
+ typeName?: string
1365
+ accountId?: string | null
1366
+ trialExpiresAt?: Date | string | null
1367
+ trialExpiryWarnedAt?: Date | string | null
1368
+ ownerEmail?: string | null
1369
+ anthropicIdentityName?: string | null
1370
+ anthropicServiceAccountId?: string | null
1371
+ anthropicFederationRuleId?: string | null
1372
+ k8sServiceAccountName?: string | null
1373
+ autoPostReviews?: boolean
1374
+ allowSelfReview?: boolean
1375
+ minConfidence?: number
1376
+ maxFindings?: number
1377
+ cleanupMergedWorktrees?: boolean
1378
+ cleanupAfterDays?: number
1379
+ createdAt?: Date | string
1380
+ updatedAt?: Date | string
1381
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
1382
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
1383
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
1384
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
1385
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
1386
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
1387
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
1388
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
1389
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
1390
+ }
1391
+
1392
+ export type AgentCreateOrConnectWithoutPhaseMethodologiesInput = {
1393
+ where: Prisma.AgentWhereUniqueInput
1394
+ create: Prisma.XOR<Prisma.AgentCreateWithoutPhaseMethodologiesInput, Prisma.AgentUncheckedCreateWithoutPhaseMethodologiesInput>
1395
+ }
1396
+
1397
+ export type AgentUpsertWithoutPhaseMethodologiesInput = {
1398
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutPhaseMethodologiesInput, Prisma.AgentUncheckedUpdateWithoutPhaseMethodologiesInput>
1399
+ create: Prisma.XOR<Prisma.AgentCreateWithoutPhaseMethodologiesInput, Prisma.AgentUncheckedCreateWithoutPhaseMethodologiesInput>
1400
+ where?: Prisma.AgentWhereInput
1401
+ }
1402
+
1403
+ export type AgentUpdateToOneWithWhereWithoutPhaseMethodologiesInput = {
1404
+ where?: Prisma.AgentWhereInput
1405
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutPhaseMethodologiesInput, Prisma.AgentUncheckedUpdateWithoutPhaseMethodologiesInput>
1406
+ }
1407
+
1408
+ export type AgentUpdateWithoutPhaseMethodologiesInput = {
1409
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1410
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1411
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1412
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1413
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1414
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1415
+ repos?: Prisma.AgentUpdatereposInput | string[]
1416
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1417
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1418
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1419
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1420
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1421
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1422
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1423
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1424
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1425
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1426
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1427
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1428
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1429
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1430
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1431
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1432
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1433
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1434
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1435
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
1436
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
1437
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
1438
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
1439
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
1440
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
1441
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
1442
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
1443
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
1444
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
1445
+ }
1446
+
1447
+ export type AgentUncheckedUpdateWithoutPhaseMethodologiesInput = {
1448
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1449
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1450
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1451
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1452
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1453
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1454
+ repos?: Prisma.AgentUpdatereposInput | string[]
1455
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1456
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1457
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1458
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1459
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1460
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1461
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1462
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1463
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1464
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1465
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1466
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1467
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1468
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1469
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1470
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1471
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1472
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1473
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1474
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1475
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
1476
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
1477
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
1478
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
1479
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
1480
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
1481
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
1482
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1483
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1484
+ }
1485
+
1486
+ export type AgentCreateWithoutEnvVarsInput = {
1487
+ id?: string
1488
+ name: string
1489
+ slackId?: string | null
1490
+ slackBotToken?: string | null
1491
+ anthropicApiKey?: string | null
1492
+ selfHosted?: boolean
1493
+ repos?: Prisma.AgentCreatereposInput | string[]
1494
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1495
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1496
+ restrictSlackToMembers?: boolean
1497
+ typeName?: string
1498
+ trialExpiresAt?: Date | string | null
1499
+ trialExpiryWarnedAt?: Date | string | null
1500
+ ownerEmail?: string | null
1501
+ anthropicIdentityName?: string | null
1502
+ anthropicServiceAccountId?: string | null
1503
+ anthropicFederationRuleId?: string | null
1504
+ k8sServiceAccountName?: string | null
1505
+ autoPostReviews?: boolean
1506
+ allowSelfReview?: boolean
1507
+ minConfidence?: number
1508
+ maxFindings?: number
1509
+ cleanupMergedWorktrees?: boolean
1510
+ cleanupAfterDays?: number
1511
+ createdAt?: Date | string
1512
+ updatedAt?: Date | string
1513
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
1514
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
1515
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
1516
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
1517
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
1518
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
1519
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
1520
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
1521
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
1522
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
1523
+ }
1524
+
1525
+ export type AgentUncheckedCreateWithoutEnvVarsInput = {
1526
+ id?: string
1527
+ name: string
1528
+ slackId?: string | null
1529
+ slackBotToken?: string | null
1530
+ anthropicApiKey?: string | null
1531
+ selfHosted?: boolean
1532
+ repos?: Prisma.AgentCreatereposInput | string[]
1533
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1534
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1535
+ restrictSlackToMembers?: boolean
1536
+ typeName?: string
1537
+ accountId?: string | null
1538
+ trialExpiresAt?: Date | string | null
1539
+ trialExpiryWarnedAt?: Date | string | null
1540
+ ownerEmail?: string | null
1541
+ anthropicIdentityName?: string | null
1542
+ anthropicServiceAccountId?: string | null
1543
+ anthropicFederationRuleId?: string | null
1544
+ k8sServiceAccountName?: string | null
1545
+ autoPostReviews?: boolean
1546
+ allowSelfReview?: boolean
1547
+ minConfidence?: number
1548
+ maxFindings?: number
1549
+ cleanupMergedWorktrees?: boolean
1550
+ cleanupAfterDays?: number
1551
+ createdAt?: Date | string
1552
+ updatedAt?: Date | string
1553
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
1554
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
1555
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
1556
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
1557
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
1558
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
1559
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
1560
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
1561
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
1562
+ }
1563
+
1564
+ export type AgentCreateOrConnectWithoutEnvVarsInput = {
1565
+ where: Prisma.AgentWhereUniqueInput
1566
+ create: Prisma.XOR<Prisma.AgentCreateWithoutEnvVarsInput, Prisma.AgentUncheckedCreateWithoutEnvVarsInput>
1567
+ }
1568
+
1569
+ export type AgentUpsertWithoutEnvVarsInput = {
1570
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutEnvVarsInput, Prisma.AgentUncheckedUpdateWithoutEnvVarsInput>
1571
+ create: Prisma.XOR<Prisma.AgentCreateWithoutEnvVarsInput, Prisma.AgentUncheckedCreateWithoutEnvVarsInput>
1572
+ where?: Prisma.AgentWhereInput
1573
+ }
1574
+
1575
+ export type AgentUpdateToOneWithWhereWithoutEnvVarsInput = {
1576
+ where?: Prisma.AgentWhereInput
1577
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutEnvVarsInput, Prisma.AgentUncheckedUpdateWithoutEnvVarsInput>
1578
+ }
1579
+
1580
+ export type AgentUpdateWithoutEnvVarsInput = {
1581
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1582
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1583
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1584
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1585
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1586
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1587
+ repos?: Prisma.AgentUpdatereposInput | string[]
1588
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1589
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1590
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1591
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1592
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1593
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1594
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1595
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1596
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1597
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1598
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1599
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1600
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1601
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1602
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1603
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1604
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1605
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1606
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1607
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
1608
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
1609
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
1610
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
1611
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
1612
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
1613
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
1614
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
1615
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
1616
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
1617
+ }
1618
+
1619
+ export type AgentUncheckedUpdateWithoutEnvVarsInput = {
1620
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1621
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1622
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1623
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1624
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1625
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1626
+ repos?: Prisma.AgentUpdatereposInput | string[]
1627
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1628
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1629
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1630
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1631
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1632
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1633
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1634
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1635
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1636
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1637
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1638
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1639
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1640
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1641
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1642
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1643
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1644
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1645
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1646
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1647
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
1648
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
1649
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
1650
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
1651
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
1652
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
1653
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1654
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1655
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
1656
+ }
1657
+
1658
+ export type AgentCreateWithoutCronJobsInput = {
1659
+ id?: string
1660
+ name: string
1661
+ slackId?: string | null
1662
+ slackBotToken?: string | null
1663
+ anthropicApiKey?: string | null
1664
+ selfHosted?: boolean
1665
+ repos?: Prisma.AgentCreatereposInput | string[]
1666
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1667
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1668
+ restrictSlackToMembers?: boolean
1669
+ typeName?: string
1670
+ trialExpiresAt?: Date | string | null
1671
+ trialExpiryWarnedAt?: Date | string | null
1672
+ ownerEmail?: string | null
1673
+ anthropicIdentityName?: string | null
1674
+ anthropicServiceAccountId?: string | null
1675
+ anthropicFederationRuleId?: string | null
1676
+ k8sServiceAccountName?: string | null
1677
+ autoPostReviews?: boolean
1678
+ allowSelfReview?: boolean
1679
+ minConfidence?: number
1680
+ maxFindings?: number
1681
+ cleanupMergedWorktrees?: boolean
1682
+ cleanupAfterDays?: number
1683
+ createdAt?: Date | string
1684
+ updatedAt?: Date | string
1685
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
1686
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
1687
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
1688
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
1689
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
1690
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
1691
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
1692
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
1693
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
1694
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
1695
+ }
1696
+
1697
+ export type AgentUncheckedCreateWithoutCronJobsInput = {
1698
+ id?: string
1699
+ name: string
1700
+ slackId?: string | null
1701
+ slackBotToken?: string | null
1702
+ anthropicApiKey?: string | null
1703
+ selfHosted?: boolean
1704
+ repos?: Prisma.AgentCreatereposInput | string[]
1705
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1706
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1707
+ restrictSlackToMembers?: boolean
1708
+ typeName?: string
1709
+ accountId?: string | null
1710
+ trialExpiresAt?: Date | string | null
1711
+ trialExpiryWarnedAt?: Date | string | null
1712
+ ownerEmail?: string | null
1713
+ anthropicIdentityName?: string | null
1714
+ anthropicServiceAccountId?: string | null
1715
+ anthropicFederationRuleId?: string | null
1716
+ k8sServiceAccountName?: string | null
1717
+ autoPostReviews?: boolean
1718
+ allowSelfReview?: boolean
1719
+ minConfidence?: number
1720
+ maxFindings?: number
1721
+ cleanupMergedWorktrees?: boolean
1722
+ cleanupAfterDays?: number
1723
+ createdAt?: Date | string
1724
+ updatedAt?: Date | string
1725
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
1726
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
1727
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
1728
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
1729
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
1730
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
1731
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
1732
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
1733
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
1734
+ }
1735
+
1736
+ export type AgentCreateOrConnectWithoutCronJobsInput = {
1737
+ where: Prisma.AgentWhereUniqueInput
1738
+ create: Prisma.XOR<Prisma.AgentCreateWithoutCronJobsInput, Prisma.AgentUncheckedCreateWithoutCronJobsInput>
1739
+ }
1740
+
1741
+ export type AgentUpsertWithoutCronJobsInput = {
1742
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutCronJobsInput, Prisma.AgentUncheckedUpdateWithoutCronJobsInput>
1743
+ create: Prisma.XOR<Prisma.AgentCreateWithoutCronJobsInput, Prisma.AgentUncheckedCreateWithoutCronJobsInput>
1744
+ where?: Prisma.AgentWhereInput
1745
+ }
1746
+
1747
+ export type AgentUpdateToOneWithWhereWithoutCronJobsInput = {
1748
+ where?: Prisma.AgentWhereInput
1749
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutCronJobsInput, Prisma.AgentUncheckedUpdateWithoutCronJobsInput>
1750
+ }
1751
+
1752
+ export type AgentUpdateWithoutCronJobsInput = {
1753
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1754
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1755
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1756
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1757
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1758
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1759
+ repos?: Prisma.AgentUpdatereposInput | string[]
1760
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1761
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1762
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1763
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1764
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1765
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1766
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1767
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1768
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1769
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1770
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1771
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1772
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1773
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1774
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1775
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1776
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1777
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1778
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1779
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
1780
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
1781
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
1782
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
1783
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
1784
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
1785
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
1786
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
1787
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
1788
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
1789
+ }
1790
+
1791
+ export type AgentUncheckedUpdateWithoutCronJobsInput = {
1792
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1793
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1794
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1795
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1796
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1797
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1798
+ repos?: Prisma.AgentUpdatereposInput | string[]
1799
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1800
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1801
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1802
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1803
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1804
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1805
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1806
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1807
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1808
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1809
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1810
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1811
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1812
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1813
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1814
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1815
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1816
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1817
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1818
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1819
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
1820
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
1821
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
1822
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
1823
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
1824
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
1825
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1826
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1827
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
1828
+ }
1829
+
1830
+ export type AgentCreateWithoutToolsInput = {
1831
+ id?: string
1832
+ name: string
1833
+ slackId?: string | null
1834
+ slackBotToken?: string | null
1835
+ anthropicApiKey?: string | null
1836
+ selfHosted?: boolean
1837
+ repos?: Prisma.AgentCreatereposInput | string[]
1838
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1839
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1840
+ restrictSlackToMembers?: boolean
1841
+ typeName?: string
1842
+ trialExpiresAt?: Date | string | null
1843
+ trialExpiryWarnedAt?: Date | string | null
1844
+ ownerEmail?: string | null
1845
+ anthropicIdentityName?: string | null
1846
+ anthropicServiceAccountId?: string | null
1847
+ anthropicFederationRuleId?: string | null
1848
+ k8sServiceAccountName?: string | null
1849
+ autoPostReviews?: boolean
1850
+ allowSelfReview?: boolean
1851
+ minConfidence?: number
1852
+ maxFindings?: number
1853
+ cleanupMergedWorktrees?: boolean
1854
+ cleanupAfterDays?: number
1855
+ createdAt?: Date | string
1856
+ updatedAt?: Date | string
1857
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
1858
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
1859
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
1860
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
1861
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
1862
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
1863
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
1864
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
1865
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
1866
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
1867
+ }
1868
+
1869
+ export type AgentUncheckedCreateWithoutToolsInput = {
1870
+ id?: string
1871
+ name: string
1872
+ slackId?: string | null
1873
+ slackBotToken?: string | null
1874
+ anthropicApiKey?: string | null
1875
+ selfHosted?: boolean
1876
+ repos?: Prisma.AgentCreatereposInput | string[]
1877
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
1878
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
1879
+ restrictSlackToMembers?: boolean
1880
+ typeName?: string
1881
+ accountId?: string | null
1882
+ trialExpiresAt?: Date | string | null
1883
+ trialExpiryWarnedAt?: Date | string | null
1884
+ ownerEmail?: string | null
1885
+ anthropicIdentityName?: string | null
1886
+ anthropicServiceAccountId?: string | null
1887
+ anthropicFederationRuleId?: string | null
1888
+ k8sServiceAccountName?: string | null
1889
+ autoPostReviews?: boolean
1890
+ allowSelfReview?: boolean
1891
+ minConfidence?: number
1892
+ maxFindings?: number
1893
+ cleanupMergedWorktrees?: boolean
1894
+ cleanupAfterDays?: number
1895
+ createdAt?: Date | string
1896
+ updatedAt?: Date | string
1897
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
1898
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
1899
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
1900
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
1901
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
1902
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
1903
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
1904
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
1905
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
1906
+ }
1907
+
1908
+ export type AgentCreateOrConnectWithoutToolsInput = {
1909
+ where: Prisma.AgentWhereUniqueInput
1910
+ create: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>
1911
+ }
1912
+
1913
+ export type AgentUpsertWithoutToolsInput = {
1914
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutToolsInput, Prisma.AgentUncheckedUpdateWithoutToolsInput>
1915
+ create: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>
1916
+ where?: Prisma.AgentWhereInput
1917
+ }
1918
+
1919
+ export type AgentUpdateToOneWithWhereWithoutToolsInput = {
1920
+ where?: Prisma.AgentWhereInput
1921
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutToolsInput, Prisma.AgentUncheckedUpdateWithoutToolsInput>
1922
+ }
1923
+
1924
+ export type AgentUpdateWithoutToolsInput = {
1925
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1926
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1927
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1928
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1929
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1930
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1931
+ repos?: Prisma.AgentUpdatereposInput | string[]
1932
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1933
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1934
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1935
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1936
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1937
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1938
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1939
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1940
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1941
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1942
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1943
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1944
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1945
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1946
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1947
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1948
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1949
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1950
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1951
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
1952
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
1953
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
1954
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
1955
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
1956
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
1957
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
1958
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
1959
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
1960
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
1961
+ }
1962
+
1963
+ export type AgentUncheckedUpdateWithoutToolsInput = {
1964
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1965
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1966
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1967
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1968
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1969
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1970
+ repos?: Prisma.AgentUpdatereposInput | string[]
1971
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
1972
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
1973
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
1974
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
1975
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1976
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1977
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1978
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1979
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1980
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1981
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1982
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1983
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
1984
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
1985
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
1986
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
1987
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
1988
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
1989
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1990
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1991
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
1992
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
1993
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
1994
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
1995
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
1996
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
1997
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1998
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
1999
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
2000
+ }
2001
+
2002
+ export type AgentCreateWithoutTokensInput = {
2003
+ id?: string
2004
+ name: string
2005
+ slackId?: string | null
2006
+ slackBotToken?: string | null
2007
+ anthropicApiKey?: string | null
2008
+ selfHosted?: boolean
2009
+ repos?: Prisma.AgentCreatereposInput | string[]
2010
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2011
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2012
+ restrictSlackToMembers?: boolean
2013
+ typeName?: string
2014
+ trialExpiresAt?: Date | string | null
2015
+ trialExpiryWarnedAt?: Date | string | null
2016
+ ownerEmail?: string | null
2017
+ anthropicIdentityName?: string | null
2018
+ anthropicServiceAccountId?: string | null
2019
+ anthropicFederationRuleId?: string | null
2020
+ k8sServiceAccountName?: string | null
2021
+ autoPostReviews?: boolean
2022
+ allowSelfReview?: boolean
2023
+ minConfidence?: number
2024
+ maxFindings?: number
2025
+ cleanupMergedWorktrees?: boolean
2026
+ cleanupAfterDays?: number
2027
+ createdAt?: Date | string
2028
+ updatedAt?: Date | string
2029
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
2030
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
2031
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
2032
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
2033
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
2034
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
2035
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
2036
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
2037
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
2038
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
2039
+ }
2040
+
2041
+ export type AgentUncheckedCreateWithoutTokensInput = {
2042
+ id?: string
2043
+ name: string
2044
+ slackId?: string | null
2045
+ slackBotToken?: string | null
2046
+ anthropicApiKey?: string | null
2047
+ selfHosted?: boolean
2048
+ repos?: Prisma.AgentCreatereposInput | string[]
2049
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2050
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2051
+ restrictSlackToMembers?: boolean
2052
+ typeName?: string
2053
+ accountId?: string | null
2054
+ trialExpiresAt?: Date | string | null
2055
+ trialExpiryWarnedAt?: Date | string | null
2056
+ ownerEmail?: string | null
2057
+ anthropicIdentityName?: string | null
2058
+ anthropicServiceAccountId?: string | null
2059
+ anthropicFederationRuleId?: string | null
2060
+ k8sServiceAccountName?: string | null
2061
+ autoPostReviews?: boolean
2062
+ allowSelfReview?: boolean
2063
+ minConfidence?: number
2064
+ maxFindings?: number
2065
+ cleanupMergedWorktrees?: boolean
2066
+ cleanupAfterDays?: number
2067
+ createdAt?: Date | string
2068
+ updatedAt?: Date | string
2069
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
2070
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
2071
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
2072
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
2073
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
2074
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
2075
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
2076
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
2077
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
2078
+ }
2079
+
2080
+ export type AgentCreateOrConnectWithoutTokensInput = {
2081
+ where: Prisma.AgentWhereUniqueInput
2082
+ create: Prisma.XOR<Prisma.AgentCreateWithoutTokensInput, Prisma.AgentUncheckedCreateWithoutTokensInput>
2083
+ }
2084
+
2085
+ export type AgentUpsertWithoutTokensInput = {
2086
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutTokensInput, Prisma.AgentUncheckedUpdateWithoutTokensInput>
2087
+ create: Prisma.XOR<Prisma.AgentCreateWithoutTokensInput, Prisma.AgentUncheckedCreateWithoutTokensInput>
2088
+ where?: Prisma.AgentWhereInput
2089
+ }
2090
+
2091
+ export type AgentUpdateToOneWithWhereWithoutTokensInput = {
2092
+ where?: Prisma.AgentWhereInput
2093
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutTokensInput, Prisma.AgentUncheckedUpdateWithoutTokensInput>
2094
+ }
2095
+
2096
+ export type AgentUpdateWithoutTokensInput = {
2097
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2098
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2099
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2100
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2101
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2102
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2103
+ repos?: Prisma.AgentUpdatereposInput | string[]
2104
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2105
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2106
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2107
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2108
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2109
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2110
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2111
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2112
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2113
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2114
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2115
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2116
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2117
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2118
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2119
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2120
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2121
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2122
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2123
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
2124
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
2125
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
2126
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
2127
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
2128
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
2129
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
2130
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
2131
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
2132
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
2133
+ }
2134
+
2135
+ export type AgentUncheckedUpdateWithoutTokensInput = {
2136
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2137
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2138
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2139
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2140
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2141
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2142
+ repos?: Prisma.AgentUpdatereposInput | string[]
2143
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2144
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2145
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2146
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2147
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2148
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2149
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2150
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2151
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2152
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2153
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2154
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2155
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2156
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2157
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2158
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2159
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2160
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2161
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2162
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2163
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
2164
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
2165
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
2166
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
2167
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
2168
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
2169
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2170
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2171
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
2172
+ }
2173
+
2174
+ export type AgentCreateWithoutPluginsInput = {
2175
+ id?: string
2176
+ name: string
2177
+ slackId?: string | null
2178
+ slackBotToken?: string | null
2179
+ anthropicApiKey?: string | null
2180
+ selfHosted?: boolean
2181
+ repos?: Prisma.AgentCreatereposInput | string[]
2182
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2183
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2184
+ restrictSlackToMembers?: boolean
2185
+ typeName?: string
2186
+ trialExpiresAt?: Date | string | null
2187
+ trialExpiryWarnedAt?: Date | string | null
2188
+ ownerEmail?: string | null
2189
+ anthropicIdentityName?: string | null
2190
+ anthropicServiceAccountId?: string | null
2191
+ anthropicFederationRuleId?: string | null
2192
+ k8sServiceAccountName?: string | null
2193
+ autoPostReviews?: boolean
2194
+ allowSelfReview?: boolean
2195
+ minConfidence?: number
2196
+ maxFindings?: number
2197
+ cleanupMergedWorktrees?: boolean
2198
+ cleanupAfterDays?: number
2199
+ createdAt?: Date | string
2200
+ updatedAt?: Date | string
2201
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
2202
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
2203
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
2204
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
2205
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
2206
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
2207
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
2208
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
2209
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
2210
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
2211
+ }
2212
+
2213
+ export type AgentUncheckedCreateWithoutPluginsInput = {
2214
+ id?: string
2215
+ name: string
2216
+ slackId?: string | null
2217
+ slackBotToken?: string | null
2218
+ anthropicApiKey?: string | null
2219
+ selfHosted?: boolean
2220
+ repos?: Prisma.AgentCreatereposInput | string[]
2221
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2222
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2223
+ restrictSlackToMembers?: boolean
2224
+ typeName?: string
2225
+ accountId?: string | null
2226
+ trialExpiresAt?: Date | string | null
2227
+ trialExpiryWarnedAt?: Date | string | null
2228
+ ownerEmail?: string | null
2229
+ anthropicIdentityName?: string | null
2230
+ anthropicServiceAccountId?: string | null
2231
+ anthropicFederationRuleId?: string | null
2232
+ k8sServiceAccountName?: string | null
2233
+ autoPostReviews?: boolean
2234
+ allowSelfReview?: boolean
2235
+ minConfidence?: number
2236
+ maxFindings?: number
2237
+ cleanupMergedWorktrees?: boolean
2238
+ cleanupAfterDays?: number
2239
+ createdAt?: Date | string
2240
+ updatedAt?: Date | string
2241
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
2242
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
2243
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
2244
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
2245
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
2246
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
2247
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
2248
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
2249
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
2250
+ }
2251
+
2252
+ export type AgentCreateOrConnectWithoutPluginsInput = {
2253
+ where: Prisma.AgentWhereUniqueInput
2254
+ create: Prisma.XOR<Prisma.AgentCreateWithoutPluginsInput, Prisma.AgentUncheckedCreateWithoutPluginsInput>
2255
+ }
2256
+
2257
+ export type AgentUpsertWithoutPluginsInput = {
2258
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutPluginsInput, Prisma.AgentUncheckedUpdateWithoutPluginsInput>
2259
+ create: Prisma.XOR<Prisma.AgentCreateWithoutPluginsInput, Prisma.AgentUncheckedCreateWithoutPluginsInput>
2260
+ where?: Prisma.AgentWhereInput
2261
+ }
2262
+
2263
+ export type AgentUpdateToOneWithWhereWithoutPluginsInput = {
2264
+ where?: Prisma.AgentWhereInput
2265
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutPluginsInput, Prisma.AgentUncheckedUpdateWithoutPluginsInput>
2266
+ }
2267
+
2268
+ export type AgentUpdateWithoutPluginsInput = {
2269
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2270
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2271
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2272
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2273
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2274
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2275
+ repos?: Prisma.AgentUpdatereposInput | string[]
2276
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2277
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2278
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2279
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2280
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2281
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2282
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2283
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2284
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2285
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2286
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2287
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2288
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2289
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2290
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2291
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2292
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2293
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2294
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2295
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
2296
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
2297
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
2298
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
2299
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
2300
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
2301
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
2302
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
2303
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
2304
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
2305
+ }
2306
+
2307
+ export type AgentUncheckedUpdateWithoutPluginsInput = {
2308
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2309
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2310
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2311
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2312
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2313
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2314
+ repos?: Prisma.AgentUpdatereposInput | string[]
2315
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2316
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2317
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2318
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2319
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2320
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2321
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2322
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2323
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2324
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2325
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2326
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2327
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2328
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2329
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2330
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2331
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2332
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2333
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2334
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2335
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
2336
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
2337
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
2338
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
2339
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
2340
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
2341
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2342
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2343
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
2344
+ }
2345
+
2346
+ export type AgentCreateWithoutMembersInput = {
2347
+ id?: string
2348
+ name: string
2349
+ slackId?: string | null
2350
+ slackBotToken?: string | null
2351
+ anthropicApiKey?: string | null
2352
+ selfHosted?: boolean
2353
+ repos?: Prisma.AgentCreatereposInput | string[]
2354
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2355
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2356
+ restrictSlackToMembers?: boolean
2357
+ typeName?: string
2358
+ trialExpiresAt?: Date | string | null
2359
+ trialExpiryWarnedAt?: Date | string | null
2360
+ ownerEmail?: string | null
2361
+ anthropicIdentityName?: string | null
2362
+ anthropicServiceAccountId?: string | null
2363
+ anthropicFederationRuleId?: string | null
2364
+ k8sServiceAccountName?: string | null
2365
+ autoPostReviews?: boolean
2366
+ allowSelfReview?: boolean
2367
+ minConfidence?: number
2368
+ maxFindings?: number
2369
+ cleanupMergedWorktrees?: boolean
2370
+ cleanupAfterDays?: number
2371
+ createdAt?: Date | string
2372
+ updatedAt?: Date | string
2373
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
2374
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
2375
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
2376
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
2377
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
2378
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
2379
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
2380
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
2381
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
2382
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
2383
+ }
2384
+
2385
+ export type AgentUncheckedCreateWithoutMembersInput = {
2386
+ id?: string
2387
+ name: string
2388
+ slackId?: string | null
2389
+ slackBotToken?: string | null
2390
+ anthropicApiKey?: string | null
2391
+ selfHosted?: boolean
2392
+ repos?: Prisma.AgentCreatereposInput | string[]
2393
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2394
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2395
+ restrictSlackToMembers?: boolean
2396
+ typeName?: string
2397
+ accountId?: string | null
2398
+ trialExpiresAt?: Date | string | null
2399
+ trialExpiryWarnedAt?: Date | string | null
2400
+ ownerEmail?: string | null
2401
+ anthropicIdentityName?: string | null
2402
+ anthropicServiceAccountId?: string | null
2403
+ anthropicFederationRuleId?: string | null
2404
+ k8sServiceAccountName?: string | null
2405
+ autoPostReviews?: boolean
2406
+ allowSelfReview?: boolean
2407
+ minConfidence?: number
2408
+ maxFindings?: number
2409
+ cleanupMergedWorktrees?: boolean
2410
+ cleanupAfterDays?: number
2411
+ createdAt?: Date | string
2412
+ updatedAt?: Date | string
2413
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
2414
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
2415
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
2416
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
2417
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
2418
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
2419
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
2420
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
2421
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
2422
+ }
2423
+
2424
+ export type AgentCreateOrConnectWithoutMembersInput = {
2425
+ where: Prisma.AgentWhereUniqueInput
2426
+ create: Prisma.XOR<Prisma.AgentCreateWithoutMembersInput, Prisma.AgentUncheckedCreateWithoutMembersInput>
2427
+ }
2428
+
2429
+ export type AgentUpsertWithoutMembersInput = {
2430
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutMembersInput, Prisma.AgentUncheckedUpdateWithoutMembersInput>
2431
+ create: Prisma.XOR<Prisma.AgentCreateWithoutMembersInput, Prisma.AgentUncheckedCreateWithoutMembersInput>
2432
+ where?: Prisma.AgentWhereInput
2433
+ }
2434
+
2435
+ export type AgentUpdateToOneWithWhereWithoutMembersInput = {
2436
+ where?: Prisma.AgentWhereInput
2437
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutMembersInput, Prisma.AgentUncheckedUpdateWithoutMembersInput>
2438
+ }
2439
+
2440
+ export type AgentUpdateWithoutMembersInput = {
2441
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2442
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2443
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2444
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2445
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2446
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2447
+ repos?: Prisma.AgentUpdatereposInput | string[]
2448
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2449
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2450
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2451
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2452
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2453
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2454
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2455
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2456
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2457
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2458
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2459
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2460
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2461
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2462
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2463
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2464
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2465
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2466
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2467
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
2468
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
2469
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
2470
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
2471
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
2472
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
2473
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
2474
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
2475
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
2476
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
2477
+ }
2478
+
2479
+ export type AgentUncheckedUpdateWithoutMembersInput = {
2480
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2481
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2482
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2483
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2484
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2485
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2486
+ repos?: Prisma.AgentUpdatereposInput | string[]
2487
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2488
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2489
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2490
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2491
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2492
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2493
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2494
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2495
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2496
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2497
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2498
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2499
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2500
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2501
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2502
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2503
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2504
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2505
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2506
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2507
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
2508
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
2509
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
2510
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
2511
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
2512
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
2513
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2514
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2515
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
2516
+ }
2517
+
2518
+ export type AgentCreateWithoutAccountInput = {
2519
+ id?: string
2520
+ name: string
2521
+ slackId?: string | null
2522
+ slackBotToken?: string | null
2523
+ anthropicApiKey?: string | null
2524
+ selfHosted?: boolean
2525
+ repos?: Prisma.AgentCreatereposInput | string[]
2526
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2527
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2528
+ restrictSlackToMembers?: boolean
2529
+ typeName?: string
2530
+ trialExpiresAt?: Date | string | null
2531
+ trialExpiryWarnedAt?: Date | string | null
2532
+ ownerEmail?: string | null
2533
+ anthropicIdentityName?: string | null
2534
+ anthropicServiceAccountId?: string | null
2535
+ anthropicFederationRuleId?: string | null
2536
+ k8sServiceAccountName?: string | null
2537
+ autoPostReviews?: boolean
2538
+ allowSelfReview?: boolean
2539
+ minConfidence?: number
2540
+ maxFindings?: number
2541
+ cleanupMergedWorktrees?: boolean
2542
+ cleanupAfterDays?: number
2543
+ createdAt?: Date | string
2544
+ updatedAt?: Date | string
2545
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
2546
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
2547
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
2548
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
2549
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
2550
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
2551
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
2552
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
2553
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
2554
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
2555
+ }
2556
+
2557
+ export type AgentUncheckedCreateWithoutAccountInput = {
2558
+ id?: string
2559
+ name: string
2560
+ slackId?: string | null
2561
+ slackBotToken?: string | null
2562
+ anthropicApiKey?: string | null
2563
+ selfHosted?: boolean
2564
+ repos?: Prisma.AgentCreatereposInput | string[]
2565
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2566
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2567
+ restrictSlackToMembers?: boolean
2568
+ typeName?: string
2569
+ trialExpiresAt?: Date | string | null
2570
+ trialExpiryWarnedAt?: Date | string | null
2571
+ ownerEmail?: string | null
2572
+ anthropicIdentityName?: string | null
2573
+ anthropicServiceAccountId?: string | null
2574
+ anthropicFederationRuleId?: string | null
2575
+ k8sServiceAccountName?: string | null
2576
+ autoPostReviews?: boolean
2577
+ allowSelfReview?: boolean
2578
+ minConfidence?: number
2579
+ maxFindings?: number
2580
+ cleanupMergedWorktrees?: boolean
2581
+ cleanupAfterDays?: number
2582
+ createdAt?: Date | string
2583
+ updatedAt?: Date | string
2584
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
2585
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
2586
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
2587
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
2588
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
2589
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
2590
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
2591
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
2592
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
2593
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
2594
+ }
2595
+
2596
+ export type AgentCreateOrConnectWithoutAccountInput = {
2597
+ where: Prisma.AgentWhereUniqueInput
2598
+ create: Prisma.XOR<Prisma.AgentCreateWithoutAccountInput, Prisma.AgentUncheckedCreateWithoutAccountInput>
2599
+ }
2600
+
2601
+ export type AgentCreateManyAccountInputEnvelope = {
2602
+ data: Prisma.AgentCreateManyAccountInput | Prisma.AgentCreateManyAccountInput[]
2603
+ skipDuplicates?: boolean
2604
+ }
2605
+
2606
+ export type AgentUpsertWithWhereUniqueWithoutAccountInput = {
2607
+ where: Prisma.AgentWhereUniqueInput
2608
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutAccountInput, Prisma.AgentUncheckedUpdateWithoutAccountInput>
2609
+ create: Prisma.XOR<Prisma.AgentCreateWithoutAccountInput, Prisma.AgentUncheckedCreateWithoutAccountInput>
2610
+ }
2611
+
2612
+ export type AgentUpdateWithWhereUniqueWithoutAccountInput = {
2613
+ where: Prisma.AgentWhereUniqueInput
2614
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutAccountInput, Prisma.AgentUncheckedUpdateWithoutAccountInput>
2615
+ }
2616
+
2617
+ export type AgentUpdateManyWithWhereWithoutAccountInput = {
2618
+ where: Prisma.AgentScalarWhereInput
2619
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutAccountInput>
2620
+ }
2621
+
2622
+ export type AgentScalarWhereInput = {
2623
+ AND?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
2624
+ OR?: Prisma.AgentScalarWhereInput[]
2625
+ NOT?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
2626
+ id?: Prisma.StringFilter<"Agent"> | string
2627
+ name?: Prisma.StringFilter<"Agent"> | string
2628
+ slackId?: Prisma.StringNullableFilter<"Agent"> | string | null
2629
+ slackBotToken?: Prisma.StringNullableFilter<"Agent"> | string | null
2630
+ anthropicApiKey?: Prisma.StringNullableFilter<"Agent"> | string | null
2631
+ selfHosted?: Prisma.BoolFilter<"Agent"> | boolean
2632
+ repos?: Prisma.StringNullableListFilter<"Agent">
2633
+ reviewAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
2634
+ patchAuthorAllowlist?: Prisma.StringNullableListFilter<"Agent">
2635
+ restrictSlackToMembers?: Prisma.BoolFilter<"Agent"> | boolean
2636
+ typeName?: Prisma.StringFilter<"Agent"> | string
2637
+ accountId?: Prisma.StringNullableFilter<"Agent"> | string | null
2638
+ trialExpiresAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null
2639
+ trialExpiryWarnedAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null
2640
+ ownerEmail?: Prisma.StringNullableFilter<"Agent"> | string | null
2641
+ anthropicIdentityName?: Prisma.StringNullableFilter<"Agent"> | string | null
2642
+ anthropicServiceAccountId?: Prisma.StringNullableFilter<"Agent"> | string | null
2643
+ anthropicFederationRuleId?: Prisma.StringNullableFilter<"Agent"> | string | null
2644
+ k8sServiceAccountName?: Prisma.StringNullableFilter<"Agent"> | string | null
2645
+ autoPostReviews?: Prisma.BoolFilter<"Agent"> | boolean
2646
+ allowSelfReview?: Prisma.BoolFilter<"Agent"> | boolean
2647
+ minConfidence?: Prisma.IntFilter<"Agent"> | number
2648
+ maxFindings?: Prisma.IntFilter<"Agent"> | number
2649
+ cleanupMergedWorktrees?: Prisma.BoolFilter<"Agent"> | boolean
2650
+ cleanupAfterDays?: Prisma.IntFilter<"Agent"> | number
2651
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
2652
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
2653
+ }
2654
+
2655
+ export type AgentCreateWithoutChatTokenUsageInput = {
2656
+ id?: string
2657
+ name: string
2658
+ slackId?: string | null
2659
+ slackBotToken?: string | null
2660
+ anthropicApiKey?: string | null
2661
+ selfHosted?: boolean
2662
+ repos?: Prisma.AgentCreatereposInput | string[]
2663
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2664
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2665
+ restrictSlackToMembers?: boolean
2666
+ typeName?: string
2667
+ trialExpiresAt?: Date | string | null
2668
+ trialExpiryWarnedAt?: Date | string | null
2669
+ ownerEmail?: string | null
2670
+ anthropicIdentityName?: string | null
2671
+ anthropicServiceAccountId?: string | null
2672
+ anthropicFederationRuleId?: string | null
2673
+ k8sServiceAccountName?: string | null
2674
+ autoPostReviews?: boolean
2675
+ allowSelfReview?: boolean
2676
+ minConfidence?: number
2677
+ maxFindings?: number
2678
+ cleanupMergedWorktrees?: boolean
2679
+ cleanupAfterDays?: number
2680
+ createdAt?: Date | string
2681
+ updatedAt?: Date | string
2682
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
2683
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
2684
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
2685
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
2686
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
2687
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
2688
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
2689
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
2690
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotCreateNestedOneWithoutAgentInput
2691
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
2692
+ }
2693
+
2694
+ export type AgentUncheckedCreateWithoutChatTokenUsageInput = {
2695
+ id?: string
2696
+ name: string
2697
+ slackId?: string | null
2698
+ slackBotToken?: string | null
2699
+ anthropicApiKey?: string | null
2700
+ selfHosted?: boolean
2701
+ repos?: Prisma.AgentCreatereposInput | string[]
2702
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2703
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2704
+ restrictSlackToMembers?: boolean
2705
+ typeName?: string
2706
+ accountId?: string | null
2707
+ trialExpiresAt?: Date | string | null
2708
+ trialExpiryWarnedAt?: Date | string | null
2709
+ ownerEmail?: string | null
2710
+ anthropicIdentityName?: string | null
2711
+ anthropicServiceAccountId?: string | null
2712
+ anthropicFederationRuleId?: string | null
2713
+ k8sServiceAccountName?: string | null
2714
+ autoPostReviews?: boolean
2715
+ allowSelfReview?: boolean
2716
+ minConfidence?: number
2717
+ maxFindings?: number
2718
+ cleanupMergedWorktrees?: boolean
2719
+ cleanupAfterDays?: number
2720
+ createdAt?: Date | string
2721
+ updatedAt?: Date | string
2722
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
2723
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
2724
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
2725
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
2726
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
2727
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
2728
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
2729
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedCreateNestedOneWithoutAgentInput
2730
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
2731
+ }
2732
+
2733
+ export type AgentCreateOrConnectWithoutChatTokenUsageInput = {
2734
+ where: Prisma.AgentWhereUniqueInput
2735
+ create: Prisma.XOR<Prisma.AgentCreateWithoutChatTokenUsageInput, Prisma.AgentUncheckedCreateWithoutChatTokenUsageInput>
2736
+ }
2737
+
2738
+ export type AgentUpsertWithoutChatTokenUsageInput = {
2739
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutChatTokenUsageInput, Prisma.AgentUncheckedUpdateWithoutChatTokenUsageInput>
2740
+ create: Prisma.XOR<Prisma.AgentCreateWithoutChatTokenUsageInput, Prisma.AgentUncheckedCreateWithoutChatTokenUsageInput>
2741
+ where?: Prisma.AgentWhereInput
2742
+ }
2743
+
2744
+ export type AgentUpdateToOneWithWhereWithoutChatTokenUsageInput = {
2745
+ where?: Prisma.AgentWhereInput
2746
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutChatTokenUsageInput, Prisma.AgentUncheckedUpdateWithoutChatTokenUsageInput>
2747
+ }
2748
+
2749
+ export type AgentUpdateWithoutChatTokenUsageInput = {
2750
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2751
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2752
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2753
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2754
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2755
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2756
+ repos?: Prisma.AgentUpdatereposInput | string[]
2757
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2758
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2759
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2760
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2761
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2762
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2763
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2764
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2765
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2766
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2767
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2768
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2769
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2770
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2771
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2772
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2773
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2774
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2775
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2776
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
2777
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
2778
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
2779
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
2780
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
2781
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
2782
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
2783
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
2784
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
2785
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
2786
+ }
2787
+
2788
+ export type AgentUncheckedUpdateWithoutChatTokenUsageInput = {
2789
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2790
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2791
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2792
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2793
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2794
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2795
+ repos?: Prisma.AgentUpdatereposInput | string[]
2796
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2797
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2798
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2799
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2800
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2801
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2802
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2803
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2804
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2805
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2806
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2807
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2808
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2809
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2810
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2811
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2812
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2813
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2814
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2815
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2816
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
2817
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
2818
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
2819
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
2820
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
2821
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
2822
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2823
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2824
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
2825
+ }
2826
+
2827
+ export type AgentCreateWithoutGithubInstallationsSnapshotInput = {
2828
+ id?: string
2829
+ name: string
2830
+ slackId?: string | null
2831
+ slackBotToken?: string | null
2832
+ anthropicApiKey?: string | null
2833
+ selfHosted?: boolean
2834
+ repos?: Prisma.AgentCreatereposInput | string[]
2835
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2836
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2837
+ restrictSlackToMembers?: boolean
2838
+ typeName?: string
2839
+ trialExpiresAt?: Date | string | null
2840
+ trialExpiryWarnedAt?: Date | string | null
2841
+ ownerEmail?: string | null
2842
+ anthropicIdentityName?: string | null
2843
+ anthropicServiceAccountId?: string | null
2844
+ anthropicFederationRuleId?: string | null
2845
+ k8sServiceAccountName?: string | null
2846
+ autoPostReviews?: boolean
2847
+ allowSelfReview?: boolean
2848
+ minConfidence?: number
2849
+ maxFindings?: number
2850
+ cleanupMergedWorktrees?: boolean
2851
+ cleanupAfterDays?: number
2852
+ createdAt?: Date | string
2853
+ updatedAt?: Date | string
2854
+ account?: Prisma.AccountCreateNestedOneWithoutAgentsInput
2855
+ envVars?: Prisma.AgentEnvCreateNestedManyWithoutAgentInput
2856
+ cronJobs?: Prisma.AgentCronJobCreateNestedManyWithoutAgentInput
2857
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput
2858
+ tokens?: Prisma.AgentTokenCreateNestedManyWithoutAgentInput
2859
+ plugins?: Prisma.AgentPluginCreateNestedManyWithoutAgentInput
2860
+ members?: Prisma.AgentMemberCreateNestedManyWithoutAgentInput
2861
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput
2862
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotCreateNestedOneWithoutAgentInput
2863
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyCreateNestedManyWithoutAgentInput
2864
+ }
2865
+
2866
+ export type AgentUncheckedCreateWithoutGithubInstallationsSnapshotInput = {
2867
+ id?: string
2868
+ name: string
2869
+ slackId?: string | null
2870
+ slackBotToken?: string | null
2871
+ anthropicApiKey?: string | null
2872
+ selfHosted?: boolean
2873
+ repos?: Prisma.AgentCreatereposInput | string[]
2874
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
2875
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
2876
+ restrictSlackToMembers?: boolean
2877
+ typeName?: string
2878
+ accountId?: string | null
2879
+ trialExpiresAt?: Date | string | null
2880
+ trialExpiryWarnedAt?: Date | string | null
2881
+ ownerEmail?: string | null
2882
+ anthropicIdentityName?: string | null
2883
+ anthropicServiceAccountId?: string | null
2884
+ anthropicFederationRuleId?: string | null
2885
+ k8sServiceAccountName?: string | null
2886
+ autoPostReviews?: boolean
2887
+ allowSelfReview?: boolean
2888
+ minConfidence?: number
2889
+ maxFindings?: number
2890
+ cleanupMergedWorktrees?: boolean
2891
+ cleanupAfterDays?: number
2892
+ createdAt?: Date | string
2893
+ updatedAt?: Date | string
2894
+ envVars?: Prisma.AgentEnvUncheckedCreateNestedManyWithoutAgentInput
2895
+ cronJobs?: Prisma.AgentCronJobUncheckedCreateNestedManyWithoutAgentInput
2896
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput
2897
+ tokens?: Prisma.AgentTokenUncheckedCreateNestedManyWithoutAgentInput
2898
+ plugins?: Prisma.AgentPluginUncheckedCreateNestedManyWithoutAgentInput
2899
+ members?: Prisma.AgentMemberUncheckedCreateNestedManyWithoutAgentInput
2900
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput
2901
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedCreateNestedOneWithoutAgentInput
2902
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedCreateNestedManyWithoutAgentInput
2903
+ }
2904
+
2905
+ export type AgentCreateOrConnectWithoutGithubInstallationsSnapshotInput = {
2906
+ where: Prisma.AgentWhereUniqueInput
2907
+ create: Prisma.XOR<Prisma.AgentCreateWithoutGithubInstallationsSnapshotInput, Prisma.AgentUncheckedCreateWithoutGithubInstallationsSnapshotInput>
2908
+ }
2909
+
2910
+ export type AgentUpsertWithoutGithubInstallationsSnapshotInput = {
2911
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutGithubInstallationsSnapshotInput, Prisma.AgentUncheckedUpdateWithoutGithubInstallationsSnapshotInput>
2912
+ create: Prisma.XOR<Prisma.AgentCreateWithoutGithubInstallationsSnapshotInput, Prisma.AgentUncheckedCreateWithoutGithubInstallationsSnapshotInput>
2913
+ where?: Prisma.AgentWhereInput
2914
+ }
2915
+
2916
+ export type AgentUpdateToOneWithWhereWithoutGithubInstallationsSnapshotInput = {
2917
+ where?: Prisma.AgentWhereInput
2918
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutGithubInstallationsSnapshotInput, Prisma.AgentUncheckedUpdateWithoutGithubInstallationsSnapshotInput>
2919
+ }
2920
+
2921
+ export type AgentUpdateWithoutGithubInstallationsSnapshotInput = {
2922
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2923
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2924
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2925
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2926
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2927
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2928
+ repos?: Prisma.AgentUpdatereposInput | string[]
2929
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2930
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2931
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2932
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2933
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2934
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2935
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2936
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2937
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2938
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2939
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2940
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2941
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2942
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2943
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2944
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2945
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2946
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2947
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2948
+ account?: Prisma.AccountUpdateOneWithoutAgentsNestedInput
2949
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
2950
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
2951
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
2952
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
2953
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
2954
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
2955
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
2956
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
2957
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
2958
+ }
2959
+
2960
+ export type AgentUncheckedUpdateWithoutGithubInstallationsSnapshotInput = {
2961
+ id?: Prisma.StringFieldUpdateOperationsInput | string
2962
+ name?: Prisma.StringFieldUpdateOperationsInput | string
2963
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2964
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2965
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2966
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
2967
+ repos?: Prisma.AgentUpdatereposInput | string[]
2968
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
2969
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
2970
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
2971
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
2972
+ accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2973
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2974
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
2975
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2976
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2977
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2978
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2979
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
2980
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
2981
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
2982
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
2983
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
2984
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
2985
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
2986
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2987
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
2988
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
2989
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
2990
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
2991
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
2992
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
2993
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
2994
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
2995
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
2996
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
2997
+ }
2998
+
2999
+ export type AgentCreateManyAccountInput = {
3000
+ id?: string
3001
+ name: string
3002
+ slackId?: string | null
3003
+ slackBotToken?: string | null
3004
+ anthropicApiKey?: string | null
3005
+ selfHosted?: boolean
3006
+ repos?: Prisma.AgentCreatereposInput | string[]
3007
+ reviewAuthorAllowlist?: Prisma.AgentCreatereviewAuthorAllowlistInput | string[]
3008
+ patchAuthorAllowlist?: Prisma.AgentCreatepatchAuthorAllowlistInput | string[]
3009
+ restrictSlackToMembers?: boolean
3010
+ typeName?: string
3011
+ trialExpiresAt?: Date | string | null
3012
+ trialExpiryWarnedAt?: Date | string | null
3013
+ ownerEmail?: string | null
3014
+ anthropicIdentityName?: string | null
3015
+ anthropicServiceAccountId?: string | null
3016
+ anthropicFederationRuleId?: string | null
3017
+ k8sServiceAccountName?: string | null
3018
+ autoPostReviews?: boolean
3019
+ allowSelfReview?: boolean
3020
+ minConfidence?: number
3021
+ maxFindings?: number
3022
+ cleanupMergedWorktrees?: boolean
3023
+ cleanupAfterDays?: number
3024
+ createdAt?: Date | string
3025
+ updatedAt?: Date | string
3026
+ }
3027
+
3028
+ export type AgentUpdateWithoutAccountInput = {
3029
+ id?: Prisma.StringFieldUpdateOperationsInput | string
3030
+ name?: Prisma.StringFieldUpdateOperationsInput | string
3031
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3032
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3033
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3034
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
3035
+ repos?: Prisma.AgentUpdatereposInput | string[]
3036
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
3037
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
3038
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
3039
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
3040
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
3041
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
3042
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3043
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3044
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3045
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3046
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3047
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
3048
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
3049
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
3050
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
3051
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
3052
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
3053
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
3054
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
3055
+ envVars?: Prisma.AgentEnvUpdateManyWithoutAgentNestedInput
3056
+ cronJobs?: Prisma.AgentCronJobUpdateManyWithoutAgentNestedInput
3057
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput
3058
+ tokens?: Prisma.AgentTokenUpdateManyWithoutAgentNestedInput
3059
+ plugins?: Prisma.AgentPluginUpdateManyWithoutAgentNestedInput
3060
+ members?: Prisma.AgentMemberUpdateManyWithoutAgentNestedInput
3061
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput
3062
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUpdateOneWithoutAgentNestedInput
3063
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUpdateOneWithoutAgentNestedInput
3064
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUpdateManyWithoutAgentNestedInput
3065
+ }
3066
+
3067
+ export type AgentUncheckedUpdateWithoutAccountInput = {
3068
+ id?: Prisma.StringFieldUpdateOperationsInput | string
3069
+ name?: Prisma.StringFieldUpdateOperationsInput | string
3070
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3071
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3072
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3073
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
3074
+ repos?: Prisma.AgentUpdatereposInput | string[]
3075
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
3076
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
3077
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
3078
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
3079
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
3080
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
3081
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3082
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3083
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3084
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3085
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3086
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
3087
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
3088
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
3089
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
3090
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
3091
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
3092
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
3093
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
3094
+ envVars?: Prisma.AgentEnvUncheckedUpdateManyWithoutAgentNestedInput
3095
+ cronJobs?: Prisma.AgentCronJobUncheckedUpdateManyWithoutAgentNestedInput
3096
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput
3097
+ tokens?: Prisma.AgentTokenUncheckedUpdateManyWithoutAgentNestedInput
3098
+ plugins?: Prisma.AgentPluginUncheckedUpdateManyWithoutAgentNestedInput
3099
+ members?: Prisma.AgentMemberUncheckedUpdateManyWithoutAgentNestedInput
3100
+ chatTokenUsage?: Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput
3101
+ workQueueSnapshot?: Prisma.AgentWorkQueueSnapshotUncheckedUpdateOneWithoutAgentNestedInput
3102
+ githubInstallationsSnapshot?: Prisma.AgentGitHubInstallationsSnapshotUncheckedUpdateOneWithoutAgentNestedInput
3103
+ phaseMethodologies?: Prisma.AgentPhaseMethodologyUncheckedUpdateManyWithoutAgentNestedInput
3104
+ }
3105
+
3106
+ export type AgentUncheckedUpdateManyWithoutAccountInput = {
3107
+ id?: Prisma.StringFieldUpdateOperationsInput | string
3108
+ name?: Prisma.StringFieldUpdateOperationsInput | string
3109
+ slackId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3110
+ slackBotToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3111
+ anthropicApiKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3112
+ selfHosted?: Prisma.BoolFieldUpdateOperationsInput | boolean
3113
+ repos?: Prisma.AgentUpdatereposInput | string[]
3114
+ reviewAuthorAllowlist?: Prisma.AgentUpdatereviewAuthorAllowlistInput | string[]
3115
+ patchAuthorAllowlist?: Prisma.AgentUpdatepatchAuthorAllowlistInput | string[]
3116
+ restrictSlackToMembers?: Prisma.BoolFieldUpdateOperationsInput | boolean
3117
+ typeName?: Prisma.StringFieldUpdateOperationsInput | string
3118
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
3119
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
3120
+ ownerEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3121
+ anthropicIdentityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3122
+ anthropicServiceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3123
+ anthropicFederationRuleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3124
+ k8sServiceAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
3125
+ autoPostReviews?: Prisma.BoolFieldUpdateOperationsInput | boolean
3126
+ allowSelfReview?: Prisma.BoolFieldUpdateOperationsInput | boolean
3127
+ minConfidence?: Prisma.IntFieldUpdateOperationsInput | number
3128
+ maxFindings?: Prisma.IntFieldUpdateOperationsInput | number
3129
+ cleanupMergedWorktrees?: Prisma.BoolFieldUpdateOperationsInput | boolean
3130
+ cleanupAfterDays?: Prisma.IntFieldUpdateOperationsInput | number
3131
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
3132
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
3133
+ }
3134
+
3135
+
3136
+ /**
3137
+ * Count Type AgentCountOutputType
3138
+ */
3139
+
3140
+ export type AgentCountOutputType = {
3141
+ envVars: number
3142
+ cronJobs: number
3143
+ tools: number
3144
+ tokens: number
3145
+ plugins: number
3146
+ members: number
3147
+ chatTokenUsage: number
3148
+ phaseMethodologies: number
3149
+ }
3150
+
3151
+ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3152
+ envVars?: boolean | AgentCountOutputTypeCountEnvVarsArgs
3153
+ cronJobs?: boolean | AgentCountOutputTypeCountCronJobsArgs
3154
+ tools?: boolean | AgentCountOutputTypeCountToolsArgs
3155
+ tokens?: boolean | AgentCountOutputTypeCountTokensArgs
3156
+ plugins?: boolean | AgentCountOutputTypeCountPluginsArgs
3157
+ members?: boolean | AgentCountOutputTypeCountMembersArgs
3158
+ chatTokenUsage?: boolean | AgentCountOutputTypeCountChatTokenUsageArgs
3159
+ phaseMethodologies?: boolean | AgentCountOutputTypeCountPhaseMethodologiesArgs
3160
+ }
3161
+
3162
+ /**
3163
+ * AgentCountOutputType without action
3164
+ */
3165
+ export type AgentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3166
+ /**
3167
+ * Select specific fields to fetch from the AgentCountOutputType
3168
+ */
3169
+ select?: Prisma.AgentCountOutputTypeSelect<ExtArgs> | null
3170
+ }
3171
+
3172
+ /**
3173
+ * AgentCountOutputType without action
3174
+ */
3175
+ export type AgentCountOutputTypeCountEnvVarsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3176
+ where?: Prisma.AgentEnvWhereInput
3177
+ }
3178
+
3179
+ /**
3180
+ * AgentCountOutputType without action
3181
+ */
3182
+ export type AgentCountOutputTypeCountCronJobsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3183
+ where?: Prisma.AgentCronJobWhereInput
3184
+ }
3185
+
3186
+ /**
3187
+ * AgentCountOutputType without action
3188
+ */
3189
+ export type AgentCountOutputTypeCountToolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3190
+ where?: Prisma.AgentToolWhereInput
3191
+ }
3192
+
3193
+ /**
3194
+ * AgentCountOutputType without action
3195
+ */
3196
+ export type AgentCountOutputTypeCountTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3197
+ where?: Prisma.AgentTokenWhereInput
3198
+ }
3199
+
3200
+ /**
3201
+ * AgentCountOutputType without action
3202
+ */
3203
+ export type AgentCountOutputTypeCountPluginsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3204
+ where?: Prisma.AgentPluginWhereInput
3205
+ }
3206
+
3207
+ /**
3208
+ * AgentCountOutputType without action
3209
+ */
3210
+ export type AgentCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3211
+ where?: Prisma.AgentMemberWhereInput
3212
+ }
3213
+
3214
+ /**
3215
+ * AgentCountOutputType without action
3216
+ */
3217
+ export type AgentCountOutputTypeCountChatTokenUsageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3218
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
3219
+ }
3220
+
3221
+ /**
3222
+ * AgentCountOutputType without action
3223
+ */
3224
+ export type AgentCountOutputTypeCountPhaseMethodologiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3225
+ where?: Prisma.AgentPhaseMethodologyWhereInput
3226
+ }
3227
+
3228
+
3229
+ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3230
+ id?: boolean
3231
+ name?: boolean
3232
+ slackId?: boolean
3233
+ slackBotToken?: boolean
3234
+ anthropicApiKey?: boolean
3235
+ selfHosted?: boolean
3236
+ repos?: boolean
3237
+ reviewAuthorAllowlist?: boolean
3238
+ patchAuthorAllowlist?: boolean
3239
+ restrictSlackToMembers?: boolean
3240
+ typeName?: boolean
3241
+ accountId?: boolean
3242
+ trialExpiresAt?: boolean
3243
+ trialExpiryWarnedAt?: boolean
3244
+ ownerEmail?: boolean
3245
+ anthropicIdentityName?: boolean
3246
+ anthropicServiceAccountId?: boolean
3247
+ anthropicFederationRuleId?: boolean
3248
+ k8sServiceAccountName?: boolean
3249
+ autoPostReviews?: boolean
3250
+ allowSelfReview?: boolean
3251
+ minConfidence?: boolean
3252
+ maxFindings?: boolean
3253
+ cleanupMergedWorktrees?: boolean
3254
+ cleanupAfterDays?: boolean
3255
+ createdAt?: boolean
3256
+ updatedAt?: boolean
3257
+ account?: boolean | Prisma.Agent$accountArgs<ExtArgs>
3258
+ envVars?: boolean | Prisma.Agent$envVarsArgs<ExtArgs>
3259
+ cronJobs?: boolean | Prisma.Agent$cronJobsArgs<ExtArgs>
3260
+ tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>
3261
+ tokens?: boolean | Prisma.Agent$tokensArgs<ExtArgs>
3262
+ plugins?: boolean | Prisma.Agent$pluginsArgs<ExtArgs>
3263
+ members?: boolean | Prisma.Agent$membersArgs<ExtArgs>
3264
+ chatTokenUsage?: boolean | Prisma.Agent$chatTokenUsageArgs<ExtArgs>
3265
+ workQueueSnapshot?: boolean | Prisma.Agent$workQueueSnapshotArgs<ExtArgs>
3266
+ githubInstallationsSnapshot?: boolean | Prisma.Agent$githubInstallationsSnapshotArgs<ExtArgs>
3267
+ phaseMethodologies?: boolean | Prisma.Agent$phaseMethodologiesArgs<ExtArgs>
3268
+ _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>
3269
+ }, ExtArgs["result"]["agent"]>
3270
+
3271
+ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3272
+ id?: boolean
3273
+ name?: boolean
3274
+ slackId?: boolean
3275
+ slackBotToken?: boolean
3276
+ anthropicApiKey?: boolean
3277
+ selfHosted?: boolean
3278
+ repos?: boolean
3279
+ reviewAuthorAllowlist?: boolean
3280
+ patchAuthorAllowlist?: boolean
3281
+ restrictSlackToMembers?: boolean
3282
+ typeName?: boolean
3283
+ accountId?: boolean
3284
+ trialExpiresAt?: boolean
3285
+ trialExpiryWarnedAt?: boolean
3286
+ ownerEmail?: boolean
3287
+ anthropicIdentityName?: boolean
3288
+ anthropicServiceAccountId?: boolean
3289
+ anthropicFederationRuleId?: boolean
3290
+ k8sServiceAccountName?: boolean
3291
+ autoPostReviews?: boolean
3292
+ allowSelfReview?: boolean
3293
+ minConfidence?: boolean
3294
+ maxFindings?: boolean
3295
+ cleanupMergedWorktrees?: boolean
3296
+ cleanupAfterDays?: boolean
3297
+ createdAt?: boolean
3298
+ updatedAt?: boolean
3299
+ account?: boolean | Prisma.Agent$accountArgs<ExtArgs>
3300
+ }, ExtArgs["result"]["agent"]>
3301
+
3302
+ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3303
+ id?: boolean
3304
+ name?: boolean
3305
+ slackId?: boolean
3306
+ slackBotToken?: boolean
3307
+ anthropicApiKey?: boolean
3308
+ selfHosted?: boolean
3309
+ repos?: boolean
3310
+ reviewAuthorAllowlist?: boolean
3311
+ patchAuthorAllowlist?: boolean
3312
+ restrictSlackToMembers?: boolean
3313
+ typeName?: boolean
3314
+ accountId?: boolean
3315
+ trialExpiresAt?: boolean
3316
+ trialExpiryWarnedAt?: boolean
3317
+ ownerEmail?: boolean
3318
+ anthropicIdentityName?: boolean
3319
+ anthropicServiceAccountId?: boolean
3320
+ anthropicFederationRuleId?: boolean
3321
+ k8sServiceAccountName?: boolean
3322
+ autoPostReviews?: boolean
3323
+ allowSelfReview?: boolean
3324
+ minConfidence?: boolean
3325
+ maxFindings?: boolean
3326
+ cleanupMergedWorktrees?: boolean
3327
+ cleanupAfterDays?: boolean
3328
+ createdAt?: boolean
3329
+ updatedAt?: boolean
3330
+ account?: boolean | Prisma.Agent$accountArgs<ExtArgs>
3331
+ }, ExtArgs["result"]["agent"]>
3332
+
3333
+ export type AgentSelectScalar = {
3334
+ id?: boolean
3335
+ name?: boolean
3336
+ slackId?: boolean
3337
+ slackBotToken?: boolean
3338
+ anthropicApiKey?: boolean
3339
+ selfHosted?: boolean
3340
+ repos?: boolean
3341
+ reviewAuthorAllowlist?: boolean
3342
+ patchAuthorAllowlist?: boolean
3343
+ restrictSlackToMembers?: boolean
3344
+ typeName?: boolean
3345
+ accountId?: boolean
3346
+ trialExpiresAt?: boolean
3347
+ trialExpiryWarnedAt?: boolean
3348
+ ownerEmail?: boolean
3349
+ anthropicIdentityName?: boolean
3350
+ anthropicServiceAccountId?: boolean
3351
+ anthropicFederationRuleId?: boolean
3352
+ k8sServiceAccountName?: boolean
3353
+ autoPostReviews?: boolean
3354
+ allowSelfReview?: boolean
3355
+ minConfidence?: boolean
3356
+ maxFindings?: boolean
3357
+ cleanupMergedWorktrees?: boolean
3358
+ cleanupAfterDays?: boolean
3359
+ createdAt?: boolean
3360
+ updatedAt?: boolean
3361
+ }
3362
+
3363
+ export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "slackId" | "slackBotToken" | "anthropicApiKey" | "selfHosted" | "repos" | "reviewAuthorAllowlist" | "patchAuthorAllowlist" | "restrictSlackToMembers" | "typeName" | "accountId" | "trialExpiresAt" | "trialExpiryWarnedAt" | "ownerEmail" | "anthropicIdentityName" | "anthropicServiceAccountId" | "anthropicFederationRuleId" | "k8sServiceAccountName" | "autoPostReviews" | "allowSelfReview" | "minConfidence" | "maxFindings" | "cleanupMergedWorktrees" | "cleanupAfterDays" | "createdAt" | "updatedAt", ExtArgs["result"]["agent"]>
3364
+ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3365
+ account?: boolean | Prisma.Agent$accountArgs<ExtArgs>
3366
+ envVars?: boolean | Prisma.Agent$envVarsArgs<ExtArgs>
3367
+ cronJobs?: boolean | Prisma.Agent$cronJobsArgs<ExtArgs>
3368
+ tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>
3369
+ tokens?: boolean | Prisma.Agent$tokensArgs<ExtArgs>
3370
+ plugins?: boolean | Prisma.Agent$pluginsArgs<ExtArgs>
3371
+ members?: boolean | Prisma.Agent$membersArgs<ExtArgs>
3372
+ chatTokenUsage?: boolean | Prisma.Agent$chatTokenUsageArgs<ExtArgs>
3373
+ workQueueSnapshot?: boolean | Prisma.Agent$workQueueSnapshotArgs<ExtArgs>
3374
+ githubInstallationsSnapshot?: boolean | Prisma.Agent$githubInstallationsSnapshotArgs<ExtArgs>
3375
+ phaseMethodologies?: boolean | Prisma.Agent$phaseMethodologiesArgs<ExtArgs>
3376
+ _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>
3377
+ }
3378
+ export type AgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3379
+ account?: boolean | Prisma.Agent$accountArgs<ExtArgs>
3380
+ }
3381
+ export type AgentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3382
+ account?: boolean | Prisma.Agent$accountArgs<ExtArgs>
3383
+ }
3384
+
3385
+ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3386
+ name: "Agent"
3387
+ objects: {
3388
+ account: Prisma.$AccountPayload<ExtArgs> | null
3389
+ envVars: Prisma.$AgentEnvPayload<ExtArgs>[]
3390
+ cronJobs: Prisma.$AgentCronJobPayload<ExtArgs>[]
3391
+ tools: Prisma.$AgentToolPayload<ExtArgs>[]
3392
+ tokens: Prisma.$AgentTokenPayload<ExtArgs>[]
3393
+ plugins: Prisma.$AgentPluginPayload<ExtArgs>[]
3394
+ members: Prisma.$AgentMemberPayload<ExtArgs>[]
3395
+ chatTokenUsage: Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>[]
3396
+ workQueueSnapshot: Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs> | null
3397
+ githubInstallationsSnapshot: Prisma.$AgentGitHubInstallationsSnapshotPayload<ExtArgs> | null
3398
+ phaseMethodologies: Prisma.$AgentPhaseMethodologyPayload<ExtArgs>[]
3399
+ }
3400
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
3401
+ id: string
3402
+ name: string
3403
+ slackId: string | null
3404
+ slackBotToken: string | null
3405
+ anthropicApiKey: string | null
3406
+ selfHosted: boolean
3407
+ repos: string[]
3408
+ reviewAuthorAllowlist: string[]
3409
+ patchAuthorAllowlist: string[]
3410
+ restrictSlackToMembers: boolean
3411
+ typeName: string
3412
+ accountId: string | null
3413
+ trialExpiresAt: Date | null
3414
+ trialExpiryWarnedAt: Date | null
3415
+ ownerEmail: string | null
3416
+ anthropicIdentityName: string | null
3417
+ anthropicServiceAccountId: string | null
3418
+ anthropicFederationRuleId: string | null
3419
+ k8sServiceAccountName: string | null
3420
+ autoPostReviews: boolean
3421
+ allowSelfReview: boolean
3422
+ minConfidence: number
3423
+ maxFindings: number
3424
+ cleanupMergedWorktrees: boolean
3425
+ cleanupAfterDays: number
3426
+ createdAt: Date
3427
+ updatedAt: Date
3428
+ }, ExtArgs["result"]["agent"]>
3429
+ composites: {}
3430
+ }
3431
+
3432
+ export type AgentGetPayload<S extends boolean | null | undefined | AgentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentPayload, S>
3433
+
3434
+ export type AgentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
3435
+ Omit<AgentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
3436
+ select?: AgentCountAggregateInputType | true
3437
+ }
3438
+
3439
+ export interface AgentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
3440
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Agent'], meta: { name: 'Agent' } }
3441
+ /**
3442
+ * Find zero or one Agent that matches the filter.
3443
+ * @param {AgentFindUniqueArgs} args - Arguments to find a Agent
3444
+ * @example
3445
+ * // Get one Agent
3446
+ * const agent = await prisma.agent.findUnique({
3447
+ * where: {
3448
+ * // ... provide filter here
3449
+ * }
3450
+ * })
3451
+ */
3452
+ 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>
3453
+
3454
+ /**
3455
+ * Find one Agent that matches the filter or throw an error with `error.code='P2025'`
3456
+ * if no matches were found.
3457
+ * @param {AgentFindUniqueOrThrowArgs} args - Arguments to find a Agent
3458
+ * @example
3459
+ * // Get one Agent
3460
+ * const agent = await prisma.agent.findUniqueOrThrow({
3461
+ * where: {
3462
+ * // ... provide filter here
3463
+ * }
3464
+ * })
3465
+ */
3466
+ 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>
3467
+
3468
+ /**
3469
+ * Find the first Agent that matches the filter.
3470
+ * Note, that providing `undefined` is treated as the value not being there.
3471
+ * Read more here: https://pris.ly/d/null-undefined
3472
+ * @param {AgentFindFirstArgs} args - Arguments to find a Agent
3473
+ * @example
3474
+ * // Get one Agent
3475
+ * const agent = await prisma.agent.findFirst({
3476
+ * where: {
3477
+ * // ... provide filter here
3478
+ * }
3479
+ * })
3480
+ */
3481
+ 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>
3482
+
3483
+ /**
3484
+ * Find the first Agent that matches the filter or
3485
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
3486
+ * Note, that providing `undefined` is treated as the value not being there.
3487
+ * Read more here: https://pris.ly/d/null-undefined
3488
+ * @param {AgentFindFirstOrThrowArgs} args - Arguments to find a Agent
3489
+ * @example
3490
+ * // Get one Agent
3491
+ * const agent = await prisma.agent.findFirstOrThrow({
3492
+ * where: {
3493
+ * // ... provide filter here
3494
+ * }
3495
+ * })
3496
+ */
3497
+ 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>
3498
+
3499
+ /**
3500
+ * Find zero or more Agents that matches the filter.
3501
+ * Note, that providing `undefined` is treated as the value not being there.
3502
+ * Read more here: https://pris.ly/d/null-undefined
3503
+ * @param {AgentFindManyArgs} args - Arguments to filter and select certain fields only.
3504
+ * @example
3505
+ * // Get all Agents
3506
+ * const agents = await prisma.agent.findMany()
3507
+ *
3508
+ * // Get first 10 Agents
3509
+ * const agents = await prisma.agent.findMany({ take: 10 })
3510
+ *
3511
+ * // Only select the `id`
3512
+ * const agentWithIdOnly = await prisma.agent.findMany({ select: { id: true } })
3513
+ *
3514
+ */
3515
+ findMany<T extends AgentFindManyArgs>(args?: Prisma.SelectSubset<T, AgentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
3516
+
3517
+ /**
3518
+ * Create a Agent.
3519
+ * @param {AgentCreateArgs} args - Arguments to create a Agent.
3520
+ * @example
3521
+ * // Create one Agent
3522
+ * const Agent = await prisma.agent.create({
3523
+ * data: {
3524
+ * // ... data to create a Agent
3525
+ * }
3526
+ * })
3527
+ *
3528
+ */
3529
+ 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>
3530
+
3531
+ /**
3532
+ * Create many Agents.
3533
+ * @param {AgentCreateManyArgs} args - Arguments to create many Agents.
3534
+ * @example
3535
+ * // Create many Agents
3536
+ * const agent = await prisma.agent.createMany({
3537
+ * data: [
3538
+ * // ... provide data here
3539
+ * ]
3540
+ * })
3541
+ *
3542
+ */
3543
+ createMany<T extends AgentCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
3544
+
3545
+ /**
3546
+ * Create many Agents and returns the data saved in the database.
3547
+ * @param {AgentCreateManyAndReturnArgs} args - Arguments to create many Agents.
3548
+ * @example
3549
+ * // Create many Agents
3550
+ * const agent = await prisma.agent.createManyAndReturn({
3551
+ * data: [
3552
+ * // ... provide data here
3553
+ * ]
3554
+ * })
3555
+ *
3556
+ * // Create many Agents and only return the `id`
3557
+ * const agentWithIdOnly = await prisma.agent.createManyAndReturn({
3558
+ * select: { id: true },
3559
+ * data: [
3560
+ * // ... provide data here
3561
+ * ]
3562
+ * })
3563
+ * Note, that providing `undefined` is treated as the value not being there.
3564
+ * Read more here: https://pris.ly/d/null-undefined
3565
+ *
3566
+ */
3567
+ createManyAndReturn<T extends AgentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
3568
+
3569
+ /**
3570
+ * Delete a Agent.
3571
+ * @param {AgentDeleteArgs} args - Arguments to delete one Agent.
3572
+ * @example
3573
+ * // Delete one Agent
3574
+ * const Agent = await prisma.agent.delete({
3575
+ * where: {
3576
+ * // ... filter to delete one Agent
3577
+ * }
3578
+ * })
3579
+ *
3580
+ */
3581
+ 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>
3582
+
3583
+ /**
3584
+ * Update one Agent.
3585
+ * @param {AgentUpdateArgs} args - Arguments to update one Agent.
3586
+ * @example
3587
+ * // Update one Agent
3588
+ * const agent = await prisma.agent.update({
3589
+ * where: {
3590
+ * // ... provide filter here
3591
+ * },
3592
+ * data: {
3593
+ * // ... provide data here
3594
+ * }
3595
+ * })
3596
+ *
3597
+ */
3598
+ 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>
3599
+
3600
+ /**
3601
+ * Delete zero or more Agents.
3602
+ * @param {AgentDeleteManyArgs} args - Arguments to filter Agents to delete.
3603
+ * @example
3604
+ * // Delete a few Agents
3605
+ * const { count } = await prisma.agent.deleteMany({
3606
+ * where: {
3607
+ * // ... provide filter here
3608
+ * }
3609
+ * })
3610
+ *
3611
+ */
3612
+ deleteMany<T extends AgentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
3613
+
3614
+ /**
3615
+ * Update zero or more Agents.
3616
+ * Note, that providing `undefined` is treated as the value not being there.
3617
+ * Read more here: https://pris.ly/d/null-undefined
3618
+ * @param {AgentUpdateManyArgs} args - Arguments to update one or more rows.
3619
+ * @example
3620
+ * // Update many Agents
3621
+ * const agent = await prisma.agent.updateMany({
3622
+ * where: {
3623
+ * // ... provide filter here
3624
+ * },
3625
+ * data: {
3626
+ * // ... provide data here
3627
+ * }
3628
+ * })
3629
+ *
3630
+ */
3631
+ updateMany<T extends AgentUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
3632
+
3633
+ /**
3634
+ * Update zero or more Agents and returns the data updated in the database.
3635
+ * @param {AgentUpdateManyAndReturnArgs} args - Arguments to update many Agents.
3636
+ * @example
3637
+ * // Update many Agents
3638
+ * const agent = await prisma.agent.updateManyAndReturn({
3639
+ * where: {
3640
+ * // ... provide filter here
3641
+ * },
3642
+ * data: [
3643
+ * // ... provide data here
3644
+ * ]
3645
+ * })
3646
+ *
3647
+ * // Update zero or more Agents and only return the `id`
3648
+ * const agentWithIdOnly = await prisma.agent.updateManyAndReturn({
3649
+ * select: { id: true },
3650
+ * where: {
3651
+ * // ... provide filter here
3652
+ * },
3653
+ * data: [
3654
+ * // ... provide data here
3655
+ * ]
3656
+ * })
3657
+ * Note, that providing `undefined` is treated as the value not being there.
3658
+ * Read more here: https://pris.ly/d/null-undefined
3659
+ *
3660
+ */
3661
+ updateManyAndReturn<T extends AgentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
3662
+
3663
+ /**
3664
+ * Create or update one Agent.
3665
+ * @param {AgentUpsertArgs} args - Arguments to update or create a Agent.
3666
+ * @example
3667
+ * // Update or create a Agent
3668
+ * const agent = await prisma.agent.upsert({
3669
+ * create: {
3670
+ * // ... data to create a Agent
3671
+ * },
3672
+ * update: {
3673
+ * // ... in case it already exists, update
3674
+ * },
3675
+ * where: {
3676
+ * // ... the filter for the Agent we want to update
3677
+ * }
3678
+ * })
3679
+ */
3680
+ 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>
3681
+
3682
+
3683
+ /**
3684
+ * Count the number of Agents.
3685
+ * Note, that providing `undefined` is treated as the value not being there.
3686
+ * Read more here: https://pris.ly/d/null-undefined
3687
+ * @param {AgentCountArgs} args - Arguments to filter Agents to count.
3688
+ * @example
3689
+ * // Count the number of Agents
3690
+ * const count = await prisma.agent.count({
3691
+ * where: {
3692
+ * // ... the filter for the Agents we want to count
3693
+ * }
3694
+ * })
3695
+ **/
3696
+ count<T extends AgentCountArgs>(
3697
+ args?: Prisma.Subset<T, AgentCountArgs>,
3698
+ ): Prisma.PrismaPromise<
3699
+ T extends runtime.Types.Utils.Record<'select', any>
3700
+ ? T['select'] extends true
3701
+ ? number
3702
+ : Prisma.GetScalarType<T['select'], AgentCountAggregateOutputType>
3703
+ : number
3704
+ >
3705
+
3706
+ /**
3707
+ * Allows you to perform aggregations operations on a Agent.
3708
+ * Note, that providing `undefined` is treated as the value not being there.
3709
+ * Read more here: https://pris.ly/d/null-undefined
3710
+ * @param {AgentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
3711
+ * @example
3712
+ * // Ordered by age ascending
3713
+ * // Where email contains prisma.io
3714
+ * // Limited to the 10 users
3715
+ * const aggregations = await prisma.user.aggregate({
3716
+ * _avg: {
3717
+ * age: true,
3718
+ * },
3719
+ * where: {
3720
+ * email: {
3721
+ * contains: "prisma.io",
3722
+ * },
3723
+ * },
3724
+ * orderBy: {
3725
+ * age: "asc",
3726
+ * },
3727
+ * take: 10,
3728
+ * })
3729
+ **/
3730
+ aggregate<T extends AgentAggregateArgs>(args: Prisma.Subset<T, AgentAggregateArgs>): Prisma.PrismaPromise<GetAgentAggregateType<T>>
3731
+
3732
+ /**
3733
+ * Group by Agent.
3734
+ * Note, that providing `undefined` is treated as the value not being there.
3735
+ * Read more here: https://pris.ly/d/null-undefined
3736
+ * @param {AgentGroupByArgs} args - Group by arguments.
3737
+ * @example
3738
+ * // Group by city, order by createdAt, get count
3739
+ * const result = await prisma.user.groupBy({
3740
+ * by: ['city', 'createdAt'],
3741
+ * orderBy: {
3742
+ * createdAt: true
3743
+ * },
3744
+ * _count: {
3745
+ * _all: true
3746
+ * },
3747
+ * })
3748
+ *
3749
+ **/
3750
+ groupBy<
3751
+ T extends AgentGroupByArgs,
3752
+ HasSelectOrTake extends Prisma.Or<
3753
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
3754
+ Prisma.Extends<'take', Prisma.Keys<T>>
3755
+ >,
3756
+ OrderByArg extends Prisma.True extends HasSelectOrTake
3757
+ ? { orderBy: AgentGroupByArgs['orderBy'] }
3758
+ : { orderBy?: AgentGroupByArgs['orderBy'] },
3759
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
3760
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
3761
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
3762
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
3763
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
3764
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
3765
+ InputErrors extends ByEmpty extends Prisma.True
3766
+ ? `Error: "by" must not be empty.`
3767
+ : HavingValid extends Prisma.False
3768
+ ? {
3769
+ [P in HavingFields]: P extends ByFields
3770
+ ? never
3771
+ : P extends string
3772
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
3773
+ : [
3774
+ Error,
3775
+ 'Field ',
3776
+ P,
3777
+ ` in "having" needs to be provided in "by"`,
3778
+ ]
3779
+ }[HavingFields]
3780
+ : 'take' extends Prisma.Keys<T>
3781
+ ? 'orderBy' extends Prisma.Keys<T>
3782
+ ? ByValid extends Prisma.True
3783
+ ? {}
3784
+ : {
3785
+ [P in OrderFields]: P extends ByFields
3786
+ ? never
3787
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
3788
+ }[OrderFields]
3789
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
3790
+ : 'skip' extends Prisma.Keys<T>
3791
+ ? 'orderBy' extends Prisma.Keys<T>
3792
+ ? ByValid extends Prisma.True
3793
+ ? {}
3794
+ : {
3795
+ [P in OrderFields]: P extends ByFields
3796
+ ? never
3797
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
3798
+ }[OrderFields]
3799
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
3800
+ : ByValid extends Prisma.True
3801
+ ? {}
3802
+ : {
3803
+ [P in OrderFields]: P extends ByFields
3804
+ ? never
3805
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
3806
+ }[OrderFields]
3807
+ >(args: Prisma.SubsetIntersection<T, AgentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
3808
+ /**
3809
+ * Fields of the Agent model
3810
+ */
3811
+ readonly fields: AgentFieldRefs;
3812
+ }
3813
+
3814
+ /**
3815
+ * The delegate class that acts as a "Promise-like" for Agent.
3816
+ * Why is this prefixed with `Prisma__`?
3817
+ * Because we want to prevent naming conflicts as mentioned in
3818
+ * https://github.com/prisma/prisma-client-js/issues/707
3819
+ */
3820
+ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
3821
+ readonly [Symbol.toStringTag]: "PrismaPromise"
3822
+ account<T extends Prisma.Agent$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$accountArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
3823
+ envVars<T extends Prisma.Agent$envVarsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$envVarsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentEnvPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3824
+ cronJobs<T extends Prisma.Agent$cronJobsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$cronJobsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentCronJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3825
+ 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>
3826
+ tokens<T extends Prisma.Agent$tokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$tokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3827
+ plugins<T extends Prisma.Agent$pluginsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$pluginsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPluginPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3828
+ members<T extends Prisma.Agent$membersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$membersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3829
+ chatTokenUsage<T extends Prisma.Agent$chatTokenUsageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$chatTokenUsageArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3830
+ workQueueSnapshot<T extends Prisma.Agent$workQueueSnapshotArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$workQueueSnapshotArgs<ExtArgs>>): Prisma.Prisma__AgentWorkQueueSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentWorkQueueSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
3831
+ githubInstallationsSnapshot<T extends Prisma.Agent$githubInstallationsSnapshotArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$githubInstallationsSnapshotArgs<ExtArgs>>): Prisma.Prisma__AgentGitHubInstallationsSnapshotClient<runtime.Types.Result.GetResult<Prisma.$AgentGitHubInstallationsSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
3832
+ phaseMethodologies<T extends Prisma.Agent$phaseMethodologiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$phaseMethodologiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPhaseMethodologyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3833
+ /**
3834
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
3835
+ * @param onfulfilled The callback to execute when the Promise is resolved.
3836
+ * @param onrejected The callback to execute when the Promise is rejected.
3837
+ * @returns A Promise for the completion of which ever callback is executed.
3838
+ */
3839
+ 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>
3840
+ /**
3841
+ * Attaches a callback for only the rejection of the Promise.
3842
+ * @param onrejected The callback to execute when the Promise is rejected.
3843
+ * @returns A Promise for the completion of the callback.
3844
+ */
3845
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
3846
+ /**
3847
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
3848
+ * resolved value cannot be modified from the callback.
3849
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
3850
+ * @returns A Promise for the completion of the callback.
3851
+ */
3852
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
3853
+ }
3854
+
3855
+
3856
+
3857
+
3858
+ /**
3859
+ * Fields of the Agent model
3860
+ */
3861
+ export interface AgentFieldRefs {
3862
+ readonly id: Prisma.FieldRef<"Agent", 'String'>
3863
+ readonly name: Prisma.FieldRef<"Agent", 'String'>
3864
+ readonly slackId: Prisma.FieldRef<"Agent", 'String'>
3865
+ readonly slackBotToken: Prisma.FieldRef<"Agent", 'String'>
3866
+ readonly anthropicApiKey: Prisma.FieldRef<"Agent", 'String'>
3867
+ readonly selfHosted: Prisma.FieldRef<"Agent", 'Boolean'>
3868
+ readonly repos: Prisma.FieldRef<"Agent", 'String[]'>
3869
+ readonly reviewAuthorAllowlist: Prisma.FieldRef<"Agent", 'String[]'>
3870
+ readonly patchAuthorAllowlist: Prisma.FieldRef<"Agent", 'String[]'>
3871
+ readonly restrictSlackToMembers: Prisma.FieldRef<"Agent", 'Boolean'>
3872
+ readonly typeName: Prisma.FieldRef<"Agent", 'String'>
3873
+ readonly accountId: Prisma.FieldRef<"Agent", 'String'>
3874
+ readonly trialExpiresAt: Prisma.FieldRef<"Agent", 'DateTime'>
3875
+ readonly trialExpiryWarnedAt: Prisma.FieldRef<"Agent", 'DateTime'>
3876
+ readonly ownerEmail: Prisma.FieldRef<"Agent", 'String'>
3877
+ readonly anthropicIdentityName: Prisma.FieldRef<"Agent", 'String'>
3878
+ readonly anthropicServiceAccountId: Prisma.FieldRef<"Agent", 'String'>
3879
+ readonly anthropicFederationRuleId: Prisma.FieldRef<"Agent", 'String'>
3880
+ readonly k8sServiceAccountName: Prisma.FieldRef<"Agent", 'String'>
3881
+ readonly autoPostReviews: Prisma.FieldRef<"Agent", 'Boolean'>
3882
+ readonly allowSelfReview: Prisma.FieldRef<"Agent", 'Boolean'>
3883
+ readonly minConfidence: Prisma.FieldRef<"Agent", 'Int'>
3884
+ readonly maxFindings: Prisma.FieldRef<"Agent", 'Int'>
3885
+ readonly cleanupMergedWorktrees: Prisma.FieldRef<"Agent", 'Boolean'>
3886
+ readonly cleanupAfterDays: Prisma.FieldRef<"Agent", 'Int'>
3887
+ readonly createdAt: Prisma.FieldRef<"Agent", 'DateTime'>
3888
+ readonly updatedAt: Prisma.FieldRef<"Agent", 'DateTime'>
3889
+ }
3890
+
3891
+
3892
+ // Custom InputTypes
3893
+ /**
3894
+ * Agent findUnique
3895
+ */
3896
+ export type AgentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3897
+ /**
3898
+ * Select specific fields to fetch from the Agent
3899
+ */
3900
+ select?: Prisma.AgentSelect<ExtArgs> | null
3901
+ /**
3902
+ * Omit specific fields from the Agent
3903
+ */
3904
+ omit?: Prisma.AgentOmit<ExtArgs> | null
3905
+ /**
3906
+ * Choose, which related nodes to fetch as well
3907
+ */
3908
+ include?: Prisma.AgentInclude<ExtArgs> | null
3909
+ /**
3910
+ * Filter, which Agent to fetch.
3911
+ */
3912
+ where: Prisma.AgentWhereUniqueInput
3913
+ }
3914
+
3915
+ /**
3916
+ * Agent findUniqueOrThrow
3917
+ */
3918
+ export type AgentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3919
+ /**
3920
+ * Select specific fields to fetch from the Agent
3921
+ */
3922
+ select?: Prisma.AgentSelect<ExtArgs> | null
3923
+ /**
3924
+ * Omit specific fields from the Agent
3925
+ */
3926
+ omit?: Prisma.AgentOmit<ExtArgs> | null
3927
+ /**
3928
+ * Choose, which related nodes to fetch as well
3929
+ */
3930
+ include?: Prisma.AgentInclude<ExtArgs> | null
3931
+ /**
3932
+ * Filter, which Agent to fetch.
3933
+ */
3934
+ where: Prisma.AgentWhereUniqueInput
3935
+ }
3936
+
3937
+ /**
3938
+ * Agent findFirst
3939
+ */
3940
+ export type AgentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3941
+ /**
3942
+ * Select specific fields to fetch from the Agent
3943
+ */
3944
+ select?: Prisma.AgentSelect<ExtArgs> | null
3945
+ /**
3946
+ * Omit specific fields from the Agent
3947
+ */
3948
+ omit?: Prisma.AgentOmit<ExtArgs> | null
3949
+ /**
3950
+ * Choose, which related nodes to fetch as well
3951
+ */
3952
+ include?: Prisma.AgentInclude<ExtArgs> | null
3953
+ /**
3954
+ * Filter, which Agent to fetch.
3955
+ */
3956
+ where?: Prisma.AgentWhereInput
3957
+ /**
3958
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3959
+ *
3960
+ * Determine the order of Agents to fetch.
3961
+ */
3962
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
3963
+ /**
3964
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3965
+ *
3966
+ * Sets the position for searching for Agents.
3967
+ */
3968
+ cursor?: Prisma.AgentWhereUniqueInput
3969
+ /**
3970
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3971
+ *
3972
+ * Take `±n` Agents from the position of the cursor.
3973
+ */
3974
+ take?: number
3975
+ /**
3976
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3977
+ *
3978
+ * Skip the first `n` Agents.
3979
+ */
3980
+ skip?: number
3981
+ /**
3982
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3983
+ *
3984
+ * Filter by unique combinations of Agents.
3985
+ */
3986
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[]
3987
+ }
3988
+
3989
+ /**
3990
+ * Agent findFirstOrThrow
3991
+ */
3992
+ export type AgentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3993
+ /**
3994
+ * Select specific fields to fetch from the Agent
3995
+ */
3996
+ select?: Prisma.AgentSelect<ExtArgs> | null
3997
+ /**
3998
+ * Omit specific fields from the Agent
3999
+ */
4000
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4001
+ /**
4002
+ * Choose, which related nodes to fetch as well
4003
+ */
4004
+ include?: Prisma.AgentInclude<ExtArgs> | null
4005
+ /**
4006
+ * Filter, which Agent to fetch.
4007
+ */
4008
+ where?: Prisma.AgentWhereInput
4009
+ /**
4010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4011
+ *
4012
+ * Determine the order of Agents to fetch.
4013
+ */
4014
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
4015
+ /**
4016
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4017
+ *
4018
+ * Sets the position for searching for Agents.
4019
+ */
4020
+ cursor?: Prisma.AgentWhereUniqueInput
4021
+ /**
4022
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4023
+ *
4024
+ * Take `±n` Agents from the position of the cursor.
4025
+ */
4026
+ take?: number
4027
+ /**
4028
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4029
+ *
4030
+ * Skip the first `n` Agents.
4031
+ */
4032
+ skip?: number
4033
+ /**
4034
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4035
+ *
4036
+ * Filter by unique combinations of Agents.
4037
+ */
4038
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[]
4039
+ }
4040
+
4041
+ /**
4042
+ * Agent findMany
4043
+ */
4044
+ export type AgentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4045
+ /**
4046
+ * Select specific fields to fetch from the Agent
4047
+ */
4048
+ select?: Prisma.AgentSelect<ExtArgs> | null
4049
+ /**
4050
+ * Omit specific fields from the Agent
4051
+ */
4052
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4053
+ /**
4054
+ * Choose, which related nodes to fetch as well
4055
+ */
4056
+ include?: Prisma.AgentInclude<ExtArgs> | null
4057
+ /**
4058
+ * Filter, which Agents to fetch.
4059
+ */
4060
+ where?: Prisma.AgentWhereInput
4061
+ /**
4062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4063
+ *
4064
+ * Determine the order of Agents to fetch.
4065
+ */
4066
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
4067
+ /**
4068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4069
+ *
4070
+ * Sets the position for listing Agents.
4071
+ */
4072
+ cursor?: Prisma.AgentWhereUniqueInput
4073
+ /**
4074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4075
+ *
4076
+ * Take `±n` Agents from the position of the cursor.
4077
+ */
4078
+ take?: number
4079
+ /**
4080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4081
+ *
4082
+ * Skip the first `n` Agents.
4083
+ */
4084
+ skip?: number
4085
+ /**
4086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4087
+ *
4088
+ * Filter by unique combinations of Agents.
4089
+ */
4090
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[]
4091
+ }
4092
+
4093
+ /**
4094
+ * Agent create
4095
+ */
4096
+ export type AgentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4097
+ /**
4098
+ * Select specific fields to fetch from the Agent
4099
+ */
4100
+ select?: Prisma.AgentSelect<ExtArgs> | null
4101
+ /**
4102
+ * Omit specific fields from the Agent
4103
+ */
4104
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4105
+ /**
4106
+ * Choose, which related nodes to fetch as well
4107
+ */
4108
+ include?: Prisma.AgentInclude<ExtArgs> | null
4109
+ /**
4110
+ * The data needed to create a Agent.
4111
+ */
4112
+ data: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>
4113
+ }
4114
+
4115
+ /**
4116
+ * Agent createMany
4117
+ */
4118
+ export type AgentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4119
+ /**
4120
+ * The data used to create many Agents.
4121
+ */
4122
+ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[]
4123
+ skipDuplicates?: boolean
4124
+ }
4125
+
4126
+ /**
4127
+ * Agent createManyAndReturn
4128
+ */
4129
+ export type AgentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4130
+ /**
4131
+ * Select specific fields to fetch from the Agent
4132
+ */
4133
+ select?: Prisma.AgentSelectCreateManyAndReturn<ExtArgs> | null
4134
+ /**
4135
+ * Omit specific fields from the Agent
4136
+ */
4137
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4138
+ /**
4139
+ * The data used to create many Agents.
4140
+ */
4141
+ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[]
4142
+ skipDuplicates?: boolean
4143
+ /**
4144
+ * Choose, which related nodes to fetch as well
4145
+ */
4146
+ include?: Prisma.AgentIncludeCreateManyAndReturn<ExtArgs> | null
4147
+ }
4148
+
4149
+ /**
4150
+ * Agent update
4151
+ */
4152
+ export type AgentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4153
+ /**
4154
+ * Select specific fields to fetch from the Agent
4155
+ */
4156
+ select?: Prisma.AgentSelect<ExtArgs> | null
4157
+ /**
4158
+ * Omit specific fields from the Agent
4159
+ */
4160
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4161
+ /**
4162
+ * Choose, which related nodes to fetch as well
4163
+ */
4164
+ include?: Prisma.AgentInclude<ExtArgs> | null
4165
+ /**
4166
+ * The data needed to update a Agent.
4167
+ */
4168
+ data: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>
4169
+ /**
4170
+ * Choose, which Agent to update.
4171
+ */
4172
+ where: Prisma.AgentWhereUniqueInput
4173
+ }
4174
+
4175
+ /**
4176
+ * Agent updateMany
4177
+ */
4178
+ export type AgentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4179
+ /**
4180
+ * The data used to update Agents.
4181
+ */
4182
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>
4183
+ /**
4184
+ * Filter which Agents to update
4185
+ */
4186
+ where?: Prisma.AgentWhereInput
4187
+ /**
4188
+ * Limit how many Agents to update.
4189
+ */
4190
+ limit?: number
4191
+ }
4192
+
4193
+ /**
4194
+ * Agent updateManyAndReturn
4195
+ */
4196
+ export type AgentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4197
+ /**
4198
+ * Select specific fields to fetch from the Agent
4199
+ */
4200
+ select?: Prisma.AgentSelectUpdateManyAndReturn<ExtArgs> | null
4201
+ /**
4202
+ * Omit specific fields from the Agent
4203
+ */
4204
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4205
+ /**
4206
+ * The data used to update Agents.
4207
+ */
4208
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>
4209
+ /**
4210
+ * Filter which Agents to update
4211
+ */
4212
+ where?: Prisma.AgentWhereInput
4213
+ /**
4214
+ * Limit how many Agents to update.
4215
+ */
4216
+ limit?: number
4217
+ /**
4218
+ * Choose, which related nodes to fetch as well
4219
+ */
4220
+ include?: Prisma.AgentIncludeUpdateManyAndReturn<ExtArgs> | null
4221
+ }
4222
+
4223
+ /**
4224
+ * Agent upsert
4225
+ */
4226
+ export type AgentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4227
+ /**
4228
+ * Select specific fields to fetch from the Agent
4229
+ */
4230
+ select?: Prisma.AgentSelect<ExtArgs> | null
4231
+ /**
4232
+ * Omit specific fields from the Agent
4233
+ */
4234
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4235
+ /**
4236
+ * Choose, which related nodes to fetch as well
4237
+ */
4238
+ include?: Prisma.AgentInclude<ExtArgs> | null
4239
+ /**
4240
+ * The filter to search for the Agent to update in case it exists.
4241
+ */
4242
+ where: Prisma.AgentWhereUniqueInput
4243
+ /**
4244
+ * In case the Agent found by the `where` argument doesn't exist, create a new Agent with this data.
4245
+ */
4246
+ create: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>
4247
+ /**
4248
+ * In case the Agent was found with the provided `where` argument, update it with this data.
4249
+ */
4250
+ update: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>
4251
+ }
4252
+
4253
+ /**
4254
+ * Agent delete
4255
+ */
4256
+ export type AgentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4257
+ /**
4258
+ * Select specific fields to fetch from the Agent
4259
+ */
4260
+ select?: Prisma.AgentSelect<ExtArgs> | null
4261
+ /**
4262
+ * Omit specific fields from the Agent
4263
+ */
4264
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4265
+ /**
4266
+ * Choose, which related nodes to fetch as well
4267
+ */
4268
+ include?: Prisma.AgentInclude<ExtArgs> | null
4269
+ /**
4270
+ * Filter which Agent to delete.
4271
+ */
4272
+ where: Prisma.AgentWhereUniqueInput
4273
+ }
4274
+
4275
+ /**
4276
+ * Agent deleteMany
4277
+ */
4278
+ export type AgentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4279
+ /**
4280
+ * Filter which Agents to delete
4281
+ */
4282
+ where?: Prisma.AgentWhereInput
4283
+ /**
4284
+ * Limit how many Agents to delete.
4285
+ */
4286
+ limit?: number
4287
+ }
4288
+
4289
+ /**
4290
+ * Agent.account
4291
+ */
4292
+ export type Agent$accountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4293
+ /**
4294
+ * Select specific fields to fetch from the Account
4295
+ */
4296
+ select?: Prisma.AccountSelect<ExtArgs> | null
4297
+ /**
4298
+ * Omit specific fields from the Account
4299
+ */
4300
+ omit?: Prisma.AccountOmit<ExtArgs> | null
4301
+ /**
4302
+ * Choose, which related nodes to fetch as well
4303
+ */
4304
+ include?: Prisma.AccountInclude<ExtArgs> | null
4305
+ where?: Prisma.AccountWhereInput
4306
+ }
4307
+
4308
+ /**
4309
+ * Agent.envVars
4310
+ */
4311
+ export type Agent$envVarsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4312
+ /**
4313
+ * Select specific fields to fetch from the AgentEnv
4314
+ */
4315
+ select?: Prisma.AgentEnvSelect<ExtArgs> | null
4316
+ /**
4317
+ * Omit specific fields from the AgentEnv
4318
+ */
4319
+ omit?: Prisma.AgentEnvOmit<ExtArgs> | null
4320
+ /**
4321
+ * Choose, which related nodes to fetch as well
4322
+ */
4323
+ include?: Prisma.AgentEnvInclude<ExtArgs> | null
4324
+ where?: Prisma.AgentEnvWhereInput
4325
+ orderBy?: Prisma.AgentEnvOrderByWithRelationInput | Prisma.AgentEnvOrderByWithRelationInput[]
4326
+ cursor?: Prisma.AgentEnvWhereUniqueInput
4327
+ take?: number
4328
+ skip?: number
4329
+ distinct?: Prisma.AgentEnvScalarFieldEnum | Prisma.AgentEnvScalarFieldEnum[]
4330
+ }
4331
+
4332
+ /**
4333
+ * Agent.cronJobs
4334
+ */
4335
+ export type Agent$cronJobsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4336
+ /**
4337
+ * Select specific fields to fetch from the AgentCronJob
4338
+ */
4339
+ select?: Prisma.AgentCronJobSelect<ExtArgs> | null
4340
+ /**
4341
+ * Omit specific fields from the AgentCronJob
4342
+ */
4343
+ omit?: Prisma.AgentCronJobOmit<ExtArgs> | null
4344
+ /**
4345
+ * Choose, which related nodes to fetch as well
4346
+ */
4347
+ include?: Prisma.AgentCronJobInclude<ExtArgs> | null
4348
+ where?: Prisma.AgentCronJobWhereInput
4349
+ orderBy?: Prisma.AgentCronJobOrderByWithRelationInput | Prisma.AgentCronJobOrderByWithRelationInput[]
4350
+ cursor?: Prisma.AgentCronJobWhereUniqueInput
4351
+ take?: number
4352
+ skip?: number
4353
+ distinct?: Prisma.AgentCronJobScalarFieldEnum | Prisma.AgentCronJobScalarFieldEnum[]
4354
+ }
4355
+
4356
+ /**
4357
+ * Agent.tools
4358
+ */
4359
+ export type Agent$toolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4360
+ /**
4361
+ * Select specific fields to fetch from the AgentTool
4362
+ */
4363
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
4364
+ /**
4365
+ * Omit specific fields from the AgentTool
4366
+ */
4367
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
4368
+ /**
4369
+ * Choose, which related nodes to fetch as well
4370
+ */
4371
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
4372
+ where?: Prisma.AgentToolWhereInput
4373
+ orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[]
4374
+ cursor?: Prisma.AgentToolWhereUniqueInput
4375
+ take?: number
4376
+ skip?: number
4377
+ distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[]
4378
+ }
4379
+
4380
+ /**
4381
+ * Agent.tokens
4382
+ */
4383
+ export type Agent$tokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4384
+ /**
4385
+ * Select specific fields to fetch from the AgentToken
4386
+ */
4387
+ select?: Prisma.AgentTokenSelect<ExtArgs> | null
4388
+ /**
4389
+ * Omit specific fields from the AgentToken
4390
+ */
4391
+ omit?: Prisma.AgentTokenOmit<ExtArgs> | null
4392
+ /**
4393
+ * Choose, which related nodes to fetch as well
4394
+ */
4395
+ include?: Prisma.AgentTokenInclude<ExtArgs> | null
4396
+ where?: Prisma.AgentTokenWhereInput
4397
+ orderBy?: Prisma.AgentTokenOrderByWithRelationInput | Prisma.AgentTokenOrderByWithRelationInput[]
4398
+ cursor?: Prisma.AgentTokenWhereUniqueInput
4399
+ take?: number
4400
+ skip?: number
4401
+ distinct?: Prisma.AgentTokenScalarFieldEnum | Prisma.AgentTokenScalarFieldEnum[]
4402
+ }
4403
+
4404
+ /**
4405
+ * Agent.plugins
4406
+ */
4407
+ export type Agent$pluginsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4408
+ /**
4409
+ * Select specific fields to fetch from the AgentPlugin
4410
+ */
4411
+ select?: Prisma.AgentPluginSelect<ExtArgs> | null
4412
+ /**
4413
+ * Omit specific fields from the AgentPlugin
4414
+ */
4415
+ omit?: Prisma.AgentPluginOmit<ExtArgs> | null
4416
+ /**
4417
+ * Choose, which related nodes to fetch as well
4418
+ */
4419
+ include?: Prisma.AgentPluginInclude<ExtArgs> | null
4420
+ where?: Prisma.AgentPluginWhereInput
4421
+ orderBy?: Prisma.AgentPluginOrderByWithRelationInput | Prisma.AgentPluginOrderByWithRelationInput[]
4422
+ cursor?: Prisma.AgentPluginWhereUniqueInput
4423
+ take?: number
4424
+ skip?: number
4425
+ distinct?: Prisma.AgentPluginScalarFieldEnum | Prisma.AgentPluginScalarFieldEnum[]
4426
+ }
4427
+
4428
+ /**
4429
+ * Agent.members
4430
+ */
4431
+ export type Agent$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4432
+ /**
4433
+ * Select specific fields to fetch from the AgentMember
4434
+ */
4435
+ select?: Prisma.AgentMemberSelect<ExtArgs> | null
4436
+ /**
4437
+ * Omit specific fields from the AgentMember
4438
+ */
4439
+ omit?: Prisma.AgentMemberOmit<ExtArgs> | null
4440
+ /**
4441
+ * Choose, which related nodes to fetch as well
4442
+ */
4443
+ include?: Prisma.AgentMemberInclude<ExtArgs> | null
4444
+ where?: Prisma.AgentMemberWhereInput
4445
+ orderBy?: Prisma.AgentMemberOrderByWithRelationInput | Prisma.AgentMemberOrderByWithRelationInput[]
4446
+ cursor?: Prisma.AgentMemberWhereUniqueInput
4447
+ take?: number
4448
+ skip?: number
4449
+ distinct?: Prisma.AgentMemberScalarFieldEnum | Prisma.AgentMemberScalarFieldEnum[]
4450
+ }
4451
+
4452
+ /**
4453
+ * Agent.chatTokenUsage
4454
+ */
4455
+ export type Agent$chatTokenUsageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4456
+ /**
4457
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
4458
+ */
4459
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
4460
+ /**
4461
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
4462
+ */
4463
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
4464
+ /**
4465
+ * Choose, which related nodes to fetch as well
4466
+ */
4467
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
4468
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
4469
+ orderBy?: Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput | Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput[]
4470
+ cursor?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
4471
+ take?: number
4472
+ skip?: number
4473
+ distinct?: Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum | Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum[]
4474
+ }
4475
+
4476
+ /**
4477
+ * Agent.workQueueSnapshot
4478
+ */
4479
+ export type Agent$workQueueSnapshotArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4480
+ /**
4481
+ * Select specific fields to fetch from the AgentWorkQueueSnapshot
4482
+ */
4483
+ select?: Prisma.AgentWorkQueueSnapshotSelect<ExtArgs> | null
4484
+ /**
4485
+ * Omit specific fields from the AgentWorkQueueSnapshot
4486
+ */
4487
+ omit?: Prisma.AgentWorkQueueSnapshotOmit<ExtArgs> | null
4488
+ /**
4489
+ * Choose, which related nodes to fetch as well
4490
+ */
4491
+ include?: Prisma.AgentWorkQueueSnapshotInclude<ExtArgs> | null
4492
+ where?: Prisma.AgentWorkQueueSnapshotWhereInput
4493
+ }
4494
+
4495
+ /**
4496
+ * Agent.githubInstallationsSnapshot
4497
+ */
4498
+ export type Agent$githubInstallationsSnapshotArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4499
+ /**
4500
+ * Select specific fields to fetch from the AgentGitHubInstallationsSnapshot
4501
+ */
4502
+ select?: Prisma.AgentGitHubInstallationsSnapshotSelect<ExtArgs> | null
4503
+ /**
4504
+ * Omit specific fields from the AgentGitHubInstallationsSnapshot
4505
+ */
4506
+ omit?: Prisma.AgentGitHubInstallationsSnapshotOmit<ExtArgs> | null
4507
+ /**
4508
+ * Choose, which related nodes to fetch as well
4509
+ */
4510
+ include?: Prisma.AgentGitHubInstallationsSnapshotInclude<ExtArgs> | null
4511
+ where?: Prisma.AgentGitHubInstallationsSnapshotWhereInput
4512
+ }
4513
+
4514
+ /**
4515
+ * Agent.phaseMethodologies
4516
+ */
4517
+ export type Agent$phaseMethodologiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4518
+ /**
4519
+ * Select specific fields to fetch from the AgentPhaseMethodology
4520
+ */
4521
+ select?: Prisma.AgentPhaseMethodologySelect<ExtArgs> | null
4522
+ /**
4523
+ * Omit specific fields from the AgentPhaseMethodology
4524
+ */
4525
+ omit?: Prisma.AgentPhaseMethodologyOmit<ExtArgs> | null
4526
+ /**
4527
+ * Choose, which related nodes to fetch as well
4528
+ */
4529
+ include?: Prisma.AgentPhaseMethodologyInclude<ExtArgs> | null
4530
+ where?: Prisma.AgentPhaseMethodologyWhereInput
4531
+ orderBy?: Prisma.AgentPhaseMethodologyOrderByWithRelationInput | Prisma.AgentPhaseMethodologyOrderByWithRelationInput[]
4532
+ cursor?: Prisma.AgentPhaseMethodologyWhereUniqueInput
4533
+ take?: number
4534
+ skip?: number
4535
+ distinct?: Prisma.AgentPhaseMethodologyScalarFieldEnum | Prisma.AgentPhaseMethodologyScalarFieldEnum[]
4536
+ }
4537
+
4538
+ /**
4539
+ * Agent without action
4540
+ */
4541
+ export type AgentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4542
+ /**
4543
+ * Select specific fields to fetch from the Agent
4544
+ */
4545
+ select?: Prisma.AgentSelect<ExtArgs> | null
4546
+ /**
4547
+ * Omit specific fields from the Agent
4548
+ */
4549
+ omit?: Prisma.AgentOmit<ExtArgs> | null
4550
+ /**
4551
+ * Choose, which related nodes to fetch as well
4552
+ */
4553
+ include?: Prisma.AgentInclude<ExtArgs> | null
4554
+ }