@goscribe/server 1.6.0 → 1.7.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 (281) hide show
  1. package/dist/generated/prisma/client.d.ts +224 -0
  2. package/dist/generated/prisma/client.js +34 -0
  3. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  4. package/dist/generated/prisma/commonInputTypes.js +10 -0
  5. package/dist/generated/prisma/enums.d.ts +67 -0
  6. package/dist/generated/prisma/enums.js +66 -0
  7. package/dist/generated/prisma/internal/class.d.ts +539 -0
  8. package/dist/generated/prisma/internal/class.js +49 -0
  9. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  10. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  11. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  12. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  13. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  14. package/dist/generated/prisma/models/Artifact.js +1 -0
  15. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  16. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  17. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  18. package/dist/generated/prisma/models/Channel.js +1 -0
  19. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  20. package/dist/generated/prisma/models/Chat.js +1 -0
  21. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  22. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  23. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  24. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  25. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  26. package/dist/generated/prisma/models/FileAsset.js +1 -0
  27. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  28. package/dist/generated/prisma/models/Flashcard.js +1 -0
  29. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  30. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  31. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  32. package/dist/generated/prisma/models/Folder.js +1 -0
  33. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  34. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  35. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  36. package/dist/generated/prisma/models/Invoice.js +1 -0
  37. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  38. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  40. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  43. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  44. package/dist/generated/prisma/models/Notification.js +1 -0
  45. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  46. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  47. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  48. package/dist/generated/prisma/models/Plan.js +1 -0
  49. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  50. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  51. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  52. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  53. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  54. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  55. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  56. package/dist/generated/prisma/models/Role.js +1 -0
  57. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  58. package/dist/generated/prisma/models/Session.js +1 -0
  59. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  60. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  61. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  62. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  64. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  65. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  66. package/dist/generated/prisma/models/Subscription.js +1 -0
  67. package/dist/generated/prisma/models/User.d.ts +7559 -0
  68. package/dist/generated/prisma/models/User.js +1 -0
  69. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  70. package/dist/generated/prisma/models/UserCredit.js +1 -0
  71. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  72. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  73. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  74. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  76. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  78. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  79. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  80. package/dist/generated/prisma/models/Workspace.js +1 -0
  81. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  82. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  84. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  86. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  87. package/dist/generated/prisma/models.d.ts +39 -0
  88. package/dist/generated/prisma/models.js +1 -0
  89. package/dist/src/context.d.ts +27 -0
  90. package/dist/src/context.js +33 -0
  91. package/dist/src/index.d.ts +3 -0
  92. package/dist/src/index.js +1 -0
  93. package/dist/src/lib/ai/config.d.ts +20 -0
  94. package/dist/src/lib/ai/config.js +31 -0
  95. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  96. package/dist/src/lib/ai/embedding-client.js +30 -0
  97. package/dist/src/lib/ai/index.d.ts +48 -0
  98. package/dist/src/lib/ai/index.js +29 -0
  99. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  100. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  101. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  102. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  103. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  104. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  105. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  106. package/dist/src/lib/ai/json-parse.js +34 -0
  107. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  108. package/dist/src/lib/ai/llm-client.js +36 -0
  109. package/dist/src/lib/ai/mock.d.ts +2 -0
  110. package/dist/src/lib/ai/mock.js +10 -0
  111. package/dist/src/lib/ai/types.d.ts +9 -0
  112. package/dist/src/lib/ai/types.js +1 -0
  113. package/dist/src/lib/auth.d.ts +36 -0
  114. package/dist/src/lib/auth.js +117 -0
  115. package/dist/src/lib/chunking.d.ts +19 -0
  116. package/dist/src/lib/chunking.js +47 -0
  117. package/dist/src/lib/constants.d.ts +13 -0
  118. package/dist/src/lib/constants.js +12 -0
  119. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  120. package/dist/src/lib/curated-kb-seed.js +155 -0
  121. package/dist/src/lib/email.d.ts +11 -0
  122. package/dist/src/lib/email.js +152 -0
  123. package/dist/src/lib/embeddings.d.ts +2 -0
  124. package/dist/src/lib/embeddings.js +1 -0
  125. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  126. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  127. package/dist/src/lib/env.d.ts +41 -0
  128. package/dist/src/lib/env.js +57 -0
  129. package/dist/src/lib/errors.d.ts +33 -0
  130. package/dist/src/lib/errors.js +78 -0
  131. package/dist/src/lib/file.d.ts +0 -0
  132. package/dist/src/lib/file.js +1 -0
  133. package/dist/src/lib/inference.d.ts +1 -0
  134. package/dist/src/lib/inference.js +1 -0
  135. package/dist/src/lib/kb-meta.d.ts +8 -0
  136. package/dist/src/lib/kb-meta.js +77 -0
  137. package/dist/src/lib/logger.d.ts +62 -0
  138. package/dist/src/lib/logger.js +364 -0
  139. package/dist/src/lib/pdf.d.ts +11 -0
  140. package/dist/src/lib/pdf.js +11 -0
  141. package/dist/src/lib/prisma.d.ts +3 -0
  142. package/dist/src/lib/prisma.js +15 -0
  143. package/dist/src/lib/pusher.d.ts +38 -0
  144. package/dist/src/lib/pusher.js +170 -0
  145. package/dist/src/lib/retry.d.ts +15 -0
  146. package/dist/src/lib/retry.js +37 -0
  147. package/dist/src/lib/storage.d.ts +11 -0
  148. package/dist/src/lib/storage.js +71 -0
  149. package/dist/src/lib/stripe.d.ts +10 -0
  150. package/dist/src/lib/stripe.js +36 -0
  151. package/dist/src/lib/validation.d.ts +51 -0
  152. package/dist/src/lib/validation.js +64 -0
  153. package/dist/src/lib/workspace-kb.d.ts +5 -0
  154. package/dist/src/lib/workspace-kb.js +7 -0
  155. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  156. package/dist/src/repositories/artifact.repository.js +40 -0
  157. package/dist/src/repositories/base.repository.d.ts +14 -0
  158. package/dist/src/repositories/base.repository.js +14 -0
  159. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  160. package/dist/src/repositories/invitation.repository.js +44 -0
  161. package/dist/src/repositories/notification.repository.d.ts +76 -0
  162. package/dist/src/repositories/notification.repository.js +44 -0
  163. package/dist/src/repositories/user.repository.d.ts +84 -0
  164. package/dist/src/repositories/user.repository.js +37 -0
  165. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  166. package/dist/src/repositories/workspace-member.repository.js +31 -0
  167. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  168. package/dist/src/repositories/workspace.repository.js +79 -0
  169. package/dist/src/routers/_app.d.ts +3464 -0
  170. package/dist/src/routers/_app.js +36 -0
  171. package/dist/src/routers/admin.d.ts +358 -0
  172. package/dist/src/routers/admin.js +105 -0
  173. package/dist/src/routers/annotations.d.ts +219 -0
  174. package/dist/src/routers/annotations.js +29 -0
  175. package/dist/src/routers/artifactVersions.d.ts +65 -0
  176. package/dist/src/routers/artifactVersions.js +14 -0
  177. package/dist/src/routers/auth.d.ts +161 -0
  178. package/dist/src/routers/auth.js +97 -0
  179. package/dist/src/routers/chat.d.ts +170 -0
  180. package/dist/src/routers/chat.js +32 -0
  181. package/dist/src/routers/copilot.d.ts +200 -0
  182. package/dist/src/routers/copilot.js +52 -0
  183. package/dist/src/routers/flashcards.d.ts +336 -0
  184. package/dist/src/routers/flashcards.js +93 -0
  185. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  186. package/dist/src/routers/knowledgeBase.js +118 -0
  187. package/dist/src/routers/members.d.ts +169 -0
  188. package/dist/src/routers/members.js +47 -0
  189. package/dist/src/routers/notifications.d.ts +99 -0
  190. package/dist/src/routers/notifications.js +25 -0
  191. package/dist/src/routers/payment.d.ts +80 -0
  192. package/dist/src/routers/payment.js +21 -0
  193. package/dist/src/routers/podcast.d.ts +287 -0
  194. package/dist/src/routers/podcast.js +34 -0
  195. package/dist/src/routers/studyguide.d.ts +36 -0
  196. package/dist/src/routers/studyguide.js +8 -0
  197. package/dist/src/routers/worksheets.d.ts +429 -0
  198. package/dist/src/routers/worksheets.js +139 -0
  199. package/dist/src/routers/workspace.d.ts +563 -0
  200. package/dist/src/routers/workspace.js +104 -0
  201. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  202. package/dist/src/scripts/purge-deleted-users.js +148 -0
  203. package/dist/src/server.d.ts +1 -0
  204. package/dist/src/server.js +190 -0
  205. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  206. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  207. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  208. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  209. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  210. package/dist/src/services/activity/activity-log.service.js +276 -0
  211. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  212. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  213. package/dist/src/services/admin/admin.service.d.ts +270 -0
  214. package/dist/src/services/admin/admin.service.js +476 -0
  215. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  216. package/dist/src/services/ai/ai-session.service.js +4 -0
  217. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  218. package/dist/src/services/artifacts/annotation.service.js +154 -0
  219. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  220. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  221. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  222. package/dist/src/services/artifacts/chat.service.js +182 -0
  223. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  224. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  225. package/dist/src/services/auth/auth.service.d.ts +94 -0
  226. package/dist/src/services/auth/auth.service.js +368 -0
  227. package/dist/src/services/base.service.d.ts +14 -0
  228. package/dist/src/services/base.service.js +14 -0
  229. package/dist/src/services/billing/payment.service.d.ts +44 -0
  230. package/dist/src/services/billing/payment.service.js +365 -0
  231. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  232. package/dist/src/services/billing/subscription.service.js +654 -0
  233. package/dist/src/services/billing/usage.service.d.ts +47 -0
  234. package/dist/src/services/billing/usage.service.js +149 -0
  235. package/dist/src/services/content/copilot.service.d.ts +113 -0
  236. package/dist/src/services/content/copilot.service.js +439 -0
  237. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  238. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  239. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  240. package/dist/src/services/content/flashcard.service.js +339 -0
  241. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  242. package/dist/src/services/content/media-analysis.service.js +404 -0
  243. package/dist/src/services/content/podcast.service.d.ts +267 -0
  244. package/dist/src/services/content/podcast.service.js +653 -0
  245. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  246. package/dist/src/services/content/worksheet-content.service.js +84 -0
  247. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  248. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  249. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  250. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  251. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  252. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  253. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  254. package/dist/src/services/content/worksheet.service.js +599 -0
  255. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  256. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  257. package/dist/src/services/members/invitation.service.d.ts +66 -0
  258. package/dist/src/services/members/invitation.service.js +348 -0
  259. package/dist/src/services/members/member.service.d.ts +36 -0
  260. package/dist/src/services/members/member.service.js +193 -0
  261. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  262. package/dist/src/services/notifications/notification.service.js +550 -0
  263. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  264. package/dist/src/services/notifications/notification.service.test.js +87 -0
  265. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  266. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  267. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  268. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  269. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  270. package/dist/src/services/workspace/workspace.service.js +401 -0
  271. package/dist/src/trpc.d.ts +60 -0
  272. package/dist/src/trpc.js +217 -0
  273. package/dist/src/types/index.d.ts +126 -0
  274. package/dist/src/types/index.js +1 -0
  275. package/package.json +8 -9
  276. package/prisma/schema.prisma +3 -4
  277. package/prisma/seed.mjs +5 -2
  278. package/prisma.config.ts +16 -0
  279. package/src/lib/prisma.ts +18 -9
  280. package/src/scripts/purge-deleted-users.ts +1 -3
  281. package/tsconfig.json +3 -0
@@ -0,0 +1,946 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model VerificationToken
5
+ *
6
+ */
7
+ export type VerificationTokenModel = runtime.Types.Result.DefaultSelection<Prisma.$VerificationTokenPayload>;
8
+ export type AggregateVerificationToken = {
9
+ _count: VerificationTokenCountAggregateOutputType | null;
10
+ _min: VerificationTokenMinAggregateOutputType | null;
11
+ _max: VerificationTokenMaxAggregateOutputType | null;
12
+ };
13
+ export type VerificationTokenMinAggregateOutputType = {
14
+ identifier: string | null;
15
+ token: string | null;
16
+ expires: Date | null;
17
+ };
18
+ export type VerificationTokenMaxAggregateOutputType = {
19
+ identifier: string | null;
20
+ token: string | null;
21
+ expires: Date | null;
22
+ };
23
+ export type VerificationTokenCountAggregateOutputType = {
24
+ identifier: number;
25
+ token: number;
26
+ expires: number;
27
+ _all: number;
28
+ };
29
+ export type VerificationTokenMinAggregateInputType = {
30
+ identifier?: true;
31
+ token?: true;
32
+ expires?: true;
33
+ };
34
+ export type VerificationTokenMaxAggregateInputType = {
35
+ identifier?: true;
36
+ token?: true;
37
+ expires?: true;
38
+ };
39
+ export type VerificationTokenCountAggregateInputType = {
40
+ identifier?: true;
41
+ token?: true;
42
+ expires?: true;
43
+ _all?: true;
44
+ };
45
+ export type VerificationTokenAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
46
+ /**
47
+ * Filter which VerificationToken to aggregate.
48
+ */
49
+ where?: Prisma.VerificationTokenWhereInput;
50
+ /**
51
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
52
+ *
53
+ * Determine the order of VerificationTokens to fetch.
54
+ */
55
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[];
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
58
+ *
59
+ * Sets the start position
60
+ */
61
+ cursor?: Prisma.VerificationTokenWhereUniqueInput;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
64
+ *
65
+ * Take `±n` VerificationTokens from the position of the cursor.
66
+ */
67
+ take?: number;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
70
+ *
71
+ * Skip the first `n` VerificationTokens.
72
+ */
73
+ skip?: number;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
76
+ *
77
+ * Count returned VerificationTokens
78
+ **/
79
+ _count?: true | VerificationTokenCountAggregateInputType;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Select which fields to find the minimum value
84
+ **/
85
+ _min?: VerificationTokenMinAggregateInputType;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88
+ *
89
+ * Select which fields to find the maximum value
90
+ **/
91
+ _max?: VerificationTokenMaxAggregateInputType;
92
+ };
93
+ export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
94
+ [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateVerificationToken[P]> : Prisma.GetScalarType<T[P], AggregateVerificationToken[P]>;
95
+ };
96
+ export type VerificationTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ where?: Prisma.VerificationTokenWhereInput;
98
+ orderBy?: Prisma.VerificationTokenOrderByWithAggregationInput | Prisma.VerificationTokenOrderByWithAggregationInput[];
99
+ by: Prisma.VerificationTokenScalarFieldEnum[] | Prisma.VerificationTokenScalarFieldEnum;
100
+ having?: Prisma.VerificationTokenScalarWhereWithAggregatesInput;
101
+ take?: number;
102
+ skip?: number;
103
+ _count?: VerificationTokenCountAggregateInputType | true;
104
+ _min?: VerificationTokenMinAggregateInputType;
105
+ _max?: VerificationTokenMaxAggregateInputType;
106
+ };
107
+ export type VerificationTokenGroupByOutputType = {
108
+ identifier: string;
109
+ token: string;
110
+ expires: Date;
111
+ _count: VerificationTokenCountAggregateOutputType | null;
112
+ _min: VerificationTokenMinAggregateOutputType | null;
113
+ _max: VerificationTokenMaxAggregateOutputType | null;
114
+ };
115
+ export type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<VerificationTokenGroupByOutputType, T['by']> & {
116
+ [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], VerificationTokenGroupByOutputType[P]> : Prisma.GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>;
117
+ }>>;
118
+ export type VerificationTokenWhereInput = {
119
+ AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[];
120
+ OR?: Prisma.VerificationTokenWhereInput[];
121
+ NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[];
122
+ identifier?: Prisma.StringFilter<"VerificationToken"> | string;
123
+ token?: Prisma.StringFilter<"VerificationToken"> | string;
124
+ expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string;
125
+ };
126
+ export type VerificationTokenOrderByWithRelationInput = {
127
+ identifier?: Prisma.SortOrder;
128
+ token?: Prisma.SortOrder;
129
+ expires?: Prisma.SortOrder;
130
+ };
131
+ export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
132
+ token?: string;
133
+ identifier_token?: Prisma.VerificationTokenIdentifierTokenCompoundUniqueInput;
134
+ AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[];
135
+ OR?: Prisma.VerificationTokenWhereInput[];
136
+ NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[];
137
+ identifier?: Prisma.StringFilter<"VerificationToken"> | string;
138
+ expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string;
139
+ }, "token" | "identifier_token">;
140
+ export type VerificationTokenOrderByWithAggregationInput = {
141
+ identifier?: Prisma.SortOrder;
142
+ token?: Prisma.SortOrder;
143
+ expires?: Prisma.SortOrder;
144
+ _count?: Prisma.VerificationTokenCountOrderByAggregateInput;
145
+ _max?: Prisma.VerificationTokenMaxOrderByAggregateInput;
146
+ _min?: Prisma.VerificationTokenMinOrderByAggregateInput;
147
+ };
148
+ export type VerificationTokenScalarWhereWithAggregatesInput = {
149
+ AND?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[];
150
+ OR?: Prisma.VerificationTokenScalarWhereWithAggregatesInput[];
151
+ NOT?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[];
152
+ identifier?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string;
153
+ token?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string;
154
+ expires?: Prisma.DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string;
155
+ };
156
+ export type VerificationTokenCreateInput = {
157
+ identifier: string;
158
+ token: string;
159
+ expires: Date | string;
160
+ };
161
+ export type VerificationTokenUncheckedCreateInput = {
162
+ identifier: string;
163
+ token: string;
164
+ expires: Date | string;
165
+ };
166
+ export type VerificationTokenUpdateInput = {
167
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string;
168
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
169
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
170
+ };
171
+ export type VerificationTokenUncheckedUpdateInput = {
172
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string;
173
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
174
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
175
+ };
176
+ export type VerificationTokenCreateManyInput = {
177
+ identifier: string;
178
+ token: string;
179
+ expires: Date | string;
180
+ };
181
+ export type VerificationTokenUpdateManyMutationInput = {
182
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string;
183
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
184
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
185
+ };
186
+ export type VerificationTokenUncheckedUpdateManyInput = {
187
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string;
188
+ token?: Prisma.StringFieldUpdateOperationsInput | string;
189
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
190
+ };
191
+ export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
192
+ identifier: string;
193
+ token: string;
194
+ };
195
+ export type VerificationTokenCountOrderByAggregateInput = {
196
+ identifier?: Prisma.SortOrder;
197
+ token?: Prisma.SortOrder;
198
+ expires?: Prisma.SortOrder;
199
+ };
200
+ export type VerificationTokenMaxOrderByAggregateInput = {
201
+ identifier?: Prisma.SortOrder;
202
+ token?: Prisma.SortOrder;
203
+ expires?: Prisma.SortOrder;
204
+ };
205
+ export type VerificationTokenMinOrderByAggregateInput = {
206
+ identifier?: Prisma.SortOrder;
207
+ token?: Prisma.SortOrder;
208
+ expires?: Prisma.SortOrder;
209
+ };
210
+ export type VerificationTokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
211
+ identifier?: boolean;
212
+ token?: boolean;
213
+ expires?: boolean;
214
+ }, ExtArgs["result"]["verificationToken"]>;
215
+ export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
216
+ identifier?: boolean;
217
+ token?: boolean;
218
+ expires?: boolean;
219
+ }, ExtArgs["result"]["verificationToken"]>;
220
+ export type VerificationTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
221
+ identifier?: boolean;
222
+ token?: boolean;
223
+ expires?: boolean;
224
+ }, ExtArgs["result"]["verificationToken"]>;
225
+ export type VerificationTokenSelectScalar = {
226
+ identifier?: boolean;
227
+ token?: boolean;
228
+ expires?: boolean;
229
+ };
230
+ export type VerificationTokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]>;
231
+ export type $VerificationTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
232
+ name: "VerificationToken";
233
+ objects: {};
234
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
235
+ identifier: string;
236
+ token: string;
237
+ expires: Date;
238
+ }, ExtArgs["result"]["verificationToken"]>;
239
+ composites: {};
240
+ };
241
+ export type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload, S>;
242
+ export type VerificationTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
243
+ select?: VerificationTokenCountAggregateInputType | true;
244
+ };
245
+ export interface VerificationTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
246
+ [K: symbol]: {
247
+ types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'];
248
+ meta: {
249
+ name: 'VerificationToken';
250
+ };
251
+ };
252
+ /**
253
+ * Find zero or one VerificationToken that matches the filter.
254
+ * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
255
+ * @example
256
+ * // Get one VerificationToken
257
+ * const verificationToken = await prisma.verificationToken.findUnique({
258
+ * where: {
259
+ * // ... provide filter here
260
+ * }
261
+ * })
262
+ */
263
+ findUnique<T extends VerificationTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
264
+ /**
265
+ * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
266
+ * if no matches were found.
267
+ * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
268
+ * @example
269
+ * // Get one VerificationToken
270
+ * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
271
+ * where: {
272
+ * // ... provide filter here
273
+ * }
274
+ * })
275
+ */
276
+ findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
277
+ /**
278
+ * Find the first VerificationToken that matches the filter.
279
+ * Note, that providing `undefined` is treated as the value not being there.
280
+ * Read more here: https://pris.ly/d/null-undefined
281
+ * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
282
+ * @example
283
+ * // Get one VerificationToken
284
+ * const verificationToken = await prisma.verificationToken.findFirst({
285
+ * where: {
286
+ * // ... provide filter here
287
+ * }
288
+ * })
289
+ */
290
+ findFirst<T extends VerificationTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
291
+ /**
292
+ * Find the first VerificationToken that matches the filter or
293
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
294
+ * Note, that providing `undefined` is treated as the value not being there.
295
+ * Read more here: https://pris.ly/d/null-undefined
296
+ * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
297
+ * @example
298
+ * // Get one VerificationToken
299
+ * const verificationToken = await prisma.verificationToken.findFirstOrThrow({
300
+ * where: {
301
+ * // ... provide filter here
302
+ * }
303
+ * })
304
+ */
305
+ findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
306
+ /**
307
+ * Find zero or more VerificationTokens that matches the filter.
308
+ * Note, that providing `undefined` is treated as the value not being there.
309
+ * Read more here: https://pris.ly/d/null-undefined
310
+ * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
311
+ * @example
312
+ * // Get all VerificationTokens
313
+ * const verificationTokens = await prisma.verificationToken.findMany()
314
+ *
315
+ * // Get first 10 VerificationTokens
316
+ * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
317
+ *
318
+ * // Only select the `identifier`
319
+ * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
320
+ *
321
+ */
322
+ findMany<T extends VerificationTokenFindManyArgs>(args?: Prisma.SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
323
+ /**
324
+ * Create a VerificationToken.
325
+ * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
326
+ * @example
327
+ * // Create one VerificationToken
328
+ * const VerificationToken = await prisma.verificationToken.create({
329
+ * data: {
330
+ * // ... data to create a VerificationToken
331
+ * }
332
+ * })
333
+ *
334
+ */
335
+ create<T extends VerificationTokenCreateArgs>(args: Prisma.SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
336
+ /**
337
+ * Create many VerificationTokens.
338
+ * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
339
+ * @example
340
+ * // Create many VerificationTokens
341
+ * const verificationToken = await prisma.verificationToken.createMany({
342
+ * data: [
343
+ * // ... provide data here
344
+ * ]
345
+ * })
346
+ *
347
+ */
348
+ createMany<T extends VerificationTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
349
+ /**
350
+ * Create many VerificationTokens and returns the data saved in the database.
351
+ * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
352
+ * @example
353
+ * // Create many VerificationTokens
354
+ * const verificationToken = await prisma.verificationToken.createManyAndReturn({
355
+ * data: [
356
+ * // ... provide data here
357
+ * ]
358
+ * })
359
+ *
360
+ * // Create many VerificationTokens and only return the `identifier`
361
+ * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
362
+ * select: { identifier: true },
363
+ * data: [
364
+ * // ... provide data here
365
+ * ]
366
+ * })
367
+ * Note, that providing `undefined` is treated as the value not being there.
368
+ * Read more here: https://pris.ly/d/null-undefined
369
+ *
370
+ */
371
+ createManyAndReturn<T extends VerificationTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
372
+ /**
373
+ * Delete a VerificationToken.
374
+ * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
375
+ * @example
376
+ * // Delete one VerificationToken
377
+ * const VerificationToken = await prisma.verificationToken.delete({
378
+ * where: {
379
+ * // ... filter to delete one VerificationToken
380
+ * }
381
+ * })
382
+ *
383
+ */
384
+ delete<T extends VerificationTokenDeleteArgs>(args: Prisma.SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
385
+ /**
386
+ * Update one VerificationToken.
387
+ * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
388
+ * @example
389
+ * // Update one VerificationToken
390
+ * const verificationToken = await prisma.verificationToken.update({
391
+ * where: {
392
+ * // ... provide filter here
393
+ * },
394
+ * data: {
395
+ * // ... provide data here
396
+ * }
397
+ * })
398
+ *
399
+ */
400
+ update<T extends VerificationTokenUpdateArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
401
+ /**
402
+ * Delete zero or more VerificationTokens.
403
+ * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
404
+ * @example
405
+ * // Delete a few VerificationTokens
406
+ * const { count } = await prisma.verificationToken.deleteMany({
407
+ * where: {
408
+ * // ... provide filter here
409
+ * }
410
+ * })
411
+ *
412
+ */
413
+ deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
414
+ /**
415
+ * Update zero or more VerificationTokens.
416
+ * Note, that providing `undefined` is treated as the value not being there.
417
+ * Read more here: https://pris.ly/d/null-undefined
418
+ * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
419
+ * @example
420
+ * // Update many VerificationTokens
421
+ * const verificationToken = await prisma.verificationToken.updateMany({
422
+ * where: {
423
+ * // ... provide filter here
424
+ * },
425
+ * data: {
426
+ * // ... provide data here
427
+ * }
428
+ * })
429
+ *
430
+ */
431
+ updateMany<T extends VerificationTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
432
+ /**
433
+ * Update zero or more VerificationTokens and returns the data updated in the database.
434
+ * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens.
435
+ * @example
436
+ * // Update many VerificationTokens
437
+ * const verificationToken = await prisma.verificationToken.updateManyAndReturn({
438
+ * where: {
439
+ * // ... provide filter here
440
+ * },
441
+ * data: [
442
+ * // ... provide data here
443
+ * ]
444
+ * })
445
+ *
446
+ * // Update zero or more VerificationTokens and only return the `identifier`
447
+ * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({
448
+ * select: { identifier: true },
449
+ * where: {
450
+ * // ... provide filter here
451
+ * },
452
+ * data: [
453
+ * // ... provide data here
454
+ * ]
455
+ * })
456
+ * Note, that providing `undefined` is treated as the value not being there.
457
+ * Read more here: https://pris.ly/d/null-undefined
458
+ *
459
+ */
460
+ updateManyAndReturn<T extends VerificationTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
461
+ /**
462
+ * Create or update one VerificationToken.
463
+ * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
464
+ * @example
465
+ * // Update or create a VerificationToken
466
+ * const verificationToken = await prisma.verificationToken.upsert({
467
+ * create: {
468
+ * // ... data to create a VerificationToken
469
+ * },
470
+ * update: {
471
+ * // ... in case it already exists, update
472
+ * },
473
+ * where: {
474
+ * // ... the filter for the VerificationToken we want to update
475
+ * }
476
+ * })
477
+ */
478
+ upsert<T extends VerificationTokenUpsertArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
479
+ /**
480
+ * Count the number of VerificationTokens.
481
+ * Note, that providing `undefined` is treated as the value not being there.
482
+ * Read more here: https://pris.ly/d/null-undefined
483
+ * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
484
+ * @example
485
+ * // Count the number of VerificationTokens
486
+ * const count = await prisma.verificationToken.count({
487
+ * where: {
488
+ * // ... the filter for the VerificationTokens we want to count
489
+ * }
490
+ * })
491
+ **/
492
+ count<T extends VerificationTokenCountArgs>(args?: Prisma.Subset<T, VerificationTokenCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], VerificationTokenCountAggregateOutputType> : number>;
493
+ /**
494
+ * Allows you to perform aggregations operations on a VerificationToken.
495
+ * Note, that providing `undefined` is treated as the value not being there.
496
+ * Read more here: https://pris.ly/d/null-undefined
497
+ * @param {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
498
+ * @example
499
+ * // Ordered by age ascending
500
+ * // Where email contains prisma.io
501
+ * // Limited to the 10 users
502
+ * const aggregations = await prisma.user.aggregate({
503
+ * _avg: {
504
+ * age: true,
505
+ * },
506
+ * where: {
507
+ * email: {
508
+ * contains: "prisma.io",
509
+ * },
510
+ * },
511
+ * orderBy: {
512
+ * age: "asc",
513
+ * },
514
+ * take: 10,
515
+ * })
516
+ **/
517
+ aggregate<T extends VerificationTokenAggregateArgs>(args: Prisma.Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>;
518
+ /**
519
+ * Group by VerificationToken.
520
+ * Note, that providing `undefined` is treated as the value not being there.
521
+ * Read more here: https://pris.ly/d/null-undefined
522
+ * @param {VerificationTokenGroupByArgs} args - Group by arguments.
523
+ * @example
524
+ * // Group by city, order by createdAt, get count
525
+ * const result = await prisma.user.groupBy({
526
+ * by: ['city', 'createdAt'],
527
+ * orderBy: {
528
+ * createdAt: true
529
+ * },
530
+ * _count: {
531
+ * _all: true
532
+ * },
533
+ * })
534
+ *
535
+ **/
536
+ groupBy<T extends VerificationTokenGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
537
+ orderBy: VerificationTokenGroupByArgs['orderBy'];
538
+ } : {
539
+ orderBy?: VerificationTokenGroupByArgs['orderBy'];
540
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
541
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
542
+ Error,
543
+ 'Field ',
544
+ P,
545
+ ` in "having" needs to be provided in "by"`
546
+ ];
547
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
548
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
549
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
550
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
551
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
552
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
553
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
554
+ /**
555
+ * Fields of the VerificationToken model
556
+ */
557
+ readonly fields: VerificationTokenFieldRefs;
558
+ }
559
+ /**
560
+ * The delegate class that acts as a "Promise-like" for VerificationToken.
561
+ * Why is this prefixed with `Prisma__`?
562
+ * Because we want to prevent naming conflicts as mentioned in
563
+ * https://github.com/prisma/prisma-client-js/issues/707
564
+ */
565
+ export interface Prisma__VerificationTokenClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
566
+ readonly [Symbol.toStringTag]: "PrismaPromise";
567
+ /**
568
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
569
+ * @param onfulfilled The callback to execute when the Promise is resolved.
570
+ * @param onrejected The callback to execute when the Promise is rejected.
571
+ * @returns A Promise for the completion of which ever callback is executed.
572
+ */
573
+ 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>;
574
+ /**
575
+ * Attaches a callback for only the rejection of the Promise.
576
+ * @param onrejected The callback to execute when the Promise is rejected.
577
+ * @returns A Promise for the completion of the callback.
578
+ */
579
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
580
+ /**
581
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
582
+ * resolved value cannot be modified from the callback.
583
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
584
+ * @returns A Promise for the completion of the callback.
585
+ */
586
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
587
+ }
588
+ /**
589
+ * Fields of the VerificationToken model
590
+ */
591
+ export interface VerificationTokenFieldRefs {
592
+ readonly identifier: Prisma.FieldRef<"VerificationToken", 'String'>;
593
+ readonly token: Prisma.FieldRef<"VerificationToken", 'String'>;
594
+ readonly expires: Prisma.FieldRef<"VerificationToken", 'DateTime'>;
595
+ }
596
+ /**
597
+ * VerificationToken findUnique
598
+ */
599
+ export type VerificationTokenFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
600
+ /**
601
+ * Select specific fields to fetch from the VerificationToken
602
+ */
603
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
604
+ /**
605
+ * Omit specific fields from the VerificationToken
606
+ */
607
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
608
+ /**
609
+ * Filter, which VerificationToken to fetch.
610
+ */
611
+ where: Prisma.VerificationTokenWhereUniqueInput;
612
+ };
613
+ /**
614
+ * VerificationToken findUniqueOrThrow
615
+ */
616
+ export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
617
+ /**
618
+ * Select specific fields to fetch from the VerificationToken
619
+ */
620
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
621
+ /**
622
+ * Omit specific fields from the VerificationToken
623
+ */
624
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
625
+ /**
626
+ * Filter, which VerificationToken to fetch.
627
+ */
628
+ where: Prisma.VerificationTokenWhereUniqueInput;
629
+ };
630
+ /**
631
+ * VerificationToken findFirst
632
+ */
633
+ export type VerificationTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
634
+ /**
635
+ * Select specific fields to fetch from the VerificationToken
636
+ */
637
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
638
+ /**
639
+ * Omit specific fields from the VerificationToken
640
+ */
641
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
642
+ /**
643
+ * Filter, which VerificationToken to fetch.
644
+ */
645
+ where?: Prisma.VerificationTokenWhereInput;
646
+ /**
647
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
648
+ *
649
+ * Determine the order of VerificationTokens to fetch.
650
+ */
651
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[];
652
+ /**
653
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
654
+ *
655
+ * Sets the position for searching for VerificationTokens.
656
+ */
657
+ cursor?: Prisma.VerificationTokenWhereUniqueInput;
658
+ /**
659
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
660
+ *
661
+ * Take `±n` VerificationTokens from the position of the cursor.
662
+ */
663
+ take?: number;
664
+ /**
665
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
666
+ *
667
+ * Skip the first `n` VerificationTokens.
668
+ */
669
+ skip?: number;
670
+ /**
671
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
672
+ *
673
+ * Filter by unique combinations of VerificationTokens.
674
+ */
675
+ distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[];
676
+ };
677
+ /**
678
+ * VerificationToken findFirstOrThrow
679
+ */
680
+ export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
681
+ /**
682
+ * Select specific fields to fetch from the VerificationToken
683
+ */
684
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
685
+ /**
686
+ * Omit specific fields from the VerificationToken
687
+ */
688
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
689
+ /**
690
+ * Filter, which VerificationToken to fetch.
691
+ */
692
+ where?: Prisma.VerificationTokenWhereInput;
693
+ /**
694
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
695
+ *
696
+ * Determine the order of VerificationTokens to fetch.
697
+ */
698
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[];
699
+ /**
700
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
701
+ *
702
+ * Sets the position for searching for VerificationTokens.
703
+ */
704
+ cursor?: Prisma.VerificationTokenWhereUniqueInput;
705
+ /**
706
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
707
+ *
708
+ * Take `±n` VerificationTokens from the position of the cursor.
709
+ */
710
+ take?: number;
711
+ /**
712
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
713
+ *
714
+ * Skip the first `n` VerificationTokens.
715
+ */
716
+ skip?: number;
717
+ /**
718
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
719
+ *
720
+ * Filter by unique combinations of VerificationTokens.
721
+ */
722
+ distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[];
723
+ };
724
+ /**
725
+ * VerificationToken findMany
726
+ */
727
+ export type VerificationTokenFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
728
+ /**
729
+ * Select specific fields to fetch from the VerificationToken
730
+ */
731
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
732
+ /**
733
+ * Omit specific fields from the VerificationToken
734
+ */
735
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
736
+ /**
737
+ * Filter, which VerificationTokens to fetch.
738
+ */
739
+ where?: Prisma.VerificationTokenWhereInput;
740
+ /**
741
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
742
+ *
743
+ * Determine the order of VerificationTokens to fetch.
744
+ */
745
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[];
746
+ /**
747
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
748
+ *
749
+ * Sets the position for listing VerificationTokens.
750
+ */
751
+ cursor?: Prisma.VerificationTokenWhereUniqueInput;
752
+ /**
753
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
754
+ *
755
+ * Take `±n` VerificationTokens from the position of the cursor.
756
+ */
757
+ take?: number;
758
+ /**
759
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
760
+ *
761
+ * Skip the first `n` VerificationTokens.
762
+ */
763
+ skip?: number;
764
+ /**
765
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
766
+ *
767
+ * Filter by unique combinations of VerificationTokens.
768
+ */
769
+ distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[];
770
+ };
771
+ /**
772
+ * VerificationToken create
773
+ */
774
+ export type VerificationTokenCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
775
+ /**
776
+ * Select specific fields to fetch from the VerificationToken
777
+ */
778
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
779
+ /**
780
+ * Omit specific fields from the VerificationToken
781
+ */
782
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
783
+ /**
784
+ * The data needed to create a VerificationToken.
785
+ */
786
+ data: Prisma.XOR<Prisma.VerificationTokenCreateInput, Prisma.VerificationTokenUncheckedCreateInput>;
787
+ };
788
+ /**
789
+ * VerificationToken createMany
790
+ */
791
+ export type VerificationTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
792
+ /**
793
+ * The data used to create many VerificationTokens.
794
+ */
795
+ data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[];
796
+ skipDuplicates?: boolean;
797
+ };
798
+ /**
799
+ * VerificationToken createManyAndReturn
800
+ */
801
+ export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
802
+ /**
803
+ * Select specific fields to fetch from the VerificationToken
804
+ */
805
+ select?: Prisma.VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null;
806
+ /**
807
+ * Omit specific fields from the VerificationToken
808
+ */
809
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
810
+ /**
811
+ * The data used to create many VerificationTokens.
812
+ */
813
+ data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[];
814
+ skipDuplicates?: boolean;
815
+ };
816
+ /**
817
+ * VerificationToken update
818
+ */
819
+ export type VerificationTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
820
+ /**
821
+ * Select specific fields to fetch from the VerificationToken
822
+ */
823
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
824
+ /**
825
+ * Omit specific fields from the VerificationToken
826
+ */
827
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
828
+ /**
829
+ * The data needed to update a VerificationToken.
830
+ */
831
+ data: Prisma.XOR<Prisma.VerificationTokenUpdateInput, Prisma.VerificationTokenUncheckedUpdateInput>;
832
+ /**
833
+ * Choose, which VerificationToken to update.
834
+ */
835
+ where: Prisma.VerificationTokenWhereUniqueInput;
836
+ };
837
+ /**
838
+ * VerificationToken updateMany
839
+ */
840
+ export type VerificationTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
841
+ /**
842
+ * The data used to update VerificationTokens.
843
+ */
844
+ data: Prisma.XOR<Prisma.VerificationTokenUpdateManyMutationInput, Prisma.VerificationTokenUncheckedUpdateManyInput>;
845
+ /**
846
+ * Filter which VerificationTokens to update
847
+ */
848
+ where?: Prisma.VerificationTokenWhereInput;
849
+ /**
850
+ * Limit how many VerificationTokens to update.
851
+ */
852
+ limit?: number;
853
+ };
854
+ /**
855
+ * VerificationToken updateManyAndReturn
856
+ */
857
+ export type VerificationTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
858
+ /**
859
+ * Select specific fields to fetch from the VerificationToken
860
+ */
861
+ select?: Prisma.VerificationTokenSelectUpdateManyAndReturn<ExtArgs> | null;
862
+ /**
863
+ * Omit specific fields from the VerificationToken
864
+ */
865
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
866
+ /**
867
+ * The data used to update VerificationTokens.
868
+ */
869
+ data: Prisma.XOR<Prisma.VerificationTokenUpdateManyMutationInput, Prisma.VerificationTokenUncheckedUpdateManyInput>;
870
+ /**
871
+ * Filter which VerificationTokens to update
872
+ */
873
+ where?: Prisma.VerificationTokenWhereInput;
874
+ /**
875
+ * Limit how many VerificationTokens to update.
876
+ */
877
+ limit?: number;
878
+ };
879
+ /**
880
+ * VerificationToken upsert
881
+ */
882
+ export type VerificationTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
883
+ /**
884
+ * Select specific fields to fetch from the VerificationToken
885
+ */
886
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
887
+ /**
888
+ * Omit specific fields from the VerificationToken
889
+ */
890
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
891
+ /**
892
+ * The filter to search for the VerificationToken to update in case it exists.
893
+ */
894
+ where: Prisma.VerificationTokenWhereUniqueInput;
895
+ /**
896
+ * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
897
+ */
898
+ create: Prisma.XOR<Prisma.VerificationTokenCreateInput, Prisma.VerificationTokenUncheckedCreateInput>;
899
+ /**
900
+ * In case the VerificationToken was found with the provided `where` argument, update it with this data.
901
+ */
902
+ update: Prisma.XOR<Prisma.VerificationTokenUpdateInput, Prisma.VerificationTokenUncheckedUpdateInput>;
903
+ };
904
+ /**
905
+ * VerificationToken delete
906
+ */
907
+ export type VerificationTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
908
+ /**
909
+ * Select specific fields to fetch from the VerificationToken
910
+ */
911
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
912
+ /**
913
+ * Omit specific fields from the VerificationToken
914
+ */
915
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
916
+ /**
917
+ * Filter which VerificationToken to delete.
918
+ */
919
+ where: Prisma.VerificationTokenWhereUniqueInput;
920
+ };
921
+ /**
922
+ * VerificationToken deleteMany
923
+ */
924
+ export type VerificationTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
925
+ /**
926
+ * Filter which VerificationTokens to delete
927
+ */
928
+ where?: Prisma.VerificationTokenWhereInput;
929
+ /**
930
+ * Limit how many VerificationTokens to delete.
931
+ */
932
+ limit?: number;
933
+ };
934
+ /**
935
+ * VerificationToken without action
936
+ */
937
+ export type VerificationTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
938
+ /**
939
+ * Select specific fields to fetch from the VerificationToken
940
+ */
941
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null;
942
+ /**
943
+ * Omit specific fields from the VerificationToken
944
+ */
945
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null;
946
+ };