@app-vitals/agent-admin 0.0.1 → 0.1.0

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