@app-vitals/agent-admin 0.0.1 → 0.1.1

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