@goscribe/server 1.5.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 (321) hide show
  1. package/dist/context.d.ts +14 -1
  2. package/dist/context.js +23 -2
  3. package/dist/generated/prisma/client.d.ts +224 -0
  4. package/dist/generated/prisma/client.js +34 -0
  5. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  6. package/dist/generated/prisma/commonInputTypes.js +10 -0
  7. package/dist/generated/prisma/enums.d.ts +67 -0
  8. package/dist/generated/prisma/enums.js +66 -0
  9. package/dist/generated/prisma/internal/class.d.ts +539 -0
  10. package/dist/generated/prisma/internal/class.js +49 -0
  11. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  12. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  13. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  14. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  15. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  16. package/dist/generated/prisma/models/Artifact.js +1 -0
  17. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  18. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  19. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  20. package/dist/generated/prisma/models/Channel.js +1 -0
  21. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  22. package/dist/generated/prisma/models/Chat.js +1 -0
  23. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  24. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  25. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  26. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  27. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  28. package/dist/generated/prisma/models/FileAsset.js +1 -0
  29. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  30. package/dist/generated/prisma/models/Flashcard.js +1 -0
  31. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  32. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  33. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  34. package/dist/generated/prisma/models/Folder.js +1 -0
  35. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  36. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  37. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  38. package/dist/generated/prisma/models/Invoice.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  40. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  43. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  44. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  45. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  46. package/dist/generated/prisma/models/Notification.js +1 -0
  47. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  48. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  49. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  50. package/dist/generated/prisma/models/Plan.js +1 -0
  51. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  52. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  53. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  54. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  55. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  56. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  57. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  58. package/dist/generated/prisma/models/Role.js +1 -0
  59. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  60. package/dist/generated/prisma/models/Session.js +1 -0
  61. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  62. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  64. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  65. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  66. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  67. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  68. package/dist/generated/prisma/models/Subscription.js +1 -0
  69. package/dist/generated/prisma/models/User.d.ts +7559 -0
  70. package/dist/generated/prisma/models/User.js +1 -0
  71. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  72. package/dist/generated/prisma/models/UserCredit.js +1 -0
  73. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  74. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  76. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  78. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  79. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  80. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  81. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  82. package/dist/generated/prisma/models/Workspace.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  84. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  86. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  87. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  88. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  89. package/dist/generated/prisma/models.d.ts +39 -0
  90. package/dist/generated/prisma/models.js +1 -0
  91. package/dist/lib/ai/index.d.ts +3 -2
  92. package/dist/lib/ai/index.js +3 -2
  93. package/dist/lib/ai/llm-client.d.ts +1 -0
  94. package/dist/lib/ai/llm-client.js +17 -0
  95. package/dist/routers/_app.d.ts +40 -80
  96. package/dist/routers/auth.js +1 -1
  97. package/dist/routers/flashcards.d.ts +12 -1
  98. package/dist/routers/payment.d.ts +1 -12
  99. package/dist/routers/workspace.d.ts +27 -67
  100. package/dist/routers/workspace.js +1 -0
  101. package/dist/services/billing/payment.service.d.ts +1 -12
  102. package/dist/services/billing/payment.service.js +3 -6
  103. package/dist/services/billing/usage.service.d.ts +30 -10
  104. package/dist/services/billing/usage.service.js +87 -15
  105. package/dist/services/content/copilot.service.js +15 -29
  106. package/dist/services/content/flashcard-progress.service.js +9 -9
  107. package/dist/services/content/flashcard.service.d.ts +45 -1
  108. package/dist/services/content/flashcard.service.js +81 -68
  109. package/dist/services/content/media-analysis.service.js +27 -27
  110. package/dist/services/content/worksheet-generation.service.test.js +2 -2
  111. package/dist/services/workspace/workspace.service.d.ts +23 -67
  112. package/dist/services/workspace/workspace.service.js +69 -62
  113. package/dist/src/context.d.ts +27 -0
  114. package/dist/src/context.js +33 -0
  115. package/dist/src/index.d.ts +3 -0
  116. package/dist/src/index.js +1 -0
  117. package/dist/src/lib/ai/config.d.ts +20 -0
  118. package/dist/src/lib/ai/config.js +31 -0
  119. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  120. package/dist/src/lib/ai/embedding-client.js +30 -0
  121. package/dist/src/lib/ai/index.d.ts +48 -0
  122. package/dist/src/lib/ai/index.js +29 -0
  123. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  124. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  125. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  126. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  127. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  128. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  129. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  130. package/dist/src/lib/ai/json-parse.js +34 -0
  131. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  132. package/dist/src/lib/ai/llm-client.js +36 -0
  133. package/dist/src/lib/ai/mock.d.ts +2 -0
  134. package/dist/src/lib/ai/mock.js +10 -0
  135. package/dist/src/lib/ai/types.d.ts +9 -0
  136. package/dist/src/lib/ai/types.js +1 -0
  137. package/dist/src/lib/auth.d.ts +36 -0
  138. package/dist/src/lib/auth.js +117 -0
  139. package/dist/src/lib/chunking.d.ts +19 -0
  140. package/dist/src/lib/chunking.js +47 -0
  141. package/dist/src/lib/constants.d.ts +13 -0
  142. package/dist/src/lib/constants.js +12 -0
  143. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  144. package/dist/src/lib/curated-kb-seed.js +155 -0
  145. package/dist/src/lib/email.d.ts +11 -0
  146. package/dist/src/lib/email.js +152 -0
  147. package/dist/src/lib/embeddings.d.ts +2 -0
  148. package/dist/src/lib/embeddings.js +1 -0
  149. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  150. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  151. package/dist/src/lib/env.d.ts +41 -0
  152. package/dist/src/lib/env.js +57 -0
  153. package/dist/src/lib/errors.d.ts +33 -0
  154. package/dist/src/lib/errors.js +78 -0
  155. package/dist/src/lib/file.d.ts +0 -0
  156. package/dist/src/lib/file.js +1 -0
  157. package/dist/src/lib/inference.d.ts +1 -0
  158. package/dist/src/lib/inference.js +1 -0
  159. package/dist/src/lib/kb-meta.d.ts +8 -0
  160. package/dist/src/lib/kb-meta.js +77 -0
  161. package/dist/src/lib/logger.d.ts +62 -0
  162. package/dist/src/lib/logger.js +364 -0
  163. package/dist/src/lib/pdf.d.ts +11 -0
  164. package/dist/src/lib/pdf.js +11 -0
  165. package/dist/src/lib/prisma.d.ts +3 -0
  166. package/dist/src/lib/prisma.js +15 -0
  167. package/dist/src/lib/pusher.d.ts +38 -0
  168. package/dist/src/lib/pusher.js +170 -0
  169. package/dist/src/lib/retry.d.ts +15 -0
  170. package/dist/src/lib/retry.js +37 -0
  171. package/dist/src/lib/storage.d.ts +11 -0
  172. package/dist/src/lib/storage.js +71 -0
  173. package/dist/src/lib/stripe.d.ts +10 -0
  174. package/dist/src/lib/stripe.js +36 -0
  175. package/dist/src/lib/validation.d.ts +51 -0
  176. package/dist/src/lib/validation.js +64 -0
  177. package/dist/src/lib/workspace-kb.d.ts +5 -0
  178. package/dist/src/lib/workspace-kb.js +7 -0
  179. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  180. package/dist/src/repositories/artifact.repository.js +40 -0
  181. package/dist/src/repositories/base.repository.d.ts +14 -0
  182. package/dist/src/repositories/base.repository.js +14 -0
  183. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  184. package/dist/src/repositories/invitation.repository.js +44 -0
  185. package/dist/src/repositories/notification.repository.d.ts +76 -0
  186. package/dist/src/repositories/notification.repository.js +44 -0
  187. package/dist/src/repositories/user.repository.d.ts +84 -0
  188. package/dist/src/repositories/user.repository.js +37 -0
  189. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  190. package/dist/src/repositories/workspace-member.repository.js +31 -0
  191. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  192. package/dist/src/repositories/workspace.repository.js +79 -0
  193. package/dist/src/routers/_app.d.ts +3464 -0
  194. package/dist/src/routers/_app.js +36 -0
  195. package/dist/src/routers/admin.d.ts +358 -0
  196. package/dist/src/routers/admin.js +105 -0
  197. package/dist/src/routers/annotations.d.ts +219 -0
  198. package/dist/src/routers/annotations.js +29 -0
  199. package/dist/src/routers/artifactVersions.d.ts +65 -0
  200. package/dist/src/routers/artifactVersions.js +14 -0
  201. package/dist/src/routers/auth.d.ts +161 -0
  202. package/dist/src/routers/auth.js +97 -0
  203. package/dist/src/routers/chat.d.ts +170 -0
  204. package/dist/src/routers/chat.js +32 -0
  205. package/dist/src/routers/copilot.d.ts +200 -0
  206. package/dist/src/routers/copilot.js +52 -0
  207. package/dist/src/routers/flashcards.d.ts +336 -0
  208. package/dist/src/routers/flashcards.js +93 -0
  209. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  210. package/dist/src/routers/knowledgeBase.js +118 -0
  211. package/dist/src/routers/members.d.ts +169 -0
  212. package/dist/src/routers/members.js +47 -0
  213. package/dist/src/routers/notifications.d.ts +99 -0
  214. package/dist/src/routers/notifications.js +25 -0
  215. package/dist/src/routers/payment.d.ts +80 -0
  216. package/dist/src/routers/payment.js +21 -0
  217. package/dist/src/routers/podcast.d.ts +287 -0
  218. package/dist/src/routers/podcast.js +34 -0
  219. package/dist/src/routers/studyguide.d.ts +36 -0
  220. package/dist/src/routers/studyguide.js +8 -0
  221. package/dist/src/routers/worksheets.d.ts +429 -0
  222. package/dist/src/routers/worksheets.js +139 -0
  223. package/dist/src/routers/workspace.d.ts +563 -0
  224. package/dist/src/routers/workspace.js +104 -0
  225. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  226. package/dist/src/scripts/purge-deleted-users.js +148 -0
  227. package/dist/src/server.d.ts +1 -0
  228. package/dist/src/server.js +190 -0
  229. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  230. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  231. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  232. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  233. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  234. package/dist/src/services/activity/activity-log.service.js +276 -0
  235. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  236. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  237. package/dist/src/services/admin/admin.service.d.ts +270 -0
  238. package/dist/src/services/admin/admin.service.js +476 -0
  239. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  240. package/dist/src/services/ai/ai-session.service.js +4 -0
  241. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  242. package/dist/src/services/artifacts/annotation.service.js +154 -0
  243. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  244. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  245. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  246. package/dist/src/services/artifacts/chat.service.js +182 -0
  247. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  248. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  249. package/dist/src/services/auth/auth.service.d.ts +94 -0
  250. package/dist/src/services/auth/auth.service.js +368 -0
  251. package/dist/src/services/base.service.d.ts +14 -0
  252. package/dist/src/services/base.service.js +14 -0
  253. package/dist/src/services/billing/payment.service.d.ts +44 -0
  254. package/dist/src/services/billing/payment.service.js +365 -0
  255. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  256. package/dist/src/services/billing/subscription.service.js +654 -0
  257. package/dist/src/services/billing/usage.service.d.ts +47 -0
  258. package/dist/src/services/billing/usage.service.js +149 -0
  259. package/dist/src/services/content/copilot.service.d.ts +113 -0
  260. package/dist/src/services/content/copilot.service.js +439 -0
  261. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  262. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  263. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  264. package/dist/src/services/content/flashcard.service.js +339 -0
  265. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  266. package/dist/src/services/content/media-analysis.service.js +404 -0
  267. package/dist/src/services/content/podcast.service.d.ts +267 -0
  268. package/dist/src/services/content/podcast.service.js +653 -0
  269. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  270. package/dist/src/services/content/worksheet-content.service.js +84 -0
  271. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  272. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  273. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  274. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  275. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  276. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  277. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  278. package/dist/src/services/content/worksheet.service.js +599 -0
  279. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  280. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  281. package/dist/src/services/members/invitation.service.d.ts +66 -0
  282. package/dist/src/services/members/invitation.service.js +348 -0
  283. package/dist/src/services/members/member.service.d.ts +36 -0
  284. package/dist/src/services/members/member.service.js +193 -0
  285. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  286. package/dist/src/services/notifications/notification.service.js +550 -0
  287. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  288. package/dist/src/services/notifications/notification.service.test.js +87 -0
  289. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  290. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  291. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  292. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  293. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  294. package/dist/src/services/workspace/workspace.service.js +401 -0
  295. package/dist/src/trpc.d.ts +60 -0
  296. package/dist/src/trpc.js +217 -0
  297. package/dist/src/types/index.d.ts +126 -0
  298. package/dist/src/types/index.js +1 -0
  299. package/dist/trpc.d.ts +12 -4
  300. package/dist/trpc.js +5 -11
  301. package/package.json +8 -9
  302. package/prisma/schema.prisma +3 -4
  303. package/prisma/seed.mjs +5 -2
  304. package/prisma.config.ts +16 -0
  305. package/src/context.ts +33 -3
  306. package/src/lib/ai/index.ts +3 -0
  307. package/src/lib/ai/llm-client.ts +23 -0
  308. package/src/lib/prisma.ts +18 -9
  309. package/src/routers/auth.ts +1 -1
  310. package/src/routers/workspace.ts +4 -0
  311. package/src/scripts/purge-deleted-users.ts +1 -3
  312. package/src/services/billing/payment.service.ts +3 -6
  313. package/src/services/billing/usage.service.ts +190 -77
  314. package/src/services/content/copilot.service.ts +23 -32
  315. package/src/services/content/flashcard-progress.service.ts +12 -9
  316. package/src/services/content/flashcard.service.ts +89 -66
  317. package/src/services/content/media-analysis.service.ts +34 -29
  318. package/src/services/content/worksheet-generation.service.test.ts +2 -2
  319. package/src/services/workspace/workspace.service.ts +73 -66
  320. package/src/trpc.ts +5 -13
  321. package/tsconfig.json +3 -0
@@ -0,0 +1,2345 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums";
3
+ import type * as Prisma from "../internal/prismaNamespace";
4
+ /**
5
+ * Model Artifact
6
+ *
7
+ */
8
+ export type ArtifactModel = runtime.Types.Result.DefaultSelection<Prisma.$ArtifactPayload>;
9
+ export type AggregateArtifact = {
10
+ _count: ArtifactCountAggregateOutputType | null;
11
+ _min: ArtifactMinAggregateOutputType | null;
12
+ _max: ArtifactMaxAggregateOutputType | null;
13
+ };
14
+ export type ArtifactMinAggregateOutputType = {
15
+ id: string | null;
16
+ workspaceId: string | null;
17
+ type: $Enums.ArtifactType | null;
18
+ title: string | null;
19
+ isArchived: boolean | null;
20
+ difficulty: $Enums.Difficulty | null;
21
+ estimatedTime: string | null;
22
+ createdById: string | null;
23
+ createdAt: Date | null;
24
+ updatedAt: Date | null;
25
+ description: string | null;
26
+ generating: boolean | null;
27
+ imageObjectKey: string | null;
28
+ };
29
+ export type ArtifactMaxAggregateOutputType = {
30
+ id: string | null;
31
+ workspaceId: string | null;
32
+ type: $Enums.ArtifactType | null;
33
+ title: string | null;
34
+ isArchived: boolean | null;
35
+ difficulty: $Enums.Difficulty | null;
36
+ estimatedTime: string | null;
37
+ createdById: string | null;
38
+ createdAt: Date | null;
39
+ updatedAt: Date | null;
40
+ description: string | null;
41
+ generating: boolean | null;
42
+ imageObjectKey: string | null;
43
+ };
44
+ export type ArtifactCountAggregateOutputType = {
45
+ id: number;
46
+ workspaceId: number;
47
+ type: number;
48
+ title: number;
49
+ isArchived: number;
50
+ difficulty: number;
51
+ estimatedTime: number;
52
+ createdById: number;
53
+ createdAt: number;
54
+ updatedAt: number;
55
+ description: number;
56
+ generating: number;
57
+ generatingMetadata: number;
58
+ worksheetConfig: number;
59
+ imageObjectKey: number;
60
+ _all: number;
61
+ };
62
+ export type ArtifactMinAggregateInputType = {
63
+ id?: true;
64
+ workspaceId?: true;
65
+ type?: true;
66
+ title?: true;
67
+ isArchived?: true;
68
+ difficulty?: true;
69
+ estimatedTime?: true;
70
+ createdById?: true;
71
+ createdAt?: true;
72
+ updatedAt?: true;
73
+ description?: true;
74
+ generating?: true;
75
+ imageObjectKey?: true;
76
+ };
77
+ export type ArtifactMaxAggregateInputType = {
78
+ id?: true;
79
+ workspaceId?: true;
80
+ type?: true;
81
+ title?: true;
82
+ isArchived?: true;
83
+ difficulty?: true;
84
+ estimatedTime?: true;
85
+ createdById?: true;
86
+ createdAt?: true;
87
+ updatedAt?: true;
88
+ description?: true;
89
+ generating?: true;
90
+ imageObjectKey?: true;
91
+ };
92
+ export type ArtifactCountAggregateInputType = {
93
+ id?: true;
94
+ workspaceId?: true;
95
+ type?: true;
96
+ title?: true;
97
+ isArchived?: true;
98
+ difficulty?: true;
99
+ estimatedTime?: true;
100
+ createdById?: true;
101
+ createdAt?: true;
102
+ updatedAt?: true;
103
+ description?: true;
104
+ generating?: true;
105
+ generatingMetadata?: true;
106
+ worksheetConfig?: true;
107
+ imageObjectKey?: true;
108
+ _all?: true;
109
+ };
110
+ export type ArtifactAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
111
+ /**
112
+ * Filter which Artifact to aggregate.
113
+ */
114
+ where?: Prisma.ArtifactWhereInput;
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
117
+ *
118
+ * Determine the order of Artifacts to fetch.
119
+ */
120
+ orderBy?: Prisma.ArtifactOrderByWithRelationInput | Prisma.ArtifactOrderByWithRelationInput[];
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
123
+ *
124
+ * Sets the start position
125
+ */
126
+ cursor?: Prisma.ArtifactWhereUniqueInput;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Take `±n` Artifacts from the position of the cursor.
131
+ */
132
+ take?: number;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Skip the first `n` Artifacts.
137
+ */
138
+ skip?: number;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Count returned Artifacts
143
+ **/
144
+ _count?: true | ArtifactCountAggregateInputType;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the minimum value
149
+ **/
150
+ _min?: ArtifactMinAggregateInputType;
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to find the maximum value
155
+ **/
156
+ _max?: ArtifactMaxAggregateInputType;
157
+ };
158
+ export type GetArtifactAggregateType<T extends ArtifactAggregateArgs> = {
159
+ [P in keyof T & keyof AggregateArtifact]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateArtifact[P]> : Prisma.GetScalarType<T[P], AggregateArtifact[P]>;
160
+ };
161
+ export type ArtifactGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
162
+ where?: Prisma.ArtifactWhereInput;
163
+ orderBy?: Prisma.ArtifactOrderByWithAggregationInput | Prisma.ArtifactOrderByWithAggregationInput[];
164
+ by: Prisma.ArtifactScalarFieldEnum[] | Prisma.ArtifactScalarFieldEnum;
165
+ having?: Prisma.ArtifactScalarWhereWithAggregatesInput;
166
+ take?: number;
167
+ skip?: number;
168
+ _count?: ArtifactCountAggregateInputType | true;
169
+ _min?: ArtifactMinAggregateInputType;
170
+ _max?: ArtifactMaxAggregateInputType;
171
+ };
172
+ export type ArtifactGroupByOutputType = {
173
+ id: string;
174
+ workspaceId: string;
175
+ type: $Enums.ArtifactType;
176
+ title: string;
177
+ isArchived: boolean;
178
+ difficulty: $Enums.Difficulty | null;
179
+ estimatedTime: string | null;
180
+ createdById: string | null;
181
+ createdAt: Date;
182
+ updatedAt: Date;
183
+ description: string | null;
184
+ generating: boolean;
185
+ generatingMetadata: runtime.JsonValue | null;
186
+ worksheetConfig: runtime.JsonValue | null;
187
+ imageObjectKey: string | null;
188
+ _count: ArtifactCountAggregateOutputType | null;
189
+ _min: ArtifactMinAggregateOutputType | null;
190
+ _max: ArtifactMaxAggregateOutputType | null;
191
+ };
192
+ export type GetArtifactGroupByPayload<T extends ArtifactGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ArtifactGroupByOutputType, T['by']> & {
193
+ [P in ((keyof T) & (keyof ArtifactGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ArtifactGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ArtifactGroupByOutputType[P]>;
194
+ }>>;
195
+ export type ArtifactWhereInput = {
196
+ AND?: Prisma.ArtifactWhereInput | Prisma.ArtifactWhereInput[];
197
+ OR?: Prisma.ArtifactWhereInput[];
198
+ NOT?: Prisma.ArtifactWhereInput | Prisma.ArtifactWhereInput[];
199
+ id?: Prisma.StringFilter<"Artifact"> | string;
200
+ workspaceId?: Prisma.StringFilter<"Artifact"> | string;
201
+ type?: Prisma.EnumArtifactTypeFilter<"Artifact"> | $Enums.ArtifactType;
202
+ title?: Prisma.StringFilter<"Artifact"> | string;
203
+ isArchived?: Prisma.BoolFilter<"Artifact"> | boolean;
204
+ difficulty?: Prisma.EnumDifficultyNullableFilter<"Artifact"> | $Enums.Difficulty | null;
205
+ estimatedTime?: Prisma.StringNullableFilter<"Artifact"> | string | null;
206
+ createdById?: Prisma.StringNullableFilter<"Artifact"> | string | null;
207
+ createdAt?: Prisma.DateTimeFilter<"Artifact"> | Date | string;
208
+ updatedAt?: Prisma.DateTimeFilter<"Artifact"> | Date | string;
209
+ description?: Prisma.StringNullableFilter<"Artifact"> | string | null;
210
+ generating?: Prisma.BoolFilter<"Artifact"> | boolean;
211
+ generatingMetadata?: Prisma.JsonNullableFilter<"Artifact">;
212
+ worksheetConfig?: Prisma.JsonNullableFilter<"Artifact">;
213
+ imageObjectKey?: Prisma.StringNullableFilter<"Artifact"> | string | null;
214
+ createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
215
+ workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>;
216
+ versions?: Prisma.ArtifactVersionListRelationFilter;
217
+ flashcards?: Prisma.FlashcardListRelationFilter;
218
+ podcastSegments?: Prisma.PodcastSegmentListRelationFilter;
219
+ questions?: Prisma.WorksheetQuestionListRelationFilter;
220
+ };
221
+ export type ArtifactOrderByWithRelationInput = {
222
+ id?: Prisma.SortOrder;
223
+ workspaceId?: Prisma.SortOrder;
224
+ type?: Prisma.SortOrder;
225
+ title?: Prisma.SortOrder;
226
+ isArchived?: Prisma.SortOrder;
227
+ difficulty?: Prisma.SortOrderInput | Prisma.SortOrder;
228
+ estimatedTime?: Prisma.SortOrderInput | Prisma.SortOrder;
229
+ createdById?: Prisma.SortOrderInput | Prisma.SortOrder;
230
+ createdAt?: Prisma.SortOrder;
231
+ updatedAt?: Prisma.SortOrder;
232
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
233
+ generating?: Prisma.SortOrder;
234
+ generatingMetadata?: Prisma.SortOrderInput | Prisma.SortOrder;
235
+ worksheetConfig?: Prisma.SortOrderInput | Prisma.SortOrder;
236
+ imageObjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
237
+ createdBy?: Prisma.UserOrderByWithRelationInput;
238
+ workspace?: Prisma.WorkspaceOrderByWithRelationInput;
239
+ versions?: Prisma.ArtifactVersionOrderByRelationAggregateInput;
240
+ flashcards?: Prisma.FlashcardOrderByRelationAggregateInput;
241
+ podcastSegments?: Prisma.PodcastSegmentOrderByRelationAggregateInput;
242
+ questions?: Prisma.WorksheetQuestionOrderByRelationAggregateInput;
243
+ };
244
+ export type ArtifactWhereUniqueInput = Prisma.AtLeast<{
245
+ id?: string;
246
+ AND?: Prisma.ArtifactWhereInput | Prisma.ArtifactWhereInput[];
247
+ OR?: Prisma.ArtifactWhereInput[];
248
+ NOT?: Prisma.ArtifactWhereInput | Prisma.ArtifactWhereInput[];
249
+ workspaceId?: Prisma.StringFilter<"Artifact"> | string;
250
+ type?: Prisma.EnumArtifactTypeFilter<"Artifact"> | $Enums.ArtifactType;
251
+ title?: Prisma.StringFilter<"Artifact"> | string;
252
+ isArchived?: Prisma.BoolFilter<"Artifact"> | boolean;
253
+ difficulty?: Prisma.EnumDifficultyNullableFilter<"Artifact"> | $Enums.Difficulty | null;
254
+ estimatedTime?: Prisma.StringNullableFilter<"Artifact"> | string | null;
255
+ createdById?: Prisma.StringNullableFilter<"Artifact"> | string | null;
256
+ createdAt?: Prisma.DateTimeFilter<"Artifact"> | Date | string;
257
+ updatedAt?: Prisma.DateTimeFilter<"Artifact"> | Date | string;
258
+ description?: Prisma.StringNullableFilter<"Artifact"> | string | null;
259
+ generating?: Prisma.BoolFilter<"Artifact"> | boolean;
260
+ generatingMetadata?: Prisma.JsonNullableFilter<"Artifact">;
261
+ worksheetConfig?: Prisma.JsonNullableFilter<"Artifact">;
262
+ imageObjectKey?: Prisma.StringNullableFilter<"Artifact"> | string | null;
263
+ createdBy?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
264
+ workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>;
265
+ versions?: Prisma.ArtifactVersionListRelationFilter;
266
+ flashcards?: Prisma.FlashcardListRelationFilter;
267
+ podcastSegments?: Prisma.PodcastSegmentListRelationFilter;
268
+ questions?: Prisma.WorksheetQuestionListRelationFilter;
269
+ }, "id">;
270
+ export type ArtifactOrderByWithAggregationInput = {
271
+ id?: Prisma.SortOrder;
272
+ workspaceId?: Prisma.SortOrder;
273
+ type?: Prisma.SortOrder;
274
+ title?: Prisma.SortOrder;
275
+ isArchived?: Prisma.SortOrder;
276
+ difficulty?: Prisma.SortOrderInput | Prisma.SortOrder;
277
+ estimatedTime?: Prisma.SortOrderInput | Prisma.SortOrder;
278
+ createdById?: Prisma.SortOrderInput | Prisma.SortOrder;
279
+ createdAt?: Prisma.SortOrder;
280
+ updatedAt?: Prisma.SortOrder;
281
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
282
+ generating?: Prisma.SortOrder;
283
+ generatingMetadata?: Prisma.SortOrderInput | Prisma.SortOrder;
284
+ worksheetConfig?: Prisma.SortOrderInput | Prisma.SortOrder;
285
+ imageObjectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
286
+ _count?: Prisma.ArtifactCountOrderByAggregateInput;
287
+ _max?: Prisma.ArtifactMaxOrderByAggregateInput;
288
+ _min?: Prisma.ArtifactMinOrderByAggregateInput;
289
+ };
290
+ export type ArtifactScalarWhereWithAggregatesInput = {
291
+ AND?: Prisma.ArtifactScalarWhereWithAggregatesInput | Prisma.ArtifactScalarWhereWithAggregatesInput[];
292
+ OR?: Prisma.ArtifactScalarWhereWithAggregatesInput[];
293
+ NOT?: Prisma.ArtifactScalarWhereWithAggregatesInput | Prisma.ArtifactScalarWhereWithAggregatesInput[];
294
+ id?: Prisma.StringWithAggregatesFilter<"Artifact"> | string;
295
+ workspaceId?: Prisma.StringWithAggregatesFilter<"Artifact"> | string;
296
+ type?: Prisma.EnumArtifactTypeWithAggregatesFilter<"Artifact"> | $Enums.ArtifactType;
297
+ title?: Prisma.StringWithAggregatesFilter<"Artifact"> | string;
298
+ isArchived?: Prisma.BoolWithAggregatesFilter<"Artifact"> | boolean;
299
+ difficulty?: Prisma.EnumDifficultyNullableWithAggregatesFilter<"Artifact"> | $Enums.Difficulty | null;
300
+ estimatedTime?: Prisma.StringNullableWithAggregatesFilter<"Artifact"> | string | null;
301
+ createdById?: Prisma.StringNullableWithAggregatesFilter<"Artifact"> | string | null;
302
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Artifact"> | Date | string;
303
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Artifact"> | Date | string;
304
+ description?: Prisma.StringNullableWithAggregatesFilter<"Artifact"> | string | null;
305
+ generating?: Prisma.BoolWithAggregatesFilter<"Artifact"> | boolean;
306
+ generatingMetadata?: Prisma.JsonNullableWithAggregatesFilter<"Artifact">;
307
+ worksheetConfig?: Prisma.JsonNullableWithAggregatesFilter<"Artifact">;
308
+ imageObjectKey?: Prisma.StringNullableWithAggregatesFilter<"Artifact"> | string | null;
309
+ };
310
+ export type ArtifactCreateInput = {
311
+ id?: string;
312
+ type: $Enums.ArtifactType;
313
+ title: string;
314
+ isArchived?: boolean;
315
+ difficulty?: $Enums.Difficulty | null;
316
+ estimatedTime?: string | null;
317
+ createdAt?: Date | string;
318
+ updatedAt?: Date | string;
319
+ description?: string | null;
320
+ generating?: boolean;
321
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
322
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
323
+ imageObjectKey?: string | null;
324
+ createdBy?: Prisma.UserCreateNestedOneWithoutArtifactsInput;
325
+ workspace: Prisma.WorkspaceCreateNestedOneWithoutArtifactsInput;
326
+ versions?: Prisma.ArtifactVersionCreateNestedManyWithoutArtifactInput;
327
+ flashcards?: Prisma.FlashcardCreateNestedManyWithoutArtifactInput;
328
+ podcastSegments?: Prisma.PodcastSegmentCreateNestedManyWithoutArtifactInput;
329
+ questions?: Prisma.WorksheetQuestionCreateNestedManyWithoutArtifactInput;
330
+ };
331
+ export type ArtifactUncheckedCreateInput = {
332
+ id?: string;
333
+ workspaceId: string;
334
+ type: $Enums.ArtifactType;
335
+ title: string;
336
+ isArchived?: boolean;
337
+ difficulty?: $Enums.Difficulty | null;
338
+ estimatedTime?: string | null;
339
+ createdById?: string | null;
340
+ createdAt?: Date | string;
341
+ updatedAt?: Date | string;
342
+ description?: string | null;
343
+ generating?: boolean;
344
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
345
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
346
+ imageObjectKey?: string | null;
347
+ versions?: Prisma.ArtifactVersionUncheckedCreateNestedManyWithoutArtifactInput;
348
+ flashcards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutArtifactInput;
349
+ podcastSegments?: Prisma.PodcastSegmentUncheckedCreateNestedManyWithoutArtifactInput;
350
+ questions?: Prisma.WorksheetQuestionUncheckedCreateNestedManyWithoutArtifactInput;
351
+ };
352
+ export type ArtifactUpdateInput = {
353
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
354
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
355
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
356
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
357
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
358
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
359
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
360
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
361
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
362
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
363
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
364
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
365
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
366
+ createdBy?: Prisma.UserUpdateOneWithoutArtifactsNestedInput;
367
+ workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutArtifactsNestedInput;
368
+ versions?: Prisma.ArtifactVersionUpdateManyWithoutArtifactNestedInput;
369
+ flashcards?: Prisma.FlashcardUpdateManyWithoutArtifactNestedInput;
370
+ podcastSegments?: Prisma.PodcastSegmentUpdateManyWithoutArtifactNestedInput;
371
+ questions?: Prisma.WorksheetQuestionUpdateManyWithoutArtifactNestedInput;
372
+ };
373
+ export type ArtifactUncheckedUpdateInput = {
374
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
376
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
377
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
378
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
379
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
380
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
381
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
382
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
383
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
384
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
385
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
386
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
387
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
388
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
389
+ versions?: Prisma.ArtifactVersionUncheckedUpdateManyWithoutArtifactNestedInput;
390
+ flashcards?: Prisma.FlashcardUncheckedUpdateManyWithoutArtifactNestedInput;
391
+ podcastSegments?: Prisma.PodcastSegmentUncheckedUpdateManyWithoutArtifactNestedInput;
392
+ questions?: Prisma.WorksheetQuestionUncheckedUpdateManyWithoutArtifactNestedInput;
393
+ };
394
+ export type ArtifactCreateManyInput = {
395
+ id?: string;
396
+ workspaceId: string;
397
+ type: $Enums.ArtifactType;
398
+ title: string;
399
+ isArchived?: boolean;
400
+ difficulty?: $Enums.Difficulty | null;
401
+ estimatedTime?: string | null;
402
+ createdById?: string | null;
403
+ createdAt?: Date | string;
404
+ updatedAt?: Date | string;
405
+ description?: string | null;
406
+ generating?: boolean;
407
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
408
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
409
+ imageObjectKey?: string | null;
410
+ };
411
+ export type ArtifactUpdateManyMutationInput = {
412
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
413
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
414
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
415
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
416
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
417
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
418
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
419
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
420
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
421
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
422
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
423
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
424
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
425
+ };
426
+ export type ArtifactUncheckedUpdateManyInput = {
427
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
428
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
430
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
432
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
433
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
434
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
436
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
437
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
438
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
439
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
440
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
441
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
442
+ };
443
+ export type ArtifactListRelationFilter = {
444
+ every?: Prisma.ArtifactWhereInput;
445
+ some?: Prisma.ArtifactWhereInput;
446
+ none?: Prisma.ArtifactWhereInput;
447
+ };
448
+ export type ArtifactOrderByRelationAggregateInput = {
449
+ _count?: Prisma.SortOrder;
450
+ };
451
+ export type ArtifactCountOrderByAggregateInput = {
452
+ id?: Prisma.SortOrder;
453
+ workspaceId?: Prisma.SortOrder;
454
+ type?: Prisma.SortOrder;
455
+ title?: Prisma.SortOrder;
456
+ isArchived?: Prisma.SortOrder;
457
+ difficulty?: Prisma.SortOrder;
458
+ estimatedTime?: Prisma.SortOrder;
459
+ createdById?: Prisma.SortOrder;
460
+ createdAt?: Prisma.SortOrder;
461
+ updatedAt?: Prisma.SortOrder;
462
+ description?: Prisma.SortOrder;
463
+ generating?: Prisma.SortOrder;
464
+ generatingMetadata?: Prisma.SortOrder;
465
+ worksheetConfig?: Prisma.SortOrder;
466
+ imageObjectKey?: Prisma.SortOrder;
467
+ };
468
+ export type ArtifactMaxOrderByAggregateInput = {
469
+ id?: Prisma.SortOrder;
470
+ workspaceId?: Prisma.SortOrder;
471
+ type?: Prisma.SortOrder;
472
+ title?: Prisma.SortOrder;
473
+ isArchived?: Prisma.SortOrder;
474
+ difficulty?: Prisma.SortOrder;
475
+ estimatedTime?: Prisma.SortOrder;
476
+ createdById?: Prisma.SortOrder;
477
+ createdAt?: Prisma.SortOrder;
478
+ updatedAt?: Prisma.SortOrder;
479
+ description?: Prisma.SortOrder;
480
+ generating?: Prisma.SortOrder;
481
+ imageObjectKey?: Prisma.SortOrder;
482
+ };
483
+ export type ArtifactMinOrderByAggregateInput = {
484
+ id?: Prisma.SortOrder;
485
+ workspaceId?: Prisma.SortOrder;
486
+ type?: Prisma.SortOrder;
487
+ title?: Prisma.SortOrder;
488
+ isArchived?: Prisma.SortOrder;
489
+ difficulty?: Prisma.SortOrder;
490
+ estimatedTime?: Prisma.SortOrder;
491
+ createdById?: Prisma.SortOrder;
492
+ createdAt?: Prisma.SortOrder;
493
+ updatedAt?: Prisma.SortOrder;
494
+ description?: Prisma.SortOrder;
495
+ generating?: Prisma.SortOrder;
496
+ imageObjectKey?: Prisma.SortOrder;
497
+ };
498
+ export type ArtifactScalarRelationFilter = {
499
+ is?: Prisma.ArtifactWhereInput;
500
+ isNot?: Prisma.ArtifactWhereInput;
501
+ };
502
+ export type ArtifactCreateNestedManyWithoutCreatedByInput = {
503
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutCreatedByInput, Prisma.ArtifactUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactCreateWithoutCreatedByInput[] | Prisma.ArtifactUncheckedCreateWithoutCreatedByInput[];
504
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactCreateOrConnectWithoutCreatedByInput[];
505
+ createMany?: Prisma.ArtifactCreateManyCreatedByInputEnvelope;
506
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
507
+ };
508
+ export type ArtifactUncheckedCreateNestedManyWithoutCreatedByInput = {
509
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutCreatedByInput, Prisma.ArtifactUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactCreateWithoutCreatedByInput[] | Prisma.ArtifactUncheckedCreateWithoutCreatedByInput[];
510
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactCreateOrConnectWithoutCreatedByInput[];
511
+ createMany?: Prisma.ArtifactCreateManyCreatedByInputEnvelope;
512
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
513
+ };
514
+ export type ArtifactUpdateManyWithoutCreatedByNestedInput = {
515
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutCreatedByInput, Prisma.ArtifactUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactCreateWithoutCreatedByInput[] | Prisma.ArtifactUncheckedCreateWithoutCreatedByInput[];
516
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactCreateOrConnectWithoutCreatedByInput[];
517
+ upsert?: Prisma.ArtifactUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactUpsertWithWhereUniqueWithoutCreatedByInput[];
518
+ createMany?: Prisma.ArtifactCreateManyCreatedByInputEnvelope;
519
+ set?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
520
+ disconnect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
521
+ delete?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
522
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
523
+ update?: Prisma.ArtifactUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactUpdateWithWhereUniqueWithoutCreatedByInput[];
524
+ updateMany?: Prisma.ArtifactUpdateManyWithWhereWithoutCreatedByInput | Prisma.ArtifactUpdateManyWithWhereWithoutCreatedByInput[];
525
+ deleteMany?: Prisma.ArtifactScalarWhereInput | Prisma.ArtifactScalarWhereInput[];
526
+ };
527
+ export type ArtifactUncheckedUpdateManyWithoutCreatedByNestedInput = {
528
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutCreatedByInput, Prisma.ArtifactUncheckedCreateWithoutCreatedByInput> | Prisma.ArtifactCreateWithoutCreatedByInput[] | Prisma.ArtifactUncheckedCreateWithoutCreatedByInput[];
529
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutCreatedByInput | Prisma.ArtifactCreateOrConnectWithoutCreatedByInput[];
530
+ upsert?: Prisma.ArtifactUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactUpsertWithWhereUniqueWithoutCreatedByInput[];
531
+ createMany?: Prisma.ArtifactCreateManyCreatedByInputEnvelope;
532
+ set?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
533
+ disconnect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
534
+ delete?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
535
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
536
+ update?: Prisma.ArtifactUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ArtifactUpdateWithWhereUniqueWithoutCreatedByInput[];
537
+ updateMany?: Prisma.ArtifactUpdateManyWithWhereWithoutCreatedByInput | Prisma.ArtifactUpdateManyWithWhereWithoutCreatedByInput[];
538
+ deleteMany?: Prisma.ArtifactScalarWhereInput | Prisma.ArtifactScalarWhereInput[];
539
+ };
540
+ export type ArtifactCreateNestedManyWithoutWorkspaceInput = {
541
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutWorkspaceInput, Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput> | Prisma.ArtifactCreateWithoutWorkspaceInput[] | Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput[];
542
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput | Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput[];
543
+ createMany?: Prisma.ArtifactCreateManyWorkspaceInputEnvelope;
544
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
545
+ };
546
+ export type ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput = {
547
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutWorkspaceInput, Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput> | Prisma.ArtifactCreateWithoutWorkspaceInput[] | Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput[];
548
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput | Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput[];
549
+ createMany?: Prisma.ArtifactCreateManyWorkspaceInputEnvelope;
550
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
551
+ };
552
+ export type ArtifactUpdateManyWithoutWorkspaceNestedInput = {
553
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutWorkspaceInput, Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput> | Prisma.ArtifactCreateWithoutWorkspaceInput[] | Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput[];
554
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput | Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput[];
555
+ upsert?: Prisma.ArtifactUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.ArtifactUpsertWithWhereUniqueWithoutWorkspaceInput[];
556
+ createMany?: Prisma.ArtifactCreateManyWorkspaceInputEnvelope;
557
+ set?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
558
+ disconnect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
559
+ delete?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
560
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
561
+ update?: Prisma.ArtifactUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.ArtifactUpdateWithWhereUniqueWithoutWorkspaceInput[];
562
+ updateMany?: Prisma.ArtifactUpdateManyWithWhereWithoutWorkspaceInput | Prisma.ArtifactUpdateManyWithWhereWithoutWorkspaceInput[];
563
+ deleteMany?: Prisma.ArtifactScalarWhereInput | Prisma.ArtifactScalarWhereInput[];
564
+ };
565
+ export type ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput = {
566
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutWorkspaceInput, Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput> | Prisma.ArtifactCreateWithoutWorkspaceInput[] | Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput[];
567
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput | Prisma.ArtifactCreateOrConnectWithoutWorkspaceInput[];
568
+ upsert?: Prisma.ArtifactUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.ArtifactUpsertWithWhereUniqueWithoutWorkspaceInput[];
569
+ createMany?: Prisma.ArtifactCreateManyWorkspaceInputEnvelope;
570
+ set?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
571
+ disconnect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
572
+ delete?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
573
+ connect?: Prisma.ArtifactWhereUniqueInput | Prisma.ArtifactWhereUniqueInput[];
574
+ update?: Prisma.ArtifactUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.ArtifactUpdateWithWhereUniqueWithoutWorkspaceInput[];
575
+ updateMany?: Prisma.ArtifactUpdateManyWithWhereWithoutWorkspaceInput | Prisma.ArtifactUpdateManyWithWhereWithoutWorkspaceInput[];
576
+ deleteMany?: Prisma.ArtifactScalarWhereInput | Prisma.ArtifactScalarWhereInput[];
577
+ };
578
+ export type EnumArtifactTypeFieldUpdateOperationsInput = {
579
+ set?: $Enums.ArtifactType;
580
+ };
581
+ export type NullableEnumDifficultyFieldUpdateOperationsInput = {
582
+ set?: $Enums.Difficulty | null;
583
+ };
584
+ export type ArtifactCreateNestedOneWithoutVersionsInput = {
585
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutVersionsInput, Prisma.ArtifactUncheckedCreateWithoutVersionsInput>;
586
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutVersionsInput;
587
+ connect?: Prisma.ArtifactWhereUniqueInput;
588
+ };
589
+ export type ArtifactUpdateOneRequiredWithoutVersionsNestedInput = {
590
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutVersionsInput, Prisma.ArtifactUncheckedCreateWithoutVersionsInput>;
591
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutVersionsInput;
592
+ upsert?: Prisma.ArtifactUpsertWithoutVersionsInput;
593
+ connect?: Prisma.ArtifactWhereUniqueInput;
594
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ArtifactUpdateToOneWithWhereWithoutVersionsInput, Prisma.ArtifactUpdateWithoutVersionsInput>, Prisma.ArtifactUncheckedUpdateWithoutVersionsInput>;
595
+ };
596
+ export type ArtifactCreateNestedOneWithoutFlashcardsInput = {
597
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutFlashcardsInput, Prisma.ArtifactUncheckedCreateWithoutFlashcardsInput>;
598
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutFlashcardsInput;
599
+ connect?: Prisma.ArtifactWhereUniqueInput;
600
+ };
601
+ export type ArtifactUpdateOneRequiredWithoutFlashcardsNestedInput = {
602
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutFlashcardsInput, Prisma.ArtifactUncheckedCreateWithoutFlashcardsInput>;
603
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutFlashcardsInput;
604
+ upsert?: Prisma.ArtifactUpsertWithoutFlashcardsInput;
605
+ connect?: Prisma.ArtifactWhereUniqueInput;
606
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ArtifactUpdateToOneWithWhereWithoutFlashcardsInput, Prisma.ArtifactUpdateWithoutFlashcardsInput>, Prisma.ArtifactUncheckedUpdateWithoutFlashcardsInput>;
607
+ };
608
+ export type ArtifactCreateNestedOneWithoutQuestionsInput = {
609
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutQuestionsInput, Prisma.ArtifactUncheckedCreateWithoutQuestionsInput>;
610
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutQuestionsInput;
611
+ connect?: Prisma.ArtifactWhereUniqueInput;
612
+ };
613
+ export type ArtifactUpdateOneRequiredWithoutQuestionsNestedInput = {
614
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutQuestionsInput, Prisma.ArtifactUncheckedCreateWithoutQuestionsInput>;
615
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutQuestionsInput;
616
+ upsert?: Prisma.ArtifactUpsertWithoutQuestionsInput;
617
+ connect?: Prisma.ArtifactWhereUniqueInput;
618
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ArtifactUpdateToOneWithWhereWithoutQuestionsInput, Prisma.ArtifactUpdateWithoutQuestionsInput>, Prisma.ArtifactUncheckedUpdateWithoutQuestionsInput>;
619
+ };
620
+ export type ArtifactCreateNestedOneWithoutPodcastSegmentsInput = {
621
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutPodcastSegmentsInput, Prisma.ArtifactUncheckedCreateWithoutPodcastSegmentsInput>;
622
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutPodcastSegmentsInput;
623
+ connect?: Prisma.ArtifactWhereUniqueInput;
624
+ };
625
+ export type ArtifactUpdateOneRequiredWithoutPodcastSegmentsNestedInput = {
626
+ create?: Prisma.XOR<Prisma.ArtifactCreateWithoutPodcastSegmentsInput, Prisma.ArtifactUncheckedCreateWithoutPodcastSegmentsInput>;
627
+ connectOrCreate?: Prisma.ArtifactCreateOrConnectWithoutPodcastSegmentsInput;
628
+ upsert?: Prisma.ArtifactUpsertWithoutPodcastSegmentsInput;
629
+ connect?: Prisma.ArtifactWhereUniqueInput;
630
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ArtifactUpdateToOneWithWhereWithoutPodcastSegmentsInput, Prisma.ArtifactUpdateWithoutPodcastSegmentsInput>, Prisma.ArtifactUncheckedUpdateWithoutPodcastSegmentsInput>;
631
+ };
632
+ export type ArtifactCreateWithoutCreatedByInput = {
633
+ id?: string;
634
+ type: $Enums.ArtifactType;
635
+ title: string;
636
+ isArchived?: boolean;
637
+ difficulty?: $Enums.Difficulty | null;
638
+ estimatedTime?: string | null;
639
+ createdAt?: Date | string;
640
+ updatedAt?: Date | string;
641
+ description?: string | null;
642
+ generating?: boolean;
643
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
644
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
645
+ imageObjectKey?: string | null;
646
+ workspace: Prisma.WorkspaceCreateNestedOneWithoutArtifactsInput;
647
+ versions?: Prisma.ArtifactVersionCreateNestedManyWithoutArtifactInput;
648
+ flashcards?: Prisma.FlashcardCreateNestedManyWithoutArtifactInput;
649
+ podcastSegments?: Prisma.PodcastSegmentCreateNestedManyWithoutArtifactInput;
650
+ questions?: Prisma.WorksheetQuestionCreateNestedManyWithoutArtifactInput;
651
+ };
652
+ export type ArtifactUncheckedCreateWithoutCreatedByInput = {
653
+ id?: string;
654
+ workspaceId: string;
655
+ type: $Enums.ArtifactType;
656
+ title: string;
657
+ isArchived?: boolean;
658
+ difficulty?: $Enums.Difficulty | null;
659
+ estimatedTime?: string | null;
660
+ createdAt?: Date | string;
661
+ updatedAt?: Date | string;
662
+ description?: string | null;
663
+ generating?: boolean;
664
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
665
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
666
+ imageObjectKey?: string | null;
667
+ versions?: Prisma.ArtifactVersionUncheckedCreateNestedManyWithoutArtifactInput;
668
+ flashcards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutArtifactInput;
669
+ podcastSegments?: Prisma.PodcastSegmentUncheckedCreateNestedManyWithoutArtifactInput;
670
+ questions?: Prisma.WorksheetQuestionUncheckedCreateNestedManyWithoutArtifactInput;
671
+ };
672
+ export type ArtifactCreateOrConnectWithoutCreatedByInput = {
673
+ where: Prisma.ArtifactWhereUniqueInput;
674
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutCreatedByInput, Prisma.ArtifactUncheckedCreateWithoutCreatedByInput>;
675
+ };
676
+ export type ArtifactCreateManyCreatedByInputEnvelope = {
677
+ data: Prisma.ArtifactCreateManyCreatedByInput | Prisma.ArtifactCreateManyCreatedByInput[];
678
+ skipDuplicates?: boolean;
679
+ };
680
+ export type ArtifactUpsertWithWhereUniqueWithoutCreatedByInput = {
681
+ where: Prisma.ArtifactWhereUniqueInput;
682
+ update: Prisma.XOR<Prisma.ArtifactUpdateWithoutCreatedByInput, Prisma.ArtifactUncheckedUpdateWithoutCreatedByInput>;
683
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutCreatedByInput, Prisma.ArtifactUncheckedCreateWithoutCreatedByInput>;
684
+ };
685
+ export type ArtifactUpdateWithWhereUniqueWithoutCreatedByInput = {
686
+ where: Prisma.ArtifactWhereUniqueInput;
687
+ data: Prisma.XOR<Prisma.ArtifactUpdateWithoutCreatedByInput, Prisma.ArtifactUncheckedUpdateWithoutCreatedByInput>;
688
+ };
689
+ export type ArtifactUpdateManyWithWhereWithoutCreatedByInput = {
690
+ where: Prisma.ArtifactScalarWhereInput;
691
+ data: Prisma.XOR<Prisma.ArtifactUpdateManyMutationInput, Prisma.ArtifactUncheckedUpdateManyWithoutCreatedByInput>;
692
+ };
693
+ export type ArtifactScalarWhereInput = {
694
+ AND?: Prisma.ArtifactScalarWhereInput | Prisma.ArtifactScalarWhereInput[];
695
+ OR?: Prisma.ArtifactScalarWhereInput[];
696
+ NOT?: Prisma.ArtifactScalarWhereInput | Prisma.ArtifactScalarWhereInput[];
697
+ id?: Prisma.StringFilter<"Artifact"> | string;
698
+ workspaceId?: Prisma.StringFilter<"Artifact"> | string;
699
+ type?: Prisma.EnumArtifactTypeFilter<"Artifact"> | $Enums.ArtifactType;
700
+ title?: Prisma.StringFilter<"Artifact"> | string;
701
+ isArchived?: Prisma.BoolFilter<"Artifact"> | boolean;
702
+ difficulty?: Prisma.EnumDifficultyNullableFilter<"Artifact"> | $Enums.Difficulty | null;
703
+ estimatedTime?: Prisma.StringNullableFilter<"Artifact"> | string | null;
704
+ createdById?: Prisma.StringNullableFilter<"Artifact"> | string | null;
705
+ createdAt?: Prisma.DateTimeFilter<"Artifact"> | Date | string;
706
+ updatedAt?: Prisma.DateTimeFilter<"Artifact"> | Date | string;
707
+ description?: Prisma.StringNullableFilter<"Artifact"> | string | null;
708
+ generating?: Prisma.BoolFilter<"Artifact"> | boolean;
709
+ generatingMetadata?: Prisma.JsonNullableFilter<"Artifact">;
710
+ worksheetConfig?: Prisma.JsonNullableFilter<"Artifact">;
711
+ imageObjectKey?: Prisma.StringNullableFilter<"Artifact"> | string | null;
712
+ };
713
+ export type ArtifactCreateWithoutWorkspaceInput = {
714
+ id?: string;
715
+ type: $Enums.ArtifactType;
716
+ title: string;
717
+ isArchived?: boolean;
718
+ difficulty?: $Enums.Difficulty | null;
719
+ estimatedTime?: string | null;
720
+ createdAt?: Date | string;
721
+ updatedAt?: Date | string;
722
+ description?: string | null;
723
+ generating?: boolean;
724
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
725
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
726
+ imageObjectKey?: string | null;
727
+ createdBy?: Prisma.UserCreateNestedOneWithoutArtifactsInput;
728
+ versions?: Prisma.ArtifactVersionCreateNestedManyWithoutArtifactInput;
729
+ flashcards?: Prisma.FlashcardCreateNestedManyWithoutArtifactInput;
730
+ podcastSegments?: Prisma.PodcastSegmentCreateNestedManyWithoutArtifactInput;
731
+ questions?: Prisma.WorksheetQuestionCreateNestedManyWithoutArtifactInput;
732
+ };
733
+ export type ArtifactUncheckedCreateWithoutWorkspaceInput = {
734
+ id?: string;
735
+ type: $Enums.ArtifactType;
736
+ title: string;
737
+ isArchived?: boolean;
738
+ difficulty?: $Enums.Difficulty | null;
739
+ estimatedTime?: string | null;
740
+ createdById?: string | null;
741
+ createdAt?: Date | string;
742
+ updatedAt?: Date | string;
743
+ description?: string | null;
744
+ generating?: boolean;
745
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
746
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
747
+ imageObjectKey?: string | null;
748
+ versions?: Prisma.ArtifactVersionUncheckedCreateNestedManyWithoutArtifactInput;
749
+ flashcards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutArtifactInput;
750
+ podcastSegments?: Prisma.PodcastSegmentUncheckedCreateNestedManyWithoutArtifactInput;
751
+ questions?: Prisma.WorksheetQuestionUncheckedCreateNestedManyWithoutArtifactInput;
752
+ };
753
+ export type ArtifactCreateOrConnectWithoutWorkspaceInput = {
754
+ where: Prisma.ArtifactWhereUniqueInput;
755
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutWorkspaceInput, Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput>;
756
+ };
757
+ export type ArtifactCreateManyWorkspaceInputEnvelope = {
758
+ data: Prisma.ArtifactCreateManyWorkspaceInput | Prisma.ArtifactCreateManyWorkspaceInput[];
759
+ skipDuplicates?: boolean;
760
+ };
761
+ export type ArtifactUpsertWithWhereUniqueWithoutWorkspaceInput = {
762
+ where: Prisma.ArtifactWhereUniqueInput;
763
+ update: Prisma.XOR<Prisma.ArtifactUpdateWithoutWorkspaceInput, Prisma.ArtifactUncheckedUpdateWithoutWorkspaceInput>;
764
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutWorkspaceInput, Prisma.ArtifactUncheckedCreateWithoutWorkspaceInput>;
765
+ };
766
+ export type ArtifactUpdateWithWhereUniqueWithoutWorkspaceInput = {
767
+ where: Prisma.ArtifactWhereUniqueInput;
768
+ data: Prisma.XOR<Prisma.ArtifactUpdateWithoutWorkspaceInput, Prisma.ArtifactUncheckedUpdateWithoutWorkspaceInput>;
769
+ };
770
+ export type ArtifactUpdateManyWithWhereWithoutWorkspaceInput = {
771
+ where: Prisma.ArtifactScalarWhereInput;
772
+ data: Prisma.XOR<Prisma.ArtifactUpdateManyMutationInput, Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceInput>;
773
+ };
774
+ export type ArtifactCreateWithoutVersionsInput = {
775
+ id?: string;
776
+ type: $Enums.ArtifactType;
777
+ title: string;
778
+ isArchived?: boolean;
779
+ difficulty?: $Enums.Difficulty | null;
780
+ estimatedTime?: string | null;
781
+ createdAt?: Date | string;
782
+ updatedAt?: Date | string;
783
+ description?: string | null;
784
+ generating?: boolean;
785
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
786
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
787
+ imageObjectKey?: string | null;
788
+ createdBy?: Prisma.UserCreateNestedOneWithoutArtifactsInput;
789
+ workspace: Prisma.WorkspaceCreateNestedOneWithoutArtifactsInput;
790
+ flashcards?: Prisma.FlashcardCreateNestedManyWithoutArtifactInput;
791
+ podcastSegments?: Prisma.PodcastSegmentCreateNestedManyWithoutArtifactInput;
792
+ questions?: Prisma.WorksheetQuestionCreateNestedManyWithoutArtifactInput;
793
+ };
794
+ export type ArtifactUncheckedCreateWithoutVersionsInput = {
795
+ id?: string;
796
+ workspaceId: string;
797
+ type: $Enums.ArtifactType;
798
+ title: string;
799
+ isArchived?: boolean;
800
+ difficulty?: $Enums.Difficulty | null;
801
+ estimatedTime?: string | null;
802
+ createdById?: string | null;
803
+ createdAt?: Date | string;
804
+ updatedAt?: Date | string;
805
+ description?: string | null;
806
+ generating?: boolean;
807
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
808
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
809
+ imageObjectKey?: string | null;
810
+ flashcards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutArtifactInput;
811
+ podcastSegments?: Prisma.PodcastSegmentUncheckedCreateNestedManyWithoutArtifactInput;
812
+ questions?: Prisma.WorksheetQuestionUncheckedCreateNestedManyWithoutArtifactInput;
813
+ };
814
+ export type ArtifactCreateOrConnectWithoutVersionsInput = {
815
+ where: Prisma.ArtifactWhereUniqueInput;
816
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutVersionsInput, Prisma.ArtifactUncheckedCreateWithoutVersionsInput>;
817
+ };
818
+ export type ArtifactUpsertWithoutVersionsInput = {
819
+ update: Prisma.XOR<Prisma.ArtifactUpdateWithoutVersionsInput, Prisma.ArtifactUncheckedUpdateWithoutVersionsInput>;
820
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutVersionsInput, Prisma.ArtifactUncheckedCreateWithoutVersionsInput>;
821
+ where?: Prisma.ArtifactWhereInput;
822
+ };
823
+ export type ArtifactUpdateToOneWithWhereWithoutVersionsInput = {
824
+ where?: Prisma.ArtifactWhereInput;
825
+ data: Prisma.XOR<Prisma.ArtifactUpdateWithoutVersionsInput, Prisma.ArtifactUncheckedUpdateWithoutVersionsInput>;
826
+ };
827
+ export type ArtifactUpdateWithoutVersionsInput = {
828
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
829
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
830
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
831
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
832
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
833
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
834
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
835
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
836
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
837
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
838
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
839
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
840
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
841
+ createdBy?: Prisma.UserUpdateOneWithoutArtifactsNestedInput;
842
+ workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutArtifactsNestedInput;
843
+ flashcards?: Prisma.FlashcardUpdateManyWithoutArtifactNestedInput;
844
+ podcastSegments?: Prisma.PodcastSegmentUpdateManyWithoutArtifactNestedInput;
845
+ questions?: Prisma.WorksheetQuestionUpdateManyWithoutArtifactNestedInput;
846
+ };
847
+ export type ArtifactUncheckedUpdateWithoutVersionsInput = {
848
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
849
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
850
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
851
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
852
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
853
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
854
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
855
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
856
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
857
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
858
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
859
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
860
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
861
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
862
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
863
+ flashcards?: Prisma.FlashcardUncheckedUpdateManyWithoutArtifactNestedInput;
864
+ podcastSegments?: Prisma.PodcastSegmentUncheckedUpdateManyWithoutArtifactNestedInput;
865
+ questions?: Prisma.WorksheetQuestionUncheckedUpdateManyWithoutArtifactNestedInput;
866
+ };
867
+ export type ArtifactCreateWithoutFlashcardsInput = {
868
+ id?: string;
869
+ type: $Enums.ArtifactType;
870
+ title: string;
871
+ isArchived?: boolean;
872
+ difficulty?: $Enums.Difficulty | null;
873
+ estimatedTime?: string | null;
874
+ createdAt?: Date | string;
875
+ updatedAt?: Date | string;
876
+ description?: string | null;
877
+ generating?: boolean;
878
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
879
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
880
+ imageObjectKey?: string | null;
881
+ createdBy?: Prisma.UserCreateNestedOneWithoutArtifactsInput;
882
+ workspace: Prisma.WorkspaceCreateNestedOneWithoutArtifactsInput;
883
+ versions?: Prisma.ArtifactVersionCreateNestedManyWithoutArtifactInput;
884
+ podcastSegments?: Prisma.PodcastSegmentCreateNestedManyWithoutArtifactInput;
885
+ questions?: Prisma.WorksheetQuestionCreateNestedManyWithoutArtifactInput;
886
+ };
887
+ export type ArtifactUncheckedCreateWithoutFlashcardsInput = {
888
+ id?: string;
889
+ workspaceId: string;
890
+ type: $Enums.ArtifactType;
891
+ title: string;
892
+ isArchived?: boolean;
893
+ difficulty?: $Enums.Difficulty | null;
894
+ estimatedTime?: string | null;
895
+ createdById?: string | null;
896
+ createdAt?: Date | string;
897
+ updatedAt?: Date | string;
898
+ description?: string | null;
899
+ generating?: boolean;
900
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
901
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
902
+ imageObjectKey?: string | null;
903
+ versions?: Prisma.ArtifactVersionUncheckedCreateNestedManyWithoutArtifactInput;
904
+ podcastSegments?: Prisma.PodcastSegmentUncheckedCreateNestedManyWithoutArtifactInput;
905
+ questions?: Prisma.WorksheetQuestionUncheckedCreateNestedManyWithoutArtifactInput;
906
+ };
907
+ export type ArtifactCreateOrConnectWithoutFlashcardsInput = {
908
+ where: Prisma.ArtifactWhereUniqueInput;
909
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutFlashcardsInput, Prisma.ArtifactUncheckedCreateWithoutFlashcardsInput>;
910
+ };
911
+ export type ArtifactUpsertWithoutFlashcardsInput = {
912
+ update: Prisma.XOR<Prisma.ArtifactUpdateWithoutFlashcardsInput, Prisma.ArtifactUncheckedUpdateWithoutFlashcardsInput>;
913
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutFlashcardsInput, Prisma.ArtifactUncheckedCreateWithoutFlashcardsInput>;
914
+ where?: Prisma.ArtifactWhereInput;
915
+ };
916
+ export type ArtifactUpdateToOneWithWhereWithoutFlashcardsInput = {
917
+ where?: Prisma.ArtifactWhereInput;
918
+ data: Prisma.XOR<Prisma.ArtifactUpdateWithoutFlashcardsInput, Prisma.ArtifactUncheckedUpdateWithoutFlashcardsInput>;
919
+ };
920
+ export type ArtifactUpdateWithoutFlashcardsInput = {
921
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
922
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
923
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
924
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
925
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
926
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
927
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
928
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
929
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
930
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
931
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
932
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
933
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
934
+ createdBy?: Prisma.UserUpdateOneWithoutArtifactsNestedInput;
935
+ workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutArtifactsNestedInput;
936
+ versions?: Prisma.ArtifactVersionUpdateManyWithoutArtifactNestedInput;
937
+ podcastSegments?: Prisma.PodcastSegmentUpdateManyWithoutArtifactNestedInput;
938
+ questions?: Prisma.WorksheetQuestionUpdateManyWithoutArtifactNestedInput;
939
+ };
940
+ export type ArtifactUncheckedUpdateWithoutFlashcardsInput = {
941
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
942
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
943
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
944
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
945
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
946
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
947
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
948
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
949
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
950
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
951
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
952
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
953
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
954
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
955
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
956
+ versions?: Prisma.ArtifactVersionUncheckedUpdateManyWithoutArtifactNestedInput;
957
+ podcastSegments?: Prisma.PodcastSegmentUncheckedUpdateManyWithoutArtifactNestedInput;
958
+ questions?: Prisma.WorksheetQuestionUncheckedUpdateManyWithoutArtifactNestedInput;
959
+ };
960
+ export type ArtifactCreateWithoutQuestionsInput = {
961
+ id?: string;
962
+ type: $Enums.ArtifactType;
963
+ title: string;
964
+ isArchived?: boolean;
965
+ difficulty?: $Enums.Difficulty | null;
966
+ estimatedTime?: string | null;
967
+ createdAt?: Date | string;
968
+ updatedAt?: Date | string;
969
+ description?: string | null;
970
+ generating?: boolean;
971
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
972
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
973
+ imageObjectKey?: string | null;
974
+ createdBy?: Prisma.UserCreateNestedOneWithoutArtifactsInput;
975
+ workspace: Prisma.WorkspaceCreateNestedOneWithoutArtifactsInput;
976
+ versions?: Prisma.ArtifactVersionCreateNestedManyWithoutArtifactInput;
977
+ flashcards?: Prisma.FlashcardCreateNestedManyWithoutArtifactInput;
978
+ podcastSegments?: Prisma.PodcastSegmentCreateNestedManyWithoutArtifactInput;
979
+ };
980
+ export type ArtifactUncheckedCreateWithoutQuestionsInput = {
981
+ id?: string;
982
+ workspaceId: string;
983
+ type: $Enums.ArtifactType;
984
+ title: string;
985
+ isArchived?: boolean;
986
+ difficulty?: $Enums.Difficulty | null;
987
+ estimatedTime?: string | null;
988
+ createdById?: string | null;
989
+ createdAt?: Date | string;
990
+ updatedAt?: Date | string;
991
+ description?: string | null;
992
+ generating?: boolean;
993
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
994
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
995
+ imageObjectKey?: string | null;
996
+ versions?: Prisma.ArtifactVersionUncheckedCreateNestedManyWithoutArtifactInput;
997
+ flashcards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutArtifactInput;
998
+ podcastSegments?: Prisma.PodcastSegmentUncheckedCreateNestedManyWithoutArtifactInput;
999
+ };
1000
+ export type ArtifactCreateOrConnectWithoutQuestionsInput = {
1001
+ where: Prisma.ArtifactWhereUniqueInput;
1002
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutQuestionsInput, Prisma.ArtifactUncheckedCreateWithoutQuestionsInput>;
1003
+ };
1004
+ export type ArtifactUpsertWithoutQuestionsInput = {
1005
+ update: Prisma.XOR<Prisma.ArtifactUpdateWithoutQuestionsInput, Prisma.ArtifactUncheckedUpdateWithoutQuestionsInput>;
1006
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutQuestionsInput, Prisma.ArtifactUncheckedCreateWithoutQuestionsInput>;
1007
+ where?: Prisma.ArtifactWhereInput;
1008
+ };
1009
+ export type ArtifactUpdateToOneWithWhereWithoutQuestionsInput = {
1010
+ where?: Prisma.ArtifactWhereInput;
1011
+ data: Prisma.XOR<Prisma.ArtifactUpdateWithoutQuestionsInput, Prisma.ArtifactUncheckedUpdateWithoutQuestionsInput>;
1012
+ };
1013
+ export type ArtifactUpdateWithoutQuestionsInput = {
1014
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1015
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1016
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1017
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1018
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1019
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1021
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1022
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1023
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1024
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1025
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1026
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1027
+ createdBy?: Prisma.UserUpdateOneWithoutArtifactsNestedInput;
1028
+ workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutArtifactsNestedInput;
1029
+ versions?: Prisma.ArtifactVersionUpdateManyWithoutArtifactNestedInput;
1030
+ flashcards?: Prisma.FlashcardUpdateManyWithoutArtifactNestedInput;
1031
+ podcastSegments?: Prisma.PodcastSegmentUpdateManyWithoutArtifactNestedInput;
1032
+ };
1033
+ export type ArtifactUncheckedUpdateWithoutQuestionsInput = {
1034
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1035
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
1036
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1037
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1038
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1039
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1040
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1041
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1042
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1043
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1044
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1045
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1046
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1047
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1048
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1049
+ versions?: Prisma.ArtifactVersionUncheckedUpdateManyWithoutArtifactNestedInput;
1050
+ flashcards?: Prisma.FlashcardUncheckedUpdateManyWithoutArtifactNestedInput;
1051
+ podcastSegments?: Prisma.PodcastSegmentUncheckedUpdateManyWithoutArtifactNestedInput;
1052
+ };
1053
+ export type ArtifactCreateWithoutPodcastSegmentsInput = {
1054
+ id?: string;
1055
+ type: $Enums.ArtifactType;
1056
+ title: string;
1057
+ isArchived?: boolean;
1058
+ difficulty?: $Enums.Difficulty | null;
1059
+ estimatedTime?: string | null;
1060
+ createdAt?: Date | string;
1061
+ updatedAt?: Date | string;
1062
+ description?: string | null;
1063
+ generating?: boolean;
1064
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1065
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1066
+ imageObjectKey?: string | null;
1067
+ createdBy?: Prisma.UserCreateNestedOneWithoutArtifactsInput;
1068
+ workspace: Prisma.WorkspaceCreateNestedOneWithoutArtifactsInput;
1069
+ versions?: Prisma.ArtifactVersionCreateNestedManyWithoutArtifactInput;
1070
+ flashcards?: Prisma.FlashcardCreateNestedManyWithoutArtifactInput;
1071
+ questions?: Prisma.WorksheetQuestionCreateNestedManyWithoutArtifactInput;
1072
+ };
1073
+ export type ArtifactUncheckedCreateWithoutPodcastSegmentsInput = {
1074
+ id?: string;
1075
+ workspaceId: string;
1076
+ type: $Enums.ArtifactType;
1077
+ title: string;
1078
+ isArchived?: boolean;
1079
+ difficulty?: $Enums.Difficulty | null;
1080
+ estimatedTime?: string | null;
1081
+ createdById?: string | null;
1082
+ createdAt?: Date | string;
1083
+ updatedAt?: Date | string;
1084
+ description?: string | null;
1085
+ generating?: boolean;
1086
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1087
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1088
+ imageObjectKey?: string | null;
1089
+ versions?: Prisma.ArtifactVersionUncheckedCreateNestedManyWithoutArtifactInput;
1090
+ flashcards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutArtifactInput;
1091
+ questions?: Prisma.WorksheetQuestionUncheckedCreateNestedManyWithoutArtifactInput;
1092
+ };
1093
+ export type ArtifactCreateOrConnectWithoutPodcastSegmentsInput = {
1094
+ where: Prisma.ArtifactWhereUniqueInput;
1095
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutPodcastSegmentsInput, Prisma.ArtifactUncheckedCreateWithoutPodcastSegmentsInput>;
1096
+ };
1097
+ export type ArtifactUpsertWithoutPodcastSegmentsInput = {
1098
+ update: Prisma.XOR<Prisma.ArtifactUpdateWithoutPodcastSegmentsInput, Prisma.ArtifactUncheckedUpdateWithoutPodcastSegmentsInput>;
1099
+ create: Prisma.XOR<Prisma.ArtifactCreateWithoutPodcastSegmentsInput, Prisma.ArtifactUncheckedCreateWithoutPodcastSegmentsInput>;
1100
+ where?: Prisma.ArtifactWhereInput;
1101
+ };
1102
+ export type ArtifactUpdateToOneWithWhereWithoutPodcastSegmentsInput = {
1103
+ where?: Prisma.ArtifactWhereInput;
1104
+ data: Prisma.XOR<Prisma.ArtifactUpdateWithoutPodcastSegmentsInput, Prisma.ArtifactUncheckedUpdateWithoutPodcastSegmentsInput>;
1105
+ };
1106
+ export type ArtifactUpdateWithoutPodcastSegmentsInput = {
1107
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1108
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1109
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1110
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1111
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1112
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1113
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1114
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1115
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1116
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1117
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1118
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1119
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1120
+ createdBy?: Prisma.UserUpdateOneWithoutArtifactsNestedInput;
1121
+ workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutArtifactsNestedInput;
1122
+ versions?: Prisma.ArtifactVersionUpdateManyWithoutArtifactNestedInput;
1123
+ flashcards?: Prisma.FlashcardUpdateManyWithoutArtifactNestedInput;
1124
+ questions?: Prisma.WorksheetQuestionUpdateManyWithoutArtifactNestedInput;
1125
+ };
1126
+ export type ArtifactUncheckedUpdateWithoutPodcastSegmentsInput = {
1127
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1128
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
1129
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1130
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1131
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1132
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1133
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1134
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1135
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1136
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1137
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1138
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1139
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1140
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1141
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1142
+ versions?: Prisma.ArtifactVersionUncheckedUpdateManyWithoutArtifactNestedInput;
1143
+ flashcards?: Prisma.FlashcardUncheckedUpdateManyWithoutArtifactNestedInput;
1144
+ questions?: Prisma.WorksheetQuestionUncheckedUpdateManyWithoutArtifactNestedInput;
1145
+ };
1146
+ export type ArtifactCreateManyCreatedByInput = {
1147
+ id?: string;
1148
+ workspaceId: string;
1149
+ type: $Enums.ArtifactType;
1150
+ title: string;
1151
+ isArchived?: boolean;
1152
+ difficulty?: $Enums.Difficulty | null;
1153
+ estimatedTime?: string | null;
1154
+ createdAt?: Date | string;
1155
+ updatedAt?: Date | string;
1156
+ description?: string | null;
1157
+ generating?: boolean;
1158
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1159
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1160
+ imageObjectKey?: string | null;
1161
+ };
1162
+ export type ArtifactUpdateWithoutCreatedByInput = {
1163
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1164
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1165
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1166
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1167
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1168
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1169
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1170
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1171
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1172
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1173
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1174
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1175
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1176
+ workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutArtifactsNestedInput;
1177
+ versions?: Prisma.ArtifactVersionUpdateManyWithoutArtifactNestedInput;
1178
+ flashcards?: Prisma.FlashcardUpdateManyWithoutArtifactNestedInput;
1179
+ podcastSegments?: Prisma.PodcastSegmentUpdateManyWithoutArtifactNestedInput;
1180
+ questions?: Prisma.WorksheetQuestionUpdateManyWithoutArtifactNestedInput;
1181
+ };
1182
+ export type ArtifactUncheckedUpdateWithoutCreatedByInput = {
1183
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1184
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
1185
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1186
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1187
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1188
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1189
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1190
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1191
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1192
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1193
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1194
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1195
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1196
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1197
+ versions?: Prisma.ArtifactVersionUncheckedUpdateManyWithoutArtifactNestedInput;
1198
+ flashcards?: Prisma.FlashcardUncheckedUpdateManyWithoutArtifactNestedInput;
1199
+ podcastSegments?: Prisma.PodcastSegmentUncheckedUpdateManyWithoutArtifactNestedInput;
1200
+ questions?: Prisma.WorksheetQuestionUncheckedUpdateManyWithoutArtifactNestedInput;
1201
+ };
1202
+ export type ArtifactUncheckedUpdateManyWithoutCreatedByInput = {
1203
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1204
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string;
1205
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1206
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1207
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1208
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1209
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1210
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1211
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1212
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1213
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1214
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1215
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1216
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1217
+ };
1218
+ export type ArtifactCreateManyWorkspaceInput = {
1219
+ id?: string;
1220
+ type: $Enums.ArtifactType;
1221
+ title: string;
1222
+ isArchived?: boolean;
1223
+ difficulty?: $Enums.Difficulty | null;
1224
+ estimatedTime?: string | null;
1225
+ createdById?: string | null;
1226
+ createdAt?: Date | string;
1227
+ updatedAt?: Date | string;
1228
+ description?: string | null;
1229
+ generating?: boolean;
1230
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1231
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1232
+ imageObjectKey?: string | null;
1233
+ };
1234
+ export type ArtifactUpdateWithoutWorkspaceInput = {
1235
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1236
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1237
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1238
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1239
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1240
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1241
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1242
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1243
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1244
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1245
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1246
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1247
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1248
+ createdBy?: Prisma.UserUpdateOneWithoutArtifactsNestedInput;
1249
+ versions?: Prisma.ArtifactVersionUpdateManyWithoutArtifactNestedInput;
1250
+ flashcards?: Prisma.FlashcardUpdateManyWithoutArtifactNestedInput;
1251
+ podcastSegments?: Prisma.PodcastSegmentUpdateManyWithoutArtifactNestedInput;
1252
+ questions?: Prisma.WorksheetQuestionUpdateManyWithoutArtifactNestedInput;
1253
+ };
1254
+ export type ArtifactUncheckedUpdateWithoutWorkspaceInput = {
1255
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1256
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1257
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1258
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1259
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1260
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1261
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1262
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1263
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1264
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1265
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1266
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1267
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1268
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1269
+ versions?: Prisma.ArtifactVersionUncheckedUpdateManyWithoutArtifactNestedInput;
1270
+ flashcards?: Prisma.FlashcardUncheckedUpdateManyWithoutArtifactNestedInput;
1271
+ podcastSegments?: Prisma.PodcastSegmentUncheckedUpdateManyWithoutArtifactNestedInput;
1272
+ questions?: Prisma.WorksheetQuestionUncheckedUpdateManyWithoutArtifactNestedInput;
1273
+ };
1274
+ export type ArtifactUncheckedUpdateManyWithoutWorkspaceInput = {
1275
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1276
+ type?: Prisma.EnumArtifactTypeFieldUpdateOperationsInput | $Enums.ArtifactType;
1277
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1278
+ isArchived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1279
+ difficulty?: Prisma.NullableEnumDifficultyFieldUpdateOperationsInput | $Enums.Difficulty | null;
1280
+ estimatedTime?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1281
+ createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1282
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1283
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1284
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1285
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1286
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1287
+ worksheetConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1288
+ imageObjectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1289
+ };
1290
+ /**
1291
+ * Count Type ArtifactCountOutputType
1292
+ */
1293
+ export type ArtifactCountOutputType = {
1294
+ versions: number;
1295
+ flashcards: number;
1296
+ podcastSegments: number;
1297
+ questions: number;
1298
+ };
1299
+ export type ArtifactCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1300
+ versions?: boolean | ArtifactCountOutputTypeCountVersionsArgs;
1301
+ flashcards?: boolean | ArtifactCountOutputTypeCountFlashcardsArgs;
1302
+ podcastSegments?: boolean | ArtifactCountOutputTypeCountPodcastSegmentsArgs;
1303
+ questions?: boolean | ArtifactCountOutputTypeCountQuestionsArgs;
1304
+ };
1305
+ /**
1306
+ * ArtifactCountOutputType without action
1307
+ */
1308
+ export type ArtifactCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1309
+ /**
1310
+ * Select specific fields to fetch from the ArtifactCountOutputType
1311
+ */
1312
+ select?: Prisma.ArtifactCountOutputTypeSelect<ExtArgs> | null;
1313
+ };
1314
+ /**
1315
+ * ArtifactCountOutputType without action
1316
+ */
1317
+ export type ArtifactCountOutputTypeCountVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ where?: Prisma.ArtifactVersionWhereInput;
1319
+ };
1320
+ /**
1321
+ * ArtifactCountOutputType without action
1322
+ */
1323
+ export type ArtifactCountOutputTypeCountFlashcardsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1324
+ where?: Prisma.FlashcardWhereInput;
1325
+ };
1326
+ /**
1327
+ * ArtifactCountOutputType without action
1328
+ */
1329
+ export type ArtifactCountOutputTypeCountPodcastSegmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1330
+ where?: Prisma.PodcastSegmentWhereInput;
1331
+ };
1332
+ /**
1333
+ * ArtifactCountOutputType without action
1334
+ */
1335
+ export type ArtifactCountOutputTypeCountQuestionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1336
+ where?: Prisma.WorksheetQuestionWhereInput;
1337
+ };
1338
+ export type ArtifactSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1339
+ id?: boolean;
1340
+ workspaceId?: boolean;
1341
+ type?: boolean;
1342
+ title?: boolean;
1343
+ isArchived?: boolean;
1344
+ difficulty?: boolean;
1345
+ estimatedTime?: boolean;
1346
+ createdById?: boolean;
1347
+ createdAt?: boolean;
1348
+ updatedAt?: boolean;
1349
+ description?: boolean;
1350
+ generating?: boolean;
1351
+ generatingMetadata?: boolean;
1352
+ worksheetConfig?: boolean;
1353
+ imageObjectKey?: boolean;
1354
+ createdBy?: boolean | Prisma.Artifact$createdByArgs<ExtArgs>;
1355
+ workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
1356
+ versions?: boolean | Prisma.Artifact$versionsArgs<ExtArgs>;
1357
+ flashcards?: boolean | Prisma.Artifact$flashcardsArgs<ExtArgs>;
1358
+ podcastSegments?: boolean | Prisma.Artifact$podcastSegmentsArgs<ExtArgs>;
1359
+ questions?: boolean | Prisma.Artifact$questionsArgs<ExtArgs>;
1360
+ _count?: boolean | Prisma.ArtifactCountOutputTypeDefaultArgs<ExtArgs>;
1361
+ }, ExtArgs["result"]["artifact"]>;
1362
+ export type ArtifactSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1363
+ id?: boolean;
1364
+ workspaceId?: boolean;
1365
+ type?: boolean;
1366
+ title?: boolean;
1367
+ isArchived?: boolean;
1368
+ difficulty?: boolean;
1369
+ estimatedTime?: boolean;
1370
+ createdById?: boolean;
1371
+ createdAt?: boolean;
1372
+ updatedAt?: boolean;
1373
+ description?: boolean;
1374
+ generating?: boolean;
1375
+ generatingMetadata?: boolean;
1376
+ worksheetConfig?: boolean;
1377
+ imageObjectKey?: boolean;
1378
+ createdBy?: boolean | Prisma.Artifact$createdByArgs<ExtArgs>;
1379
+ workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
1380
+ }, ExtArgs["result"]["artifact"]>;
1381
+ export type ArtifactSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1382
+ id?: boolean;
1383
+ workspaceId?: boolean;
1384
+ type?: boolean;
1385
+ title?: boolean;
1386
+ isArchived?: boolean;
1387
+ difficulty?: boolean;
1388
+ estimatedTime?: boolean;
1389
+ createdById?: boolean;
1390
+ createdAt?: boolean;
1391
+ updatedAt?: boolean;
1392
+ description?: boolean;
1393
+ generating?: boolean;
1394
+ generatingMetadata?: boolean;
1395
+ worksheetConfig?: boolean;
1396
+ imageObjectKey?: boolean;
1397
+ createdBy?: boolean | Prisma.Artifact$createdByArgs<ExtArgs>;
1398
+ workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
1399
+ }, ExtArgs["result"]["artifact"]>;
1400
+ export type ArtifactSelectScalar = {
1401
+ id?: boolean;
1402
+ workspaceId?: boolean;
1403
+ type?: boolean;
1404
+ title?: boolean;
1405
+ isArchived?: boolean;
1406
+ difficulty?: boolean;
1407
+ estimatedTime?: boolean;
1408
+ createdById?: boolean;
1409
+ createdAt?: boolean;
1410
+ updatedAt?: boolean;
1411
+ description?: boolean;
1412
+ generating?: boolean;
1413
+ generatingMetadata?: boolean;
1414
+ worksheetConfig?: boolean;
1415
+ imageObjectKey?: boolean;
1416
+ };
1417
+ export type ArtifactOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "workspaceId" | "type" | "title" | "isArchived" | "difficulty" | "estimatedTime" | "createdById" | "createdAt" | "updatedAt" | "description" | "generating" | "generatingMetadata" | "worksheetConfig" | "imageObjectKey", ExtArgs["result"]["artifact"]>;
1418
+ export type ArtifactInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ createdBy?: boolean | Prisma.Artifact$createdByArgs<ExtArgs>;
1420
+ workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
1421
+ versions?: boolean | Prisma.Artifact$versionsArgs<ExtArgs>;
1422
+ flashcards?: boolean | Prisma.Artifact$flashcardsArgs<ExtArgs>;
1423
+ podcastSegments?: boolean | Prisma.Artifact$podcastSegmentsArgs<ExtArgs>;
1424
+ questions?: boolean | Prisma.Artifact$questionsArgs<ExtArgs>;
1425
+ _count?: boolean | Prisma.ArtifactCountOutputTypeDefaultArgs<ExtArgs>;
1426
+ };
1427
+ export type ArtifactIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1428
+ createdBy?: boolean | Prisma.Artifact$createdByArgs<ExtArgs>;
1429
+ workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
1430
+ };
1431
+ export type ArtifactIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1432
+ createdBy?: boolean | Prisma.Artifact$createdByArgs<ExtArgs>;
1433
+ workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>;
1434
+ };
1435
+ export type $ArtifactPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1436
+ name: "Artifact";
1437
+ objects: {
1438
+ createdBy: Prisma.$UserPayload<ExtArgs> | null;
1439
+ workspace: Prisma.$WorkspacePayload<ExtArgs>;
1440
+ versions: Prisma.$ArtifactVersionPayload<ExtArgs>[];
1441
+ flashcards: Prisma.$FlashcardPayload<ExtArgs>[];
1442
+ podcastSegments: Prisma.$PodcastSegmentPayload<ExtArgs>[];
1443
+ questions: Prisma.$WorksheetQuestionPayload<ExtArgs>[];
1444
+ };
1445
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1446
+ id: string;
1447
+ workspaceId: string;
1448
+ type: $Enums.ArtifactType;
1449
+ title: string;
1450
+ isArchived: boolean;
1451
+ difficulty: $Enums.Difficulty | null;
1452
+ estimatedTime: string | null;
1453
+ createdById: string | null;
1454
+ createdAt: Date;
1455
+ updatedAt: Date;
1456
+ description: string | null;
1457
+ generating: boolean;
1458
+ generatingMetadata: runtime.JsonValue | null;
1459
+ worksheetConfig: runtime.JsonValue | null;
1460
+ imageObjectKey: string | null;
1461
+ }, ExtArgs["result"]["artifact"]>;
1462
+ composites: {};
1463
+ };
1464
+ export type ArtifactGetPayload<S extends boolean | null | undefined | ArtifactDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ArtifactPayload, S>;
1465
+ export type ArtifactCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ArtifactFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1466
+ select?: ArtifactCountAggregateInputType | true;
1467
+ };
1468
+ export interface ArtifactDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1469
+ [K: symbol]: {
1470
+ types: Prisma.TypeMap<ExtArgs>['model']['Artifact'];
1471
+ meta: {
1472
+ name: 'Artifact';
1473
+ };
1474
+ };
1475
+ /**
1476
+ * Find zero or one Artifact that matches the filter.
1477
+ * @param {ArtifactFindUniqueArgs} args - Arguments to find a Artifact
1478
+ * @example
1479
+ * // Get one Artifact
1480
+ * const artifact = await prisma.artifact.findUnique({
1481
+ * where: {
1482
+ * // ... provide filter here
1483
+ * }
1484
+ * })
1485
+ */
1486
+ findUnique<T extends ArtifactFindUniqueArgs>(args: Prisma.SelectSubset<T, ArtifactFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1487
+ /**
1488
+ * Find one Artifact that matches the filter or throw an error with `error.code='P2025'`
1489
+ * if no matches were found.
1490
+ * @param {ArtifactFindUniqueOrThrowArgs} args - Arguments to find a Artifact
1491
+ * @example
1492
+ * // Get one Artifact
1493
+ * const artifact = await prisma.artifact.findUniqueOrThrow({
1494
+ * where: {
1495
+ * // ... provide filter here
1496
+ * }
1497
+ * })
1498
+ */
1499
+ findUniqueOrThrow<T extends ArtifactFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ArtifactFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1500
+ /**
1501
+ * Find the first Artifact that matches the filter.
1502
+ * Note, that providing `undefined` is treated as the value not being there.
1503
+ * Read more here: https://pris.ly/d/null-undefined
1504
+ * @param {ArtifactFindFirstArgs} args - Arguments to find a Artifact
1505
+ * @example
1506
+ * // Get one Artifact
1507
+ * const artifact = await prisma.artifact.findFirst({
1508
+ * where: {
1509
+ * // ... provide filter here
1510
+ * }
1511
+ * })
1512
+ */
1513
+ findFirst<T extends ArtifactFindFirstArgs>(args?: Prisma.SelectSubset<T, ArtifactFindFirstArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1514
+ /**
1515
+ * Find the first Artifact that matches the filter or
1516
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1517
+ * Note, that providing `undefined` is treated as the value not being there.
1518
+ * Read more here: https://pris.ly/d/null-undefined
1519
+ * @param {ArtifactFindFirstOrThrowArgs} args - Arguments to find a Artifact
1520
+ * @example
1521
+ * // Get one Artifact
1522
+ * const artifact = await prisma.artifact.findFirstOrThrow({
1523
+ * where: {
1524
+ * // ... provide filter here
1525
+ * }
1526
+ * })
1527
+ */
1528
+ findFirstOrThrow<T extends ArtifactFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ArtifactFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1529
+ /**
1530
+ * Find zero or more Artifacts that matches the filter.
1531
+ * Note, that providing `undefined` is treated as the value not being there.
1532
+ * Read more here: https://pris.ly/d/null-undefined
1533
+ * @param {ArtifactFindManyArgs} args - Arguments to filter and select certain fields only.
1534
+ * @example
1535
+ * // Get all Artifacts
1536
+ * const artifacts = await prisma.artifact.findMany()
1537
+ *
1538
+ * // Get first 10 Artifacts
1539
+ * const artifacts = await prisma.artifact.findMany({ take: 10 })
1540
+ *
1541
+ * // Only select the `id`
1542
+ * const artifactWithIdOnly = await prisma.artifact.findMany({ select: { id: true } })
1543
+ *
1544
+ */
1545
+ findMany<T extends ArtifactFindManyArgs>(args?: Prisma.SelectSubset<T, ArtifactFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1546
+ /**
1547
+ * Create a Artifact.
1548
+ * @param {ArtifactCreateArgs} args - Arguments to create a Artifact.
1549
+ * @example
1550
+ * // Create one Artifact
1551
+ * const Artifact = await prisma.artifact.create({
1552
+ * data: {
1553
+ * // ... data to create a Artifact
1554
+ * }
1555
+ * })
1556
+ *
1557
+ */
1558
+ create<T extends ArtifactCreateArgs>(args: Prisma.SelectSubset<T, ArtifactCreateArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1559
+ /**
1560
+ * Create many Artifacts.
1561
+ * @param {ArtifactCreateManyArgs} args - Arguments to create many Artifacts.
1562
+ * @example
1563
+ * // Create many Artifacts
1564
+ * const artifact = await prisma.artifact.createMany({
1565
+ * data: [
1566
+ * // ... provide data here
1567
+ * ]
1568
+ * })
1569
+ *
1570
+ */
1571
+ createMany<T extends ArtifactCreateManyArgs>(args?: Prisma.SelectSubset<T, ArtifactCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1572
+ /**
1573
+ * Create many Artifacts and returns the data saved in the database.
1574
+ * @param {ArtifactCreateManyAndReturnArgs} args - Arguments to create many Artifacts.
1575
+ * @example
1576
+ * // Create many Artifacts
1577
+ * const artifact = await prisma.artifact.createManyAndReturn({
1578
+ * data: [
1579
+ * // ... provide data here
1580
+ * ]
1581
+ * })
1582
+ *
1583
+ * // Create many Artifacts and only return the `id`
1584
+ * const artifactWithIdOnly = await prisma.artifact.createManyAndReturn({
1585
+ * select: { id: true },
1586
+ * data: [
1587
+ * // ... provide data here
1588
+ * ]
1589
+ * })
1590
+ * Note, that providing `undefined` is treated as the value not being there.
1591
+ * Read more here: https://pris.ly/d/null-undefined
1592
+ *
1593
+ */
1594
+ createManyAndReturn<T extends ArtifactCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ArtifactCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1595
+ /**
1596
+ * Delete a Artifact.
1597
+ * @param {ArtifactDeleteArgs} args - Arguments to delete one Artifact.
1598
+ * @example
1599
+ * // Delete one Artifact
1600
+ * const Artifact = await prisma.artifact.delete({
1601
+ * where: {
1602
+ * // ... filter to delete one Artifact
1603
+ * }
1604
+ * })
1605
+ *
1606
+ */
1607
+ delete<T extends ArtifactDeleteArgs>(args: Prisma.SelectSubset<T, ArtifactDeleteArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1608
+ /**
1609
+ * Update one Artifact.
1610
+ * @param {ArtifactUpdateArgs} args - Arguments to update one Artifact.
1611
+ * @example
1612
+ * // Update one Artifact
1613
+ * const artifact = await prisma.artifact.update({
1614
+ * where: {
1615
+ * // ... provide filter here
1616
+ * },
1617
+ * data: {
1618
+ * // ... provide data here
1619
+ * }
1620
+ * })
1621
+ *
1622
+ */
1623
+ update<T extends ArtifactUpdateArgs>(args: Prisma.SelectSubset<T, ArtifactUpdateArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1624
+ /**
1625
+ * Delete zero or more Artifacts.
1626
+ * @param {ArtifactDeleteManyArgs} args - Arguments to filter Artifacts to delete.
1627
+ * @example
1628
+ * // Delete a few Artifacts
1629
+ * const { count } = await prisma.artifact.deleteMany({
1630
+ * where: {
1631
+ * // ... provide filter here
1632
+ * }
1633
+ * })
1634
+ *
1635
+ */
1636
+ deleteMany<T extends ArtifactDeleteManyArgs>(args?: Prisma.SelectSubset<T, ArtifactDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1637
+ /**
1638
+ * Update zero or more Artifacts.
1639
+ * Note, that providing `undefined` is treated as the value not being there.
1640
+ * Read more here: https://pris.ly/d/null-undefined
1641
+ * @param {ArtifactUpdateManyArgs} args - Arguments to update one or more rows.
1642
+ * @example
1643
+ * // Update many Artifacts
1644
+ * const artifact = await prisma.artifact.updateMany({
1645
+ * where: {
1646
+ * // ... provide filter here
1647
+ * },
1648
+ * data: {
1649
+ * // ... provide data here
1650
+ * }
1651
+ * })
1652
+ *
1653
+ */
1654
+ updateMany<T extends ArtifactUpdateManyArgs>(args: Prisma.SelectSubset<T, ArtifactUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1655
+ /**
1656
+ * Update zero or more Artifacts and returns the data updated in the database.
1657
+ * @param {ArtifactUpdateManyAndReturnArgs} args - Arguments to update many Artifacts.
1658
+ * @example
1659
+ * // Update many Artifacts
1660
+ * const artifact = await prisma.artifact.updateManyAndReturn({
1661
+ * where: {
1662
+ * // ... provide filter here
1663
+ * },
1664
+ * data: [
1665
+ * // ... provide data here
1666
+ * ]
1667
+ * })
1668
+ *
1669
+ * // Update zero or more Artifacts and only return the `id`
1670
+ * const artifactWithIdOnly = await prisma.artifact.updateManyAndReturn({
1671
+ * select: { id: true },
1672
+ * where: {
1673
+ * // ... provide filter here
1674
+ * },
1675
+ * data: [
1676
+ * // ... provide data here
1677
+ * ]
1678
+ * })
1679
+ * Note, that providing `undefined` is treated as the value not being there.
1680
+ * Read more here: https://pris.ly/d/null-undefined
1681
+ *
1682
+ */
1683
+ updateManyAndReturn<T extends ArtifactUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ArtifactUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1684
+ /**
1685
+ * Create or update one Artifact.
1686
+ * @param {ArtifactUpsertArgs} args - Arguments to update or create a Artifact.
1687
+ * @example
1688
+ * // Update or create a Artifact
1689
+ * const artifact = await prisma.artifact.upsert({
1690
+ * create: {
1691
+ * // ... data to create a Artifact
1692
+ * },
1693
+ * update: {
1694
+ * // ... in case it already exists, update
1695
+ * },
1696
+ * where: {
1697
+ * // ... the filter for the Artifact we want to update
1698
+ * }
1699
+ * })
1700
+ */
1701
+ upsert<T extends ArtifactUpsertArgs>(args: Prisma.SelectSubset<T, ArtifactUpsertArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1702
+ /**
1703
+ * Count the number of Artifacts.
1704
+ * Note, that providing `undefined` is treated as the value not being there.
1705
+ * Read more here: https://pris.ly/d/null-undefined
1706
+ * @param {ArtifactCountArgs} args - Arguments to filter Artifacts to count.
1707
+ * @example
1708
+ * // Count the number of Artifacts
1709
+ * const count = await prisma.artifact.count({
1710
+ * where: {
1711
+ * // ... the filter for the Artifacts we want to count
1712
+ * }
1713
+ * })
1714
+ **/
1715
+ count<T extends ArtifactCountArgs>(args?: Prisma.Subset<T, ArtifactCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ArtifactCountAggregateOutputType> : number>;
1716
+ /**
1717
+ * Allows you to perform aggregations operations on a Artifact.
1718
+ * Note, that providing `undefined` is treated as the value not being there.
1719
+ * Read more here: https://pris.ly/d/null-undefined
1720
+ * @param {ArtifactAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1721
+ * @example
1722
+ * // Ordered by age ascending
1723
+ * // Where email contains prisma.io
1724
+ * // Limited to the 10 users
1725
+ * const aggregations = await prisma.user.aggregate({
1726
+ * _avg: {
1727
+ * age: true,
1728
+ * },
1729
+ * where: {
1730
+ * email: {
1731
+ * contains: "prisma.io",
1732
+ * },
1733
+ * },
1734
+ * orderBy: {
1735
+ * age: "asc",
1736
+ * },
1737
+ * take: 10,
1738
+ * })
1739
+ **/
1740
+ aggregate<T extends ArtifactAggregateArgs>(args: Prisma.Subset<T, ArtifactAggregateArgs>): Prisma.PrismaPromise<GetArtifactAggregateType<T>>;
1741
+ /**
1742
+ * Group by Artifact.
1743
+ * Note, that providing `undefined` is treated as the value not being there.
1744
+ * Read more here: https://pris.ly/d/null-undefined
1745
+ * @param {ArtifactGroupByArgs} args - Group by arguments.
1746
+ * @example
1747
+ * // Group by city, order by createdAt, get count
1748
+ * const result = await prisma.user.groupBy({
1749
+ * by: ['city', 'createdAt'],
1750
+ * orderBy: {
1751
+ * createdAt: true
1752
+ * },
1753
+ * _count: {
1754
+ * _all: true
1755
+ * },
1756
+ * })
1757
+ *
1758
+ **/
1759
+ groupBy<T extends ArtifactGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1760
+ orderBy: ArtifactGroupByArgs['orderBy'];
1761
+ } : {
1762
+ orderBy?: ArtifactGroupByArgs['orderBy'];
1763
+ }, 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 ? {
1764
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1765
+ Error,
1766
+ 'Field ',
1767
+ P,
1768
+ ` in "having" needs to be provided in "by"`
1769
+ ];
1770
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1771
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1772
+ }[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 ? {} : {
1773
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1774
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1775
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1776
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ArtifactGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetArtifactGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1777
+ /**
1778
+ * Fields of the Artifact model
1779
+ */
1780
+ readonly fields: ArtifactFieldRefs;
1781
+ }
1782
+ /**
1783
+ * The delegate class that acts as a "Promise-like" for Artifact.
1784
+ * Why is this prefixed with `Prisma__`?
1785
+ * Because we want to prevent naming conflicts as mentioned in
1786
+ * https://github.com/prisma/prisma-client-js/issues/707
1787
+ */
1788
+ export interface Prisma__ArtifactClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1789
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1790
+ createdBy<T extends Prisma.Artifact$createdByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Artifact$createdByArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1791
+ workspace<T extends Prisma.WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkspaceDefaultArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1792
+ versions<T extends Prisma.Artifact$versionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Artifact$versionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1793
+ flashcards<T extends Prisma.Artifact$flashcardsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Artifact$flashcardsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1794
+ podcastSegments<T extends Prisma.Artifact$podcastSegmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Artifact$podcastSegmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1795
+ questions<T extends Prisma.Artifact$questionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Artifact$questionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorksheetQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1796
+ /**
1797
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1798
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1799
+ * @param onrejected The callback to execute when the Promise is rejected.
1800
+ * @returns A Promise for the completion of which ever callback is executed.
1801
+ */
1802
+ 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>;
1803
+ /**
1804
+ * Attaches a callback for only the rejection of the Promise.
1805
+ * @param onrejected The callback to execute when the Promise is rejected.
1806
+ * @returns A Promise for the completion of the callback.
1807
+ */
1808
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1809
+ /**
1810
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1811
+ * resolved value cannot be modified from the callback.
1812
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1813
+ * @returns A Promise for the completion of the callback.
1814
+ */
1815
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1816
+ }
1817
+ /**
1818
+ * Fields of the Artifact model
1819
+ */
1820
+ export interface ArtifactFieldRefs {
1821
+ readonly id: Prisma.FieldRef<"Artifact", 'String'>;
1822
+ readonly workspaceId: Prisma.FieldRef<"Artifact", 'String'>;
1823
+ readonly type: Prisma.FieldRef<"Artifact", 'ArtifactType'>;
1824
+ readonly title: Prisma.FieldRef<"Artifact", 'String'>;
1825
+ readonly isArchived: Prisma.FieldRef<"Artifact", 'Boolean'>;
1826
+ readonly difficulty: Prisma.FieldRef<"Artifact", 'Difficulty'>;
1827
+ readonly estimatedTime: Prisma.FieldRef<"Artifact", 'String'>;
1828
+ readonly createdById: Prisma.FieldRef<"Artifact", 'String'>;
1829
+ readonly createdAt: Prisma.FieldRef<"Artifact", 'DateTime'>;
1830
+ readonly updatedAt: Prisma.FieldRef<"Artifact", 'DateTime'>;
1831
+ readonly description: Prisma.FieldRef<"Artifact", 'String'>;
1832
+ readonly generating: Prisma.FieldRef<"Artifact", 'Boolean'>;
1833
+ readonly generatingMetadata: Prisma.FieldRef<"Artifact", 'Json'>;
1834
+ readonly worksheetConfig: Prisma.FieldRef<"Artifact", 'Json'>;
1835
+ readonly imageObjectKey: Prisma.FieldRef<"Artifact", 'String'>;
1836
+ }
1837
+ /**
1838
+ * Artifact findUnique
1839
+ */
1840
+ export type ArtifactFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1841
+ /**
1842
+ * Select specific fields to fetch from the Artifact
1843
+ */
1844
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
1845
+ /**
1846
+ * Omit specific fields from the Artifact
1847
+ */
1848
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
1849
+ /**
1850
+ * Choose, which related nodes to fetch as well
1851
+ */
1852
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
1853
+ /**
1854
+ * Filter, which Artifact to fetch.
1855
+ */
1856
+ where: Prisma.ArtifactWhereUniqueInput;
1857
+ };
1858
+ /**
1859
+ * Artifact findUniqueOrThrow
1860
+ */
1861
+ export type ArtifactFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1862
+ /**
1863
+ * Select specific fields to fetch from the Artifact
1864
+ */
1865
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
1866
+ /**
1867
+ * Omit specific fields from the Artifact
1868
+ */
1869
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
1870
+ /**
1871
+ * Choose, which related nodes to fetch as well
1872
+ */
1873
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
1874
+ /**
1875
+ * Filter, which Artifact to fetch.
1876
+ */
1877
+ where: Prisma.ArtifactWhereUniqueInput;
1878
+ };
1879
+ /**
1880
+ * Artifact findFirst
1881
+ */
1882
+ export type ArtifactFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1883
+ /**
1884
+ * Select specific fields to fetch from the Artifact
1885
+ */
1886
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
1887
+ /**
1888
+ * Omit specific fields from the Artifact
1889
+ */
1890
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
1891
+ /**
1892
+ * Choose, which related nodes to fetch as well
1893
+ */
1894
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
1895
+ /**
1896
+ * Filter, which Artifact to fetch.
1897
+ */
1898
+ where?: Prisma.ArtifactWhereInput;
1899
+ /**
1900
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1901
+ *
1902
+ * Determine the order of Artifacts to fetch.
1903
+ */
1904
+ orderBy?: Prisma.ArtifactOrderByWithRelationInput | Prisma.ArtifactOrderByWithRelationInput[];
1905
+ /**
1906
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1907
+ *
1908
+ * Sets the position for searching for Artifacts.
1909
+ */
1910
+ cursor?: Prisma.ArtifactWhereUniqueInput;
1911
+ /**
1912
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1913
+ *
1914
+ * Take `±n` Artifacts from the position of the cursor.
1915
+ */
1916
+ take?: number;
1917
+ /**
1918
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1919
+ *
1920
+ * Skip the first `n` Artifacts.
1921
+ */
1922
+ skip?: number;
1923
+ /**
1924
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1925
+ *
1926
+ * Filter by unique combinations of Artifacts.
1927
+ */
1928
+ distinct?: Prisma.ArtifactScalarFieldEnum | Prisma.ArtifactScalarFieldEnum[];
1929
+ };
1930
+ /**
1931
+ * Artifact findFirstOrThrow
1932
+ */
1933
+ export type ArtifactFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1934
+ /**
1935
+ * Select specific fields to fetch from the Artifact
1936
+ */
1937
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
1938
+ /**
1939
+ * Omit specific fields from the Artifact
1940
+ */
1941
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
1942
+ /**
1943
+ * Choose, which related nodes to fetch as well
1944
+ */
1945
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
1946
+ /**
1947
+ * Filter, which Artifact to fetch.
1948
+ */
1949
+ where?: Prisma.ArtifactWhereInput;
1950
+ /**
1951
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1952
+ *
1953
+ * Determine the order of Artifacts to fetch.
1954
+ */
1955
+ orderBy?: Prisma.ArtifactOrderByWithRelationInput | Prisma.ArtifactOrderByWithRelationInput[];
1956
+ /**
1957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1958
+ *
1959
+ * Sets the position for searching for Artifacts.
1960
+ */
1961
+ cursor?: Prisma.ArtifactWhereUniqueInput;
1962
+ /**
1963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1964
+ *
1965
+ * Take `±n` Artifacts from the position of the cursor.
1966
+ */
1967
+ take?: number;
1968
+ /**
1969
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1970
+ *
1971
+ * Skip the first `n` Artifacts.
1972
+ */
1973
+ skip?: number;
1974
+ /**
1975
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1976
+ *
1977
+ * Filter by unique combinations of Artifacts.
1978
+ */
1979
+ distinct?: Prisma.ArtifactScalarFieldEnum | Prisma.ArtifactScalarFieldEnum[];
1980
+ };
1981
+ /**
1982
+ * Artifact findMany
1983
+ */
1984
+ export type ArtifactFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1985
+ /**
1986
+ * Select specific fields to fetch from the Artifact
1987
+ */
1988
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
1989
+ /**
1990
+ * Omit specific fields from the Artifact
1991
+ */
1992
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
1993
+ /**
1994
+ * Choose, which related nodes to fetch as well
1995
+ */
1996
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
1997
+ /**
1998
+ * Filter, which Artifacts to fetch.
1999
+ */
2000
+ where?: Prisma.ArtifactWhereInput;
2001
+ /**
2002
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2003
+ *
2004
+ * Determine the order of Artifacts to fetch.
2005
+ */
2006
+ orderBy?: Prisma.ArtifactOrderByWithRelationInput | Prisma.ArtifactOrderByWithRelationInput[];
2007
+ /**
2008
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2009
+ *
2010
+ * Sets the position for listing Artifacts.
2011
+ */
2012
+ cursor?: Prisma.ArtifactWhereUniqueInput;
2013
+ /**
2014
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2015
+ *
2016
+ * Take `±n` Artifacts from the position of the cursor.
2017
+ */
2018
+ take?: number;
2019
+ /**
2020
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2021
+ *
2022
+ * Skip the first `n` Artifacts.
2023
+ */
2024
+ skip?: number;
2025
+ /**
2026
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2027
+ *
2028
+ * Filter by unique combinations of Artifacts.
2029
+ */
2030
+ distinct?: Prisma.ArtifactScalarFieldEnum | Prisma.ArtifactScalarFieldEnum[];
2031
+ };
2032
+ /**
2033
+ * Artifact create
2034
+ */
2035
+ export type ArtifactCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2036
+ /**
2037
+ * Select specific fields to fetch from the Artifact
2038
+ */
2039
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
2040
+ /**
2041
+ * Omit specific fields from the Artifact
2042
+ */
2043
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
2044
+ /**
2045
+ * Choose, which related nodes to fetch as well
2046
+ */
2047
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
2048
+ /**
2049
+ * The data needed to create a Artifact.
2050
+ */
2051
+ data: Prisma.XOR<Prisma.ArtifactCreateInput, Prisma.ArtifactUncheckedCreateInput>;
2052
+ };
2053
+ /**
2054
+ * Artifact createMany
2055
+ */
2056
+ export type ArtifactCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2057
+ /**
2058
+ * The data used to create many Artifacts.
2059
+ */
2060
+ data: Prisma.ArtifactCreateManyInput | Prisma.ArtifactCreateManyInput[];
2061
+ skipDuplicates?: boolean;
2062
+ };
2063
+ /**
2064
+ * Artifact createManyAndReturn
2065
+ */
2066
+ export type ArtifactCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2067
+ /**
2068
+ * Select specific fields to fetch from the Artifact
2069
+ */
2070
+ select?: Prisma.ArtifactSelectCreateManyAndReturn<ExtArgs> | null;
2071
+ /**
2072
+ * Omit specific fields from the Artifact
2073
+ */
2074
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
2075
+ /**
2076
+ * The data used to create many Artifacts.
2077
+ */
2078
+ data: Prisma.ArtifactCreateManyInput | Prisma.ArtifactCreateManyInput[];
2079
+ skipDuplicates?: boolean;
2080
+ /**
2081
+ * Choose, which related nodes to fetch as well
2082
+ */
2083
+ include?: Prisma.ArtifactIncludeCreateManyAndReturn<ExtArgs> | null;
2084
+ };
2085
+ /**
2086
+ * Artifact update
2087
+ */
2088
+ export type ArtifactUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2089
+ /**
2090
+ * Select specific fields to fetch from the Artifact
2091
+ */
2092
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
2093
+ /**
2094
+ * Omit specific fields from the Artifact
2095
+ */
2096
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
2097
+ /**
2098
+ * Choose, which related nodes to fetch as well
2099
+ */
2100
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
2101
+ /**
2102
+ * The data needed to update a Artifact.
2103
+ */
2104
+ data: Prisma.XOR<Prisma.ArtifactUpdateInput, Prisma.ArtifactUncheckedUpdateInput>;
2105
+ /**
2106
+ * Choose, which Artifact to update.
2107
+ */
2108
+ where: Prisma.ArtifactWhereUniqueInput;
2109
+ };
2110
+ /**
2111
+ * Artifact updateMany
2112
+ */
2113
+ export type ArtifactUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2114
+ /**
2115
+ * The data used to update Artifacts.
2116
+ */
2117
+ data: Prisma.XOR<Prisma.ArtifactUpdateManyMutationInput, Prisma.ArtifactUncheckedUpdateManyInput>;
2118
+ /**
2119
+ * Filter which Artifacts to update
2120
+ */
2121
+ where?: Prisma.ArtifactWhereInput;
2122
+ /**
2123
+ * Limit how many Artifacts to update.
2124
+ */
2125
+ limit?: number;
2126
+ };
2127
+ /**
2128
+ * Artifact updateManyAndReturn
2129
+ */
2130
+ export type ArtifactUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2131
+ /**
2132
+ * Select specific fields to fetch from the Artifact
2133
+ */
2134
+ select?: Prisma.ArtifactSelectUpdateManyAndReturn<ExtArgs> | null;
2135
+ /**
2136
+ * Omit specific fields from the Artifact
2137
+ */
2138
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
2139
+ /**
2140
+ * The data used to update Artifacts.
2141
+ */
2142
+ data: Prisma.XOR<Prisma.ArtifactUpdateManyMutationInput, Prisma.ArtifactUncheckedUpdateManyInput>;
2143
+ /**
2144
+ * Filter which Artifacts to update
2145
+ */
2146
+ where?: Prisma.ArtifactWhereInput;
2147
+ /**
2148
+ * Limit how many Artifacts to update.
2149
+ */
2150
+ limit?: number;
2151
+ /**
2152
+ * Choose, which related nodes to fetch as well
2153
+ */
2154
+ include?: Prisma.ArtifactIncludeUpdateManyAndReturn<ExtArgs> | null;
2155
+ };
2156
+ /**
2157
+ * Artifact upsert
2158
+ */
2159
+ export type ArtifactUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2160
+ /**
2161
+ * Select specific fields to fetch from the Artifact
2162
+ */
2163
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
2164
+ /**
2165
+ * Omit specific fields from the Artifact
2166
+ */
2167
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
2168
+ /**
2169
+ * Choose, which related nodes to fetch as well
2170
+ */
2171
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
2172
+ /**
2173
+ * The filter to search for the Artifact to update in case it exists.
2174
+ */
2175
+ where: Prisma.ArtifactWhereUniqueInput;
2176
+ /**
2177
+ * In case the Artifact found by the `where` argument doesn't exist, create a new Artifact with this data.
2178
+ */
2179
+ create: Prisma.XOR<Prisma.ArtifactCreateInput, Prisma.ArtifactUncheckedCreateInput>;
2180
+ /**
2181
+ * In case the Artifact was found with the provided `where` argument, update it with this data.
2182
+ */
2183
+ update: Prisma.XOR<Prisma.ArtifactUpdateInput, Prisma.ArtifactUncheckedUpdateInput>;
2184
+ };
2185
+ /**
2186
+ * Artifact delete
2187
+ */
2188
+ export type ArtifactDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2189
+ /**
2190
+ * Select specific fields to fetch from the Artifact
2191
+ */
2192
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
2193
+ /**
2194
+ * Omit specific fields from the Artifact
2195
+ */
2196
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
2197
+ /**
2198
+ * Choose, which related nodes to fetch as well
2199
+ */
2200
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
2201
+ /**
2202
+ * Filter which Artifact to delete.
2203
+ */
2204
+ where: Prisma.ArtifactWhereUniqueInput;
2205
+ };
2206
+ /**
2207
+ * Artifact deleteMany
2208
+ */
2209
+ export type ArtifactDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2210
+ /**
2211
+ * Filter which Artifacts to delete
2212
+ */
2213
+ where?: Prisma.ArtifactWhereInput;
2214
+ /**
2215
+ * Limit how many Artifacts to delete.
2216
+ */
2217
+ limit?: number;
2218
+ };
2219
+ /**
2220
+ * Artifact.createdBy
2221
+ */
2222
+ export type Artifact$createdByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2223
+ /**
2224
+ * Select specific fields to fetch from the User
2225
+ */
2226
+ select?: Prisma.UserSelect<ExtArgs> | null;
2227
+ /**
2228
+ * Omit specific fields from the User
2229
+ */
2230
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2231
+ /**
2232
+ * Choose, which related nodes to fetch as well
2233
+ */
2234
+ include?: Prisma.UserInclude<ExtArgs> | null;
2235
+ where?: Prisma.UserWhereInput;
2236
+ };
2237
+ /**
2238
+ * Artifact.versions
2239
+ */
2240
+ export type Artifact$versionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2241
+ /**
2242
+ * Select specific fields to fetch from the ArtifactVersion
2243
+ */
2244
+ select?: Prisma.ArtifactVersionSelect<ExtArgs> | null;
2245
+ /**
2246
+ * Omit specific fields from the ArtifactVersion
2247
+ */
2248
+ omit?: Prisma.ArtifactVersionOmit<ExtArgs> | null;
2249
+ /**
2250
+ * Choose, which related nodes to fetch as well
2251
+ */
2252
+ include?: Prisma.ArtifactVersionInclude<ExtArgs> | null;
2253
+ where?: Prisma.ArtifactVersionWhereInput;
2254
+ orderBy?: Prisma.ArtifactVersionOrderByWithRelationInput | Prisma.ArtifactVersionOrderByWithRelationInput[];
2255
+ cursor?: Prisma.ArtifactVersionWhereUniqueInput;
2256
+ take?: number;
2257
+ skip?: number;
2258
+ distinct?: Prisma.ArtifactVersionScalarFieldEnum | Prisma.ArtifactVersionScalarFieldEnum[];
2259
+ };
2260
+ /**
2261
+ * Artifact.flashcards
2262
+ */
2263
+ export type Artifact$flashcardsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2264
+ /**
2265
+ * Select specific fields to fetch from the Flashcard
2266
+ */
2267
+ select?: Prisma.FlashcardSelect<ExtArgs> | null;
2268
+ /**
2269
+ * Omit specific fields from the Flashcard
2270
+ */
2271
+ omit?: Prisma.FlashcardOmit<ExtArgs> | null;
2272
+ /**
2273
+ * Choose, which related nodes to fetch as well
2274
+ */
2275
+ include?: Prisma.FlashcardInclude<ExtArgs> | null;
2276
+ where?: Prisma.FlashcardWhereInput;
2277
+ orderBy?: Prisma.FlashcardOrderByWithRelationInput | Prisma.FlashcardOrderByWithRelationInput[];
2278
+ cursor?: Prisma.FlashcardWhereUniqueInput;
2279
+ take?: number;
2280
+ skip?: number;
2281
+ distinct?: Prisma.FlashcardScalarFieldEnum | Prisma.FlashcardScalarFieldEnum[];
2282
+ };
2283
+ /**
2284
+ * Artifact.podcastSegments
2285
+ */
2286
+ export type Artifact$podcastSegmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2287
+ /**
2288
+ * Select specific fields to fetch from the PodcastSegment
2289
+ */
2290
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
2291
+ /**
2292
+ * Omit specific fields from the PodcastSegment
2293
+ */
2294
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
2295
+ /**
2296
+ * Choose, which related nodes to fetch as well
2297
+ */
2298
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
2299
+ where?: Prisma.PodcastSegmentWhereInput;
2300
+ orderBy?: Prisma.PodcastSegmentOrderByWithRelationInput | Prisma.PodcastSegmentOrderByWithRelationInput[];
2301
+ cursor?: Prisma.PodcastSegmentWhereUniqueInput;
2302
+ take?: number;
2303
+ skip?: number;
2304
+ distinct?: Prisma.PodcastSegmentScalarFieldEnum | Prisma.PodcastSegmentScalarFieldEnum[];
2305
+ };
2306
+ /**
2307
+ * Artifact.questions
2308
+ */
2309
+ export type Artifact$questionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2310
+ /**
2311
+ * Select specific fields to fetch from the WorksheetQuestion
2312
+ */
2313
+ select?: Prisma.WorksheetQuestionSelect<ExtArgs> | null;
2314
+ /**
2315
+ * Omit specific fields from the WorksheetQuestion
2316
+ */
2317
+ omit?: Prisma.WorksheetQuestionOmit<ExtArgs> | null;
2318
+ /**
2319
+ * Choose, which related nodes to fetch as well
2320
+ */
2321
+ include?: Prisma.WorksheetQuestionInclude<ExtArgs> | null;
2322
+ where?: Prisma.WorksheetQuestionWhereInput;
2323
+ orderBy?: Prisma.WorksheetQuestionOrderByWithRelationInput | Prisma.WorksheetQuestionOrderByWithRelationInput[];
2324
+ cursor?: Prisma.WorksheetQuestionWhereUniqueInput;
2325
+ take?: number;
2326
+ skip?: number;
2327
+ distinct?: Prisma.WorksheetQuestionScalarFieldEnum | Prisma.WorksheetQuestionScalarFieldEnum[];
2328
+ };
2329
+ /**
2330
+ * Artifact without action
2331
+ */
2332
+ export type ArtifactDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2333
+ /**
2334
+ * Select specific fields to fetch from the Artifact
2335
+ */
2336
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
2337
+ /**
2338
+ * Omit specific fields from the Artifact
2339
+ */
2340
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
2341
+ /**
2342
+ * Choose, which related nodes to fetch as well
2343
+ */
2344
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
2345
+ };