@app-vitals/agent-admin 0.0.1 → 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 +62 -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,1351 @@
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 `AgentTool` 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 AgentTool
17
+ *
18
+ */
19
+ export type AgentToolModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentToolPayload>
20
+
21
+ export type AggregateAgentTool = {
22
+ _count: AgentToolCountAggregateOutputType | null
23
+ _min: AgentToolMinAggregateOutputType | null
24
+ _max: AgentToolMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type AgentToolMinAggregateOutputType = {
28
+ id: string | null
29
+ agentId: string | null
30
+ pattern: string | null
31
+ enabled: boolean | null
32
+ createdAt: Date | null
33
+ }
34
+
35
+ export type AgentToolMaxAggregateOutputType = {
36
+ id: string | null
37
+ agentId: string | null
38
+ pattern: string | null
39
+ enabled: boolean | null
40
+ createdAt: Date | null
41
+ }
42
+
43
+ export type AgentToolCountAggregateOutputType = {
44
+ id: number
45
+ agentId: number
46
+ pattern: number
47
+ enabled: number
48
+ createdAt: number
49
+ _all: number
50
+ }
51
+
52
+
53
+ export type AgentToolMinAggregateInputType = {
54
+ id?: true
55
+ agentId?: true
56
+ pattern?: true
57
+ enabled?: true
58
+ createdAt?: true
59
+ }
60
+
61
+ export type AgentToolMaxAggregateInputType = {
62
+ id?: true
63
+ agentId?: true
64
+ pattern?: true
65
+ enabled?: true
66
+ createdAt?: true
67
+ }
68
+
69
+ export type AgentToolCountAggregateInputType = {
70
+ id?: true
71
+ agentId?: true
72
+ pattern?: true
73
+ enabled?: true
74
+ createdAt?: true
75
+ _all?: true
76
+ }
77
+
78
+ export type AgentToolAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
79
+ /**
80
+ * Filter which AgentTool to aggregate.
81
+ */
82
+ where?: Prisma.AgentToolWhereInput
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
85
+ *
86
+ * Determine the order of AgentTools to fetch.
87
+ */
88
+ orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[]
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
91
+ *
92
+ * Sets the start position
93
+ */
94
+ cursor?: Prisma.AgentToolWhereUniqueInput
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
+ *
98
+ * Take `±n` AgentTools from the position of the cursor.
99
+ */
100
+ take?: number
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
103
+ *
104
+ * Skip the first `n` AgentTools.
105
+ */
106
+ skip?: number
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Count returned AgentTools
111
+ **/
112
+ _count?: true | AgentToolCountAggregateInputType
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the minimum value
117
+ **/
118
+ _min?: AgentToolMinAggregateInputType
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Select which fields to find the maximum value
123
+ **/
124
+ _max?: AgentToolMaxAggregateInputType
125
+ }
126
+
127
+ export type GetAgentToolAggregateType<T extends AgentToolAggregateArgs> = {
128
+ [P in keyof T & keyof AggregateAgentTool]: P extends '_count' | 'count'
129
+ ? T[P] extends true
130
+ ? number
131
+ : Prisma.GetScalarType<T[P], AggregateAgentTool[P]>
132
+ : Prisma.GetScalarType<T[P], AggregateAgentTool[P]>
133
+ }
134
+
135
+
136
+
137
+
138
+ export type AgentToolGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
139
+ where?: Prisma.AgentToolWhereInput
140
+ orderBy?: Prisma.AgentToolOrderByWithAggregationInput | Prisma.AgentToolOrderByWithAggregationInput[]
141
+ by: Prisma.AgentToolScalarFieldEnum[] | Prisma.AgentToolScalarFieldEnum
142
+ having?: Prisma.AgentToolScalarWhereWithAggregatesInput
143
+ take?: number
144
+ skip?: number
145
+ _count?: AgentToolCountAggregateInputType | true
146
+ _min?: AgentToolMinAggregateInputType
147
+ _max?: AgentToolMaxAggregateInputType
148
+ }
149
+
150
+ export type AgentToolGroupByOutputType = {
151
+ id: string
152
+ agentId: string
153
+ pattern: string
154
+ enabled: boolean
155
+ createdAt: Date
156
+ _count: AgentToolCountAggregateOutputType | null
157
+ _min: AgentToolMinAggregateOutputType | null
158
+ _max: AgentToolMaxAggregateOutputType | null
159
+ }
160
+
161
+ export type GetAgentToolGroupByPayload<T extends AgentToolGroupByArgs> = Prisma.PrismaPromise<
162
+ Array<
163
+ Prisma.PickEnumerable<AgentToolGroupByOutputType, T['by']> &
164
+ {
165
+ [P in ((keyof T) & (keyof AgentToolGroupByOutputType))]: P extends '_count'
166
+ ? T[P] extends boolean
167
+ ? number
168
+ : Prisma.GetScalarType<T[P], AgentToolGroupByOutputType[P]>
169
+ : Prisma.GetScalarType<T[P], AgentToolGroupByOutputType[P]>
170
+ }
171
+ >
172
+ >
173
+
174
+
175
+
176
+ export type AgentToolWhereInput = {
177
+ AND?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[]
178
+ OR?: Prisma.AgentToolWhereInput[]
179
+ NOT?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[]
180
+ id?: Prisma.StringFilter<"AgentTool"> | string
181
+ agentId?: Prisma.StringFilter<"AgentTool"> | string
182
+ pattern?: Prisma.StringFilter<"AgentTool"> | string
183
+ enabled?: Prisma.BoolFilter<"AgentTool"> | boolean
184
+ createdAt?: Prisma.DateTimeFilter<"AgentTool"> | Date | string
185
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
186
+ }
187
+
188
+ export type AgentToolOrderByWithRelationInput = {
189
+ id?: Prisma.SortOrder
190
+ agentId?: Prisma.SortOrder
191
+ pattern?: Prisma.SortOrder
192
+ enabled?: Prisma.SortOrder
193
+ createdAt?: Prisma.SortOrder
194
+ agent?: Prisma.AgentOrderByWithRelationInput
195
+ }
196
+
197
+ export type AgentToolWhereUniqueInput = Prisma.AtLeast<{
198
+ id?: string
199
+ agentId_pattern?: Prisma.AgentToolAgentIdPatternCompoundUniqueInput
200
+ AND?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[]
201
+ OR?: Prisma.AgentToolWhereInput[]
202
+ NOT?: Prisma.AgentToolWhereInput | Prisma.AgentToolWhereInput[]
203
+ agentId?: Prisma.StringFilter<"AgentTool"> | string
204
+ pattern?: Prisma.StringFilter<"AgentTool"> | string
205
+ enabled?: Prisma.BoolFilter<"AgentTool"> | boolean
206
+ createdAt?: Prisma.DateTimeFilter<"AgentTool"> | Date | string
207
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
208
+ }, "id" | "agentId_pattern">
209
+
210
+ export type AgentToolOrderByWithAggregationInput = {
211
+ id?: Prisma.SortOrder
212
+ agentId?: Prisma.SortOrder
213
+ pattern?: Prisma.SortOrder
214
+ enabled?: Prisma.SortOrder
215
+ createdAt?: Prisma.SortOrder
216
+ _count?: Prisma.AgentToolCountOrderByAggregateInput
217
+ _max?: Prisma.AgentToolMaxOrderByAggregateInput
218
+ _min?: Prisma.AgentToolMinOrderByAggregateInput
219
+ }
220
+
221
+ export type AgentToolScalarWhereWithAggregatesInput = {
222
+ AND?: Prisma.AgentToolScalarWhereWithAggregatesInput | Prisma.AgentToolScalarWhereWithAggregatesInput[]
223
+ OR?: Prisma.AgentToolScalarWhereWithAggregatesInput[]
224
+ NOT?: Prisma.AgentToolScalarWhereWithAggregatesInput | Prisma.AgentToolScalarWhereWithAggregatesInput[]
225
+ id?: Prisma.StringWithAggregatesFilter<"AgentTool"> | string
226
+ agentId?: Prisma.StringWithAggregatesFilter<"AgentTool"> | string
227
+ pattern?: Prisma.StringWithAggregatesFilter<"AgentTool"> | string
228
+ enabled?: Prisma.BoolWithAggregatesFilter<"AgentTool"> | boolean
229
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentTool"> | Date | string
230
+ }
231
+
232
+ export type AgentToolCreateInput = {
233
+ id?: string
234
+ pattern: string
235
+ enabled?: boolean
236
+ createdAt?: Date | string
237
+ agent: Prisma.AgentCreateNestedOneWithoutToolsInput
238
+ }
239
+
240
+ export type AgentToolUncheckedCreateInput = {
241
+ id?: string
242
+ agentId: string
243
+ pattern: string
244
+ enabled?: boolean
245
+ createdAt?: Date | string
246
+ }
247
+
248
+ export type AgentToolUpdateInput = {
249
+ id?: Prisma.StringFieldUpdateOperationsInput | string
250
+ pattern?: Prisma.StringFieldUpdateOperationsInput | string
251
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
252
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
253
+ agent?: Prisma.AgentUpdateOneRequiredWithoutToolsNestedInput
254
+ }
255
+
256
+ export type AgentToolUncheckedUpdateInput = {
257
+ id?: Prisma.StringFieldUpdateOperationsInput | string
258
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string
259
+ pattern?: Prisma.StringFieldUpdateOperationsInput | string
260
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
261
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
262
+ }
263
+
264
+ export type AgentToolCreateManyInput = {
265
+ id?: string
266
+ agentId: string
267
+ pattern: string
268
+ enabled?: boolean
269
+ createdAt?: Date | string
270
+ }
271
+
272
+ export type AgentToolUpdateManyMutationInput = {
273
+ id?: Prisma.StringFieldUpdateOperationsInput | string
274
+ pattern?: Prisma.StringFieldUpdateOperationsInput | string
275
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
276
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
277
+ }
278
+
279
+ export type AgentToolUncheckedUpdateManyInput = {
280
+ id?: Prisma.StringFieldUpdateOperationsInput | string
281
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string
282
+ pattern?: Prisma.StringFieldUpdateOperationsInput | string
283
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
284
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
285
+ }
286
+
287
+ export type AgentToolListRelationFilter = {
288
+ every?: Prisma.AgentToolWhereInput
289
+ some?: Prisma.AgentToolWhereInput
290
+ none?: Prisma.AgentToolWhereInput
291
+ }
292
+
293
+ export type AgentToolOrderByRelationAggregateInput = {
294
+ _count?: Prisma.SortOrder
295
+ }
296
+
297
+ export type AgentToolAgentIdPatternCompoundUniqueInput = {
298
+ agentId: string
299
+ pattern: string
300
+ }
301
+
302
+ export type AgentToolCountOrderByAggregateInput = {
303
+ id?: Prisma.SortOrder
304
+ agentId?: Prisma.SortOrder
305
+ pattern?: Prisma.SortOrder
306
+ enabled?: Prisma.SortOrder
307
+ createdAt?: Prisma.SortOrder
308
+ }
309
+
310
+ export type AgentToolMaxOrderByAggregateInput = {
311
+ id?: Prisma.SortOrder
312
+ agentId?: Prisma.SortOrder
313
+ pattern?: Prisma.SortOrder
314
+ enabled?: Prisma.SortOrder
315
+ createdAt?: Prisma.SortOrder
316
+ }
317
+
318
+ export type AgentToolMinOrderByAggregateInput = {
319
+ id?: Prisma.SortOrder
320
+ agentId?: Prisma.SortOrder
321
+ pattern?: Prisma.SortOrder
322
+ enabled?: Prisma.SortOrder
323
+ createdAt?: Prisma.SortOrder
324
+ }
325
+
326
+ export type AgentToolCreateNestedManyWithoutAgentInput = {
327
+ create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[]
328
+ connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[]
329
+ createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope
330
+ connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
331
+ }
332
+
333
+ export type AgentToolUncheckedCreateNestedManyWithoutAgentInput = {
334
+ create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[]
335
+ connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[]
336
+ createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope
337
+ connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
338
+ }
339
+
340
+ export type AgentToolUpdateManyWithoutAgentNestedInput = {
341
+ create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[]
342
+ connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[]
343
+ upsert?: Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput[]
344
+ createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope
345
+ set?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
346
+ disconnect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
347
+ delete?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
348
+ connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
349
+ update?: Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput[]
350
+ updateMany?: Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput | Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput[]
351
+ deleteMany?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[]
352
+ }
353
+
354
+ export type AgentToolUncheckedUpdateManyWithoutAgentNestedInput = {
355
+ create?: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput> | Prisma.AgentToolCreateWithoutAgentInput[] | Prisma.AgentToolUncheckedCreateWithoutAgentInput[]
356
+ connectOrCreate?: Prisma.AgentToolCreateOrConnectWithoutAgentInput | Prisma.AgentToolCreateOrConnectWithoutAgentInput[]
357
+ upsert?: Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpsertWithWhereUniqueWithoutAgentInput[]
358
+ createMany?: Prisma.AgentToolCreateManyAgentInputEnvelope
359
+ set?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
360
+ disconnect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
361
+ delete?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
362
+ connect?: Prisma.AgentToolWhereUniqueInput | Prisma.AgentToolWhereUniqueInput[]
363
+ update?: Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentToolUpdateWithWhereUniqueWithoutAgentInput[]
364
+ updateMany?: Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput | Prisma.AgentToolUpdateManyWithWhereWithoutAgentInput[]
365
+ deleteMany?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[]
366
+ }
367
+
368
+ export type AgentToolCreateWithoutAgentInput = {
369
+ id?: string
370
+ pattern: string
371
+ enabled?: boolean
372
+ createdAt?: Date | string
373
+ }
374
+
375
+ export type AgentToolUncheckedCreateWithoutAgentInput = {
376
+ id?: string
377
+ pattern: string
378
+ enabled?: boolean
379
+ createdAt?: Date | string
380
+ }
381
+
382
+ export type AgentToolCreateOrConnectWithoutAgentInput = {
383
+ where: Prisma.AgentToolWhereUniqueInput
384
+ create: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput>
385
+ }
386
+
387
+ export type AgentToolCreateManyAgentInputEnvelope = {
388
+ data: Prisma.AgentToolCreateManyAgentInput | Prisma.AgentToolCreateManyAgentInput[]
389
+ skipDuplicates?: boolean
390
+ }
391
+
392
+ export type AgentToolUpsertWithWhereUniqueWithoutAgentInput = {
393
+ where: Prisma.AgentToolWhereUniqueInput
394
+ update: Prisma.XOR<Prisma.AgentToolUpdateWithoutAgentInput, Prisma.AgentToolUncheckedUpdateWithoutAgentInput>
395
+ create: Prisma.XOR<Prisma.AgentToolCreateWithoutAgentInput, Prisma.AgentToolUncheckedCreateWithoutAgentInput>
396
+ }
397
+
398
+ export type AgentToolUpdateWithWhereUniqueWithoutAgentInput = {
399
+ where: Prisma.AgentToolWhereUniqueInput
400
+ data: Prisma.XOR<Prisma.AgentToolUpdateWithoutAgentInput, Prisma.AgentToolUncheckedUpdateWithoutAgentInput>
401
+ }
402
+
403
+ export type AgentToolUpdateManyWithWhereWithoutAgentInput = {
404
+ where: Prisma.AgentToolScalarWhereInput
405
+ data: Prisma.XOR<Prisma.AgentToolUpdateManyMutationInput, Prisma.AgentToolUncheckedUpdateManyWithoutAgentInput>
406
+ }
407
+
408
+ export type AgentToolScalarWhereInput = {
409
+ AND?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[]
410
+ OR?: Prisma.AgentToolScalarWhereInput[]
411
+ NOT?: Prisma.AgentToolScalarWhereInput | Prisma.AgentToolScalarWhereInput[]
412
+ id?: Prisma.StringFilter<"AgentTool"> | string
413
+ agentId?: Prisma.StringFilter<"AgentTool"> | string
414
+ pattern?: Prisma.StringFilter<"AgentTool"> | string
415
+ enabled?: Prisma.BoolFilter<"AgentTool"> | boolean
416
+ createdAt?: Prisma.DateTimeFilter<"AgentTool"> | Date | string
417
+ }
418
+
419
+ export type AgentToolCreateManyAgentInput = {
420
+ id?: string
421
+ pattern: string
422
+ enabled?: boolean
423
+ createdAt?: Date | string
424
+ }
425
+
426
+ export type AgentToolUpdateWithoutAgentInput = {
427
+ id?: Prisma.StringFieldUpdateOperationsInput | string
428
+ pattern?: Prisma.StringFieldUpdateOperationsInput | string
429
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
430
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
431
+ }
432
+
433
+ export type AgentToolUncheckedUpdateWithoutAgentInput = {
434
+ id?: Prisma.StringFieldUpdateOperationsInput | string
435
+ pattern?: Prisma.StringFieldUpdateOperationsInput | string
436
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
437
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
438
+ }
439
+
440
+ export type AgentToolUncheckedUpdateManyWithoutAgentInput = {
441
+ id?: Prisma.StringFieldUpdateOperationsInput | string
442
+ pattern?: Prisma.StringFieldUpdateOperationsInput | string
443
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
444
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
445
+ }
446
+
447
+
448
+
449
+ export type AgentToolSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
450
+ id?: boolean
451
+ agentId?: boolean
452
+ pattern?: boolean
453
+ enabled?: boolean
454
+ createdAt?: boolean
455
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
456
+ }, ExtArgs["result"]["agentTool"]>
457
+
458
+ export type AgentToolSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
459
+ id?: boolean
460
+ agentId?: boolean
461
+ pattern?: boolean
462
+ enabled?: boolean
463
+ createdAt?: boolean
464
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
465
+ }, ExtArgs["result"]["agentTool"]>
466
+
467
+ export type AgentToolSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
468
+ id?: boolean
469
+ agentId?: boolean
470
+ pattern?: boolean
471
+ enabled?: boolean
472
+ createdAt?: boolean
473
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
474
+ }, ExtArgs["result"]["agentTool"]>
475
+
476
+ export type AgentToolSelectScalar = {
477
+ id?: boolean
478
+ agentId?: boolean
479
+ pattern?: boolean
480
+ enabled?: boolean
481
+ createdAt?: boolean
482
+ }
483
+
484
+ export type AgentToolOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "pattern" | "enabled" | "createdAt", ExtArgs["result"]["agentTool"]>
485
+ export type AgentToolInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
486
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
487
+ }
488
+ export type AgentToolIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
489
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
490
+ }
491
+ export type AgentToolIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
492
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
493
+ }
494
+
495
+ export type $AgentToolPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
496
+ name: "AgentTool"
497
+ objects: {
498
+ agent: Prisma.$AgentPayload<ExtArgs>
499
+ }
500
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
501
+ id: string
502
+ agentId: string
503
+ pattern: string
504
+ enabled: boolean
505
+ createdAt: Date
506
+ }, ExtArgs["result"]["agentTool"]>
507
+ composites: {}
508
+ }
509
+
510
+ export type AgentToolGetPayload<S extends boolean | null | undefined | AgentToolDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentToolPayload, S>
511
+
512
+ export type AgentToolCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
513
+ Omit<AgentToolFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
514
+ select?: AgentToolCountAggregateInputType | true
515
+ }
516
+
517
+ export interface AgentToolDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
518
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentTool'], meta: { name: 'AgentTool' } }
519
+ /**
520
+ * Find zero or one AgentTool that matches the filter.
521
+ * @param {AgentToolFindUniqueArgs} args - Arguments to find a AgentTool
522
+ * @example
523
+ * // Get one AgentTool
524
+ * const agentTool = await prisma.agentTool.findUnique({
525
+ * where: {
526
+ * // ... provide filter here
527
+ * }
528
+ * })
529
+ */
530
+ findUnique<T extends AgentToolFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentToolFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
531
+
532
+ /**
533
+ * Find one AgentTool that matches the filter or throw an error with `error.code='P2025'`
534
+ * if no matches were found.
535
+ * @param {AgentToolFindUniqueOrThrowArgs} args - Arguments to find a AgentTool
536
+ * @example
537
+ * // Get one AgentTool
538
+ * const agentTool = await prisma.agentTool.findUniqueOrThrow({
539
+ * where: {
540
+ * // ... provide filter here
541
+ * }
542
+ * })
543
+ */
544
+ findUniqueOrThrow<T extends AgentToolFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentToolFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
545
+
546
+ /**
547
+ * Find the first AgentTool that matches the filter.
548
+ * Note, that providing `undefined` is treated as the value not being there.
549
+ * Read more here: https://pris.ly/d/null-undefined
550
+ * @param {AgentToolFindFirstArgs} args - Arguments to find a AgentTool
551
+ * @example
552
+ * // Get one AgentTool
553
+ * const agentTool = await prisma.agentTool.findFirst({
554
+ * where: {
555
+ * // ... provide filter here
556
+ * }
557
+ * })
558
+ */
559
+ findFirst<T extends AgentToolFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentToolFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
560
+
561
+ /**
562
+ * Find the first AgentTool that matches the filter or
563
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
564
+ * Note, that providing `undefined` is treated as the value not being there.
565
+ * Read more here: https://pris.ly/d/null-undefined
566
+ * @param {AgentToolFindFirstOrThrowArgs} args - Arguments to find a AgentTool
567
+ * @example
568
+ * // Get one AgentTool
569
+ * const agentTool = await prisma.agentTool.findFirstOrThrow({
570
+ * where: {
571
+ * // ... provide filter here
572
+ * }
573
+ * })
574
+ */
575
+ findFirstOrThrow<T extends AgentToolFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentToolFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
576
+
577
+ /**
578
+ * Find zero or more AgentTools that matches the filter.
579
+ * Note, that providing `undefined` is treated as the value not being there.
580
+ * Read more here: https://pris.ly/d/null-undefined
581
+ * @param {AgentToolFindManyArgs} args - Arguments to filter and select certain fields only.
582
+ * @example
583
+ * // Get all AgentTools
584
+ * const agentTools = await prisma.agentTool.findMany()
585
+ *
586
+ * // Get first 10 AgentTools
587
+ * const agentTools = await prisma.agentTool.findMany({ take: 10 })
588
+ *
589
+ * // Only select the `id`
590
+ * const agentToolWithIdOnly = await prisma.agentTool.findMany({ select: { id: true } })
591
+ *
592
+ */
593
+ findMany<T extends AgentToolFindManyArgs>(args?: Prisma.SelectSubset<T, AgentToolFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
594
+
595
+ /**
596
+ * Create a AgentTool.
597
+ * @param {AgentToolCreateArgs} args - Arguments to create a AgentTool.
598
+ * @example
599
+ * // Create one AgentTool
600
+ * const AgentTool = await prisma.agentTool.create({
601
+ * data: {
602
+ * // ... data to create a AgentTool
603
+ * }
604
+ * })
605
+ *
606
+ */
607
+ create<T extends AgentToolCreateArgs>(args: Prisma.SelectSubset<T, AgentToolCreateArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
608
+
609
+ /**
610
+ * Create many AgentTools.
611
+ * @param {AgentToolCreateManyArgs} args - Arguments to create many AgentTools.
612
+ * @example
613
+ * // Create many AgentTools
614
+ * const agentTool = await prisma.agentTool.createMany({
615
+ * data: [
616
+ * // ... provide data here
617
+ * ]
618
+ * })
619
+ *
620
+ */
621
+ createMany<T extends AgentToolCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentToolCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
622
+
623
+ /**
624
+ * Create many AgentTools and returns the data saved in the database.
625
+ * @param {AgentToolCreateManyAndReturnArgs} args - Arguments to create many AgentTools.
626
+ * @example
627
+ * // Create many AgentTools
628
+ * const agentTool = await prisma.agentTool.createManyAndReturn({
629
+ * data: [
630
+ * // ... provide data here
631
+ * ]
632
+ * })
633
+ *
634
+ * // Create many AgentTools and only return the `id`
635
+ * const agentToolWithIdOnly = await prisma.agentTool.createManyAndReturn({
636
+ * select: { id: true },
637
+ * data: [
638
+ * // ... provide data here
639
+ * ]
640
+ * })
641
+ * Note, that providing `undefined` is treated as the value not being there.
642
+ * Read more here: https://pris.ly/d/null-undefined
643
+ *
644
+ */
645
+ createManyAndReturn<T extends AgentToolCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentToolCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
646
+
647
+ /**
648
+ * Delete a AgentTool.
649
+ * @param {AgentToolDeleteArgs} args - Arguments to delete one AgentTool.
650
+ * @example
651
+ * // Delete one AgentTool
652
+ * const AgentTool = await prisma.agentTool.delete({
653
+ * where: {
654
+ * // ... filter to delete one AgentTool
655
+ * }
656
+ * })
657
+ *
658
+ */
659
+ delete<T extends AgentToolDeleteArgs>(args: Prisma.SelectSubset<T, AgentToolDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
660
+
661
+ /**
662
+ * Update one AgentTool.
663
+ * @param {AgentToolUpdateArgs} args - Arguments to update one AgentTool.
664
+ * @example
665
+ * // Update one AgentTool
666
+ * const agentTool = await prisma.agentTool.update({
667
+ * where: {
668
+ * // ... provide filter here
669
+ * },
670
+ * data: {
671
+ * // ... provide data here
672
+ * }
673
+ * })
674
+ *
675
+ */
676
+ update<T extends AgentToolUpdateArgs>(args: Prisma.SelectSubset<T, AgentToolUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
677
+
678
+ /**
679
+ * Delete zero or more AgentTools.
680
+ * @param {AgentToolDeleteManyArgs} args - Arguments to filter AgentTools to delete.
681
+ * @example
682
+ * // Delete a few AgentTools
683
+ * const { count } = await prisma.agentTool.deleteMany({
684
+ * where: {
685
+ * // ... provide filter here
686
+ * }
687
+ * })
688
+ *
689
+ */
690
+ deleteMany<T extends AgentToolDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentToolDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
691
+
692
+ /**
693
+ * Update zero or more AgentTools.
694
+ * Note, that providing `undefined` is treated as the value not being there.
695
+ * Read more here: https://pris.ly/d/null-undefined
696
+ * @param {AgentToolUpdateManyArgs} args - Arguments to update one or more rows.
697
+ * @example
698
+ * // Update many AgentTools
699
+ * const agentTool = await prisma.agentTool.updateMany({
700
+ * where: {
701
+ * // ... provide filter here
702
+ * },
703
+ * data: {
704
+ * // ... provide data here
705
+ * }
706
+ * })
707
+ *
708
+ */
709
+ updateMany<T extends AgentToolUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentToolUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
710
+
711
+ /**
712
+ * Update zero or more AgentTools and returns the data updated in the database.
713
+ * @param {AgentToolUpdateManyAndReturnArgs} args - Arguments to update many AgentTools.
714
+ * @example
715
+ * // Update many AgentTools
716
+ * const agentTool = await prisma.agentTool.updateManyAndReturn({
717
+ * where: {
718
+ * // ... provide filter here
719
+ * },
720
+ * data: [
721
+ * // ... provide data here
722
+ * ]
723
+ * })
724
+ *
725
+ * // Update zero or more AgentTools and only return the `id`
726
+ * const agentToolWithIdOnly = await prisma.agentTool.updateManyAndReturn({
727
+ * select: { id: true },
728
+ * where: {
729
+ * // ... provide filter here
730
+ * },
731
+ * data: [
732
+ * // ... provide data here
733
+ * ]
734
+ * })
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ *
738
+ */
739
+ updateManyAndReturn<T extends AgentToolUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentToolUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
740
+
741
+ /**
742
+ * Create or update one AgentTool.
743
+ * @param {AgentToolUpsertArgs} args - Arguments to update or create a AgentTool.
744
+ * @example
745
+ * // Update or create a AgentTool
746
+ * const agentTool = await prisma.agentTool.upsert({
747
+ * create: {
748
+ * // ... data to create a AgentTool
749
+ * },
750
+ * update: {
751
+ * // ... in case it already exists, update
752
+ * },
753
+ * where: {
754
+ * // ... the filter for the AgentTool we want to update
755
+ * }
756
+ * })
757
+ */
758
+ upsert<T extends AgentToolUpsertArgs>(args: Prisma.SelectSubset<T, AgentToolUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentToolClient<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
759
+
760
+
761
+ /**
762
+ * Count the number of AgentTools.
763
+ * Note, that providing `undefined` is treated as the value not being there.
764
+ * Read more here: https://pris.ly/d/null-undefined
765
+ * @param {AgentToolCountArgs} args - Arguments to filter AgentTools to count.
766
+ * @example
767
+ * // Count the number of AgentTools
768
+ * const count = await prisma.agentTool.count({
769
+ * where: {
770
+ * // ... the filter for the AgentTools we want to count
771
+ * }
772
+ * })
773
+ **/
774
+ count<T extends AgentToolCountArgs>(
775
+ args?: Prisma.Subset<T, AgentToolCountArgs>,
776
+ ): Prisma.PrismaPromise<
777
+ T extends runtime.Types.Utils.Record<'select', any>
778
+ ? T['select'] extends true
779
+ ? number
780
+ : Prisma.GetScalarType<T['select'], AgentToolCountAggregateOutputType>
781
+ : number
782
+ >
783
+
784
+ /**
785
+ * Allows you to perform aggregations operations on a AgentTool.
786
+ * Note, that providing `undefined` is treated as the value not being there.
787
+ * Read more here: https://pris.ly/d/null-undefined
788
+ * @param {AgentToolAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
789
+ * @example
790
+ * // Ordered by age ascending
791
+ * // Where email contains prisma.io
792
+ * // Limited to the 10 users
793
+ * const aggregations = await prisma.user.aggregate({
794
+ * _avg: {
795
+ * age: true,
796
+ * },
797
+ * where: {
798
+ * email: {
799
+ * contains: "prisma.io",
800
+ * },
801
+ * },
802
+ * orderBy: {
803
+ * age: "asc",
804
+ * },
805
+ * take: 10,
806
+ * })
807
+ **/
808
+ aggregate<T extends AgentToolAggregateArgs>(args: Prisma.Subset<T, AgentToolAggregateArgs>): Prisma.PrismaPromise<GetAgentToolAggregateType<T>>
809
+
810
+ /**
811
+ * Group by AgentTool.
812
+ * Note, that providing `undefined` is treated as the value not being there.
813
+ * Read more here: https://pris.ly/d/null-undefined
814
+ * @param {AgentToolGroupByArgs} args - Group by arguments.
815
+ * @example
816
+ * // Group by city, order by createdAt, get count
817
+ * const result = await prisma.user.groupBy({
818
+ * by: ['city', 'createdAt'],
819
+ * orderBy: {
820
+ * createdAt: true
821
+ * },
822
+ * _count: {
823
+ * _all: true
824
+ * },
825
+ * })
826
+ *
827
+ **/
828
+ groupBy<
829
+ T extends AgentToolGroupByArgs,
830
+ HasSelectOrTake extends Prisma.Or<
831
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
832
+ Prisma.Extends<'take', Prisma.Keys<T>>
833
+ >,
834
+ OrderByArg extends Prisma.True extends HasSelectOrTake
835
+ ? { orderBy: AgentToolGroupByArgs['orderBy'] }
836
+ : { orderBy?: AgentToolGroupByArgs['orderBy'] },
837
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
838
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
839
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
840
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
841
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
842
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
843
+ InputErrors extends ByEmpty extends Prisma.True
844
+ ? `Error: "by" must not be empty.`
845
+ : HavingValid extends Prisma.False
846
+ ? {
847
+ [P in HavingFields]: P extends ByFields
848
+ ? never
849
+ : P extends string
850
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
851
+ : [
852
+ Error,
853
+ 'Field ',
854
+ P,
855
+ ` in "having" needs to be provided in "by"`,
856
+ ]
857
+ }[HavingFields]
858
+ : 'take' extends Prisma.Keys<T>
859
+ ? 'orderBy' extends Prisma.Keys<T>
860
+ ? ByValid extends Prisma.True
861
+ ? {}
862
+ : {
863
+ [P in OrderFields]: P extends ByFields
864
+ ? never
865
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
866
+ }[OrderFields]
867
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
868
+ : 'skip' extends Prisma.Keys<T>
869
+ ? 'orderBy' extends Prisma.Keys<T>
870
+ ? ByValid extends Prisma.True
871
+ ? {}
872
+ : {
873
+ [P in OrderFields]: P extends ByFields
874
+ ? never
875
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
876
+ }[OrderFields]
877
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
878
+ : ByValid extends Prisma.True
879
+ ? {}
880
+ : {
881
+ [P in OrderFields]: P extends ByFields
882
+ ? never
883
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
884
+ }[OrderFields]
885
+ >(args: Prisma.SubsetIntersection<T, AgentToolGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentToolGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
886
+ /**
887
+ * Fields of the AgentTool model
888
+ */
889
+ readonly fields: AgentToolFieldRefs;
890
+ }
891
+
892
+ /**
893
+ * The delegate class that acts as a "Promise-like" for AgentTool.
894
+ * Why is this prefixed with `Prisma__`?
895
+ * Because we want to prevent naming conflicts as mentioned in
896
+ * https://github.com/prisma/prisma-client-js/issues/707
897
+ */
898
+ export interface Prisma__AgentToolClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
899
+ readonly [Symbol.toStringTag]: "PrismaPromise"
900
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
901
+ /**
902
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
903
+ * @param onfulfilled The callback to execute when the Promise is resolved.
904
+ * @param onrejected The callback to execute when the Promise is rejected.
905
+ * @returns A Promise for the completion of which ever callback is executed.
906
+ */
907
+ 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>
908
+ /**
909
+ * Attaches a callback for only the rejection of the Promise.
910
+ * @param onrejected The callback to execute when the Promise is rejected.
911
+ * @returns A Promise for the completion of the callback.
912
+ */
913
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
914
+ /**
915
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
916
+ * resolved value cannot be modified from the callback.
917
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
918
+ * @returns A Promise for the completion of the callback.
919
+ */
920
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
921
+ }
922
+
923
+
924
+
925
+
926
+ /**
927
+ * Fields of the AgentTool model
928
+ */
929
+ export interface AgentToolFieldRefs {
930
+ readonly id: Prisma.FieldRef<"AgentTool", 'String'>
931
+ readonly agentId: Prisma.FieldRef<"AgentTool", 'String'>
932
+ readonly pattern: Prisma.FieldRef<"AgentTool", 'String'>
933
+ readonly enabled: Prisma.FieldRef<"AgentTool", 'Boolean'>
934
+ readonly createdAt: Prisma.FieldRef<"AgentTool", 'DateTime'>
935
+ }
936
+
937
+
938
+ // Custom InputTypes
939
+ /**
940
+ * AgentTool findUnique
941
+ */
942
+ export type AgentToolFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
943
+ /**
944
+ * Select specific fields to fetch from the AgentTool
945
+ */
946
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
947
+ /**
948
+ * Omit specific fields from the AgentTool
949
+ */
950
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
951
+ /**
952
+ * Choose, which related nodes to fetch as well
953
+ */
954
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
955
+ /**
956
+ * Filter, which AgentTool to fetch.
957
+ */
958
+ where: Prisma.AgentToolWhereUniqueInput
959
+ }
960
+
961
+ /**
962
+ * AgentTool findUniqueOrThrow
963
+ */
964
+ export type AgentToolFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
965
+ /**
966
+ * Select specific fields to fetch from the AgentTool
967
+ */
968
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
969
+ /**
970
+ * Omit specific fields from the AgentTool
971
+ */
972
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
973
+ /**
974
+ * Choose, which related nodes to fetch as well
975
+ */
976
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
977
+ /**
978
+ * Filter, which AgentTool to fetch.
979
+ */
980
+ where: Prisma.AgentToolWhereUniqueInput
981
+ }
982
+
983
+ /**
984
+ * AgentTool findFirst
985
+ */
986
+ export type AgentToolFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
987
+ /**
988
+ * Select specific fields to fetch from the AgentTool
989
+ */
990
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
991
+ /**
992
+ * Omit specific fields from the AgentTool
993
+ */
994
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
995
+ /**
996
+ * Choose, which related nodes to fetch as well
997
+ */
998
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
999
+ /**
1000
+ * Filter, which AgentTool to fetch.
1001
+ */
1002
+ where?: Prisma.AgentToolWhereInput
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1005
+ *
1006
+ * Determine the order of AgentTools to fetch.
1007
+ */
1008
+ orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[]
1009
+ /**
1010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1011
+ *
1012
+ * Sets the position for searching for AgentTools.
1013
+ */
1014
+ cursor?: Prisma.AgentToolWhereUniqueInput
1015
+ /**
1016
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1017
+ *
1018
+ * Take `±n` AgentTools from the position of the cursor.
1019
+ */
1020
+ take?: number
1021
+ /**
1022
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1023
+ *
1024
+ * Skip the first `n` AgentTools.
1025
+ */
1026
+ skip?: number
1027
+ /**
1028
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1029
+ *
1030
+ * Filter by unique combinations of AgentTools.
1031
+ */
1032
+ distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[]
1033
+ }
1034
+
1035
+ /**
1036
+ * AgentTool findFirstOrThrow
1037
+ */
1038
+ export type AgentToolFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1039
+ /**
1040
+ * Select specific fields to fetch from the AgentTool
1041
+ */
1042
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
1043
+ /**
1044
+ * Omit specific fields from the AgentTool
1045
+ */
1046
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1047
+ /**
1048
+ * Choose, which related nodes to fetch as well
1049
+ */
1050
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
1051
+ /**
1052
+ * Filter, which AgentTool to fetch.
1053
+ */
1054
+ where?: Prisma.AgentToolWhereInput
1055
+ /**
1056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1057
+ *
1058
+ * Determine the order of AgentTools to fetch.
1059
+ */
1060
+ orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[]
1061
+ /**
1062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1063
+ *
1064
+ * Sets the position for searching for AgentTools.
1065
+ */
1066
+ cursor?: Prisma.AgentToolWhereUniqueInput
1067
+ /**
1068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1069
+ *
1070
+ * Take `±n` AgentTools from the position of the cursor.
1071
+ */
1072
+ take?: number
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1075
+ *
1076
+ * Skip the first `n` AgentTools.
1077
+ */
1078
+ skip?: number
1079
+ /**
1080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1081
+ *
1082
+ * Filter by unique combinations of AgentTools.
1083
+ */
1084
+ distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[]
1085
+ }
1086
+
1087
+ /**
1088
+ * AgentTool findMany
1089
+ */
1090
+ export type AgentToolFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1091
+ /**
1092
+ * Select specific fields to fetch from the AgentTool
1093
+ */
1094
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
1095
+ /**
1096
+ * Omit specific fields from the AgentTool
1097
+ */
1098
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1099
+ /**
1100
+ * Choose, which related nodes to fetch as well
1101
+ */
1102
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
1103
+ /**
1104
+ * Filter, which AgentTools to fetch.
1105
+ */
1106
+ where?: Prisma.AgentToolWhereInput
1107
+ /**
1108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1109
+ *
1110
+ * Determine the order of AgentTools to fetch.
1111
+ */
1112
+ orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[]
1113
+ /**
1114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1115
+ *
1116
+ * Sets the position for listing AgentTools.
1117
+ */
1118
+ cursor?: Prisma.AgentToolWhereUniqueInput
1119
+ /**
1120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1121
+ *
1122
+ * Take `±n` AgentTools from the position of the cursor.
1123
+ */
1124
+ take?: number
1125
+ /**
1126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1127
+ *
1128
+ * Skip the first `n` AgentTools.
1129
+ */
1130
+ skip?: number
1131
+ /**
1132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1133
+ *
1134
+ * Filter by unique combinations of AgentTools.
1135
+ */
1136
+ distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[]
1137
+ }
1138
+
1139
+ /**
1140
+ * AgentTool create
1141
+ */
1142
+ export type AgentToolCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1143
+ /**
1144
+ * Select specific fields to fetch from the AgentTool
1145
+ */
1146
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
1147
+ /**
1148
+ * Omit specific fields from the AgentTool
1149
+ */
1150
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1151
+ /**
1152
+ * Choose, which related nodes to fetch as well
1153
+ */
1154
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
1155
+ /**
1156
+ * The data needed to create a AgentTool.
1157
+ */
1158
+ data: Prisma.XOR<Prisma.AgentToolCreateInput, Prisma.AgentToolUncheckedCreateInput>
1159
+ }
1160
+
1161
+ /**
1162
+ * AgentTool createMany
1163
+ */
1164
+ export type AgentToolCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
+ /**
1166
+ * The data used to create many AgentTools.
1167
+ */
1168
+ data: Prisma.AgentToolCreateManyInput | Prisma.AgentToolCreateManyInput[]
1169
+ skipDuplicates?: boolean
1170
+ }
1171
+
1172
+ /**
1173
+ * AgentTool createManyAndReturn
1174
+ */
1175
+ export type AgentToolCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1176
+ /**
1177
+ * Select specific fields to fetch from the AgentTool
1178
+ */
1179
+ select?: Prisma.AgentToolSelectCreateManyAndReturn<ExtArgs> | null
1180
+ /**
1181
+ * Omit specific fields from the AgentTool
1182
+ */
1183
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1184
+ /**
1185
+ * The data used to create many AgentTools.
1186
+ */
1187
+ data: Prisma.AgentToolCreateManyInput | Prisma.AgentToolCreateManyInput[]
1188
+ skipDuplicates?: boolean
1189
+ /**
1190
+ * Choose, which related nodes to fetch as well
1191
+ */
1192
+ include?: Prisma.AgentToolIncludeCreateManyAndReturn<ExtArgs> | null
1193
+ }
1194
+
1195
+ /**
1196
+ * AgentTool update
1197
+ */
1198
+ export type AgentToolUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1199
+ /**
1200
+ * Select specific fields to fetch from the AgentTool
1201
+ */
1202
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
1203
+ /**
1204
+ * Omit specific fields from the AgentTool
1205
+ */
1206
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1207
+ /**
1208
+ * Choose, which related nodes to fetch as well
1209
+ */
1210
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
1211
+ /**
1212
+ * The data needed to update a AgentTool.
1213
+ */
1214
+ data: Prisma.XOR<Prisma.AgentToolUpdateInput, Prisma.AgentToolUncheckedUpdateInput>
1215
+ /**
1216
+ * Choose, which AgentTool to update.
1217
+ */
1218
+ where: Prisma.AgentToolWhereUniqueInput
1219
+ }
1220
+
1221
+ /**
1222
+ * AgentTool updateMany
1223
+ */
1224
+ export type AgentToolUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1225
+ /**
1226
+ * The data used to update AgentTools.
1227
+ */
1228
+ data: Prisma.XOR<Prisma.AgentToolUpdateManyMutationInput, Prisma.AgentToolUncheckedUpdateManyInput>
1229
+ /**
1230
+ * Filter which AgentTools to update
1231
+ */
1232
+ where?: Prisma.AgentToolWhereInput
1233
+ /**
1234
+ * Limit how many AgentTools to update.
1235
+ */
1236
+ limit?: number
1237
+ }
1238
+
1239
+ /**
1240
+ * AgentTool updateManyAndReturn
1241
+ */
1242
+ export type AgentToolUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1243
+ /**
1244
+ * Select specific fields to fetch from the AgentTool
1245
+ */
1246
+ select?: Prisma.AgentToolSelectUpdateManyAndReturn<ExtArgs> | null
1247
+ /**
1248
+ * Omit specific fields from the AgentTool
1249
+ */
1250
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1251
+ /**
1252
+ * The data used to update AgentTools.
1253
+ */
1254
+ data: Prisma.XOR<Prisma.AgentToolUpdateManyMutationInput, Prisma.AgentToolUncheckedUpdateManyInput>
1255
+ /**
1256
+ * Filter which AgentTools to update
1257
+ */
1258
+ where?: Prisma.AgentToolWhereInput
1259
+ /**
1260
+ * Limit how many AgentTools to update.
1261
+ */
1262
+ limit?: number
1263
+ /**
1264
+ * Choose, which related nodes to fetch as well
1265
+ */
1266
+ include?: Prisma.AgentToolIncludeUpdateManyAndReturn<ExtArgs> | null
1267
+ }
1268
+
1269
+ /**
1270
+ * AgentTool upsert
1271
+ */
1272
+ export type AgentToolUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1273
+ /**
1274
+ * Select specific fields to fetch from the AgentTool
1275
+ */
1276
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
1277
+ /**
1278
+ * Omit specific fields from the AgentTool
1279
+ */
1280
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1281
+ /**
1282
+ * Choose, which related nodes to fetch as well
1283
+ */
1284
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
1285
+ /**
1286
+ * The filter to search for the AgentTool to update in case it exists.
1287
+ */
1288
+ where: Prisma.AgentToolWhereUniqueInput
1289
+ /**
1290
+ * In case the AgentTool found by the `where` argument doesn't exist, create a new AgentTool with this data.
1291
+ */
1292
+ create: Prisma.XOR<Prisma.AgentToolCreateInput, Prisma.AgentToolUncheckedCreateInput>
1293
+ /**
1294
+ * In case the AgentTool was found with the provided `where` argument, update it with this data.
1295
+ */
1296
+ update: Prisma.XOR<Prisma.AgentToolUpdateInput, Prisma.AgentToolUncheckedUpdateInput>
1297
+ }
1298
+
1299
+ /**
1300
+ * AgentTool delete
1301
+ */
1302
+ export type AgentToolDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1303
+ /**
1304
+ * Select specific fields to fetch from the AgentTool
1305
+ */
1306
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
1307
+ /**
1308
+ * Omit specific fields from the AgentTool
1309
+ */
1310
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1311
+ /**
1312
+ * Choose, which related nodes to fetch as well
1313
+ */
1314
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
1315
+ /**
1316
+ * Filter which AgentTool to delete.
1317
+ */
1318
+ where: Prisma.AgentToolWhereUniqueInput
1319
+ }
1320
+
1321
+ /**
1322
+ * AgentTool deleteMany
1323
+ */
1324
+ export type AgentToolDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1325
+ /**
1326
+ * Filter which AgentTools to delete
1327
+ */
1328
+ where?: Prisma.AgentToolWhereInput
1329
+ /**
1330
+ * Limit how many AgentTools to delete.
1331
+ */
1332
+ limit?: number
1333
+ }
1334
+
1335
+ /**
1336
+ * AgentTool without action
1337
+ */
1338
+ export type AgentToolDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1339
+ /**
1340
+ * Select specific fields to fetch from the AgentTool
1341
+ */
1342
+ select?: Prisma.AgentToolSelect<ExtArgs> | null
1343
+ /**
1344
+ * Omit specific fields from the AgentTool
1345
+ */
1346
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null
1347
+ /**
1348
+ * Choose, which related nodes to fetch as well
1349
+ */
1350
+ include?: Prisma.AgentToolInclude<ExtArgs> | null
1351
+ }