@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,1105 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model Session
5
+ *
6
+ */
7
+ export type SessionModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionPayload>;
8
+ export type AggregateSession = {
9
+ _count: SessionCountAggregateOutputType | null;
10
+ _min: SessionMinAggregateOutputType | null;
11
+ _max: SessionMaxAggregateOutputType | null;
12
+ };
13
+ export type SessionMinAggregateOutputType = {
14
+ id: string | null;
15
+ userId: string | null;
16
+ expires: Date | null;
17
+ };
18
+ export type SessionMaxAggregateOutputType = {
19
+ id: string | null;
20
+ userId: string | null;
21
+ expires: Date | null;
22
+ };
23
+ export type SessionCountAggregateOutputType = {
24
+ id: number;
25
+ userId: number;
26
+ expires: number;
27
+ _all: number;
28
+ };
29
+ export type SessionMinAggregateInputType = {
30
+ id?: true;
31
+ userId?: true;
32
+ expires?: true;
33
+ };
34
+ export type SessionMaxAggregateInputType = {
35
+ id?: true;
36
+ userId?: true;
37
+ expires?: true;
38
+ };
39
+ export type SessionCountAggregateInputType = {
40
+ id?: true;
41
+ userId?: true;
42
+ expires?: true;
43
+ _all?: true;
44
+ };
45
+ export type SessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
46
+ /**
47
+ * Filter which Session to aggregate.
48
+ */
49
+ where?: Prisma.SessionWhereInput;
50
+ /**
51
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
52
+ *
53
+ * Determine the order of Sessions to fetch.
54
+ */
55
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
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.SessionWhereUniqueInput;
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
64
+ *
65
+ * Take `±n` Sessions 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` Sessions.
72
+ */
73
+ skip?: number;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
76
+ *
77
+ * Count returned Sessions
78
+ **/
79
+ _count?: true | SessionCountAggregateInputType;
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?: SessionMinAggregateInputType;
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?: SessionMaxAggregateInputType;
92
+ };
93
+ export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
94
+ [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSession[P]> : Prisma.GetScalarType<T[P], AggregateSession[P]>;
95
+ };
96
+ export type SessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ where?: Prisma.SessionWhereInput;
98
+ orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[];
99
+ by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum;
100
+ having?: Prisma.SessionScalarWhereWithAggregatesInput;
101
+ take?: number;
102
+ skip?: number;
103
+ _count?: SessionCountAggregateInputType | true;
104
+ _min?: SessionMinAggregateInputType;
105
+ _max?: SessionMaxAggregateInputType;
106
+ };
107
+ export type SessionGroupByOutputType = {
108
+ id: string;
109
+ userId: string;
110
+ expires: Date;
111
+ _count: SessionCountAggregateOutputType | null;
112
+ _min: SessionMinAggregateOutputType | null;
113
+ _max: SessionMaxAggregateOutputType | null;
114
+ };
115
+ export type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SessionGroupByOutputType, T['by']> & {
116
+ [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>;
117
+ }>>;
118
+ export type SessionWhereInput = {
119
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
120
+ OR?: Prisma.SessionWhereInput[];
121
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
122
+ id?: Prisma.StringFilter<"Session"> | string;
123
+ userId?: Prisma.StringFilter<"Session"> | string;
124
+ expires?: Prisma.DateTimeFilter<"Session"> | Date | string;
125
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
126
+ };
127
+ export type SessionOrderByWithRelationInput = {
128
+ id?: Prisma.SortOrder;
129
+ userId?: Prisma.SortOrder;
130
+ expires?: Prisma.SortOrder;
131
+ user?: Prisma.UserOrderByWithRelationInput;
132
+ };
133
+ export type SessionWhereUniqueInput = Prisma.AtLeast<{
134
+ id?: string;
135
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
136
+ OR?: Prisma.SessionWhereInput[];
137
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[];
138
+ userId?: Prisma.StringFilter<"Session"> | string;
139
+ expires?: Prisma.DateTimeFilter<"Session"> | Date | string;
140
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
141
+ }, "id">;
142
+ export type SessionOrderByWithAggregationInput = {
143
+ id?: Prisma.SortOrder;
144
+ userId?: Prisma.SortOrder;
145
+ expires?: Prisma.SortOrder;
146
+ _count?: Prisma.SessionCountOrderByAggregateInput;
147
+ _max?: Prisma.SessionMaxOrderByAggregateInput;
148
+ _min?: Prisma.SessionMinOrderByAggregateInput;
149
+ };
150
+ export type SessionScalarWhereWithAggregatesInput = {
151
+ AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
152
+ OR?: Prisma.SessionScalarWhereWithAggregatesInput[];
153
+ NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[];
154
+ id?: Prisma.StringWithAggregatesFilter<"Session"> | string;
155
+ userId?: Prisma.StringWithAggregatesFilter<"Session"> | string;
156
+ expires?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string;
157
+ };
158
+ export type SessionCreateInput = {
159
+ id?: string;
160
+ expires: Date | string;
161
+ user: Prisma.UserCreateNestedOneWithoutSessionInput;
162
+ };
163
+ export type SessionUncheckedCreateInput = {
164
+ id?: string;
165
+ userId: string;
166
+ expires: Date | string;
167
+ };
168
+ export type SessionUpdateInput = {
169
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
170
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
171
+ user?: Prisma.UserUpdateOneRequiredWithoutSessionNestedInput;
172
+ };
173
+ export type SessionUncheckedUpdateInput = {
174
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
175
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
176
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
177
+ };
178
+ export type SessionCreateManyInput = {
179
+ id?: string;
180
+ userId: string;
181
+ expires: Date | string;
182
+ };
183
+ export type SessionUpdateManyMutationInput = {
184
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
185
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
186
+ };
187
+ export type SessionUncheckedUpdateManyInput = {
188
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
189
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
190
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
191
+ };
192
+ export type SessionListRelationFilter = {
193
+ every?: Prisma.SessionWhereInput;
194
+ some?: Prisma.SessionWhereInput;
195
+ none?: Prisma.SessionWhereInput;
196
+ };
197
+ export type SessionOrderByRelationAggregateInput = {
198
+ _count?: Prisma.SortOrder;
199
+ };
200
+ export type SessionCountOrderByAggregateInput = {
201
+ id?: Prisma.SortOrder;
202
+ userId?: Prisma.SortOrder;
203
+ expires?: Prisma.SortOrder;
204
+ };
205
+ export type SessionMaxOrderByAggregateInput = {
206
+ id?: Prisma.SortOrder;
207
+ userId?: Prisma.SortOrder;
208
+ expires?: Prisma.SortOrder;
209
+ };
210
+ export type SessionMinOrderByAggregateInput = {
211
+ id?: Prisma.SortOrder;
212
+ userId?: Prisma.SortOrder;
213
+ expires?: Prisma.SortOrder;
214
+ };
215
+ export type SessionCreateNestedManyWithoutUserInput = {
216
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
217
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
218
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
219
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
220
+ };
221
+ export type SessionUncheckedCreateNestedManyWithoutUserInput = {
222
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
223
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
224
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
225
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
226
+ };
227
+ export type SessionUpdateManyWithoutUserNestedInput = {
228
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
229
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
230
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
231
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
232
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
233
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
234
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
235
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
236
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
237
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
238
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
239
+ };
240
+ export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
241
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[];
242
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[];
243
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[];
244
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope;
245
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
246
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
247
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
248
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[];
249
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[];
250
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[];
251
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
252
+ };
253
+ export type SessionCreateWithoutUserInput = {
254
+ id?: string;
255
+ expires: Date | string;
256
+ };
257
+ export type SessionUncheckedCreateWithoutUserInput = {
258
+ id?: string;
259
+ expires: Date | string;
260
+ };
261
+ export type SessionCreateOrConnectWithoutUserInput = {
262
+ where: Prisma.SessionWhereUniqueInput;
263
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
264
+ };
265
+ export type SessionCreateManyUserInputEnvelope = {
266
+ data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[];
267
+ skipDuplicates?: boolean;
268
+ };
269
+ export type SessionUpsertWithWhereUniqueWithoutUserInput = {
270
+ where: Prisma.SessionWhereUniqueInput;
271
+ update: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
272
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>;
273
+ };
274
+ export type SessionUpdateWithWhereUniqueWithoutUserInput = {
275
+ where: Prisma.SessionWhereUniqueInput;
276
+ data: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>;
277
+ };
278
+ export type SessionUpdateManyWithWhereWithoutUserInput = {
279
+ where: Prisma.SessionScalarWhereInput;
280
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyWithoutUserInput>;
281
+ };
282
+ export type SessionScalarWhereInput = {
283
+ AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
284
+ OR?: Prisma.SessionScalarWhereInput[];
285
+ NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[];
286
+ id?: Prisma.StringFilter<"Session"> | string;
287
+ userId?: Prisma.StringFilter<"Session"> | string;
288
+ expires?: Prisma.DateTimeFilter<"Session"> | Date | string;
289
+ };
290
+ export type SessionCreateManyUserInput = {
291
+ id?: string;
292
+ expires: Date | string;
293
+ };
294
+ export type SessionUpdateWithoutUserInput = {
295
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
297
+ };
298
+ export type SessionUncheckedUpdateWithoutUserInput = {
299
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
301
+ };
302
+ export type SessionUncheckedUpdateManyWithoutUserInput = {
303
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
304
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ };
306
+ export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
307
+ id?: boolean;
308
+ userId?: boolean;
309
+ expires?: boolean;
310
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
311
+ }, ExtArgs["result"]["session"]>;
312
+ export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
313
+ id?: boolean;
314
+ userId?: boolean;
315
+ expires?: boolean;
316
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
317
+ }, ExtArgs["result"]["session"]>;
318
+ export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
319
+ id?: boolean;
320
+ userId?: boolean;
321
+ expires?: boolean;
322
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
323
+ }, ExtArgs["result"]["session"]>;
324
+ export type SessionSelectScalar = {
325
+ id?: boolean;
326
+ userId?: boolean;
327
+ expires?: boolean;
328
+ };
329
+ export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "expires", ExtArgs["result"]["session"]>;
330
+ export type SessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
331
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
332
+ };
333
+ export type SessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
334
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
335
+ };
336
+ export type SessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
337
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
338
+ };
339
+ export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
340
+ name: "Session";
341
+ objects: {
342
+ user: Prisma.$UserPayload<ExtArgs>;
343
+ };
344
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
345
+ id: string;
346
+ userId: string;
347
+ expires: Date;
348
+ }, ExtArgs["result"]["session"]>;
349
+ composites: {};
350
+ };
351
+ export type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionPayload, S>;
352
+ export type SessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
353
+ select?: SessionCountAggregateInputType | true;
354
+ };
355
+ export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
356
+ [K: symbol]: {
357
+ types: Prisma.TypeMap<ExtArgs>['model']['Session'];
358
+ meta: {
359
+ name: 'Session';
360
+ };
361
+ };
362
+ /**
363
+ * Find zero or one Session that matches the filter.
364
+ * @param {SessionFindUniqueArgs} args - Arguments to find a Session
365
+ * @example
366
+ * // Get one Session
367
+ * const session = await prisma.session.findUnique({
368
+ * where: {
369
+ * // ... provide filter here
370
+ * }
371
+ * })
372
+ */
373
+ findUnique<T extends SessionFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
374
+ /**
375
+ * Find one Session that matches the filter or throw an error with `error.code='P2025'`
376
+ * if no matches were found.
377
+ * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
378
+ * @example
379
+ * // Get one Session
380
+ * const session = await prisma.session.findUniqueOrThrow({
381
+ * where: {
382
+ * // ... provide filter here
383
+ * }
384
+ * })
385
+ */
386
+ findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
387
+ /**
388
+ * Find the first Session that matches the filter.
389
+ * Note, that providing `undefined` is treated as the value not being there.
390
+ * Read more here: https://pris.ly/d/null-undefined
391
+ * @param {SessionFindFirstArgs} args - Arguments to find a Session
392
+ * @example
393
+ * // Get one Session
394
+ * const session = await prisma.session.findFirst({
395
+ * where: {
396
+ * // ... provide filter here
397
+ * }
398
+ * })
399
+ */
400
+ findFirst<T extends SessionFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
401
+ /**
402
+ * Find the first Session that matches the filter or
403
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
404
+ * Note, that providing `undefined` is treated as the value not being there.
405
+ * Read more here: https://pris.ly/d/null-undefined
406
+ * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
407
+ * @example
408
+ * // Get one Session
409
+ * const session = await prisma.session.findFirstOrThrow({
410
+ * where: {
411
+ * // ... provide filter here
412
+ * }
413
+ * })
414
+ */
415
+ findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
416
+ /**
417
+ * Find zero or more Sessions that matches the filter.
418
+ * Note, that providing `undefined` is treated as the value not being there.
419
+ * Read more here: https://pris.ly/d/null-undefined
420
+ * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
421
+ * @example
422
+ * // Get all Sessions
423
+ * const sessions = await prisma.session.findMany()
424
+ *
425
+ * // Get first 10 Sessions
426
+ * const sessions = await prisma.session.findMany({ take: 10 })
427
+ *
428
+ * // Only select the `id`
429
+ * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
430
+ *
431
+ */
432
+ findMany<T extends SessionFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
433
+ /**
434
+ * Create a Session.
435
+ * @param {SessionCreateArgs} args - Arguments to create a Session.
436
+ * @example
437
+ * // Create one Session
438
+ * const Session = await prisma.session.create({
439
+ * data: {
440
+ * // ... data to create a Session
441
+ * }
442
+ * })
443
+ *
444
+ */
445
+ create<T extends SessionCreateArgs>(args: Prisma.SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
446
+ /**
447
+ * Create many Sessions.
448
+ * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
449
+ * @example
450
+ * // Create many Sessions
451
+ * const session = await prisma.session.createMany({
452
+ * data: [
453
+ * // ... provide data here
454
+ * ]
455
+ * })
456
+ *
457
+ */
458
+ createMany<T extends SessionCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
459
+ /**
460
+ * Create many Sessions and returns the data saved in the database.
461
+ * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
462
+ * @example
463
+ * // Create many Sessions
464
+ * const session = await prisma.session.createManyAndReturn({
465
+ * data: [
466
+ * // ... provide data here
467
+ * ]
468
+ * })
469
+ *
470
+ * // Create many Sessions and only return the `id`
471
+ * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
472
+ * select: { id: true },
473
+ * data: [
474
+ * // ... provide data here
475
+ * ]
476
+ * })
477
+ * Note, that providing `undefined` is treated as the value not being there.
478
+ * Read more here: https://pris.ly/d/null-undefined
479
+ *
480
+ */
481
+ createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
482
+ /**
483
+ * Delete a Session.
484
+ * @param {SessionDeleteArgs} args - Arguments to delete one Session.
485
+ * @example
486
+ * // Delete one Session
487
+ * const Session = await prisma.session.delete({
488
+ * where: {
489
+ * // ... filter to delete one Session
490
+ * }
491
+ * })
492
+ *
493
+ */
494
+ delete<T extends SessionDeleteArgs>(args: Prisma.SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
495
+ /**
496
+ * Update one Session.
497
+ * @param {SessionUpdateArgs} args - Arguments to update one Session.
498
+ * @example
499
+ * // Update one Session
500
+ * const session = await prisma.session.update({
501
+ * where: {
502
+ * // ... provide filter here
503
+ * },
504
+ * data: {
505
+ * // ... provide data here
506
+ * }
507
+ * })
508
+ *
509
+ */
510
+ update<T extends SessionUpdateArgs>(args: Prisma.SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
511
+ /**
512
+ * Delete zero or more Sessions.
513
+ * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
514
+ * @example
515
+ * // Delete a few Sessions
516
+ * const { count } = await prisma.session.deleteMany({
517
+ * where: {
518
+ * // ... provide filter here
519
+ * }
520
+ * })
521
+ *
522
+ */
523
+ deleteMany<T extends SessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
524
+ /**
525
+ * Update zero or more Sessions.
526
+ * Note, that providing `undefined` is treated as the value not being there.
527
+ * Read more here: https://pris.ly/d/null-undefined
528
+ * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
529
+ * @example
530
+ * // Update many Sessions
531
+ * const session = await prisma.session.updateMany({
532
+ * where: {
533
+ * // ... provide filter here
534
+ * },
535
+ * data: {
536
+ * // ... provide data here
537
+ * }
538
+ * })
539
+ *
540
+ */
541
+ updateMany<T extends SessionUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
542
+ /**
543
+ * Update zero or more Sessions and returns the data updated in the database.
544
+ * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
545
+ * @example
546
+ * // Update many Sessions
547
+ * const session = await prisma.session.updateManyAndReturn({
548
+ * where: {
549
+ * // ... provide filter here
550
+ * },
551
+ * data: [
552
+ * // ... provide data here
553
+ * ]
554
+ * })
555
+ *
556
+ * // Update zero or more Sessions and only return the `id`
557
+ * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
558
+ * select: { id: true },
559
+ * where: {
560
+ * // ... provide filter here
561
+ * },
562
+ * data: [
563
+ * // ... provide data here
564
+ * ]
565
+ * })
566
+ * Note, that providing `undefined` is treated as the value not being there.
567
+ * Read more here: https://pris.ly/d/null-undefined
568
+ *
569
+ */
570
+ updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
571
+ /**
572
+ * Create or update one Session.
573
+ * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
574
+ * @example
575
+ * // Update or create a Session
576
+ * const session = await prisma.session.upsert({
577
+ * create: {
578
+ * // ... data to create a Session
579
+ * },
580
+ * update: {
581
+ * // ... in case it already exists, update
582
+ * },
583
+ * where: {
584
+ * // ... the filter for the Session we want to update
585
+ * }
586
+ * })
587
+ */
588
+ upsert<T extends SessionUpsertArgs>(args: Prisma.SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
589
+ /**
590
+ * Count the number of Sessions.
591
+ * Note, that providing `undefined` is treated as the value not being there.
592
+ * Read more here: https://pris.ly/d/null-undefined
593
+ * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
594
+ * @example
595
+ * // Count the number of Sessions
596
+ * const count = await prisma.session.count({
597
+ * where: {
598
+ * // ... the filter for the Sessions we want to count
599
+ * }
600
+ * })
601
+ **/
602
+ count<T extends SessionCountArgs>(args?: Prisma.Subset<T, SessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SessionCountAggregateOutputType> : number>;
603
+ /**
604
+ * Allows you to perform aggregations operations on a Session.
605
+ * Note, that providing `undefined` is treated as the value not being there.
606
+ * Read more here: https://pris.ly/d/null-undefined
607
+ * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
608
+ * @example
609
+ * // Ordered by age ascending
610
+ * // Where email contains prisma.io
611
+ * // Limited to the 10 users
612
+ * const aggregations = await prisma.user.aggregate({
613
+ * _avg: {
614
+ * age: true,
615
+ * },
616
+ * where: {
617
+ * email: {
618
+ * contains: "prisma.io",
619
+ * },
620
+ * },
621
+ * orderBy: {
622
+ * age: "asc",
623
+ * },
624
+ * take: 10,
625
+ * })
626
+ **/
627
+ aggregate<T extends SessionAggregateArgs>(args: Prisma.Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>;
628
+ /**
629
+ * Group by Session.
630
+ * Note, that providing `undefined` is treated as the value not being there.
631
+ * Read more here: https://pris.ly/d/null-undefined
632
+ * @param {SessionGroupByArgs} args - Group by arguments.
633
+ * @example
634
+ * // Group by city, order by createdAt, get count
635
+ * const result = await prisma.user.groupBy({
636
+ * by: ['city', 'createdAt'],
637
+ * orderBy: {
638
+ * createdAt: true
639
+ * },
640
+ * _count: {
641
+ * _all: true
642
+ * },
643
+ * })
644
+ *
645
+ **/
646
+ groupBy<T extends SessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
647
+ orderBy: SessionGroupByArgs['orderBy'];
648
+ } : {
649
+ orderBy?: SessionGroupByArgs['orderBy'];
650
+ }, 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 ? {
651
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
652
+ Error,
653
+ 'Field ',
654
+ P,
655
+ ` in "having" needs to be provided in "by"`
656
+ ];
657
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
658
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
659
+ }[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 ? {} : {
660
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
661
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
662
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
663
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
664
+ /**
665
+ * Fields of the Session model
666
+ */
667
+ readonly fields: SessionFieldRefs;
668
+ }
669
+ /**
670
+ * The delegate class that acts as a "Promise-like" for Session.
671
+ * Why is this prefixed with `Prisma__`?
672
+ * Because we want to prevent naming conflicts as mentioned in
673
+ * https://github.com/prisma/prisma-client-js/issues/707
674
+ */
675
+ export interface Prisma__SessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
676
+ readonly [Symbol.toStringTag]: "PrismaPromise";
677
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
678
+ /**
679
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
680
+ * @param onfulfilled The callback to execute when the Promise is resolved.
681
+ * @param onrejected The callback to execute when the Promise is rejected.
682
+ * @returns A Promise for the completion of which ever callback is executed.
683
+ */
684
+ 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>;
685
+ /**
686
+ * Attaches a callback for only the rejection of the Promise.
687
+ * @param onrejected The callback to execute when the Promise is rejected.
688
+ * @returns A Promise for the completion of the callback.
689
+ */
690
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
691
+ /**
692
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
693
+ * resolved value cannot be modified from the callback.
694
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
695
+ * @returns A Promise for the completion of the callback.
696
+ */
697
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
698
+ }
699
+ /**
700
+ * Fields of the Session model
701
+ */
702
+ export interface SessionFieldRefs {
703
+ readonly id: Prisma.FieldRef<"Session", 'String'>;
704
+ readonly userId: Prisma.FieldRef<"Session", 'String'>;
705
+ readonly expires: Prisma.FieldRef<"Session", 'DateTime'>;
706
+ }
707
+ /**
708
+ * Session findUnique
709
+ */
710
+ export type SessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
711
+ /**
712
+ * Select specific fields to fetch from the Session
713
+ */
714
+ select?: Prisma.SessionSelect<ExtArgs> | null;
715
+ /**
716
+ * Omit specific fields from the Session
717
+ */
718
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
719
+ /**
720
+ * Choose, which related nodes to fetch as well
721
+ */
722
+ include?: Prisma.SessionInclude<ExtArgs> | null;
723
+ /**
724
+ * Filter, which Session to fetch.
725
+ */
726
+ where: Prisma.SessionWhereUniqueInput;
727
+ };
728
+ /**
729
+ * Session findUniqueOrThrow
730
+ */
731
+ export type SessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
732
+ /**
733
+ * Select specific fields to fetch from the Session
734
+ */
735
+ select?: Prisma.SessionSelect<ExtArgs> | null;
736
+ /**
737
+ * Omit specific fields from the Session
738
+ */
739
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
740
+ /**
741
+ * Choose, which related nodes to fetch as well
742
+ */
743
+ include?: Prisma.SessionInclude<ExtArgs> | null;
744
+ /**
745
+ * Filter, which Session to fetch.
746
+ */
747
+ where: Prisma.SessionWhereUniqueInput;
748
+ };
749
+ /**
750
+ * Session findFirst
751
+ */
752
+ export type SessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
753
+ /**
754
+ * Select specific fields to fetch from the Session
755
+ */
756
+ select?: Prisma.SessionSelect<ExtArgs> | null;
757
+ /**
758
+ * Omit specific fields from the Session
759
+ */
760
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
761
+ /**
762
+ * Choose, which related nodes to fetch as well
763
+ */
764
+ include?: Prisma.SessionInclude<ExtArgs> | null;
765
+ /**
766
+ * Filter, which Session to fetch.
767
+ */
768
+ where?: Prisma.SessionWhereInput;
769
+ /**
770
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
771
+ *
772
+ * Determine the order of Sessions to fetch.
773
+ */
774
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
775
+ /**
776
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
777
+ *
778
+ * Sets the position for searching for Sessions.
779
+ */
780
+ cursor?: Prisma.SessionWhereUniqueInput;
781
+ /**
782
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
783
+ *
784
+ * Take `±n` Sessions from the position of the cursor.
785
+ */
786
+ take?: number;
787
+ /**
788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
789
+ *
790
+ * Skip the first `n` Sessions.
791
+ */
792
+ skip?: number;
793
+ /**
794
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
795
+ *
796
+ * Filter by unique combinations of Sessions.
797
+ */
798
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
799
+ };
800
+ /**
801
+ * Session findFirstOrThrow
802
+ */
803
+ export type SessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
804
+ /**
805
+ * Select specific fields to fetch from the Session
806
+ */
807
+ select?: Prisma.SessionSelect<ExtArgs> | null;
808
+ /**
809
+ * Omit specific fields from the Session
810
+ */
811
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
812
+ /**
813
+ * Choose, which related nodes to fetch as well
814
+ */
815
+ include?: Prisma.SessionInclude<ExtArgs> | null;
816
+ /**
817
+ * Filter, which Session to fetch.
818
+ */
819
+ where?: Prisma.SessionWhereInput;
820
+ /**
821
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
822
+ *
823
+ * Determine the order of Sessions to fetch.
824
+ */
825
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
826
+ /**
827
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
828
+ *
829
+ * Sets the position for searching for Sessions.
830
+ */
831
+ cursor?: Prisma.SessionWhereUniqueInput;
832
+ /**
833
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
834
+ *
835
+ * Take `±n` Sessions from the position of the cursor.
836
+ */
837
+ take?: number;
838
+ /**
839
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
840
+ *
841
+ * Skip the first `n` Sessions.
842
+ */
843
+ skip?: number;
844
+ /**
845
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
846
+ *
847
+ * Filter by unique combinations of Sessions.
848
+ */
849
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
850
+ };
851
+ /**
852
+ * Session findMany
853
+ */
854
+ export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
855
+ /**
856
+ * Select specific fields to fetch from the Session
857
+ */
858
+ select?: Prisma.SessionSelect<ExtArgs> | null;
859
+ /**
860
+ * Omit specific fields from the Session
861
+ */
862
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
863
+ /**
864
+ * Choose, which related nodes to fetch as well
865
+ */
866
+ include?: Prisma.SessionInclude<ExtArgs> | null;
867
+ /**
868
+ * Filter, which Sessions to fetch.
869
+ */
870
+ where?: Prisma.SessionWhereInput;
871
+ /**
872
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
873
+ *
874
+ * Determine the order of Sessions to fetch.
875
+ */
876
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
877
+ /**
878
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
879
+ *
880
+ * Sets the position for listing Sessions.
881
+ */
882
+ cursor?: Prisma.SessionWhereUniqueInput;
883
+ /**
884
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
885
+ *
886
+ * Take `±n` Sessions from the position of the cursor.
887
+ */
888
+ take?: number;
889
+ /**
890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
891
+ *
892
+ * Skip the first `n` Sessions.
893
+ */
894
+ skip?: number;
895
+ /**
896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
897
+ *
898
+ * Filter by unique combinations of Sessions.
899
+ */
900
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
901
+ };
902
+ /**
903
+ * Session create
904
+ */
905
+ export type SessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
906
+ /**
907
+ * Select specific fields to fetch from the Session
908
+ */
909
+ select?: Prisma.SessionSelect<ExtArgs> | null;
910
+ /**
911
+ * Omit specific fields from the Session
912
+ */
913
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
914
+ /**
915
+ * Choose, which related nodes to fetch as well
916
+ */
917
+ include?: Prisma.SessionInclude<ExtArgs> | null;
918
+ /**
919
+ * The data needed to create a Session.
920
+ */
921
+ data: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
922
+ };
923
+ /**
924
+ * Session createMany
925
+ */
926
+ export type SessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
927
+ /**
928
+ * The data used to create many Sessions.
929
+ */
930
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
931
+ skipDuplicates?: boolean;
932
+ };
933
+ /**
934
+ * Session createManyAndReturn
935
+ */
936
+ export type SessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
+ /**
938
+ * Select specific fields to fetch from the Session
939
+ */
940
+ select?: Prisma.SessionSelectCreateManyAndReturn<ExtArgs> | null;
941
+ /**
942
+ * Omit specific fields from the Session
943
+ */
944
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
945
+ /**
946
+ * The data used to create many Sessions.
947
+ */
948
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[];
949
+ skipDuplicates?: boolean;
950
+ /**
951
+ * Choose, which related nodes to fetch as well
952
+ */
953
+ include?: Prisma.SessionIncludeCreateManyAndReturn<ExtArgs> | null;
954
+ };
955
+ /**
956
+ * Session update
957
+ */
958
+ export type SessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * Select specific fields to fetch from the Session
961
+ */
962
+ select?: Prisma.SessionSelect<ExtArgs> | null;
963
+ /**
964
+ * Omit specific fields from the Session
965
+ */
966
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
967
+ /**
968
+ * Choose, which related nodes to fetch as well
969
+ */
970
+ include?: Prisma.SessionInclude<ExtArgs> | null;
971
+ /**
972
+ * The data needed to update a Session.
973
+ */
974
+ data: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
975
+ /**
976
+ * Choose, which Session to update.
977
+ */
978
+ where: Prisma.SessionWhereUniqueInput;
979
+ };
980
+ /**
981
+ * Session updateMany
982
+ */
983
+ export type SessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
+ /**
985
+ * The data used to update Sessions.
986
+ */
987
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
988
+ /**
989
+ * Filter which Sessions to update
990
+ */
991
+ where?: Prisma.SessionWhereInput;
992
+ /**
993
+ * Limit how many Sessions to update.
994
+ */
995
+ limit?: number;
996
+ };
997
+ /**
998
+ * Session updateManyAndReturn
999
+ */
1000
+ export type SessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1001
+ /**
1002
+ * Select specific fields to fetch from the Session
1003
+ */
1004
+ select?: Prisma.SessionSelectUpdateManyAndReturn<ExtArgs> | null;
1005
+ /**
1006
+ * Omit specific fields from the Session
1007
+ */
1008
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1009
+ /**
1010
+ * The data used to update Sessions.
1011
+ */
1012
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>;
1013
+ /**
1014
+ * Filter which Sessions to update
1015
+ */
1016
+ where?: Prisma.SessionWhereInput;
1017
+ /**
1018
+ * Limit how many Sessions to update.
1019
+ */
1020
+ limit?: number;
1021
+ /**
1022
+ * Choose, which related nodes to fetch as well
1023
+ */
1024
+ include?: Prisma.SessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1025
+ };
1026
+ /**
1027
+ * Session upsert
1028
+ */
1029
+ export type SessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1030
+ /**
1031
+ * Select specific fields to fetch from the Session
1032
+ */
1033
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1034
+ /**
1035
+ * Omit specific fields from the Session
1036
+ */
1037
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1038
+ /**
1039
+ * Choose, which related nodes to fetch as well
1040
+ */
1041
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1042
+ /**
1043
+ * The filter to search for the Session to update in case it exists.
1044
+ */
1045
+ where: Prisma.SessionWhereUniqueInput;
1046
+ /**
1047
+ * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
1048
+ */
1049
+ create: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>;
1050
+ /**
1051
+ * In case the Session was found with the provided `where` argument, update it with this data.
1052
+ */
1053
+ update: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>;
1054
+ };
1055
+ /**
1056
+ * Session delete
1057
+ */
1058
+ export type SessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * Select specific fields to fetch from the Session
1061
+ */
1062
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1063
+ /**
1064
+ * Omit specific fields from the Session
1065
+ */
1066
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1067
+ /**
1068
+ * Choose, which related nodes to fetch as well
1069
+ */
1070
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1071
+ /**
1072
+ * Filter which Session to delete.
1073
+ */
1074
+ where: Prisma.SessionWhereUniqueInput;
1075
+ };
1076
+ /**
1077
+ * Session deleteMany
1078
+ */
1079
+ export type SessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1080
+ /**
1081
+ * Filter which Sessions to delete
1082
+ */
1083
+ where?: Prisma.SessionWhereInput;
1084
+ /**
1085
+ * Limit how many Sessions to delete.
1086
+ */
1087
+ limit?: number;
1088
+ };
1089
+ /**
1090
+ * Session without action
1091
+ */
1092
+ export type SessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1093
+ /**
1094
+ * Select specific fields to fetch from the Session
1095
+ */
1096
+ select?: Prisma.SessionSelect<ExtArgs> | null;
1097
+ /**
1098
+ * Omit specific fields from the Session
1099
+ */
1100
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
1101
+ /**
1102
+ * Choose, which related nodes to fetch as well
1103
+ */
1104
+ include?: Prisma.SessionInclude<ExtArgs> | null;
1105
+ };