@app-vitals/agent-admin 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,1532 @@
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 `AgentCronRunModelBreakdown` 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 AgentCronRunModelBreakdown
17
+ *
18
+ */
19
+ export type AgentCronRunModelBreakdownModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentCronRunModelBreakdownPayload>
20
+
21
+ export type AggregateAgentCronRunModelBreakdown = {
22
+ _count: AgentCronRunModelBreakdownCountAggregateOutputType | null
23
+ _avg: AgentCronRunModelBreakdownAvgAggregateOutputType | null
24
+ _sum: AgentCronRunModelBreakdownSumAggregateOutputType | null
25
+ _min: AgentCronRunModelBreakdownMinAggregateOutputType | null
26
+ _max: AgentCronRunModelBreakdownMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AgentCronRunModelBreakdownAvgAggregateOutputType = {
30
+ inputTokens: number | null
31
+ outputTokens: number | null
32
+ cacheReadTokens: number | null
33
+ cacheCreationTokens: number | null
34
+ costUsd: number | null
35
+ }
36
+
37
+ export type AgentCronRunModelBreakdownSumAggregateOutputType = {
38
+ inputTokens: number | null
39
+ outputTokens: number | null
40
+ cacheReadTokens: number | null
41
+ cacheCreationTokens: number | null
42
+ costUsd: number | null
43
+ }
44
+
45
+ export type AgentCronRunModelBreakdownMinAggregateOutputType = {
46
+ id: string | null
47
+ cronRunId: string | null
48
+ model: string | null
49
+ inputTokens: number | null
50
+ outputTokens: number | null
51
+ cacheReadTokens: number | null
52
+ cacheCreationTokens: number | null
53
+ costUsd: number | null
54
+ }
55
+
56
+ export type AgentCronRunModelBreakdownMaxAggregateOutputType = {
57
+ id: string | null
58
+ cronRunId: string | null
59
+ model: string | null
60
+ inputTokens: number | null
61
+ outputTokens: number | null
62
+ cacheReadTokens: number | null
63
+ cacheCreationTokens: number | null
64
+ costUsd: number | null
65
+ }
66
+
67
+ export type AgentCronRunModelBreakdownCountAggregateOutputType = {
68
+ id: number
69
+ cronRunId: number
70
+ model: number
71
+ inputTokens: number
72
+ outputTokens: number
73
+ cacheReadTokens: number
74
+ cacheCreationTokens: number
75
+ costUsd: number
76
+ _all: number
77
+ }
78
+
79
+
80
+ export type AgentCronRunModelBreakdownAvgAggregateInputType = {
81
+ inputTokens?: true
82
+ outputTokens?: true
83
+ cacheReadTokens?: true
84
+ cacheCreationTokens?: true
85
+ costUsd?: true
86
+ }
87
+
88
+ export type AgentCronRunModelBreakdownSumAggregateInputType = {
89
+ inputTokens?: true
90
+ outputTokens?: true
91
+ cacheReadTokens?: true
92
+ cacheCreationTokens?: true
93
+ costUsd?: true
94
+ }
95
+
96
+ export type AgentCronRunModelBreakdownMinAggregateInputType = {
97
+ id?: true
98
+ cronRunId?: true
99
+ model?: true
100
+ inputTokens?: true
101
+ outputTokens?: true
102
+ cacheReadTokens?: true
103
+ cacheCreationTokens?: true
104
+ costUsd?: true
105
+ }
106
+
107
+ export type AgentCronRunModelBreakdownMaxAggregateInputType = {
108
+ id?: true
109
+ cronRunId?: true
110
+ model?: true
111
+ inputTokens?: true
112
+ outputTokens?: true
113
+ cacheReadTokens?: true
114
+ cacheCreationTokens?: true
115
+ costUsd?: true
116
+ }
117
+
118
+ export type AgentCronRunModelBreakdownCountAggregateInputType = {
119
+ id?: true
120
+ cronRunId?: true
121
+ model?: true
122
+ inputTokens?: true
123
+ outputTokens?: true
124
+ cacheReadTokens?: true
125
+ cacheCreationTokens?: true
126
+ costUsd?: true
127
+ _all?: true
128
+ }
129
+
130
+ export type AgentCronRunModelBreakdownAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
131
+ /**
132
+ * Filter which AgentCronRunModelBreakdown to aggregate.
133
+ */
134
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
135
+ /**
136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
137
+ *
138
+ * Determine the order of AgentCronRunModelBreakdowns to fetch.
139
+ */
140
+ orderBy?: Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput | Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput[]
141
+ /**
142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
143
+ *
144
+ * Sets the start position
145
+ */
146
+ cursor?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
149
+ *
150
+ * Take `±n` AgentCronRunModelBreakdowns from the position of the cursor.
151
+ */
152
+ take?: number
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
155
+ *
156
+ * Skip the first `n` AgentCronRunModelBreakdowns.
157
+ */
158
+ skip?: number
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
+ *
162
+ * Count returned AgentCronRunModelBreakdowns
163
+ **/
164
+ _count?: true | AgentCronRunModelBreakdownCountAggregateInputType
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
+ *
168
+ * Select which fields to average
169
+ **/
170
+ _avg?: AgentCronRunModelBreakdownAvgAggregateInputType
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Select which fields to sum
175
+ **/
176
+ _sum?: AgentCronRunModelBreakdownSumAggregateInputType
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to find the minimum value
181
+ **/
182
+ _min?: AgentCronRunModelBreakdownMinAggregateInputType
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to find the maximum value
187
+ **/
188
+ _max?: AgentCronRunModelBreakdownMaxAggregateInputType
189
+ }
190
+
191
+ export type GetAgentCronRunModelBreakdownAggregateType<T extends AgentCronRunModelBreakdownAggregateArgs> = {
192
+ [P in keyof T & keyof AggregateAgentCronRunModelBreakdown]: P extends '_count' | 'count'
193
+ ? T[P] extends true
194
+ ? number
195
+ : Prisma.GetScalarType<T[P], AggregateAgentCronRunModelBreakdown[P]>
196
+ : Prisma.GetScalarType<T[P], AggregateAgentCronRunModelBreakdown[P]>
197
+ }
198
+
199
+
200
+
201
+
202
+ export type AgentCronRunModelBreakdownGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
203
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
204
+ orderBy?: Prisma.AgentCronRunModelBreakdownOrderByWithAggregationInput | Prisma.AgentCronRunModelBreakdownOrderByWithAggregationInput[]
205
+ by: Prisma.AgentCronRunModelBreakdownScalarFieldEnum[] | Prisma.AgentCronRunModelBreakdownScalarFieldEnum
206
+ having?: Prisma.AgentCronRunModelBreakdownScalarWhereWithAggregatesInput
207
+ take?: number
208
+ skip?: number
209
+ _count?: AgentCronRunModelBreakdownCountAggregateInputType | true
210
+ _avg?: AgentCronRunModelBreakdownAvgAggregateInputType
211
+ _sum?: AgentCronRunModelBreakdownSumAggregateInputType
212
+ _min?: AgentCronRunModelBreakdownMinAggregateInputType
213
+ _max?: AgentCronRunModelBreakdownMaxAggregateInputType
214
+ }
215
+
216
+ export type AgentCronRunModelBreakdownGroupByOutputType = {
217
+ id: string
218
+ cronRunId: string
219
+ model: string
220
+ inputTokens: number
221
+ outputTokens: number
222
+ cacheReadTokens: number
223
+ cacheCreationTokens: number
224
+ costUsd: number
225
+ _count: AgentCronRunModelBreakdownCountAggregateOutputType | null
226
+ _avg: AgentCronRunModelBreakdownAvgAggregateOutputType | null
227
+ _sum: AgentCronRunModelBreakdownSumAggregateOutputType | null
228
+ _min: AgentCronRunModelBreakdownMinAggregateOutputType | null
229
+ _max: AgentCronRunModelBreakdownMaxAggregateOutputType | null
230
+ }
231
+
232
+ export type GetAgentCronRunModelBreakdownGroupByPayload<T extends AgentCronRunModelBreakdownGroupByArgs> = Prisma.PrismaPromise<
233
+ Array<
234
+ Prisma.PickEnumerable<AgentCronRunModelBreakdownGroupByOutputType, T['by']> &
235
+ {
236
+ [P in ((keyof T) & (keyof AgentCronRunModelBreakdownGroupByOutputType))]: P extends '_count'
237
+ ? T[P] extends boolean
238
+ ? number
239
+ : Prisma.GetScalarType<T[P], AgentCronRunModelBreakdownGroupByOutputType[P]>
240
+ : Prisma.GetScalarType<T[P], AgentCronRunModelBreakdownGroupByOutputType[P]>
241
+ }
242
+ >
243
+ >
244
+
245
+
246
+
247
+ export type AgentCronRunModelBreakdownWhereInput = {
248
+ AND?: Prisma.AgentCronRunModelBreakdownWhereInput | Prisma.AgentCronRunModelBreakdownWhereInput[]
249
+ OR?: Prisma.AgentCronRunModelBreakdownWhereInput[]
250
+ NOT?: Prisma.AgentCronRunModelBreakdownWhereInput | Prisma.AgentCronRunModelBreakdownWhereInput[]
251
+ id?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
252
+ cronRunId?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
253
+ model?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
254
+ inputTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
255
+ outputTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
256
+ cacheReadTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
257
+ cacheCreationTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
258
+ costUsd?: Prisma.FloatFilter<"AgentCronRunModelBreakdown"> | number
259
+ cronRun?: Prisma.XOR<Prisma.AgentCronRunScalarRelationFilter, Prisma.AgentCronRunWhereInput>
260
+ }
261
+
262
+ export type AgentCronRunModelBreakdownOrderByWithRelationInput = {
263
+ id?: Prisma.SortOrder
264
+ cronRunId?: Prisma.SortOrder
265
+ model?: Prisma.SortOrder
266
+ inputTokens?: Prisma.SortOrder
267
+ outputTokens?: Prisma.SortOrder
268
+ cacheReadTokens?: Prisma.SortOrder
269
+ cacheCreationTokens?: Prisma.SortOrder
270
+ costUsd?: Prisma.SortOrder
271
+ cronRun?: Prisma.AgentCronRunOrderByWithRelationInput
272
+ }
273
+
274
+ export type AgentCronRunModelBreakdownWhereUniqueInput = Prisma.AtLeast<{
275
+ id?: string
276
+ cronRunId_model?: Prisma.AgentCronRunModelBreakdownCronRunIdModelCompoundUniqueInput
277
+ AND?: Prisma.AgentCronRunModelBreakdownWhereInput | Prisma.AgentCronRunModelBreakdownWhereInput[]
278
+ OR?: Prisma.AgentCronRunModelBreakdownWhereInput[]
279
+ NOT?: Prisma.AgentCronRunModelBreakdownWhereInput | Prisma.AgentCronRunModelBreakdownWhereInput[]
280
+ cronRunId?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
281
+ model?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
282
+ inputTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
283
+ outputTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
284
+ cacheReadTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
285
+ cacheCreationTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
286
+ costUsd?: Prisma.FloatFilter<"AgentCronRunModelBreakdown"> | number
287
+ cronRun?: Prisma.XOR<Prisma.AgentCronRunScalarRelationFilter, Prisma.AgentCronRunWhereInput>
288
+ }, "id" | "cronRunId_model">
289
+
290
+ export type AgentCronRunModelBreakdownOrderByWithAggregationInput = {
291
+ id?: Prisma.SortOrder
292
+ cronRunId?: Prisma.SortOrder
293
+ model?: Prisma.SortOrder
294
+ inputTokens?: Prisma.SortOrder
295
+ outputTokens?: Prisma.SortOrder
296
+ cacheReadTokens?: Prisma.SortOrder
297
+ cacheCreationTokens?: Prisma.SortOrder
298
+ costUsd?: Prisma.SortOrder
299
+ _count?: Prisma.AgentCronRunModelBreakdownCountOrderByAggregateInput
300
+ _avg?: Prisma.AgentCronRunModelBreakdownAvgOrderByAggregateInput
301
+ _max?: Prisma.AgentCronRunModelBreakdownMaxOrderByAggregateInput
302
+ _min?: Prisma.AgentCronRunModelBreakdownMinOrderByAggregateInput
303
+ _sum?: Prisma.AgentCronRunModelBreakdownSumOrderByAggregateInput
304
+ }
305
+
306
+ export type AgentCronRunModelBreakdownScalarWhereWithAggregatesInput = {
307
+ AND?: Prisma.AgentCronRunModelBreakdownScalarWhereWithAggregatesInput | Prisma.AgentCronRunModelBreakdownScalarWhereWithAggregatesInput[]
308
+ OR?: Prisma.AgentCronRunModelBreakdownScalarWhereWithAggregatesInput[]
309
+ NOT?: Prisma.AgentCronRunModelBreakdownScalarWhereWithAggregatesInput | Prisma.AgentCronRunModelBreakdownScalarWhereWithAggregatesInput[]
310
+ id?: Prisma.StringWithAggregatesFilter<"AgentCronRunModelBreakdown"> | string
311
+ cronRunId?: Prisma.StringWithAggregatesFilter<"AgentCronRunModelBreakdown"> | string
312
+ model?: Prisma.StringWithAggregatesFilter<"AgentCronRunModelBreakdown"> | string
313
+ inputTokens?: Prisma.IntWithAggregatesFilter<"AgentCronRunModelBreakdown"> | number
314
+ outputTokens?: Prisma.IntWithAggregatesFilter<"AgentCronRunModelBreakdown"> | number
315
+ cacheReadTokens?: Prisma.IntWithAggregatesFilter<"AgentCronRunModelBreakdown"> | number
316
+ cacheCreationTokens?: Prisma.IntWithAggregatesFilter<"AgentCronRunModelBreakdown"> | number
317
+ costUsd?: Prisma.FloatWithAggregatesFilter<"AgentCronRunModelBreakdown"> | number
318
+ }
319
+
320
+ export type AgentCronRunModelBreakdownCreateInput = {
321
+ id?: string
322
+ model: string
323
+ inputTokens?: number
324
+ outputTokens?: number
325
+ cacheReadTokens?: number
326
+ cacheCreationTokens?: number
327
+ costUsd?: number
328
+ cronRun: Prisma.AgentCronRunCreateNestedOneWithoutModelBreakdownInput
329
+ }
330
+
331
+ export type AgentCronRunModelBreakdownUncheckedCreateInput = {
332
+ id?: string
333
+ cronRunId: string
334
+ model: string
335
+ inputTokens?: number
336
+ outputTokens?: number
337
+ cacheReadTokens?: number
338
+ cacheCreationTokens?: number
339
+ costUsd?: number
340
+ }
341
+
342
+ export type AgentCronRunModelBreakdownUpdateInput = {
343
+ id?: Prisma.StringFieldUpdateOperationsInput | string
344
+ model?: Prisma.StringFieldUpdateOperationsInput | string
345
+ inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
346
+ outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
347
+ cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
348
+ cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number
349
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
350
+ cronRun?: Prisma.AgentCronRunUpdateOneRequiredWithoutModelBreakdownNestedInput
351
+ }
352
+
353
+ export type AgentCronRunModelBreakdownUncheckedUpdateInput = {
354
+ id?: Prisma.StringFieldUpdateOperationsInput | string
355
+ cronRunId?: Prisma.StringFieldUpdateOperationsInput | string
356
+ model?: Prisma.StringFieldUpdateOperationsInput | string
357
+ inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
358
+ outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
359
+ cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
360
+ cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number
361
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
362
+ }
363
+
364
+ export type AgentCronRunModelBreakdownCreateManyInput = {
365
+ id?: string
366
+ cronRunId: string
367
+ model: string
368
+ inputTokens?: number
369
+ outputTokens?: number
370
+ cacheReadTokens?: number
371
+ cacheCreationTokens?: number
372
+ costUsd?: number
373
+ }
374
+
375
+ export type AgentCronRunModelBreakdownUpdateManyMutationInput = {
376
+ id?: Prisma.StringFieldUpdateOperationsInput | string
377
+ model?: Prisma.StringFieldUpdateOperationsInput | string
378
+ inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
379
+ outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
380
+ cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
381
+ cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number
382
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
383
+ }
384
+
385
+ export type AgentCronRunModelBreakdownUncheckedUpdateManyInput = {
386
+ id?: Prisma.StringFieldUpdateOperationsInput | string
387
+ cronRunId?: Prisma.StringFieldUpdateOperationsInput | string
388
+ model?: Prisma.StringFieldUpdateOperationsInput | string
389
+ inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
390
+ outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
391
+ cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
392
+ cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number
393
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
394
+ }
395
+
396
+ export type AgentCronRunModelBreakdownListRelationFilter = {
397
+ every?: Prisma.AgentCronRunModelBreakdownWhereInput
398
+ some?: Prisma.AgentCronRunModelBreakdownWhereInput
399
+ none?: Prisma.AgentCronRunModelBreakdownWhereInput
400
+ }
401
+
402
+ export type AgentCronRunModelBreakdownOrderByRelationAggregateInput = {
403
+ _count?: Prisma.SortOrder
404
+ }
405
+
406
+ export type AgentCronRunModelBreakdownCronRunIdModelCompoundUniqueInput = {
407
+ cronRunId: string
408
+ model: string
409
+ }
410
+
411
+ export type AgentCronRunModelBreakdownCountOrderByAggregateInput = {
412
+ id?: Prisma.SortOrder
413
+ cronRunId?: Prisma.SortOrder
414
+ model?: Prisma.SortOrder
415
+ inputTokens?: Prisma.SortOrder
416
+ outputTokens?: Prisma.SortOrder
417
+ cacheReadTokens?: Prisma.SortOrder
418
+ cacheCreationTokens?: Prisma.SortOrder
419
+ costUsd?: Prisma.SortOrder
420
+ }
421
+
422
+ export type AgentCronRunModelBreakdownAvgOrderByAggregateInput = {
423
+ inputTokens?: Prisma.SortOrder
424
+ outputTokens?: Prisma.SortOrder
425
+ cacheReadTokens?: Prisma.SortOrder
426
+ cacheCreationTokens?: Prisma.SortOrder
427
+ costUsd?: Prisma.SortOrder
428
+ }
429
+
430
+ export type AgentCronRunModelBreakdownMaxOrderByAggregateInput = {
431
+ id?: Prisma.SortOrder
432
+ cronRunId?: Prisma.SortOrder
433
+ model?: Prisma.SortOrder
434
+ inputTokens?: Prisma.SortOrder
435
+ outputTokens?: Prisma.SortOrder
436
+ cacheReadTokens?: Prisma.SortOrder
437
+ cacheCreationTokens?: Prisma.SortOrder
438
+ costUsd?: Prisma.SortOrder
439
+ }
440
+
441
+ export type AgentCronRunModelBreakdownMinOrderByAggregateInput = {
442
+ id?: Prisma.SortOrder
443
+ cronRunId?: Prisma.SortOrder
444
+ model?: Prisma.SortOrder
445
+ inputTokens?: Prisma.SortOrder
446
+ outputTokens?: Prisma.SortOrder
447
+ cacheReadTokens?: Prisma.SortOrder
448
+ cacheCreationTokens?: Prisma.SortOrder
449
+ costUsd?: Prisma.SortOrder
450
+ }
451
+
452
+ export type AgentCronRunModelBreakdownSumOrderByAggregateInput = {
453
+ inputTokens?: Prisma.SortOrder
454
+ outputTokens?: Prisma.SortOrder
455
+ cacheReadTokens?: Prisma.SortOrder
456
+ cacheCreationTokens?: Prisma.SortOrder
457
+ costUsd?: Prisma.SortOrder
458
+ }
459
+
460
+ export type AgentCronRunModelBreakdownCreateNestedManyWithoutCronRunInput = {
461
+ create?: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput> | Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput[] | Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput[]
462
+ connectOrCreate?: Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput[]
463
+ createMany?: Prisma.AgentCronRunModelBreakdownCreateManyCronRunInputEnvelope
464
+ connect?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
465
+ }
466
+
467
+ export type AgentCronRunModelBreakdownUncheckedCreateNestedManyWithoutCronRunInput = {
468
+ create?: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput> | Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput[] | Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput[]
469
+ connectOrCreate?: Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput[]
470
+ createMany?: Prisma.AgentCronRunModelBreakdownCreateManyCronRunInputEnvelope
471
+ connect?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
472
+ }
473
+
474
+ export type AgentCronRunModelBreakdownUpdateManyWithoutCronRunNestedInput = {
475
+ create?: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput> | Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput[] | Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput[]
476
+ connectOrCreate?: Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput[]
477
+ upsert?: Prisma.AgentCronRunModelBreakdownUpsertWithWhereUniqueWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownUpsertWithWhereUniqueWithoutCronRunInput[]
478
+ createMany?: Prisma.AgentCronRunModelBreakdownCreateManyCronRunInputEnvelope
479
+ set?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
480
+ disconnect?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
481
+ delete?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
482
+ connect?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
483
+ update?: Prisma.AgentCronRunModelBreakdownUpdateWithWhereUniqueWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownUpdateWithWhereUniqueWithoutCronRunInput[]
484
+ updateMany?: Prisma.AgentCronRunModelBreakdownUpdateManyWithWhereWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownUpdateManyWithWhereWithoutCronRunInput[]
485
+ deleteMany?: Prisma.AgentCronRunModelBreakdownScalarWhereInput | Prisma.AgentCronRunModelBreakdownScalarWhereInput[]
486
+ }
487
+
488
+ export type AgentCronRunModelBreakdownUncheckedUpdateManyWithoutCronRunNestedInput = {
489
+ create?: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput> | Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput[] | Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput[]
490
+ connectOrCreate?: Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput[]
491
+ upsert?: Prisma.AgentCronRunModelBreakdownUpsertWithWhereUniqueWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownUpsertWithWhereUniqueWithoutCronRunInput[]
492
+ createMany?: Prisma.AgentCronRunModelBreakdownCreateManyCronRunInputEnvelope
493
+ set?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
494
+ disconnect?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
495
+ delete?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
496
+ connect?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput | Prisma.AgentCronRunModelBreakdownWhereUniqueInput[]
497
+ update?: Prisma.AgentCronRunModelBreakdownUpdateWithWhereUniqueWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownUpdateWithWhereUniqueWithoutCronRunInput[]
498
+ updateMany?: Prisma.AgentCronRunModelBreakdownUpdateManyWithWhereWithoutCronRunInput | Prisma.AgentCronRunModelBreakdownUpdateManyWithWhereWithoutCronRunInput[]
499
+ deleteMany?: Prisma.AgentCronRunModelBreakdownScalarWhereInput | Prisma.AgentCronRunModelBreakdownScalarWhereInput[]
500
+ }
501
+
502
+ export type FloatFieldUpdateOperationsInput = {
503
+ set?: number
504
+ increment?: number
505
+ decrement?: number
506
+ multiply?: number
507
+ divide?: number
508
+ }
509
+
510
+ export type AgentCronRunModelBreakdownCreateWithoutCronRunInput = {
511
+ id?: string
512
+ model: string
513
+ inputTokens?: number
514
+ outputTokens?: number
515
+ cacheReadTokens?: number
516
+ cacheCreationTokens?: number
517
+ costUsd?: number
518
+ }
519
+
520
+ export type AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput = {
521
+ id?: string
522
+ model: string
523
+ inputTokens?: number
524
+ outputTokens?: number
525
+ cacheReadTokens?: number
526
+ cacheCreationTokens?: number
527
+ costUsd?: number
528
+ }
529
+
530
+ export type AgentCronRunModelBreakdownCreateOrConnectWithoutCronRunInput = {
531
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
532
+ create: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput>
533
+ }
534
+
535
+ export type AgentCronRunModelBreakdownCreateManyCronRunInputEnvelope = {
536
+ data: Prisma.AgentCronRunModelBreakdownCreateManyCronRunInput | Prisma.AgentCronRunModelBreakdownCreateManyCronRunInput[]
537
+ skipDuplicates?: boolean
538
+ }
539
+
540
+ export type AgentCronRunModelBreakdownUpsertWithWhereUniqueWithoutCronRunInput = {
541
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
542
+ update: Prisma.XOR<Prisma.AgentCronRunModelBreakdownUpdateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedUpdateWithoutCronRunInput>
543
+ create: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateWithoutCronRunInput>
544
+ }
545
+
546
+ export type AgentCronRunModelBreakdownUpdateWithWhereUniqueWithoutCronRunInput = {
547
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
548
+ data: Prisma.XOR<Prisma.AgentCronRunModelBreakdownUpdateWithoutCronRunInput, Prisma.AgentCronRunModelBreakdownUncheckedUpdateWithoutCronRunInput>
549
+ }
550
+
551
+ export type AgentCronRunModelBreakdownUpdateManyWithWhereWithoutCronRunInput = {
552
+ where: Prisma.AgentCronRunModelBreakdownScalarWhereInput
553
+ data: Prisma.XOR<Prisma.AgentCronRunModelBreakdownUpdateManyMutationInput, Prisma.AgentCronRunModelBreakdownUncheckedUpdateManyWithoutCronRunInput>
554
+ }
555
+
556
+ export type AgentCronRunModelBreakdownScalarWhereInput = {
557
+ AND?: Prisma.AgentCronRunModelBreakdownScalarWhereInput | Prisma.AgentCronRunModelBreakdownScalarWhereInput[]
558
+ OR?: Prisma.AgentCronRunModelBreakdownScalarWhereInput[]
559
+ NOT?: Prisma.AgentCronRunModelBreakdownScalarWhereInput | Prisma.AgentCronRunModelBreakdownScalarWhereInput[]
560
+ id?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
561
+ cronRunId?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
562
+ model?: Prisma.StringFilter<"AgentCronRunModelBreakdown"> | string
563
+ inputTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
564
+ outputTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
565
+ cacheReadTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
566
+ cacheCreationTokens?: Prisma.IntFilter<"AgentCronRunModelBreakdown"> | number
567
+ costUsd?: Prisma.FloatFilter<"AgentCronRunModelBreakdown"> | number
568
+ }
569
+
570
+ export type AgentCronRunModelBreakdownCreateManyCronRunInput = {
571
+ id?: string
572
+ model: string
573
+ inputTokens?: number
574
+ outputTokens?: number
575
+ cacheReadTokens?: number
576
+ cacheCreationTokens?: number
577
+ costUsd?: number
578
+ }
579
+
580
+ export type AgentCronRunModelBreakdownUpdateWithoutCronRunInput = {
581
+ id?: Prisma.StringFieldUpdateOperationsInput | string
582
+ model?: Prisma.StringFieldUpdateOperationsInput | string
583
+ inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
584
+ outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
585
+ cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
586
+ cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number
587
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
588
+ }
589
+
590
+ export type AgentCronRunModelBreakdownUncheckedUpdateWithoutCronRunInput = {
591
+ id?: Prisma.StringFieldUpdateOperationsInput | string
592
+ model?: Prisma.StringFieldUpdateOperationsInput | string
593
+ inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
594
+ outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
595
+ cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
596
+ cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number
597
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
598
+ }
599
+
600
+ export type AgentCronRunModelBreakdownUncheckedUpdateManyWithoutCronRunInput = {
601
+ id?: Prisma.StringFieldUpdateOperationsInput | string
602
+ model?: Prisma.StringFieldUpdateOperationsInput | string
603
+ inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
604
+ outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
605
+ cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number
606
+ cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number
607
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
608
+ }
609
+
610
+
611
+
612
+ export type AgentCronRunModelBreakdownSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
613
+ id?: boolean
614
+ cronRunId?: boolean
615
+ model?: boolean
616
+ inputTokens?: boolean
617
+ outputTokens?: boolean
618
+ cacheReadTokens?: boolean
619
+ cacheCreationTokens?: boolean
620
+ costUsd?: boolean
621
+ cronRun?: boolean | Prisma.AgentCronRunDefaultArgs<ExtArgs>
622
+ }, ExtArgs["result"]["agentCronRunModelBreakdown"]>
623
+
624
+ export type AgentCronRunModelBreakdownSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
625
+ id?: boolean
626
+ cronRunId?: boolean
627
+ model?: boolean
628
+ inputTokens?: boolean
629
+ outputTokens?: boolean
630
+ cacheReadTokens?: boolean
631
+ cacheCreationTokens?: boolean
632
+ costUsd?: boolean
633
+ cronRun?: boolean | Prisma.AgentCronRunDefaultArgs<ExtArgs>
634
+ }, ExtArgs["result"]["agentCronRunModelBreakdown"]>
635
+
636
+ export type AgentCronRunModelBreakdownSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
637
+ id?: boolean
638
+ cronRunId?: boolean
639
+ model?: boolean
640
+ inputTokens?: boolean
641
+ outputTokens?: boolean
642
+ cacheReadTokens?: boolean
643
+ cacheCreationTokens?: boolean
644
+ costUsd?: boolean
645
+ cronRun?: boolean | Prisma.AgentCronRunDefaultArgs<ExtArgs>
646
+ }, ExtArgs["result"]["agentCronRunModelBreakdown"]>
647
+
648
+ export type AgentCronRunModelBreakdownSelectScalar = {
649
+ id?: boolean
650
+ cronRunId?: boolean
651
+ model?: boolean
652
+ inputTokens?: boolean
653
+ outputTokens?: boolean
654
+ cacheReadTokens?: boolean
655
+ cacheCreationTokens?: boolean
656
+ costUsd?: boolean
657
+ }
658
+
659
+ export type AgentCronRunModelBreakdownOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cronRunId" | "model" | "inputTokens" | "outputTokens" | "cacheReadTokens" | "cacheCreationTokens" | "costUsd", ExtArgs["result"]["agentCronRunModelBreakdown"]>
660
+ export type AgentCronRunModelBreakdownInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
661
+ cronRun?: boolean | Prisma.AgentCronRunDefaultArgs<ExtArgs>
662
+ }
663
+ export type AgentCronRunModelBreakdownIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
664
+ cronRun?: boolean | Prisma.AgentCronRunDefaultArgs<ExtArgs>
665
+ }
666
+ export type AgentCronRunModelBreakdownIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
667
+ cronRun?: boolean | Prisma.AgentCronRunDefaultArgs<ExtArgs>
668
+ }
669
+
670
+ export type $AgentCronRunModelBreakdownPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
671
+ name: "AgentCronRunModelBreakdown"
672
+ objects: {
673
+ cronRun: Prisma.$AgentCronRunPayload<ExtArgs>
674
+ }
675
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
676
+ id: string
677
+ cronRunId: string
678
+ model: string
679
+ inputTokens: number
680
+ outputTokens: number
681
+ cacheReadTokens: number
682
+ cacheCreationTokens: number
683
+ costUsd: number
684
+ }, ExtArgs["result"]["agentCronRunModelBreakdown"]>
685
+ composites: {}
686
+ }
687
+
688
+ export type AgentCronRunModelBreakdownGetPayload<S extends boolean | null | undefined | AgentCronRunModelBreakdownDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload, S>
689
+
690
+ export type AgentCronRunModelBreakdownCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
691
+ Omit<AgentCronRunModelBreakdownFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
692
+ select?: AgentCronRunModelBreakdownCountAggregateInputType | true
693
+ }
694
+
695
+ export interface AgentCronRunModelBreakdownDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
696
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentCronRunModelBreakdown'], meta: { name: 'AgentCronRunModelBreakdown' } }
697
+ /**
698
+ * Find zero or one AgentCronRunModelBreakdown that matches the filter.
699
+ * @param {AgentCronRunModelBreakdownFindUniqueArgs} args - Arguments to find a AgentCronRunModelBreakdown
700
+ * @example
701
+ * // Get one AgentCronRunModelBreakdown
702
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.findUnique({
703
+ * where: {
704
+ * // ... provide filter here
705
+ * }
706
+ * })
707
+ */
708
+ findUnique<T extends AgentCronRunModelBreakdownFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
709
+
710
+ /**
711
+ * Find one AgentCronRunModelBreakdown that matches the filter or throw an error with `error.code='P2025'`
712
+ * if no matches were found.
713
+ * @param {AgentCronRunModelBreakdownFindUniqueOrThrowArgs} args - Arguments to find a AgentCronRunModelBreakdown
714
+ * @example
715
+ * // Get one AgentCronRunModelBreakdown
716
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.findUniqueOrThrow({
717
+ * where: {
718
+ * // ... provide filter here
719
+ * }
720
+ * })
721
+ */
722
+ findUniqueOrThrow<T extends AgentCronRunModelBreakdownFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
723
+
724
+ /**
725
+ * Find the first AgentCronRunModelBreakdown that matches the filter.
726
+ * Note, that providing `undefined` is treated as the value not being there.
727
+ * Read more here: https://pris.ly/d/null-undefined
728
+ * @param {AgentCronRunModelBreakdownFindFirstArgs} args - Arguments to find a AgentCronRunModelBreakdown
729
+ * @example
730
+ * // Get one AgentCronRunModelBreakdown
731
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.findFirst({
732
+ * where: {
733
+ * // ... provide filter here
734
+ * }
735
+ * })
736
+ */
737
+ findFirst<T extends AgentCronRunModelBreakdownFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentCronRunModelBreakdownFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
738
+
739
+ /**
740
+ * Find the first AgentCronRunModelBreakdown that matches the filter or
741
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
742
+ * Note, that providing `undefined` is treated as the value not being there.
743
+ * Read more here: https://pris.ly/d/null-undefined
744
+ * @param {AgentCronRunModelBreakdownFindFirstOrThrowArgs} args - Arguments to find a AgentCronRunModelBreakdown
745
+ * @example
746
+ * // Get one AgentCronRunModelBreakdown
747
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.findFirstOrThrow({
748
+ * where: {
749
+ * // ... provide filter here
750
+ * }
751
+ * })
752
+ */
753
+ findFirstOrThrow<T extends AgentCronRunModelBreakdownFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentCronRunModelBreakdownFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
754
+
755
+ /**
756
+ * Find zero or more AgentCronRunModelBreakdowns that matches the filter.
757
+ * Note, that providing `undefined` is treated as the value not being there.
758
+ * Read more here: https://pris.ly/d/null-undefined
759
+ * @param {AgentCronRunModelBreakdownFindManyArgs} args - Arguments to filter and select certain fields only.
760
+ * @example
761
+ * // Get all AgentCronRunModelBreakdowns
762
+ * const agentCronRunModelBreakdowns = await prisma.agentCronRunModelBreakdown.findMany()
763
+ *
764
+ * // Get first 10 AgentCronRunModelBreakdowns
765
+ * const agentCronRunModelBreakdowns = await prisma.agentCronRunModelBreakdown.findMany({ take: 10 })
766
+ *
767
+ * // Only select the `id`
768
+ * const agentCronRunModelBreakdownWithIdOnly = await prisma.agentCronRunModelBreakdown.findMany({ select: { id: true } })
769
+ *
770
+ */
771
+ findMany<T extends AgentCronRunModelBreakdownFindManyArgs>(args?: Prisma.SelectSubset<T, AgentCronRunModelBreakdownFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
772
+
773
+ /**
774
+ * Create a AgentCronRunModelBreakdown.
775
+ * @param {AgentCronRunModelBreakdownCreateArgs} args - Arguments to create a AgentCronRunModelBreakdown.
776
+ * @example
777
+ * // Create one AgentCronRunModelBreakdown
778
+ * const AgentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.create({
779
+ * data: {
780
+ * // ... data to create a AgentCronRunModelBreakdown
781
+ * }
782
+ * })
783
+ *
784
+ */
785
+ create<T extends AgentCronRunModelBreakdownCreateArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownCreateArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
786
+
787
+ /**
788
+ * Create many AgentCronRunModelBreakdowns.
789
+ * @param {AgentCronRunModelBreakdownCreateManyArgs} args - Arguments to create many AgentCronRunModelBreakdowns.
790
+ * @example
791
+ * // Create many AgentCronRunModelBreakdowns
792
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.createMany({
793
+ * data: [
794
+ * // ... provide data here
795
+ * ]
796
+ * })
797
+ *
798
+ */
799
+ createMany<T extends AgentCronRunModelBreakdownCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentCronRunModelBreakdownCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
800
+
801
+ /**
802
+ * Create many AgentCronRunModelBreakdowns and returns the data saved in the database.
803
+ * @param {AgentCronRunModelBreakdownCreateManyAndReturnArgs} args - Arguments to create many AgentCronRunModelBreakdowns.
804
+ * @example
805
+ * // Create many AgentCronRunModelBreakdowns
806
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.createManyAndReturn({
807
+ * data: [
808
+ * // ... provide data here
809
+ * ]
810
+ * })
811
+ *
812
+ * // Create many AgentCronRunModelBreakdowns and only return the `id`
813
+ * const agentCronRunModelBreakdownWithIdOnly = await prisma.agentCronRunModelBreakdown.createManyAndReturn({
814
+ * select: { id: true },
815
+ * data: [
816
+ * // ... provide data here
817
+ * ]
818
+ * })
819
+ * Note, that providing `undefined` is treated as the value not being there.
820
+ * Read more here: https://pris.ly/d/null-undefined
821
+ *
822
+ */
823
+ createManyAndReturn<T extends AgentCronRunModelBreakdownCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentCronRunModelBreakdownCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
824
+
825
+ /**
826
+ * Delete a AgentCronRunModelBreakdown.
827
+ * @param {AgentCronRunModelBreakdownDeleteArgs} args - Arguments to delete one AgentCronRunModelBreakdown.
828
+ * @example
829
+ * // Delete one AgentCronRunModelBreakdown
830
+ * const AgentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.delete({
831
+ * where: {
832
+ * // ... filter to delete one AgentCronRunModelBreakdown
833
+ * }
834
+ * })
835
+ *
836
+ */
837
+ delete<T extends AgentCronRunModelBreakdownDeleteArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
838
+
839
+ /**
840
+ * Update one AgentCronRunModelBreakdown.
841
+ * @param {AgentCronRunModelBreakdownUpdateArgs} args - Arguments to update one AgentCronRunModelBreakdown.
842
+ * @example
843
+ * // Update one AgentCronRunModelBreakdown
844
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.update({
845
+ * where: {
846
+ * // ... provide filter here
847
+ * },
848
+ * data: {
849
+ * // ... provide data here
850
+ * }
851
+ * })
852
+ *
853
+ */
854
+ update<T extends AgentCronRunModelBreakdownUpdateArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
855
+
856
+ /**
857
+ * Delete zero or more AgentCronRunModelBreakdowns.
858
+ * @param {AgentCronRunModelBreakdownDeleteManyArgs} args - Arguments to filter AgentCronRunModelBreakdowns to delete.
859
+ * @example
860
+ * // Delete a few AgentCronRunModelBreakdowns
861
+ * const { count } = await prisma.agentCronRunModelBreakdown.deleteMany({
862
+ * where: {
863
+ * // ... provide filter here
864
+ * }
865
+ * })
866
+ *
867
+ */
868
+ deleteMany<T extends AgentCronRunModelBreakdownDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentCronRunModelBreakdownDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
869
+
870
+ /**
871
+ * Update zero or more AgentCronRunModelBreakdowns.
872
+ * Note, that providing `undefined` is treated as the value not being there.
873
+ * Read more here: https://pris.ly/d/null-undefined
874
+ * @param {AgentCronRunModelBreakdownUpdateManyArgs} args - Arguments to update one or more rows.
875
+ * @example
876
+ * // Update many AgentCronRunModelBreakdowns
877
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.updateMany({
878
+ * where: {
879
+ * // ... provide filter here
880
+ * },
881
+ * data: {
882
+ * // ... provide data here
883
+ * }
884
+ * })
885
+ *
886
+ */
887
+ updateMany<T extends AgentCronRunModelBreakdownUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
888
+
889
+ /**
890
+ * Update zero or more AgentCronRunModelBreakdowns and returns the data updated in the database.
891
+ * @param {AgentCronRunModelBreakdownUpdateManyAndReturnArgs} args - Arguments to update many AgentCronRunModelBreakdowns.
892
+ * @example
893
+ * // Update many AgentCronRunModelBreakdowns
894
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.updateManyAndReturn({
895
+ * where: {
896
+ * // ... provide filter here
897
+ * },
898
+ * data: [
899
+ * // ... provide data here
900
+ * ]
901
+ * })
902
+ *
903
+ * // Update zero or more AgentCronRunModelBreakdowns and only return the `id`
904
+ * const agentCronRunModelBreakdownWithIdOnly = await prisma.agentCronRunModelBreakdown.updateManyAndReturn({
905
+ * select: { id: true },
906
+ * where: {
907
+ * // ... provide filter here
908
+ * },
909
+ * data: [
910
+ * // ... provide data here
911
+ * ]
912
+ * })
913
+ * Note, that providing `undefined` is treated as the value not being there.
914
+ * Read more here: https://pris.ly/d/null-undefined
915
+ *
916
+ */
917
+ updateManyAndReturn<T extends AgentCronRunModelBreakdownUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
918
+
919
+ /**
920
+ * Create or update one AgentCronRunModelBreakdown.
921
+ * @param {AgentCronRunModelBreakdownUpsertArgs} args - Arguments to update or create a AgentCronRunModelBreakdown.
922
+ * @example
923
+ * // Update or create a AgentCronRunModelBreakdown
924
+ * const agentCronRunModelBreakdown = await prisma.agentCronRunModelBreakdown.upsert({
925
+ * create: {
926
+ * // ... data to create a AgentCronRunModelBreakdown
927
+ * },
928
+ * update: {
929
+ * // ... in case it already exists, update
930
+ * },
931
+ * where: {
932
+ * // ... the filter for the AgentCronRunModelBreakdown we want to update
933
+ * }
934
+ * })
935
+ */
936
+ upsert<T extends AgentCronRunModelBreakdownUpsertArgs>(args: Prisma.SelectSubset<T, AgentCronRunModelBreakdownUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunModelBreakdownClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunModelBreakdownPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
937
+
938
+
939
+ /**
940
+ * Count the number of AgentCronRunModelBreakdowns.
941
+ * Note, that providing `undefined` is treated as the value not being there.
942
+ * Read more here: https://pris.ly/d/null-undefined
943
+ * @param {AgentCronRunModelBreakdownCountArgs} args - Arguments to filter AgentCronRunModelBreakdowns to count.
944
+ * @example
945
+ * // Count the number of AgentCronRunModelBreakdowns
946
+ * const count = await prisma.agentCronRunModelBreakdown.count({
947
+ * where: {
948
+ * // ... the filter for the AgentCronRunModelBreakdowns we want to count
949
+ * }
950
+ * })
951
+ **/
952
+ count<T extends AgentCronRunModelBreakdownCountArgs>(
953
+ args?: Prisma.Subset<T, AgentCronRunModelBreakdownCountArgs>,
954
+ ): Prisma.PrismaPromise<
955
+ T extends runtime.Types.Utils.Record<'select', any>
956
+ ? T['select'] extends true
957
+ ? number
958
+ : Prisma.GetScalarType<T['select'], AgentCronRunModelBreakdownCountAggregateOutputType>
959
+ : number
960
+ >
961
+
962
+ /**
963
+ * Allows you to perform aggregations operations on a AgentCronRunModelBreakdown.
964
+ * Note, that providing `undefined` is treated as the value not being there.
965
+ * Read more here: https://pris.ly/d/null-undefined
966
+ * @param {AgentCronRunModelBreakdownAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
967
+ * @example
968
+ * // Ordered by age ascending
969
+ * // Where email contains prisma.io
970
+ * // Limited to the 10 users
971
+ * const aggregations = await prisma.user.aggregate({
972
+ * _avg: {
973
+ * age: true,
974
+ * },
975
+ * where: {
976
+ * email: {
977
+ * contains: "prisma.io",
978
+ * },
979
+ * },
980
+ * orderBy: {
981
+ * age: "asc",
982
+ * },
983
+ * take: 10,
984
+ * })
985
+ **/
986
+ aggregate<T extends AgentCronRunModelBreakdownAggregateArgs>(args: Prisma.Subset<T, AgentCronRunModelBreakdownAggregateArgs>): Prisma.PrismaPromise<GetAgentCronRunModelBreakdownAggregateType<T>>
987
+
988
+ /**
989
+ * Group by AgentCronRunModelBreakdown.
990
+ * Note, that providing `undefined` is treated as the value not being there.
991
+ * Read more here: https://pris.ly/d/null-undefined
992
+ * @param {AgentCronRunModelBreakdownGroupByArgs} args - Group by arguments.
993
+ * @example
994
+ * // Group by city, order by createdAt, get count
995
+ * const result = await prisma.user.groupBy({
996
+ * by: ['city', 'createdAt'],
997
+ * orderBy: {
998
+ * createdAt: true
999
+ * },
1000
+ * _count: {
1001
+ * _all: true
1002
+ * },
1003
+ * })
1004
+ *
1005
+ **/
1006
+ groupBy<
1007
+ T extends AgentCronRunModelBreakdownGroupByArgs,
1008
+ HasSelectOrTake extends Prisma.Or<
1009
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1010
+ Prisma.Extends<'take', Prisma.Keys<T>>
1011
+ >,
1012
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1013
+ ? { orderBy: AgentCronRunModelBreakdownGroupByArgs['orderBy'] }
1014
+ : { orderBy?: AgentCronRunModelBreakdownGroupByArgs['orderBy'] },
1015
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1016
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1017
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1018
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1019
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1020
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1021
+ InputErrors extends ByEmpty extends Prisma.True
1022
+ ? `Error: "by" must not be empty.`
1023
+ : HavingValid extends Prisma.False
1024
+ ? {
1025
+ [P in HavingFields]: P extends ByFields
1026
+ ? never
1027
+ : P extends string
1028
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1029
+ : [
1030
+ Error,
1031
+ 'Field ',
1032
+ P,
1033
+ ` in "having" needs to be provided in "by"`,
1034
+ ]
1035
+ }[HavingFields]
1036
+ : 'take' extends Prisma.Keys<T>
1037
+ ? 'orderBy' extends Prisma.Keys<T>
1038
+ ? ByValid extends Prisma.True
1039
+ ? {}
1040
+ : {
1041
+ [P in OrderFields]: P extends ByFields
1042
+ ? never
1043
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1044
+ }[OrderFields]
1045
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1046
+ : 'skip' extends Prisma.Keys<T>
1047
+ ? 'orderBy' extends Prisma.Keys<T>
1048
+ ? ByValid extends Prisma.True
1049
+ ? {}
1050
+ : {
1051
+ [P in OrderFields]: P extends ByFields
1052
+ ? never
1053
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1054
+ }[OrderFields]
1055
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1056
+ : ByValid extends Prisma.True
1057
+ ? {}
1058
+ : {
1059
+ [P in OrderFields]: P extends ByFields
1060
+ ? never
1061
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1062
+ }[OrderFields]
1063
+ >(args: Prisma.SubsetIntersection<T, AgentCronRunModelBreakdownGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentCronRunModelBreakdownGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1064
+ /**
1065
+ * Fields of the AgentCronRunModelBreakdown model
1066
+ */
1067
+ readonly fields: AgentCronRunModelBreakdownFieldRefs;
1068
+ }
1069
+
1070
+ /**
1071
+ * The delegate class that acts as a "Promise-like" for AgentCronRunModelBreakdown.
1072
+ * Why is this prefixed with `Prisma__`?
1073
+ * Because we want to prevent naming conflicts as mentioned in
1074
+ * https://github.com/prisma/prisma-client-js/issues/707
1075
+ */
1076
+ export interface Prisma__AgentCronRunModelBreakdownClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1077
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1078
+ cronRun<T extends Prisma.AgentCronRunDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentCronRunDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentCronRunClient<runtime.Types.Result.GetResult<Prisma.$AgentCronRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1079
+ /**
1080
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1081
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1082
+ * @param onrejected The callback to execute when the Promise is rejected.
1083
+ * @returns A Promise for the completion of which ever callback is executed.
1084
+ */
1085
+ 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>
1086
+ /**
1087
+ * Attaches a callback for only the rejection of the Promise.
1088
+ * @param onrejected The callback to execute when the Promise is rejected.
1089
+ * @returns A Promise for the completion of the callback.
1090
+ */
1091
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1092
+ /**
1093
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1094
+ * resolved value cannot be modified from the callback.
1095
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1096
+ * @returns A Promise for the completion of the callback.
1097
+ */
1098
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1099
+ }
1100
+
1101
+
1102
+
1103
+
1104
+ /**
1105
+ * Fields of the AgentCronRunModelBreakdown model
1106
+ */
1107
+ export interface AgentCronRunModelBreakdownFieldRefs {
1108
+ readonly id: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'String'>
1109
+ readonly cronRunId: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'String'>
1110
+ readonly model: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'String'>
1111
+ readonly inputTokens: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'Int'>
1112
+ readonly outputTokens: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'Int'>
1113
+ readonly cacheReadTokens: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'Int'>
1114
+ readonly cacheCreationTokens: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'Int'>
1115
+ readonly costUsd: Prisma.FieldRef<"AgentCronRunModelBreakdown", 'Float'>
1116
+ }
1117
+
1118
+
1119
+ // Custom InputTypes
1120
+ /**
1121
+ * AgentCronRunModelBreakdown findUnique
1122
+ */
1123
+ export type AgentCronRunModelBreakdownFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1124
+ /**
1125
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1126
+ */
1127
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1128
+ /**
1129
+ * Omit specific fields from the AgentCronRunModelBreakdown
1130
+ */
1131
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1132
+ /**
1133
+ * Choose, which related nodes to fetch as well
1134
+ */
1135
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1136
+ /**
1137
+ * Filter, which AgentCronRunModelBreakdown to fetch.
1138
+ */
1139
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1140
+ }
1141
+
1142
+ /**
1143
+ * AgentCronRunModelBreakdown findUniqueOrThrow
1144
+ */
1145
+ export type AgentCronRunModelBreakdownFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1146
+ /**
1147
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1148
+ */
1149
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1150
+ /**
1151
+ * Omit specific fields from the AgentCronRunModelBreakdown
1152
+ */
1153
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1154
+ /**
1155
+ * Choose, which related nodes to fetch as well
1156
+ */
1157
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1158
+ /**
1159
+ * Filter, which AgentCronRunModelBreakdown to fetch.
1160
+ */
1161
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1162
+ }
1163
+
1164
+ /**
1165
+ * AgentCronRunModelBreakdown findFirst
1166
+ */
1167
+ export type AgentCronRunModelBreakdownFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1168
+ /**
1169
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1170
+ */
1171
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1172
+ /**
1173
+ * Omit specific fields from the AgentCronRunModelBreakdown
1174
+ */
1175
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1176
+ /**
1177
+ * Choose, which related nodes to fetch as well
1178
+ */
1179
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1180
+ /**
1181
+ * Filter, which AgentCronRunModelBreakdown to fetch.
1182
+ */
1183
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
1184
+ /**
1185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1186
+ *
1187
+ * Determine the order of AgentCronRunModelBreakdowns to fetch.
1188
+ */
1189
+ orderBy?: Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput | Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput[]
1190
+ /**
1191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1192
+ *
1193
+ * Sets the position for searching for AgentCronRunModelBreakdowns.
1194
+ */
1195
+ cursor?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1196
+ /**
1197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1198
+ *
1199
+ * Take `±n` AgentCronRunModelBreakdowns from the position of the cursor.
1200
+ */
1201
+ take?: number
1202
+ /**
1203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1204
+ *
1205
+ * Skip the first `n` AgentCronRunModelBreakdowns.
1206
+ */
1207
+ skip?: number
1208
+ /**
1209
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1210
+ *
1211
+ * Filter by unique combinations of AgentCronRunModelBreakdowns.
1212
+ */
1213
+ distinct?: Prisma.AgentCronRunModelBreakdownScalarFieldEnum | Prisma.AgentCronRunModelBreakdownScalarFieldEnum[]
1214
+ }
1215
+
1216
+ /**
1217
+ * AgentCronRunModelBreakdown findFirstOrThrow
1218
+ */
1219
+ export type AgentCronRunModelBreakdownFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1220
+ /**
1221
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1222
+ */
1223
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1224
+ /**
1225
+ * Omit specific fields from the AgentCronRunModelBreakdown
1226
+ */
1227
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1228
+ /**
1229
+ * Choose, which related nodes to fetch as well
1230
+ */
1231
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1232
+ /**
1233
+ * Filter, which AgentCronRunModelBreakdown to fetch.
1234
+ */
1235
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
1236
+ /**
1237
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1238
+ *
1239
+ * Determine the order of AgentCronRunModelBreakdowns to fetch.
1240
+ */
1241
+ orderBy?: Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput | Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput[]
1242
+ /**
1243
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1244
+ *
1245
+ * Sets the position for searching for AgentCronRunModelBreakdowns.
1246
+ */
1247
+ cursor?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1248
+ /**
1249
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1250
+ *
1251
+ * Take `±n` AgentCronRunModelBreakdowns from the position of the cursor.
1252
+ */
1253
+ take?: number
1254
+ /**
1255
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1256
+ *
1257
+ * Skip the first `n` AgentCronRunModelBreakdowns.
1258
+ */
1259
+ skip?: number
1260
+ /**
1261
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1262
+ *
1263
+ * Filter by unique combinations of AgentCronRunModelBreakdowns.
1264
+ */
1265
+ distinct?: Prisma.AgentCronRunModelBreakdownScalarFieldEnum | Prisma.AgentCronRunModelBreakdownScalarFieldEnum[]
1266
+ }
1267
+
1268
+ /**
1269
+ * AgentCronRunModelBreakdown findMany
1270
+ */
1271
+ export type AgentCronRunModelBreakdownFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1272
+ /**
1273
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1274
+ */
1275
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1276
+ /**
1277
+ * Omit specific fields from the AgentCronRunModelBreakdown
1278
+ */
1279
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1280
+ /**
1281
+ * Choose, which related nodes to fetch as well
1282
+ */
1283
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1284
+ /**
1285
+ * Filter, which AgentCronRunModelBreakdowns to fetch.
1286
+ */
1287
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
1288
+ /**
1289
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1290
+ *
1291
+ * Determine the order of AgentCronRunModelBreakdowns to fetch.
1292
+ */
1293
+ orderBy?: Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput | Prisma.AgentCronRunModelBreakdownOrderByWithRelationInput[]
1294
+ /**
1295
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1296
+ *
1297
+ * Sets the position for listing AgentCronRunModelBreakdowns.
1298
+ */
1299
+ cursor?: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1300
+ /**
1301
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1302
+ *
1303
+ * Take `±n` AgentCronRunModelBreakdowns from the position of the cursor.
1304
+ */
1305
+ take?: number
1306
+ /**
1307
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1308
+ *
1309
+ * Skip the first `n` AgentCronRunModelBreakdowns.
1310
+ */
1311
+ skip?: number
1312
+ /**
1313
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1314
+ *
1315
+ * Filter by unique combinations of AgentCronRunModelBreakdowns.
1316
+ */
1317
+ distinct?: Prisma.AgentCronRunModelBreakdownScalarFieldEnum | Prisma.AgentCronRunModelBreakdownScalarFieldEnum[]
1318
+ }
1319
+
1320
+ /**
1321
+ * AgentCronRunModelBreakdown create
1322
+ */
1323
+ export type AgentCronRunModelBreakdownCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1324
+ /**
1325
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1326
+ */
1327
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1328
+ /**
1329
+ * Omit specific fields from the AgentCronRunModelBreakdown
1330
+ */
1331
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1332
+ /**
1333
+ * Choose, which related nodes to fetch as well
1334
+ */
1335
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1336
+ /**
1337
+ * The data needed to create a AgentCronRunModelBreakdown.
1338
+ */
1339
+ data: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateInput>
1340
+ }
1341
+
1342
+ /**
1343
+ * AgentCronRunModelBreakdown createMany
1344
+ */
1345
+ export type AgentCronRunModelBreakdownCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1346
+ /**
1347
+ * The data used to create many AgentCronRunModelBreakdowns.
1348
+ */
1349
+ data: Prisma.AgentCronRunModelBreakdownCreateManyInput | Prisma.AgentCronRunModelBreakdownCreateManyInput[]
1350
+ skipDuplicates?: boolean
1351
+ }
1352
+
1353
+ /**
1354
+ * AgentCronRunModelBreakdown createManyAndReturn
1355
+ */
1356
+ export type AgentCronRunModelBreakdownCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1357
+ /**
1358
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1359
+ */
1360
+ select?: Prisma.AgentCronRunModelBreakdownSelectCreateManyAndReturn<ExtArgs> | null
1361
+ /**
1362
+ * Omit specific fields from the AgentCronRunModelBreakdown
1363
+ */
1364
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1365
+ /**
1366
+ * The data used to create many AgentCronRunModelBreakdowns.
1367
+ */
1368
+ data: Prisma.AgentCronRunModelBreakdownCreateManyInput | Prisma.AgentCronRunModelBreakdownCreateManyInput[]
1369
+ skipDuplicates?: boolean
1370
+ /**
1371
+ * Choose, which related nodes to fetch as well
1372
+ */
1373
+ include?: Prisma.AgentCronRunModelBreakdownIncludeCreateManyAndReturn<ExtArgs> | null
1374
+ }
1375
+
1376
+ /**
1377
+ * AgentCronRunModelBreakdown update
1378
+ */
1379
+ export type AgentCronRunModelBreakdownUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
+ /**
1381
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1382
+ */
1383
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1384
+ /**
1385
+ * Omit specific fields from the AgentCronRunModelBreakdown
1386
+ */
1387
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1388
+ /**
1389
+ * Choose, which related nodes to fetch as well
1390
+ */
1391
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1392
+ /**
1393
+ * The data needed to update a AgentCronRunModelBreakdown.
1394
+ */
1395
+ data: Prisma.XOR<Prisma.AgentCronRunModelBreakdownUpdateInput, Prisma.AgentCronRunModelBreakdownUncheckedUpdateInput>
1396
+ /**
1397
+ * Choose, which AgentCronRunModelBreakdown to update.
1398
+ */
1399
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1400
+ }
1401
+
1402
+ /**
1403
+ * AgentCronRunModelBreakdown updateMany
1404
+ */
1405
+ export type AgentCronRunModelBreakdownUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1406
+ /**
1407
+ * The data used to update AgentCronRunModelBreakdowns.
1408
+ */
1409
+ data: Prisma.XOR<Prisma.AgentCronRunModelBreakdownUpdateManyMutationInput, Prisma.AgentCronRunModelBreakdownUncheckedUpdateManyInput>
1410
+ /**
1411
+ * Filter which AgentCronRunModelBreakdowns to update
1412
+ */
1413
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
1414
+ /**
1415
+ * Limit how many AgentCronRunModelBreakdowns to update.
1416
+ */
1417
+ limit?: number
1418
+ }
1419
+
1420
+ /**
1421
+ * AgentCronRunModelBreakdown updateManyAndReturn
1422
+ */
1423
+ export type AgentCronRunModelBreakdownUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
+ /**
1425
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1426
+ */
1427
+ select?: Prisma.AgentCronRunModelBreakdownSelectUpdateManyAndReturn<ExtArgs> | null
1428
+ /**
1429
+ * Omit specific fields from the AgentCronRunModelBreakdown
1430
+ */
1431
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1432
+ /**
1433
+ * The data used to update AgentCronRunModelBreakdowns.
1434
+ */
1435
+ data: Prisma.XOR<Prisma.AgentCronRunModelBreakdownUpdateManyMutationInput, Prisma.AgentCronRunModelBreakdownUncheckedUpdateManyInput>
1436
+ /**
1437
+ * Filter which AgentCronRunModelBreakdowns to update
1438
+ */
1439
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
1440
+ /**
1441
+ * Limit how many AgentCronRunModelBreakdowns to update.
1442
+ */
1443
+ limit?: number
1444
+ /**
1445
+ * Choose, which related nodes to fetch as well
1446
+ */
1447
+ include?: Prisma.AgentCronRunModelBreakdownIncludeUpdateManyAndReturn<ExtArgs> | null
1448
+ }
1449
+
1450
+ /**
1451
+ * AgentCronRunModelBreakdown upsert
1452
+ */
1453
+ export type AgentCronRunModelBreakdownUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1456
+ */
1457
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1458
+ /**
1459
+ * Omit specific fields from the AgentCronRunModelBreakdown
1460
+ */
1461
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1462
+ /**
1463
+ * Choose, which related nodes to fetch as well
1464
+ */
1465
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1466
+ /**
1467
+ * The filter to search for the AgentCronRunModelBreakdown to update in case it exists.
1468
+ */
1469
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1470
+ /**
1471
+ * In case the AgentCronRunModelBreakdown found by the `where` argument doesn't exist, create a new AgentCronRunModelBreakdown with this data.
1472
+ */
1473
+ create: Prisma.XOR<Prisma.AgentCronRunModelBreakdownCreateInput, Prisma.AgentCronRunModelBreakdownUncheckedCreateInput>
1474
+ /**
1475
+ * In case the AgentCronRunModelBreakdown was found with the provided `where` argument, update it with this data.
1476
+ */
1477
+ update: Prisma.XOR<Prisma.AgentCronRunModelBreakdownUpdateInput, Prisma.AgentCronRunModelBreakdownUncheckedUpdateInput>
1478
+ }
1479
+
1480
+ /**
1481
+ * AgentCronRunModelBreakdown delete
1482
+ */
1483
+ export type AgentCronRunModelBreakdownDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ /**
1485
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1486
+ */
1487
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1488
+ /**
1489
+ * Omit specific fields from the AgentCronRunModelBreakdown
1490
+ */
1491
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
1495
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1496
+ /**
1497
+ * Filter which AgentCronRunModelBreakdown to delete.
1498
+ */
1499
+ where: Prisma.AgentCronRunModelBreakdownWhereUniqueInput
1500
+ }
1501
+
1502
+ /**
1503
+ * AgentCronRunModelBreakdown deleteMany
1504
+ */
1505
+ export type AgentCronRunModelBreakdownDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1506
+ /**
1507
+ * Filter which AgentCronRunModelBreakdowns to delete
1508
+ */
1509
+ where?: Prisma.AgentCronRunModelBreakdownWhereInput
1510
+ /**
1511
+ * Limit how many AgentCronRunModelBreakdowns to delete.
1512
+ */
1513
+ limit?: number
1514
+ }
1515
+
1516
+ /**
1517
+ * AgentCronRunModelBreakdown without action
1518
+ */
1519
+ export type AgentCronRunModelBreakdownDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
+ /**
1521
+ * Select specific fields to fetch from the AgentCronRunModelBreakdown
1522
+ */
1523
+ select?: Prisma.AgentCronRunModelBreakdownSelect<ExtArgs> | null
1524
+ /**
1525
+ * Omit specific fields from the AgentCronRunModelBreakdown
1526
+ */
1527
+ omit?: Prisma.AgentCronRunModelBreakdownOmit<ExtArgs> | null
1528
+ /**
1529
+ * Choose, which related nodes to fetch as well
1530
+ */
1531
+ include?: Prisma.AgentCronRunModelBreakdownInclude<ExtArgs> | null
1532
+ }