@app-vitals/agent-admin 0.0.1 → 0.1.0

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