@app-vitals/agent-admin 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/Dockerfile +43 -0
  2. package/README.md +72 -2
  3. package/e2e/agents-page.e2e.ts +338 -0
  4. package/e2e/chat-degraded.e2e.ts +153 -0
  5. package/e2e/chat-page.e2e.ts +169 -0
  6. package/e2e/chat-progress.e2e.ts +206 -0
  7. package/e2e/chat-thread-page.e2e.ts +444 -0
  8. package/e2e/login-page.e2e.ts +148 -0
  9. package/e2e/test-server.ts +427 -0
  10. package/openapi.json +6098 -0
  11. package/openapi.platform.json +5553 -0
  12. package/package.json +64 -4
  13. package/playwright.config.ts +25 -0
  14. package/prisma/client/browser.ts +134 -0
  15. package/prisma/client/client.ts +158 -0
  16. package/prisma/client/commonInputTypes.ts +578 -0
  17. package/prisma/client/enums.ts +15 -0
  18. package/prisma/client/internal/class.ts +424 -0
  19. package/prisma/client/internal/prismaNamespace.ts +2898 -0
  20. package/prisma/client/internal/prismaNamespaceBrowser.ts +476 -0
  21. package/prisma/client/models/Account.ts +1774 -0
  22. package/prisma/client/models/AccountInvite.ts +1386 -0
  23. package/prisma/client/models/AccountMember.ts +1351 -0
  24. package/prisma/client/models/Agent.ts +4554 -0
  25. package/prisma/client/models/AgentAsk.ts +1373 -0
  26. package/prisma/client/models/AgentChatTokenUsageDailyByModel.ts +1638 -0
  27. package/prisma/client/models/AgentCronJob.ts +2416 -0
  28. package/prisma/client/models/AgentCronRun.ts +2858 -0
  29. package/prisma/client/models/AgentCronRunModelBreakdown.ts +1532 -0
  30. package/prisma/client/models/AgentCronRunSkillUsage.ts +1642 -0
  31. package/prisma/client/models/AgentEnv.ts +1421 -0
  32. package/prisma/client/models/AgentGitHubInstallationsSnapshot.ts +1289 -0
  33. package/prisma/client/models/AgentMember.ts +1316 -0
  34. package/prisma/client/models/AgentPhaseMethodology.ts +1355 -0
  35. package/prisma/client/models/AgentPlugin.ts +1421 -0
  36. package/prisma/client/models/AgentToken.ts +1380 -0
  37. package/prisma/client/models/AgentTool.ts +1351 -0
  38. package/prisma/client/models/AgentWorkQueueSnapshot.ts +1297 -0
  39. package/prisma/client/models/ChatThreadWatch.ts +1183 -0
  40. package/prisma/client/models/PushSubscription.ts +1233 -0
  41. package/prisma/client/models/SessionAlertState.ts +1187 -0
  42. package/prisma/client/models/SessionFollow.ts +1187 -0
  43. package/prisma/client/models/UserNotificationPrefs.ts +1221 -0
  44. package/prisma/client/models.ts +34 -0
  45. package/prisma/migrations/20260608000000_init/migration.sql +112 -0
  46. package/prisma/migrations/20260616000000_agent_members/migration.sql +18 -0
  47. package/prisma/migrations/20260624000000_add_agent_self_hosted/migration.sql +2 -0
  48. package/prisma/migrations/20260624120000_add_agent_repos/migration.sql +3 -0
  49. package/prisma/migrations/20260625000000_add_agent_cron_run/migration.sql +26 -0
  50. package/prisma/migrations/20260626000000_add_cron_run_token_fields/migration.sql +10 -0
  51. package/prisma/migrations/20260627000000_add_agent_chat_token_usage_daily/migration.sql +18 -0
  52. package/prisma/migrations/20260627010000_add_agent_chat_token_usage_fk/migration.sql +2 -0
  53. package/prisma/migrations/20260701000000_add_chat_threads_messages/migration.sql +37 -0
  54. package/prisma/migrations/20260701010000_drop_chat_threads_messages/migration.sql +17 -0
  55. package/prisma/migrations/20260701020000_add_cron_run_model_breakdown/migration.sql +23 -0
  56. package/prisma/migrations/20260701020000_chat_token_by_model/migration.sql +25 -0
  57. package/prisma/migrations/20260701030000_add_secret_flag_to_agent_env/migration.sql +2 -0
  58. package/prisma/migrations/20260701030000_drop_cron_run_legacy_columns/migration.sql +5 -0
  59. package/prisma/migrations/20260706000000_consolidate_cron_run_token_accounting/migration.sql +54 -0
  60. package/prisma/migrations/20260709000000_add_phase_to_agent_cron_run/migration.sql +8 -0
  61. package/prisma/migrations/20260717000000_add_item_tracking_to_agent_cron_run/migration.sql +10 -0
  62. package/prisma/migrations/20260717010000_add_agent_work_queue_snapshot/migration.sql +20 -0
  63. package/prisma/migrations/20260718000000_add_cron_phase_columns/migration.sql +25 -0
  64. package/prisma/migrations/20260718100000_drop_agent_cron_run_phase_column/migration.sql +8 -0
  65. package/prisma/migrations/20260724000000_add_agent_type_name/migration.sql +3 -0
  66. package/prisma/migrations/20260725232433_add_agent_author_allowlist/migration.sql +2 -0
  67. package/prisma/migrations/20260727120000_add_not_null_to_agent_author_allowlist/migration.sql +3 -0
  68. package/prisma/migrations/20260731000000_add_session_id_to_agent_cron_run/migration.sql +2 -0
  69. package/prisma/migrations/20260821000000_add_agent_restrict_slack_to_members/migration.sql +3 -0
  70. package/prisma/migrations/20260901000000_add_push_subscription_and_chat_thread_watch/migration.sql +40 -0
  71. package/prisma/migrations/20260903000000_add_agent_patch_author_allowlist/migration.sql +2 -0
  72. package/prisma/migrations/20260903120000_add_agent_review_author_allowlist/migration.sql +18 -0
  73. package/prisma/migrations/20260903150000_drop_agent_author_allowlist/migration.sql +14 -0
  74. package/prisma/migrations/20260905000000_add_started_at_index_to_agent_cron_run/migration.sql +11 -0
  75. package/prisma/migrations/20260906000000_add_session_follow_notification_prefs_alert_state/migration.sql +47 -0
  76. package/prisma/migrations/20260911000000_backfill_auto_follow_since/migration.sql +16 -0
  77. package/prisma/migrations/20260923115814_add_last_heartbeat_at_to_agent_cron_run/migration.sql +2 -0
  78. package/prisma/migrations/20260924120000_add_trial_expiry_fields_to_agent/migration.sql +6 -0
  79. package/prisma/migrations/20260929000000_add_agent_phase_methodology/migration.sql +21 -0
  80. package/prisma/migrations/20260929120000_add_agent_policy_fields/migration.sql +15 -0
  81. package/prisma/migrations/20261005000000_add_agent_github_installations_snapshot/migration.sql +21 -0
  82. package/prisma/migrations/20261008000000_add_cron_run_telemetry/migration.sql +50 -0
  83. package/prisma/migrations/20261008010000_add_account_models/migration.sql +48 -0
  84. package/prisma/migrations/20261008020000_add_cron_lockdown_disabled_at/migration.sql +3 -0
  85. package/prisma/migrations/20261009000000_chat_token_usage_bigint/migration.sql +7 -0
  86. package/prisma/migrations/20261010000000_add_cron_run_command_variant/migration.sql +2 -0
  87. package/prisma/migrations/20261019000000_add_agent_anthropic_identity/migration.sql +9 -0
  88. package/prisma/migrations/20261025000000_add_agent_ask/migration.sql +23 -0
  89. package/prisma/migrations/migration_lock.toml +3 -0
  90. package/prisma/schema/coding.prisma +85 -0
  91. package/prisma/schema/schema.prisma +506 -0
  92. package/prisma.config.ts +34 -0
  93. package/pwa-assets/icons/apple-touch-icon.png +0 -0
  94. package/pwa-assets/icons/favicon-32.png +0 -0
  95. package/pwa-assets/icons/icon-192.png +0 -0
  96. package/pwa-assets/icons/icon-512.png +0 -0
  97. package/pwa-assets/icons/icon-maskable-192.png +0 -0
  98. package/pwa-assets/icons/icon-maskable-512.png +0 -0
  99. package/src/account-agent-create.ts +42 -0
  100. package/src/account-agent-create.unit.test.ts +28 -0
  101. package/src/account-created-notifier.ts +71 -0
  102. package/src/account-created-notifier.unit.test.ts +70 -0
  103. package/src/account-email.ts +9 -0
  104. package/src/account-email.unit.test.ts +21 -0
  105. package/src/account-invites.ts +70 -0
  106. package/src/account-lifecycle.integration.test.ts +329 -0
  107. package/src/account-lifecycle.ts +206 -0
  108. package/src/account-lifecycle.unit.test.ts +108 -0
  109. package/src/account-members.ts +128 -0
  110. package/src/account-onboarding.integration.test.ts +101 -0
  111. package/src/account-onboarding.ts +95 -0
  112. package/src/account-trial-expiry-sweeper.ts +85 -0
  113. package/src/account-trial-warning-sweeper.integration.test.ts +228 -0
  114. package/src/account-trial-warning-sweeper.ts +216 -0
  115. package/src/accounts-api.integration.test.ts +196 -0
  116. package/src/accounts-api.smoke.test.ts +292 -0
  117. package/src/accounts-api.ts +289 -0
  118. package/src/accounts-api.unit.test.ts +93 -0
  119. package/src/accounts.integration.test.ts +178 -0
  120. package/src/accounts.ts +208 -0
  121. package/src/admin-boot-config.ts +574 -0
  122. package/src/admin-boot-config.unit.test.ts +28 -0
  123. package/src/admin-boot.boot-order.unit.test.ts +91 -0
  124. package/src/admin-boot.ts +690 -0
  125. package/src/admin-dev-login.smoke.test.ts +317 -0
  126. package/src/admin-extension.ts +432 -0
  127. package/src/admin-extension.unit.test.ts +532 -0
  128. package/src/admin-local-agent.smoke.test.ts +1643 -0
  129. package/src/admin-spec.smoke.test.ts +96 -0
  130. package/src/admin-spec.ts +186 -0
  131. package/src/admin-ui-account-nav.ts +20 -0
  132. package/src/admin-ui-account-pages.ts +131 -0
  133. package/src/admin-ui-account-pages.unit.test.ts +112 -0
  134. package/src/admin-ui-account.smoke.test.ts +286 -0
  135. package/src/admin-ui-account.ts +185 -0
  136. package/src/admin-ui-accounts-pages.ts +202 -0
  137. package/src/admin-ui-accounts-pages.unit.test.ts +138 -0
  138. package/src/admin-ui-accounts.smoke.test.ts +434 -0
  139. package/src/admin-ui-accounts.ts +266 -0
  140. package/src/admin-ui-layout.ts +60 -0
  141. package/src/admin-ui-layout.unit.test.ts +140 -0
  142. package/src/admin-ui-pages.ts +3489 -0
  143. package/src/admin-ui-pages.unit.test.ts +4355 -0
  144. package/src/admin-ui-push-test.smoke.test.ts +125 -0
  145. package/src/admin-ui-push-test.ts +102 -0
  146. package/src/admin-ui-styles.ts +656 -0
  147. package/src/admin-ui-styles.unit.test.ts +103 -0
  148. package/src/admin-ui.fixtures.ts +457 -0
  149. package/src/admin-ui.smoke.test.ts +7227 -0
  150. package/src/admin-ui.ts +3824 -0
  151. package/src/agent-account-assignment.ts +49 -0
  152. package/src/agent-account-assignment.unit.test.ts +99 -0
  153. package/src/agent-anthropic-identity.integration.test.ts +99 -0
  154. package/src/agent-anthropic-identity.ts +78 -0
  155. package/src/agent-anthropic-identity.unit.test.ts +77 -0
  156. package/src/agent-ask-config.ts +59 -0
  157. package/src/agent-ask-config.unit.test.ts +70 -0
  158. package/src/agent-ask.integration.test.ts +175 -0
  159. package/src/agent-ask.smoke.test.ts +457 -0
  160. package/src/agent-ask.ts +378 -0
  161. package/src/agent-chat-tokens.integration.test.ts +420 -0
  162. package/src/agent-chat-tokens.smoke.test.ts +551 -0
  163. package/src/agent-chat-tokens.ts +259 -0
  164. package/src/agent-cron-jobs.integration.test.ts +582 -0
  165. package/src/agent-cron-jobs.ts +615 -0
  166. package/src/agent-cron-jobs.unit.test.ts +420 -0
  167. package/src/agent-cron-run-stats.integration.test.ts +1551 -0
  168. package/src/agent-cron-run-stats.smoke.test.ts +953 -0
  169. package/src/agent-cron-run-stats.ts +752 -0
  170. package/src/agent-cron-runs.integration.test.ts +1491 -0
  171. package/src/agent-cron-runs.ts +489 -0
  172. package/src/agent-deletion-checklist.ts +128 -0
  173. package/src/agent-deletion-checklist.unit.test.ts +201 -0
  174. package/src/agent-deletion-per-agent.integration.test.ts +323 -0
  175. package/src/agent-deletion.integration.test.ts +323 -0
  176. package/src/agent-deletion.ts +329 -0
  177. package/src/agent-deletion.unit.test.ts +412 -0
  178. package/src/agent-envs.integration.test.ts +323 -0
  179. package/src/agent-envs.ts +244 -0
  180. package/src/agent-github-installations.integration.test.ts +115 -0
  181. package/src/agent-github-installations.ts +52 -0
  182. package/src/agent-manifest.ts +685 -0
  183. package/src/agent-manifest.unit.test.ts +870 -0
  184. package/src/agent-members.ts +69 -0
  185. package/src/agent-members.unit.test.ts +250 -0
  186. package/src/agent-patch-author-allowlist.integration.test.ts +218 -0
  187. package/src/agent-plugins.integration.test.ts +157 -0
  188. package/src/agent-plugins.ts +95 -0
  189. package/src/agent-plugins.unit.test.ts +43 -0
  190. package/src/agent-provisioner-per-agent.integration.test.ts +949 -0
  191. package/src/agent-provisioner.integration.test.ts +1245 -0
  192. package/src/agent-provisioner.ts +1650 -0
  193. package/src/agent-provisioner.unit.test.ts +1852 -0
  194. package/src/agent-tokens.integration.test.ts +150 -0
  195. package/src/agent-tokens.ts +112 -0
  196. package/src/agent-tools.integration.test.ts +129 -0
  197. package/src/agent-tools.ts +111 -0
  198. package/src/agents-api.integration.test.ts +705 -0
  199. package/src/agents-api.sentry.smoke.test.ts +478 -0
  200. package/src/agents-api.smoke.test.ts +5986 -0
  201. package/src/agents-api.ts +2826 -0
  202. package/src/agents.integration.test.ts +512 -0
  203. package/src/agents.ts +1097 -0
  204. package/src/agents.unit.test.ts +1736 -0
  205. package/src/anthropic-credential-guard.ts +44 -0
  206. package/src/anthropic-credential-guard.unit.test.ts +88 -0
  207. package/src/anthropic-federated-token-provider.integration.test.ts +248 -0
  208. package/src/anthropic-federated-token-provider.ts +249 -0
  209. package/src/anthropic-identity-client.fixtures.ts +237 -0
  210. package/src/anthropic-identity-client.integration.test.ts +342 -0
  211. package/src/anthropic-identity-client.ts +473 -0
  212. package/src/anthropic-identity-fixture-spec.integration.test.ts +169 -0
  213. package/src/anthropic-identity-name.integration.test.ts +83 -0
  214. package/src/anthropic-identity-name.ts +163 -0
  215. package/src/anthropic-identity-name.unit.test.ts +345 -0
  216. package/src/anthropic-openapi-contract.fixtures.ts +192 -0
  217. package/src/api-auth.ts +383 -0
  218. package/src/api-auth.unit.test.ts +837 -0
  219. package/src/api.smoke.test.ts +1225 -0
  220. package/src/api.ts +376 -0
  221. package/src/attachment-validation.ts +124 -0
  222. package/src/attachment-validation.unit.test.ts +218 -0
  223. package/src/caller-scope.ts +131 -0
  224. package/src/caller-scope.unit.test.ts +116 -0
  225. package/src/chat-credential-config.ts +22 -0
  226. package/src/chat-credentials-logging.unit.test.ts +92 -0
  227. package/src/chat-markers.ts +114 -0
  228. package/src/chat-markers.unit.test.ts +116 -0
  229. package/src/chat-service-provisioning-client.integration.test.ts +412 -0
  230. package/src/chat-service-provisioning-client.ts +221 -0
  231. package/src/chat.smoke.test.ts +1875 -0
  232. package/src/clock.ts +47 -0
  233. package/src/coding-task-store-provisioning-client.integration.test.ts +372 -0
  234. package/src/coding-task-store-provisioning-client.ts +156 -0
  235. package/src/crypto.ts +83 -0
  236. package/src/dev-auth-guard.ts +29 -0
  237. package/src/dev-auth-guard.unit.test.ts +51 -0
  238. package/src/errors.ts +77 -0
  239. package/src/errors.unit.test.ts +52 -0
  240. package/src/fixtures/anthropic-identity-recorded-fixtures.json +850 -0
  241. package/src/fixtures/anthropic-openapi/SDK_VERSION +1 -0
  242. package/src/fixtures/anthropic-openapi/mock-spec.json.gz +0 -0
  243. package/src/fixtures/chat-service-provisioning-cassette.json +156 -0
  244. package/src/fixtures/github-app-manifest-cassette.json +44 -0
  245. package/src/fixtures/google-auth-cassette.json +36 -0
  246. package/src/fixtures/http-chat-client-cassette.json +226 -0
  247. package/src/fixtures/k8s-cassette.json +470 -0
  248. package/src/fixtures/okta-auth-cassette.json +36 -0
  249. package/src/fixtures/slack-provision-cassette.json +12 -0
  250. package/src/fixtures/slack-provisioning-http-cassette.json +98 -0
  251. package/src/fixtures/task-store-provisioning-cassette.json +85 -0
  252. package/src/github-app-provisioning-client.integration.test.ts +149 -0
  253. package/src/github-app-provisioning-client.ts +161 -0
  254. package/src/github-app-provisioning-client.unit.test.ts +114 -0
  255. package/src/github-provisioning-service.ts +569 -0
  256. package/src/github-provisioning-service.unit.test.ts +123 -0
  257. package/src/google-auth-client.integration.test.ts +195 -0
  258. package/src/google-auth-client.ts +121 -0
  259. package/src/http-chat-client.integration.test.ts +554 -0
  260. package/src/http-chat-client.ts +533 -0
  261. package/src/http-chat-client.unit.test.ts +119 -0
  262. package/src/import-boundary.unit.test.ts +240 -0
  263. package/src/kubernetes-client.integration.test.ts +697 -0
  264. package/src/kubernetes-client.ts +1027 -0
  265. package/src/kubernetes-client.unit.test.ts +726 -0
  266. package/src/main.smoke.test.ts +91 -0
  267. package/src/main.ts +21 -0
  268. package/src/main.unit.test.ts +801 -0
  269. package/src/okta-auth-client.integration.test.ts +263 -0
  270. package/src/okta-auth-client.ts +152 -0
  271. package/src/openapi-schemas.ts +1310 -0
  272. package/src/openapi-schemas.unit.test.ts +348 -0
  273. package/src/per-agent-identity.fixtures.ts +305 -0
  274. package/src/platform-doc-route.ts +40 -0
  275. package/src/prisma-client.integration.test.ts +57 -0
  276. package/src/prisma-client.ts +187 -0
  277. package/src/prisma-client.unit.test.ts +178 -0
  278. package/src/prisma-tx.ts +23 -0
  279. package/src/push-content.ts +177 -0
  280. package/src/push-content.unit.test.ts +213 -0
  281. package/src/push-crypto.ts +135 -0
  282. package/src/push-crypto.unit.test.ts +66 -0
  283. package/src/push-sender.ts +169 -0
  284. package/src/push-sender.unit.test.ts +107 -0
  285. package/src/push-service.ts +332 -0
  286. package/src/push-service.unit.test.ts +679 -0
  287. package/src/push-toggle.ts +135 -0
  288. package/src/push-toggle.unit.test.ts +78 -0
  289. package/src/pwa-https-gating.smoke.test.ts +229 -0
  290. package/src/pwa-icons.unit.test.ts +41 -0
  291. package/src/pwa-routes.smoke.test.ts +276 -0
  292. package/src/pwa.ts +380 -0
  293. package/src/pwa.unit.test.ts +321 -0
  294. package/src/schema.unit.test.ts +122 -0
  295. package/src/self-serve-config.ts +52 -0
  296. package/src/self-serve-config.unit.test.ts +79 -0
  297. package/src/server.smoke.test.ts +273 -0
  298. package/src/server.ts +50 -0
  299. package/src/service-integration.ts +67 -0
  300. package/src/service-integration.unit.test.ts +129 -0
  301. package/src/slack-provisioning-client.integration.test.ts +308 -0
  302. package/src/slack-provisioning-client.ts +411 -0
  303. package/src/slack-provisioning-client.unit.test.ts +80 -0
  304. package/src/slack-provisioning-service.integration.test.ts +637 -0
  305. package/src/slack-provisioning-service.ts +451 -0
  306. package/src/slack-provisioning.integration.test.ts +395 -0
  307. package/src/specialty-manifest-loader.fixture.integration.test.ts +63 -0
  308. package/src/specialty-manifest-loader.ts +255 -0
  309. package/src/specialty-manifest-loader.unit.test.ts +301 -0
  310. package/src/specialty-registry.schema.unit.test.ts +35 -0
  311. package/src/specialty-registry.ts +236 -0
  312. package/src/specialty-registry.unit.test.ts +272 -0
  313. package/src/startup-policy-reconcile.ts +77 -0
  314. package/src/startup-policy-reconcile.unit.test.ts +251 -0
  315. package/src/theme-tokens.json +12 -0
  316. package/src/token-crypto.ts +60 -0
  317. package/src/token-crypto.unit.test.ts +182 -0
  318. package/src/trial-expiry-sweeper.integration.test.ts +318 -0
  319. package/src/trial-expiry-sweeper.ts +132 -0
  320. package/src/trial-expiry-sweeper.unit.test.ts +391 -0
  321. package/src/trial-expiry-warning-sweeper.integration.test.ts +468 -0
  322. package/src/trial-expiry-warning-sweeper.ts +447 -0
  323. package/src/trial-expiry-warning-sweeper.unit.test.ts +148 -0
  324. package/src/voice-contract.unit.test.ts +102 -0
  325. package/tsconfig.json +9 -0
@@ -0,0 +1,1638 @@
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 `AgentChatTokenUsageDailyByModel` 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 AgentChatTokenUsageDailyByModel
17
+ *
18
+ */
19
+ export type AgentChatTokenUsageDailyByModelModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentChatTokenUsageDailyByModelPayload>
20
+
21
+ export type AggregateAgentChatTokenUsageDailyByModel = {
22
+ _count: AgentChatTokenUsageDailyByModelCountAggregateOutputType | null
23
+ _avg: AgentChatTokenUsageDailyByModelAvgAggregateOutputType | null
24
+ _sum: AgentChatTokenUsageDailyByModelSumAggregateOutputType | null
25
+ _min: AgentChatTokenUsageDailyByModelMinAggregateOutputType | null
26
+ _max: AgentChatTokenUsageDailyByModelMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AgentChatTokenUsageDailyByModelAvgAggregateOutputType = {
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 AgentChatTokenUsageDailyByModelSumAggregateOutputType = {
38
+ inputTokens: bigint | null
39
+ outputTokens: bigint | null
40
+ cacheReadTokens: bigint | null
41
+ cacheCreationTokens: bigint | null
42
+ costUsd: number | null
43
+ }
44
+
45
+ export type AgentChatTokenUsageDailyByModelMinAggregateOutputType = {
46
+ id: string | null
47
+ agentId: string | null
48
+ date: string | null
49
+ model: string | null
50
+ inputTokens: bigint | null
51
+ outputTokens: bigint | null
52
+ cacheReadTokens: bigint | null
53
+ cacheCreationTokens: bigint | null
54
+ costUsd: number | null
55
+ createdAt: Date | null
56
+ updatedAt: Date | null
57
+ }
58
+
59
+ export type AgentChatTokenUsageDailyByModelMaxAggregateOutputType = {
60
+ id: string | null
61
+ agentId: string | null
62
+ date: string | null
63
+ model: string | null
64
+ inputTokens: bigint | null
65
+ outputTokens: bigint | null
66
+ cacheReadTokens: bigint | null
67
+ cacheCreationTokens: bigint | null
68
+ costUsd: number | null
69
+ createdAt: Date | null
70
+ updatedAt: Date | null
71
+ }
72
+
73
+ export type AgentChatTokenUsageDailyByModelCountAggregateOutputType = {
74
+ id: number
75
+ agentId: number
76
+ date: number
77
+ model: number
78
+ inputTokens: number
79
+ outputTokens: number
80
+ cacheReadTokens: number
81
+ cacheCreationTokens: number
82
+ costUsd: number
83
+ createdAt: number
84
+ updatedAt: number
85
+ _all: number
86
+ }
87
+
88
+
89
+ export type AgentChatTokenUsageDailyByModelAvgAggregateInputType = {
90
+ inputTokens?: true
91
+ outputTokens?: true
92
+ cacheReadTokens?: true
93
+ cacheCreationTokens?: true
94
+ costUsd?: true
95
+ }
96
+
97
+ export type AgentChatTokenUsageDailyByModelSumAggregateInputType = {
98
+ inputTokens?: true
99
+ outputTokens?: true
100
+ cacheReadTokens?: true
101
+ cacheCreationTokens?: true
102
+ costUsd?: true
103
+ }
104
+
105
+ export type AgentChatTokenUsageDailyByModelMinAggregateInputType = {
106
+ id?: true
107
+ agentId?: true
108
+ date?: true
109
+ model?: true
110
+ inputTokens?: true
111
+ outputTokens?: true
112
+ cacheReadTokens?: true
113
+ cacheCreationTokens?: true
114
+ costUsd?: true
115
+ createdAt?: true
116
+ updatedAt?: true
117
+ }
118
+
119
+ export type AgentChatTokenUsageDailyByModelMaxAggregateInputType = {
120
+ id?: true
121
+ agentId?: true
122
+ date?: true
123
+ model?: true
124
+ inputTokens?: true
125
+ outputTokens?: true
126
+ cacheReadTokens?: true
127
+ cacheCreationTokens?: true
128
+ costUsd?: true
129
+ createdAt?: true
130
+ updatedAt?: true
131
+ }
132
+
133
+ export type AgentChatTokenUsageDailyByModelCountAggregateInputType = {
134
+ id?: true
135
+ agentId?: true
136
+ date?: true
137
+ model?: true
138
+ inputTokens?: true
139
+ outputTokens?: true
140
+ cacheReadTokens?: true
141
+ cacheCreationTokens?: true
142
+ costUsd?: true
143
+ createdAt?: true
144
+ updatedAt?: true
145
+ _all?: true
146
+ }
147
+
148
+ export type AgentChatTokenUsageDailyByModelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
149
+ /**
150
+ * Filter which AgentChatTokenUsageDailyByModel to aggregate.
151
+ */
152
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
155
+ *
156
+ * Determine the order of AgentChatTokenUsageDailyByModels to fetch.
157
+ */
158
+ orderBy?: Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput | Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput[]
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
161
+ *
162
+ * Sets the start position
163
+ */
164
+ cursor?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
+ *
168
+ * Take `±n` AgentChatTokenUsageDailyByModels from the position of the cursor.
169
+ */
170
+ take?: number
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
173
+ *
174
+ * Skip the first `n` AgentChatTokenUsageDailyByModels.
175
+ */
176
+ skip?: number
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Count returned AgentChatTokenUsageDailyByModels
181
+ **/
182
+ _count?: true | AgentChatTokenUsageDailyByModelCountAggregateInputType
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to average
187
+ **/
188
+ _avg?: AgentChatTokenUsageDailyByModelAvgAggregateInputType
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Select which fields to sum
193
+ **/
194
+ _sum?: AgentChatTokenUsageDailyByModelSumAggregateInputType
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to find the minimum value
199
+ **/
200
+ _min?: AgentChatTokenUsageDailyByModelMinAggregateInputType
201
+ /**
202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
203
+ *
204
+ * Select which fields to find the maximum value
205
+ **/
206
+ _max?: AgentChatTokenUsageDailyByModelMaxAggregateInputType
207
+ }
208
+
209
+ export type GetAgentChatTokenUsageDailyByModelAggregateType<T extends AgentChatTokenUsageDailyByModelAggregateArgs> = {
210
+ [P in keyof T & keyof AggregateAgentChatTokenUsageDailyByModel]: P extends '_count' | 'count'
211
+ ? T[P] extends true
212
+ ? number
213
+ : Prisma.GetScalarType<T[P], AggregateAgentChatTokenUsageDailyByModel[P]>
214
+ : Prisma.GetScalarType<T[P], AggregateAgentChatTokenUsageDailyByModel[P]>
215
+ }
216
+
217
+
218
+
219
+
220
+ export type AgentChatTokenUsageDailyByModelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
221
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
222
+ orderBy?: Prisma.AgentChatTokenUsageDailyByModelOrderByWithAggregationInput | Prisma.AgentChatTokenUsageDailyByModelOrderByWithAggregationInput[]
223
+ by: Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum[] | Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum
224
+ having?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereWithAggregatesInput
225
+ take?: number
226
+ skip?: number
227
+ _count?: AgentChatTokenUsageDailyByModelCountAggregateInputType | true
228
+ _avg?: AgentChatTokenUsageDailyByModelAvgAggregateInputType
229
+ _sum?: AgentChatTokenUsageDailyByModelSumAggregateInputType
230
+ _min?: AgentChatTokenUsageDailyByModelMinAggregateInputType
231
+ _max?: AgentChatTokenUsageDailyByModelMaxAggregateInputType
232
+ }
233
+
234
+ export type AgentChatTokenUsageDailyByModelGroupByOutputType = {
235
+ id: string
236
+ agentId: string
237
+ date: string
238
+ model: string
239
+ inputTokens: bigint
240
+ outputTokens: bigint
241
+ cacheReadTokens: bigint
242
+ cacheCreationTokens: bigint
243
+ costUsd: number
244
+ createdAt: Date
245
+ updatedAt: Date
246
+ _count: AgentChatTokenUsageDailyByModelCountAggregateOutputType | null
247
+ _avg: AgentChatTokenUsageDailyByModelAvgAggregateOutputType | null
248
+ _sum: AgentChatTokenUsageDailyByModelSumAggregateOutputType | null
249
+ _min: AgentChatTokenUsageDailyByModelMinAggregateOutputType | null
250
+ _max: AgentChatTokenUsageDailyByModelMaxAggregateOutputType | null
251
+ }
252
+
253
+ export type GetAgentChatTokenUsageDailyByModelGroupByPayload<T extends AgentChatTokenUsageDailyByModelGroupByArgs> = Prisma.PrismaPromise<
254
+ Array<
255
+ Prisma.PickEnumerable<AgentChatTokenUsageDailyByModelGroupByOutputType, T['by']> &
256
+ {
257
+ [P in ((keyof T) & (keyof AgentChatTokenUsageDailyByModelGroupByOutputType))]: P extends '_count'
258
+ ? T[P] extends boolean
259
+ ? number
260
+ : Prisma.GetScalarType<T[P], AgentChatTokenUsageDailyByModelGroupByOutputType[P]>
261
+ : Prisma.GetScalarType<T[P], AgentChatTokenUsageDailyByModelGroupByOutputType[P]>
262
+ }
263
+ >
264
+ >
265
+
266
+
267
+
268
+ export type AgentChatTokenUsageDailyByModelWhereInput = {
269
+ AND?: Prisma.AgentChatTokenUsageDailyByModelWhereInput | Prisma.AgentChatTokenUsageDailyByModelWhereInput[]
270
+ OR?: Prisma.AgentChatTokenUsageDailyByModelWhereInput[]
271
+ NOT?: Prisma.AgentChatTokenUsageDailyByModelWhereInput | Prisma.AgentChatTokenUsageDailyByModelWhereInput[]
272
+ id?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
273
+ agentId?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
274
+ date?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
275
+ model?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
276
+ inputTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
277
+ outputTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
278
+ cacheReadTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
279
+ cacheCreationTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
280
+ costUsd?: Prisma.FloatFilter<"AgentChatTokenUsageDailyByModel"> | number
281
+ createdAt?: Prisma.DateTimeFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
282
+ updatedAt?: Prisma.DateTimeFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
283
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
284
+ }
285
+
286
+ export type AgentChatTokenUsageDailyByModelOrderByWithRelationInput = {
287
+ id?: Prisma.SortOrder
288
+ agentId?: Prisma.SortOrder
289
+ date?: Prisma.SortOrder
290
+ model?: Prisma.SortOrder
291
+ inputTokens?: Prisma.SortOrder
292
+ outputTokens?: Prisma.SortOrder
293
+ cacheReadTokens?: Prisma.SortOrder
294
+ cacheCreationTokens?: Prisma.SortOrder
295
+ costUsd?: Prisma.SortOrder
296
+ createdAt?: Prisma.SortOrder
297
+ updatedAt?: Prisma.SortOrder
298
+ agent?: Prisma.AgentOrderByWithRelationInput
299
+ }
300
+
301
+ export type AgentChatTokenUsageDailyByModelWhereUniqueInput = Prisma.AtLeast<{
302
+ id?: string
303
+ agentId_date_model?: Prisma.AgentChatTokenUsageDailyByModelAgentIdDateModelCompoundUniqueInput
304
+ AND?: Prisma.AgentChatTokenUsageDailyByModelWhereInput | Prisma.AgentChatTokenUsageDailyByModelWhereInput[]
305
+ OR?: Prisma.AgentChatTokenUsageDailyByModelWhereInput[]
306
+ NOT?: Prisma.AgentChatTokenUsageDailyByModelWhereInput | Prisma.AgentChatTokenUsageDailyByModelWhereInput[]
307
+ agentId?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
308
+ date?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
309
+ model?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
310
+ inputTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
311
+ outputTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
312
+ cacheReadTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
313
+ cacheCreationTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
314
+ costUsd?: Prisma.FloatFilter<"AgentChatTokenUsageDailyByModel"> | number
315
+ createdAt?: Prisma.DateTimeFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
316
+ updatedAt?: Prisma.DateTimeFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
317
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
318
+ }, "id" | "agentId_date_model">
319
+
320
+ export type AgentChatTokenUsageDailyByModelOrderByWithAggregationInput = {
321
+ id?: Prisma.SortOrder
322
+ agentId?: Prisma.SortOrder
323
+ date?: Prisma.SortOrder
324
+ model?: Prisma.SortOrder
325
+ inputTokens?: Prisma.SortOrder
326
+ outputTokens?: Prisma.SortOrder
327
+ cacheReadTokens?: Prisma.SortOrder
328
+ cacheCreationTokens?: Prisma.SortOrder
329
+ costUsd?: Prisma.SortOrder
330
+ createdAt?: Prisma.SortOrder
331
+ updatedAt?: Prisma.SortOrder
332
+ _count?: Prisma.AgentChatTokenUsageDailyByModelCountOrderByAggregateInput
333
+ _avg?: Prisma.AgentChatTokenUsageDailyByModelAvgOrderByAggregateInput
334
+ _max?: Prisma.AgentChatTokenUsageDailyByModelMaxOrderByAggregateInput
335
+ _min?: Prisma.AgentChatTokenUsageDailyByModelMinOrderByAggregateInput
336
+ _sum?: Prisma.AgentChatTokenUsageDailyByModelSumOrderByAggregateInput
337
+ }
338
+
339
+ export type AgentChatTokenUsageDailyByModelScalarWhereWithAggregatesInput = {
340
+ AND?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereWithAggregatesInput | Prisma.AgentChatTokenUsageDailyByModelScalarWhereWithAggregatesInput[]
341
+ OR?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereWithAggregatesInput[]
342
+ NOT?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereWithAggregatesInput | Prisma.AgentChatTokenUsageDailyByModelScalarWhereWithAggregatesInput[]
343
+ id?: Prisma.StringWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | string
344
+ agentId?: Prisma.StringWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | string
345
+ date?: Prisma.StringWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | string
346
+ model?: Prisma.StringWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | string
347
+ inputTokens?: Prisma.BigIntWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
348
+ outputTokens?: Prisma.BigIntWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
349
+ cacheReadTokens?: Prisma.BigIntWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
350
+ cacheCreationTokens?: Prisma.BigIntWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
351
+ costUsd?: Prisma.FloatWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | number
352
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
353
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
354
+ }
355
+
356
+ export type AgentChatTokenUsageDailyByModelCreateInput = {
357
+ id?: string
358
+ date: string
359
+ model: string
360
+ inputTokens?: bigint | number
361
+ outputTokens?: bigint | number
362
+ cacheReadTokens?: bigint | number
363
+ cacheCreationTokens?: bigint | number
364
+ costUsd?: number
365
+ createdAt?: Date | string
366
+ updatedAt?: Date | string
367
+ agent: Prisma.AgentCreateNestedOneWithoutChatTokenUsageInput
368
+ }
369
+
370
+ export type AgentChatTokenUsageDailyByModelUncheckedCreateInput = {
371
+ id?: string
372
+ agentId: string
373
+ date: string
374
+ model: string
375
+ inputTokens?: bigint | number
376
+ outputTokens?: bigint | number
377
+ cacheReadTokens?: bigint | number
378
+ cacheCreationTokens?: bigint | number
379
+ costUsd?: number
380
+ createdAt?: Date | string
381
+ updatedAt?: Date | string
382
+ }
383
+
384
+ export type AgentChatTokenUsageDailyByModelUpdateInput = {
385
+ id?: Prisma.StringFieldUpdateOperationsInput | string
386
+ date?: Prisma.StringFieldUpdateOperationsInput | string
387
+ model?: Prisma.StringFieldUpdateOperationsInput | string
388
+ inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
389
+ outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
390
+ cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
391
+ cacheCreationTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
392
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
393
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
394
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
395
+ agent?: Prisma.AgentUpdateOneRequiredWithoutChatTokenUsageNestedInput
396
+ }
397
+
398
+ export type AgentChatTokenUsageDailyByModelUncheckedUpdateInput = {
399
+ id?: Prisma.StringFieldUpdateOperationsInput | string
400
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string
401
+ date?: Prisma.StringFieldUpdateOperationsInput | string
402
+ model?: Prisma.StringFieldUpdateOperationsInput | string
403
+ inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
404
+ outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
405
+ cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
406
+ cacheCreationTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
407
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
408
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
409
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
410
+ }
411
+
412
+ export type AgentChatTokenUsageDailyByModelCreateManyInput = {
413
+ id?: string
414
+ agentId: string
415
+ date: string
416
+ model: string
417
+ inputTokens?: bigint | number
418
+ outputTokens?: bigint | number
419
+ cacheReadTokens?: bigint | number
420
+ cacheCreationTokens?: bigint | number
421
+ costUsd?: number
422
+ createdAt?: Date | string
423
+ updatedAt?: Date | string
424
+ }
425
+
426
+ export type AgentChatTokenUsageDailyByModelUpdateManyMutationInput = {
427
+ id?: Prisma.StringFieldUpdateOperationsInput | string
428
+ date?: Prisma.StringFieldUpdateOperationsInput | string
429
+ model?: Prisma.StringFieldUpdateOperationsInput | string
430
+ inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
431
+ outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
432
+ cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
433
+ cacheCreationTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
434
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
435
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
436
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
437
+ }
438
+
439
+ export type AgentChatTokenUsageDailyByModelUncheckedUpdateManyInput = {
440
+ id?: Prisma.StringFieldUpdateOperationsInput | string
441
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string
442
+ date?: Prisma.StringFieldUpdateOperationsInput | string
443
+ model?: Prisma.StringFieldUpdateOperationsInput | string
444
+ inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
445
+ outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
446
+ cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
447
+ cacheCreationTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
448
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
449
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
450
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
451
+ }
452
+
453
+ export type AgentChatTokenUsageDailyByModelListRelationFilter = {
454
+ every?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
455
+ some?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
456
+ none?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
457
+ }
458
+
459
+ export type AgentChatTokenUsageDailyByModelOrderByRelationAggregateInput = {
460
+ _count?: Prisma.SortOrder
461
+ }
462
+
463
+ export type AgentChatTokenUsageDailyByModelAgentIdDateModelCompoundUniqueInput = {
464
+ agentId: string
465
+ date: string
466
+ model: string
467
+ }
468
+
469
+ export type AgentChatTokenUsageDailyByModelCountOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder
471
+ agentId?: Prisma.SortOrder
472
+ date?: Prisma.SortOrder
473
+ model?: Prisma.SortOrder
474
+ inputTokens?: Prisma.SortOrder
475
+ outputTokens?: Prisma.SortOrder
476
+ cacheReadTokens?: Prisma.SortOrder
477
+ cacheCreationTokens?: Prisma.SortOrder
478
+ costUsd?: Prisma.SortOrder
479
+ createdAt?: Prisma.SortOrder
480
+ updatedAt?: Prisma.SortOrder
481
+ }
482
+
483
+ export type AgentChatTokenUsageDailyByModelAvgOrderByAggregateInput = {
484
+ inputTokens?: Prisma.SortOrder
485
+ outputTokens?: Prisma.SortOrder
486
+ cacheReadTokens?: Prisma.SortOrder
487
+ cacheCreationTokens?: Prisma.SortOrder
488
+ costUsd?: Prisma.SortOrder
489
+ }
490
+
491
+ export type AgentChatTokenUsageDailyByModelMaxOrderByAggregateInput = {
492
+ id?: Prisma.SortOrder
493
+ agentId?: Prisma.SortOrder
494
+ date?: Prisma.SortOrder
495
+ model?: Prisma.SortOrder
496
+ inputTokens?: Prisma.SortOrder
497
+ outputTokens?: Prisma.SortOrder
498
+ cacheReadTokens?: Prisma.SortOrder
499
+ cacheCreationTokens?: Prisma.SortOrder
500
+ costUsd?: Prisma.SortOrder
501
+ createdAt?: Prisma.SortOrder
502
+ updatedAt?: Prisma.SortOrder
503
+ }
504
+
505
+ export type AgentChatTokenUsageDailyByModelMinOrderByAggregateInput = {
506
+ id?: Prisma.SortOrder
507
+ agentId?: Prisma.SortOrder
508
+ date?: Prisma.SortOrder
509
+ model?: Prisma.SortOrder
510
+ inputTokens?: Prisma.SortOrder
511
+ outputTokens?: Prisma.SortOrder
512
+ cacheReadTokens?: Prisma.SortOrder
513
+ cacheCreationTokens?: Prisma.SortOrder
514
+ costUsd?: Prisma.SortOrder
515
+ createdAt?: Prisma.SortOrder
516
+ updatedAt?: Prisma.SortOrder
517
+ }
518
+
519
+ export type AgentChatTokenUsageDailyByModelSumOrderByAggregateInput = {
520
+ inputTokens?: Prisma.SortOrder
521
+ outputTokens?: Prisma.SortOrder
522
+ cacheReadTokens?: Prisma.SortOrder
523
+ cacheCreationTokens?: Prisma.SortOrder
524
+ costUsd?: Prisma.SortOrder
525
+ }
526
+
527
+ export type AgentChatTokenUsageDailyByModelCreateNestedManyWithoutAgentInput = {
528
+ create?: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput> | Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput[] | Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput[]
529
+ connectOrCreate?: Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput[]
530
+ createMany?: Prisma.AgentChatTokenUsageDailyByModelCreateManyAgentInputEnvelope
531
+ connect?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
532
+ }
533
+
534
+ export type AgentChatTokenUsageDailyByModelUncheckedCreateNestedManyWithoutAgentInput = {
535
+ create?: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput> | Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput[] | Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput[]
536
+ connectOrCreate?: Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput[]
537
+ createMany?: Prisma.AgentChatTokenUsageDailyByModelCreateManyAgentInputEnvelope
538
+ connect?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
539
+ }
540
+
541
+ export type AgentChatTokenUsageDailyByModelUpdateManyWithoutAgentNestedInput = {
542
+ create?: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput> | Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput[] | Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput[]
543
+ connectOrCreate?: Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput[]
544
+ upsert?: Prisma.AgentChatTokenUsageDailyByModelUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelUpsertWithWhereUniqueWithoutAgentInput[]
545
+ createMany?: Prisma.AgentChatTokenUsageDailyByModelCreateManyAgentInputEnvelope
546
+ set?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
547
+ disconnect?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
548
+ delete?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
549
+ connect?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
550
+ update?: Prisma.AgentChatTokenUsageDailyByModelUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelUpdateWithWhereUniqueWithoutAgentInput[]
551
+ updateMany?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithWhereWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithWhereWithoutAgentInput[]
552
+ deleteMany?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput | Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput[]
553
+ }
554
+
555
+ export type AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentNestedInput = {
556
+ create?: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput> | Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput[] | Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput[]
557
+ connectOrCreate?: Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput[]
558
+ upsert?: Prisma.AgentChatTokenUsageDailyByModelUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelUpsertWithWhereUniqueWithoutAgentInput[]
559
+ createMany?: Prisma.AgentChatTokenUsageDailyByModelCreateManyAgentInputEnvelope
560
+ set?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
561
+ disconnect?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
562
+ delete?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
563
+ connect?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput | Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput[]
564
+ update?: Prisma.AgentChatTokenUsageDailyByModelUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelUpdateWithWhereUniqueWithoutAgentInput[]
565
+ updateMany?: Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithWhereWithoutAgentInput | Prisma.AgentChatTokenUsageDailyByModelUpdateManyWithWhereWithoutAgentInput[]
566
+ deleteMany?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput | Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput[]
567
+ }
568
+
569
+ export type BigIntFieldUpdateOperationsInput = {
570
+ set?: bigint | number
571
+ increment?: bigint | number
572
+ decrement?: bigint | number
573
+ multiply?: bigint | number
574
+ divide?: bigint | number
575
+ }
576
+
577
+ export type AgentChatTokenUsageDailyByModelCreateWithoutAgentInput = {
578
+ id?: string
579
+ date: string
580
+ model: string
581
+ inputTokens?: bigint | number
582
+ outputTokens?: bigint | number
583
+ cacheReadTokens?: bigint | number
584
+ cacheCreationTokens?: bigint | number
585
+ costUsd?: number
586
+ createdAt?: Date | string
587
+ updatedAt?: Date | string
588
+ }
589
+
590
+ export type AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput = {
591
+ id?: string
592
+ date: string
593
+ model: string
594
+ inputTokens?: bigint | number
595
+ outputTokens?: bigint | number
596
+ cacheReadTokens?: bigint | number
597
+ cacheCreationTokens?: bigint | number
598
+ costUsd?: number
599
+ createdAt?: Date | string
600
+ updatedAt?: Date | string
601
+ }
602
+
603
+ export type AgentChatTokenUsageDailyByModelCreateOrConnectWithoutAgentInput = {
604
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
605
+ create: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput>
606
+ }
607
+
608
+ export type AgentChatTokenUsageDailyByModelCreateManyAgentInputEnvelope = {
609
+ data: Prisma.AgentChatTokenUsageDailyByModelCreateManyAgentInput | Prisma.AgentChatTokenUsageDailyByModelCreateManyAgentInput[]
610
+ skipDuplicates?: boolean
611
+ }
612
+
613
+ export type AgentChatTokenUsageDailyByModelUpsertWithWhereUniqueWithoutAgentInput = {
614
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
615
+ update: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelUpdateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateWithoutAgentInput>
616
+ create: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateWithoutAgentInput>
617
+ }
618
+
619
+ export type AgentChatTokenUsageDailyByModelUpdateWithWhereUniqueWithoutAgentInput = {
620
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
621
+ data: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelUpdateWithoutAgentInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateWithoutAgentInput>
622
+ }
623
+
624
+ export type AgentChatTokenUsageDailyByModelUpdateManyWithWhereWithoutAgentInput = {
625
+ where: Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput
626
+ data: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelUpdateManyMutationInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentInput>
627
+ }
628
+
629
+ export type AgentChatTokenUsageDailyByModelScalarWhereInput = {
630
+ AND?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput | Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput[]
631
+ OR?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput[]
632
+ NOT?: Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput | Prisma.AgentChatTokenUsageDailyByModelScalarWhereInput[]
633
+ id?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
634
+ agentId?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
635
+ date?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
636
+ model?: Prisma.StringFilter<"AgentChatTokenUsageDailyByModel"> | string
637
+ inputTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
638
+ outputTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
639
+ cacheReadTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
640
+ cacheCreationTokens?: Prisma.BigIntFilter<"AgentChatTokenUsageDailyByModel"> | bigint | number
641
+ costUsd?: Prisma.FloatFilter<"AgentChatTokenUsageDailyByModel"> | number
642
+ createdAt?: Prisma.DateTimeFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
643
+ updatedAt?: Prisma.DateTimeFilter<"AgentChatTokenUsageDailyByModel"> | Date | string
644
+ }
645
+
646
+ export type AgentChatTokenUsageDailyByModelCreateManyAgentInput = {
647
+ id?: string
648
+ date: string
649
+ model: string
650
+ inputTokens?: bigint | number
651
+ outputTokens?: bigint | number
652
+ cacheReadTokens?: bigint | number
653
+ cacheCreationTokens?: bigint | number
654
+ costUsd?: number
655
+ createdAt?: Date | string
656
+ updatedAt?: Date | string
657
+ }
658
+
659
+ export type AgentChatTokenUsageDailyByModelUpdateWithoutAgentInput = {
660
+ id?: Prisma.StringFieldUpdateOperationsInput | string
661
+ date?: Prisma.StringFieldUpdateOperationsInput | string
662
+ model?: Prisma.StringFieldUpdateOperationsInput | string
663
+ inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
664
+ outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
665
+ cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
666
+ cacheCreationTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
667
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
668
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
669
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
670
+ }
671
+
672
+ export type AgentChatTokenUsageDailyByModelUncheckedUpdateWithoutAgentInput = {
673
+ id?: Prisma.StringFieldUpdateOperationsInput | string
674
+ date?: Prisma.StringFieldUpdateOperationsInput | string
675
+ model?: Prisma.StringFieldUpdateOperationsInput | string
676
+ inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
677
+ outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
678
+ cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
679
+ cacheCreationTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
680
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
681
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
682
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
683
+ }
684
+
685
+ export type AgentChatTokenUsageDailyByModelUncheckedUpdateManyWithoutAgentInput = {
686
+ id?: Prisma.StringFieldUpdateOperationsInput | string
687
+ date?: Prisma.StringFieldUpdateOperationsInput | string
688
+ model?: Prisma.StringFieldUpdateOperationsInput | string
689
+ inputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
690
+ outputTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
691
+ cacheReadTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
692
+ cacheCreationTokens?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
693
+ costUsd?: Prisma.FloatFieldUpdateOperationsInput | number
694
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
695
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
696
+ }
697
+
698
+
699
+
700
+ export type AgentChatTokenUsageDailyByModelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
701
+ id?: boolean
702
+ agentId?: boolean
703
+ date?: boolean
704
+ model?: boolean
705
+ inputTokens?: boolean
706
+ outputTokens?: boolean
707
+ cacheReadTokens?: boolean
708
+ cacheCreationTokens?: boolean
709
+ costUsd?: boolean
710
+ createdAt?: boolean
711
+ updatedAt?: boolean
712
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
713
+ }, ExtArgs["result"]["agentChatTokenUsageDailyByModel"]>
714
+
715
+ export type AgentChatTokenUsageDailyByModelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
716
+ id?: boolean
717
+ agentId?: boolean
718
+ date?: boolean
719
+ model?: boolean
720
+ inputTokens?: boolean
721
+ outputTokens?: boolean
722
+ cacheReadTokens?: boolean
723
+ cacheCreationTokens?: boolean
724
+ costUsd?: boolean
725
+ createdAt?: boolean
726
+ updatedAt?: boolean
727
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
728
+ }, ExtArgs["result"]["agentChatTokenUsageDailyByModel"]>
729
+
730
+ export type AgentChatTokenUsageDailyByModelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
731
+ id?: boolean
732
+ agentId?: boolean
733
+ date?: boolean
734
+ model?: boolean
735
+ inputTokens?: boolean
736
+ outputTokens?: boolean
737
+ cacheReadTokens?: boolean
738
+ cacheCreationTokens?: boolean
739
+ costUsd?: boolean
740
+ createdAt?: boolean
741
+ updatedAt?: boolean
742
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
743
+ }, ExtArgs["result"]["agentChatTokenUsageDailyByModel"]>
744
+
745
+ export type AgentChatTokenUsageDailyByModelSelectScalar = {
746
+ id?: boolean
747
+ agentId?: boolean
748
+ date?: boolean
749
+ model?: boolean
750
+ inputTokens?: boolean
751
+ outputTokens?: boolean
752
+ cacheReadTokens?: boolean
753
+ cacheCreationTokens?: boolean
754
+ costUsd?: boolean
755
+ createdAt?: boolean
756
+ updatedAt?: boolean
757
+ }
758
+
759
+ export type AgentChatTokenUsageDailyByModelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "date" | "model" | "inputTokens" | "outputTokens" | "cacheReadTokens" | "cacheCreationTokens" | "costUsd" | "createdAt" | "updatedAt", ExtArgs["result"]["agentChatTokenUsageDailyByModel"]>
760
+ export type AgentChatTokenUsageDailyByModelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
761
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
762
+ }
763
+ export type AgentChatTokenUsageDailyByModelIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
764
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
765
+ }
766
+ export type AgentChatTokenUsageDailyByModelIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
767
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
768
+ }
769
+
770
+ export type $AgentChatTokenUsageDailyByModelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
771
+ name: "AgentChatTokenUsageDailyByModel"
772
+ objects: {
773
+ agent: Prisma.$AgentPayload<ExtArgs>
774
+ }
775
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
776
+ id: string
777
+ agentId: string
778
+ date: string
779
+ model: string
780
+ inputTokens: bigint
781
+ outputTokens: bigint
782
+ cacheReadTokens: bigint
783
+ cacheCreationTokens: bigint
784
+ costUsd: number
785
+ createdAt: Date
786
+ updatedAt: Date
787
+ }, ExtArgs["result"]["agentChatTokenUsageDailyByModel"]>
788
+ composites: {}
789
+ }
790
+
791
+ export type AgentChatTokenUsageDailyByModelGetPayload<S extends boolean | null | undefined | AgentChatTokenUsageDailyByModelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload, S>
792
+
793
+ export type AgentChatTokenUsageDailyByModelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
794
+ Omit<AgentChatTokenUsageDailyByModelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
795
+ select?: AgentChatTokenUsageDailyByModelCountAggregateInputType | true
796
+ }
797
+
798
+ export interface AgentChatTokenUsageDailyByModelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
799
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentChatTokenUsageDailyByModel'], meta: { name: 'AgentChatTokenUsageDailyByModel' } }
800
+ /**
801
+ * Find zero or one AgentChatTokenUsageDailyByModel that matches the filter.
802
+ * @param {AgentChatTokenUsageDailyByModelFindUniqueArgs} args - Arguments to find a AgentChatTokenUsageDailyByModel
803
+ * @example
804
+ * // Get one AgentChatTokenUsageDailyByModel
805
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.findUnique({
806
+ * where: {
807
+ * // ... provide filter here
808
+ * }
809
+ * })
810
+ */
811
+ findUnique<T extends AgentChatTokenUsageDailyByModelFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
812
+
813
+ /**
814
+ * Find one AgentChatTokenUsageDailyByModel that matches the filter or throw an error with `error.code='P2025'`
815
+ * if no matches were found.
816
+ * @param {AgentChatTokenUsageDailyByModelFindUniqueOrThrowArgs} args - Arguments to find a AgentChatTokenUsageDailyByModel
817
+ * @example
818
+ * // Get one AgentChatTokenUsageDailyByModel
819
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.findUniqueOrThrow({
820
+ * where: {
821
+ * // ... provide filter here
822
+ * }
823
+ * })
824
+ */
825
+ findUniqueOrThrow<T extends AgentChatTokenUsageDailyByModelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
826
+
827
+ /**
828
+ * Find the first AgentChatTokenUsageDailyByModel that matches the filter.
829
+ * Note, that providing `undefined` is treated as the value not being there.
830
+ * Read more here: https://pris.ly/d/null-undefined
831
+ * @param {AgentChatTokenUsageDailyByModelFindFirstArgs} args - Arguments to find a AgentChatTokenUsageDailyByModel
832
+ * @example
833
+ * // Get one AgentChatTokenUsageDailyByModel
834
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.findFirst({
835
+ * where: {
836
+ * // ... provide filter here
837
+ * }
838
+ * })
839
+ */
840
+ findFirst<T extends AgentChatTokenUsageDailyByModelFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
841
+
842
+ /**
843
+ * Find the first AgentChatTokenUsageDailyByModel that matches the filter or
844
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
845
+ * Note, that providing `undefined` is treated as the value not being there.
846
+ * Read more here: https://pris.ly/d/null-undefined
847
+ * @param {AgentChatTokenUsageDailyByModelFindFirstOrThrowArgs} args - Arguments to find a AgentChatTokenUsageDailyByModel
848
+ * @example
849
+ * // Get one AgentChatTokenUsageDailyByModel
850
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.findFirstOrThrow({
851
+ * where: {
852
+ * // ... provide filter here
853
+ * }
854
+ * })
855
+ */
856
+ findFirstOrThrow<T extends AgentChatTokenUsageDailyByModelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
857
+
858
+ /**
859
+ * Find zero or more AgentChatTokenUsageDailyByModels that matches the filter.
860
+ * Note, that providing `undefined` is treated as the value not being there.
861
+ * Read more here: https://pris.ly/d/null-undefined
862
+ * @param {AgentChatTokenUsageDailyByModelFindManyArgs} args - Arguments to filter and select certain fields only.
863
+ * @example
864
+ * // Get all AgentChatTokenUsageDailyByModels
865
+ * const agentChatTokenUsageDailyByModels = await prisma.agentChatTokenUsageDailyByModel.findMany()
866
+ *
867
+ * // Get first 10 AgentChatTokenUsageDailyByModels
868
+ * const agentChatTokenUsageDailyByModels = await prisma.agentChatTokenUsageDailyByModel.findMany({ take: 10 })
869
+ *
870
+ * // Only select the `id`
871
+ * const agentChatTokenUsageDailyByModelWithIdOnly = await prisma.agentChatTokenUsageDailyByModel.findMany({ select: { id: true } })
872
+ *
873
+ */
874
+ findMany<T extends AgentChatTokenUsageDailyByModelFindManyArgs>(args?: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
875
+
876
+ /**
877
+ * Create a AgentChatTokenUsageDailyByModel.
878
+ * @param {AgentChatTokenUsageDailyByModelCreateArgs} args - Arguments to create a AgentChatTokenUsageDailyByModel.
879
+ * @example
880
+ * // Create one AgentChatTokenUsageDailyByModel
881
+ * const AgentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.create({
882
+ * data: {
883
+ * // ... data to create a AgentChatTokenUsageDailyByModel
884
+ * }
885
+ * })
886
+ *
887
+ */
888
+ create<T extends AgentChatTokenUsageDailyByModelCreateArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelCreateArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
889
+
890
+ /**
891
+ * Create many AgentChatTokenUsageDailyByModels.
892
+ * @param {AgentChatTokenUsageDailyByModelCreateManyArgs} args - Arguments to create many AgentChatTokenUsageDailyByModels.
893
+ * @example
894
+ * // Create many AgentChatTokenUsageDailyByModels
895
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.createMany({
896
+ * data: [
897
+ * // ... provide data here
898
+ * ]
899
+ * })
900
+ *
901
+ */
902
+ createMany<T extends AgentChatTokenUsageDailyByModelCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
903
+
904
+ /**
905
+ * Create many AgentChatTokenUsageDailyByModels and returns the data saved in the database.
906
+ * @param {AgentChatTokenUsageDailyByModelCreateManyAndReturnArgs} args - Arguments to create many AgentChatTokenUsageDailyByModels.
907
+ * @example
908
+ * // Create many AgentChatTokenUsageDailyByModels
909
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.createManyAndReturn({
910
+ * data: [
911
+ * // ... provide data here
912
+ * ]
913
+ * })
914
+ *
915
+ * // Create many AgentChatTokenUsageDailyByModels and only return the `id`
916
+ * const agentChatTokenUsageDailyByModelWithIdOnly = await prisma.agentChatTokenUsageDailyByModel.createManyAndReturn({
917
+ * select: { id: true },
918
+ * data: [
919
+ * // ... provide data here
920
+ * ]
921
+ * })
922
+ * Note, that providing `undefined` is treated as the value not being there.
923
+ * Read more here: https://pris.ly/d/null-undefined
924
+ *
925
+ */
926
+ createManyAndReturn<T extends AgentChatTokenUsageDailyByModelCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
927
+
928
+ /**
929
+ * Delete a AgentChatTokenUsageDailyByModel.
930
+ * @param {AgentChatTokenUsageDailyByModelDeleteArgs} args - Arguments to delete one AgentChatTokenUsageDailyByModel.
931
+ * @example
932
+ * // Delete one AgentChatTokenUsageDailyByModel
933
+ * const AgentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.delete({
934
+ * where: {
935
+ * // ... filter to delete one AgentChatTokenUsageDailyByModel
936
+ * }
937
+ * })
938
+ *
939
+ */
940
+ delete<T extends AgentChatTokenUsageDailyByModelDeleteArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
941
+
942
+ /**
943
+ * Update one AgentChatTokenUsageDailyByModel.
944
+ * @param {AgentChatTokenUsageDailyByModelUpdateArgs} args - Arguments to update one AgentChatTokenUsageDailyByModel.
945
+ * @example
946
+ * // Update one AgentChatTokenUsageDailyByModel
947
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.update({
948
+ * where: {
949
+ * // ... provide filter here
950
+ * },
951
+ * data: {
952
+ * // ... provide data here
953
+ * }
954
+ * })
955
+ *
956
+ */
957
+ update<T extends AgentChatTokenUsageDailyByModelUpdateArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
958
+
959
+ /**
960
+ * Delete zero or more AgentChatTokenUsageDailyByModels.
961
+ * @param {AgentChatTokenUsageDailyByModelDeleteManyArgs} args - Arguments to filter AgentChatTokenUsageDailyByModels to delete.
962
+ * @example
963
+ * // Delete a few AgentChatTokenUsageDailyByModels
964
+ * const { count } = await prisma.agentChatTokenUsageDailyByModel.deleteMany({
965
+ * where: {
966
+ * // ... provide filter here
967
+ * }
968
+ * })
969
+ *
970
+ */
971
+ deleteMany<T extends AgentChatTokenUsageDailyByModelDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
972
+
973
+ /**
974
+ * Update zero or more AgentChatTokenUsageDailyByModels.
975
+ * Note, that providing `undefined` is treated as the value not being there.
976
+ * Read more here: https://pris.ly/d/null-undefined
977
+ * @param {AgentChatTokenUsageDailyByModelUpdateManyArgs} args - Arguments to update one or more rows.
978
+ * @example
979
+ * // Update many AgentChatTokenUsageDailyByModels
980
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.updateMany({
981
+ * where: {
982
+ * // ... provide filter here
983
+ * },
984
+ * data: {
985
+ * // ... provide data here
986
+ * }
987
+ * })
988
+ *
989
+ */
990
+ updateMany<T extends AgentChatTokenUsageDailyByModelUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
991
+
992
+ /**
993
+ * Update zero or more AgentChatTokenUsageDailyByModels and returns the data updated in the database.
994
+ * @param {AgentChatTokenUsageDailyByModelUpdateManyAndReturnArgs} args - Arguments to update many AgentChatTokenUsageDailyByModels.
995
+ * @example
996
+ * // Update many AgentChatTokenUsageDailyByModels
997
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.updateManyAndReturn({
998
+ * where: {
999
+ * // ... provide filter here
1000
+ * },
1001
+ * data: [
1002
+ * // ... provide data here
1003
+ * ]
1004
+ * })
1005
+ *
1006
+ * // Update zero or more AgentChatTokenUsageDailyByModels and only return the `id`
1007
+ * const agentChatTokenUsageDailyByModelWithIdOnly = await prisma.agentChatTokenUsageDailyByModel.updateManyAndReturn({
1008
+ * select: { id: true },
1009
+ * where: {
1010
+ * // ... provide filter here
1011
+ * },
1012
+ * data: [
1013
+ * // ... provide data here
1014
+ * ]
1015
+ * })
1016
+ * Note, that providing `undefined` is treated as the value not being there.
1017
+ * Read more here: https://pris.ly/d/null-undefined
1018
+ *
1019
+ */
1020
+ updateManyAndReturn<T extends AgentChatTokenUsageDailyByModelUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1021
+
1022
+ /**
1023
+ * Create or update one AgentChatTokenUsageDailyByModel.
1024
+ * @param {AgentChatTokenUsageDailyByModelUpsertArgs} args - Arguments to update or create a AgentChatTokenUsageDailyByModel.
1025
+ * @example
1026
+ * // Update or create a AgentChatTokenUsageDailyByModel
1027
+ * const agentChatTokenUsageDailyByModel = await prisma.agentChatTokenUsageDailyByModel.upsert({
1028
+ * create: {
1029
+ * // ... data to create a AgentChatTokenUsageDailyByModel
1030
+ * },
1031
+ * update: {
1032
+ * // ... in case it already exists, update
1033
+ * },
1034
+ * where: {
1035
+ * // ... the filter for the AgentChatTokenUsageDailyByModel we want to update
1036
+ * }
1037
+ * })
1038
+ */
1039
+ upsert<T extends AgentChatTokenUsageDailyByModelUpsertArgs>(args: Prisma.SelectSubset<T, AgentChatTokenUsageDailyByModelUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentChatTokenUsageDailyByModelClient<runtime.Types.Result.GetResult<Prisma.$AgentChatTokenUsageDailyByModelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1040
+
1041
+
1042
+ /**
1043
+ * Count the number of AgentChatTokenUsageDailyByModels.
1044
+ * Note, that providing `undefined` is treated as the value not being there.
1045
+ * Read more here: https://pris.ly/d/null-undefined
1046
+ * @param {AgentChatTokenUsageDailyByModelCountArgs} args - Arguments to filter AgentChatTokenUsageDailyByModels to count.
1047
+ * @example
1048
+ * // Count the number of AgentChatTokenUsageDailyByModels
1049
+ * const count = await prisma.agentChatTokenUsageDailyByModel.count({
1050
+ * where: {
1051
+ * // ... the filter for the AgentChatTokenUsageDailyByModels we want to count
1052
+ * }
1053
+ * })
1054
+ **/
1055
+ count<T extends AgentChatTokenUsageDailyByModelCountArgs>(
1056
+ args?: Prisma.Subset<T, AgentChatTokenUsageDailyByModelCountArgs>,
1057
+ ): Prisma.PrismaPromise<
1058
+ T extends runtime.Types.Utils.Record<'select', any>
1059
+ ? T['select'] extends true
1060
+ ? number
1061
+ : Prisma.GetScalarType<T['select'], AgentChatTokenUsageDailyByModelCountAggregateOutputType>
1062
+ : number
1063
+ >
1064
+
1065
+ /**
1066
+ * Allows you to perform aggregations operations on a AgentChatTokenUsageDailyByModel.
1067
+ * Note, that providing `undefined` is treated as the value not being there.
1068
+ * Read more here: https://pris.ly/d/null-undefined
1069
+ * @param {AgentChatTokenUsageDailyByModelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1070
+ * @example
1071
+ * // Ordered by age ascending
1072
+ * // Where email contains prisma.io
1073
+ * // Limited to the 10 users
1074
+ * const aggregations = await prisma.user.aggregate({
1075
+ * _avg: {
1076
+ * age: true,
1077
+ * },
1078
+ * where: {
1079
+ * email: {
1080
+ * contains: "prisma.io",
1081
+ * },
1082
+ * },
1083
+ * orderBy: {
1084
+ * age: "asc",
1085
+ * },
1086
+ * take: 10,
1087
+ * })
1088
+ **/
1089
+ aggregate<T extends AgentChatTokenUsageDailyByModelAggregateArgs>(args: Prisma.Subset<T, AgentChatTokenUsageDailyByModelAggregateArgs>): Prisma.PrismaPromise<GetAgentChatTokenUsageDailyByModelAggregateType<T>>
1090
+
1091
+ /**
1092
+ * Group by AgentChatTokenUsageDailyByModel.
1093
+ * Note, that providing `undefined` is treated as the value not being there.
1094
+ * Read more here: https://pris.ly/d/null-undefined
1095
+ * @param {AgentChatTokenUsageDailyByModelGroupByArgs} args - Group by arguments.
1096
+ * @example
1097
+ * // Group by city, order by createdAt, get count
1098
+ * const result = await prisma.user.groupBy({
1099
+ * by: ['city', 'createdAt'],
1100
+ * orderBy: {
1101
+ * createdAt: true
1102
+ * },
1103
+ * _count: {
1104
+ * _all: true
1105
+ * },
1106
+ * })
1107
+ *
1108
+ **/
1109
+ groupBy<
1110
+ T extends AgentChatTokenUsageDailyByModelGroupByArgs,
1111
+ HasSelectOrTake extends Prisma.Or<
1112
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1113
+ Prisma.Extends<'take', Prisma.Keys<T>>
1114
+ >,
1115
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1116
+ ? { orderBy: AgentChatTokenUsageDailyByModelGroupByArgs['orderBy'] }
1117
+ : { orderBy?: AgentChatTokenUsageDailyByModelGroupByArgs['orderBy'] },
1118
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1119
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1120
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1121
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1122
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1123
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1124
+ InputErrors extends ByEmpty extends Prisma.True
1125
+ ? `Error: "by" must not be empty.`
1126
+ : HavingValid extends Prisma.False
1127
+ ? {
1128
+ [P in HavingFields]: P extends ByFields
1129
+ ? never
1130
+ : P extends string
1131
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1132
+ : [
1133
+ Error,
1134
+ 'Field ',
1135
+ P,
1136
+ ` in "having" needs to be provided in "by"`,
1137
+ ]
1138
+ }[HavingFields]
1139
+ : 'take' extends Prisma.Keys<T>
1140
+ ? 'orderBy' extends Prisma.Keys<T>
1141
+ ? ByValid extends Prisma.True
1142
+ ? {}
1143
+ : {
1144
+ [P in OrderFields]: P extends ByFields
1145
+ ? never
1146
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1147
+ }[OrderFields]
1148
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1149
+ : 'skip' extends Prisma.Keys<T>
1150
+ ? 'orderBy' extends Prisma.Keys<T>
1151
+ ? ByValid extends Prisma.True
1152
+ ? {}
1153
+ : {
1154
+ [P in OrderFields]: P extends ByFields
1155
+ ? never
1156
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1157
+ }[OrderFields]
1158
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1159
+ : ByValid extends Prisma.True
1160
+ ? {}
1161
+ : {
1162
+ [P in OrderFields]: P extends ByFields
1163
+ ? never
1164
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1165
+ }[OrderFields]
1166
+ >(args: Prisma.SubsetIntersection<T, AgentChatTokenUsageDailyByModelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentChatTokenUsageDailyByModelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1167
+ /**
1168
+ * Fields of the AgentChatTokenUsageDailyByModel model
1169
+ */
1170
+ readonly fields: AgentChatTokenUsageDailyByModelFieldRefs;
1171
+ }
1172
+
1173
+ /**
1174
+ * The delegate class that acts as a "Promise-like" for AgentChatTokenUsageDailyByModel.
1175
+ * Why is this prefixed with `Prisma__`?
1176
+ * Because we want to prevent naming conflicts as mentioned in
1177
+ * https://github.com/prisma/prisma-client-js/issues/707
1178
+ */
1179
+ export interface Prisma__AgentChatTokenUsageDailyByModelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1180
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1181
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1182
+ /**
1183
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1184
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1185
+ * @param onrejected The callback to execute when the Promise is rejected.
1186
+ * @returns A Promise for the completion of which ever callback is executed.
1187
+ */
1188
+ 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>
1189
+ /**
1190
+ * Attaches a callback for only the rejection of the Promise.
1191
+ * @param onrejected The callback to execute when the Promise is rejected.
1192
+ * @returns A Promise for the completion of the callback.
1193
+ */
1194
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1195
+ /**
1196
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1197
+ * resolved value cannot be modified from the callback.
1198
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1199
+ * @returns A Promise for the completion of the callback.
1200
+ */
1201
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1202
+ }
1203
+
1204
+
1205
+
1206
+
1207
+ /**
1208
+ * Fields of the AgentChatTokenUsageDailyByModel model
1209
+ */
1210
+ export interface AgentChatTokenUsageDailyByModelFieldRefs {
1211
+ readonly id: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'String'>
1212
+ readonly agentId: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'String'>
1213
+ readonly date: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'String'>
1214
+ readonly model: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'String'>
1215
+ readonly inputTokens: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'BigInt'>
1216
+ readonly outputTokens: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'BigInt'>
1217
+ readonly cacheReadTokens: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'BigInt'>
1218
+ readonly cacheCreationTokens: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'BigInt'>
1219
+ readonly costUsd: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'Float'>
1220
+ readonly createdAt: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'DateTime'>
1221
+ readonly updatedAt: Prisma.FieldRef<"AgentChatTokenUsageDailyByModel", 'DateTime'>
1222
+ }
1223
+
1224
+
1225
+ // Custom InputTypes
1226
+ /**
1227
+ * AgentChatTokenUsageDailyByModel findUnique
1228
+ */
1229
+ export type AgentChatTokenUsageDailyByModelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1230
+ /**
1231
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1232
+ */
1233
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1234
+ /**
1235
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1236
+ */
1237
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1238
+ /**
1239
+ * Choose, which related nodes to fetch as well
1240
+ */
1241
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1242
+ /**
1243
+ * Filter, which AgentChatTokenUsageDailyByModel to fetch.
1244
+ */
1245
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1246
+ }
1247
+
1248
+ /**
1249
+ * AgentChatTokenUsageDailyByModel findUniqueOrThrow
1250
+ */
1251
+ export type AgentChatTokenUsageDailyByModelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1252
+ /**
1253
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1254
+ */
1255
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1256
+ /**
1257
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1258
+ */
1259
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1260
+ /**
1261
+ * Choose, which related nodes to fetch as well
1262
+ */
1263
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1264
+ /**
1265
+ * Filter, which AgentChatTokenUsageDailyByModel to fetch.
1266
+ */
1267
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1268
+ }
1269
+
1270
+ /**
1271
+ * AgentChatTokenUsageDailyByModel findFirst
1272
+ */
1273
+ export type AgentChatTokenUsageDailyByModelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1274
+ /**
1275
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1276
+ */
1277
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1278
+ /**
1279
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1280
+ */
1281
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1282
+ /**
1283
+ * Choose, which related nodes to fetch as well
1284
+ */
1285
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1286
+ /**
1287
+ * Filter, which AgentChatTokenUsageDailyByModel to fetch.
1288
+ */
1289
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
1290
+ /**
1291
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1292
+ *
1293
+ * Determine the order of AgentChatTokenUsageDailyByModels to fetch.
1294
+ */
1295
+ orderBy?: Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput | Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput[]
1296
+ /**
1297
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1298
+ *
1299
+ * Sets the position for searching for AgentChatTokenUsageDailyByModels.
1300
+ */
1301
+ cursor?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1302
+ /**
1303
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1304
+ *
1305
+ * Take `±n` AgentChatTokenUsageDailyByModels from the position of the cursor.
1306
+ */
1307
+ take?: number
1308
+ /**
1309
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1310
+ *
1311
+ * Skip the first `n` AgentChatTokenUsageDailyByModels.
1312
+ */
1313
+ skip?: number
1314
+ /**
1315
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1316
+ *
1317
+ * Filter by unique combinations of AgentChatTokenUsageDailyByModels.
1318
+ */
1319
+ distinct?: Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum | Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum[]
1320
+ }
1321
+
1322
+ /**
1323
+ * AgentChatTokenUsageDailyByModel findFirstOrThrow
1324
+ */
1325
+ export type AgentChatTokenUsageDailyByModelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1328
+ */
1329
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1330
+ /**
1331
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1332
+ */
1333
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1334
+ /**
1335
+ * Choose, which related nodes to fetch as well
1336
+ */
1337
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1338
+ /**
1339
+ * Filter, which AgentChatTokenUsageDailyByModel to fetch.
1340
+ */
1341
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
1342
+ /**
1343
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1344
+ *
1345
+ * Determine the order of AgentChatTokenUsageDailyByModels to fetch.
1346
+ */
1347
+ orderBy?: Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput | Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput[]
1348
+ /**
1349
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1350
+ *
1351
+ * Sets the position for searching for AgentChatTokenUsageDailyByModels.
1352
+ */
1353
+ cursor?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1354
+ /**
1355
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1356
+ *
1357
+ * Take `±n` AgentChatTokenUsageDailyByModels from the position of the cursor.
1358
+ */
1359
+ take?: number
1360
+ /**
1361
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1362
+ *
1363
+ * Skip the first `n` AgentChatTokenUsageDailyByModels.
1364
+ */
1365
+ skip?: number
1366
+ /**
1367
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1368
+ *
1369
+ * Filter by unique combinations of AgentChatTokenUsageDailyByModels.
1370
+ */
1371
+ distinct?: Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum | Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum[]
1372
+ }
1373
+
1374
+ /**
1375
+ * AgentChatTokenUsageDailyByModel findMany
1376
+ */
1377
+ export type AgentChatTokenUsageDailyByModelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1380
+ */
1381
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1382
+ /**
1383
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1384
+ */
1385
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1386
+ /**
1387
+ * Choose, which related nodes to fetch as well
1388
+ */
1389
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1390
+ /**
1391
+ * Filter, which AgentChatTokenUsageDailyByModels to fetch.
1392
+ */
1393
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
1394
+ /**
1395
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1396
+ *
1397
+ * Determine the order of AgentChatTokenUsageDailyByModels to fetch.
1398
+ */
1399
+ orderBy?: Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput | Prisma.AgentChatTokenUsageDailyByModelOrderByWithRelationInput[]
1400
+ /**
1401
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1402
+ *
1403
+ * Sets the position for listing AgentChatTokenUsageDailyByModels.
1404
+ */
1405
+ cursor?: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1406
+ /**
1407
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1408
+ *
1409
+ * Take `±n` AgentChatTokenUsageDailyByModels from the position of the cursor.
1410
+ */
1411
+ take?: number
1412
+ /**
1413
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1414
+ *
1415
+ * Skip the first `n` AgentChatTokenUsageDailyByModels.
1416
+ */
1417
+ skip?: number
1418
+ /**
1419
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1420
+ *
1421
+ * Filter by unique combinations of AgentChatTokenUsageDailyByModels.
1422
+ */
1423
+ distinct?: Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum | Prisma.AgentChatTokenUsageDailyByModelScalarFieldEnum[]
1424
+ }
1425
+
1426
+ /**
1427
+ * AgentChatTokenUsageDailyByModel create
1428
+ */
1429
+ export type AgentChatTokenUsageDailyByModelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1430
+ /**
1431
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1432
+ */
1433
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1434
+ /**
1435
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1436
+ */
1437
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1438
+ /**
1439
+ * Choose, which related nodes to fetch as well
1440
+ */
1441
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1442
+ /**
1443
+ * The data needed to create a AgentChatTokenUsageDailyByModel.
1444
+ */
1445
+ data: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateInput>
1446
+ }
1447
+
1448
+ /**
1449
+ * AgentChatTokenUsageDailyByModel createMany
1450
+ */
1451
+ export type AgentChatTokenUsageDailyByModelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1452
+ /**
1453
+ * The data used to create many AgentChatTokenUsageDailyByModels.
1454
+ */
1455
+ data: Prisma.AgentChatTokenUsageDailyByModelCreateManyInput | Prisma.AgentChatTokenUsageDailyByModelCreateManyInput[]
1456
+ skipDuplicates?: boolean
1457
+ }
1458
+
1459
+ /**
1460
+ * AgentChatTokenUsageDailyByModel createManyAndReturn
1461
+ */
1462
+ export type AgentChatTokenUsageDailyByModelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1463
+ /**
1464
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1465
+ */
1466
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelectCreateManyAndReturn<ExtArgs> | null
1467
+ /**
1468
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1469
+ */
1470
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1471
+ /**
1472
+ * The data used to create many AgentChatTokenUsageDailyByModels.
1473
+ */
1474
+ data: Prisma.AgentChatTokenUsageDailyByModelCreateManyInput | Prisma.AgentChatTokenUsageDailyByModelCreateManyInput[]
1475
+ skipDuplicates?: boolean
1476
+ /**
1477
+ * Choose, which related nodes to fetch as well
1478
+ */
1479
+ include?: Prisma.AgentChatTokenUsageDailyByModelIncludeCreateManyAndReturn<ExtArgs> | null
1480
+ }
1481
+
1482
+ /**
1483
+ * AgentChatTokenUsageDailyByModel update
1484
+ */
1485
+ export type AgentChatTokenUsageDailyByModelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1486
+ /**
1487
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1488
+ */
1489
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1490
+ /**
1491
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1492
+ */
1493
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1494
+ /**
1495
+ * Choose, which related nodes to fetch as well
1496
+ */
1497
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1498
+ /**
1499
+ * The data needed to update a AgentChatTokenUsageDailyByModel.
1500
+ */
1501
+ data: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelUpdateInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateInput>
1502
+ /**
1503
+ * Choose, which AgentChatTokenUsageDailyByModel to update.
1504
+ */
1505
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1506
+ }
1507
+
1508
+ /**
1509
+ * AgentChatTokenUsageDailyByModel updateMany
1510
+ */
1511
+ export type AgentChatTokenUsageDailyByModelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1512
+ /**
1513
+ * The data used to update AgentChatTokenUsageDailyByModels.
1514
+ */
1515
+ data: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelUpdateManyMutationInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyInput>
1516
+ /**
1517
+ * Filter which AgentChatTokenUsageDailyByModels to update
1518
+ */
1519
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
1520
+ /**
1521
+ * Limit how many AgentChatTokenUsageDailyByModels to update.
1522
+ */
1523
+ limit?: number
1524
+ }
1525
+
1526
+ /**
1527
+ * AgentChatTokenUsageDailyByModel updateManyAndReturn
1528
+ */
1529
+ export type AgentChatTokenUsageDailyByModelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1530
+ /**
1531
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1532
+ */
1533
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelectUpdateManyAndReturn<ExtArgs> | null
1534
+ /**
1535
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1536
+ */
1537
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1538
+ /**
1539
+ * The data used to update AgentChatTokenUsageDailyByModels.
1540
+ */
1541
+ data: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelUpdateManyMutationInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateManyInput>
1542
+ /**
1543
+ * Filter which AgentChatTokenUsageDailyByModels to update
1544
+ */
1545
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
1546
+ /**
1547
+ * Limit how many AgentChatTokenUsageDailyByModels to update.
1548
+ */
1549
+ limit?: number
1550
+ /**
1551
+ * Choose, which related nodes to fetch as well
1552
+ */
1553
+ include?: Prisma.AgentChatTokenUsageDailyByModelIncludeUpdateManyAndReturn<ExtArgs> | null
1554
+ }
1555
+
1556
+ /**
1557
+ * AgentChatTokenUsageDailyByModel upsert
1558
+ */
1559
+ export type AgentChatTokenUsageDailyByModelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1560
+ /**
1561
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1562
+ */
1563
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1564
+ /**
1565
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1566
+ */
1567
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1568
+ /**
1569
+ * Choose, which related nodes to fetch as well
1570
+ */
1571
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1572
+ /**
1573
+ * The filter to search for the AgentChatTokenUsageDailyByModel to update in case it exists.
1574
+ */
1575
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1576
+ /**
1577
+ * In case the AgentChatTokenUsageDailyByModel found by the `where` argument doesn't exist, create a new AgentChatTokenUsageDailyByModel with this data.
1578
+ */
1579
+ create: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelCreateInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedCreateInput>
1580
+ /**
1581
+ * In case the AgentChatTokenUsageDailyByModel was found with the provided `where` argument, update it with this data.
1582
+ */
1583
+ update: Prisma.XOR<Prisma.AgentChatTokenUsageDailyByModelUpdateInput, Prisma.AgentChatTokenUsageDailyByModelUncheckedUpdateInput>
1584
+ }
1585
+
1586
+ /**
1587
+ * AgentChatTokenUsageDailyByModel delete
1588
+ */
1589
+ export type AgentChatTokenUsageDailyByModelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1590
+ /**
1591
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1592
+ */
1593
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1594
+ /**
1595
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1596
+ */
1597
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1598
+ /**
1599
+ * Choose, which related nodes to fetch as well
1600
+ */
1601
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1602
+ /**
1603
+ * Filter which AgentChatTokenUsageDailyByModel to delete.
1604
+ */
1605
+ where: Prisma.AgentChatTokenUsageDailyByModelWhereUniqueInput
1606
+ }
1607
+
1608
+ /**
1609
+ * AgentChatTokenUsageDailyByModel deleteMany
1610
+ */
1611
+ export type AgentChatTokenUsageDailyByModelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1612
+ /**
1613
+ * Filter which AgentChatTokenUsageDailyByModels to delete
1614
+ */
1615
+ where?: Prisma.AgentChatTokenUsageDailyByModelWhereInput
1616
+ /**
1617
+ * Limit how many AgentChatTokenUsageDailyByModels to delete.
1618
+ */
1619
+ limit?: number
1620
+ }
1621
+
1622
+ /**
1623
+ * AgentChatTokenUsageDailyByModel without action
1624
+ */
1625
+ export type AgentChatTokenUsageDailyByModelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1626
+ /**
1627
+ * Select specific fields to fetch from the AgentChatTokenUsageDailyByModel
1628
+ */
1629
+ select?: Prisma.AgentChatTokenUsageDailyByModelSelect<ExtArgs> | null
1630
+ /**
1631
+ * Omit specific fields from the AgentChatTokenUsageDailyByModel
1632
+ */
1633
+ omit?: Prisma.AgentChatTokenUsageDailyByModelOmit<ExtArgs> | null
1634
+ /**
1635
+ * Choose, which related nodes to fetch as well
1636
+ */
1637
+ include?: Prisma.AgentChatTokenUsageDailyByModelInclude<ExtArgs> | null
1638
+ }