@goscribe/server 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/generated/prisma/client.d.ts +224 -0
  2. package/dist/generated/prisma/client.js +34 -0
  3. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  4. package/dist/generated/prisma/commonInputTypes.js +10 -0
  5. package/dist/generated/prisma/enums.d.ts +67 -0
  6. package/dist/generated/prisma/enums.js +66 -0
  7. package/dist/generated/prisma/internal/class.d.ts +539 -0
  8. package/dist/generated/prisma/internal/class.js +49 -0
  9. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  10. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  11. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  12. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  13. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  14. package/dist/generated/prisma/models/Artifact.js +1 -0
  15. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  16. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  17. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  18. package/dist/generated/prisma/models/Channel.js +1 -0
  19. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  20. package/dist/generated/prisma/models/Chat.js +1 -0
  21. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  22. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  23. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  24. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  25. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  26. package/dist/generated/prisma/models/FileAsset.js +1 -0
  27. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  28. package/dist/generated/prisma/models/Flashcard.js +1 -0
  29. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  30. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  31. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  32. package/dist/generated/prisma/models/Folder.js +1 -0
  33. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  34. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  35. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  36. package/dist/generated/prisma/models/Invoice.js +1 -0
  37. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  38. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  40. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  43. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  44. package/dist/generated/prisma/models/Notification.js +1 -0
  45. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  46. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  47. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  48. package/dist/generated/prisma/models/Plan.js +1 -0
  49. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  50. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  51. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  52. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  53. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  54. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  55. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  56. package/dist/generated/prisma/models/Role.js +1 -0
  57. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  58. package/dist/generated/prisma/models/Session.js +1 -0
  59. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  60. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  61. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  62. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  64. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  65. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  66. package/dist/generated/prisma/models/Subscription.js +1 -0
  67. package/dist/generated/prisma/models/User.d.ts +7559 -0
  68. package/dist/generated/prisma/models/User.js +1 -0
  69. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  70. package/dist/generated/prisma/models/UserCredit.js +1 -0
  71. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  72. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  73. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  74. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  76. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  78. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  79. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  80. package/dist/generated/prisma/models/Workspace.js +1 -0
  81. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  82. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  84. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  86. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  87. package/dist/generated/prisma/models.d.ts +39 -0
  88. package/dist/generated/prisma/models.js +1 -0
  89. package/dist/src/context.d.ts +27 -0
  90. package/dist/src/context.js +33 -0
  91. package/dist/src/index.d.ts +3 -0
  92. package/dist/src/index.js +1 -0
  93. package/dist/src/lib/ai/config.d.ts +20 -0
  94. package/dist/src/lib/ai/config.js +31 -0
  95. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  96. package/dist/src/lib/ai/embedding-client.js +30 -0
  97. package/dist/src/lib/ai/index.d.ts +48 -0
  98. package/dist/src/lib/ai/index.js +29 -0
  99. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  100. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  101. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  102. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  103. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  104. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  105. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  106. package/dist/src/lib/ai/json-parse.js +34 -0
  107. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  108. package/dist/src/lib/ai/llm-client.js +36 -0
  109. package/dist/src/lib/ai/mock.d.ts +2 -0
  110. package/dist/src/lib/ai/mock.js +10 -0
  111. package/dist/src/lib/ai/types.d.ts +9 -0
  112. package/dist/src/lib/ai/types.js +1 -0
  113. package/dist/src/lib/auth.d.ts +36 -0
  114. package/dist/src/lib/auth.js +117 -0
  115. package/dist/src/lib/chunking.d.ts +19 -0
  116. package/dist/src/lib/chunking.js +47 -0
  117. package/dist/src/lib/constants.d.ts +13 -0
  118. package/dist/src/lib/constants.js +12 -0
  119. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  120. package/dist/src/lib/curated-kb-seed.js +155 -0
  121. package/dist/src/lib/email.d.ts +11 -0
  122. package/dist/src/lib/email.js +152 -0
  123. package/dist/src/lib/embeddings.d.ts +2 -0
  124. package/dist/src/lib/embeddings.js +1 -0
  125. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  126. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  127. package/dist/src/lib/env.d.ts +41 -0
  128. package/dist/src/lib/env.js +57 -0
  129. package/dist/src/lib/errors.d.ts +33 -0
  130. package/dist/src/lib/errors.js +78 -0
  131. package/dist/src/lib/file.d.ts +0 -0
  132. package/dist/src/lib/file.js +1 -0
  133. package/dist/src/lib/inference.d.ts +1 -0
  134. package/dist/src/lib/inference.js +1 -0
  135. package/dist/src/lib/kb-meta.d.ts +8 -0
  136. package/dist/src/lib/kb-meta.js +77 -0
  137. package/dist/src/lib/logger.d.ts +62 -0
  138. package/dist/src/lib/logger.js +364 -0
  139. package/dist/src/lib/pdf.d.ts +11 -0
  140. package/dist/src/lib/pdf.js +11 -0
  141. package/dist/src/lib/prisma.d.ts +3 -0
  142. package/dist/src/lib/prisma.js +15 -0
  143. package/dist/src/lib/pusher.d.ts +38 -0
  144. package/dist/src/lib/pusher.js +170 -0
  145. package/dist/src/lib/retry.d.ts +15 -0
  146. package/dist/src/lib/retry.js +37 -0
  147. package/dist/src/lib/storage.d.ts +11 -0
  148. package/dist/src/lib/storage.js +71 -0
  149. package/dist/src/lib/stripe.d.ts +10 -0
  150. package/dist/src/lib/stripe.js +36 -0
  151. package/dist/src/lib/validation.d.ts +51 -0
  152. package/dist/src/lib/validation.js +64 -0
  153. package/dist/src/lib/workspace-kb.d.ts +5 -0
  154. package/dist/src/lib/workspace-kb.js +7 -0
  155. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  156. package/dist/src/repositories/artifact.repository.js +40 -0
  157. package/dist/src/repositories/base.repository.d.ts +14 -0
  158. package/dist/src/repositories/base.repository.js +14 -0
  159. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  160. package/dist/src/repositories/invitation.repository.js +44 -0
  161. package/dist/src/repositories/notification.repository.d.ts +76 -0
  162. package/dist/src/repositories/notification.repository.js +44 -0
  163. package/dist/src/repositories/user.repository.d.ts +84 -0
  164. package/dist/src/repositories/user.repository.js +37 -0
  165. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  166. package/dist/src/repositories/workspace-member.repository.js +31 -0
  167. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  168. package/dist/src/repositories/workspace.repository.js +79 -0
  169. package/dist/src/routers/_app.d.ts +3464 -0
  170. package/dist/src/routers/_app.js +36 -0
  171. package/dist/src/routers/admin.d.ts +358 -0
  172. package/dist/src/routers/admin.js +105 -0
  173. package/dist/src/routers/annotations.d.ts +219 -0
  174. package/dist/src/routers/annotations.js +29 -0
  175. package/dist/src/routers/artifactVersions.d.ts +65 -0
  176. package/dist/src/routers/artifactVersions.js +14 -0
  177. package/dist/src/routers/auth.d.ts +161 -0
  178. package/dist/src/routers/auth.js +97 -0
  179. package/dist/src/routers/chat.d.ts +170 -0
  180. package/dist/src/routers/chat.js +32 -0
  181. package/dist/src/routers/copilot.d.ts +200 -0
  182. package/dist/src/routers/copilot.js +52 -0
  183. package/dist/src/routers/flashcards.d.ts +336 -0
  184. package/dist/src/routers/flashcards.js +93 -0
  185. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  186. package/dist/src/routers/knowledgeBase.js +118 -0
  187. package/dist/src/routers/members.d.ts +169 -0
  188. package/dist/src/routers/members.js +47 -0
  189. package/dist/src/routers/notifications.d.ts +99 -0
  190. package/dist/src/routers/notifications.js +25 -0
  191. package/dist/src/routers/payment.d.ts +80 -0
  192. package/dist/src/routers/payment.js +21 -0
  193. package/dist/src/routers/podcast.d.ts +287 -0
  194. package/dist/src/routers/podcast.js +34 -0
  195. package/dist/src/routers/studyguide.d.ts +36 -0
  196. package/dist/src/routers/studyguide.js +8 -0
  197. package/dist/src/routers/worksheets.d.ts +429 -0
  198. package/dist/src/routers/worksheets.js +139 -0
  199. package/dist/src/routers/workspace.d.ts +563 -0
  200. package/dist/src/routers/workspace.js +104 -0
  201. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  202. package/dist/src/scripts/purge-deleted-users.js +148 -0
  203. package/dist/src/server.d.ts +1 -0
  204. package/dist/src/server.js +190 -0
  205. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  206. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  207. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  208. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  209. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  210. package/dist/src/services/activity/activity-log.service.js +276 -0
  211. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  212. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  213. package/dist/src/services/admin/admin.service.d.ts +270 -0
  214. package/dist/src/services/admin/admin.service.js +476 -0
  215. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  216. package/dist/src/services/ai/ai-session.service.js +4 -0
  217. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  218. package/dist/src/services/artifacts/annotation.service.js +154 -0
  219. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  220. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  221. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  222. package/dist/src/services/artifacts/chat.service.js +182 -0
  223. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  224. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  225. package/dist/src/services/auth/auth.service.d.ts +94 -0
  226. package/dist/src/services/auth/auth.service.js +368 -0
  227. package/dist/src/services/base.service.d.ts +14 -0
  228. package/dist/src/services/base.service.js +14 -0
  229. package/dist/src/services/billing/payment.service.d.ts +44 -0
  230. package/dist/src/services/billing/payment.service.js +365 -0
  231. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  232. package/dist/src/services/billing/subscription.service.js +654 -0
  233. package/dist/src/services/billing/usage.service.d.ts +47 -0
  234. package/dist/src/services/billing/usage.service.js +149 -0
  235. package/dist/src/services/content/copilot.service.d.ts +113 -0
  236. package/dist/src/services/content/copilot.service.js +439 -0
  237. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  238. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  239. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  240. package/dist/src/services/content/flashcard.service.js +339 -0
  241. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  242. package/dist/src/services/content/media-analysis.service.js +404 -0
  243. package/dist/src/services/content/podcast.service.d.ts +267 -0
  244. package/dist/src/services/content/podcast.service.js +653 -0
  245. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  246. package/dist/src/services/content/worksheet-content.service.js +84 -0
  247. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  248. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  249. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  250. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  251. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  252. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  253. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  254. package/dist/src/services/content/worksheet.service.js +599 -0
  255. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  256. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  257. package/dist/src/services/members/invitation.service.d.ts +66 -0
  258. package/dist/src/services/members/invitation.service.js +348 -0
  259. package/dist/src/services/members/member.service.d.ts +36 -0
  260. package/dist/src/services/members/member.service.js +193 -0
  261. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  262. package/dist/src/services/notifications/notification.service.js +550 -0
  263. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  264. package/dist/src/services/notifications/notification.service.test.js +87 -0
  265. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  266. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  267. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  268. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  269. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  270. package/dist/src/services/workspace/workspace.service.js +401 -0
  271. package/dist/src/trpc.d.ts +60 -0
  272. package/dist/src/trpc.js +217 -0
  273. package/dist/src/types/index.d.ts +126 -0
  274. package/dist/src/types/index.js +1 -0
  275. package/package.json +8 -9
  276. package/prisma/schema.prisma +3 -4
  277. package/prisma/seed.mjs +5 -2
  278. package/prisma.config.ts +16 -0
  279. package/src/lib/prisma.ts +18 -9
  280. package/src/scripts/purge-deleted-users.ts +1 -3
  281. package/tsconfig.json +3 -0
@@ -0,0 +1,1564 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model PodcastSegment
5
+ *
6
+ */
7
+ export type PodcastSegmentModel = runtime.Types.Result.DefaultSelection<Prisma.$PodcastSegmentPayload>;
8
+ export type AggregatePodcastSegment = {
9
+ _count: PodcastSegmentCountAggregateOutputType | null;
10
+ _avg: PodcastSegmentAvgAggregateOutputType | null;
11
+ _sum: PodcastSegmentSumAggregateOutputType | null;
12
+ _min: PodcastSegmentMinAggregateOutputType | null;
13
+ _max: PodcastSegmentMaxAggregateOutputType | null;
14
+ };
15
+ export type PodcastSegmentAvgAggregateOutputType = {
16
+ startTime: number | null;
17
+ duration: number | null;
18
+ order: number | null;
19
+ };
20
+ export type PodcastSegmentSumAggregateOutputType = {
21
+ startTime: number | null;
22
+ duration: number | null;
23
+ order: number | null;
24
+ };
25
+ export type PodcastSegmentMinAggregateOutputType = {
26
+ id: string | null;
27
+ artifactId: string | null;
28
+ title: string | null;
29
+ content: string | null;
30
+ startTime: number | null;
31
+ duration: number | null;
32
+ order: number | null;
33
+ objectKey: string | null;
34
+ audioUrl: string | null;
35
+ createdAt: Date | null;
36
+ updatedAt: Date | null;
37
+ generating: boolean | null;
38
+ };
39
+ export type PodcastSegmentMaxAggregateOutputType = {
40
+ id: string | null;
41
+ artifactId: string | null;
42
+ title: string | null;
43
+ content: string | null;
44
+ startTime: number | null;
45
+ duration: number | null;
46
+ order: number | null;
47
+ objectKey: string | null;
48
+ audioUrl: string | null;
49
+ createdAt: Date | null;
50
+ updatedAt: Date | null;
51
+ generating: boolean | null;
52
+ };
53
+ export type PodcastSegmentCountAggregateOutputType = {
54
+ id: number;
55
+ artifactId: number;
56
+ title: number;
57
+ content: number;
58
+ startTime: number;
59
+ duration: number;
60
+ order: number;
61
+ objectKey: number;
62
+ audioUrl: number;
63
+ keyPoints: number;
64
+ meta: number;
65
+ createdAt: number;
66
+ updatedAt: number;
67
+ generating: number;
68
+ generatingMetadata: number;
69
+ _all: number;
70
+ };
71
+ export type PodcastSegmentAvgAggregateInputType = {
72
+ startTime?: true;
73
+ duration?: true;
74
+ order?: true;
75
+ };
76
+ export type PodcastSegmentSumAggregateInputType = {
77
+ startTime?: true;
78
+ duration?: true;
79
+ order?: true;
80
+ };
81
+ export type PodcastSegmentMinAggregateInputType = {
82
+ id?: true;
83
+ artifactId?: true;
84
+ title?: true;
85
+ content?: true;
86
+ startTime?: true;
87
+ duration?: true;
88
+ order?: true;
89
+ objectKey?: true;
90
+ audioUrl?: true;
91
+ createdAt?: true;
92
+ updatedAt?: true;
93
+ generating?: true;
94
+ };
95
+ export type PodcastSegmentMaxAggregateInputType = {
96
+ id?: true;
97
+ artifactId?: true;
98
+ title?: true;
99
+ content?: true;
100
+ startTime?: true;
101
+ duration?: true;
102
+ order?: true;
103
+ objectKey?: true;
104
+ audioUrl?: true;
105
+ createdAt?: true;
106
+ updatedAt?: true;
107
+ generating?: true;
108
+ };
109
+ export type PodcastSegmentCountAggregateInputType = {
110
+ id?: true;
111
+ artifactId?: true;
112
+ title?: true;
113
+ content?: true;
114
+ startTime?: true;
115
+ duration?: true;
116
+ order?: true;
117
+ objectKey?: true;
118
+ audioUrl?: true;
119
+ keyPoints?: true;
120
+ meta?: true;
121
+ createdAt?: true;
122
+ updatedAt?: true;
123
+ generating?: true;
124
+ generatingMetadata?: true;
125
+ _all?: true;
126
+ };
127
+ export type PodcastSegmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
128
+ /**
129
+ * Filter which PodcastSegment to aggregate.
130
+ */
131
+ where?: Prisma.PodcastSegmentWhereInput;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
134
+ *
135
+ * Determine the order of PodcastSegments to fetch.
136
+ */
137
+ orderBy?: Prisma.PodcastSegmentOrderByWithRelationInput | Prisma.PodcastSegmentOrderByWithRelationInput[];
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
140
+ *
141
+ * Sets the start position
142
+ */
143
+ cursor?: Prisma.PodcastSegmentWhereUniqueInput;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
146
+ *
147
+ * Take `±n` PodcastSegments from the position of the cursor.
148
+ */
149
+ take?: number;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
152
+ *
153
+ * Skip the first `n` PodcastSegments.
154
+ */
155
+ skip?: number;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Count returned PodcastSegments
160
+ **/
161
+ _count?: true | PodcastSegmentCountAggregateInputType;
162
+ /**
163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
164
+ *
165
+ * Select which fields to average
166
+ **/
167
+ _avg?: PodcastSegmentAvgAggregateInputType;
168
+ /**
169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
170
+ *
171
+ * Select which fields to sum
172
+ **/
173
+ _sum?: PodcastSegmentSumAggregateInputType;
174
+ /**
175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
176
+ *
177
+ * Select which fields to find the minimum value
178
+ **/
179
+ _min?: PodcastSegmentMinAggregateInputType;
180
+ /**
181
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
182
+ *
183
+ * Select which fields to find the maximum value
184
+ **/
185
+ _max?: PodcastSegmentMaxAggregateInputType;
186
+ };
187
+ export type GetPodcastSegmentAggregateType<T extends PodcastSegmentAggregateArgs> = {
188
+ [P in keyof T & keyof AggregatePodcastSegment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePodcastSegment[P]> : Prisma.GetScalarType<T[P], AggregatePodcastSegment[P]>;
189
+ };
190
+ export type PodcastSegmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
191
+ where?: Prisma.PodcastSegmentWhereInput;
192
+ orderBy?: Prisma.PodcastSegmentOrderByWithAggregationInput | Prisma.PodcastSegmentOrderByWithAggregationInput[];
193
+ by: Prisma.PodcastSegmentScalarFieldEnum[] | Prisma.PodcastSegmentScalarFieldEnum;
194
+ having?: Prisma.PodcastSegmentScalarWhereWithAggregatesInput;
195
+ take?: number;
196
+ skip?: number;
197
+ _count?: PodcastSegmentCountAggregateInputType | true;
198
+ _avg?: PodcastSegmentAvgAggregateInputType;
199
+ _sum?: PodcastSegmentSumAggregateInputType;
200
+ _min?: PodcastSegmentMinAggregateInputType;
201
+ _max?: PodcastSegmentMaxAggregateInputType;
202
+ };
203
+ export type PodcastSegmentGroupByOutputType = {
204
+ id: string;
205
+ artifactId: string;
206
+ title: string;
207
+ content: string;
208
+ startTime: number;
209
+ duration: number;
210
+ order: number;
211
+ objectKey: string | null;
212
+ audioUrl: string | null;
213
+ keyPoints: string[];
214
+ meta: runtime.JsonValue | null;
215
+ createdAt: Date;
216
+ updatedAt: Date;
217
+ generating: boolean;
218
+ generatingMetadata: runtime.JsonValue | null;
219
+ _count: PodcastSegmentCountAggregateOutputType | null;
220
+ _avg: PodcastSegmentAvgAggregateOutputType | null;
221
+ _sum: PodcastSegmentSumAggregateOutputType | null;
222
+ _min: PodcastSegmentMinAggregateOutputType | null;
223
+ _max: PodcastSegmentMaxAggregateOutputType | null;
224
+ };
225
+ export type GetPodcastSegmentGroupByPayload<T extends PodcastSegmentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PodcastSegmentGroupByOutputType, T['by']> & {
226
+ [P in ((keyof T) & (keyof PodcastSegmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PodcastSegmentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PodcastSegmentGroupByOutputType[P]>;
227
+ }>>;
228
+ export type PodcastSegmentWhereInput = {
229
+ AND?: Prisma.PodcastSegmentWhereInput | Prisma.PodcastSegmentWhereInput[];
230
+ OR?: Prisma.PodcastSegmentWhereInput[];
231
+ NOT?: Prisma.PodcastSegmentWhereInput | Prisma.PodcastSegmentWhereInput[];
232
+ id?: Prisma.StringFilter<"PodcastSegment"> | string;
233
+ artifactId?: Prisma.StringFilter<"PodcastSegment"> | string;
234
+ title?: Prisma.StringFilter<"PodcastSegment"> | string;
235
+ content?: Prisma.StringFilter<"PodcastSegment"> | string;
236
+ startTime?: Prisma.IntFilter<"PodcastSegment"> | number;
237
+ duration?: Prisma.IntFilter<"PodcastSegment"> | number;
238
+ order?: Prisma.IntFilter<"PodcastSegment"> | number;
239
+ objectKey?: Prisma.StringNullableFilter<"PodcastSegment"> | string | null;
240
+ audioUrl?: Prisma.StringNullableFilter<"PodcastSegment"> | string | null;
241
+ keyPoints?: Prisma.StringNullableListFilter<"PodcastSegment">;
242
+ meta?: Prisma.JsonNullableFilter<"PodcastSegment">;
243
+ createdAt?: Prisma.DateTimeFilter<"PodcastSegment"> | Date | string;
244
+ updatedAt?: Prisma.DateTimeFilter<"PodcastSegment"> | Date | string;
245
+ generating?: Prisma.BoolFilter<"PodcastSegment"> | boolean;
246
+ generatingMetadata?: Prisma.JsonNullableFilter<"PodcastSegment">;
247
+ artifact?: Prisma.XOR<Prisma.ArtifactScalarRelationFilter, Prisma.ArtifactWhereInput>;
248
+ };
249
+ export type PodcastSegmentOrderByWithRelationInput = {
250
+ id?: Prisma.SortOrder;
251
+ artifactId?: Prisma.SortOrder;
252
+ title?: Prisma.SortOrder;
253
+ content?: Prisma.SortOrder;
254
+ startTime?: Prisma.SortOrder;
255
+ duration?: Prisma.SortOrder;
256
+ order?: Prisma.SortOrder;
257
+ objectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
258
+ audioUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
259
+ keyPoints?: Prisma.SortOrder;
260
+ meta?: Prisma.SortOrderInput | Prisma.SortOrder;
261
+ createdAt?: Prisma.SortOrder;
262
+ updatedAt?: Prisma.SortOrder;
263
+ generating?: Prisma.SortOrder;
264
+ generatingMetadata?: Prisma.SortOrderInput | Prisma.SortOrder;
265
+ artifact?: Prisma.ArtifactOrderByWithRelationInput;
266
+ };
267
+ export type PodcastSegmentWhereUniqueInput = Prisma.AtLeast<{
268
+ id?: string;
269
+ AND?: Prisma.PodcastSegmentWhereInput | Prisma.PodcastSegmentWhereInput[];
270
+ OR?: Prisma.PodcastSegmentWhereInput[];
271
+ NOT?: Prisma.PodcastSegmentWhereInput | Prisma.PodcastSegmentWhereInput[];
272
+ artifactId?: Prisma.StringFilter<"PodcastSegment"> | string;
273
+ title?: Prisma.StringFilter<"PodcastSegment"> | string;
274
+ content?: Prisma.StringFilter<"PodcastSegment"> | string;
275
+ startTime?: Prisma.IntFilter<"PodcastSegment"> | number;
276
+ duration?: Prisma.IntFilter<"PodcastSegment"> | number;
277
+ order?: Prisma.IntFilter<"PodcastSegment"> | number;
278
+ objectKey?: Prisma.StringNullableFilter<"PodcastSegment"> | string | null;
279
+ audioUrl?: Prisma.StringNullableFilter<"PodcastSegment"> | string | null;
280
+ keyPoints?: Prisma.StringNullableListFilter<"PodcastSegment">;
281
+ meta?: Prisma.JsonNullableFilter<"PodcastSegment">;
282
+ createdAt?: Prisma.DateTimeFilter<"PodcastSegment"> | Date | string;
283
+ updatedAt?: Prisma.DateTimeFilter<"PodcastSegment"> | Date | string;
284
+ generating?: Prisma.BoolFilter<"PodcastSegment"> | boolean;
285
+ generatingMetadata?: Prisma.JsonNullableFilter<"PodcastSegment">;
286
+ artifact?: Prisma.XOR<Prisma.ArtifactScalarRelationFilter, Prisma.ArtifactWhereInput>;
287
+ }, "id">;
288
+ export type PodcastSegmentOrderByWithAggregationInput = {
289
+ id?: Prisma.SortOrder;
290
+ artifactId?: Prisma.SortOrder;
291
+ title?: Prisma.SortOrder;
292
+ content?: Prisma.SortOrder;
293
+ startTime?: Prisma.SortOrder;
294
+ duration?: Prisma.SortOrder;
295
+ order?: Prisma.SortOrder;
296
+ objectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
297
+ audioUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
298
+ keyPoints?: Prisma.SortOrder;
299
+ meta?: Prisma.SortOrderInput | Prisma.SortOrder;
300
+ createdAt?: Prisma.SortOrder;
301
+ updatedAt?: Prisma.SortOrder;
302
+ generating?: Prisma.SortOrder;
303
+ generatingMetadata?: Prisma.SortOrderInput | Prisma.SortOrder;
304
+ _count?: Prisma.PodcastSegmentCountOrderByAggregateInput;
305
+ _avg?: Prisma.PodcastSegmentAvgOrderByAggregateInput;
306
+ _max?: Prisma.PodcastSegmentMaxOrderByAggregateInput;
307
+ _min?: Prisma.PodcastSegmentMinOrderByAggregateInput;
308
+ _sum?: Prisma.PodcastSegmentSumOrderByAggregateInput;
309
+ };
310
+ export type PodcastSegmentScalarWhereWithAggregatesInput = {
311
+ AND?: Prisma.PodcastSegmentScalarWhereWithAggregatesInput | Prisma.PodcastSegmentScalarWhereWithAggregatesInput[];
312
+ OR?: Prisma.PodcastSegmentScalarWhereWithAggregatesInput[];
313
+ NOT?: Prisma.PodcastSegmentScalarWhereWithAggregatesInput | Prisma.PodcastSegmentScalarWhereWithAggregatesInput[];
314
+ id?: Prisma.StringWithAggregatesFilter<"PodcastSegment"> | string;
315
+ artifactId?: Prisma.StringWithAggregatesFilter<"PodcastSegment"> | string;
316
+ title?: Prisma.StringWithAggregatesFilter<"PodcastSegment"> | string;
317
+ content?: Prisma.StringWithAggregatesFilter<"PodcastSegment"> | string;
318
+ startTime?: Prisma.IntWithAggregatesFilter<"PodcastSegment"> | number;
319
+ duration?: Prisma.IntWithAggregatesFilter<"PodcastSegment"> | number;
320
+ order?: Prisma.IntWithAggregatesFilter<"PodcastSegment"> | number;
321
+ objectKey?: Prisma.StringNullableWithAggregatesFilter<"PodcastSegment"> | string | null;
322
+ audioUrl?: Prisma.StringNullableWithAggregatesFilter<"PodcastSegment"> | string | null;
323
+ keyPoints?: Prisma.StringNullableListFilter<"PodcastSegment">;
324
+ meta?: Prisma.JsonNullableWithAggregatesFilter<"PodcastSegment">;
325
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"PodcastSegment"> | Date | string;
326
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PodcastSegment"> | Date | string;
327
+ generating?: Prisma.BoolWithAggregatesFilter<"PodcastSegment"> | boolean;
328
+ generatingMetadata?: Prisma.JsonNullableWithAggregatesFilter<"PodcastSegment">;
329
+ };
330
+ export type PodcastSegmentCreateInput = {
331
+ id?: string;
332
+ title: string;
333
+ content: string;
334
+ startTime: number;
335
+ duration: number;
336
+ order: number;
337
+ objectKey?: string | null;
338
+ audioUrl?: string | null;
339
+ keyPoints?: Prisma.PodcastSegmentCreatekeyPointsInput | string[];
340
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
341
+ createdAt?: Date | string;
342
+ updatedAt?: Date | string;
343
+ generating?: boolean;
344
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
345
+ artifact: Prisma.ArtifactCreateNestedOneWithoutPodcastSegmentsInput;
346
+ };
347
+ export type PodcastSegmentUncheckedCreateInput = {
348
+ id?: string;
349
+ artifactId: string;
350
+ title: string;
351
+ content: string;
352
+ startTime: number;
353
+ duration: number;
354
+ order: number;
355
+ objectKey?: string | null;
356
+ audioUrl?: string | null;
357
+ keyPoints?: Prisma.PodcastSegmentCreatekeyPointsInput | string[];
358
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
359
+ createdAt?: Date | string;
360
+ updatedAt?: Date | string;
361
+ generating?: boolean;
362
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
363
+ };
364
+ export type PodcastSegmentUpdateInput = {
365
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
366
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
368
+ startTime?: Prisma.IntFieldUpdateOperationsInput | number;
369
+ duration?: Prisma.IntFieldUpdateOperationsInput | number;
370
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
371
+ objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
372
+ audioUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
373
+ keyPoints?: Prisma.PodcastSegmentUpdatekeyPointsInput | string[];
374
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
375
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
376
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
377
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
378
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
379
+ artifact?: Prisma.ArtifactUpdateOneRequiredWithoutPodcastSegmentsNestedInput;
380
+ };
381
+ export type PodcastSegmentUncheckedUpdateInput = {
382
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
384
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
385
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
386
+ startTime?: Prisma.IntFieldUpdateOperationsInput | number;
387
+ duration?: Prisma.IntFieldUpdateOperationsInput | number;
388
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
389
+ objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
390
+ audioUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
391
+ keyPoints?: Prisma.PodcastSegmentUpdatekeyPointsInput | string[];
392
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
393
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
394
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
395
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
396
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
397
+ };
398
+ export type PodcastSegmentCreateManyInput = {
399
+ id?: string;
400
+ artifactId: string;
401
+ title: string;
402
+ content: string;
403
+ startTime: number;
404
+ duration: number;
405
+ order: number;
406
+ objectKey?: string | null;
407
+ audioUrl?: string | null;
408
+ keyPoints?: Prisma.PodcastSegmentCreatekeyPointsInput | string[];
409
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
410
+ createdAt?: Date | string;
411
+ updatedAt?: Date | string;
412
+ generating?: boolean;
413
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
414
+ };
415
+ export type PodcastSegmentUpdateManyMutationInput = {
416
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
417
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
418
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
419
+ startTime?: Prisma.IntFieldUpdateOperationsInput | number;
420
+ duration?: Prisma.IntFieldUpdateOperationsInput | number;
421
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
422
+ objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
423
+ audioUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
424
+ keyPoints?: Prisma.PodcastSegmentUpdatekeyPointsInput | string[];
425
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
426
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
427
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
428
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
429
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
430
+ };
431
+ export type PodcastSegmentUncheckedUpdateManyInput = {
432
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
433
+ artifactId?: Prisma.StringFieldUpdateOperationsInput | string;
434
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
436
+ startTime?: Prisma.IntFieldUpdateOperationsInput | number;
437
+ duration?: Prisma.IntFieldUpdateOperationsInput | number;
438
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
439
+ objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
440
+ audioUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
441
+ keyPoints?: Prisma.PodcastSegmentUpdatekeyPointsInput | string[];
442
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
443
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
444
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
445
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
446
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
447
+ };
448
+ export type PodcastSegmentListRelationFilter = {
449
+ every?: Prisma.PodcastSegmentWhereInput;
450
+ some?: Prisma.PodcastSegmentWhereInput;
451
+ none?: Prisma.PodcastSegmentWhereInput;
452
+ };
453
+ export type PodcastSegmentOrderByRelationAggregateInput = {
454
+ _count?: Prisma.SortOrder;
455
+ };
456
+ export type PodcastSegmentCountOrderByAggregateInput = {
457
+ id?: Prisma.SortOrder;
458
+ artifactId?: Prisma.SortOrder;
459
+ title?: Prisma.SortOrder;
460
+ content?: Prisma.SortOrder;
461
+ startTime?: Prisma.SortOrder;
462
+ duration?: Prisma.SortOrder;
463
+ order?: Prisma.SortOrder;
464
+ objectKey?: Prisma.SortOrder;
465
+ audioUrl?: Prisma.SortOrder;
466
+ keyPoints?: Prisma.SortOrder;
467
+ meta?: Prisma.SortOrder;
468
+ createdAt?: Prisma.SortOrder;
469
+ updatedAt?: Prisma.SortOrder;
470
+ generating?: Prisma.SortOrder;
471
+ generatingMetadata?: Prisma.SortOrder;
472
+ };
473
+ export type PodcastSegmentAvgOrderByAggregateInput = {
474
+ startTime?: Prisma.SortOrder;
475
+ duration?: Prisma.SortOrder;
476
+ order?: Prisma.SortOrder;
477
+ };
478
+ export type PodcastSegmentMaxOrderByAggregateInput = {
479
+ id?: Prisma.SortOrder;
480
+ artifactId?: Prisma.SortOrder;
481
+ title?: Prisma.SortOrder;
482
+ content?: Prisma.SortOrder;
483
+ startTime?: Prisma.SortOrder;
484
+ duration?: Prisma.SortOrder;
485
+ order?: Prisma.SortOrder;
486
+ objectKey?: Prisma.SortOrder;
487
+ audioUrl?: Prisma.SortOrder;
488
+ createdAt?: Prisma.SortOrder;
489
+ updatedAt?: Prisma.SortOrder;
490
+ generating?: Prisma.SortOrder;
491
+ };
492
+ export type PodcastSegmentMinOrderByAggregateInput = {
493
+ id?: Prisma.SortOrder;
494
+ artifactId?: Prisma.SortOrder;
495
+ title?: Prisma.SortOrder;
496
+ content?: Prisma.SortOrder;
497
+ startTime?: Prisma.SortOrder;
498
+ duration?: Prisma.SortOrder;
499
+ order?: Prisma.SortOrder;
500
+ objectKey?: Prisma.SortOrder;
501
+ audioUrl?: Prisma.SortOrder;
502
+ createdAt?: Prisma.SortOrder;
503
+ updatedAt?: Prisma.SortOrder;
504
+ generating?: Prisma.SortOrder;
505
+ };
506
+ export type PodcastSegmentSumOrderByAggregateInput = {
507
+ startTime?: Prisma.SortOrder;
508
+ duration?: Prisma.SortOrder;
509
+ order?: Prisma.SortOrder;
510
+ };
511
+ export type PodcastSegmentCreateNestedManyWithoutArtifactInput = {
512
+ create?: Prisma.XOR<Prisma.PodcastSegmentCreateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput> | Prisma.PodcastSegmentCreateWithoutArtifactInput[] | Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput[];
513
+ connectOrCreate?: Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput | Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput[];
514
+ createMany?: Prisma.PodcastSegmentCreateManyArtifactInputEnvelope;
515
+ connect?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
516
+ };
517
+ export type PodcastSegmentUncheckedCreateNestedManyWithoutArtifactInput = {
518
+ create?: Prisma.XOR<Prisma.PodcastSegmentCreateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput> | Prisma.PodcastSegmentCreateWithoutArtifactInput[] | Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput[];
519
+ connectOrCreate?: Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput | Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput[];
520
+ createMany?: Prisma.PodcastSegmentCreateManyArtifactInputEnvelope;
521
+ connect?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
522
+ };
523
+ export type PodcastSegmentUpdateManyWithoutArtifactNestedInput = {
524
+ create?: Prisma.XOR<Prisma.PodcastSegmentCreateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput> | Prisma.PodcastSegmentCreateWithoutArtifactInput[] | Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput[];
525
+ connectOrCreate?: Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput | Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput[];
526
+ upsert?: Prisma.PodcastSegmentUpsertWithWhereUniqueWithoutArtifactInput | Prisma.PodcastSegmentUpsertWithWhereUniqueWithoutArtifactInput[];
527
+ createMany?: Prisma.PodcastSegmentCreateManyArtifactInputEnvelope;
528
+ set?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
529
+ disconnect?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
530
+ delete?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
531
+ connect?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
532
+ update?: Prisma.PodcastSegmentUpdateWithWhereUniqueWithoutArtifactInput | Prisma.PodcastSegmentUpdateWithWhereUniqueWithoutArtifactInput[];
533
+ updateMany?: Prisma.PodcastSegmentUpdateManyWithWhereWithoutArtifactInput | Prisma.PodcastSegmentUpdateManyWithWhereWithoutArtifactInput[];
534
+ deleteMany?: Prisma.PodcastSegmentScalarWhereInput | Prisma.PodcastSegmentScalarWhereInput[];
535
+ };
536
+ export type PodcastSegmentUncheckedUpdateManyWithoutArtifactNestedInput = {
537
+ create?: Prisma.XOR<Prisma.PodcastSegmentCreateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput> | Prisma.PodcastSegmentCreateWithoutArtifactInput[] | Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput[];
538
+ connectOrCreate?: Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput | Prisma.PodcastSegmentCreateOrConnectWithoutArtifactInput[];
539
+ upsert?: Prisma.PodcastSegmentUpsertWithWhereUniqueWithoutArtifactInput | Prisma.PodcastSegmentUpsertWithWhereUniqueWithoutArtifactInput[];
540
+ createMany?: Prisma.PodcastSegmentCreateManyArtifactInputEnvelope;
541
+ set?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
542
+ disconnect?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
543
+ delete?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
544
+ connect?: Prisma.PodcastSegmentWhereUniqueInput | Prisma.PodcastSegmentWhereUniqueInput[];
545
+ update?: Prisma.PodcastSegmentUpdateWithWhereUniqueWithoutArtifactInput | Prisma.PodcastSegmentUpdateWithWhereUniqueWithoutArtifactInput[];
546
+ updateMany?: Prisma.PodcastSegmentUpdateManyWithWhereWithoutArtifactInput | Prisma.PodcastSegmentUpdateManyWithWhereWithoutArtifactInput[];
547
+ deleteMany?: Prisma.PodcastSegmentScalarWhereInput | Prisma.PodcastSegmentScalarWhereInput[];
548
+ };
549
+ export type PodcastSegmentCreatekeyPointsInput = {
550
+ set: string[];
551
+ };
552
+ export type PodcastSegmentUpdatekeyPointsInput = {
553
+ set?: string[];
554
+ push?: string | string[];
555
+ };
556
+ export type PodcastSegmentCreateWithoutArtifactInput = {
557
+ id?: string;
558
+ title: string;
559
+ content: string;
560
+ startTime: number;
561
+ duration: number;
562
+ order: number;
563
+ objectKey?: string | null;
564
+ audioUrl?: string | null;
565
+ keyPoints?: Prisma.PodcastSegmentCreatekeyPointsInput | string[];
566
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
567
+ createdAt?: Date | string;
568
+ updatedAt?: Date | string;
569
+ generating?: boolean;
570
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
571
+ };
572
+ export type PodcastSegmentUncheckedCreateWithoutArtifactInput = {
573
+ id?: string;
574
+ title: string;
575
+ content: string;
576
+ startTime: number;
577
+ duration: number;
578
+ order: number;
579
+ objectKey?: string | null;
580
+ audioUrl?: string | null;
581
+ keyPoints?: Prisma.PodcastSegmentCreatekeyPointsInput | string[];
582
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
583
+ createdAt?: Date | string;
584
+ updatedAt?: Date | string;
585
+ generating?: boolean;
586
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
587
+ };
588
+ export type PodcastSegmentCreateOrConnectWithoutArtifactInput = {
589
+ where: Prisma.PodcastSegmentWhereUniqueInput;
590
+ create: Prisma.XOR<Prisma.PodcastSegmentCreateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput>;
591
+ };
592
+ export type PodcastSegmentCreateManyArtifactInputEnvelope = {
593
+ data: Prisma.PodcastSegmentCreateManyArtifactInput | Prisma.PodcastSegmentCreateManyArtifactInput[];
594
+ skipDuplicates?: boolean;
595
+ };
596
+ export type PodcastSegmentUpsertWithWhereUniqueWithoutArtifactInput = {
597
+ where: Prisma.PodcastSegmentWhereUniqueInput;
598
+ update: Prisma.XOR<Prisma.PodcastSegmentUpdateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedUpdateWithoutArtifactInput>;
599
+ create: Prisma.XOR<Prisma.PodcastSegmentCreateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedCreateWithoutArtifactInput>;
600
+ };
601
+ export type PodcastSegmentUpdateWithWhereUniqueWithoutArtifactInput = {
602
+ where: Prisma.PodcastSegmentWhereUniqueInput;
603
+ data: Prisma.XOR<Prisma.PodcastSegmentUpdateWithoutArtifactInput, Prisma.PodcastSegmentUncheckedUpdateWithoutArtifactInput>;
604
+ };
605
+ export type PodcastSegmentUpdateManyWithWhereWithoutArtifactInput = {
606
+ where: Prisma.PodcastSegmentScalarWhereInput;
607
+ data: Prisma.XOR<Prisma.PodcastSegmentUpdateManyMutationInput, Prisma.PodcastSegmentUncheckedUpdateManyWithoutArtifactInput>;
608
+ };
609
+ export type PodcastSegmentScalarWhereInput = {
610
+ AND?: Prisma.PodcastSegmentScalarWhereInput | Prisma.PodcastSegmentScalarWhereInput[];
611
+ OR?: Prisma.PodcastSegmentScalarWhereInput[];
612
+ NOT?: Prisma.PodcastSegmentScalarWhereInput | Prisma.PodcastSegmentScalarWhereInput[];
613
+ id?: Prisma.StringFilter<"PodcastSegment"> | string;
614
+ artifactId?: Prisma.StringFilter<"PodcastSegment"> | string;
615
+ title?: Prisma.StringFilter<"PodcastSegment"> | string;
616
+ content?: Prisma.StringFilter<"PodcastSegment"> | string;
617
+ startTime?: Prisma.IntFilter<"PodcastSegment"> | number;
618
+ duration?: Prisma.IntFilter<"PodcastSegment"> | number;
619
+ order?: Prisma.IntFilter<"PodcastSegment"> | number;
620
+ objectKey?: Prisma.StringNullableFilter<"PodcastSegment"> | string | null;
621
+ audioUrl?: Prisma.StringNullableFilter<"PodcastSegment"> | string | null;
622
+ keyPoints?: Prisma.StringNullableListFilter<"PodcastSegment">;
623
+ meta?: Prisma.JsonNullableFilter<"PodcastSegment">;
624
+ createdAt?: Prisma.DateTimeFilter<"PodcastSegment"> | Date | string;
625
+ updatedAt?: Prisma.DateTimeFilter<"PodcastSegment"> | Date | string;
626
+ generating?: Prisma.BoolFilter<"PodcastSegment"> | boolean;
627
+ generatingMetadata?: Prisma.JsonNullableFilter<"PodcastSegment">;
628
+ };
629
+ export type PodcastSegmentCreateManyArtifactInput = {
630
+ id?: string;
631
+ title: string;
632
+ content: string;
633
+ startTime: number;
634
+ duration: number;
635
+ order: number;
636
+ objectKey?: string | null;
637
+ audioUrl?: string | null;
638
+ keyPoints?: Prisma.PodcastSegmentCreatekeyPointsInput | string[];
639
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
640
+ createdAt?: Date | string;
641
+ updatedAt?: Date | string;
642
+ generating?: boolean;
643
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
644
+ };
645
+ export type PodcastSegmentUpdateWithoutArtifactInput = {
646
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
647
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
648
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
649
+ startTime?: Prisma.IntFieldUpdateOperationsInput | number;
650
+ duration?: Prisma.IntFieldUpdateOperationsInput | number;
651
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
652
+ objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
653
+ audioUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
654
+ keyPoints?: Prisma.PodcastSegmentUpdatekeyPointsInput | string[];
655
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
656
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
657
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
658
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
659
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
660
+ };
661
+ export type PodcastSegmentUncheckedUpdateWithoutArtifactInput = {
662
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
663
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
664
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
665
+ startTime?: Prisma.IntFieldUpdateOperationsInput | number;
666
+ duration?: Prisma.IntFieldUpdateOperationsInput | number;
667
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
668
+ objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
669
+ audioUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
670
+ keyPoints?: Prisma.PodcastSegmentUpdatekeyPointsInput | string[];
671
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
672
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
673
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
674
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
675
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
676
+ };
677
+ export type PodcastSegmentUncheckedUpdateManyWithoutArtifactInput = {
678
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
679
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
680
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
681
+ startTime?: Prisma.IntFieldUpdateOperationsInput | number;
682
+ duration?: Prisma.IntFieldUpdateOperationsInput | number;
683
+ order?: Prisma.IntFieldUpdateOperationsInput | number;
684
+ objectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
685
+ audioUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
686
+ keyPoints?: Prisma.PodcastSegmentUpdatekeyPointsInput | string[];
687
+ meta?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
688
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
689
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
690
+ generating?: Prisma.BoolFieldUpdateOperationsInput | boolean;
691
+ generatingMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
692
+ };
693
+ export type PodcastSegmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
694
+ id?: boolean;
695
+ artifactId?: boolean;
696
+ title?: boolean;
697
+ content?: boolean;
698
+ startTime?: boolean;
699
+ duration?: boolean;
700
+ order?: boolean;
701
+ objectKey?: boolean;
702
+ audioUrl?: boolean;
703
+ keyPoints?: boolean;
704
+ meta?: boolean;
705
+ createdAt?: boolean;
706
+ updatedAt?: boolean;
707
+ generating?: boolean;
708
+ generatingMetadata?: boolean;
709
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
710
+ }, ExtArgs["result"]["podcastSegment"]>;
711
+ export type PodcastSegmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
712
+ id?: boolean;
713
+ artifactId?: boolean;
714
+ title?: boolean;
715
+ content?: boolean;
716
+ startTime?: boolean;
717
+ duration?: boolean;
718
+ order?: boolean;
719
+ objectKey?: boolean;
720
+ audioUrl?: boolean;
721
+ keyPoints?: boolean;
722
+ meta?: boolean;
723
+ createdAt?: boolean;
724
+ updatedAt?: boolean;
725
+ generating?: boolean;
726
+ generatingMetadata?: boolean;
727
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
728
+ }, ExtArgs["result"]["podcastSegment"]>;
729
+ export type PodcastSegmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
730
+ id?: boolean;
731
+ artifactId?: boolean;
732
+ title?: boolean;
733
+ content?: boolean;
734
+ startTime?: boolean;
735
+ duration?: boolean;
736
+ order?: boolean;
737
+ objectKey?: boolean;
738
+ audioUrl?: boolean;
739
+ keyPoints?: boolean;
740
+ meta?: boolean;
741
+ createdAt?: boolean;
742
+ updatedAt?: boolean;
743
+ generating?: boolean;
744
+ generatingMetadata?: boolean;
745
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
746
+ }, ExtArgs["result"]["podcastSegment"]>;
747
+ export type PodcastSegmentSelectScalar = {
748
+ id?: boolean;
749
+ artifactId?: boolean;
750
+ title?: boolean;
751
+ content?: boolean;
752
+ startTime?: boolean;
753
+ duration?: boolean;
754
+ order?: boolean;
755
+ objectKey?: boolean;
756
+ audioUrl?: boolean;
757
+ keyPoints?: boolean;
758
+ meta?: boolean;
759
+ createdAt?: boolean;
760
+ updatedAt?: boolean;
761
+ generating?: boolean;
762
+ generatingMetadata?: boolean;
763
+ };
764
+ export type PodcastSegmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "artifactId" | "title" | "content" | "startTime" | "duration" | "order" | "objectKey" | "audioUrl" | "keyPoints" | "meta" | "createdAt" | "updatedAt" | "generating" | "generatingMetadata", ExtArgs["result"]["podcastSegment"]>;
765
+ export type PodcastSegmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
766
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
767
+ };
768
+ export type PodcastSegmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
769
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
770
+ };
771
+ export type PodcastSegmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
772
+ artifact?: boolean | Prisma.ArtifactDefaultArgs<ExtArgs>;
773
+ };
774
+ export type $PodcastSegmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
775
+ name: "PodcastSegment";
776
+ objects: {
777
+ artifact: Prisma.$ArtifactPayload<ExtArgs>;
778
+ };
779
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
780
+ id: string;
781
+ artifactId: string;
782
+ title: string;
783
+ content: string;
784
+ startTime: number;
785
+ duration: number;
786
+ order: number;
787
+ objectKey: string | null;
788
+ audioUrl: string | null;
789
+ keyPoints: string[];
790
+ meta: runtime.JsonValue | null;
791
+ createdAt: Date;
792
+ updatedAt: Date;
793
+ generating: boolean;
794
+ generatingMetadata: runtime.JsonValue | null;
795
+ }, ExtArgs["result"]["podcastSegment"]>;
796
+ composites: {};
797
+ };
798
+ export type PodcastSegmentGetPayload<S extends boolean | null | undefined | PodcastSegmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload, S>;
799
+ export type PodcastSegmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PodcastSegmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
800
+ select?: PodcastSegmentCountAggregateInputType | true;
801
+ };
802
+ export interface PodcastSegmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
803
+ [K: symbol]: {
804
+ types: Prisma.TypeMap<ExtArgs>['model']['PodcastSegment'];
805
+ meta: {
806
+ name: 'PodcastSegment';
807
+ };
808
+ };
809
+ /**
810
+ * Find zero or one PodcastSegment that matches the filter.
811
+ * @param {PodcastSegmentFindUniqueArgs} args - Arguments to find a PodcastSegment
812
+ * @example
813
+ * // Get one PodcastSegment
814
+ * const podcastSegment = await prisma.podcastSegment.findUnique({
815
+ * where: {
816
+ * // ... provide filter here
817
+ * }
818
+ * })
819
+ */
820
+ findUnique<T extends PodcastSegmentFindUniqueArgs>(args: Prisma.SelectSubset<T, PodcastSegmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
821
+ /**
822
+ * Find one PodcastSegment that matches the filter or throw an error with `error.code='P2025'`
823
+ * if no matches were found.
824
+ * @param {PodcastSegmentFindUniqueOrThrowArgs} args - Arguments to find a PodcastSegment
825
+ * @example
826
+ * // Get one PodcastSegment
827
+ * const podcastSegment = await prisma.podcastSegment.findUniqueOrThrow({
828
+ * where: {
829
+ * // ... provide filter here
830
+ * }
831
+ * })
832
+ */
833
+ findUniqueOrThrow<T extends PodcastSegmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PodcastSegmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
834
+ /**
835
+ * Find the first PodcastSegment that matches the filter.
836
+ * Note, that providing `undefined` is treated as the value not being there.
837
+ * Read more here: https://pris.ly/d/null-undefined
838
+ * @param {PodcastSegmentFindFirstArgs} args - Arguments to find a PodcastSegment
839
+ * @example
840
+ * // Get one PodcastSegment
841
+ * const podcastSegment = await prisma.podcastSegment.findFirst({
842
+ * where: {
843
+ * // ... provide filter here
844
+ * }
845
+ * })
846
+ */
847
+ findFirst<T extends PodcastSegmentFindFirstArgs>(args?: Prisma.SelectSubset<T, PodcastSegmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
848
+ /**
849
+ * Find the first PodcastSegment that matches the filter or
850
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
851
+ * Note, that providing `undefined` is treated as the value not being there.
852
+ * Read more here: https://pris.ly/d/null-undefined
853
+ * @param {PodcastSegmentFindFirstOrThrowArgs} args - Arguments to find a PodcastSegment
854
+ * @example
855
+ * // Get one PodcastSegment
856
+ * const podcastSegment = await prisma.podcastSegment.findFirstOrThrow({
857
+ * where: {
858
+ * // ... provide filter here
859
+ * }
860
+ * })
861
+ */
862
+ findFirstOrThrow<T extends PodcastSegmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PodcastSegmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
863
+ /**
864
+ * Find zero or more PodcastSegments that matches the filter.
865
+ * Note, that providing `undefined` is treated as the value not being there.
866
+ * Read more here: https://pris.ly/d/null-undefined
867
+ * @param {PodcastSegmentFindManyArgs} args - Arguments to filter and select certain fields only.
868
+ * @example
869
+ * // Get all PodcastSegments
870
+ * const podcastSegments = await prisma.podcastSegment.findMany()
871
+ *
872
+ * // Get first 10 PodcastSegments
873
+ * const podcastSegments = await prisma.podcastSegment.findMany({ take: 10 })
874
+ *
875
+ * // Only select the `id`
876
+ * const podcastSegmentWithIdOnly = await prisma.podcastSegment.findMany({ select: { id: true } })
877
+ *
878
+ */
879
+ findMany<T extends PodcastSegmentFindManyArgs>(args?: Prisma.SelectSubset<T, PodcastSegmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
880
+ /**
881
+ * Create a PodcastSegment.
882
+ * @param {PodcastSegmentCreateArgs} args - Arguments to create a PodcastSegment.
883
+ * @example
884
+ * // Create one PodcastSegment
885
+ * const PodcastSegment = await prisma.podcastSegment.create({
886
+ * data: {
887
+ * // ... data to create a PodcastSegment
888
+ * }
889
+ * })
890
+ *
891
+ */
892
+ create<T extends PodcastSegmentCreateArgs>(args: Prisma.SelectSubset<T, PodcastSegmentCreateArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
893
+ /**
894
+ * Create many PodcastSegments.
895
+ * @param {PodcastSegmentCreateManyArgs} args - Arguments to create many PodcastSegments.
896
+ * @example
897
+ * // Create many PodcastSegments
898
+ * const podcastSegment = await prisma.podcastSegment.createMany({
899
+ * data: [
900
+ * // ... provide data here
901
+ * ]
902
+ * })
903
+ *
904
+ */
905
+ createMany<T extends PodcastSegmentCreateManyArgs>(args?: Prisma.SelectSubset<T, PodcastSegmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
906
+ /**
907
+ * Create many PodcastSegments and returns the data saved in the database.
908
+ * @param {PodcastSegmentCreateManyAndReturnArgs} args - Arguments to create many PodcastSegments.
909
+ * @example
910
+ * // Create many PodcastSegments
911
+ * const podcastSegment = await prisma.podcastSegment.createManyAndReturn({
912
+ * data: [
913
+ * // ... provide data here
914
+ * ]
915
+ * })
916
+ *
917
+ * // Create many PodcastSegments and only return the `id`
918
+ * const podcastSegmentWithIdOnly = await prisma.podcastSegment.createManyAndReturn({
919
+ * select: { id: true },
920
+ * data: [
921
+ * // ... provide data here
922
+ * ]
923
+ * })
924
+ * Note, that providing `undefined` is treated as the value not being there.
925
+ * Read more here: https://pris.ly/d/null-undefined
926
+ *
927
+ */
928
+ createManyAndReturn<T extends PodcastSegmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PodcastSegmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
929
+ /**
930
+ * Delete a PodcastSegment.
931
+ * @param {PodcastSegmentDeleteArgs} args - Arguments to delete one PodcastSegment.
932
+ * @example
933
+ * // Delete one PodcastSegment
934
+ * const PodcastSegment = await prisma.podcastSegment.delete({
935
+ * where: {
936
+ * // ... filter to delete one PodcastSegment
937
+ * }
938
+ * })
939
+ *
940
+ */
941
+ delete<T extends PodcastSegmentDeleteArgs>(args: Prisma.SelectSubset<T, PodcastSegmentDeleteArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
942
+ /**
943
+ * Update one PodcastSegment.
944
+ * @param {PodcastSegmentUpdateArgs} args - Arguments to update one PodcastSegment.
945
+ * @example
946
+ * // Update one PodcastSegment
947
+ * const podcastSegment = await prisma.podcastSegment.update({
948
+ * where: {
949
+ * // ... provide filter here
950
+ * },
951
+ * data: {
952
+ * // ... provide data here
953
+ * }
954
+ * })
955
+ *
956
+ */
957
+ update<T extends PodcastSegmentUpdateArgs>(args: Prisma.SelectSubset<T, PodcastSegmentUpdateArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
958
+ /**
959
+ * Delete zero or more PodcastSegments.
960
+ * @param {PodcastSegmentDeleteManyArgs} args - Arguments to filter PodcastSegments to delete.
961
+ * @example
962
+ * // Delete a few PodcastSegments
963
+ * const { count } = await prisma.podcastSegment.deleteMany({
964
+ * where: {
965
+ * // ... provide filter here
966
+ * }
967
+ * })
968
+ *
969
+ */
970
+ deleteMany<T extends PodcastSegmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, PodcastSegmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
971
+ /**
972
+ * Update zero or more PodcastSegments.
973
+ * Note, that providing `undefined` is treated as the value not being there.
974
+ * Read more here: https://pris.ly/d/null-undefined
975
+ * @param {PodcastSegmentUpdateManyArgs} args - Arguments to update one or more rows.
976
+ * @example
977
+ * // Update many PodcastSegments
978
+ * const podcastSegment = await prisma.podcastSegment.updateMany({
979
+ * where: {
980
+ * // ... provide filter here
981
+ * },
982
+ * data: {
983
+ * // ... provide data here
984
+ * }
985
+ * })
986
+ *
987
+ */
988
+ updateMany<T extends PodcastSegmentUpdateManyArgs>(args: Prisma.SelectSubset<T, PodcastSegmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
989
+ /**
990
+ * Update zero or more PodcastSegments and returns the data updated in the database.
991
+ * @param {PodcastSegmentUpdateManyAndReturnArgs} args - Arguments to update many PodcastSegments.
992
+ * @example
993
+ * // Update many PodcastSegments
994
+ * const podcastSegment = await prisma.podcastSegment.updateManyAndReturn({
995
+ * where: {
996
+ * // ... provide filter here
997
+ * },
998
+ * data: [
999
+ * // ... provide data here
1000
+ * ]
1001
+ * })
1002
+ *
1003
+ * // Update zero or more PodcastSegments and only return the `id`
1004
+ * const podcastSegmentWithIdOnly = await prisma.podcastSegment.updateManyAndReturn({
1005
+ * select: { id: true },
1006
+ * where: {
1007
+ * // ... provide filter here
1008
+ * },
1009
+ * data: [
1010
+ * // ... provide data here
1011
+ * ]
1012
+ * })
1013
+ * Note, that providing `undefined` is treated as the value not being there.
1014
+ * Read more here: https://pris.ly/d/null-undefined
1015
+ *
1016
+ */
1017
+ updateManyAndReturn<T extends PodcastSegmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PodcastSegmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1018
+ /**
1019
+ * Create or update one PodcastSegment.
1020
+ * @param {PodcastSegmentUpsertArgs} args - Arguments to update or create a PodcastSegment.
1021
+ * @example
1022
+ * // Update or create a PodcastSegment
1023
+ * const podcastSegment = await prisma.podcastSegment.upsert({
1024
+ * create: {
1025
+ * // ... data to create a PodcastSegment
1026
+ * },
1027
+ * update: {
1028
+ * // ... in case it already exists, update
1029
+ * },
1030
+ * where: {
1031
+ * // ... the filter for the PodcastSegment we want to update
1032
+ * }
1033
+ * })
1034
+ */
1035
+ upsert<T extends PodcastSegmentUpsertArgs>(args: Prisma.SelectSubset<T, PodcastSegmentUpsertArgs<ExtArgs>>): Prisma.Prisma__PodcastSegmentClient<runtime.Types.Result.GetResult<Prisma.$PodcastSegmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1036
+ /**
1037
+ * Count the number of PodcastSegments.
1038
+ * Note, that providing `undefined` is treated as the value not being there.
1039
+ * Read more here: https://pris.ly/d/null-undefined
1040
+ * @param {PodcastSegmentCountArgs} args - Arguments to filter PodcastSegments to count.
1041
+ * @example
1042
+ * // Count the number of PodcastSegments
1043
+ * const count = await prisma.podcastSegment.count({
1044
+ * where: {
1045
+ * // ... the filter for the PodcastSegments we want to count
1046
+ * }
1047
+ * })
1048
+ **/
1049
+ count<T extends PodcastSegmentCountArgs>(args?: Prisma.Subset<T, PodcastSegmentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PodcastSegmentCountAggregateOutputType> : number>;
1050
+ /**
1051
+ * Allows you to perform aggregations operations on a PodcastSegment.
1052
+ * Note, that providing `undefined` is treated as the value not being there.
1053
+ * Read more here: https://pris.ly/d/null-undefined
1054
+ * @param {PodcastSegmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1055
+ * @example
1056
+ * // Ordered by age ascending
1057
+ * // Where email contains prisma.io
1058
+ * // Limited to the 10 users
1059
+ * const aggregations = await prisma.user.aggregate({
1060
+ * _avg: {
1061
+ * age: true,
1062
+ * },
1063
+ * where: {
1064
+ * email: {
1065
+ * contains: "prisma.io",
1066
+ * },
1067
+ * },
1068
+ * orderBy: {
1069
+ * age: "asc",
1070
+ * },
1071
+ * take: 10,
1072
+ * })
1073
+ **/
1074
+ aggregate<T extends PodcastSegmentAggregateArgs>(args: Prisma.Subset<T, PodcastSegmentAggregateArgs>): Prisma.PrismaPromise<GetPodcastSegmentAggregateType<T>>;
1075
+ /**
1076
+ * Group by PodcastSegment.
1077
+ * Note, that providing `undefined` is treated as the value not being there.
1078
+ * Read more here: https://pris.ly/d/null-undefined
1079
+ * @param {PodcastSegmentGroupByArgs} args - Group by arguments.
1080
+ * @example
1081
+ * // Group by city, order by createdAt, get count
1082
+ * const result = await prisma.user.groupBy({
1083
+ * by: ['city', 'createdAt'],
1084
+ * orderBy: {
1085
+ * createdAt: true
1086
+ * },
1087
+ * _count: {
1088
+ * _all: true
1089
+ * },
1090
+ * })
1091
+ *
1092
+ **/
1093
+ groupBy<T extends PodcastSegmentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1094
+ orderBy: PodcastSegmentGroupByArgs['orderBy'];
1095
+ } : {
1096
+ orderBy?: PodcastSegmentGroupByArgs['orderBy'];
1097
+ }, 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 ? {
1098
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1099
+ Error,
1100
+ 'Field ',
1101
+ P,
1102
+ ` in "having" needs to be provided in "by"`
1103
+ ];
1104
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1105
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1106
+ }[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 ? {} : {
1107
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1108
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1109
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1110
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PodcastSegmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPodcastSegmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1111
+ /**
1112
+ * Fields of the PodcastSegment model
1113
+ */
1114
+ readonly fields: PodcastSegmentFieldRefs;
1115
+ }
1116
+ /**
1117
+ * The delegate class that acts as a "Promise-like" for PodcastSegment.
1118
+ * Why is this prefixed with `Prisma__`?
1119
+ * Because we want to prevent naming conflicts as mentioned in
1120
+ * https://github.com/prisma/prisma-client-js/issues/707
1121
+ */
1122
+ export interface Prisma__PodcastSegmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1123
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1124
+ artifact<T extends Prisma.ArtifactDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ArtifactDefaultArgs<ExtArgs>>): Prisma.Prisma__ArtifactClient<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1125
+ /**
1126
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1127
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1128
+ * @param onrejected The callback to execute when the Promise is rejected.
1129
+ * @returns A Promise for the completion of which ever callback is executed.
1130
+ */
1131
+ 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>;
1132
+ /**
1133
+ * Attaches a callback for only the rejection of the Promise.
1134
+ * @param onrejected The callback to execute when the Promise is rejected.
1135
+ * @returns A Promise for the completion of the callback.
1136
+ */
1137
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1138
+ /**
1139
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1140
+ * resolved value cannot be modified from the callback.
1141
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1142
+ * @returns A Promise for the completion of the callback.
1143
+ */
1144
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1145
+ }
1146
+ /**
1147
+ * Fields of the PodcastSegment model
1148
+ */
1149
+ export interface PodcastSegmentFieldRefs {
1150
+ readonly id: Prisma.FieldRef<"PodcastSegment", 'String'>;
1151
+ readonly artifactId: Prisma.FieldRef<"PodcastSegment", 'String'>;
1152
+ readonly title: Prisma.FieldRef<"PodcastSegment", 'String'>;
1153
+ readonly content: Prisma.FieldRef<"PodcastSegment", 'String'>;
1154
+ readonly startTime: Prisma.FieldRef<"PodcastSegment", 'Int'>;
1155
+ readonly duration: Prisma.FieldRef<"PodcastSegment", 'Int'>;
1156
+ readonly order: Prisma.FieldRef<"PodcastSegment", 'Int'>;
1157
+ readonly objectKey: Prisma.FieldRef<"PodcastSegment", 'String'>;
1158
+ readonly audioUrl: Prisma.FieldRef<"PodcastSegment", 'String'>;
1159
+ readonly keyPoints: Prisma.FieldRef<"PodcastSegment", 'String[]'>;
1160
+ readonly meta: Prisma.FieldRef<"PodcastSegment", 'Json'>;
1161
+ readonly createdAt: Prisma.FieldRef<"PodcastSegment", 'DateTime'>;
1162
+ readonly updatedAt: Prisma.FieldRef<"PodcastSegment", 'DateTime'>;
1163
+ readonly generating: Prisma.FieldRef<"PodcastSegment", 'Boolean'>;
1164
+ readonly generatingMetadata: Prisma.FieldRef<"PodcastSegment", 'Json'>;
1165
+ }
1166
+ /**
1167
+ * PodcastSegment findUnique
1168
+ */
1169
+ export type PodcastSegmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1170
+ /**
1171
+ * Select specific fields to fetch from the PodcastSegment
1172
+ */
1173
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1174
+ /**
1175
+ * Omit specific fields from the PodcastSegment
1176
+ */
1177
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1178
+ /**
1179
+ * Choose, which related nodes to fetch as well
1180
+ */
1181
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1182
+ /**
1183
+ * Filter, which PodcastSegment to fetch.
1184
+ */
1185
+ where: Prisma.PodcastSegmentWhereUniqueInput;
1186
+ };
1187
+ /**
1188
+ * PodcastSegment findUniqueOrThrow
1189
+ */
1190
+ export type PodcastSegmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1191
+ /**
1192
+ * Select specific fields to fetch from the PodcastSegment
1193
+ */
1194
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1195
+ /**
1196
+ * Omit specific fields from the PodcastSegment
1197
+ */
1198
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1199
+ /**
1200
+ * Choose, which related nodes to fetch as well
1201
+ */
1202
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1203
+ /**
1204
+ * Filter, which PodcastSegment to fetch.
1205
+ */
1206
+ where: Prisma.PodcastSegmentWhereUniqueInput;
1207
+ };
1208
+ /**
1209
+ * PodcastSegment findFirst
1210
+ */
1211
+ export type PodcastSegmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1212
+ /**
1213
+ * Select specific fields to fetch from the PodcastSegment
1214
+ */
1215
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1216
+ /**
1217
+ * Omit specific fields from the PodcastSegment
1218
+ */
1219
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1220
+ /**
1221
+ * Choose, which related nodes to fetch as well
1222
+ */
1223
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1224
+ /**
1225
+ * Filter, which PodcastSegment to fetch.
1226
+ */
1227
+ where?: Prisma.PodcastSegmentWhereInput;
1228
+ /**
1229
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1230
+ *
1231
+ * Determine the order of PodcastSegments to fetch.
1232
+ */
1233
+ orderBy?: Prisma.PodcastSegmentOrderByWithRelationInput | Prisma.PodcastSegmentOrderByWithRelationInput[];
1234
+ /**
1235
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1236
+ *
1237
+ * Sets the position for searching for PodcastSegments.
1238
+ */
1239
+ cursor?: Prisma.PodcastSegmentWhereUniqueInput;
1240
+ /**
1241
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1242
+ *
1243
+ * Take `±n` PodcastSegments from the position of the cursor.
1244
+ */
1245
+ take?: number;
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1248
+ *
1249
+ * Skip the first `n` PodcastSegments.
1250
+ */
1251
+ skip?: number;
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1254
+ *
1255
+ * Filter by unique combinations of PodcastSegments.
1256
+ */
1257
+ distinct?: Prisma.PodcastSegmentScalarFieldEnum | Prisma.PodcastSegmentScalarFieldEnum[];
1258
+ };
1259
+ /**
1260
+ * PodcastSegment findFirstOrThrow
1261
+ */
1262
+ export type PodcastSegmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the PodcastSegment
1265
+ */
1266
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1267
+ /**
1268
+ * Omit specific fields from the PodcastSegment
1269
+ */
1270
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1271
+ /**
1272
+ * Choose, which related nodes to fetch as well
1273
+ */
1274
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1275
+ /**
1276
+ * Filter, which PodcastSegment to fetch.
1277
+ */
1278
+ where?: Prisma.PodcastSegmentWhereInput;
1279
+ /**
1280
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1281
+ *
1282
+ * Determine the order of PodcastSegments to fetch.
1283
+ */
1284
+ orderBy?: Prisma.PodcastSegmentOrderByWithRelationInput | Prisma.PodcastSegmentOrderByWithRelationInput[];
1285
+ /**
1286
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1287
+ *
1288
+ * Sets the position for searching for PodcastSegments.
1289
+ */
1290
+ cursor?: Prisma.PodcastSegmentWhereUniqueInput;
1291
+ /**
1292
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1293
+ *
1294
+ * Take `±n` PodcastSegments from the position of the cursor.
1295
+ */
1296
+ take?: number;
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1299
+ *
1300
+ * Skip the first `n` PodcastSegments.
1301
+ */
1302
+ skip?: number;
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1305
+ *
1306
+ * Filter by unique combinations of PodcastSegments.
1307
+ */
1308
+ distinct?: Prisma.PodcastSegmentScalarFieldEnum | Prisma.PodcastSegmentScalarFieldEnum[];
1309
+ };
1310
+ /**
1311
+ * PodcastSegment findMany
1312
+ */
1313
+ export type PodcastSegmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1314
+ /**
1315
+ * Select specific fields to fetch from the PodcastSegment
1316
+ */
1317
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1318
+ /**
1319
+ * Omit specific fields from the PodcastSegment
1320
+ */
1321
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1322
+ /**
1323
+ * Choose, which related nodes to fetch as well
1324
+ */
1325
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1326
+ /**
1327
+ * Filter, which PodcastSegments to fetch.
1328
+ */
1329
+ where?: Prisma.PodcastSegmentWhereInput;
1330
+ /**
1331
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1332
+ *
1333
+ * Determine the order of PodcastSegments to fetch.
1334
+ */
1335
+ orderBy?: Prisma.PodcastSegmentOrderByWithRelationInput | Prisma.PodcastSegmentOrderByWithRelationInput[];
1336
+ /**
1337
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1338
+ *
1339
+ * Sets the position for listing PodcastSegments.
1340
+ */
1341
+ cursor?: Prisma.PodcastSegmentWhereUniqueInput;
1342
+ /**
1343
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1344
+ *
1345
+ * Take `±n` PodcastSegments from the position of the cursor.
1346
+ */
1347
+ take?: number;
1348
+ /**
1349
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1350
+ *
1351
+ * Skip the first `n` PodcastSegments.
1352
+ */
1353
+ skip?: number;
1354
+ /**
1355
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1356
+ *
1357
+ * Filter by unique combinations of PodcastSegments.
1358
+ */
1359
+ distinct?: Prisma.PodcastSegmentScalarFieldEnum | Prisma.PodcastSegmentScalarFieldEnum[];
1360
+ };
1361
+ /**
1362
+ * PodcastSegment create
1363
+ */
1364
+ export type PodcastSegmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1365
+ /**
1366
+ * Select specific fields to fetch from the PodcastSegment
1367
+ */
1368
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1369
+ /**
1370
+ * Omit specific fields from the PodcastSegment
1371
+ */
1372
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1373
+ /**
1374
+ * Choose, which related nodes to fetch as well
1375
+ */
1376
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1377
+ /**
1378
+ * The data needed to create a PodcastSegment.
1379
+ */
1380
+ data: Prisma.XOR<Prisma.PodcastSegmentCreateInput, Prisma.PodcastSegmentUncheckedCreateInput>;
1381
+ };
1382
+ /**
1383
+ * PodcastSegment createMany
1384
+ */
1385
+ export type PodcastSegmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1386
+ /**
1387
+ * The data used to create many PodcastSegments.
1388
+ */
1389
+ data: Prisma.PodcastSegmentCreateManyInput | Prisma.PodcastSegmentCreateManyInput[];
1390
+ skipDuplicates?: boolean;
1391
+ };
1392
+ /**
1393
+ * PodcastSegment createManyAndReturn
1394
+ */
1395
+ export type PodcastSegmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1396
+ /**
1397
+ * Select specific fields to fetch from the PodcastSegment
1398
+ */
1399
+ select?: Prisma.PodcastSegmentSelectCreateManyAndReturn<ExtArgs> | null;
1400
+ /**
1401
+ * Omit specific fields from the PodcastSegment
1402
+ */
1403
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1404
+ /**
1405
+ * The data used to create many PodcastSegments.
1406
+ */
1407
+ data: Prisma.PodcastSegmentCreateManyInput | Prisma.PodcastSegmentCreateManyInput[];
1408
+ skipDuplicates?: boolean;
1409
+ /**
1410
+ * Choose, which related nodes to fetch as well
1411
+ */
1412
+ include?: Prisma.PodcastSegmentIncludeCreateManyAndReturn<ExtArgs> | null;
1413
+ };
1414
+ /**
1415
+ * PodcastSegment update
1416
+ */
1417
+ export type PodcastSegmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1418
+ /**
1419
+ * Select specific fields to fetch from the PodcastSegment
1420
+ */
1421
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1422
+ /**
1423
+ * Omit specific fields from the PodcastSegment
1424
+ */
1425
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1426
+ /**
1427
+ * Choose, which related nodes to fetch as well
1428
+ */
1429
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1430
+ /**
1431
+ * The data needed to update a PodcastSegment.
1432
+ */
1433
+ data: Prisma.XOR<Prisma.PodcastSegmentUpdateInput, Prisma.PodcastSegmentUncheckedUpdateInput>;
1434
+ /**
1435
+ * Choose, which PodcastSegment to update.
1436
+ */
1437
+ where: Prisma.PodcastSegmentWhereUniqueInput;
1438
+ };
1439
+ /**
1440
+ * PodcastSegment updateMany
1441
+ */
1442
+ export type PodcastSegmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1443
+ /**
1444
+ * The data used to update PodcastSegments.
1445
+ */
1446
+ data: Prisma.XOR<Prisma.PodcastSegmentUpdateManyMutationInput, Prisma.PodcastSegmentUncheckedUpdateManyInput>;
1447
+ /**
1448
+ * Filter which PodcastSegments to update
1449
+ */
1450
+ where?: Prisma.PodcastSegmentWhereInput;
1451
+ /**
1452
+ * Limit how many PodcastSegments to update.
1453
+ */
1454
+ limit?: number;
1455
+ };
1456
+ /**
1457
+ * PodcastSegment updateManyAndReturn
1458
+ */
1459
+ export type PodcastSegmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1460
+ /**
1461
+ * Select specific fields to fetch from the PodcastSegment
1462
+ */
1463
+ select?: Prisma.PodcastSegmentSelectUpdateManyAndReturn<ExtArgs> | null;
1464
+ /**
1465
+ * Omit specific fields from the PodcastSegment
1466
+ */
1467
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1468
+ /**
1469
+ * The data used to update PodcastSegments.
1470
+ */
1471
+ data: Prisma.XOR<Prisma.PodcastSegmentUpdateManyMutationInput, Prisma.PodcastSegmentUncheckedUpdateManyInput>;
1472
+ /**
1473
+ * Filter which PodcastSegments to update
1474
+ */
1475
+ where?: Prisma.PodcastSegmentWhereInput;
1476
+ /**
1477
+ * Limit how many PodcastSegments to update.
1478
+ */
1479
+ limit?: number;
1480
+ /**
1481
+ * Choose, which related nodes to fetch as well
1482
+ */
1483
+ include?: Prisma.PodcastSegmentIncludeUpdateManyAndReturn<ExtArgs> | null;
1484
+ };
1485
+ /**
1486
+ * PodcastSegment upsert
1487
+ */
1488
+ export type PodcastSegmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1489
+ /**
1490
+ * Select specific fields to fetch from the PodcastSegment
1491
+ */
1492
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1493
+ /**
1494
+ * Omit specific fields from the PodcastSegment
1495
+ */
1496
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1497
+ /**
1498
+ * Choose, which related nodes to fetch as well
1499
+ */
1500
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1501
+ /**
1502
+ * The filter to search for the PodcastSegment to update in case it exists.
1503
+ */
1504
+ where: Prisma.PodcastSegmentWhereUniqueInput;
1505
+ /**
1506
+ * In case the PodcastSegment found by the `where` argument doesn't exist, create a new PodcastSegment with this data.
1507
+ */
1508
+ create: Prisma.XOR<Prisma.PodcastSegmentCreateInput, Prisma.PodcastSegmentUncheckedCreateInput>;
1509
+ /**
1510
+ * In case the PodcastSegment was found with the provided `where` argument, update it with this data.
1511
+ */
1512
+ update: Prisma.XOR<Prisma.PodcastSegmentUpdateInput, Prisma.PodcastSegmentUncheckedUpdateInput>;
1513
+ };
1514
+ /**
1515
+ * PodcastSegment delete
1516
+ */
1517
+ export type PodcastSegmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1518
+ /**
1519
+ * Select specific fields to fetch from the PodcastSegment
1520
+ */
1521
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1522
+ /**
1523
+ * Omit specific fields from the PodcastSegment
1524
+ */
1525
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1526
+ /**
1527
+ * Choose, which related nodes to fetch as well
1528
+ */
1529
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1530
+ /**
1531
+ * Filter which PodcastSegment to delete.
1532
+ */
1533
+ where: Prisma.PodcastSegmentWhereUniqueInput;
1534
+ };
1535
+ /**
1536
+ * PodcastSegment deleteMany
1537
+ */
1538
+ export type PodcastSegmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1539
+ /**
1540
+ * Filter which PodcastSegments to delete
1541
+ */
1542
+ where?: Prisma.PodcastSegmentWhereInput;
1543
+ /**
1544
+ * Limit how many PodcastSegments to delete.
1545
+ */
1546
+ limit?: number;
1547
+ };
1548
+ /**
1549
+ * PodcastSegment without action
1550
+ */
1551
+ export type PodcastSegmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1552
+ /**
1553
+ * Select specific fields to fetch from the PodcastSegment
1554
+ */
1555
+ select?: Prisma.PodcastSegmentSelect<ExtArgs> | null;
1556
+ /**
1557
+ * Omit specific fields from the PodcastSegment
1558
+ */
1559
+ omit?: Prisma.PodcastSegmentOmit<ExtArgs> | null;
1560
+ /**
1561
+ * Choose, which related nodes to fetch as well
1562
+ */
1563
+ include?: Prisma.PodcastSegmentInclude<ExtArgs> | null;
1564
+ };