@goscribe/server 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/dist/context.d.ts +14 -1
  2. package/dist/context.js +23 -2
  3. package/dist/generated/prisma/client.d.ts +224 -0
  4. package/dist/generated/prisma/client.js +34 -0
  5. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  6. package/dist/generated/prisma/commonInputTypes.js +10 -0
  7. package/dist/generated/prisma/enums.d.ts +67 -0
  8. package/dist/generated/prisma/enums.js +66 -0
  9. package/dist/generated/prisma/internal/class.d.ts +539 -0
  10. package/dist/generated/prisma/internal/class.js +49 -0
  11. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  12. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  13. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  14. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  15. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  16. package/dist/generated/prisma/models/Artifact.js +1 -0
  17. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  18. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  19. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  20. package/dist/generated/prisma/models/Channel.js +1 -0
  21. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  22. package/dist/generated/prisma/models/Chat.js +1 -0
  23. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  24. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  25. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  26. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  27. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  28. package/dist/generated/prisma/models/FileAsset.js +1 -0
  29. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  30. package/dist/generated/prisma/models/Flashcard.js +1 -0
  31. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  32. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  33. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  34. package/dist/generated/prisma/models/Folder.js +1 -0
  35. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  36. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  37. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  38. package/dist/generated/prisma/models/Invoice.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  40. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  43. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  44. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  45. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  46. package/dist/generated/prisma/models/Notification.js +1 -0
  47. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  48. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  49. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  50. package/dist/generated/prisma/models/Plan.js +1 -0
  51. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  52. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  53. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  54. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  55. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  56. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  57. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  58. package/dist/generated/prisma/models/Role.js +1 -0
  59. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  60. package/dist/generated/prisma/models/Session.js +1 -0
  61. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  62. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  64. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  65. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  66. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  67. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  68. package/dist/generated/prisma/models/Subscription.js +1 -0
  69. package/dist/generated/prisma/models/User.d.ts +7559 -0
  70. package/dist/generated/prisma/models/User.js +1 -0
  71. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  72. package/dist/generated/prisma/models/UserCredit.js +1 -0
  73. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  74. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  76. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  78. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  79. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  80. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  81. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  82. package/dist/generated/prisma/models/Workspace.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  84. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  86. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  87. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  88. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  89. package/dist/generated/prisma/models.d.ts +39 -0
  90. package/dist/generated/prisma/models.js +1 -0
  91. package/dist/lib/ai/index.d.ts +3 -2
  92. package/dist/lib/ai/index.js +3 -2
  93. package/dist/lib/ai/llm-client.d.ts +1 -0
  94. package/dist/lib/ai/llm-client.js +17 -0
  95. package/dist/routers/_app.d.ts +40 -80
  96. package/dist/routers/auth.js +1 -1
  97. package/dist/routers/flashcards.d.ts +12 -1
  98. package/dist/routers/payment.d.ts +1 -12
  99. package/dist/routers/workspace.d.ts +27 -67
  100. package/dist/routers/workspace.js +1 -0
  101. package/dist/services/billing/payment.service.d.ts +1 -12
  102. package/dist/services/billing/payment.service.js +3 -6
  103. package/dist/services/billing/usage.service.d.ts +30 -10
  104. package/dist/services/billing/usage.service.js +87 -15
  105. package/dist/services/content/copilot.service.js +15 -29
  106. package/dist/services/content/flashcard-progress.service.js +9 -9
  107. package/dist/services/content/flashcard.service.d.ts +45 -1
  108. package/dist/services/content/flashcard.service.js +81 -68
  109. package/dist/services/content/media-analysis.service.js +27 -27
  110. package/dist/services/content/worksheet-generation.service.test.js +2 -2
  111. package/dist/services/workspace/workspace.service.d.ts +23 -67
  112. package/dist/services/workspace/workspace.service.js +69 -62
  113. package/dist/src/context.d.ts +27 -0
  114. package/dist/src/context.js +33 -0
  115. package/dist/src/index.d.ts +3 -0
  116. package/dist/src/index.js +1 -0
  117. package/dist/src/lib/ai/config.d.ts +20 -0
  118. package/dist/src/lib/ai/config.js +31 -0
  119. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  120. package/dist/src/lib/ai/embedding-client.js +30 -0
  121. package/dist/src/lib/ai/index.d.ts +48 -0
  122. package/dist/src/lib/ai/index.js +29 -0
  123. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  124. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  125. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  126. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  127. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  128. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  129. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  130. package/dist/src/lib/ai/json-parse.js +34 -0
  131. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  132. package/dist/src/lib/ai/llm-client.js +36 -0
  133. package/dist/src/lib/ai/mock.d.ts +2 -0
  134. package/dist/src/lib/ai/mock.js +10 -0
  135. package/dist/src/lib/ai/types.d.ts +9 -0
  136. package/dist/src/lib/ai/types.js +1 -0
  137. package/dist/src/lib/auth.d.ts +36 -0
  138. package/dist/src/lib/auth.js +117 -0
  139. package/dist/src/lib/chunking.d.ts +19 -0
  140. package/dist/src/lib/chunking.js +47 -0
  141. package/dist/src/lib/constants.d.ts +13 -0
  142. package/dist/src/lib/constants.js +12 -0
  143. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  144. package/dist/src/lib/curated-kb-seed.js +155 -0
  145. package/dist/src/lib/email.d.ts +11 -0
  146. package/dist/src/lib/email.js +152 -0
  147. package/dist/src/lib/embeddings.d.ts +2 -0
  148. package/dist/src/lib/embeddings.js +1 -0
  149. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  150. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  151. package/dist/src/lib/env.d.ts +41 -0
  152. package/dist/src/lib/env.js +57 -0
  153. package/dist/src/lib/errors.d.ts +33 -0
  154. package/dist/src/lib/errors.js +78 -0
  155. package/dist/src/lib/file.d.ts +0 -0
  156. package/dist/src/lib/file.js +1 -0
  157. package/dist/src/lib/inference.d.ts +1 -0
  158. package/dist/src/lib/inference.js +1 -0
  159. package/dist/src/lib/kb-meta.d.ts +8 -0
  160. package/dist/src/lib/kb-meta.js +77 -0
  161. package/dist/src/lib/logger.d.ts +62 -0
  162. package/dist/src/lib/logger.js +364 -0
  163. package/dist/src/lib/pdf.d.ts +11 -0
  164. package/dist/src/lib/pdf.js +11 -0
  165. package/dist/src/lib/prisma.d.ts +3 -0
  166. package/dist/src/lib/prisma.js +15 -0
  167. package/dist/src/lib/pusher.d.ts +38 -0
  168. package/dist/src/lib/pusher.js +170 -0
  169. package/dist/src/lib/retry.d.ts +15 -0
  170. package/dist/src/lib/retry.js +37 -0
  171. package/dist/src/lib/storage.d.ts +11 -0
  172. package/dist/src/lib/storage.js +71 -0
  173. package/dist/src/lib/stripe.d.ts +10 -0
  174. package/dist/src/lib/stripe.js +36 -0
  175. package/dist/src/lib/validation.d.ts +51 -0
  176. package/dist/src/lib/validation.js +64 -0
  177. package/dist/src/lib/workspace-kb.d.ts +5 -0
  178. package/dist/src/lib/workspace-kb.js +7 -0
  179. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  180. package/dist/src/repositories/artifact.repository.js +40 -0
  181. package/dist/src/repositories/base.repository.d.ts +14 -0
  182. package/dist/src/repositories/base.repository.js +14 -0
  183. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  184. package/dist/src/repositories/invitation.repository.js +44 -0
  185. package/dist/src/repositories/notification.repository.d.ts +76 -0
  186. package/dist/src/repositories/notification.repository.js +44 -0
  187. package/dist/src/repositories/user.repository.d.ts +84 -0
  188. package/dist/src/repositories/user.repository.js +37 -0
  189. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  190. package/dist/src/repositories/workspace-member.repository.js +31 -0
  191. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  192. package/dist/src/repositories/workspace.repository.js +79 -0
  193. package/dist/src/routers/_app.d.ts +3464 -0
  194. package/dist/src/routers/_app.js +36 -0
  195. package/dist/src/routers/admin.d.ts +358 -0
  196. package/dist/src/routers/admin.js +105 -0
  197. package/dist/src/routers/annotations.d.ts +219 -0
  198. package/dist/src/routers/annotations.js +29 -0
  199. package/dist/src/routers/artifactVersions.d.ts +65 -0
  200. package/dist/src/routers/artifactVersions.js +14 -0
  201. package/dist/src/routers/auth.d.ts +161 -0
  202. package/dist/src/routers/auth.js +97 -0
  203. package/dist/src/routers/chat.d.ts +170 -0
  204. package/dist/src/routers/chat.js +32 -0
  205. package/dist/src/routers/copilot.d.ts +200 -0
  206. package/dist/src/routers/copilot.js +52 -0
  207. package/dist/src/routers/flashcards.d.ts +336 -0
  208. package/dist/src/routers/flashcards.js +93 -0
  209. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  210. package/dist/src/routers/knowledgeBase.js +118 -0
  211. package/dist/src/routers/members.d.ts +169 -0
  212. package/dist/src/routers/members.js +47 -0
  213. package/dist/src/routers/notifications.d.ts +99 -0
  214. package/dist/src/routers/notifications.js +25 -0
  215. package/dist/src/routers/payment.d.ts +80 -0
  216. package/dist/src/routers/payment.js +21 -0
  217. package/dist/src/routers/podcast.d.ts +287 -0
  218. package/dist/src/routers/podcast.js +34 -0
  219. package/dist/src/routers/studyguide.d.ts +36 -0
  220. package/dist/src/routers/studyguide.js +8 -0
  221. package/dist/src/routers/worksheets.d.ts +429 -0
  222. package/dist/src/routers/worksheets.js +139 -0
  223. package/dist/src/routers/workspace.d.ts +563 -0
  224. package/dist/src/routers/workspace.js +104 -0
  225. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  226. package/dist/src/scripts/purge-deleted-users.js +148 -0
  227. package/dist/src/server.d.ts +1 -0
  228. package/dist/src/server.js +190 -0
  229. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  230. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  231. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  232. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  233. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  234. package/dist/src/services/activity/activity-log.service.js +276 -0
  235. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  236. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  237. package/dist/src/services/admin/admin.service.d.ts +270 -0
  238. package/dist/src/services/admin/admin.service.js +476 -0
  239. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  240. package/dist/src/services/ai/ai-session.service.js +4 -0
  241. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  242. package/dist/src/services/artifacts/annotation.service.js +154 -0
  243. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  244. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  245. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  246. package/dist/src/services/artifacts/chat.service.js +182 -0
  247. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  248. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  249. package/dist/src/services/auth/auth.service.d.ts +94 -0
  250. package/dist/src/services/auth/auth.service.js +368 -0
  251. package/dist/src/services/base.service.d.ts +14 -0
  252. package/dist/src/services/base.service.js +14 -0
  253. package/dist/src/services/billing/payment.service.d.ts +44 -0
  254. package/dist/src/services/billing/payment.service.js +365 -0
  255. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  256. package/dist/src/services/billing/subscription.service.js +654 -0
  257. package/dist/src/services/billing/usage.service.d.ts +47 -0
  258. package/dist/src/services/billing/usage.service.js +149 -0
  259. package/dist/src/services/content/copilot.service.d.ts +113 -0
  260. package/dist/src/services/content/copilot.service.js +439 -0
  261. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  262. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  263. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  264. package/dist/src/services/content/flashcard.service.js +339 -0
  265. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  266. package/dist/src/services/content/media-analysis.service.js +404 -0
  267. package/dist/src/services/content/podcast.service.d.ts +267 -0
  268. package/dist/src/services/content/podcast.service.js +653 -0
  269. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  270. package/dist/src/services/content/worksheet-content.service.js +84 -0
  271. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  272. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  273. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  274. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  275. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  276. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  277. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  278. package/dist/src/services/content/worksheet.service.js +599 -0
  279. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  280. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  281. package/dist/src/services/members/invitation.service.d.ts +66 -0
  282. package/dist/src/services/members/invitation.service.js +348 -0
  283. package/dist/src/services/members/member.service.d.ts +36 -0
  284. package/dist/src/services/members/member.service.js +193 -0
  285. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  286. package/dist/src/services/notifications/notification.service.js +550 -0
  287. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  288. package/dist/src/services/notifications/notification.service.test.js +87 -0
  289. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  290. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  291. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  292. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  293. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  294. package/dist/src/services/workspace/workspace.service.js +401 -0
  295. package/dist/src/trpc.d.ts +60 -0
  296. package/dist/src/trpc.js +217 -0
  297. package/dist/src/types/index.d.ts +126 -0
  298. package/dist/src/types/index.js +1 -0
  299. package/dist/trpc.d.ts +12 -4
  300. package/dist/trpc.js +5 -11
  301. package/package.json +8 -9
  302. package/prisma/schema.prisma +3 -4
  303. package/prisma/seed.mjs +5 -2
  304. package/prisma.config.ts +16 -0
  305. package/src/context.ts +33 -3
  306. package/src/lib/ai/index.ts +3 -0
  307. package/src/lib/ai/llm-client.ts +23 -0
  308. package/src/lib/prisma.ts +18 -9
  309. package/src/routers/auth.ts +1 -1
  310. package/src/routers/workspace.ts +4 -0
  311. package/src/scripts/purge-deleted-users.ts +1 -3
  312. package/src/services/billing/payment.service.ts +3 -6
  313. package/src/services/billing/usage.service.ts +190 -77
  314. package/src/services/content/copilot.service.ts +23 -32
  315. package/src/services/content/flashcard-progress.service.ts +12 -9
  316. package/src/services/content/flashcard.service.ts +89 -66
  317. package/src/services/content/media-analysis.service.ts +34 -29
  318. package/src/services/content/worksheet-generation.service.test.ts +2 -2
  319. package/src/services/workspace/workspace.service.ts +73 -66
  320. package/src/trpc.ts +5 -13
  321. package/tsconfig.json +3 -0
@@ -0,0 +1,3620 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model Workspace
5
+ *
6
+ */
7
+ export type WorkspaceModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkspacePayload>;
8
+ export type AggregateWorkspace = {
9
+ _count: WorkspaceCountAggregateOutputType | null;
10
+ _min: WorkspaceMinAggregateOutputType | null;
11
+ _max: WorkspaceMaxAggregateOutputType | null;
12
+ };
13
+ export type WorkspaceMinAggregateOutputType = {
14
+ id: string | null;
15
+ title: string | null;
16
+ description: string | null;
17
+ ownerId: string | null;
18
+ icon: string | null;
19
+ color: string | null;
20
+ markerColor: string | null;
21
+ folderId: string | null;
22
+ fileBeingAnalyzed: boolean | null;
23
+ needsAnalysis: boolean | null;
24
+ createdAt: Date | null;
25
+ updatedAt: Date | null;
26
+ };
27
+ export type WorkspaceMaxAggregateOutputType = {
28
+ id: string | null;
29
+ title: string | null;
30
+ description: string | null;
31
+ ownerId: string | null;
32
+ icon: string | null;
33
+ color: string | null;
34
+ markerColor: string | null;
35
+ folderId: string | null;
36
+ fileBeingAnalyzed: boolean | null;
37
+ needsAnalysis: boolean | null;
38
+ createdAt: Date | null;
39
+ updatedAt: Date | null;
40
+ };
41
+ export type WorkspaceCountAggregateOutputType = {
42
+ id: number;
43
+ title: number;
44
+ description: number;
45
+ ownerId: number;
46
+ icon: number;
47
+ color: number;
48
+ markerColor: number;
49
+ folderId: number;
50
+ fileBeingAnalyzed: number;
51
+ analysisProgress: number;
52
+ needsAnalysis: number;
53
+ createdAt: number;
54
+ updatedAt: number;
55
+ _all: number;
56
+ };
57
+ export type WorkspaceMinAggregateInputType = {
58
+ id?: true;
59
+ title?: true;
60
+ description?: true;
61
+ ownerId?: true;
62
+ icon?: true;
63
+ color?: true;
64
+ markerColor?: true;
65
+ folderId?: true;
66
+ fileBeingAnalyzed?: true;
67
+ needsAnalysis?: true;
68
+ createdAt?: true;
69
+ updatedAt?: true;
70
+ };
71
+ export type WorkspaceMaxAggregateInputType = {
72
+ id?: true;
73
+ title?: true;
74
+ description?: true;
75
+ ownerId?: true;
76
+ icon?: true;
77
+ color?: true;
78
+ markerColor?: true;
79
+ folderId?: true;
80
+ fileBeingAnalyzed?: true;
81
+ needsAnalysis?: true;
82
+ createdAt?: true;
83
+ updatedAt?: true;
84
+ };
85
+ export type WorkspaceCountAggregateInputType = {
86
+ id?: true;
87
+ title?: true;
88
+ description?: true;
89
+ ownerId?: true;
90
+ icon?: true;
91
+ color?: true;
92
+ markerColor?: true;
93
+ folderId?: true;
94
+ fileBeingAnalyzed?: true;
95
+ analysisProgress?: true;
96
+ needsAnalysis?: true;
97
+ createdAt?: true;
98
+ updatedAt?: true;
99
+ _all?: true;
100
+ };
101
+ export type WorkspaceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
102
+ /**
103
+ * Filter which Workspace to aggregate.
104
+ */
105
+ where?: Prisma.WorkspaceWhereInput;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
108
+ *
109
+ * Determine the order of Workspaces to fetch.
110
+ */
111
+ orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[];
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
114
+ *
115
+ * Sets the start position
116
+ */
117
+ cursor?: Prisma.WorkspaceWhereUniqueInput;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
120
+ *
121
+ * Take `±n` Workspaces from the position of the cursor.
122
+ */
123
+ take?: number;
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
126
+ *
127
+ * Skip the first `n` Workspaces.
128
+ */
129
+ skip?: number;
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
132
+ *
133
+ * Count returned Workspaces
134
+ **/
135
+ _count?: true | WorkspaceCountAggregateInputType;
136
+ /**
137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
138
+ *
139
+ * Select which fields to find the minimum value
140
+ **/
141
+ _min?: WorkspaceMinAggregateInputType;
142
+ /**
143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
144
+ *
145
+ * Select which fields to find the maximum value
146
+ **/
147
+ _max?: WorkspaceMaxAggregateInputType;
148
+ };
149
+ export type GetWorkspaceAggregateType<T extends WorkspaceAggregateArgs> = {
150
+ [P in keyof T & keyof AggregateWorkspace]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateWorkspace[P]> : Prisma.GetScalarType<T[P], AggregateWorkspace[P]>;
151
+ };
152
+ export type WorkspaceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
153
+ where?: Prisma.WorkspaceWhereInput;
154
+ orderBy?: Prisma.WorkspaceOrderByWithAggregationInput | Prisma.WorkspaceOrderByWithAggregationInput[];
155
+ by: Prisma.WorkspaceScalarFieldEnum[] | Prisma.WorkspaceScalarFieldEnum;
156
+ having?: Prisma.WorkspaceScalarWhereWithAggregatesInput;
157
+ take?: number;
158
+ skip?: number;
159
+ _count?: WorkspaceCountAggregateInputType | true;
160
+ _min?: WorkspaceMinAggregateInputType;
161
+ _max?: WorkspaceMaxAggregateInputType;
162
+ };
163
+ export type WorkspaceGroupByOutputType = {
164
+ id: string;
165
+ title: string;
166
+ description: string | null;
167
+ ownerId: string;
168
+ icon: string;
169
+ color: string;
170
+ markerColor: string | null;
171
+ folderId: string | null;
172
+ fileBeingAnalyzed: boolean;
173
+ analysisProgress: runtime.JsonValue | null;
174
+ needsAnalysis: boolean;
175
+ createdAt: Date;
176
+ updatedAt: Date;
177
+ _count: WorkspaceCountAggregateOutputType | null;
178
+ _min: WorkspaceMinAggregateOutputType | null;
179
+ _max: WorkspaceMaxAggregateOutputType | null;
180
+ };
181
+ export type GetWorkspaceGroupByPayload<T extends WorkspaceGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<WorkspaceGroupByOutputType, T['by']> & {
182
+ [P in ((keyof T) & (keyof WorkspaceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], WorkspaceGroupByOutputType[P]> : Prisma.GetScalarType<T[P], WorkspaceGroupByOutputType[P]>;
183
+ }>>;
184
+ export type WorkspaceWhereInput = {
185
+ AND?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[];
186
+ OR?: Prisma.WorkspaceWhereInput[];
187
+ NOT?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[];
188
+ id?: Prisma.StringFilter<"Workspace"> | string;
189
+ title?: Prisma.StringFilter<"Workspace"> | string;
190
+ description?: Prisma.StringNullableFilter<"Workspace"> | string | null;
191
+ ownerId?: Prisma.StringFilter<"Workspace"> | string;
192
+ icon?: Prisma.StringFilter<"Workspace"> | string;
193
+ color?: Prisma.StringFilter<"Workspace"> | string;
194
+ markerColor?: Prisma.StringNullableFilter<"Workspace"> | string | null;
195
+ folderId?: Prisma.StringNullableFilter<"Workspace"> | string | null;
196
+ fileBeingAnalyzed?: Prisma.BoolFilter<"Workspace"> | boolean;
197
+ analysisProgress?: Prisma.JsonNullableFilter<"Workspace">;
198
+ needsAnalysis?: Prisma.BoolFilter<"Workspace"> | boolean;
199
+ createdAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string;
200
+ updatedAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string;
201
+ owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
202
+ folder?: Prisma.XOR<Prisma.FolderNullableScalarRelationFilter, Prisma.FolderWhereInput> | null;
203
+ channels?: Prisma.ChannelListRelationFilter;
204
+ copilotConversations?: Prisma.CopilotConversationListRelationFilter;
205
+ sharedWith?: Prisma.UserListRelationFilter;
206
+ members?: Prisma.WorkspaceMemberListRelationFilter;
207
+ uploads?: Prisma.FileAssetListRelationFilter;
208
+ artifacts?: Prisma.ArtifactListRelationFilter;
209
+ worksheetPresets?: Prisma.WorksheetPresetListRelationFilter;
210
+ invitations?: Prisma.WorkspaceInvitationListRelationFilter;
211
+ notifications?: Prisma.NotificationListRelationFilter;
212
+ activityLogs?: Prisma.ActivityLogListRelationFilter;
213
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseListRelationFilter;
214
+ };
215
+ export type WorkspaceOrderByWithRelationInput = {
216
+ id?: Prisma.SortOrder;
217
+ title?: Prisma.SortOrder;
218
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
219
+ ownerId?: Prisma.SortOrder;
220
+ icon?: Prisma.SortOrder;
221
+ color?: Prisma.SortOrder;
222
+ markerColor?: Prisma.SortOrderInput | Prisma.SortOrder;
223
+ folderId?: Prisma.SortOrderInput | Prisma.SortOrder;
224
+ fileBeingAnalyzed?: Prisma.SortOrder;
225
+ analysisProgress?: Prisma.SortOrderInput | Prisma.SortOrder;
226
+ needsAnalysis?: Prisma.SortOrder;
227
+ createdAt?: Prisma.SortOrder;
228
+ updatedAt?: Prisma.SortOrder;
229
+ owner?: Prisma.UserOrderByWithRelationInput;
230
+ folder?: Prisma.FolderOrderByWithRelationInput;
231
+ channels?: Prisma.ChannelOrderByRelationAggregateInput;
232
+ copilotConversations?: Prisma.CopilotConversationOrderByRelationAggregateInput;
233
+ sharedWith?: Prisma.UserOrderByRelationAggregateInput;
234
+ members?: Prisma.WorkspaceMemberOrderByRelationAggregateInput;
235
+ uploads?: Prisma.FileAssetOrderByRelationAggregateInput;
236
+ artifacts?: Prisma.ArtifactOrderByRelationAggregateInput;
237
+ worksheetPresets?: Prisma.WorksheetPresetOrderByRelationAggregateInput;
238
+ invitations?: Prisma.WorkspaceInvitationOrderByRelationAggregateInput;
239
+ notifications?: Prisma.NotificationOrderByRelationAggregateInput;
240
+ activityLogs?: Prisma.ActivityLogOrderByRelationAggregateInput;
241
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseOrderByRelationAggregateInput;
242
+ };
243
+ export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
244
+ id?: string;
245
+ AND?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[];
246
+ OR?: Prisma.WorkspaceWhereInput[];
247
+ NOT?: Prisma.WorkspaceWhereInput | Prisma.WorkspaceWhereInput[];
248
+ title?: Prisma.StringFilter<"Workspace"> | string;
249
+ description?: Prisma.StringNullableFilter<"Workspace"> | string | null;
250
+ ownerId?: Prisma.StringFilter<"Workspace"> | string;
251
+ icon?: Prisma.StringFilter<"Workspace"> | string;
252
+ color?: Prisma.StringFilter<"Workspace"> | string;
253
+ markerColor?: Prisma.StringNullableFilter<"Workspace"> | string | null;
254
+ folderId?: Prisma.StringNullableFilter<"Workspace"> | string | null;
255
+ fileBeingAnalyzed?: Prisma.BoolFilter<"Workspace"> | boolean;
256
+ analysisProgress?: Prisma.JsonNullableFilter<"Workspace">;
257
+ needsAnalysis?: Prisma.BoolFilter<"Workspace"> | boolean;
258
+ createdAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string;
259
+ updatedAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string;
260
+ owner?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
261
+ folder?: Prisma.XOR<Prisma.FolderNullableScalarRelationFilter, Prisma.FolderWhereInput> | null;
262
+ channels?: Prisma.ChannelListRelationFilter;
263
+ copilotConversations?: Prisma.CopilotConversationListRelationFilter;
264
+ sharedWith?: Prisma.UserListRelationFilter;
265
+ members?: Prisma.WorkspaceMemberListRelationFilter;
266
+ uploads?: Prisma.FileAssetListRelationFilter;
267
+ artifacts?: Prisma.ArtifactListRelationFilter;
268
+ worksheetPresets?: Prisma.WorksheetPresetListRelationFilter;
269
+ invitations?: Prisma.WorkspaceInvitationListRelationFilter;
270
+ notifications?: Prisma.NotificationListRelationFilter;
271
+ activityLogs?: Prisma.ActivityLogListRelationFilter;
272
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseListRelationFilter;
273
+ }, "id">;
274
+ export type WorkspaceOrderByWithAggregationInput = {
275
+ id?: Prisma.SortOrder;
276
+ title?: Prisma.SortOrder;
277
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
278
+ ownerId?: Prisma.SortOrder;
279
+ icon?: Prisma.SortOrder;
280
+ color?: Prisma.SortOrder;
281
+ markerColor?: Prisma.SortOrderInput | Prisma.SortOrder;
282
+ folderId?: Prisma.SortOrderInput | Prisma.SortOrder;
283
+ fileBeingAnalyzed?: Prisma.SortOrder;
284
+ analysisProgress?: Prisma.SortOrderInput | Prisma.SortOrder;
285
+ needsAnalysis?: Prisma.SortOrder;
286
+ createdAt?: Prisma.SortOrder;
287
+ updatedAt?: Prisma.SortOrder;
288
+ _count?: Prisma.WorkspaceCountOrderByAggregateInput;
289
+ _max?: Prisma.WorkspaceMaxOrderByAggregateInput;
290
+ _min?: Prisma.WorkspaceMinOrderByAggregateInput;
291
+ };
292
+ export type WorkspaceScalarWhereWithAggregatesInput = {
293
+ AND?: Prisma.WorkspaceScalarWhereWithAggregatesInput | Prisma.WorkspaceScalarWhereWithAggregatesInput[];
294
+ OR?: Prisma.WorkspaceScalarWhereWithAggregatesInput[];
295
+ NOT?: Prisma.WorkspaceScalarWhereWithAggregatesInput | Prisma.WorkspaceScalarWhereWithAggregatesInput[];
296
+ id?: Prisma.StringWithAggregatesFilter<"Workspace"> | string;
297
+ title?: Prisma.StringWithAggregatesFilter<"Workspace"> | string;
298
+ description?: Prisma.StringNullableWithAggregatesFilter<"Workspace"> | string | null;
299
+ ownerId?: Prisma.StringWithAggregatesFilter<"Workspace"> | string;
300
+ icon?: Prisma.StringWithAggregatesFilter<"Workspace"> | string;
301
+ color?: Prisma.StringWithAggregatesFilter<"Workspace"> | string;
302
+ markerColor?: Prisma.StringNullableWithAggregatesFilter<"Workspace"> | string | null;
303
+ folderId?: Prisma.StringNullableWithAggregatesFilter<"Workspace"> | string | null;
304
+ fileBeingAnalyzed?: Prisma.BoolWithAggregatesFilter<"Workspace"> | boolean;
305
+ analysisProgress?: Prisma.JsonNullableWithAggregatesFilter<"Workspace">;
306
+ needsAnalysis?: Prisma.BoolWithAggregatesFilter<"Workspace"> | boolean;
307
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Workspace"> | Date | string;
308
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Workspace"> | Date | string;
309
+ };
310
+ export type WorkspaceCreateInput = {
311
+ id?: string;
312
+ title: string;
313
+ description?: string | null;
314
+ icon?: string;
315
+ color?: string;
316
+ markerColor?: string | null;
317
+ fileBeingAnalyzed?: boolean;
318
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
319
+ needsAnalysis?: boolean;
320
+ createdAt?: Date | string;
321
+ updatedAt?: Date | string;
322
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
323
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
324
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
325
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
326
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
327
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
328
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
329
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
330
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
331
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
332
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
333
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
334
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
335
+ };
336
+ export type WorkspaceUncheckedCreateInput = {
337
+ id?: string;
338
+ title: string;
339
+ description?: string | null;
340
+ ownerId: string;
341
+ icon?: string;
342
+ color?: string;
343
+ markerColor?: string | null;
344
+ folderId?: string | null;
345
+ fileBeingAnalyzed?: boolean;
346
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
347
+ needsAnalysis?: boolean;
348
+ createdAt?: Date | string;
349
+ updatedAt?: Date | string;
350
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
351
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
352
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
353
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
354
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
355
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
356
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
357
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
358
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
359
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
360
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
361
+ };
362
+ export type WorkspaceUpdateInput = {
363
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
364
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
365
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
366
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
368
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
369
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
370
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
371
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
372
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
373
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
374
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
375
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
376
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
377
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
378
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
379
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
380
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
381
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
382
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
383
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
384
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
385
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
386
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
387
+ };
388
+ export type WorkspaceUncheckedUpdateInput = {
389
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
390
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
391
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
392
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
393
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
394
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
395
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
396
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
397
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
398
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
399
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
400
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
401
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
402
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
403
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
404
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
405
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
406
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
407
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
408
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
409
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
410
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
411
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
412
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
413
+ };
414
+ export type WorkspaceCreateManyInput = {
415
+ id?: string;
416
+ title: string;
417
+ description?: string | null;
418
+ ownerId: string;
419
+ icon?: string;
420
+ color?: string;
421
+ markerColor?: string | null;
422
+ folderId?: string | null;
423
+ fileBeingAnalyzed?: boolean;
424
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
425
+ needsAnalysis?: boolean;
426
+ createdAt?: Date | string;
427
+ updatedAt?: Date | string;
428
+ };
429
+ export type WorkspaceUpdateManyMutationInput = {
430
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
432
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
433
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
434
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
436
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
437
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
438
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
439
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
440
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
441
+ };
442
+ export type WorkspaceUncheckedUpdateManyInput = {
443
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
444
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
445
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
446
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
447
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
448
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
449
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
450
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
451
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
452
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
453
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
454
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
455
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
456
+ };
457
+ export type WorkspaceListRelationFilter = {
458
+ every?: Prisma.WorkspaceWhereInput;
459
+ some?: Prisma.WorkspaceWhereInput;
460
+ none?: Prisma.WorkspaceWhereInput;
461
+ };
462
+ export type WorkspaceOrderByRelationAggregateInput = {
463
+ _count?: Prisma.SortOrder;
464
+ };
465
+ export type WorkspaceNullableScalarRelationFilter = {
466
+ is?: Prisma.WorkspaceWhereInput | null;
467
+ isNot?: Prisma.WorkspaceWhereInput | null;
468
+ };
469
+ export type WorkspaceCountOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder;
471
+ title?: Prisma.SortOrder;
472
+ description?: Prisma.SortOrder;
473
+ ownerId?: Prisma.SortOrder;
474
+ icon?: Prisma.SortOrder;
475
+ color?: Prisma.SortOrder;
476
+ markerColor?: Prisma.SortOrder;
477
+ folderId?: Prisma.SortOrder;
478
+ fileBeingAnalyzed?: Prisma.SortOrder;
479
+ analysisProgress?: Prisma.SortOrder;
480
+ needsAnalysis?: Prisma.SortOrder;
481
+ createdAt?: Prisma.SortOrder;
482
+ updatedAt?: Prisma.SortOrder;
483
+ };
484
+ export type WorkspaceMaxOrderByAggregateInput = {
485
+ id?: Prisma.SortOrder;
486
+ title?: Prisma.SortOrder;
487
+ description?: Prisma.SortOrder;
488
+ ownerId?: Prisma.SortOrder;
489
+ icon?: Prisma.SortOrder;
490
+ color?: Prisma.SortOrder;
491
+ markerColor?: Prisma.SortOrder;
492
+ folderId?: Prisma.SortOrder;
493
+ fileBeingAnalyzed?: Prisma.SortOrder;
494
+ needsAnalysis?: Prisma.SortOrder;
495
+ createdAt?: Prisma.SortOrder;
496
+ updatedAt?: Prisma.SortOrder;
497
+ };
498
+ export type WorkspaceMinOrderByAggregateInput = {
499
+ id?: Prisma.SortOrder;
500
+ title?: Prisma.SortOrder;
501
+ description?: Prisma.SortOrder;
502
+ ownerId?: Prisma.SortOrder;
503
+ icon?: Prisma.SortOrder;
504
+ color?: Prisma.SortOrder;
505
+ markerColor?: Prisma.SortOrder;
506
+ folderId?: Prisma.SortOrder;
507
+ fileBeingAnalyzed?: Prisma.SortOrder;
508
+ needsAnalysis?: Prisma.SortOrder;
509
+ createdAt?: Prisma.SortOrder;
510
+ updatedAt?: Prisma.SortOrder;
511
+ };
512
+ export type WorkspaceScalarRelationFilter = {
513
+ is?: Prisma.WorkspaceWhereInput;
514
+ isNot?: Prisma.WorkspaceWhereInput;
515
+ };
516
+ export type WorkspaceCreateNestedManyWithoutOwnerInput = {
517
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[];
518
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[];
519
+ createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope;
520
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
521
+ };
522
+ export type WorkspaceCreateNestedManyWithoutSharedWithInput = {
523
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutSharedWithInput, Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput> | Prisma.WorkspaceCreateWithoutSharedWithInput[] | Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput[];
524
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput | Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput[];
525
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
526
+ };
527
+ export type WorkspaceUncheckedCreateNestedManyWithoutOwnerInput = {
528
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[];
529
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[];
530
+ createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope;
531
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
532
+ };
533
+ export type WorkspaceUncheckedCreateNestedManyWithoutSharedWithInput = {
534
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutSharedWithInput, Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput> | Prisma.WorkspaceCreateWithoutSharedWithInput[] | Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput[];
535
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput | Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput[];
536
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
537
+ };
538
+ export type WorkspaceUpdateManyWithoutOwnerNestedInput = {
539
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[];
540
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[];
541
+ upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput[];
542
+ createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope;
543
+ set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
544
+ disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
545
+ delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
546
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
547
+ update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput[];
548
+ updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput | Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput[];
549
+ deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
550
+ };
551
+ export type WorkspaceUpdateManyWithoutSharedWithNestedInput = {
552
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutSharedWithInput, Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput> | Prisma.WorkspaceCreateWithoutSharedWithInput[] | Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput[];
553
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput | Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput[];
554
+ upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutSharedWithInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutSharedWithInput[];
555
+ set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
556
+ disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
557
+ delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
558
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
559
+ update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutSharedWithInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutSharedWithInput[];
560
+ updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutSharedWithInput | Prisma.WorkspaceUpdateManyWithWhereWithoutSharedWithInput[];
561
+ deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
562
+ };
563
+ export type WorkspaceUncheckedUpdateManyWithoutOwnerNestedInput = {
564
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput> | Prisma.WorkspaceCreateWithoutOwnerInput[] | Prisma.WorkspaceUncheckedCreateWithoutOwnerInput[];
565
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutOwnerInput | Prisma.WorkspaceCreateOrConnectWithoutOwnerInput[];
566
+ upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutOwnerInput[];
567
+ createMany?: Prisma.WorkspaceCreateManyOwnerInputEnvelope;
568
+ set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
569
+ disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
570
+ delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
571
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
572
+ update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutOwnerInput[];
573
+ updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput | Prisma.WorkspaceUpdateManyWithWhereWithoutOwnerInput[];
574
+ deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
575
+ };
576
+ export type WorkspaceUncheckedUpdateManyWithoutSharedWithNestedInput = {
577
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutSharedWithInput, Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput> | Prisma.WorkspaceCreateWithoutSharedWithInput[] | Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput[];
578
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput | Prisma.WorkspaceCreateOrConnectWithoutSharedWithInput[];
579
+ upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutSharedWithInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutSharedWithInput[];
580
+ set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
581
+ disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
582
+ delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
583
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
584
+ update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutSharedWithInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutSharedWithInput[];
585
+ updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutSharedWithInput | Prisma.WorkspaceUpdateManyWithWhereWithoutSharedWithInput[];
586
+ deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
587
+ };
588
+ export type WorkspaceCreateNestedOneWithoutNotificationsInput = {
589
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutNotificationsInput, Prisma.WorkspaceUncheckedCreateWithoutNotificationsInput>;
590
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutNotificationsInput;
591
+ connect?: Prisma.WorkspaceWhereUniqueInput;
592
+ };
593
+ export type WorkspaceUpdateOneWithoutNotificationsNestedInput = {
594
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutNotificationsInput, Prisma.WorkspaceUncheckedCreateWithoutNotificationsInput>;
595
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutNotificationsInput;
596
+ upsert?: Prisma.WorkspaceUpsertWithoutNotificationsInput;
597
+ disconnect?: Prisma.WorkspaceWhereInput | boolean;
598
+ delete?: Prisma.WorkspaceWhereInput | boolean;
599
+ connect?: Prisma.WorkspaceWhereUniqueInput;
600
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutNotificationsInput, Prisma.WorkspaceUpdateWithoutNotificationsInput>, Prisma.WorkspaceUncheckedUpdateWithoutNotificationsInput>;
601
+ };
602
+ export type WorkspaceCreateNestedManyWithoutFolderInput = {
603
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutFolderInput, Prisma.WorkspaceUncheckedCreateWithoutFolderInput> | Prisma.WorkspaceCreateWithoutFolderInput[] | Prisma.WorkspaceUncheckedCreateWithoutFolderInput[];
604
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutFolderInput | Prisma.WorkspaceCreateOrConnectWithoutFolderInput[];
605
+ createMany?: Prisma.WorkspaceCreateManyFolderInputEnvelope;
606
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
607
+ };
608
+ export type WorkspaceUncheckedCreateNestedManyWithoutFolderInput = {
609
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutFolderInput, Prisma.WorkspaceUncheckedCreateWithoutFolderInput> | Prisma.WorkspaceCreateWithoutFolderInput[] | Prisma.WorkspaceUncheckedCreateWithoutFolderInput[];
610
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutFolderInput | Prisma.WorkspaceCreateOrConnectWithoutFolderInput[];
611
+ createMany?: Prisma.WorkspaceCreateManyFolderInputEnvelope;
612
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
613
+ };
614
+ export type WorkspaceUpdateManyWithoutFolderNestedInput = {
615
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutFolderInput, Prisma.WorkspaceUncheckedCreateWithoutFolderInput> | Prisma.WorkspaceCreateWithoutFolderInput[] | Prisma.WorkspaceUncheckedCreateWithoutFolderInput[];
616
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutFolderInput | Prisma.WorkspaceCreateOrConnectWithoutFolderInput[];
617
+ upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutFolderInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutFolderInput[];
618
+ createMany?: Prisma.WorkspaceCreateManyFolderInputEnvelope;
619
+ set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
620
+ disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
621
+ delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
622
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
623
+ update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutFolderInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutFolderInput[];
624
+ updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutFolderInput | Prisma.WorkspaceUpdateManyWithWhereWithoutFolderInput[];
625
+ deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
626
+ };
627
+ export type WorkspaceUncheckedUpdateManyWithoutFolderNestedInput = {
628
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutFolderInput, Prisma.WorkspaceUncheckedCreateWithoutFolderInput> | Prisma.WorkspaceCreateWithoutFolderInput[] | Prisma.WorkspaceUncheckedCreateWithoutFolderInput[];
629
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutFolderInput | Prisma.WorkspaceCreateOrConnectWithoutFolderInput[];
630
+ upsert?: Prisma.WorkspaceUpsertWithWhereUniqueWithoutFolderInput | Prisma.WorkspaceUpsertWithWhereUniqueWithoutFolderInput[];
631
+ createMany?: Prisma.WorkspaceCreateManyFolderInputEnvelope;
632
+ set?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
633
+ disconnect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
634
+ delete?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
635
+ connect?: Prisma.WorkspaceWhereUniqueInput | Prisma.WorkspaceWhereUniqueInput[];
636
+ update?: Prisma.WorkspaceUpdateWithWhereUniqueWithoutFolderInput | Prisma.WorkspaceUpdateWithWhereUniqueWithoutFolderInput[];
637
+ updateMany?: Prisma.WorkspaceUpdateManyWithWhereWithoutFolderInput | Prisma.WorkspaceUpdateManyWithWhereWithoutFolderInput[];
638
+ deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
639
+ };
640
+ export type WorkspaceCreateNestedOneWithoutChannelsInput = {
641
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutChannelsInput, Prisma.WorkspaceUncheckedCreateWithoutChannelsInput>;
642
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutChannelsInput;
643
+ connect?: Prisma.WorkspaceWhereUniqueInput;
644
+ };
645
+ export type WorkspaceUpdateOneRequiredWithoutChannelsNestedInput = {
646
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutChannelsInput, Prisma.WorkspaceUncheckedCreateWithoutChannelsInput>;
647
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutChannelsInput;
648
+ upsert?: Prisma.WorkspaceUpsertWithoutChannelsInput;
649
+ connect?: Prisma.WorkspaceWhereUniqueInput;
650
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutChannelsInput, Prisma.WorkspaceUpdateWithoutChannelsInput>, Prisma.WorkspaceUncheckedUpdateWithoutChannelsInput>;
651
+ };
652
+ export type WorkspaceCreateNestedOneWithoutCopilotConversationsInput = {
653
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutCopilotConversationsInput, Prisma.WorkspaceUncheckedCreateWithoutCopilotConversationsInput>;
654
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutCopilotConversationsInput;
655
+ connect?: Prisma.WorkspaceWhereUniqueInput;
656
+ };
657
+ export type WorkspaceUpdateOneRequiredWithoutCopilotConversationsNestedInput = {
658
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutCopilotConversationsInput, Prisma.WorkspaceUncheckedCreateWithoutCopilotConversationsInput>;
659
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutCopilotConversationsInput;
660
+ upsert?: Prisma.WorkspaceUpsertWithoutCopilotConversationsInput;
661
+ connect?: Prisma.WorkspaceWhereUniqueInput;
662
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutCopilotConversationsInput, Prisma.WorkspaceUpdateWithoutCopilotConversationsInput>, Prisma.WorkspaceUncheckedUpdateWithoutCopilotConversationsInput>;
663
+ };
664
+ export type WorkspaceCreateNestedOneWithoutUploadsInput = {
665
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutUploadsInput, Prisma.WorkspaceUncheckedCreateWithoutUploadsInput>;
666
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutUploadsInput;
667
+ connect?: Prisma.WorkspaceWhereUniqueInput;
668
+ };
669
+ export type WorkspaceUpdateOneWithoutUploadsNestedInput = {
670
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutUploadsInput, Prisma.WorkspaceUncheckedCreateWithoutUploadsInput>;
671
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutUploadsInput;
672
+ upsert?: Prisma.WorkspaceUpsertWithoutUploadsInput;
673
+ disconnect?: Prisma.WorkspaceWhereInput | boolean;
674
+ delete?: Prisma.WorkspaceWhereInput | boolean;
675
+ connect?: Prisma.WorkspaceWhereUniqueInput;
676
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutUploadsInput, Prisma.WorkspaceUpdateWithoutUploadsInput>, Prisma.WorkspaceUncheckedUpdateWithoutUploadsInput>;
677
+ };
678
+ export type WorkspaceCreateNestedOneWithoutArtifactsInput = {
679
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutArtifactsInput, Prisma.WorkspaceUncheckedCreateWithoutArtifactsInput>;
680
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutArtifactsInput;
681
+ connect?: Prisma.WorkspaceWhereUniqueInput;
682
+ };
683
+ export type WorkspaceUpdateOneRequiredWithoutArtifactsNestedInput = {
684
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutArtifactsInput, Prisma.WorkspaceUncheckedCreateWithoutArtifactsInput>;
685
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutArtifactsInput;
686
+ upsert?: Prisma.WorkspaceUpsertWithoutArtifactsInput;
687
+ connect?: Prisma.WorkspaceWhereUniqueInput;
688
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutArtifactsInput, Prisma.WorkspaceUpdateWithoutArtifactsInput>, Prisma.WorkspaceUncheckedUpdateWithoutArtifactsInput>;
689
+ };
690
+ export type WorkspaceCreateNestedOneWithoutWorksheetPresetsInput = {
691
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorksheetPresetsInput, Prisma.WorkspaceUncheckedCreateWithoutWorksheetPresetsInput>;
692
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutWorksheetPresetsInput;
693
+ connect?: Prisma.WorkspaceWhereUniqueInput;
694
+ };
695
+ export type WorkspaceUpdateOneWithoutWorksheetPresetsNestedInput = {
696
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorksheetPresetsInput, Prisma.WorkspaceUncheckedCreateWithoutWorksheetPresetsInput>;
697
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutWorksheetPresetsInput;
698
+ upsert?: Prisma.WorkspaceUpsertWithoutWorksheetPresetsInput;
699
+ disconnect?: Prisma.WorkspaceWhereInput | boolean;
700
+ delete?: Prisma.WorkspaceWhereInput | boolean;
701
+ connect?: Prisma.WorkspaceWhereUniqueInput;
702
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutWorksheetPresetsInput, Prisma.WorkspaceUpdateWithoutWorksheetPresetsInput>, Prisma.WorkspaceUncheckedUpdateWithoutWorksheetPresetsInput>;
703
+ };
704
+ export type WorkspaceCreateNestedOneWithoutMembersInput = {
705
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutMembersInput, Prisma.WorkspaceUncheckedCreateWithoutMembersInput>;
706
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutMembersInput;
707
+ connect?: Prisma.WorkspaceWhereUniqueInput;
708
+ };
709
+ export type WorkspaceUpdateOneRequiredWithoutMembersNestedInput = {
710
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutMembersInput, Prisma.WorkspaceUncheckedCreateWithoutMembersInput>;
711
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutMembersInput;
712
+ upsert?: Prisma.WorkspaceUpsertWithoutMembersInput;
713
+ connect?: Prisma.WorkspaceWhereUniqueInput;
714
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutMembersInput, Prisma.WorkspaceUpdateWithoutMembersInput>, Prisma.WorkspaceUncheckedUpdateWithoutMembersInput>;
715
+ };
716
+ export type WorkspaceCreateNestedOneWithoutInvitationsInput = {
717
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutInvitationsInput, Prisma.WorkspaceUncheckedCreateWithoutInvitationsInput>;
718
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutInvitationsInput;
719
+ connect?: Prisma.WorkspaceWhereUniqueInput;
720
+ };
721
+ export type WorkspaceUpdateOneRequiredWithoutInvitationsNestedInput = {
722
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutInvitationsInput, Prisma.WorkspaceUncheckedCreateWithoutInvitationsInput>;
723
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutInvitationsInput;
724
+ upsert?: Prisma.WorkspaceUpsertWithoutInvitationsInput;
725
+ connect?: Prisma.WorkspaceWhereUniqueInput;
726
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutInvitationsInput, Prisma.WorkspaceUpdateWithoutInvitationsInput>, Prisma.WorkspaceUncheckedUpdateWithoutInvitationsInput>;
727
+ };
728
+ export type WorkspaceCreateNestedOneWithoutActivityLogsInput = {
729
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutActivityLogsInput, Prisma.WorkspaceUncheckedCreateWithoutActivityLogsInput>;
730
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutActivityLogsInput;
731
+ connect?: Prisma.WorkspaceWhereUniqueInput;
732
+ };
733
+ export type WorkspaceUpdateOneWithoutActivityLogsNestedInput = {
734
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutActivityLogsInput, Prisma.WorkspaceUncheckedCreateWithoutActivityLogsInput>;
735
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutActivityLogsInput;
736
+ upsert?: Prisma.WorkspaceUpsertWithoutActivityLogsInput;
737
+ disconnect?: Prisma.WorkspaceWhereInput | boolean;
738
+ delete?: Prisma.WorkspaceWhereInput | boolean;
739
+ connect?: Prisma.WorkspaceWhereUniqueInput;
740
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutActivityLogsInput, Prisma.WorkspaceUpdateWithoutActivityLogsInput>, Prisma.WorkspaceUncheckedUpdateWithoutActivityLogsInput>;
741
+ };
742
+ export type WorkspaceCreateNestedOneWithoutKnowledgeBasesInput = {
743
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>;
744
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutKnowledgeBasesInput;
745
+ connect?: Prisma.WorkspaceWhereUniqueInput;
746
+ };
747
+ export type WorkspaceUpdateOneRequiredWithoutKnowledgeBasesNestedInput = {
748
+ create?: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>;
749
+ connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutKnowledgeBasesInput;
750
+ upsert?: Prisma.WorkspaceUpsertWithoutKnowledgeBasesInput;
751
+ connect?: Prisma.WorkspaceWhereUniqueInput;
752
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkspaceUpdateToOneWithWhereWithoutKnowledgeBasesInput, Prisma.WorkspaceUpdateWithoutKnowledgeBasesInput>, Prisma.WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput>;
753
+ };
754
+ export type WorkspaceCreateWithoutOwnerInput = {
755
+ id?: string;
756
+ title: string;
757
+ description?: string | null;
758
+ icon?: string;
759
+ color?: string;
760
+ markerColor?: string | null;
761
+ fileBeingAnalyzed?: boolean;
762
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
763
+ needsAnalysis?: boolean;
764
+ createdAt?: Date | string;
765
+ updatedAt?: Date | string;
766
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
767
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
768
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
769
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
770
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
771
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
772
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
773
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
774
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
775
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
776
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
777
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
778
+ };
779
+ export type WorkspaceUncheckedCreateWithoutOwnerInput = {
780
+ id?: string;
781
+ title: string;
782
+ description?: string | null;
783
+ icon?: string;
784
+ color?: string;
785
+ markerColor?: string | null;
786
+ folderId?: string | null;
787
+ fileBeingAnalyzed?: boolean;
788
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
789
+ needsAnalysis?: boolean;
790
+ createdAt?: Date | string;
791
+ updatedAt?: Date | string;
792
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
793
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
794
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
795
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
796
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
797
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
798
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
799
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
800
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
801
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
802
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
803
+ };
804
+ export type WorkspaceCreateOrConnectWithoutOwnerInput = {
805
+ where: Prisma.WorkspaceWhereUniqueInput;
806
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput>;
807
+ };
808
+ export type WorkspaceCreateManyOwnerInputEnvelope = {
809
+ data: Prisma.WorkspaceCreateManyOwnerInput | Prisma.WorkspaceCreateManyOwnerInput[];
810
+ skipDuplicates?: boolean;
811
+ };
812
+ export type WorkspaceCreateWithoutSharedWithInput = {
813
+ id?: string;
814
+ title: string;
815
+ description?: string | null;
816
+ icon?: string;
817
+ color?: string;
818
+ markerColor?: string | null;
819
+ fileBeingAnalyzed?: boolean;
820
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
821
+ needsAnalysis?: boolean;
822
+ createdAt?: Date | string;
823
+ updatedAt?: Date | string;
824
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
825
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
826
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
827
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
828
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
829
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
830
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
831
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
832
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
833
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
834
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
835
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
836
+ };
837
+ export type WorkspaceUncheckedCreateWithoutSharedWithInput = {
838
+ id?: string;
839
+ title: string;
840
+ description?: string | null;
841
+ ownerId: string;
842
+ icon?: string;
843
+ color?: string;
844
+ markerColor?: string | null;
845
+ folderId?: string | null;
846
+ fileBeingAnalyzed?: boolean;
847
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
848
+ needsAnalysis?: boolean;
849
+ createdAt?: Date | string;
850
+ updatedAt?: Date | string;
851
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
852
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
853
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
854
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
855
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
856
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
857
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
858
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
859
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
860
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
861
+ };
862
+ export type WorkspaceCreateOrConnectWithoutSharedWithInput = {
863
+ where: Prisma.WorkspaceWhereUniqueInput;
864
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutSharedWithInput, Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput>;
865
+ };
866
+ export type WorkspaceUpsertWithWhereUniqueWithoutOwnerInput = {
867
+ where: Prisma.WorkspaceWhereUniqueInput;
868
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutOwnerInput, Prisma.WorkspaceUncheckedUpdateWithoutOwnerInput>;
869
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutOwnerInput, Prisma.WorkspaceUncheckedCreateWithoutOwnerInput>;
870
+ };
871
+ export type WorkspaceUpdateWithWhereUniqueWithoutOwnerInput = {
872
+ where: Prisma.WorkspaceWhereUniqueInput;
873
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutOwnerInput, Prisma.WorkspaceUncheckedUpdateWithoutOwnerInput>;
874
+ };
875
+ export type WorkspaceUpdateManyWithWhereWithoutOwnerInput = {
876
+ where: Prisma.WorkspaceScalarWhereInput;
877
+ data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyWithoutOwnerInput>;
878
+ };
879
+ export type WorkspaceScalarWhereInput = {
880
+ AND?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
881
+ OR?: Prisma.WorkspaceScalarWhereInput[];
882
+ NOT?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[];
883
+ id?: Prisma.StringFilter<"Workspace"> | string;
884
+ title?: Prisma.StringFilter<"Workspace"> | string;
885
+ description?: Prisma.StringNullableFilter<"Workspace"> | string | null;
886
+ ownerId?: Prisma.StringFilter<"Workspace"> | string;
887
+ icon?: Prisma.StringFilter<"Workspace"> | string;
888
+ color?: Prisma.StringFilter<"Workspace"> | string;
889
+ markerColor?: Prisma.StringNullableFilter<"Workspace"> | string | null;
890
+ folderId?: Prisma.StringNullableFilter<"Workspace"> | string | null;
891
+ fileBeingAnalyzed?: Prisma.BoolFilter<"Workspace"> | boolean;
892
+ analysisProgress?: Prisma.JsonNullableFilter<"Workspace">;
893
+ needsAnalysis?: Prisma.BoolFilter<"Workspace"> | boolean;
894
+ createdAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string;
895
+ updatedAt?: Prisma.DateTimeFilter<"Workspace"> | Date | string;
896
+ };
897
+ export type WorkspaceUpsertWithWhereUniqueWithoutSharedWithInput = {
898
+ where: Prisma.WorkspaceWhereUniqueInput;
899
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutSharedWithInput, Prisma.WorkspaceUncheckedUpdateWithoutSharedWithInput>;
900
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutSharedWithInput, Prisma.WorkspaceUncheckedCreateWithoutSharedWithInput>;
901
+ };
902
+ export type WorkspaceUpdateWithWhereUniqueWithoutSharedWithInput = {
903
+ where: Prisma.WorkspaceWhereUniqueInput;
904
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutSharedWithInput, Prisma.WorkspaceUncheckedUpdateWithoutSharedWithInput>;
905
+ };
906
+ export type WorkspaceUpdateManyWithWhereWithoutSharedWithInput = {
907
+ where: Prisma.WorkspaceScalarWhereInput;
908
+ data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyWithoutSharedWithInput>;
909
+ };
910
+ export type WorkspaceCreateWithoutNotificationsInput = {
911
+ id?: string;
912
+ title: string;
913
+ description?: string | null;
914
+ icon?: string;
915
+ color?: string;
916
+ markerColor?: string | null;
917
+ fileBeingAnalyzed?: boolean;
918
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
919
+ needsAnalysis?: boolean;
920
+ createdAt?: Date | string;
921
+ updatedAt?: Date | string;
922
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
923
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
924
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
925
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
926
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
927
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
928
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
929
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
930
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
931
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
932
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
933
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
934
+ };
935
+ export type WorkspaceUncheckedCreateWithoutNotificationsInput = {
936
+ id?: string;
937
+ title: string;
938
+ description?: string | null;
939
+ ownerId: string;
940
+ icon?: string;
941
+ color?: string;
942
+ markerColor?: string | null;
943
+ folderId?: string | null;
944
+ fileBeingAnalyzed?: boolean;
945
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
946
+ needsAnalysis?: boolean;
947
+ createdAt?: Date | string;
948
+ updatedAt?: Date | string;
949
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
950
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
951
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
952
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
953
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
954
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
955
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
956
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
957
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
958
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
959
+ };
960
+ export type WorkspaceCreateOrConnectWithoutNotificationsInput = {
961
+ where: Prisma.WorkspaceWhereUniqueInput;
962
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutNotificationsInput, Prisma.WorkspaceUncheckedCreateWithoutNotificationsInput>;
963
+ };
964
+ export type WorkspaceUpsertWithoutNotificationsInput = {
965
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutNotificationsInput, Prisma.WorkspaceUncheckedUpdateWithoutNotificationsInput>;
966
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutNotificationsInput, Prisma.WorkspaceUncheckedCreateWithoutNotificationsInput>;
967
+ where?: Prisma.WorkspaceWhereInput;
968
+ };
969
+ export type WorkspaceUpdateToOneWithWhereWithoutNotificationsInput = {
970
+ where?: Prisma.WorkspaceWhereInput;
971
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutNotificationsInput, Prisma.WorkspaceUncheckedUpdateWithoutNotificationsInput>;
972
+ };
973
+ export type WorkspaceUpdateWithoutNotificationsInput = {
974
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
975
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
976
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
977
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
978
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
979
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
980
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
981
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
982
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
983
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
984
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
985
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
986
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
987
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
988
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
989
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
990
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
991
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
992
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
993
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
994
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
995
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
996
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
997
+ };
998
+ export type WorkspaceUncheckedUpdateWithoutNotificationsInput = {
999
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1000
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1001
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1002
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1003
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1004
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1005
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1006
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1007
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1008
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1009
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1010
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1011
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1012
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1013
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1014
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1015
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1016
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1017
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1018
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1019
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1020
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1021
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1022
+ };
1023
+ export type WorkspaceCreateWithoutFolderInput = {
1024
+ id?: string;
1025
+ title: string;
1026
+ description?: string | null;
1027
+ icon?: string;
1028
+ color?: string;
1029
+ markerColor?: string | null;
1030
+ fileBeingAnalyzed?: boolean;
1031
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1032
+ needsAnalysis?: boolean;
1033
+ createdAt?: Date | string;
1034
+ updatedAt?: Date | string;
1035
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1036
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1037
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1038
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1039
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1040
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1041
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1042
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1043
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1044
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1045
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1046
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1047
+ };
1048
+ export type WorkspaceUncheckedCreateWithoutFolderInput = {
1049
+ id?: string;
1050
+ title: string;
1051
+ description?: string | null;
1052
+ ownerId: string;
1053
+ icon?: string;
1054
+ color?: string;
1055
+ markerColor?: string | null;
1056
+ fileBeingAnalyzed?: boolean;
1057
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1058
+ needsAnalysis?: boolean;
1059
+ createdAt?: Date | string;
1060
+ updatedAt?: Date | string;
1061
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1062
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1063
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1064
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1065
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1066
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1067
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1068
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1069
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1070
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1071
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1072
+ };
1073
+ export type WorkspaceCreateOrConnectWithoutFolderInput = {
1074
+ where: Prisma.WorkspaceWhereUniqueInput;
1075
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutFolderInput, Prisma.WorkspaceUncheckedCreateWithoutFolderInput>;
1076
+ };
1077
+ export type WorkspaceCreateManyFolderInputEnvelope = {
1078
+ data: Prisma.WorkspaceCreateManyFolderInput | Prisma.WorkspaceCreateManyFolderInput[];
1079
+ skipDuplicates?: boolean;
1080
+ };
1081
+ export type WorkspaceUpsertWithWhereUniqueWithoutFolderInput = {
1082
+ where: Prisma.WorkspaceWhereUniqueInput;
1083
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutFolderInput, Prisma.WorkspaceUncheckedUpdateWithoutFolderInput>;
1084
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutFolderInput, Prisma.WorkspaceUncheckedCreateWithoutFolderInput>;
1085
+ };
1086
+ export type WorkspaceUpdateWithWhereUniqueWithoutFolderInput = {
1087
+ where: Prisma.WorkspaceWhereUniqueInput;
1088
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutFolderInput, Prisma.WorkspaceUncheckedUpdateWithoutFolderInput>;
1089
+ };
1090
+ export type WorkspaceUpdateManyWithWhereWithoutFolderInput = {
1091
+ where: Prisma.WorkspaceScalarWhereInput;
1092
+ data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyWithoutFolderInput>;
1093
+ };
1094
+ export type WorkspaceCreateWithoutChannelsInput = {
1095
+ id?: string;
1096
+ title: string;
1097
+ description?: string | null;
1098
+ icon?: string;
1099
+ color?: string;
1100
+ markerColor?: string | null;
1101
+ fileBeingAnalyzed?: boolean;
1102
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1103
+ needsAnalysis?: boolean;
1104
+ createdAt?: Date | string;
1105
+ updatedAt?: Date | string;
1106
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1107
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1108
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1109
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1110
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1111
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1112
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1113
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1114
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1115
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1116
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1117
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1118
+ };
1119
+ export type WorkspaceUncheckedCreateWithoutChannelsInput = {
1120
+ id?: string;
1121
+ title: string;
1122
+ description?: string | null;
1123
+ ownerId: string;
1124
+ icon?: string;
1125
+ color?: string;
1126
+ markerColor?: string | null;
1127
+ folderId?: string | null;
1128
+ fileBeingAnalyzed?: boolean;
1129
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1130
+ needsAnalysis?: boolean;
1131
+ createdAt?: Date | string;
1132
+ updatedAt?: Date | string;
1133
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1134
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1135
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1136
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1137
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1138
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1139
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1140
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1141
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1142
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1143
+ };
1144
+ export type WorkspaceCreateOrConnectWithoutChannelsInput = {
1145
+ where: Prisma.WorkspaceWhereUniqueInput;
1146
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutChannelsInput, Prisma.WorkspaceUncheckedCreateWithoutChannelsInput>;
1147
+ };
1148
+ export type WorkspaceUpsertWithoutChannelsInput = {
1149
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutChannelsInput, Prisma.WorkspaceUncheckedUpdateWithoutChannelsInput>;
1150
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutChannelsInput, Prisma.WorkspaceUncheckedCreateWithoutChannelsInput>;
1151
+ where?: Prisma.WorkspaceWhereInput;
1152
+ };
1153
+ export type WorkspaceUpdateToOneWithWhereWithoutChannelsInput = {
1154
+ where?: Prisma.WorkspaceWhereInput;
1155
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutChannelsInput, Prisma.WorkspaceUncheckedUpdateWithoutChannelsInput>;
1156
+ };
1157
+ export type WorkspaceUpdateWithoutChannelsInput = {
1158
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1159
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1160
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1161
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1162
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1163
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1164
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1165
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1166
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1167
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1168
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1169
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1170
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1171
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
1172
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1173
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
1174
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
1175
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
1176
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
1177
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
1178
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1179
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
1180
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1181
+ };
1182
+ export type WorkspaceUncheckedUpdateWithoutChannelsInput = {
1183
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1184
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1185
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1186
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1187
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1188
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1189
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1190
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1191
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1192
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1193
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1194
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1195
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1196
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1197
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1198
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1199
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1200
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1201
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1202
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1203
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1204
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1205
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1206
+ };
1207
+ export type WorkspaceCreateWithoutCopilotConversationsInput = {
1208
+ id?: string;
1209
+ title: string;
1210
+ description?: string | null;
1211
+ icon?: string;
1212
+ color?: string;
1213
+ markerColor?: string | null;
1214
+ fileBeingAnalyzed?: boolean;
1215
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1216
+ needsAnalysis?: boolean;
1217
+ createdAt?: Date | string;
1218
+ updatedAt?: Date | string;
1219
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1220
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1221
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1222
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1223
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1224
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1225
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1226
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1227
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1228
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1229
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1230
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1231
+ };
1232
+ export type WorkspaceUncheckedCreateWithoutCopilotConversationsInput = {
1233
+ id?: string;
1234
+ title: string;
1235
+ description?: string | null;
1236
+ ownerId: string;
1237
+ icon?: string;
1238
+ color?: string;
1239
+ markerColor?: string | null;
1240
+ folderId?: string | null;
1241
+ fileBeingAnalyzed?: boolean;
1242
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1243
+ needsAnalysis?: boolean;
1244
+ createdAt?: Date | string;
1245
+ updatedAt?: Date | string;
1246
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1247
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1248
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1249
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1250
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1251
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1252
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1253
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1254
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1255
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1256
+ };
1257
+ export type WorkspaceCreateOrConnectWithoutCopilotConversationsInput = {
1258
+ where: Prisma.WorkspaceWhereUniqueInput;
1259
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutCopilotConversationsInput, Prisma.WorkspaceUncheckedCreateWithoutCopilotConversationsInput>;
1260
+ };
1261
+ export type WorkspaceUpsertWithoutCopilotConversationsInput = {
1262
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutCopilotConversationsInput, Prisma.WorkspaceUncheckedUpdateWithoutCopilotConversationsInput>;
1263
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutCopilotConversationsInput, Prisma.WorkspaceUncheckedCreateWithoutCopilotConversationsInput>;
1264
+ where?: Prisma.WorkspaceWhereInput;
1265
+ };
1266
+ export type WorkspaceUpdateToOneWithWhereWithoutCopilotConversationsInput = {
1267
+ where?: Prisma.WorkspaceWhereInput;
1268
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutCopilotConversationsInput, Prisma.WorkspaceUncheckedUpdateWithoutCopilotConversationsInput>;
1269
+ };
1270
+ export type WorkspaceUpdateWithoutCopilotConversationsInput = {
1271
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1272
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1273
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1274
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1275
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1276
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1277
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1278
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1279
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1280
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1281
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1282
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1283
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1284
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
1285
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1286
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
1287
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
1288
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
1289
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
1290
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
1291
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1292
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
1293
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1294
+ };
1295
+ export type WorkspaceUncheckedUpdateWithoutCopilotConversationsInput = {
1296
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1297
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1298
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1299
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1300
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1301
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1302
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1303
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1304
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1305
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1306
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1307
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1308
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1309
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1310
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1311
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1312
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1313
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1314
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1315
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1316
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1317
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1318
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1319
+ };
1320
+ export type WorkspaceCreateWithoutUploadsInput = {
1321
+ id?: string;
1322
+ title: string;
1323
+ description?: string | null;
1324
+ icon?: string;
1325
+ color?: string;
1326
+ markerColor?: string | null;
1327
+ fileBeingAnalyzed?: boolean;
1328
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1329
+ needsAnalysis?: boolean;
1330
+ createdAt?: Date | string;
1331
+ updatedAt?: Date | string;
1332
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1333
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1334
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1335
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1336
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1337
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1338
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1339
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1340
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1341
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1342
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1343
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1344
+ };
1345
+ export type WorkspaceUncheckedCreateWithoutUploadsInput = {
1346
+ id?: string;
1347
+ title: string;
1348
+ description?: string | null;
1349
+ ownerId: string;
1350
+ icon?: string;
1351
+ color?: string;
1352
+ markerColor?: string | null;
1353
+ folderId?: string | null;
1354
+ fileBeingAnalyzed?: boolean;
1355
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1356
+ needsAnalysis?: boolean;
1357
+ createdAt?: Date | string;
1358
+ updatedAt?: Date | string;
1359
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1360
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1361
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1362
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1363
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1364
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1365
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1366
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1367
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1368
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1369
+ };
1370
+ export type WorkspaceCreateOrConnectWithoutUploadsInput = {
1371
+ where: Prisma.WorkspaceWhereUniqueInput;
1372
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutUploadsInput, Prisma.WorkspaceUncheckedCreateWithoutUploadsInput>;
1373
+ };
1374
+ export type WorkspaceUpsertWithoutUploadsInput = {
1375
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutUploadsInput, Prisma.WorkspaceUncheckedUpdateWithoutUploadsInput>;
1376
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutUploadsInput, Prisma.WorkspaceUncheckedCreateWithoutUploadsInput>;
1377
+ where?: Prisma.WorkspaceWhereInput;
1378
+ };
1379
+ export type WorkspaceUpdateToOneWithWhereWithoutUploadsInput = {
1380
+ where?: Prisma.WorkspaceWhereInput;
1381
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutUploadsInput, Prisma.WorkspaceUncheckedUpdateWithoutUploadsInput>;
1382
+ };
1383
+ export type WorkspaceUpdateWithoutUploadsInput = {
1384
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1385
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1386
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1387
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1388
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1389
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1390
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1391
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1392
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1393
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1394
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1395
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1396
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1397
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
1398
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
1399
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1400
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
1401
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
1402
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
1403
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
1404
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1405
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
1406
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1407
+ };
1408
+ export type WorkspaceUncheckedUpdateWithoutUploadsInput = {
1409
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1410
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1411
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1412
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1413
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1414
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1415
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1416
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1417
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1418
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1419
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1420
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1421
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1422
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1423
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1424
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1425
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1426
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1427
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1428
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1429
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1430
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1431
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1432
+ };
1433
+ export type WorkspaceCreateWithoutArtifactsInput = {
1434
+ id?: string;
1435
+ title: string;
1436
+ description?: string | null;
1437
+ icon?: string;
1438
+ color?: string;
1439
+ markerColor?: string | null;
1440
+ fileBeingAnalyzed?: boolean;
1441
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1442
+ needsAnalysis?: boolean;
1443
+ createdAt?: Date | string;
1444
+ updatedAt?: Date | string;
1445
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1446
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1447
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1448
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1449
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1450
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1451
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1452
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1453
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1454
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1455
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1456
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1457
+ };
1458
+ export type WorkspaceUncheckedCreateWithoutArtifactsInput = {
1459
+ id?: string;
1460
+ title: string;
1461
+ description?: string | null;
1462
+ ownerId: string;
1463
+ icon?: string;
1464
+ color?: string;
1465
+ markerColor?: string | null;
1466
+ folderId?: string | null;
1467
+ fileBeingAnalyzed?: boolean;
1468
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1469
+ needsAnalysis?: boolean;
1470
+ createdAt?: Date | string;
1471
+ updatedAt?: Date | string;
1472
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1473
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1474
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1475
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1476
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1477
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1478
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1479
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1480
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1481
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1482
+ };
1483
+ export type WorkspaceCreateOrConnectWithoutArtifactsInput = {
1484
+ where: Prisma.WorkspaceWhereUniqueInput;
1485
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutArtifactsInput, Prisma.WorkspaceUncheckedCreateWithoutArtifactsInput>;
1486
+ };
1487
+ export type WorkspaceUpsertWithoutArtifactsInput = {
1488
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutArtifactsInput, Prisma.WorkspaceUncheckedUpdateWithoutArtifactsInput>;
1489
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutArtifactsInput, Prisma.WorkspaceUncheckedCreateWithoutArtifactsInput>;
1490
+ where?: Prisma.WorkspaceWhereInput;
1491
+ };
1492
+ export type WorkspaceUpdateToOneWithWhereWithoutArtifactsInput = {
1493
+ where?: Prisma.WorkspaceWhereInput;
1494
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutArtifactsInput, Prisma.WorkspaceUncheckedUpdateWithoutArtifactsInput>;
1495
+ };
1496
+ export type WorkspaceUpdateWithoutArtifactsInput = {
1497
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1498
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1499
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1500
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1501
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1502
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1503
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1504
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1505
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1506
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1507
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1508
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1509
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1510
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
1511
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
1512
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1513
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
1514
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
1515
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
1516
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
1517
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1518
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
1519
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1520
+ };
1521
+ export type WorkspaceUncheckedUpdateWithoutArtifactsInput = {
1522
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1523
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1524
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1525
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1526
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1527
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1528
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1529
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1530
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1531
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1532
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1533
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1534
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1535
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1536
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1537
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1538
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1539
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1540
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1541
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1542
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1543
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1544
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1545
+ };
1546
+ export type WorkspaceCreateWithoutWorksheetPresetsInput = {
1547
+ id?: string;
1548
+ title: string;
1549
+ description?: string | null;
1550
+ icon?: string;
1551
+ color?: string;
1552
+ markerColor?: string | null;
1553
+ fileBeingAnalyzed?: boolean;
1554
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1555
+ needsAnalysis?: boolean;
1556
+ createdAt?: Date | string;
1557
+ updatedAt?: Date | string;
1558
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1559
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1560
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1561
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1562
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1563
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1564
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1565
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1566
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1567
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1568
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1569
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1570
+ };
1571
+ export type WorkspaceUncheckedCreateWithoutWorksheetPresetsInput = {
1572
+ id?: string;
1573
+ title: string;
1574
+ description?: string | null;
1575
+ ownerId: string;
1576
+ icon?: string;
1577
+ color?: string;
1578
+ markerColor?: string | null;
1579
+ folderId?: string | null;
1580
+ fileBeingAnalyzed?: boolean;
1581
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1582
+ needsAnalysis?: boolean;
1583
+ createdAt?: Date | string;
1584
+ updatedAt?: Date | string;
1585
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1586
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1587
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1588
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1589
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1590
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1591
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1592
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1593
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1594
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1595
+ };
1596
+ export type WorkspaceCreateOrConnectWithoutWorksheetPresetsInput = {
1597
+ where: Prisma.WorkspaceWhereUniqueInput;
1598
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorksheetPresetsInput, Prisma.WorkspaceUncheckedCreateWithoutWorksheetPresetsInput>;
1599
+ };
1600
+ export type WorkspaceUpsertWithoutWorksheetPresetsInput = {
1601
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutWorksheetPresetsInput, Prisma.WorkspaceUncheckedUpdateWithoutWorksheetPresetsInput>;
1602
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutWorksheetPresetsInput, Prisma.WorkspaceUncheckedCreateWithoutWorksheetPresetsInput>;
1603
+ where?: Prisma.WorkspaceWhereInput;
1604
+ };
1605
+ export type WorkspaceUpdateToOneWithWhereWithoutWorksheetPresetsInput = {
1606
+ where?: Prisma.WorkspaceWhereInput;
1607
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutWorksheetPresetsInput, Prisma.WorkspaceUncheckedUpdateWithoutWorksheetPresetsInput>;
1608
+ };
1609
+ export type WorkspaceUpdateWithoutWorksheetPresetsInput = {
1610
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1611
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1612
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1613
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1614
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1615
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1616
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1617
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1618
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1619
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1620
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1621
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1622
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1623
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
1624
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
1625
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1626
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
1627
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
1628
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
1629
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
1630
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1631
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
1632
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1633
+ };
1634
+ export type WorkspaceUncheckedUpdateWithoutWorksheetPresetsInput = {
1635
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1636
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1637
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1638
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1639
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1640
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1641
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1642
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1643
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1644
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1645
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1646
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1647
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1648
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1649
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1650
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1651
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1652
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1653
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1654
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1655
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1656
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1657
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1658
+ };
1659
+ export type WorkspaceCreateWithoutMembersInput = {
1660
+ id?: string;
1661
+ title: string;
1662
+ description?: string | null;
1663
+ icon?: string;
1664
+ color?: string;
1665
+ markerColor?: string | null;
1666
+ fileBeingAnalyzed?: boolean;
1667
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1668
+ needsAnalysis?: boolean;
1669
+ createdAt?: Date | string;
1670
+ updatedAt?: Date | string;
1671
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1672
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1673
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1674
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1675
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1676
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1677
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1678
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1679
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1680
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1681
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1682
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1683
+ };
1684
+ export type WorkspaceUncheckedCreateWithoutMembersInput = {
1685
+ id?: string;
1686
+ title: string;
1687
+ description?: string | null;
1688
+ ownerId: string;
1689
+ icon?: string;
1690
+ color?: string;
1691
+ markerColor?: string | null;
1692
+ folderId?: string | null;
1693
+ fileBeingAnalyzed?: boolean;
1694
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1695
+ needsAnalysis?: boolean;
1696
+ createdAt?: Date | string;
1697
+ updatedAt?: Date | string;
1698
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1699
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1700
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1701
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1702
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1703
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1704
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1705
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1706
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1707
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1708
+ };
1709
+ export type WorkspaceCreateOrConnectWithoutMembersInput = {
1710
+ where: Prisma.WorkspaceWhereUniqueInput;
1711
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutMembersInput, Prisma.WorkspaceUncheckedCreateWithoutMembersInput>;
1712
+ };
1713
+ export type WorkspaceUpsertWithoutMembersInput = {
1714
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutMembersInput, Prisma.WorkspaceUncheckedUpdateWithoutMembersInput>;
1715
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutMembersInput, Prisma.WorkspaceUncheckedCreateWithoutMembersInput>;
1716
+ where?: Prisma.WorkspaceWhereInput;
1717
+ };
1718
+ export type WorkspaceUpdateToOneWithWhereWithoutMembersInput = {
1719
+ where?: Prisma.WorkspaceWhereInput;
1720
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutMembersInput, Prisma.WorkspaceUncheckedUpdateWithoutMembersInput>;
1721
+ };
1722
+ export type WorkspaceUpdateWithoutMembersInput = {
1723
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1724
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1725
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1726
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1727
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1728
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1729
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1730
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1731
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1732
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1733
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1734
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1735
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1736
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
1737
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
1738
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1739
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
1740
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
1741
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
1742
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
1743
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1744
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
1745
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1746
+ };
1747
+ export type WorkspaceUncheckedUpdateWithoutMembersInput = {
1748
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1749
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1750
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1751
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1752
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1753
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1754
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1755
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1756
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1757
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1758
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1759
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1760
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1761
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1762
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1763
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1764
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1765
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1766
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1767
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1768
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1769
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1770
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1771
+ };
1772
+ export type WorkspaceCreateWithoutInvitationsInput = {
1773
+ id?: string;
1774
+ title: string;
1775
+ description?: string | null;
1776
+ icon?: string;
1777
+ color?: string;
1778
+ markerColor?: string | null;
1779
+ fileBeingAnalyzed?: boolean;
1780
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1781
+ needsAnalysis?: boolean;
1782
+ createdAt?: Date | string;
1783
+ updatedAt?: Date | string;
1784
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1785
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1786
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1787
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1788
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1789
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1790
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1791
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1792
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1793
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1794
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
1795
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1796
+ };
1797
+ export type WorkspaceUncheckedCreateWithoutInvitationsInput = {
1798
+ id?: string;
1799
+ title: string;
1800
+ description?: string | null;
1801
+ ownerId: string;
1802
+ icon?: string;
1803
+ color?: string;
1804
+ markerColor?: string | null;
1805
+ folderId?: string | null;
1806
+ fileBeingAnalyzed?: boolean;
1807
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1808
+ needsAnalysis?: boolean;
1809
+ createdAt?: Date | string;
1810
+ updatedAt?: Date | string;
1811
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1812
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1813
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1814
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1815
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1816
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1817
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1818
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1819
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
1820
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1821
+ };
1822
+ export type WorkspaceCreateOrConnectWithoutInvitationsInput = {
1823
+ where: Prisma.WorkspaceWhereUniqueInput;
1824
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutInvitationsInput, Prisma.WorkspaceUncheckedCreateWithoutInvitationsInput>;
1825
+ };
1826
+ export type WorkspaceUpsertWithoutInvitationsInput = {
1827
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutInvitationsInput, Prisma.WorkspaceUncheckedUpdateWithoutInvitationsInput>;
1828
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutInvitationsInput, Prisma.WorkspaceUncheckedCreateWithoutInvitationsInput>;
1829
+ where?: Prisma.WorkspaceWhereInput;
1830
+ };
1831
+ export type WorkspaceUpdateToOneWithWhereWithoutInvitationsInput = {
1832
+ where?: Prisma.WorkspaceWhereInput;
1833
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutInvitationsInput, Prisma.WorkspaceUncheckedUpdateWithoutInvitationsInput>;
1834
+ };
1835
+ export type WorkspaceUpdateWithoutInvitationsInput = {
1836
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1837
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1838
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1839
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1840
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1841
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1842
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1843
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1844
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1845
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1846
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1847
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1848
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1849
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
1850
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
1851
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1852
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
1853
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
1854
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
1855
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
1856
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1857
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
1858
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1859
+ };
1860
+ export type WorkspaceUncheckedUpdateWithoutInvitationsInput = {
1861
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1862
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1863
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1864
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1865
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1866
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1867
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1868
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1869
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1870
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1871
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1872
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1873
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1874
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1875
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1876
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1877
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1878
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1879
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1880
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1881
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1882
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
1883
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1884
+ };
1885
+ export type WorkspaceCreateWithoutActivityLogsInput = {
1886
+ id?: string;
1887
+ title: string;
1888
+ description?: string | null;
1889
+ icon?: string;
1890
+ color?: string;
1891
+ markerColor?: string | null;
1892
+ fileBeingAnalyzed?: boolean;
1893
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1894
+ needsAnalysis?: boolean;
1895
+ createdAt?: Date | string;
1896
+ updatedAt?: Date | string;
1897
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
1898
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
1899
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
1900
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
1901
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
1902
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
1903
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
1904
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
1905
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
1906
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
1907
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
1908
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseCreateNestedManyWithoutWorkspaceInput;
1909
+ };
1910
+ export type WorkspaceUncheckedCreateWithoutActivityLogsInput = {
1911
+ id?: string;
1912
+ title: string;
1913
+ description?: string | null;
1914
+ ownerId: string;
1915
+ icon?: string;
1916
+ color?: string;
1917
+ markerColor?: string | null;
1918
+ folderId?: string | null;
1919
+ fileBeingAnalyzed?: boolean;
1920
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1921
+ needsAnalysis?: boolean;
1922
+ createdAt?: Date | string;
1923
+ updatedAt?: Date | string;
1924
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
1925
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
1926
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
1927
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
1928
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
1929
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
1930
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
1931
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
1932
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
1933
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedCreateNestedManyWithoutWorkspaceInput;
1934
+ };
1935
+ export type WorkspaceCreateOrConnectWithoutActivityLogsInput = {
1936
+ where: Prisma.WorkspaceWhereUniqueInput;
1937
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutActivityLogsInput, Prisma.WorkspaceUncheckedCreateWithoutActivityLogsInput>;
1938
+ };
1939
+ export type WorkspaceUpsertWithoutActivityLogsInput = {
1940
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutActivityLogsInput, Prisma.WorkspaceUncheckedUpdateWithoutActivityLogsInput>;
1941
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutActivityLogsInput, Prisma.WorkspaceUncheckedCreateWithoutActivityLogsInput>;
1942
+ where?: Prisma.WorkspaceWhereInput;
1943
+ };
1944
+ export type WorkspaceUpdateToOneWithWhereWithoutActivityLogsInput = {
1945
+ where?: Prisma.WorkspaceWhereInput;
1946
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutActivityLogsInput, Prisma.WorkspaceUncheckedUpdateWithoutActivityLogsInput>;
1947
+ };
1948
+ export type WorkspaceUpdateWithoutActivityLogsInput = {
1949
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1950
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1951
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1952
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1953
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1954
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1955
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1956
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1957
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1958
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1959
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1960
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
1961
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
1962
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
1963
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
1964
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
1965
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
1966
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
1967
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
1968
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
1969
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
1970
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
1971
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
1972
+ };
1973
+ export type WorkspaceUncheckedUpdateWithoutActivityLogsInput = {
1974
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1975
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1976
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1977
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
1978
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
1979
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
1980
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1981
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1982
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1983
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1984
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1985
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1986
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1987
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
1988
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1989
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
1990
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
1991
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1992
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
1993
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
1994
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1995
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
1996
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
1997
+ };
1998
+ export type WorkspaceCreateWithoutKnowledgeBasesInput = {
1999
+ id?: string;
2000
+ title: string;
2001
+ description?: string | null;
2002
+ icon?: string;
2003
+ color?: string;
2004
+ markerColor?: string | null;
2005
+ fileBeingAnalyzed?: boolean;
2006
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2007
+ needsAnalysis?: boolean;
2008
+ createdAt?: Date | string;
2009
+ updatedAt?: Date | string;
2010
+ owner: Prisma.UserCreateNestedOneWithoutWorkspacesInput;
2011
+ folder?: Prisma.FolderCreateNestedOneWithoutWorkspacesInput;
2012
+ channels?: Prisma.ChannelCreateNestedManyWithoutWorkspaceInput;
2013
+ copilotConversations?: Prisma.CopilotConversationCreateNestedManyWithoutWorkspaceInput;
2014
+ sharedWith?: Prisma.UserCreateNestedManyWithoutInvitedInWorkspacesInput;
2015
+ members?: Prisma.WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
2016
+ uploads?: Prisma.FileAssetCreateNestedManyWithoutWorkspaceInput;
2017
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutWorkspaceInput;
2018
+ worksheetPresets?: Prisma.WorksheetPresetCreateNestedManyWithoutWorkspaceInput;
2019
+ invitations?: Prisma.WorkspaceInvitationCreateNestedManyWithoutWorkspaceInput;
2020
+ notifications?: Prisma.NotificationCreateNestedManyWithoutWorkspaceInput;
2021
+ activityLogs?: Prisma.ActivityLogCreateNestedManyWithoutWorkspaceInput;
2022
+ };
2023
+ export type WorkspaceUncheckedCreateWithoutKnowledgeBasesInput = {
2024
+ id?: string;
2025
+ title: string;
2026
+ description?: string | null;
2027
+ ownerId: string;
2028
+ icon?: string;
2029
+ color?: string;
2030
+ markerColor?: string | null;
2031
+ folderId?: string | null;
2032
+ fileBeingAnalyzed?: boolean;
2033
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2034
+ needsAnalysis?: boolean;
2035
+ createdAt?: Date | string;
2036
+ updatedAt?: Date | string;
2037
+ channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutWorkspaceInput;
2038
+ copilotConversations?: Prisma.CopilotConversationUncheckedCreateNestedManyWithoutWorkspaceInput;
2039
+ sharedWith?: Prisma.UserUncheckedCreateNestedManyWithoutInvitedInWorkspacesInput;
2040
+ members?: Prisma.WorkspaceMemberUncheckedCreateNestedManyWithoutWorkspaceInput;
2041
+ uploads?: Prisma.FileAssetUncheckedCreateNestedManyWithoutWorkspaceInput;
2042
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutWorkspaceInput;
2043
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedCreateNestedManyWithoutWorkspaceInput;
2044
+ invitations?: Prisma.WorkspaceInvitationUncheckedCreateNestedManyWithoutWorkspaceInput;
2045
+ notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutWorkspaceInput;
2046
+ activityLogs?: Prisma.ActivityLogUncheckedCreateNestedManyWithoutWorkspaceInput;
2047
+ };
2048
+ export type WorkspaceCreateOrConnectWithoutKnowledgeBasesInput = {
2049
+ where: Prisma.WorkspaceWhereUniqueInput;
2050
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>;
2051
+ };
2052
+ export type WorkspaceUpsertWithoutKnowledgeBasesInput = {
2053
+ update: Prisma.XOR<Prisma.WorkspaceUpdateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput>;
2054
+ create: Prisma.XOR<Prisma.WorkspaceCreateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedCreateWithoutKnowledgeBasesInput>;
2055
+ where?: Prisma.WorkspaceWhereInput;
2056
+ };
2057
+ export type WorkspaceUpdateToOneWithWhereWithoutKnowledgeBasesInput = {
2058
+ where?: Prisma.WorkspaceWhereInput;
2059
+ data: Prisma.XOR<Prisma.WorkspaceUpdateWithoutKnowledgeBasesInput, Prisma.WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput>;
2060
+ };
2061
+ export type WorkspaceUpdateWithoutKnowledgeBasesInput = {
2062
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2063
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2064
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2065
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2066
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2067
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2068
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2069
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2070
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2071
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2072
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2073
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
2074
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
2075
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
2076
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
2077
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
2078
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
2079
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
2080
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
2081
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
2082
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
2083
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
2084
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
2085
+ };
2086
+ export type WorkspaceUncheckedUpdateWithoutKnowledgeBasesInput = {
2087
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2088
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2089
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2090
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
2091
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2092
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2093
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2094
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2095
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2096
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2097
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2098
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2099
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2100
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
2101
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2102
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
2103
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
2104
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2105
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
2106
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2107
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2108
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2109
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
2110
+ };
2111
+ export type WorkspaceCreateManyOwnerInput = {
2112
+ id?: string;
2113
+ title: string;
2114
+ description?: string | null;
2115
+ icon?: string;
2116
+ color?: string;
2117
+ markerColor?: string | null;
2118
+ folderId?: string | null;
2119
+ fileBeingAnalyzed?: boolean;
2120
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2121
+ needsAnalysis?: boolean;
2122
+ createdAt?: Date | string;
2123
+ updatedAt?: Date | string;
2124
+ };
2125
+ export type WorkspaceUpdateWithoutOwnerInput = {
2126
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2127
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2128
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2129
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2130
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2131
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2132
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2133
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2134
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2135
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2136
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2137
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
2138
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
2139
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
2140
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
2141
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
2142
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
2143
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
2144
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
2145
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
2146
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
2147
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
2148
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
2149
+ };
2150
+ export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
2151
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2152
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2153
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2154
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2155
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2156
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2157
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2158
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2159
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2160
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2161
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2162
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2163
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
2164
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2165
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
2166
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
2167
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2168
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
2169
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2170
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2171
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2172
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
2173
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
2174
+ };
2175
+ export type WorkspaceUncheckedUpdateManyWithoutOwnerInput = {
2176
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2177
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2178
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2179
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2180
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2181
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2182
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2183
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2184
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2185
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2186
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2187
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2188
+ };
2189
+ export type WorkspaceUpdateWithoutSharedWithInput = {
2190
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2191
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2192
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2193
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2194
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2195
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2196
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2197
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2198
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2199
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2200
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2201
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
2202
+ folder?: Prisma.FolderUpdateOneWithoutWorkspacesNestedInput;
2203
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
2204
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
2205
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
2206
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
2207
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
2208
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
2209
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
2210
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
2211
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
2212
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
2213
+ };
2214
+ export type WorkspaceUncheckedUpdateWithoutSharedWithInput = {
2215
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2216
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2217
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2218
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
2219
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2220
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2221
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2222
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2223
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2224
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2225
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2226
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2227
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2228
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
2229
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2230
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
2231
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2232
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
2233
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2234
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2235
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2236
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
2237
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
2238
+ };
2239
+ export type WorkspaceUncheckedUpdateManyWithoutSharedWithInput = {
2240
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2241
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2242
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2243
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
2244
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2245
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2246
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2247
+ folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2248
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2249
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2250
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2251
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2252
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2253
+ };
2254
+ export type WorkspaceCreateManyFolderInput = {
2255
+ id?: string;
2256
+ title: string;
2257
+ description?: string | null;
2258
+ ownerId: string;
2259
+ icon?: string;
2260
+ color?: string;
2261
+ markerColor?: string | null;
2262
+ fileBeingAnalyzed?: boolean;
2263
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2264
+ needsAnalysis?: boolean;
2265
+ createdAt?: Date | string;
2266
+ updatedAt?: Date | string;
2267
+ };
2268
+ export type WorkspaceUpdateWithoutFolderInput = {
2269
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2270
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2271
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2272
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2273
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2274
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2275
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2276
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2277
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2278
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2279
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2280
+ owner?: Prisma.UserUpdateOneRequiredWithoutWorkspacesNestedInput;
2281
+ channels?: Prisma.ChannelUpdateManyWithoutWorkspaceNestedInput;
2282
+ copilotConversations?: Prisma.CopilotConversationUpdateManyWithoutWorkspaceNestedInput;
2283
+ sharedWith?: Prisma.UserUpdateManyWithoutInvitedInWorkspacesNestedInput;
2284
+ members?: Prisma.WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput;
2285
+ uploads?: Prisma.FileAssetUpdateManyWithoutWorkspaceNestedInput;
2286
+ artifacts?: Prisma.ArtifactUpdateManyWithoutWorkspaceNestedInput;
2287
+ worksheetPresets?: Prisma.WorksheetPresetUpdateManyWithoutWorkspaceNestedInput;
2288
+ invitations?: Prisma.WorkspaceInvitationUpdateManyWithoutWorkspaceNestedInput;
2289
+ notifications?: Prisma.NotificationUpdateManyWithoutWorkspaceNestedInput;
2290
+ activityLogs?: Prisma.ActivityLogUpdateManyWithoutWorkspaceNestedInput;
2291
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUpdateManyWithoutWorkspaceNestedInput;
2292
+ };
2293
+ export type WorkspaceUncheckedUpdateWithoutFolderInput = {
2294
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2295
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2296
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2297
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
2298
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2299
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2300
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2301
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2302
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2303
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2305
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2306
+ channels?: Prisma.ChannelUncheckedUpdateManyWithoutWorkspaceNestedInput;
2307
+ copilotConversations?: Prisma.CopilotConversationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2308
+ sharedWith?: Prisma.UserUncheckedUpdateManyWithoutInvitedInWorkspacesNestedInput;
2309
+ members?: Prisma.WorkspaceMemberUncheckedUpdateManyWithoutWorkspaceNestedInput;
2310
+ uploads?: Prisma.FileAssetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2311
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutWorkspaceNestedInput;
2312
+ worksheetPresets?: Prisma.WorksheetPresetUncheckedUpdateManyWithoutWorkspaceNestedInput;
2313
+ invitations?: Prisma.WorkspaceInvitationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2314
+ notifications?: Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput;
2315
+ activityLogs?: Prisma.ActivityLogUncheckedUpdateManyWithoutWorkspaceNestedInput;
2316
+ knowledgeBases?: Prisma.WorkspaceKnowledgeBaseUncheckedUpdateManyWithoutWorkspaceNestedInput;
2317
+ };
2318
+ export type WorkspaceUncheckedUpdateManyWithoutFolderInput = {
2319
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2320
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
2321
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2322
+ ownerId?: Prisma.StringFieldUpdateOperationsInput | string;
2323
+ icon?: Prisma.StringFieldUpdateOperationsInput | string;
2324
+ color?: Prisma.StringFieldUpdateOperationsInput | string;
2325
+ markerColor?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2326
+ fileBeingAnalyzed?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2327
+ analysisProgress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2328
+ needsAnalysis?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2330
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2331
+ };
2332
+ /**
2333
+ * Count Type WorkspaceCountOutputType
2334
+ */
2335
+ export type WorkspaceCountOutputType = {
2336
+ channels: number;
2337
+ copilotConversations: number;
2338
+ sharedWith: number;
2339
+ members: number;
2340
+ uploads: number;
2341
+ artifacts: number;
2342
+ worksheetPresets: number;
2343
+ invitations: number;
2344
+ notifications: number;
2345
+ activityLogs: number;
2346
+ knowledgeBases: number;
2347
+ };
2348
+ export type WorkspaceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2349
+ channels?: boolean | WorkspaceCountOutputTypeCountChannelsArgs;
2350
+ copilotConversations?: boolean | WorkspaceCountOutputTypeCountCopilotConversationsArgs;
2351
+ sharedWith?: boolean | WorkspaceCountOutputTypeCountSharedWithArgs;
2352
+ members?: boolean | WorkspaceCountOutputTypeCountMembersArgs;
2353
+ uploads?: boolean | WorkspaceCountOutputTypeCountUploadsArgs;
2354
+ artifacts?: boolean | WorkspaceCountOutputTypeCountArtifactsArgs;
2355
+ worksheetPresets?: boolean | WorkspaceCountOutputTypeCountWorksheetPresetsArgs;
2356
+ invitations?: boolean | WorkspaceCountOutputTypeCountInvitationsArgs;
2357
+ notifications?: boolean | WorkspaceCountOutputTypeCountNotificationsArgs;
2358
+ activityLogs?: boolean | WorkspaceCountOutputTypeCountActivityLogsArgs;
2359
+ knowledgeBases?: boolean | WorkspaceCountOutputTypeCountKnowledgeBasesArgs;
2360
+ };
2361
+ /**
2362
+ * WorkspaceCountOutputType without action
2363
+ */
2364
+ export type WorkspaceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2365
+ /**
2366
+ * Select specific fields to fetch from the WorkspaceCountOutputType
2367
+ */
2368
+ select?: Prisma.WorkspaceCountOutputTypeSelect<ExtArgs> | null;
2369
+ };
2370
+ /**
2371
+ * WorkspaceCountOutputType without action
2372
+ */
2373
+ export type WorkspaceCountOutputTypeCountChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2374
+ where?: Prisma.ChannelWhereInput;
2375
+ };
2376
+ /**
2377
+ * WorkspaceCountOutputType without action
2378
+ */
2379
+ export type WorkspaceCountOutputTypeCountCopilotConversationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2380
+ where?: Prisma.CopilotConversationWhereInput;
2381
+ };
2382
+ /**
2383
+ * WorkspaceCountOutputType without action
2384
+ */
2385
+ export type WorkspaceCountOutputTypeCountSharedWithArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2386
+ where?: Prisma.UserWhereInput;
2387
+ };
2388
+ /**
2389
+ * WorkspaceCountOutputType without action
2390
+ */
2391
+ export type WorkspaceCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2392
+ where?: Prisma.WorkspaceMemberWhereInput;
2393
+ };
2394
+ /**
2395
+ * WorkspaceCountOutputType without action
2396
+ */
2397
+ export type WorkspaceCountOutputTypeCountUploadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2398
+ where?: Prisma.FileAssetWhereInput;
2399
+ };
2400
+ /**
2401
+ * WorkspaceCountOutputType without action
2402
+ */
2403
+ export type WorkspaceCountOutputTypeCountArtifactsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2404
+ where?: Prisma.ArtifactWhereInput;
2405
+ };
2406
+ /**
2407
+ * WorkspaceCountOutputType without action
2408
+ */
2409
+ export type WorkspaceCountOutputTypeCountWorksheetPresetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2410
+ where?: Prisma.WorksheetPresetWhereInput;
2411
+ };
2412
+ /**
2413
+ * WorkspaceCountOutputType without action
2414
+ */
2415
+ export type WorkspaceCountOutputTypeCountInvitationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2416
+ where?: Prisma.WorkspaceInvitationWhereInput;
2417
+ };
2418
+ /**
2419
+ * WorkspaceCountOutputType without action
2420
+ */
2421
+ export type WorkspaceCountOutputTypeCountNotificationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2422
+ where?: Prisma.NotificationWhereInput;
2423
+ };
2424
+ /**
2425
+ * WorkspaceCountOutputType without action
2426
+ */
2427
+ export type WorkspaceCountOutputTypeCountActivityLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2428
+ where?: Prisma.ActivityLogWhereInput;
2429
+ };
2430
+ /**
2431
+ * WorkspaceCountOutputType without action
2432
+ */
2433
+ export type WorkspaceCountOutputTypeCountKnowledgeBasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2434
+ where?: Prisma.WorkspaceKnowledgeBaseWhereInput;
2435
+ };
2436
+ export type WorkspaceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2437
+ id?: boolean;
2438
+ title?: boolean;
2439
+ description?: boolean;
2440
+ ownerId?: boolean;
2441
+ icon?: boolean;
2442
+ color?: boolean;
2443
+ markerColor?: boolean;
2444
+ folderId?: boolean;
2445
+ fileBeingAnalyzed?: boolean;
2446
+ analysisProgress?: boolean;
2447
+ needsAnalysis?: boolean;
2448
+ createdAt?: boolean;
2449
+ updatedAt?: boolean;
2450
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
2451
+ folder?: boolean | Prisma.Workspace$folderArgs<ExtArgs>;
2452
+ channels?: boolean | Prisma.Workspace$channelsArgs<ExtArgs>;
2453
+ copilotConversations?: boolean | Prisma.Workspace$copilotConversationsArgs<ExtArgs>;
2454
+ sharedWith?: boolean | Prisma.Workspace$sharedWithArgs<ExtArgs>;
2455
+ members?: boolean | Prisma.Workspace$membersArgs<ExtArgs>;
2456
+ uploads?: boolean | Prisma.Workspace$uploadsArgs<ExtArgs>;
2457
+ artifacts?: boolean | Prisma.Workspace$artifactsArgs<ExtArgs>;
2458
+ worksheetPresets?: boolean | Prisma.Workspace$worksheetPresetsArgs<ExtArgs>;
2459
+ invitations?: boolean | Prisma.Workspace$invitationsArgs<ExtArgs>;
2460
+ notifications?: boolean | Prisma.Workspace$notificationsArgs<ExtArgs>;
2461
+ activityLogs?: boolean | Prisma.Workspace$activityLogsArgs<ExtArgs>;
2462
+ knowledgeBases?: boolean | Prisma.Workspace$knowledgeBasesArgs<ExtArgs>;
2463
+ _count?: boolean | Prisma.WorkspaceCountOutputTypeDefaultArgs<ExtArgs>;
2464
+ }, ExtArgs["result"]["workspace"]>;
2465
+ export type WorkspaceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2466
+ id?: boolean;
2467
+ title?: boolean;
2468
+ description?: boolean;
2469
+ ownerId?: boolean;
2470
+ icon?: boolean;
2471
+ color?: boolean;
2472
+ markerColor?: boolean;
2473
+ folderId?: boolean;
2474
+ fileBeingAnalyzed?: boolean;
2475
+ analysisProgress?: boolean;
2476
+ needsAnalysis?: boolean;
2477
+ createdAt?: boolean;
2478
+ updatedAt?: boolean;
2479
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
2480
+ folder?: boolean | Prisma.Workspace$folderArgs<ExtArgs>;
2481
+ }, ExtArgs["result"]["workspace"]>;
2482
+ export type WorkspaceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2483
+ id?: boolean;
2484
+ title?: boolean;
2485
+ description?: boolean;
2486
+ ownerId?: boolean;
2487
+ icon?: boolean;
2488
+ color?: boolean;
2489
+ markerColor?: boolean;
2490
+ folderId?: boolean;
2491
+ fileBeingAnalyzed?: boolean;
2492
+ analysisProgress?: boolean;
2493
+ needsAnalysis?: boolean;
2494
+ createdAt?: boolean;
2495
+ updatedAt?: boolean;
2496
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
2497
+ folder?: boolean | Prisma.Workspace$folderArgs<ExtArgs>;
2498
+ }, ExtArgs["result"]["workspace"]>;
2499
+ export type WorkspaceSelectScalar = {
2500
+ id?: boolean;
2501
+ title?: boolean;
2502
+ description?: boolean;
2503
+ ownerId?: boolean;
2504
+ icon?: boolean;
2505
+ color?: boolean;
2506
+ markerColor?: boolean;
2507
+ folderId?: boolean;
2508
+ fileBeingAnalyzed?: boolean;
2509
+ analysisProgress?: boolean;
2510
+ needsAnalysis?: boolean;
2511
+ createdAt?: boolean;
2512
+ updatedAt?: boolean;
2513
+ };
2514
+ export type WorkspaceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "ownerId" | "icon" | "color" | "markerColor" | "folderId" | "fileBeingAnalyzed" | "analysisProgress" | "needsAnalysis" | "createdAt" | "updatedAt", ExtArgs["result"]["workspace"]>;
2515
+ export type WorkspaceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2516
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
2517
+ folder?: boolean | Prisma.Workspace$folderArgs<ExtArgs>;
2518
+ channels?: boolean | Prisma.Workspace$channelsArgs<ExtArgs>;
2519
+ copilotConversations?: boolean | Prisma.Workspace$copilotConversationsArgs<ExtArgs>;
2520
+ sharedWith?: boolean | Prisma.Workspace$sharedWithArgs<ExtArgs>;
2521
+ members?: boolean | Prisma.Workspace$membersArgs<ExtArgs>;
2522
+ uploads?: boolean | Prisma.Workspace$uploadsArgs<ExtArgs>;
2523
+ artifacts?: boolean | Prisma.Workspace$artifactsArgs<ExtArgs>;
2524
+ worksheetPresets?: boolean | Prisma.Workspace$worksheetPresetsArgs<ExtArgs>;
2525
+ invitations?: boolean | Prisma.Workspace$invitationsArgs<ExtArgs>;
2526
+ notifications?: boolean | Prisma.Workspace$notificationsArgs<ExtArgs>;
2527
+ activityLogs?: boolean | Prisma.Workspace$activityLogsArgs<ExtArgs>;
2528
+ knowledgeBases?: boolean | Prisma.Workspace$knowledgeBasesArgs<ExtArgs>;
2529
+ _count?: boolean | Prisma.WorkspaceCountOutputTypeDefaultArgs<ExtArgs>;
2530
+ };
2531
+ export type WorkspaceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2532
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
2533
+ folder?: boolean | Prisma.Workspace$folderArgs<ExtArgs>;
2534
+ };
2535
+ export type WorkspaceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2536
+ owner?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
2537
+ folder?: boolean | Prisma.Workspace$folderArgs<ExtArgs>;
2538
+ };
2539
+ export type $WorkspacePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2540
+ name: "Workspace";
2541
+ objects: {
2542
+ owner: Prisma.$UserPayload<ExtArgs>;
2543
+ folder: Prisma.$FolderPayload<ExtArgs> | null;
2544
+ channels: Prisma.$ChannelPayload<ExtArgs>[];
2545
+ copilotConversations: Prisma.$CopilotConversationPayload<ExtArgs>[];
2546
+ sharedWith: Prisma.$UserPayload<ExtArgs>[];
2547
+ members: Prisma.$WorkspaceMemberPayload<ExtArgs>[];
2548
+ uploads: Prisma.$FileAssetPayload<ExtArgs>[];
2549
+ artifacts: Prisma.$ArtifactPayload<ExtArgs>[];
2550
+ worksheetPresets: Prisma.$WorksheetPresetPayload<ExtArgs>[];
2551
+ invitations: Prisma.$WorkspaceInvitationPayload<ExtArgs>[];
2552
+ notifications: Prisma.$NotificationPayload<ExtArgs>[];
2553
+ activityLogs: Prisma.$ActivityLogPayload<ExtArgs>[];
2554
+ knowledgeBases: Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>[];
2555
+ };
2556
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
2557
+ id: string;
2558
+ title: string;
2559
+ description: string | null;
2560
+ ownerId: string;
2561
+ icon: string;
2562
+ color: string;
2563
+ markerColor: string | null;
2564
+ folderId: string | null;
2565
+ fileBeingAnalyzed: boolean;
2566
+ analysisProgress: runtime.JsonValue | null;
2567
+ needsAnalysis: boolean;
2568
+ createdAt: Date;
2569
+ updatedAt: Date;
2570
+ }, ExtArgs["result"]["workspace"]>;
2571
+ composites: {};
2572
+ };
2573
+ export type WorkspaceGetPayload<S extends boolean | null | undefined | WorkspaceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkspacePayload, S>;
2574
+ export type WorkspaceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<WorkspaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
2575
+ select?: WorkspaceCountAggregateInputType | true;
2576
+ };
2577
+ export interface WorkspaceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
2578
+ [K: symbol]: {
2579
+ types: Prisma.TypeMap<ExtArgs>['model']['Workspace'];
2580
+ meta: {
2581
+ name: 'Workspace';
2582
+ };
2583
+ };
2584
+ /**
2585
+ * Find zero or one Workspace that matches the filter.
2586
+ * @param {WorkspaceFindUniqueArgs} args - Arguments to find a Workspace
2587
+ * @example
2588
+ * // Get one Workspace
2589
+ * const workspace = await prisma.workspace.findUnique({
2590
+ * where: {
2591
+ * // ... provide filter here
2592
+ * }
2593
+ * })
2594
+ */
2595
+ findUnique<T extends WorkspaceFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkspaceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2596
+ /**
2597
+ * Find one Workspace that matches the filter or throw an error with `error.code='P2025'`
2598
+ * if no matches were found.
2599
+ * @param {WorkspaceFindUniqueOrThrowArgs} args - Arguments to find a Workspace
2600
+ * @example
2601
+ * // Get one Workspace
2602
+ * const workspace = await prisma.workspace.findUniqueOrThrow({
2603
+ * where: {
2604
+ * // ... provide filter here
2605
+ * }
2606
+ * })
2607
+ */
2608
+ findUniqueOrThrow<T extends WorkspaceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkspaceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2609
+ /**
2610
+ * Find the first Workspace that matches the filter.
2611
+ * Note, that providing `undefined` is treated as the value not being there.
2612
+ * Read more here: https://pris.ly/d/null-undefined
2613
+ * @param {WorkspaceFindFirstArgs} args - Arguments to find a Workspace
2614
+ * @example
2615
+ * // Get one Workspace
2616
+ * const workspace = await prisma.workspace.findFirst({
2617
+ * where: {
2618
+ * // ... provide filter here
2619
+ * }
2620
+ * })
2621
+ */
2622
+ findFirst<T extends WorkspaceFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkspaceFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2623
+ /**
2624
+ * Find the first Workspace that matches the filter or
2625
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2626
+ * Note, that providing `undefined` is treated as the value not being there.
2627
+ * Read more here: https://pris.ly/d/null-undefined
2628
+ * @param {WorkspaceFindFirstOrThrowArgs} args - Arguments to find a Workspace
2629
+ * @example
2630
+ * // Get one Workspace
2631
+ * const workspace = await prisma.workspace.findFirstOrThrow({
2632
+ * where: {
2633
+ * // ... provide filter here
2634
+ * }
2635
+ * })
2636
+ */
2637
+ findFirstOrThrow<T extends WorkspaceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkspaceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2638
+ /**
2639
+ * Find zero or more Workspaces that matches the filter.
2640
+ * Note, that providing `undefined` is treated as the value not being there.
2641
+ * Read more here: https://pris.ly/d/null-undefined
2642
+ * @param {WorkspaceFindManyArgs} args - Arguments to filter and select certain fields only.
2643
+ * @example
2644
+ * // Get all Workspaces
2645
+ * const workspaces = await prisma.workspace.findMany()
2646
+ *
2647
+ * // Get first 10 Workspaces
2648
+ * const workspaces = await prisma.workspace.findMany({ take: 10 })
2649
+ *
2650
+ * // Only select the `id`
2651
+ * const workspaceWithIdOnly = await prisma.workspace.findMany({ select: { id: true } })
2652
+ *
2653
+ */
2654
+ findMany<T extends WorkspaceFindManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
2655
+ /**
2656
+ * Create a Workspace.
2657
+ * @param {WorkspaceCreateArgs} args - Arguments to create a Workspace.
2658
+ * @example
2659
+ * // Create one Workspace
2660
+ * const Workspace = await prisma.workspace.create({
2661
+ * data: {
2662
+ * // ... data to create a Workspace
2663
+ * }
2664
+ * })
2665
+ *
2666
+ */
2667
+ create<T extends WorkspaceCreateArgs>(args: Prisma.SelectSubset<T, WorkspaceCreateArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2668
+ /**
2669
+ * Create many Workspaces.
2670
+ * @param {WorkspaceCreateManyArgs} args - Arguments to create many Workspaces.
2671
+ * @example
2672
+ * // Create many Workspaces
2673
+ * const workspace = await prisma.workspace.createMany({
2674
+ * data: [
2675
+ * // ... provide data here
2676
+ * ]
2677
+ * })
2678
+ *
2679
+ */
2680
+ createMany<T extends WorkspaceCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2681
+ /**
2682
+ * Create many Workspaces and returns the data saved in the database.
2683
+ * @param {WorkspaceCreateManyAndReturnArgs} args - Arguments to create many Workspaces.
2684
+ * @example
2685
+ * // Create many Workspaces
2686
+ * const workspace = await prisma.workspace.createManyAndReturn({
2687
+ * data: [
2688
+ * // ... provide data here
2689
+ * ]
2690
+ * })
2691
+ *
2692
+ * // Create many Workspaces and only return the `id`
2693
+ * const workspaceWithIdOnly = await prisma.workspace.createManyAndReturn({
2694
+ * select: { id: true },
2695
+ * data: [
2696
+ * // ... provide data here
2697
+ * ]
2698
+ * })
2699
+ * Note, that providing `undefined` is treated as the value not being there.
2700
+ * Read more here: https://pris.ly/d/null-undefined
2701
+ *
2702
+ */
2703
+ createManyAndReturn<T extends WorkspaceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkspaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
2704
+ /**
2705
+ * Delete a Workspace.
2706
+ * @param {WorkspaceDeleteArgs} args - Arguments to delete one Workspace.
2707
+ * @example
2708
+ * // Delete one Workspace
2709
+ * const Workspace = await prisma.workspace.delete({
2710
+ * where: {
2711
+ * // ... filter to delete one Workspace
2712
+ * }
2713
+ * })
2714
+ *
2715
+ */
2716
+ delete<T extends WorkspaceDeleteArgs>(args: Prisma.SelectSubset<T, WorkspaceDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2717
+ /**
2718
+ * Update one Workspace.
2719
+ * @param {WorkspaceUpdateArgs} args - Arguments to update one Workspace.
2720
+ * @example
2721
+ * // Update one Workspace
2722
+ * const workspace = await prisma.workspace.update({
2723
+ * where: {
2724
+ * // ... provide filter here
2725
+ * },
2726
+ * data: {
2727
+ * // ... provide data here
2728
+ * }
2729
+ * })
2730
+ *
2731
+ */
2732
+ update<T extends WorkspaceUpdateArgs>(args: Prisma.SelectSubset<T, WorkspaceUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2733
+ /**
2734
+ * Delete zero or more Workspaces.
2735
+ * @param {WorkspaceDeleteManyArgs} args - Arguments to filter Workspaces to delete.
2736
+ * @example
2737
+ * // Delete a few Workspaces
2738
+ * const { count } = await prisma.workspace.deleteMany({
2739
+ * where: {
2740
+ * // ... provide filter here
2741
+ * }
2742
+ * })
2743
+ *
2744
+ */
2745
+ deleteMany<T extends WorkspaceDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2746
+ /**
2747
+ * Update zero or more Workspaces.
2748
+ * Note, that providing `undefined` is treated as the value not being there.
2749
+ * Read more here: https://pris.ly/d/null-undefined
2750
+ * @param {WorkspaceUpdateManyArgs} args - Arguments to update one or more rows.
2751
+ * @example
2752
+ * // Update many Workspaces
2753
+ * const workspace = await prisma.workspace.updateMany({
2754
+ * where: {
2755
+ * // ... provide filter here
2756
+ * },
2757
+ * data: {
2758
+ * // ... provide data here
2759
+ * }
2760
+ * })
2761
+ *
2762
+ */
2763
+ updateMany<T extends WorkspaceUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkspaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2764
+ /**
2765
+ * Update zero or more Workspaces and returns the data updated in the database.
2766
+ * @param {WorkspaceUpdateManyAndReturnArgs} args - Arguments to update many Workspaces.
2767
+ * @example
2768
+ * // Update many Workspaces
2769
+ * const workspace = await prisma.workspace.updateManyAndReturn({
2770
+ * where: {
2771
+ * // ... provide filter here
2772
+ * },
2773
+ * data: [
2774
+ * // ... provide data here
2775
+ * ]
2776
+ * })
2777
+ *
2778
+ * // Update zero or more Workspaces and only return the `id`
2779
+ * const workspaceWithIdOnly = await prisma.workspace.updateManyAndReturn({
2780
+ * select: { id: true },
2781
+ * where: {
2782
+ * // ... provide filter here
2783
+ * },
2784
+ * data: [
2785
+ * // ... provide data here
2786
+ * ]
2787
+ * })
2788
+ * Note, that providing `undefined` is treated as the value not being there.
2789
+ * Read more here: https://pris.ly/d/null-undefined
2790
+ *
2791
+ */
2792
+ updateManyAndReturn<T extends WorkspaceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkspaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2793
+ /**
2794
+ * Create or update one Workspace.
2795
+ * @param {WorkspaceUpsertArgs} args - Arguments to update or create a Workspace.
2796
+ * @example
2797
+ * // Update or create a Workspace
2798
+ * const workspace = await prisma.workspace.upsert({
2799
+ * create: {
2800
+ * // ... data to create a Workspace
2801
+ * },
2802
+ * update: {
2803
+ * // ... in case it already exists, update
2804
+ * },
2805
+ * where: {
2806
+ * // ... the filter for the Workspace we want to update
2807
+ * }
2808
+ * })
2809
+ */
2810
+ upsert<T extends WorkspaceUpsertArgs>(args: Prisma.SelectSubset<T, WorkspaceUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2811
+ /**
2812
+ * Count the number of Workspaces.
2813
+ * Note, that providing `undefined` is treated as the value not being there.
2814
+ * Read more here: https://pris.ly/d/null-undefined
2815
+ * @param {WorkspaceCountArgs} args - Arguments to filter Workspaces to count.
2816
+ * @example
2817
+ * // Count the number of Workspaces
2818
+ * const count = await prisma.workspace.count({
2819
+ * where: {
2820
+ * // ... the filter for the Workspaces we want to count
2821
+ * }
2822
+ * })
2823
+ **/
2824
+ count<T extends WorkspaceCountArgs>(args?: Prisma.Subset<T, WorkspaceCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], WorkspaceCountAggregateOutputType> : number>;
2825
+ /**
2826
+ * Allows you to perform aggregations operations on a Workspace.
2827
+ * Note, that providing `undefined` is treated as the value not being there.
2828
+ * Read more here: https://pris.ly/d/null-undefined
2829
+ * @param {WorkspaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2830
+ * @example
2831
+ * // Ordered by age ascending
2832
+ * // Where email contains prisma.io
2833
+ * // Limited to the 10 users
2834
+ * const aggregations = await prisma.user.aggregate({
2835
+ * _avg: {
2836
+ * age: true,
2837
+ * },
2838
+ * where: {
2839
+ * email: {
2840
+ * contains: "prisma.io",
2841
+ * },
2842
+ * },
2843
+ * orderBy: {
2844
+ * age: "asc",
2845
+ * },
2846
+ * take: 10,
2847
+ * })
2848
+ **/
2849
+ aggregate<T extends WorkspaceAggregateArgs>(args: Prisma.Subset<T, WorkspaceAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceAggregateType<T>>;
2850
+ /**
2851
+ * Group by Workspace.
2852
+ * Note, that providing `undefined` is treated as the value not being there.
2853
+ * Read more here: https://pris.ly/d/null-undefined
2854
+ * @param {WorkspaceGroupByArgs} args - Group by arguments.
2855
+ * @example
2856
+ * // Group by city, order by createdAt, get count
2857
+ * const result = await prisma.user.groupBy({
2858
+ * by: ['city', 'createdAt'],
2859
+ * orderBy: {
2860
+ * createdAt: true
2861
+ * },
2862
+ * _count: {
2863
+ * _all: true
2864
+ * },
2865
+ * })
2866
+ *
2867
+ **/
2868
+ groupBy<T extends WorkspaceGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2869
+ orderBy: WorkspaceGroupByArgs['orderBy'];
2870
+ } : {
2871
+ orderBy?: WorkspaceGroupByArgs['orderBy'];
2872
+ }, 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 ? {
2873
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2874
+ Error,
2875
+ 'Field ',
2876
+ P,
2877
+ ` in "having" needs to be provided in "by"`
2878
+ ];
2879
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2880
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2881
+ }[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 ? {} : {
2882
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2883
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2884
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2885
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, WorkspaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2886
+ /**
2887
+ * Fields of the Workspace model
2888
+ */
2889
+ readonly fields: WorkspaceFieldRefs;
2890
+ }
2891
+ /**
2892
+ * The delegate class that acts as a "Promise-like" for Workspace.
2893
+ * Why is this prefixed with `Prisma__`?
2894
+ * Because we want to prevent naming conflicts as mentioned in
2895
+ * https://github.com/prisma/prisma-client-js/issues/707
2896
+ */
2897
+ export interface Prisma__WorkspaceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2898
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2899
+ owner<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
2900
+ folder<T extends Prisma.Workspace$folderArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$folderArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2901
+ channels<T extends Prisma.Workspace$channelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$channelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChannelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2902
+ copilotConversations<T extends Prisma.Workspace$copilotConversationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$copilotConversationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CopilotConversationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2903
+ sharedWith<T extends Prisma.Workspace$sharedWithArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$sharedWithArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2904
+ members<T extends Prisma.Workspace$membersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$membersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2905
+ uploads<T extends Prisma.Workspace$uploadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$uploadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileAssetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2906
+ artifacts<T extends Prisma.Workspace$artifactsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$artifactsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2907
+ worksheetPresets<T extends Prisma.Workspace$worksheetPresetsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$worksheetPresetsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorksheetPresetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2908
+ invitations<T extends Prisma.Workspace$invitationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$invitationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceInvitationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2909
+ notifications<T extends Prisma.Workspace$notificationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$notificationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2910
+ activityLogs<T extends Prisma.Workspace$activityLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$activityLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ActivityLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2911
+ knowledgeBases<T extends Prisma.Workspace$knowledgeBasesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Workspace$knowledgeBasesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2912
+ /**
2913
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2914
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2915
+ * @param onrejected The callback to execute when the Promise is rejected.
2916
+ * @returns A Promise for the completion of which ever callback is executed.
2917
+ */
2918
+ 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>;
2919
+ /**
2920
+ * Attaches a callback for only the rejection of the Promise.
2921
+ * @param onrejected The callback to execute when the Promise is rejected.
2922
+ * @returns A Promise for the completion of the callback.
2923
+ */
2924
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2925
+ /**
2926
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2927
+ * resolved value cannot be modified from the callback.
2928
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2929
+ * @returns A Promise for the completion of the callback.
2930
+ */
2931
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2932
+ }
2933
+ /**
2934
+ * Fields of the Workspace model
2935
+ */
2936
+ export interface WorkspaceFieldRefs {
2937
+ readonly id: Prisma.FieldRef<"Workspace", 'String'>;
2938
+ readonly title: Prisma.FieldRef<"Workspace", 'String'>;
2939
+ readonly description: Prisma.FieldRef<"Workspace", 'String'>;
2940
+ readonly ownerId: Prisma.FieldRef<"Workspace", 'String'>;
2941
+ readonly icon: Prisma.FieldRef<"Workspace", 'String'>;
2942
+ readonly color: Prisma.FieldRef<"Workspace", 'String'>;
2943
+ readonly markerColor: Prisma.FieldRef<"Workspace", 'String'>;
2944
+ readonly folderId: Prisma.FieldRef<"Workspace", 'String'>;
2945
+ readonly fileBeingAnalyzed: Prisma.FieldRef<"Workspace", 'Boolean'>;
2946
+ readonly analysisProgress: Prisma.FieldRef<"Workspace", 'Json'>;
2947
+ readonly needsAnalysis: Prisma.FieldRef<"Workspace", 'Boolean'>;
2948
+ readonly createdAt: Prisma.FieldRef<"Workspace", 'DateTime'>;
2949
+ readonly updatedAt: Prisma.FieldRef<"Workspace", 'DateTime'>;
2950
+ }
2951
+ /**
2952
+ * Workspace findUnique
2953
+ */
2954
+ export type WorkspaceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2955
+ /**
2956
+ * Select specific fields to fetch from the Workspace
2957
+ */
2958
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
2959
+ /**
2960
+ * Omit specific fields from the Workspace
2961
+ */
2962
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
2963
+ /**
2964
+ * Choose, which related nodes to fetch as well
2965
+ */
2966
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
2967
+ /**
2968
+ * Filter, which Workspace to fetch.
2969
+ */
2970
+ where: Prisma.WorkspaceWhereUniqueInput;
2971
+ };
2972
+ /**
2973
+ * Workspace findUniqueOrThrow
2974
+ */
2975
+ export type WorkspaceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2976
+ /**
2977
+ * Select specific fields to fetch from the Workspace
2978
+ */
2979
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
2980
+ /**
2981
+ * Omit specific fields from the Workspace
2982
+ */
2983
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
2984
+ /**
2985
+ * Choose, which related nodes to fetch as well
2986
+ */
2987
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
2988
+ /**
2989
+ * Filter, which Workspace to fetch.
2990
+ */
2991
+ where: Prisma.WorkspaceWhereUniqueInput;
2992
+ };
2993
+ /**
2994
+ * Workspace findFirst
2995
+ */
2996
+ export type WorkspaceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2997
+ /**
2998
+ * Select specific fields to fetch from the Workspace
2999
+ */
3000
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3001
+ /**
3002
+ * Omit specific fields from the Workspace
3003
+ */
3004
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3005
+ /**
3006
+ * Choose, which related nodes to fetch as well
3007
+ */
3008
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3009
+ /**
3010
+ * Filter, which Workspace to fetch.
3011
+ */
3012
+ where?: Prisma.WorkspaceWhereInput;
3013
+ /**
3014
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3015
+ *
3016
+ * Determine the order of Workspaces to fetch.
3017
+ */
3018
+ orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[];
3019
+ /**
3020
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3021
+ *
3022
+ * Sets the position for searching for Workspaces.
3023
+ */
3024
+ cursor?: Prisma.WorkspaceWhereUniqueInput;
3025
+ /**
3026
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3027
+ *
3028
+ * Take `±n` Workspaces from the position of the cursor.
3029
+ */
3030
+ take?: number;
3031
+ /**
3032
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3033
+ *
3034
+ * Skip the first `n` Workspaces.
3035
+ */
3036
+ skip?: number;
3037
+ /**
3038
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3039
+ *
3040
+ * Filter by unique combinations of Workspaces.
3041
+ */
3042
+ distinct?: Prisma.WorkspaceScalarFieldEnum | Prisma.WorkspaceScalarFieldEnum[];
3043
+ };
3044
+ /**
3045
+ * Workspace findFirstOrThrow
3046
+ */
3047
+ export type WorkspaceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3048
+ /**
3049
+ * Select specific fields to fetch from the Workspace
3050
+ */
3051
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3052
+ /**
3053
+ * Omit specific fields from the Workspace
3054
+ */
3055
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3056
+ /**
3057
+ * Choose, which related nodes to fetch as well
3058
+ */
3059
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3060
+ /**
3061
+ * Filter, which Workspace to fetch.
3062
+ */
3063
+ where?: Prisma.WorkspaceWhereInput;
3064
+ /**
3065
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3066
+ *
3067
+ * Determine the order of Workspaces to fetch.
3068
+ */
3069
+ orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[];
3070
+ /**
3071
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3072
+ *
3073
+ * Sets the position for searching for Workspaces.
3074
+ */
3075
+ cursor?: Prisma.WorkspaceWhereUniqueInput;
3076
+ /**
3077
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3078
+ *
3079
+ * Take `±n` Workspaces from the position of the cursor.
3080
+ */
3081
+ take?: number;
3082
+ /**
3083
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3084
+ *
3085
+ * Skip the first `n` Workspaces.
3086
+ */
3087
+ skip?: number;
3088
+ /**
3089
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3090
+ *
3091
+ * Filter by unique combinations of Workspaces.
3092
+ */
3093
+ distinct?: Prisma.WorkspaceScalarFieldEnum | Prisma.WorkspaceScalarFieldEnum[];
3094
+ };
3095
+ /**
3096
+ * Workspace findMany
3097
+ */
3098
+ export type WorkspaceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3099
+ /**
3100
+ * Select specific fields to fetch from the Workspace
3101
+ */
3102
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3103
+ /**
3104
+ * Omit specific fields from the Workspace
3105
+ */
3106
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3107
+ /**
3108
+ * Choose, which related nodes to fetch as well
3109
+ */
3110
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3111
+ /**
3112
+ * Filter, which Workspaces to fetch.
3113
+ */
3114
+ where?: Prisma.WorkspaceWhereInput;
3115
+ /**
3116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3117
+ *
3118
+ * Determine the order of Workspaces to fetch.
3119
+ */
3120
+ orderBy?: Prisma.WorkspaceOrderByWithRelationInput | Prisma.WorkspaceOrderByWithRelationInput[];
3121
+ /**
3122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3123
+ *
3124
+ * Sets the position for listing Workspaces.
3125
+ */
3126
+ cursor?: Prisma.WorkspaceWhereUniqueInput;
3127
+ /**
3128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3129
+ *
3130
+ * Take `±n` Workspaces from the position of the cursor.
3131
+ */
3132
+ take?: number;
3133
+ /**
3134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3135
+ *
3136
+ * Skip the first `n` Workspaces.
3137
+ */
3138
+ skip?: number;
3139
+ /**
3140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3141
+ *
3142
+ * Filter by unique combinations of Workspaces.
3143
+ */
3144
+ distinct?: Prisma.WorkspaceScalarFieldEnum | Prisma.WorkspaceScalarFieldEnum[];
3145
+ };
3146
+ /**
3147
+ * Workspace create
3148
+ */
3149
+ export type WorkspaceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3150
+ /**
3151
+ * Select specific fields to fetch from the Workspace
3152
+ */
3153
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3154
+ /**
3155
+ * Omit specific fields from the Workspace
3156
+ */
3157
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3158
+ /**
3159
+ * Choose, which related nodes to fetch as well
3160
+ */
3161
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3162
+ /**
3163
+ * The data needed to create a Workspace.
3164
+ */
3165
+ data: Prisma.XOR<Prisma.WorkspaceCreateInput, Prisma.WorkspaceUncheckedCreateInput>;
3166
+ };
3167
+ /**
3168
+ * Workspace createMany
3169
+ */
3170
+ export type WorkspaceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3171
+ /**
3172
+ * The data used to create many Workspaces.
3173
+ */
3174
+ data: Prisma.WorkspaceCreateManyInput | Prisma.WorkspaceCreateManyInput[];
3175
+ skipDuplicates?: boolean;
3176
+ };
3177
+ /**
3178
+ * Workspace createManyAndReturn
3179
+ */
3180
+ export type WorkspaceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3181
+ /**
3182
+ * Select specific fields to fetch from the Workspace
3183
+ */
3184
+ select?: Prisma.WorkspaceSelectCreateManyAndReturn<ExtArgs> | null;
3185
+ /**
3186
+ * Omit specific fields from the Workspace
3187
+ */
3188
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3189
+ /**
3190
+ * The data used to create many Workspaces.
3191
+ */
3192
+ data: Prisma.WorkspaceCreateManyInput | Prisma.WorkspaceCreateManyInput[];
3193
+ skipDuplicates?: boolean;
3194
+ /**
3195
+ * Choose, which related nodes to fetch as well
3196
+ */
3197
+ include?: Prisma.WorkspaceIncludeCreateManyAndReturn<ExtArgs> | null;
3198
+ };
3199
+ /**
3200
+ * Workspace update
3201
+ */
3202
+ export type WorkspaceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3203
+ /**
3204
+ * Select specific fields to fetch from the Workspace
3205
+ */
3206
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3207
+ /**
3208
+ * Omit specific fields from the Workspace
3209
+ */
3210
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3211
+ /**
3212
+ * Choose, which related nodes to fetch as well
3213
+ */
3214
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3215
+ /**
3216
+ * The data needed to update a Workspace.
3217
+ */
3218
+ data: Prisma.XOR<Prisma.WorkspaceUpdateInput, Prisma.WorkspaceUncheckedUpdateInput>;
3219
+ /**
3220
+ * Choose, which Workspace to update.
3221
+ */
3222
+ where: Prisma.WorkspaceWhereUniqueInput;
3223
+ };
3224
+ /**
3225
+ * Workspace updateMany
3226
+ */
3227
+ export type WorkspaceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3228
+ /**
3229
+ * The data used to update Workspaces.
3230
+ */
3231
+ data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyInput>;
3232
+ /**
3233
+ * Filter which Workspaces to update
3234
+ */
3235
+ where?: Prisma.WorkspaceWhereInput;
3236
+ /**
3237
+ * Limit how many Workspaces to update.
3238
+ */
3239
+ limit?: number;
3240
+ };
3241
+ /**
3242
+ * Workspace updateManyAndReturn
3243
+ */
3244
+ export type WorkspaceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3245
+ /**
3246
+ * Select specific fields to fetch from the Workspace
3247
+ */
3248
+ select?: Prisma.WorkspaceSelectUpdateManyAndReturn<ExtArgs> | null;
3249
+ /**
3250
+ * Omit specific fields from the Workspace
3251
+ */
3252
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3253
+ /**
3254
+ * The data used to update Workspaces.
3255
+ */
3256
+ data: Prisma.XOR<Prisma.WorkspaceUpdateManyMutationInput, Prisma.WorkspaceUncheckedUpdateManyInput>;
3257
+ /**
3258
+ * Filter which Workspaces to update
3259
+ */
3260
+ where?: Prisma.WorkspaceWhereInput;
3261
+ /**
3262
+ * Limit how many Workspaces to update.
3263
+ */
3264
+ limit?: number;
3265
+ /**
3266
+ * Choose, which related nodes to fetch as well
3267
+ */
3268
+ include?: Prisma.WorkspaceIncludeUpdateManyAndReturn<ExtArgs> | null;
3269
+ };
3270
+ /**
3271
+ * Workspace upsert
3272
+ */
3273
+ export type WorkspaceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3274
+ /**
3275
+ * Select specific fields to fetch from the Workspace
3276
+ */
3277
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3278
+ /**
3279
+ * Omit specific fields from the Workspace
3280
+ */
3281
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3282
+ /**
3283
+ * Choose, which related nodes to fetch as well
3284
+ */
3285
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3286
+ /**
3287
+ * The filter to search for the Workspace to update in case it exists.
3288
+ */
3289
+ where: Prisma.WorkspaceWhereUniqueInput;
3290
+ /**
3291
+ * In case the Workspace found by the `where` argument doesn't exist, create a new Workspace with this data.
3292
+ */
3293
+ create: Prisma.XOR<Prisma.WorkspaceCreateInput, Prisma.WorkspaceUncheckedCreateInput>;
3294
+ /**
3295
+ * In case the Workspace was found with the provided `where` argument, update it with this data.
3296
+ */
3297
+ update: Prisma.XOR<Prisma.WorkspaceUpdateInput, Prisma.WorkspaceUncheckedUpdateInput>;
3298
+ };
3299
+ /**
3300
+ * Workspace delete
3301
+ */
3302
+ export type WorkspaceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3303
+ /**
3304
+ * Select specific fields to fetch from the Workspace
3305
+ */
3306
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3307
+ /**
3308
+ * Omit specific fields from the Workspace
3309
+ */
3310
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3311
+ /**
3312
+ * Choose, which related nodes to fetch as well
3313
+ */
3314
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3315
+ /**
3316
+ * Filter which Workspace to delete.
3317
+ */
3318
+ where: Prisma.WorkspaceWhereUniqueInput;
3319
+ };
3320
+ /**
3321
+ * Workspace deleteMany
3322
+ */
3323
+ export type WorkspaceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3324
+ /**
3325
+ * Filter which Workspaces to delete
3326
+ */
3327
+ where?: Prisma.WorkspaceWhereInput;
3328
+ /**
3329
+ * Limit how many Workspaces to delete.
3330
+ */
3331
+ limit?: number;
3332
+ };
3333
+ /**
3334
+ * Workspace.folder
3335
+ */
3336
+ export type Workspace$folderArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3337
+ /**
3338
+ * Select specific fields to fetch from the Folder
3339
+ */
3340
+ select?: Prisma.FolderSelect<ExtArgs> | null;
3341
+ /**
3342
+ * Omit specific fields from the Folder
3343
+ */
3344
+ omit?: Prisma.FolderOmit<ExtArgs> | null;
3345
+ /**
3346
+ * Choose, which related nodes to fetch as well
3347
+ */
3348
+ include?: Prisma.FolderInclude<ExtArgs> | null;
3349
+ where?: Prisma.FolderWhereInput;
3350
+ };
3351
+ /**
3352
+ * Workspace.channels
3353
+ */
3354
+ export type Workspace$channelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3355
+ /**
3356
+ * Select specific fields to fetch from the Channel
3357
+ */
3358
+ select?: Prisma.ChannelSelect<ExtArgs> | null;
3359
+ /**
3360
+ * Omit specific fields from the Channel
3361
+ */
3362
+ omit?: Prisma.ChannelOmit<ExtArgs> | null;
3363
+ /**
3364
+ * Choose, which related nodes to fetch as well
3365
+ */
3366
+ include?: Prisma.ChannelInclude<ExtArgs> | null;
3367
+ where?: Prisma.ChannelWhereInput;
3368
+ orderBy?: Prisma.ChannelOrderByWithRelationInput | Prisma.ChannelOrderByWithRelationInput[];
3369
+ cursor?: Prisma.ChannelWhereUniqueInput;
3370
+ take?: number;
3371
+ skip?: number;
3372
+ distinct?: Prisma.ChannelScalarFieldEnum | Prisma.ChannelScalarFieldEnum[];
3373
+ };
3374
+ /**
3375
+ * Workspace.copilotConversations
3376
+ */
3377
+ export type Workspace$copilotConversationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3378
+ /**
3379
+ * Select specific fields to fetch from the CopilotConversation
3380
+ */
3381
+ select?: Prisma.CopilotConversationSelect<ExtArgs> | null;
3382
+ /**
3383
+ * Omit specific fields from the CopilotConversation
3384
+ */
3385
+ omit?: Prisma.CopilotConversationOmit<ExtArgs> | null;
3386
+ /**
3387
+ * Choose, which related nodes to fetch as well
3388
+ */
3389
+ include?: Prisma.CopilotConversationInclude<ExtArgs> | null;
3390
+ where?: Prisma.CopilotConversationWhereInput;
3391
+ orderBy?: Prisma.CopilotConversationOrderByWithRelationInput | Prisma.CopilotConversationOrderByWithRelationInput[];
3392
+ cursor?: Prisma.CopilotConversationWhereUniqueInput;
3393
+ take?: number;
3394
+ skip?: number;
3395
+ distinct?: Prisma.CopilotConversationScalarFieldEnum | Prisma.CopilotConversationScalarFieldEnum[];
3396
+ };
3397
+ /**
3398
+ * Workspace.sharedWith
3399
+ */
3400
+ export type Workspace$sharedWithArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3401
+ /**
3402
+ * Select specific fields to fetch from the User
3403
+ */
3404
+ select?: Prisma.UserSelect<ExtArgs> | null;
3405
+ /**
3406
+ * Omit specific fields from the User
3407
+ */
3408
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3409
+ /**
3410
+ * Choose, which related nodes to fetch as well
3411
+ */
3412
+ include?: Prisma.UserInclude<ExtArgs> | null;
3413
+ where?: Prisma.UserWhereInput;
3414
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
3415
+ cursor?: Prisma.UserWhereUniqueInput;
3416
+ take?: number;
3417
+ skip?: number;
3418
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
3419
+ };
3420
+ /**
3421
+ * Workspace.members
3422
+ */
3423
+ export type Workspace$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3424
+ /**
3425
+ * Select specific fields to fetch from the WorkspaceMember
3426
+ */
3427
+ select?: Prisma.WorkspaceMemberSelect<ExtArgs> | null;
3428
+ /**
3429
+ * Omit specific fields from the WorkspaceMember
3430
+ */
3431
+ omit?: Prisma.WorkspaceMemberOmit<ExtArgs> | null;
3432
+ /**
3433
+ * Choose, which related nodes to fetch as well
3434
+ */
3435
+ include?: Prisma.WorkspaceMemberInclude<ExtArgs> | null;
3436
+ where?: Prisma.WorkspaceMemberWhereInput;
3437
+ orderBy?: Prisma.WorkspaceMemberOrderByWithRelationInput | Prisma.WorkspaceMemberOrderByWithRelationInput[];
3438
+ cursor?: Prisma.WorkspaceMemberWhereUniqueInput;
3439
+ take?: number;
3440
+ skip?: number;
3441
+ distinct?: Prisma.WorkspaceMemberScalarFieldEnum | Prisma.WorkspaceMemberScalarFieldEnum[];
3442
+ };
3443
+ /**
3444
+ * Workspace.uploads
3445
+ */
3446
+ export type Workspace$uploadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3447
+ /**
3448
+ * Select specific fields to fetch from the FileAsset
3449
+ */
3450
+ select?: Prisma.FileAssetSelect<ExtArgs> | null;
3451
+ /**
3452
+ * Omit specific fields from the FileAsset
3453
+ */
3454
+ omit?: Prisma.FileAssetOmit<ExtArgs> | null;
3455
+ /**
3456
+ * Choose, which related nodes to fetch as well
3457
+ */
3458
+ include?: Prisma.FileAssetInclude<ExtArgs> | null;
3459
+ where?: Prisma.FileAssetWhereInput;
3460
+ orderBy?: Prisma.FileAssetOrderByWithRelationInput | Prisma.FileAssetOrderByWithRelationInput[];
3461
+ cursor?: Prisma.FileAssetWhereUniqueInput;
3462
+ take?: number;
3463
+ skip?: number;
3464
+ distinct?: Prisma.FileAssetScalarFieldEnum | Prisma.FileAssetScalarFieldEnum[];
3465
+ };
3466
+ /**
3467
+ * Workspace.artifacts
3468
+ */
3469
+ export type Workspace$artifactsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3470
+ /**
3471
+ * Select specific fields to fetch from the Artifact
3472
+ */
3473
+ select?: Prisma.ArtifactSelect<ExtArgs> | null;
3474
+ /**
3475
+ * Omit specific fields from the Artifact
3476
+ */
3477
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null;
3478
+ /**
3479
+ * Choose, which related nodes to fetch as well
3480
+ */
3481
+ include?: Prisma.ArtifactInclude<ExtArgs> | null;
3482
+ where?: Prisma.ArtifactWhereInput;
3483
+ orderBy?: Prisma.ArtifactOrderByWithRelationInput | Prisma.ArtifactOrderByWithRelationInput[];
3484
+ cursor?: Prisma.ArtifactWhereUniqueInput;
3485
+ take?: number;
3486
+ skip?: number;
3487
+ distinct?: Prisma.ArtifactScalarFieldEnum | Prisma.ArtifactScalarFieldEnum[];
3488
+ };
3489
+ /**
3490
+ * Workspace.worksheetPresets
3491
+ */
3492
+ export type Workspace$worksheetPresetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3493
+ /**
3494
+ * Select specific fields to fetch from the WorksheetPreset
3495
+ */
3496
+ select?: Prisma.WorksheetPresetSelect<ExtArgs> | null;
3497
+ /**
3498
+ * Omit specific fields from the WorksheetPreset
3499
+ */
3500
+ omit?: Prisma.WorksheetPresetOmit<ExtArgs> | null;
3501
+ /**
3502
+ * Choose, which related nodes to fetch as well
3503
+ */
3504
+ include?: Prisma.WorksheetPresetInclude<ExtArgs> | null;
3505
+ where?: Prisma.WorksheetPresetWhereInput;
3506
+ orderBy?: Prisma.WorksheetPresetOrderByWithRelationInput | Prisma.WorksheetPresetOrderByWithRelationInput[];
3507
+ cursor?: Prisma.WorksheetPresetWhereUniqueInput;
3508
+ take?: number;
3509
+ skip?: number;
3510
+ distinct?: Prisma.WorksheetPresetScalarFieldEnum | Prisma.WorksheetPresetScalarFieldEnum[];
3511
+ };
3512
+ /**
3513
+ * Workspace.invitations
3514
+ */
3515
+ export type Workspace$invitationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3516
+ /**
3517
+ * Select specific fields to fetch from the WorkspaceInvitation
3518
+ */
3519
+ select?: Prisma.WorkspaceInvitationSelect<ExtArgs> | null;
3520
+ /**
3521
+ * Omit specific fields from the WorkspaceInvitation
3522
+ */
3523
+ omit?: Prisma.WorkspaceInvitationOmit<ExtArgs> | null;
3524
+ /**
3525
+ * Choose, which related nodes to fetch as well
3526
+ */
3527
+ include?: Prisma.WorkspaceInvitationInclude<ExtArgs> | null;
3528
+ where?: Prisma.WorkspaceInvitationWhereInput;
3529
+ orderBy?: Prisma.WorkspaceInvitationOrderByWithRelationInput | Prisma.WorkspaceInvitationOrderByWithRelationInput[];
3530
+ cursor?: Prisma.WorkspaceInvitationWhereUniqueInput;
3531
+ take?: number;
3532
+ skip?: number;
3533
+ distinct?: Prisma.WorkspaceInvitationScalarFieldEnum | Prisma.WorkspaceInvitationScalarFieldEnum[];
3534
+ };
3535
+ /**
3536
+ * Workspace.notifications
3537
+ */
3538
+ export type Workspace$notificationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3539
+ /**
3540
+ * Select specific fields to fetch from the Notification
3541
+ */
3542
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
3543
+ /**
3544
+ * Omit specific fields from the Notification
3545
+ */
3546
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
3547
+ /**
3548
+ * Choose, which related nodes to fetch as well
3549
+ */
3550
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
3551
+ where?: Prisma.NotificationWhereInput;
3552
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
3553
+ cursor?: Prisma.NotificationWhereUniqueInput;
3554
+ take?: number;
3555
+ skip?: number;
3556
+ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[];
3557
+ };
3558
+ /**
3559
+ * Workspace.activityLogs
3560
+ */
3561
+ export type Workspace$activityLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3562
+ /**
3563
+ * Select specific fields to fetch from the ActivityLog
3564
+ */
3565
+ select?: Prisma.ActivityLogSelect<ExtArgs> | null;
3566
+ /**
3567
+ * Omit specific fields from the ActivityLog
3568
+ */
3569
+ omit?: Prisma.ActivityLogOmit<ExtArgs> | null;
3570
+ /**
3571
+ * Choose, which related nodes to fetch as well
3572
+ */
3573
+ include?: Prisma.ActivityLogInclude<ExtArgs> | null;
3574
+ where?: Prisma.ActivityLogWhereInput;
3575
+ orderBy?: Prisma.ActivityLogOrderByWithRelationInput | Prisma.ActivityLogOrderByWithRelationInput[];
3576
+ cursor?: Prisma.ActivityLogWhereUniqueInput;
3577
+ take?: number;
3578
+ skip?: number;
3579
+ distinct?: Prisma.ActivityLogScalarFieldEnum | Prisma.ActivityLogScalarFieldEnum[];
3580
+ };
3581
+ /**
3582
+ * Workspace.knowledgeBases
3583
+ */
3584
+ export type Workspace$knowledgeBasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3585
+ /**
3586
+ * Select specific fields to fetch from the WorkspaceKnowledgeBase
3587
+ */
3588
+ select?: Prisma.WorkspaceKnowledgeBaseSelect<ExtArgs> | null;
3589
+ /**
3590
+ * Omit specific fields from the WorkspaceKnowledgeBase
3591
+ */
3592
+ omit?: Prisma.WorkspaceKnowledgeBaseOmit<ExtArgs> | null;
3593
+ /**
3594
+ * Choose, which related nodes to fetch as well
3595
+ */
3596
+ include?: Prisma.WorkspaceKnowledgeBaseInclude<ExtArgs> | null;
3597
+ where?: Prisma.WorkspaceKnowledgeBaseWhereInput;
3598
+ orderBy?: Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput | Prisma.WorkspaceKnowledgeBaseOrderByWithRelationInput[];
3599
+ cursor?: Prisma.WorkspaceKnowledgeBaseWhereUniqueInput;
3600
+ take?: number;
3601
+ skip?: number;
3602
+ distinct?: Prisma.WorkspaceKnowledgeBaseScalarFieldEnum | Prisma.WorkspaceKnowledgeBaseScalarFieldEnum[];
3603
+ };
3604
+ /**
3605
+ * Workspace without action
3606
+ */
3607
+ export type WorkspaceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3608
+ /**
3609
+ * Select specific fields to fetch from the Workspace
3610
+ */
3611
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
3612
+ /**
3613
+ * Omit specific fields from the Workspace
3614
+ */
3615
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
3616
+ /**
3617
+ * Choose, which related nodes to fetch as well
3618
+ */
3619
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
3620
+ };