@goscribe/server 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/generated/prisma/client.d.ts +224 -0
  2. package/dist/generated/prisma/client.js +34 -0
  3. package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
  4. package/dist/generated/prisma/commonInputTypes.js +10 -0
  5. package/dist/generated/prisma/enums.d.ts +67 -0
  6. package/dist/generated/prisma/enums.js +66 -0
  7. package/dist/generated/prisma/internal/class.d.ts +539 -0
  8. package/dist/generated/prisma/internal/class.js +49 -0
  9. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
  10. package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
  11. package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
  12. package/dist/generated/prisma/models/ActivityLog.js +1 -0
  13. package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
  14. package/dist/generated/prisma/models/Artifact.js +1 -0
  15. package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
  16. package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
  17. package/dist/generated/prisma/models/Channel.d.ts +1257 -0
  18. package/dist/generated/prisma/models/Channel.js +1 -0
  19. package/dist/generated/prisma/models/Chat.d.ts +1339 -0
  20. package/dist/generated/prisma/models/Chat.js +1 -0
  21. package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
  22. package/dist/generated/prisma/models/CopilotConversation.js +1 -0
  23. package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
  24. package/dist/generated/prisma/models/CopilotMessage.js +1 -0
  25. package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
  26. package/dist/generated/prisma/models/FileAsset.js +1 -0
  27. package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
  28. package/dist/generated/prisma/models/Flashcard.js +1 -0
  29. package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
  30. package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
  31. package/dist/generated/prisma/models/Folder.d.ts +1685 -0
  32. package/dist/generated/prisma/models/Folder.js +1 -0
  33. package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
  34. package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
  35. package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
  36. package/dist/generated/prisma/models/Invoice.js +1 -0
  37. package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
  38. package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
  39. package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
  40. package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
  41. package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
  42. package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
  43. package/dist/generated/prisma/models/Notification.d.ts +1992 -0
  44. package/dist/generated/prisma/models/Notification.js +1 -0
  45. package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
  46. package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
  47. package/dist/generated/prisma/models/Plan.d.ts +1431 -0
  48. package/dist/generated/prisma/models/Plan.js +1 -0
  49. package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
  50. package/dist/generated/prisma/models/PlanLimit.js +1 -0
  51. package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
  52. package/dist/generated/prisma/models/PodcastSegment.js +1 -0
  53. package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
  54. package/dist/generated/prisma/models/ResourcePrice.js +1 -0
  55. package/dist/generated/prisma/models/Role.d.ts +1065 -0
  56. package/dist/generated/prisma/models/Role.js +1 -0
  57. package/dist/generated/prisma/models/Session.d.ts +1105 -0
  58. package/dist/generated/prisma/models/Session.js +1 -0
  59. package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
  60. package/dist/generated/prisma/models/StripeEvent.js +1 -0
  61. package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
  62. package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
  63. package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
  64. package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
  65. package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
  66. package/dist/generated/prisma/models/Subscription.js +1 -0
  67. package/dist/generated/prisma/models/User.d.ts +7559 -0
  68. package/dist/generated/prisma/models/User.js +1 -0
  69. package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
  70. package/dist/generated/prisma/models/UserCredit.js +1 -0
  71. package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
  72. package/dist/generated/prisma/models/VerificationToken.js +1 -0
  73. package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
  74. package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
  75. package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
  76. package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
  77. package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
  78. package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
  79. package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
  80. package/dist/generated/prisma/models/Workspace.js +1 -0
  81. package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
  82. package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
  83. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
  84. package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
  85. package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
  86. package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
  87. package/dist/generated/prisma/models.d.ts +39 -0
  88. package/dist/generated/prisma/models.js +1 -0
  89. package/dist/src/context.d.ts +27 -0
  90. package/dist/src/context.js +33 -0
  91. package/dist/src/index.d.ts +3 -0
  92. package/dist/src/index.js +1 -0
  93. package/dist/src/lib/ai/config.d.ts +20 -0
  94. package/dist/src/lib/ai/config.js +31 -0
  95. package/dist/src/lib/ai/embedding-client.d.ts +8 -0
  96. package/dist/src/lib/ai/embedding-client.js +30 -0
  97. package/dist/src/lib/ai/index.d.ts +48 -0
  98. package/dist/src/lib/ai/index.js +29 -0
  99. package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
  100. package/dist/src/lib/ai/inference-backend/client.js +301 -0
  101. package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
  102. package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
  103. package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
  104. package/dist/src/lib/ai/inference-backend/types.js +1 -0
  105. package/dist/src/lib/ai/json-parse.d.ts +2 -0
  106. package/dist/src/lib/ai/json-parse.js +34 -0
  107. package/dist/src/lib/ai/llm-client.d.ts +7 -0
  108. package/dist/src/lib/ai/llm-client.js +36 -0
  109. package/dist/src/lib/ai/mock.d.ts +2 -0
  110. package/dist/src/lib/ai/mock.js +10 -0
  111. package/dist/src/lib/ai/types.d.ts +9 -0
  112. package/dist/src/lib/ai/types.js +1 -0
  113. package/dist/src/lib/auth.d.ts +36 -0
  114. package/dist/src/lib/auth.js +117 -0
  115. package/dist/src/lib/chunking.d.ts +19 -0
  116. package/dist/src/lib/chunking.js +47 -0
  117. package/dist/src/lib/constants.d.ts +13 -0
  118. package/dist/src/lib/constants.js +12 -0
  119. package/dist/src/lib/curated-kb-seed.d.ts +12 -0
  120. package/dist/src/lib/curated-kb-seed.js +155 -0
  121. package/dist/src/lib/email.d.ts +11 -0
  122. package/dist/src/lib/email.js +152 -0
  123. package/dist/src/lib/embeddings.d.ts +2 -0
  124. package/dist/src/lib/embeddings.js +1 -0
  125. package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
  126. package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
  127. package/dist/src/lib/env.d.ts +41 -0
  128. package/dist/src/lib/env.js +57 -0
  129. package/dist/src/lib/errors.d.ts +33 -0
  130. package/dist/src/lib/errors.js +78 -0
  131. package/dist/src/lib/file.d.ts +0 -0
  132. package/dist/src/lib/file.js +1 -0
  133. package/dist/src/lib/inference.d.ts +1 -0
  134. package/dist/src/lib/inference.js +1 -0
  135. package/dist/src/lib/kb-meta.d.ts +8 -0
  136. package/dist/src/lib/kb-meta.js +77 -0
  137. package/dist/src/lib/logger.d.ts +62 -0
  138. package/dist/src/lib/logger.js +364 -0
  139. package/dist/src/lib/pdf.d.ts +11 -0
  140. package/dist/src/lib/pdf.js +11 -0
  141. package/dist/src/lib/prisma.d.ts +3 -0
  142. package/dist/src/lib/prisma.js +15 -0
  143. package/dist/src/lib/pusher.d.ts +38 -0
  144. package/dist/src/lib/pusher.js +170 -0
  145. package/dist/src/lib/retry.d.ts +15 -0
  146. package/dist/src/lib/retry.js +37 -0
  147. package/dist/src/lib/storage.d.ts +11 -0
  148. package/dist/src/lib/storage.js +71 -0
  149. package/dist/src/lib/stripe.d.ts +10 -0
  150. package/dist/src/lib/stripe.js +36 -0
  151. package/dist/src/lib/validation.d.ts +51 -0
  152. package/dist/src/lib/validation.js +64 -0
  153. package/dist/src/lib/workspace-kb.d.ts +5 -0
  154. package/dist/src/lib/workspace-kb.js +7 -0
  155. package/dist/src/repositories/artifact.repository.d.ts +64 -0
  156. package/dist/src/repositories/artifact.repository.js +40 -0
  157. package/dist/src/repositories/base.repository.d.ts +14 -0
  158. package/dist/src/repositories/base.repository.js +14 -0
  159. package/dist/src/repositories/invitation.repository.d.ts +104 -0
  160. package/dist/src/repositories/invitation.repository.js +44 -0
  161. package/dist/src/repositories/notification.repository.d.ts +76 -0
  162. package/dist/src/repositories/notification.repository.js +44 -0
  163. package/dist/src/repositories/user.repository.d.ts +84 -0
  164. package/dist/src/repositories/user.repository.js +37 -0
  165. package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
  166. package/dist/src/repositories/workspace-member.repository.js +31 -0
  167. package/dist/src/repositories/workspace.repository.d.ts +101 -0
  168. package/dist/src/repositories/workspace.repository.js +79 -0
  169. package/dist/src/routers/_app.d.ts +3464 -0
  170. package/dist/src/routers/_app.js +36 -0
  171. package/dist/src/routers/admin.d.ts +358 -0
  172. package/dist/src/routers/admin.js +105 -0
  173. package/dist/src/routers/annotations.d.ts +219 -0
  174. package/dist/src/routers/annotations.js +29 -0
  175. package/dist/src/routers/artifactVersions.d.ts +65 -0
  176. package/dist/src/routers/artifactVersions.js +14 -0
  177. package/dist/src/routers/auth.d.ts +161 -0
  178. package/dist/src/routers/auth.js +97 -0
  179. package/dist/src/routers/chat.d.ts +170 -0
  180. package/dist/src/routers/chat.js +32 -0
  181. package/dist/src/routers/copilot.d.ts +200 -0
  182. package/dist/src/routers/copilot.js +52 -0
  183. package/dist/src/routers/flashcards.d.ts +336 -0
  184. package/dist/src/routers/flashcards.js +93 -0
  185. package/dist/src/routers/knowledgeBase.d.ts +421 -0
  186. package/dist/src/routers/knowledgeBase.js +118 -0
  187. package/dist/src/routers/members.d.ts +169 -0
  188. package/dist/src/routers/members.js +47 -0
  189. package/dist/src/routers/notifications.d.ts +99 -0
  190. package/dist/src/routers/notifications.js +25 -0
  191. package/dist/src/routers/payment.d.ts +80 -0
  192. package/dist/src/routers/payment.js +21 -0
  193. package/dist/src/routers/podcast.d.ts +287 -0
  194. package/dist/src/routers/podcast.js +34 -0
  195. package/dist/src/routers/studyguide.d.ts +36 -0
  196. package/dist/src/routers/studyguide.js +8 -0
  197. package/dist/src/routers/worksheets.d.ts +429 -0
  198. package/dist/src/routers/worksheets.js +139 -0
  199. package/dist/src/routers/workspace.d.ts +563 -0
  200. package/dist/src/routers/workspace.js +104 -0
  201. package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
  202. package/dist/src/scripts/purge-deleted-users.js +148 -0
  203. package/dist/src/server.d.ts +1 -0
  204. package/dist/src/server.js +190 -0
  205. package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
  206. package/dist/src/services/activity/activity-human-description.service.js +221 -0
  207. package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
  208. package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
  209. package/dist/src/services/activity/activity-log.service.d.ts +87 -0
  210. package/dist/src/services/activity/activity-log.service.js +276 -0
  211. package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
  212. package/dist/src/services/activity/activity-log.service.test.js +27 -0
  213. package/dist/src/services/admin/admin.service.d.ts +270 -0
  214. package/dist/src/services/admin/admin.service.js +476 -0
  215. package/dist/src/services/ai/ai-session.service.d.ts +5 -0
  216. package/dist/src/services/ai/ai-session.service.js +4 -0
  217. package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
  218. package/dist/src/services/artifacts/annotation.service.js +154 -0
  219. package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
  220. package/dist/src/services/artifacts/artifact-version.service.js +129 -0
  221. package/dist/src/services/artifacts/chat.service.d.ts +127 -0
  222. package/dist/src/services/artifacts/chat.service.js +182 -0
  223. package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
  224. package/dist/src/services/artifacts/study-guide.service.js +65 -0
  225. package/dist/src/services/auth/auth.service.d.ts +94 -0
  226. package/dist/src/services/auth/auth.service.js +368 -0
  227. package/dist/src/services/base.service.d.ts +14 -0
  228. package/dist/src/services/base.service.js +14 -0
  229. package/dist/src/services/billing/payment.service.d.ts +44 -0
  230. package/dist/src/services/billing/payment.service.js +365 -0
  231. package/dist/src/services/billing/subscription.service.d.ts +37 -0
  232. package/dist/src/services/billing/subscription.service.js +654 -0
  233. package/dist/src/services/billing/usage.service.d.ts +47 -0
  234. package/dist/src/services/billing/usage.service.js +149 -0
  235. package/dist/src/services/content/copilot.service.d.ts +113 -0
  236. package/dist/src/services/content/copilot.service.js +439 -0
  237. package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
  238. package/dist/src/services/content/flashcard-progress.service.js +432 -0
  239. package/dist/src/services/content/flashcard.service.d.ts +184 -0
  240. package/dist/src/services/content/flashcard.service.js +339 -0
  241. package/dist/src/services/content/media-analysis.service.d.ts +23 -0
  242. package/dist/src/services/content/media-analysis.service.js +404 -0
  243. package/dist/src/services/content/podcast.service.d.ts +267 -0
  244. package/dist/src/services/content/podcast.service.js +653 -0
  245. package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
  246. package/dist/src/services/content/worksheet-content.service.js +84 -0
  247. package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
  248. package/dist/src/services/content/worksheet-content.service.test.js +69 -0
  249. package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
  250. package/dist/src/services/content/worksheet-generation.service.js +95 -0
  251. package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
  252. package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
  253. package/dist/src/services/content/worksheet.service.d.ts +347 -0
  254. package/dist/src/services/content/worksheet.service.js +599 -0
  255. package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
  256. package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
  257. package/dist/src/services/members/invitation.service.d.ts +66 -0
  258. package/dist/src/services/members/invitation.service.js +348 -0
  259. package/dist/src/services/members/member.service.d.ts +36 -0
  260. package/dist/src/services/members/member.service.js +193 -0
  261. package/dist/src/services/notifications/notification.service.d.ts +214 -0
  262. package/dist/src/services/notifications/notification.service.js +550 -0
  263. package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
  264. package/dist/src/services/notifications/notification.service.test.js +87 -0
  265. package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
  266. package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
  267. package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
  268. package/dist/src/services/workspace/workspace-kb.service.js +184 -0
  269. package/dist/src/services/workspace/workspace.service.d.ts +263 -0
  270. package/dist/src/services/workspace/workspace.service.js +401 -0
  271. package/dist/src/trpc.d.ts +60 -0
  272. package/dist/src/trpc.js +217 -0
  273. package/dist/src/types/index.d.ts +126 -0
  274. package/dist/src/types/index.js +1 -0
  275. package/package.json +8 -9
  276. package/prisma/schema.prisma +3 -4
  277. package/prisma/seed.mjs +5 -2
  278. package/prisma.config.ts +16 -0
  279. package/src/lib/prisma.ts +18 -9
  280. package/src/scripts/purge-deleted-users.ts +1 -3
  281. package/tsconfig.json +3 -0
@@ -0,0 +1,1992 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums";
3
+ import type * as Prisma from "../internal/prismaNamespace";
4
+ /**
5
+ * Model Notification
6
+ *
7
+ */
8
+ export type NotificationModel = runtime.Types.Result.DefaultSelection<Prisma.$NotificationPayload>;
9
+ export type AggregateNotification = {
10
+ _count: NotificationCountAggregateOutputType | null;
11
+ _min: NotificationMinAggregateOutputType | null;
12
+ _max: NotificationMaxAggregateOutputType | null;
13
+ };
14
+ export type NotificationMinAggregateOutputType = {
15
+ id: string | null;
16
+ userId: string | null;
17
+ actorUserId: string | null;
18
+ workspaceId: string | null;
19
+ type: string | null;
20
+ title: string | null;
21
+ body: string | null;
22
+ content: string | null;
23
+ actionUrl: string | null;
24
+ priority: $Enums.NotificationPriority | null;
25
+ sourceId: string | null;
26
+ read: boolean | null;
27
+ readAt: Date | null;
28
+ deliveredAt: Date | null;
29
+ createdAt: Date | null;
30
+ updatedAt: Date | null;
31
+ };
32
+ export type NotificationMaxAggregateOutputType = {
33
+ id: string | null;
34
+ userId: string | null;
35
+ actorUserId: string | null;
36
+ workspaceId: string | null;
37
+ type: string | null;
38
+ title: string | null;
39
+ body: string | null;
40
+ content: string | null;
41
+ actionUrl: string | null;
42
+ priority: $Enums.NotificationPriority | null;
43
+ sourceId: string | null;
44
+ read: boolean | null;
45
+ readAt: Date | null;
46
+ deliveredAt: Date | null;
47
+ createdAt: Date | null;
48
+ updatedAt: Date | null;
49
+ };
50
+ export type NotificationCountAggregateOutputType = {
51
+ id: number;
52
+ userId: number;
53
+ actorUserId: number;
54
+ workspaceId: number;
55
+ type: number;
56
+ title: number;
57
+ body: number;
58
+ content: number;
59
+ actionUrl: number;
60
+ metadata: number;
61
+ priority: number;
62
+ sourceId: number;
63
+ read: number;
64
+ readAt: number;
65
+ deliveredAt: number;
66
+ createdAt: number;
67
+ updatedAt: number;
68
+ _all: number;
69
+ };
70
+ export type NotificationMinAggregateInputType = {
71
+ id?: true;
72
+ userId?: true;
73
+ actorUserId?: true;
74
+ workspaceId?: true;
75
+ type?: true;
76
+ title?: true;
77
+ body?: true;
78
+ content?: true;
79
+ actionUrl?: true;
80
+ priority?: true;
81
+ sourceId?: true;
82
+ read?: true;
83
+ readAt?: true;
84
+ deliveredAt?: true;
85
+ createdAt?: true;
86
+ updatedAt?: true;
87
+ };
88
+ export type NotificationMaxAggregateInputType = {
89
+ id?: true;
90
+ userId?: true;
91
+ actorUserId?: true;
92
+ workspaceId?: true;
93
+ type?: true;
94
+ title?: true;
95
+ body?: true;
96
+ content?: true;
97
+ actionUrl?: true;
98
+ priority?: true;
99
+ sourceId?: true;
100
+ read?: true;
101
+ readAt?: true;
102
+ deliveredAt?: true;
103
+ createdAt?: true;
104
+ updatedAt?: true;
105
+ };
106
+ export type NotificationCountAggregateInputType = {
107
+ id?: true;
108
+ userId?: true;
109
+ actorUserId?: true;
110
+ workspaceId?: true;
111
+ type?: true;
112
+ title?: true;
113
+ body?: true;
114
+ content?: true;
115
+ actionUrl?: true;
116
+ metadata?: true;
117
+ priority?: true;
118
+ sourceId?: true;
119
+ read?: true;
120
+ readAt?: true;
121
+ deliveredAt?: true;
122
+ createdAt?: true;
123
+ updatedAt?: true;
124
+ _all?: true;
125
+ };
126
+ export type NotificationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ /**
128
+ * Filter which Notification to aggregate.
129
+ */
130
+ where?: Prisma.NotificationWhereInput;
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
133
+ *
134
+ * Determine the order of Notifications to fetch.
135
+ */
136
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
139
+ *
140
+ * Sets the start position
141
+ */
142
+ cursor?: Prisma.NotificationWhereUniqueInput;
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
+ *
146
+ * Take `±n` Notifications from the position of the cursor.
147
+ */
148
+ take?: number;
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
151
+ *
152
+ * Skip the first `n` Notifications.
153
+ */
154
+ skip?: number;
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Count returned Notifications
159
+ **/
160
+ _count?: true | NotificationCountAggregateInputType;
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to find the minimum value
165
+ **/
166
+ _min?: NotificationMinAggregateInputType;
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to find the maximum value
171
+ **/
172
+ _max?: NotificationMaxAggregateInputType;
173
+ };
174
+ export type GetNotificationAggregateType<T extends NotificationAggregateArgs> = {
175
+ [P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateNotification[P]> : Prisma.GetScalarType<T[P], AggregateNotification[P]>;
176
+ };
177
+ export type NotificationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
178
+ where?: Prisma.NotificationWhereInput;
179
+ orderBy?: Prisma.NotificationOrderByWithAggregationInput | Prisma.NotificationOrderByWithAggregationInput[];
180
+ by: Prisma.NotificationScalarFieldEnum[] | Prisma.NotificationScalarFieldEnum;
181
+ having?: Prisma.NotificationScalarWhereWithAggregatesInput;
182
+ take?: number;
183
+ skip?: number;
184
+ _count?: NotificationCountAggregateInputType | true;
185
+ _min?: NotificationMinAggregateInputType;
186
+ _max?: NotificationMaxAggregateInputType;
187
+ };
188
+ export type NotificationGroupByOutputType = {
189
+ id: string;
190
+ userId: string;
191
+ actorUserId: string | null;
192
+ workspaceId: string | null;
193
+ type: string;
194
+ title: string;
195
+ body: string;
196
+ content: string | null;
197
+ actionUrl: string | null;
198
+ metadata: runtime.JsonValue | null;
199
+ priority: $Enums.NotificationPriority;
200
+ sourceId: string | null;
201
+ read: boolean;
202
+ readAt: Date | null;
203
+ deliveredAt: Date | null;
204
+ createdAt: Date;
205
+ updatedAt: Date;
206
+ _count: NotificationCountAggregateOutputType | null;
207
+ _min: NotificationMinAggregateOutputType | null;
208
+ _max: NotificationMaxAggregateOutputType | null;
209
+ };
210
+ export type GetNotificationGroupByPayload<T extends NotificationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<NotificationGroupByOutputType, T['by']> & {
211
+ [P in ((keyof T) & (keyof NotificationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], NotificationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], NotificationGroupByOutputType[P]>;
212
+ }>>;
213
+ export type NotificationWhereInput = {
214
+ AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
215
+ OR?: Prisma.NotificationWhereInput[];
216
+ NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
217
+ id?: Prisma.StringFilter<"Notification"> | string;
218
+ userId?: Prisma.StringFilter<"Notification"> | string;
219
+ actorUserId?: Prisma.StringNullableFilter<"Notification"> | string | null;
220
+ workspaceId?: Prisma.StringNullableFilter<"Notification"> | string | null;
221
+ type?: Prisma.StringFilter<"Notification"> | string;
222
+ title?: Prisma.StringFilter<"Notification"> | string;
223
+ body?: Prisma.StringFilter<"Notification"> | string;
224
+ content?: Prisma.StringNullableFilter<"Notification"> | string | null;
225
+ actionUrl?: Prisma.StringNullableFilter<"Notification"> | string | null;
226
+ metadata?: Prisma.JsonNullableFilter<"Notification">;
227
+ priority?: Prisma.EnumNotificationPriorityFilter<"Notification"> | $Enums.NotificationPriority;
228
+ sourceId?: Prisma.StringNullableFilter<"Notification"> | string | null;
229
+ read?: Prisma.BoolFilter<"Notification"> | boolean;
230
+ readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null;
231
+ deliveredAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null;
232
+ createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
233
+ updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
234
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
235
+ actor?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
236
+ workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null;
237
+ };
238
+ export type NotificationOrderByWithRelationInput = {
239
+ id?: Prisma.SortOrder;
240
+ userId?: Prisma.SortOrder;
241
+ actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder;
242
+ workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder;
243
+ type?: Prisma.SortOrder;
244
+ title?: Prisma.SortOrder;
245
+ body?: Prisma.SortOrder;
246
+ content?: Prisma.SortOrderInput | Prisma.SortOrder;
247
+ actionUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
249
+ priority?: Prisma.SortOrder;
250
+ sourceId?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ read?: Prisma.SortOrder;
252
+ readAt?: Prisma.SortOrderInput | Prisma.SortOrder;
253
+ deliveredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
254
+ createdAt?: Prisma.SortOrder;
255
+ updatedAt?: Prisma.SortOrder;
256
+ user?: Prisma.UserOrderByWithRelationInput;
257
+ actor?: Prisma.UserOrderByWithRelationInput;
258
+ workspace?: Prisma.WorkspaceOrderByWithRelationInput;
259
+ };
260
+ export type NotificationWhereUniqueInput = Prisma.AtLeast<{
261
+ id?: string;
262
+ userId_type_sourceId?: Prisma.NotificationUserIdTypeSourceIdCompoundUniqueInput;
263
+ AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
264
+ OR?: Prisma.NotificationWhereInput[];
265
+ NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[];
266
+ userId?: Prisma.StringFilter<"Notification"> | string;
267
+ actorUserId?: Prisma.StringNullableFilter<"Notification"> | string | null;
268
+ workspaceId?: Prisma.StringNullableFilter<"Notification"> | string | null;
269
+ type?: Prisma.StringFilter<"Notification"> | string;
270
+ title?: Prisma.StringFilter<"Notification"> | string;
271
+ body?: Prisma.StringFilter<"Notification"> | string;
272
+ content?: Prisma.StringNullableFilter<"Notification"> | string | null;
273
+ actionUrl?: Prisma.StringNullableFilter<"Notification"> | string | null;
274
+ metadata?: Prisma.JsonNullableFilter<"Notification">;
275
+ priority?: Prisma.EnumNotificationPriorityFilter<"Notification"> | $Enums.NotificationPriority;
276
+ sourceId?: Prisma.StringNullableFilter<"Notification"> | string | null;
277
+ read?: Prisma.BoolFilter<"Notification"> | boolean;
278
+ readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null;
279
+ deliveredAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null;
280
+ createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
281
+ updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
282
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
283
+ actor?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
284
+ workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null;
285
+ }, "id" | "userId_type_sourceId">;
286
+ export type NotificationOrderByWithAggregationInput = {
287
+ id?: Prisma.SortOrder;
288
+ userId?: Prisma.SortOrder;
289
+ actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder;
290
+ workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder;
291
+ type?: Prisma.SortOrder;
292
+ title?: Prisma.SortOrder;
293
+ body?: Prisma.SortOrder;
294
+ content?: Prisma.SortOrderInput | Prisma.SortOrder;
295
+ actionUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
296
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
297
+ priority?: Prisma.SortOrder;
298
+ sourceId?: Prisma.SortOrderInput | Prisma.SortOrder;
299
+ read?: Prisma.SortOrder;
300
+ readAt?: Prisma.SortOrderInput | Prisma.SortOrder;
301
+ deliveredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ createdAt?: Prisma.SortOrder;
303
+ updatedAt?: Prisma.SortOrder;
304
+ _count?: Prisma.NotificationCountOrderByAggregateInput;
305
+ _max?: Prisma.NotificationMaxOrderByAggregateInput;
306
+ _min?: Prisma.NotificationMinOrderByAggregateInput;
307
+ };
308
+ export type NotificationScalarWhereWithAggregatesInput = {
309
+ AND?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[];
310
+ OR?: Prisma.NotificationScalarWhereWithAggregatesInput[];
311
+ NOT?: Prisma.NotificationScalarWhereWithAggregatesInput | Prisma.NotificationScalarWhereWithAggregatesInput[];
312
+ id?: Prisma.StringWithAggregatesFilter<"Notification"> | string;
313
+ userId?: Prisma.StringWithAggregatesFilter<"Notification"> | string;
314
+ actorUserId?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null;
315
+ workspaceId?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null;
316
+ type?: Prisma.StringWithAggregatesFilter<"Notification"> | string;
317
+ title?: Prisma.StringWithAggregatesFilter<"Notification"> | string;
318
+ body?: Prisma.StringWithAggregatesFilter<"Notification"> | string;
319
+ content?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null;
320
+ actionUrl?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null;
321
+ metadata?: Prisma.JsonNullableWithAggregatesFilter<"Notification">;
322
+ priority?: Prisma.EnumNotificationPriorityWithAggregatesFilter<"Notification"> | $Enums.NotificationPriority;
323
+ sourceId?: Prisma.StringNullableWithAggregatesFilter<"Notification"> | string | null;
324
+ read?: Prisma.BoolWithAggregatesFilter<"Notification"> | boolean;
325
+ readAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Notification"> | Date | string | null;
326
+ deliveredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Notification"> | Date | string | null;
327
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Notification"> | Date | string;
328
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Notification"> | Date | string;
329
+ };
330
+ export type NotificationCreateInput = {
331
+ id?: string;
332
+ type: string;
333
+ title: string;
334
+ body: string;
335
+ content?: string | null;
336
+ actionUrl?: string | null;
337
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
338
+ priority?: $Enums.NotificationPriority;
339
+ sourceId?: string | null;
340
+ read?: boolean;
341
+ readAt?: Date | string | null;
342
+ deliveredAt?: Date | string | null;
343
+ createdAt?: Date | string;
344
+ updatedAt?: Date | string;
345
+ user: Prisma.UserCreateNestedOneWithoutNotificationsInput;
346
+ actor?: Prisma.UserCreateNestedOneWithoutActorNotificationsInput;
347
+ workspace?: Prisma.WorkspaceCreateNestedOneWithoutNotificationsInput;
348
+ };
349
+ export type NotificationUncheckedCreateInput = {
350
+ id?: string;
351
+ userId: string;
352
+ actorUserId?: string | null;
353
+ workspaceId?: string | null;
354
+ type: string;
355
+ title: string;
356
+ body: string;
357
+ content?: string | null;
358
+ actionUrl?: string | null;
359
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
360
+ priority?: $Enums.NotificationPriority;
361
+ sourceId?: string | null;
362
+ read?: boolean;
363
+ readAt?: Date | string | null;
364
+ deliveredAt?: Date | string | null;
365
+ createdAt?: Date | string;
366
+ updatedAt?: Date | string;
367
+ };
368
+ export type NotificationUpdateInput = {
369
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
370
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
371
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
372
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
374
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
375
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
376
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
377
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
378
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
379
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
380
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
381
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
382
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
383
+ user?: Prisma.UserUpdateOneRequiredWithoutNotificationsNestedInput;
384
+ actor?: Prisma.UserUpdateOneWithoutActorNotificationsNestedInput;
385
+ workspace?: Prisma.WorkspaceUpdateOneWithoutNotificationsNestedInput;
386
+ };
387
+ export type NotificationUncheckedUpdateInput = {
388
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
389
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
390
+ actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
391
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
392
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
393
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
394
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
395
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
396
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
397
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
398
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
399
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
400
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
401
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
402
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
403
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
404
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
405
+ };
406
+ export type NotificationCreateManyInput = {
407
+ id?: string;
408
+ userId: string;
409
+ actorUserId?: string | null;
410
+ workspaceId?: string | null;
411
+ type: string;
412
+ title: string;
413
+ body: string;
414
+ content?: string | null;
415
+ actionUrl?: string | null;
416
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
417
+ priority?: $Enums.NotificationPriority;
418
+ sourceId?: string | null;
419
+ read?: boolean;
420
+ readAt?: Date | string | null;
421
+ deliveredAt?: Date | string | null;
422
+ createdAt?: Date | string;
423
+ updatedAt?: Date | string;
424
+ };
425
+ export type NotificationUpdateManyMutationInput = {
426
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
427
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
428
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
429
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
430
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
431
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
432
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
433
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
434
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
436
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
437
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
438
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
439
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
440
+ };
441
+ export type NotificationUncheckedUpdateManyInput = {
442
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
443
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
444
+ actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
445
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
446
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
447
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
448
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
449
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
450
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
451
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
452
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
453
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
454
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
455
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
456
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
457
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
458
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
459
+ };
460
+ export type NotificationListRelationFilter = {
461
+ every?: Prisma.NotificationWhereInput;
462
+ some?: Prisma.NotificationWhereInput;
463
+ none?: Prisma.NotificationWhereInput;
464
+ };
465
+ export type NotificationOrderByRelationAggregateInput = {
466
+ _count?: Prisma.SortOrder;
467
+ };
468
+ export type NotificationUserIdTypeSourceIdCompoundUniqueInput = {
469
+ userId: string;
470
+ type: string;
471
+ sourceId: string;
472
+ };
473
+ export type NotificationCountOrderByAggregateInput = {
474
+ id?: Prisma.SortOrder;
475
+ userId?: Prisma.SortOrder;
476
+ actorUserId?: Prisma.SortOrder;
477
+ workspaceId?: Prisma.SortOrder;
478
+ type?: Prisma.SortOrder;
479
+ title?: Prisma.SortOrder;
480
+ body?: Prisma.SortOrder;
481
+ content?: Prisma.SortOrder;
482
+ actionUrl?: Prisma.SortOrder;
483
+ metadata?: Prisma.SortOrder;
484
+ priority?: Prisma.SortOrder;
485
+ sourceId?: Prisma.SortOrder;
486
+ read?: Prisma.SortOrder;
487
+ readAt?: Prisma.SortOrder;
488
+ deliveredAt?: Prisma.SortOrder;
489
+ createdAt?: Prisma.SortOrder;
490
+ updatedAt?: Prisma.SortOrder;
491
+ };
492
+ export type NotificationMaxOrderByAggregateInput = {
493
+ id?: Prisma.SortOrder;
494
+ userId?: Prisma.SortOrder;
495
+ actorUserId?: Prisma.SortOrder;
496
+ workspaceId?: Prisma.SortOrder;
497
+ type?: Prisma.SortOrder;
498
+ title?: Prisma.SortOrder;
499
+ body?: Prisma.SortOrder;
500
+ content?: Prisma.SortOrder;
501
+ actionUrl?: Prisma.SortOrder;
502
+ priority?: Prisma.SortOrder;
503
+ sourceId?: Prisma.SortOrder;
504
+ read?: Prisma.SortOrder;
505
+ readAt?: Prisma.SortOrder;
506
+ deliveredAt?: Prisma.SortOrder;
507
+ createdAt?: Prisma.SortOrder;
508
+ updatedAt?: Prisma.SortOrder;
509
+ };
510
+ export type NotificationMinOrderByAggregateInput = {
511
+ id?: Prisma.SortOrder;
512
+ userId?: Prisma.SortOrder;
513
+ actorUserId?: Prisma.SortOrder;
514
+ workspaceId?: Prisma.SortOrder;
515
+ type?: Prisma.SortOrder;
516
+ title?: Prisma.SortOrder;
517
+ body?: Prisma.SortOrder;
518
+ content?: Prisma.SortOrder;
519
+ actionUrl?: Prisma.SortOrder;
520
+ priority?: Prisma.SortOrder;
521
+ sourceId?: Prisma.SortOrder;
522
+ read?: Prisma.SortOrder;
523
+ readAt?: Prisma.SortOrder;
524
+ deliveredAt?: Prisma.SortOrder;
525
+ createdAt?: Prisma.SortOrder;
526
+ updatedAt?: Prisma.SortOrder;
527
+ };
528
+ export type NotificationCreateNestedManyWithoutUserInput = {
529
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
530
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
531
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
532
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
533
+ };
534
+ export type NotificationCreateNestedManyWithoutActorInput = {
535
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutActorInput, Prisma.NotificationUncheckedCreateWithoutActorInput> | Prisma.NotificationCreateWithoutActorInput[] | Prisma.NotificationUncheckedCreateWithoutActorInput[];
536
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutActorInput | Prisma.NotificationCreateOrConnectWithoutActorInput[];
537
+ createMany?: Prisma.NotificationCreateManyActorInputEnvelope;
538
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
539
+ };
540
+ export type NotificationUncheckedCreateNestedManyWithoutUserInput = {
541
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
542
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
543
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
544
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
545
+ };
546
+ export type NotificationUncheckedCreateNestedManyWithoutActorInput = {
547
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutActorInput, Prisma.NotificationUncheckedCreateWithoutActorInput> | Prisma.NotificationCreateWithoutActorInput[] | Prisma.NotificationUncheckedCreateWithoutActorInput[];
548
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutActorInput | Prisma.NotificationCreateOrConnectWithoutActorInput[];
549
+ createMany?: Prisma.NotificationCreateManyActorInputEnvelope;
550
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
551
+ };
552
+ export type NotificationUpdateManyWithoutUserNestedInput = {
553
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
554
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
555
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[];
556
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
557
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
558
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
559
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
560
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
561
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[];
562
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[];
563
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
564
+ };
565
+ export type NotificationUpdateManyWithoutActorNestedInput = {
566
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutActorInput, Prisma.NotificationUncheckedCreateWithoutActorInput> | Prisma.NotificationCreateWithoutActorInput[] | Prisma.NotificationUncheckedCreateWithoutActorInput[];
567
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutActorInput | Prisma.NotificationCreateOrConnectWithoutActorInput[];
568
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutActorInput | Prisma.NotificationUpsertWithWhereUniqueWithoutActorInput[];
569
+ createMany?: Prisma.NotificationCreateManyActorInputEnvelope;
570
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
571
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
572
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
573
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
574
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutActorInput | Prisma.NotificationUpdateWithWhereUniqueWithoutActorInput[];
575
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutActorInput | Prisma.NotificationUpdateManyWithWhereWithoutActorInput[];
576
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
577
+ };
578
+ export type NotificationUncheckedUpdateManyWithoutUserNestedInput = {
579
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput> | Prisma.NotificationCreateWithoutUserInput[] | Prisma.NotificationUncheckedCreateWithoutUserInput[];
580
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutUserInput | Prisma.NotificationCreateOrConnectWithoutUserInput[];
581
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[];
582
+ createMany?: Prisma.NotificationCreateManyUserInputEnvelope;
583
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
584
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
585
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
586
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
587
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[];
588
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutUserInput | Prisma.NotificationUpdateManyWithWhereWithoutUserInput[];
589
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
590
+ };
591
+ export type NotificationUncheckedUpdateManyWithoutActorNestedInput = {
592
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutActorInput, Prisma.NotificationUncheckedCreateWithoutActorInput> | Prisma.NotificationCreateWithoutActorInput[] | Prisma.NotificationUncheckedCreateWithoutActorInput[];
593
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutActorInput | Prisma.NotificationCreateOrConnectWithoutActorInput[];
594
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutActorInput | Prisma.NotificationUpsertWithWhereUniqueWithoutActorInput[];
595
+ createMany?: Prisma.NotificationCreateManyActorInputEnvelope;
596
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
597
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
598
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
599
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
600
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutActorInput | Prisma.NotificationUpdateWithWhereUniqueWithoutActorInput[];
601
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutActorInput | Prisma.NotificationUpdateManyWithWhereWithoutActorInput[];
602
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
603
+ };
604
+ export type EnumNotificationPriorityFieldUpdateOperationsInput = {
605
+ set?: $Enums.NotificationPriority;
606
+ };
607
+ export type BoolFieldUpdateOperationsInput = {
608
+ set?: boolean;
609
+ };
610
+ export type NotificationCreateNestedManyWithoutWorkspaceInput = {
611
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutWorkspaceInput, Prisma.NotificationUncheckedCreateWithoutWorkspaceInput> | Prisma.NotificationCreateWithoutWorkspaceInput[] | Prisma.NotificationUncheckedCreateWithoutWorkspaceInput[];
612
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutWorkspaceInput | Prisma.NotificationCreateOrConnectWithoutWorkspaceInput[];
613
+ createMany?: Prisma.NotificationCreateManyWorkspaceInputEnvelope;
614
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
615
+ };
616
+ export type NotificationUncheckedCreateNestedManyWithoutWorkspaceInput = {
617
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutWorkspaceInput, Prisma.NotificationUncheckedCreateWithoutWorkspaceInput> | Prisma.NotificationCreateWithoutWorkspaceInput[] | Prisma.NotificationUncheckedCreateWithoutWorkspaceInput[];
618
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutWorkspaceInput | Prisma.NotificationCreateOrConnectWithoutWorkspaceInput[];
619
+ createMany?: Prisma.NotificationCreateManyWorkspaceInputEnvelope;
620
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
621
+ };
622
+ export type NotificationUpdateManyWithoutWorkspaceNestedInput = {
623
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutWorkspaceInput, Prisma.NotificationUncheckedCreateWithoutWorkspaceInput> | Prisma.NotificationCreateWithoutWorkspaceInput[] | Prisma.NotificationUncheckedCreateWithoutWorkspaceInput[];
624
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutWorkspaceInput | Prisma.NotificationCreateOrConnectWithoutWorkspaceInput[];
625
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.NotificationUpsertWithWhereUniqueWithoutWorkspaceInput[];
626
+ createMany?: Prisma.NotificationCreateManyWorkspaceInputEnvelope;
627
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
628
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
629
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
630
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
631
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.NotificationUpdateWithWhereUniqueWithoutWorkspaceInput[];
632
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutWorkspaceInput | Prisma.NotificationUpdateManyWithWhereWithoutWorkspaceInput[];
633
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
634
+ };
635
+ export type NotificationUncheckedUpdateManyWithoutWorkspaceNestedInput = {
636
+ create?: Prisma.XOR<Prisma.NotificationCreateWithoutWorkspaceInput, Prisma.NotificationUncheckedCreateWithoutWorkspaceInput> | Prisma.NotificationCreateWithoutWorkspaceInput[] | Prisma.NotificationUncheckedCreateWithoutWorkspaceInput[];
637
+ connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutWorkspaceInput | Prisma.NotificationCreateOrConnectWithoutWorkspaceInput[];
638
+ upsert?: Prisma.NotificationUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.NotificationUpsertWithWhereUniqueWithoutWorkspaceInput[];
639
+ createMany?: Prisma.NotificationCreateManyWorkspaceInputEnvelope;
640
+ set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
641
+ disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
642
+ delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
643
+ connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[];
644
+ update?: Prisma.NotificationUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.NotificationUpdateWithWhereUniqueWithoutWorkspaceInput[];
645
+ updateMany?: Prisma.NotificationUpdateManyWithWhereWithoutWorkspaceInput | Prisma.NotificationUpdateManyWithWhereWithoutWorkspaceInput[];
646
+ deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
647
+ };
648
+ export type NotificationCreateWithoutUserInput = {
649
+ id?: string;
650
+ type: string;
651
+ title: string;
652
+ body: string;
653
+ content?: string | null;
654
+ actionUrl?: string | null;
655
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
656
+ priority?: $Enums.NotificationPriority;
657
+ sourceId?: string | null;
658
+ read?: boolean;
659
+ readAt?: Date | string | null;
660
+ deliveredAt?: Date | string | null;
661
+ createdAt?: Date | string;
662
+ updatedAt?: Date | string;
663
+ actor?: Prisma.UserCreateNestedOneWithoutActorNotificationsInput;
664
+ workspace?: Prisma.WorkspaceCreateNestedOneWithoutNotificationsInput;
665
+ };
666
+ export type NotificationUncheckedCreateWithoutUserInput = {
667
+ id?: string;
668
+ actorUserId?: string | null;
669
+ workspaceId?: string | null;
670
+ type: string;
671
+ title: string;
672
+ body: string;
673
+ content?: string | null;
674
+ actionUrl?: string | null;
675
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
676
+ priority?: $Enums.NotificationPriority;
677
+ sourceId?: string | null;
678
+ read?: boolean;
679
+ readAt?: Date | string | null;
680
+ deliveredAt?: Date | string | null;
681
+ createdAt?: Date | string;
682
+ updatedAt?: Date | string;
683
+ };
684
+ export type NotificationCreateOrConnectWithoutUserInput = {
685
+ where: Prisma.NotificationWhereUniqueInput;
686
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput>;
687
+ };
688
+ export type NotificationCreateManyUserInputEnvelope = {
689
+ data: Prisma.NotificationCreateManyUserInput | Prisma.NotificationCreateManyUserInput[];
690
+ skipDuplicates?: boolean;
691
+ };
692
+ export type NotificationCreateWithoutActorInput = {
693
+ id?: string;
694
+ type: string;
695
+ title: string;
696
+ body: string;
697
+ content?: string | null;
698
+ actionUrl?: string | null;
699
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
700
+ priority?: $Enums.NotificationPriority;
701
+ sourceId?: string | null;
702
+ read?: boolean;
703
+ readAt?: Date | string | null;
704
+ deliveredAt?: Date | string | null;
705
+ createdAt?: Date | string;
706
+ updatedAt?: Date | string;
707
+ user: Prisma.UserCreateNestedOneWithoutNotificationsInput;
708
+ workspace?: Prisma.WorkspaceCreateNestedOneWithoutNotificationsInput;
709
+ };
710
+ export type NotificationUncheckedCreateWithoutActorInput = {
711
+ id?: string;
712
+ userId: string;
713
+ workspaceId?: string | null;
714
+ type: string;
715
+ title: string;
716
+ body: string;
717
+ content?: string | null;
718
+ actionUrl?: string | null;
719
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
720
+ priority?: $Enums.NotificationPriority;
721
+ sourceId?: string | null;
722
+ read?: boolean;
723
+ readAt?: Date | string | null;
724
+ deliveredAt?: Date | string | null;
725
+ createdAt?: Date | string;
726
+ updatedAt?: Date | string;
727
+ };
728
+ export type NotificationCreateOrConnectWithoutActorInput = {
729
+ where: Prisma.NotificationWhereUniqueInput;
730
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutActorInput, Prisma.NotificationUncheckedCreateWithoutActorInput>;
731
+ };
732
+ export type NotificationCreateManyActorInputEnvelope = {
733
+ data: Prisma.NotificationCreateManyActorInput | Prisma.NotificationCreateManyActorInput[];
734
+ skipDuplicates?: boolean;
735
+ };
736
+ export type NotificationUpsertWithWhereUniqueWithoutUserInput = {
737
+ where: Prisma.NotificationWhereUniqueInput;
738
+ update: Prisma.XOR<Prisma.NotificationUpdateWithoutUserInput, Prisma.NotificationUncheckedUpdateWithoutUserInput>;
739
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutUserInput, Prisma.NotificationUncheckedCreateWithoutUserInput>;
740
+ };
741
+ export type NotificationUpdateWithWhereUniqueWithoutUserInput = {
742
+ where: Prisma.NotificationWhereUniqueInput;
743
+ data: Prisma.XOR<Prisma.NotificationUpdateWithoutUserInput, Prisma.NotificationUncheckedUpdateWithoutUserInput>;
744
+ };
745
+ export type NotificationUpdateManyWithWhereWithoutUserInput = {
746
+ where: Prisma.NotificationScalarWhereInput;
747
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyWithoutUserInput>;
748
+ };
749
+ export type NotificationScalarWhereInput = {
750
+ AND?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
751
+ OR?: Prisma.NotificationScalarWhereInput[];
752
+ NOT?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[];
753
+ id?: Prisma.StringFilter<"Notification"> | string;
754
+ userId?: Prisma.StringFilter<"Notification"> | string;
755
+ actorUserId?: Prisma.StringNullableFilter<"Notification"> | string | null;
756
+ workspaceId?: Prisma.StringNullableFilter<"Notification"> | string | null;
757
+ type?: Prisma.StringFilter<"Notification"> | string;
758
+ title?: Prisma.StringFilter<"Notification"> | string;
759
+ body?: Prisma.StringFilter<"Notification"> | string;
760
+ content?: Prisma.StringNullableFilter<"Notification"> | string | null;
761
+ actionUrl?: Prisma.StringNullableFilter<"Notification"> | string | null;
762
+ metadata?: Prisma.JsonNullableFilter<"Notification">;
763
+ priority?: Prisma.EnumNotificationPriorityFilter<"Notification"> | $Enums.NotificationPriority;
764
+ sourceId?: Prisma.StringNullableFilter<"Notification"> | string | null;
765
+ read?: Prisma.BoolFilter<"Notification"> | boolean;
766
+ readAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null;
767
+ deliveredAt?: Prisma.DateTimeNullableFilter<"Notification"> | Date | string | null;
768
+ createdAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
769
+ updatedAt?: Prisma.DateTimeFilter<"Notification"> | Date | string;
770
+ };
771
+ export type NotificationUpsertWithWhereUniqueWithoutActorInput = {
772
+ where: Prisma.NotificationWhereUniqueInput;
773
+ update: Prisma.XOR<Prisma.NotificationUpdateWithoutActorInput, Prisma.NotificationUncheckedUpdateWithoutActorInput>;
774
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutActorInput, Prisma.NotificationUncheckedCreateWithoutActorInput>;
775
+ };
776
+ export type NotificationUpdateWithWhereUniqueWithoutActorInput = {
777
+ where: Prisma.NotificationWhereUniqueInput;
778
+ data: Prisma.XOR<Prisma.NotificationUpdateWithoutActorInput, Prisma.NotificationUncheckedUpdateWithoutActorInput>;
779
+ };
780
+ export type NotificationUpdateManyWithWhereWithoutActorInput = {
781
+ where: Prisma.NotificationScalarWhereInput;
782
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyWithoutActorInput>;
783
+ };
784
+ export type NotificationCreateWithoutWorkspaceInput = {
785
+ id?: string;
786
+ type: string;
787
+ title: string;
788
+ body: string;
789
+ content?: string | null;
790
+ actionUrl?: string | null;
791
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
792
+ priority?: $Enums.NotificationPriority;
793
+ sourceId?: string | null;
794
+ read?: boolean;
795
+ readAt?: Date | string | null;
796
+ deliveredAt?: Date | string | null;
797
+ createdAt?: Date | string;
798
+ updatedAt?: Date | string;
799
+ user: Prisma.UserCreateNestedOneWithoutNotificationsInput;
800
+ actor?: Prisma.UserCreateNestedOneWithoutActorNotificationsInput;
801
+ };
802
+ export type NotificationUncheckedCreateWithoutWorkspaceInput = {
803
+ id?: string;
804
+ userId: string;
805
+ actorUserId?: string | null;
806
+ type: string;
807
+ title: string;
808
+ body: string;
809
+ content?: string | null;
810
+ actionUrl?: string | null;
811
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
812
+ priority?: $Enums.NotificationPriority;
813
+ sourceId?: string | null;
814
+ read?: boolean;
815
+ readAt?: Date | string | null;
816
+ deliveredAt?: Date | string | null;
817
+ createdAt?: Date | string;
818
+ updatedAt?: Date | string;
819
+ };
820
+ export type NotificationCreateOrConnectWithoutWorkspaceInput = {
821
+ where: Prisma.NotificationWhereUniqueInput;
822
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutWorkspaceInput, Prisma.NotificationUncheckedCreateWithoutWorkspaceInput>;
823
+ };
824
+ export type NotificationCreateManyWorkspaceInputEnvelope = {
825
+ data: Prisma.NotificationCreateManyWorkspaceInput | Prisma.NotificationCreateManyWorkspaceInput[];
826
+ skipDuplicates?: boolean;
827
+ };
828
+ export type NotificationUpsertWithWhereUniqueWithoutWorkspaceInput = {
829
+ where: Prisma.NotificationWhereUniqueInput;
830
+ update: Prisma.XOR<Prisma.NotificationUpdateWithoutWorkspaceInput, Prisma.NotificationUncheckedUpdateWithoutWorkspaceInput>;
831
+ create: Prisma.XOR<Prisma.NotificationCreateWithoutWorkspaceInput, Prisma.NotificationUncheckedCreateWithoutWorkspaceInput>;
832
+ };
833
+ export type NotificationUpdateWithWhereUniqueWithoutWorkspaceInput = {
834
+ where: Prisma.NotificationWhereUniqueInput;
835
+ data: Prisma.XOR<Prisma.NotificationUpdateWithoutWorkspaceInput, Prisma.NotificationUncheckedUpdateWithoutWorkspaceInput>;
836
+ };
837
+ export type NotificationUpdateManyWithWhereWithoutWorkspaceInput = {
838
+ where: Prisma.NotificationScalarWhereInput;
839
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyWithoutWorkspaceInput>;
840
+ };
841
+ export type NotificationCreateManyUserInput = {
842
+ id?: string;
843
+ actorUserId?: string | null;
844
+ workspaceId?: string | null;
845
+ type: string;
846
+ title: string;
847
+ body: string;
848
+ content?: string | null;
849
+ actionUrl?: string | null;
850
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
851
+ priority?: $Enums.NotificationPriority;
852
+ sourceId?: string | null;
853
+ read?: boolean;
854
+ readAt?: Date | string | null;
855
+ deliveredAt?: Date | string | null;
856
+ createdAt?: Date | string;
857
+ updatedAt?: Date | string;
858
+ };
859
+ export type NotificationCreateManyActorInput = {
860
+ id?: string;
861
+ userId: string;
862
+ workspaceId?: string | null;
863
+ type: string;
864
+ title: string;
865
+ body: string;
866
+ content?: string | null;
867
+ actionUrl?: string | null;
868
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
869
+ priority?: $Enums.NotificationPriority;
870
+ sourceId?: string | null;
871
+ read?: boolean;
872
+ readAt?: Date | string | null;
873
+ deliveredAt?: Date | string | null;
874
+ createdAt?: Date | string;
875
+ updatedAt?: Date | string;
876
+ };
877
+ export type NotificationUpdateWithoutUserInput = {
878
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
879
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
880
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
881
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
882
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
883
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
884
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
885
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
886
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
887
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
888
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
889
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
890
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
891
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
892
+ actor?: Prisma.UserUpdateOneWithoutActorNotificationsNestedInput;
893
+ workspace?: Prisma.WorkspaceUpdateOneWithoutNotificationsNestedInput;
894
+ };
895
+ export type NotificationUncheckedUpdateWithoutUserInput = {
896
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
897
+ actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
898
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
899
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
900
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
901
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
902
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
903
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
904
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
905
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
906
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
907
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
908
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
909
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
910
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
911
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
912
+ };
913
+ export type NotificationUncheckedUpdateManyWithoutUserInput = {
914
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
915
+ actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
916
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
917
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
918
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
919
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
920
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
921
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
922
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
923
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
924
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
925
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
926
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
927
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
928
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
929
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
930
+ };
931
+ export type NotificationUpdateWithoutActorInput = {
932
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
933
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
934
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
935
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
936
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
937
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
938
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
939
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
940
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
941
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
942
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
943
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
944
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
945
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
946
+ user?: Prisma.UserUpdateOneRequiredWithoutNotificationsNestedInput;
947
+ workspace?: Prisma.WorkspaceUpdateOneWithoutNotificationsNestedInput;
948
+ };
949
+ export type NotificationUncheckedUpdateWithoutActorInput = {
950
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
951
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
952
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
953
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
954
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
955
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
956
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
957
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
958
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
959
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
960
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
961
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
962
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
963
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
964
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
965
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
966
+ };
967
+ export type NotificationUncheckedUpdateManyWithoutActorInput = {
968
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
969
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
970
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
971
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
972
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
973
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
974
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
975
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
976
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
977
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
978
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
979
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
980
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
981
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
982
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
983
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
984
+ };
985
+ export type NotificationCreateManyWorkspaceInput = {
986
+ id?: string;
987
+ userId: string;
988
+ actorUserId?: string | null;
989
+ type: string;
990
+ title: string;
991
+ body: string;
992
+ content?: string | null;
993
+ actionUrl?: string | null;
994
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
995
+ priority?: $Enums.NotificationPriority;
996
+ sourceId?: string | null;
997
+ read?: boolean;
998
+ readAt?: Date | string | null;
999
+ deliveredAt?: Date | string | null;
1000
+ createdAt?: Date | string;
1001
+ updatedAt?: Date | string;
1002
+ };
1003
+ export type NotificationUpdateWithoutWorkspaceInput = {
1004
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1005
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1006
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1007
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
1008
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1009
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1010
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1011
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
1012
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1013
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1014
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1015
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1016
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1017
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1018
+ user?: Prisma.UserUpdateOneRequiredWithoutNotificationsNestedInput;
1019
+ actor?: Prisma.UserUpdateOneWithoutActorNotificationsNestedInput;
1020
+ };
1021
+ export type NotificationUncheckedUpdateWithoutWorkspaceInput = {
1022
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1023
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
1024
+ actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1025
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1026
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1027
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
1028
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1029
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1030
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1031
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
1032
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1033
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1034
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1035
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1036
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1037
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1038
+ };
1039
+ export type NotificationUncheckedUpdateManyWithoutWorkspaceInput = {
1040
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1041
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
1042
+ actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1043
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
1044
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1045
+ body?: Prisma.StringFieldUpdateOperationsInput | string;
1046
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1047
+ actionUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1048
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1049
+ priority?: Prisma.EnumNotificationPriorityFieldUpdateOperationsInput | $Enums.NotificationPriority;
1050
+ sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1051
+ read?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1052
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1053
+ deliveredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1054
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1055
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1056
+ };
1057
+ export type NotificationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1058
+ id?: boolean;
1059
+ userId?: boolean;
1060
+ actorUserId?: boolean;
1061
+ workspaceId?: boolean;
1062
+ type?: boolean;
1063
+ title?: boolean;
1064
+ body?: boolean;
1065
+ content?: boolean;
1066
+ actionUrl?: boolean;
1067
+ metadata?: boolean;
1068
+ priority?: boolean;
1069
+ sourceId?: boolean;
1070
+ read?: boolean;
1071
+ readAt?: boolean;
1072
+ deliveredAt?: boolean;
1073
+ createdAt?: boolean;
1074
+ updatedAt?: boolean;
1075
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1076
+ actor?: boolean | Prisma.Notification$actorArgs<ExtArgs>;
1077
+ workspace?: boolean | Prisma.Notification$workspaceArgs<ExtArgs>;
1078
+ }, ExtArgs["result"]["notification"]>;
1079
+ export type NotificationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1080
+ id?: boolean;
1081
+ userId?: boolean;
1082
+ actorUserId?: boolean;
1083
+ workspaceId?: boolean;
1084
+ type?: boolean;
1085
+ title?: boolean;
1086
+ body?: boolean;
1087
+ content?: boolean;
1088
+ actionUrl?: boolean;
1089
+ metadata?: boolean;
1090
+ priority?: boolean;
1091
+ sourceId?: boolean;
1092
+ read?: boolean;
1093
+ readAt?: boolean;
1094
+ deliveredAt?: boolean;
1095
+ createdAt?: boolean;
1096
+ updatedAt?: boolean;
1097
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1098
+ actor?: boolean | Prisma.Notification$actorArgs<ExtArgs>;
1099
+ workspace?: boolean | Prisma.Notification$workspaceArgs<ExtArgs>;
1100
+ }, ExtArgs["result"]["notification"]>;
1101
+ export type NotificationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1102
+ id?: boolean;
1103
+ userId?: boolean;
1104
+ actorUserId?: boolean;
1105
+ workspaceId?: boolean;
1106
+ type?: boolean;
1107
+ title?: boolean;
1108
+ body?: boolean;
1109
+ content?: boolean;
1110
+ actionUrl?: boolean;
1111
+ metadata?: boolean;
1112
+ priority?: boolean;
1113
+ sourceId?: boolean;
1114
+ read?: boolean;
1115
+ readAt?: boolean;
1116
+ deliveredAt?: boolean;
1117
+ createdAt?: boolean;
1118
+ updatedAt?: boolean;
1119
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1120
+ actor?: boolean | Prisma.Notification$actorArgs<ExtArgs>;
1121
+ workspace?: boolean | Prisma.Notification$workspaceArgs<ExtArgs>;
1122
+ }, ExtArgs["result"]["notification"]>;
1123
+ export type NotificationSelectScalar = {
1124
+ id?: boolean;
1125
+ userId?: boolean;
1126
+ actorUserId?: boolean;
1127
+ workspaceId?: boolean;
1128
+ type?: boolean;
1129
+ title?: boolean;
1130
+ body?: boolean;
1131
+ content?: boolean;
1132
+ actionUrl?: boolean;
1133
+ metadata?: boolean;
1134
+ priority?: boolean;
1135
+ sourceId?: boolean;
1136
+ read?: boolean;
1137
+ readAt?: boolean;
1138
+ deliveredAt?: boolean;
1139
+ createdAt?: boolean;
1140
+ updatedAt?: boolean;
1141
+ };
1142
+ export type NotificationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "actorUserId" | "workspaceId" | "type" | "title" | "body" | "content" | "actionUrl" | "metadata" | "priority" | "sourceId" | "read" | "readAt" | "deliveredAt" | "createdAt" | "updatedAt", ExtArgs["result"]["notification"]>;
1143
+ export type NotificationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1144
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1145
+ actor?: boolean | Prisma.Notification$actorArgs<ExtArgs>;
1146
+ workspace?: boolean | Prisma.Notification$workspaceArgs<ExtArgs>;
1147
+ };
1148
+ export type NotificationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1149
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1150
+ actor?: boolean | Prisma.Notification$actorArgs<ExtArgs>;
1151
+ workspace?: boolean | Prisma.Notification$workspaceArgs<ExtArgs>;
1152
+ };
1153
+ export type NotificationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1155
+ actor?: boolean | Prisma.Notification$actorArgs<ExtArgs>;
1156
+ workspace?: boolean | Prisma.Notification$workspaceArgs<ExtArgs>;
1157
+ };
1158
+ export type $NotificationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ name: "Notification";
1160
+ objects: {
1161
+ user: Prisma.$UserPayload<ExtArgs>;
1162
+ actor: Prisma.$UserPayload<ExtArgs> | null;
1163
+ workspace: Prisma.$WorkspacePayload<ExtArgs> | null;
1164
+ };
1165
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1166
+ id: string;
1167
+ userId: string;
1168
+ actorUserId: string | null;
1169
+ workspaceId: string | null;
1170
+ type: string;
1171
+ title: string;
1172
+ body: string;
1173
+ content: string | null;
1174
+ actionUrl: string | null;
1175
+ metadata: runtime.JsonValue | null;
1176
+ priority: $Enums.NotificationPriority;
1177
+ sourceId: string | null;
1178
+ read: boolean;
1179
+ readAt: Date | null;
1180
+ deliveredAt: Date | null;
1181
+ createdAt: Date;
1182
+ updatedAt: Date;
1183
+ }, ExtArgs["result"]["notification"]>;
1184
+ composites: {};
1185
+ };
1186
+ export type NotificationGetPayload<S extends boolean | null | undefined | NotificationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$NotificationPayload, S>;
1187
+ export type NotificationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<NotificationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1188
+ select?: NotificationCountAggregateInputType | true;
1189
+ };
1190
+ export interface NotificationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1191
+ [K: symbol]: {
1192
+ types: Prisma.TypeMap<ExtArgs>['model']['Notification'];
1193
+ meta: {
1194
+ name: 'Notification';
1195
+ };
1196
+ };
1197
+ /**
1198
+ * Find zero or one Notification that matches the filter.
1199
+ * @param {NotificationFindUniqueArgs} args - Arguments to find a Notification
1200
+ * @example
1201
+ * // Get one Notification
1202
+ * const notification = await prisma.notification.findUnique({
1203
+ * where: {
1204
+ * // ... provide filter here
1205
+ * }
1206
+ * })
1207
+ */
1208
+ findUnique<T extends NotificationFindUniqueArgs>(args: Prisma.SelectSubset<T, NotificationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1209
+ /**
1210
+ * Find one Notification that matches the filter or throw an error with `error.code='P2025'`
1211
+ * if no matches were found.
1212
+ * @param {NotificationFindUniqueOrThrowArgs} args - Arguments to find a Notification
1213
+ * @example
1214
+ * // Get one Notification
1215
+ * const notification = await prisma.notification.findUniqueOrThrow({
1216
+ * where: {
1217
+ * // ... provide filter here
1218
+ * }
1219
+ * })
1220
+ */
1221
+ findUniqueOrThrow<T extends NotificationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, NotificationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1222
+ /**
1223
+ * Find the first Notification that matches the filter.
1224
+ * Note, that providing `undefined` is treated as the value not being there.
1225
+ * Read more here: https://pris.ly/d/null-undefined
1226
+ * @param {NotificationFindFirstArgs} args - Arguments to find a Notification
1227
+ * @example
1228
+ * // Get one Notification
1229
+ * const notification = await prisma.notification.findFirst({
1230
+ * where: {
1231
+ * // ... provide filter here
1232
+ * }
1233
+ * })
1234
+ */
1235
+ findFirst<T extends NotificationFindFirstArgs>(args?: Prisma.SelectSubset<T, NotificationFindFirstArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1236
+ /**
1237
+ * Find the first Notification that matches the filter or
1238
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1239
+ * Note, that providing `undefined` is treated as the value not being there.
1240
+ * Read more here: https://pris.ly/d/null-undefined
1241
+ * @param {NotificationFindFirstOrThrowArgs} args - Arguments to find a Notification
1242
+ * @example
1243
+ * // Get one Notification
1244
+ * const notification = await prisma.notification.findFirstOrThrow({
1245
+ * where: {
1246
+ * // ... provide filter here
1247
+ * }
1248
+ * })
1249
+ */
1250
+ findFirstOrThrow<T extends NotificationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, NotificationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1251
+ /**
1252
+ * Find zero or more Notifications that matches the filter.
1253
+ * Note, that providing `undefined` is treated as the value not being there.
1254
+ * Read more here: https://pris.ly/d/null-undefined
1255
+ * @param {NotificationFindManyArgs} args - Arguments to filter and select certain fields only.
1256
+ * @example
1257
+ * // Get all Notifications
1258
+ * const notifications = await prisma.notification.findMany()
1259
+ *
1260
+ * // Get first 10 Notifications
1261
+ * const notifications = await prisma.notification.findMany({ take: 10 })
1262
+ *
1263
+ * // Only select the `id`
1264
+ * const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } })
1265
+ *
1266
+ */
1267
+ findMany<T extends NotificationFindManyArgs>(args?: Prisma.SelectSubset<T, NotificationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1268
+ /**
1269
+ * Create a Notification.
1270
+ * @param {NotificationCreateArgs} args - Arguments to create a Notification.
1271
+ * @example
1272
+ * // Create one Notification
1273
+ * const Notification = await prisma.notification.create({
1274
+ * data: {
1275
+ * // ... data to create a Notification
1276
+ * }
1277
+ * })
1278
+ *
1279
+ */
1280
+ create<T extends NotificationCreateArgs>(args: Prisma.SelectSubset<T, NotificationCreateArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1281
+ /**
1282
+ * Create many Notifications.
1283
+ * @param {NotificationCreateManyArgs} args - Arguments to create many Notifications.
1284
+ * @example
1285
+ * // Create many Notifications
1286
+ * const notification = await prisma.notification.createMany({
1287
+ * data: [
1288
+ * // ... provide data here
1289
+ * ]
1290
+ * })
1291
+ *
1292
+ */
1293
+ createMany<T extends NotificationCreateManyArgs>(args?: Prisma.SelectSubset<T, NotificationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1294
+ /**
1295
+ * Create many Notifications and returns the data saved in the database.
1296
+ * @param {NotificationCreateManyAndReturnArgs} args - Arguments to create many Notifications.
1297
+ * @example
1298
+ * // Create many Notifications
1299
+ * const notification = await prisma.notification.createManyAndReturn({
1300
+ * data: [
1301
+ * // ... provide data here
1302
+ * ]
1303
+ * })
1304
+ *
1305
+ * // Create many Notifications and only return the `id`
1306
+ * const notificationWithIdOnly = await prisma.notification.createManyAndReturn({
1307
+ * select: { id: true },
1308
+ * data: [
1309
+ * // ... provide data here
1310
+ * ]
1311
+ * })
1312
+ * Note, that providing `undefined` is treated as the value not being there.
1313
+ * Read more here: https://pris.ly/d/null-undefined
1314
+ *
1315
+ */
1316
+ createManyAndReturn<T extends NotificationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, NotificationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1317
+ /**
1318
+ * Delete a Notification.
1319
+ * @param {NotificationDeleteArgs} args - Arguments to delete one Notification.
1320
+ * @example
1321
+ * // Delete one Notification
1322
+ * const Notification = await prisma.notification.delete({
1323
+ * where: {
1324
+ * // ... filter to delete one Notification
1325
+ * }
1326
+ * })
1327
+ *
1328
+ */
1329
+ delete<T extends NotificationDeleteArgs>(args: Prisma.SelectSubset<T, NotificationDeleteArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1330
+ /**
1331
+ * Update one Notification.
1332
+ * @param {NotificationUpdateArgs} args - Arguments to update one Notification.
1333
+ * @example
1334
+ * // Update one Notification
1335
+ * const notification = await prisma.notification.update({
1336
+ * where: {
1337
+ * // ... provide filter here
1338
+ * },
1339
+ * data: {
1340
+ * // ... provide data here
1341
+ * }
1342
+ * })
1343
+ *
1344
+ */
1345
+ update<T extends NotificationUpdateArgs>(args: Prisma.SelectSubset<T, NotificationUpdateArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1346
+ /**
1347
+ * Delete zero or more Notifications.
1348
+ * @param {NotificationDeleteManyArgs} args - Arguments to filter Notifications to delete.
1349
+ * @example
1350
+ * // Delete a few Notifications
1351
+ * const { count } = await prisma.notification.deleteMany({
1352
+ * where: {
1353
+ * // ... provide filter here
1354
+ * }
1355
+ * })
1356
+ *
1357
+ */
1358
+ deleteMany<T extends NotificationDeleteManyArgs>(args?: Prisma.SelectSubset<T, NotificationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1359
+ /**
1360
+ * Update zero or more Notifications.
1361
+ * Note, that providing `undefined` is treated as the value not being there.
1362
+ * Read more here: https://pris.ly/d/null-undefined
1363
+ * @param {NotificationUpdateManyArgs} args - Arguments to update one or more rows.
1364
+ * @example
1365
+ * // Update many Notifications
1366
+ * const notification = await prisma.notification.updateMany({
1367
+ * where: {
1368
+ * // ... provide filter here
1369
+ * },
1370
+ * data: {
1371
+ * // ... provide data here
1372
+ * }
1373
+ * })
1374
+ *
1375
+ */
1376
+ updateMany<T extends NotificationUpdateManyArgs>(args: Prisma.SelectSubset<T, NotificationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1377
+ /**
1378
+ * Update zero or more Notifications and returns the data updated in the database.
1379
+ * @param {NotificationUpdateManyAndReturnArgs} args - Arguments to update many Notifications.
1380
+ * @example
1381
+ * // Update many Notifications
1382
+ * const notification = await prisma.notification.updateManyAndReturn({
1383
+ * where: {
1384
+ * // ... provide filter here
1385
+ * },
1386
+ * data: [
1387
+ * // ... provide data here
1388
+ * ]
1389
+ * })
1390
+ *
1391
+ * // Update zero or more Notifications and only return the `id`
1392
+ * const notificationWithIdOnly = await prisma.notification.updateManyAndReturn({
1393
+ * select: { id: true },
1394
+ * where: {
1395
+ * // ... provide filter here
1396
+ * },
1397
+ * data: [
1398
+ * // ... provide data here
1399
+ * ]
1400
+ * })
1401
+ * Note, that providing `undefined` is treated as the value not being there.
1402
+ * Read more here: https://pris.ly/d/null-undefined
1403
+ *
1404
+ */
1405
+ updateManyAndReturn<T extends NotificationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, NotificationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1406
+ /**
1407
+ * Create or update one Notification.
1408
+ * @param {NotificationUpsertArgs} args - Arguments to update or create a Notification.
1409
+ * @example
1410
+ * // Update or create a Notification
1411
+ * const notification = await prisma.notification.upsert({
1412
+ * create: {
1413
+ * // ... data to create a Notification
1414
+ * },
1415
+ * update: {
1416
+ * // ... in case it already exists, update
1417
+ * },
1418
+ * where: {
1419
+ * // ... the filter for the Notification we want to update
1420
+ * }
1421
+ * })
1422
+ */
1423
+ upsert<T extends NotificationUpsertArgs>(args: Prisma.SelectSubset<T, NotificationUpsertArgs<ExtArgs>>): Prisma.Prisma__NotificationClient<runtime.Types.Result.GetResult<Prisma.$NotificationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1424
+ /**
1425
+ * Count the number of Notifications.
1426
+ * Note, that providing `undefined` is treated as the value not being there.
1427
+ * Read more here: https://pris.ly/d/null-undefined
1428
+ * @param {NotificationCountArgs} args - Arguments to filter Notifications to count.
1429
+ * @example
1430
+ * // Count the number of Notifications
1431
+ * const count = await prisma.notification.count({
1432
+ * where: {
1433
+ * // ... the filter for the Notifications we want to count
1434
+ * }
1435
+ * })
1436
+ **/
1437
+ count<T extends NotificationCountArgs>(args?: Prisma.Subset<T, NotificationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], NotificationCountAggregateOutputType> : number>;
1438
+ /**
1439
+ * Allows you to perform aggregations operations on a Notification.
1440
+ * Note, that providing `undefined` is treated as the value not being there.
1441
+ * Read more here: https://pris.ly/d/null-undefined
1442
+ * @param {NotificationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1443
+ * @example
1444
+ * // Ordered by age ascending
1445
+ * // Where email contains prisma.io
1446
+ * // Limited to the 10 users
1447
+ * const aggregations = await prisma.user.aggregate({
1448
+ * _avg: {
1449
+ * age: true,
1450
+ * },
1451
+ * where: {
1452
+ * email: {
1453
+ * contains: "prisma.io",
1454
+ * },
1455
+ * },
1456
+ * orderBy: {
1457
+ * age: "asc",
1458
+ * },
1459
+ * take: 10,
1460
+ * })
1461
+ **/
1462
+ aggregate<T extends NotificationAggregateArgs>(args: Prisma.Subset<T, NotificationAggregateArgs>): Prisma.PrismaPromise<GetNotificationAggregateType<T>>;
1463
+ /**
1464
+ * Group by Notification.
1465
+ * Note, that providing `undefined` is treated as the value not being there.
1466
+ * Read more here: https://pris.ly/d/null-undefined
1467
+ * @param {NotificationGroupByArgs} args - Group by arguments.
1468
+ * @example
1469
+ * // Group by city, order by createdAt, get count
1470
+ * const result = await prisma.user.groupBy({
1471
+ * by: ['city', 'createdAt'],
1472
+ * orderBy: {
1473
+ * createdAt: true
1474
+ * },
1475
+ * _count: {
1476
+ * _all: true
1477
+ * },
1478
+ * })
1479
+ *
1480
+ **/
1481
+ groupBy<T extends NotificationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1482
+ orderBy: NotificationGroupByArgs['orderBy'];
1483
+ } : {
1484
+ orderBy?: NotificationGroupByArgs['orderBy'];
1485
+ }, 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 ? {
1486
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1487
+ Error,
1488
+ 'Field ',
1489
+ P,
1490
+ ` in "having" needs to be provided in "by"`
1491
+ ];
1492
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1493
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1494
+ }[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 ? {} : {
1495
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1496
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1497
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1498
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, NotificationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotificationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1499
+ /**
1500
+ * Fields of the Notification model
1501
+ */
1502
+ readonly fields: NotificationFieldRefs;
1503
+ }
1504
+ /**
1505
+ * The delegate class that acts as a "Promise-like" for Notification.
1506
+ * Why is this prefixed with `Prisma__`?
1507
+ * Because we want to prevent naming conflicts as mentioned in
1508
+ * https://github.com/prisma/prisma-client-js/issues/707
1509
+ */
1510
+ export interface Prisma__NotificationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1511
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1512
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1513
+ actor<T extends Prisma.Notification$actorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Notification$actorArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1514
+ workspace<T extends Prisma.Notification$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Notification$workspaceArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1515
+ /**
1516
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1517
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1518
+ * @param onrejected The callback to execute when the Promise is rejected.
1519
+ * @returns A Promise for the completion of which ever callback is executed.
1520
+ */
1521
+ 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>;
1522
+ /**
1523
+ * Attaches a callback for only the rejection of the Promise.
1524
+ * @param onrejected The callback to execute when the Promise is rejected.
1525
+ * @returns A Promise for the completion of the callback.
1526
+ */
1527
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1528
+ /**
1529
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1530
+ * resolved value cannot be modified from the callback.
1531
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1532
+ * @returns A Promise for the completion of the callback.
1533
+ */
1534
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1535
+ }
1536
+ /**
1537
+ * Fields of the Notification model
1538
+ */
1539
+ export interface NotificationFieldRefs {
1540
+ readonly id: Prisma.FieldRef<"Notification", 'String'>;
1541
+ readonly userId: Prisma.FieldRef<"Notification", 'String'>;
1542
+ readonly actorUserId: Prisma.FieldRef<"Notification", 'String'>;
1543
+ readonly workspaceId: Prisma.FieldRef<"Notification", 'String'>;
1544
+ readonly type: Prisma.FieldRef<"Notification", 'String'>;
1545
+ readonly title: Prisma.FieldRef<"Notification", 'String'>;
1546
+ readonly body: Prisma.FieldRef<"Notification", 'String'>;
1547
+ readonly content: Prisma.FieldRef<"Notification", 'String'>;
1548
+ readonly actionUrl: Prisma.FieldRef<"Notification", 'String'>;
1549
+ readonly metadata: Prisma.FieldRef<"Notification", 'Json'>;
1550
+ readonly priority: Prisma.FieldRef<"Notification", 'NotificationPriority'>;
1551
+ readonly sourceId: Prisma.FieldRef<"Notification", 'String'>;
1552
+ readonly read: Prisma.FieldRef<"Notification", 'Boolean'>;
1553
+ readonly readAt: Prisma.FieldRef<"Notification", 'DateTime'>;
1554
+ readonly deliveredAt: Prisma.FieldRef<"Notification", 'DateTime'>;
1555
+ readonly createdAt: Prisma.FieldRef<"Notification", 'DateTime'>;
1556
+ readonly updatedAt: Prisma.FieldRef<"Notification", 'DateTime'>;
1557
+ }
1558
+ /**
1559
+ * Notification findUnique
1560
+ */
1561
+ export type NotificationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1562
+ /**
1563
+ * Select specific fields to fetch from the Notification
1564
+ */
1565
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1566
+ /**
1567
+ * Omit specific fields from the Notification
1568
+ */
1569
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1570
+ /**
1571
+ * Choose, which related nodes to fetch as well
1572
+ */
1573
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1574
+ /**
1575
+ * Filter, which Notification to fetch.
1576
+ */
1577
+ where: Prisma.NotificationWhereUniqueInput;
1578
+ };
1579
+ /**
1580
+ * Notification findUniqueOrThrow
1581
+ */
1582
+ export type NotificationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1583
+ /**
1584
+ * Select specific fields to fetch from the Notification
1585
+ */
1586
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1587
+ /**
1588
+ * Omit specific fields from the Notification
1589
+ */
1590
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1591
+ /**
1592
+ * Choose, which related nodes to fetch as well
1593
+ */
1594
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1595
+ /**
1596
+ * Filter, which Notification to fetch.
1597
+ */
1598
+ where: Prisma.NotificationWhereUniqueInput;
1599
+ };
1600
+ /**
1601
+ * Notification findFirst
1602
+ */
1603
+ export type NotificationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1604
+ /**
1605
+ * Select specific fields to fetch from the Notification
1606
+ */
1607
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1608
+ /**
1609
+ * Omit specific fields from the Notification
1610
+ */
1611
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1612
+ /**
1613
+ * Choose, which related nodes to fetch as well
1614
+ */
1615
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1616
+ /**
1617
+ * Filter, which Notification to fetch.
1618
+ */
1619
+ where?: Prisma.NotificationWhereInput;
1620
+ /**
1621
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1622
+ *
1623
+ * Determine the order of Notifications to fetch.
1624
+ */
1625
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
1626
+ /**
1627
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1628
+ *
1629
+ * Sets the position for searching for Notifications.
1630
+ */
1631
+ cursor?: Prisma.NotificationWhereUniqueInput;
1632
+ /**
1633
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1634
+ *
1635
+ * Take `±n` Notifications from the position of the cursor.
1636
+ */
1637
+ take?: number;
1638
+ /**
1639
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1640
+ *
1641
+ * Skip the first `n` Notifications.
1642
+ */
1643
+ skip?: number;
1644
+ /**
1645
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1646
+ *
1647
+ * Filter by unique combinations of Notifications.
1648
+ */
1649
+ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[];
1650
+ };
1651
+ /**
1652
+ * Notification findFirstOrThrow
1653
+ */
1654
+ export type NotificationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1655
+ /**
1656
+ * Select specific fields to fetch from the Notification
1657
+ */
1658
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1659
+ /**
1660
+ * Omit specific fields from the Notification
1661
+ */
1662
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1663
+ /**
1664
+ * Choose, which related nodes to fetch as well
1665
+ */
1666
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1667
+ /**
1668
+ * Filter, which Notification to fetch.
1669
+ */
1670
+ where?: Prisma.NotificationWhereInput;
1671
+ /**
1672
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1673
+ *
1674
+ * Determine the order of Notifications to fetch.
1675
+ */
1676
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
1677
+ /**
1678
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1679
+ *
1680
+ * Sets the position for searching for Notifications.
1681
+ */
1682
+ cursor?: Prisma.NotificationWhereUniqueInput;
1683
+ /**
1684
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1685
+ *
1686
+ * Take `±n` Notifications from the position of the cursor.
1687
+ */
1688
+ take?: number;
1689
+ /**
1690
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1691
+ *
1692
+ * Skip the first `n` Notifications.
1693
+ */
1694
+ skip?: number;
1695
+ /**
1696
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1697
+ *
1698
+ * Filter by unique combinations of Notifications.
1699
+ */
1700
+ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[];
1701
+ };
1702
+ /**
1703
+ * Notification findMany
1704
+ */
1705
+ export type NotificationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1706
+ /**
1707
+ * Select specific fields to fetch from the Notification
1708
+ */
1709
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1710
+ /**
1711
+ * Omit specific fields from the Notification
1712
+ */
1713
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1714
+ /**
1715
+ * Choose, which related nodes to fetch as well
1716
+ */
1717
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1718
+ /**
1719
+ * Filter, which Notifications to fetch.
1720
+ */
1721
+ where?: Prisma.NotificationWhereInput;
1722
+ /**
1723
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1724
+ *
1725
+ * Determine the order of Notifications to fetch.
1726
+ */
1727
+ orderBy?: Prisma.NotificationOrderByWithRelationInput | Prisma.NotificationOrderByWithRelationInput[];
1728
+ /**
1729
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1730
+ *
1731
+ * Sets the position for listing Notifications.
1732
+ */
1733
+ cursor?: Prisma.NotificationWhereUniqueInput;
1734
+ /**
1735
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1736
+ *
1737
+ * Take `±n` Notifications from the position of the cursor.
1738
+ */
1739
+ take?: number;
1740
+ /**
1741
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1742
+ *
1743
+ * Skip the first `n` Notifications.
1744
+ */
1745
+ skip?: number;
1746
+ /**
1747
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1748
+ *
1749
+ * Filter by unique combinations of Notifications.
1750
+ */
1751
+ distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[];
1752
+ };
1753
+ /**
1754
+ * Notification create
1755
+ */
1756
+ export type NotificationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1757
+ /**
1758
+ * Select specific fields to fetch from the Notification
1759
+ */
1760
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1761
+ /**
1762
+ * Omit specific fields from the Notification
1763
+ */
1764
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1765
+ /**
1766
+ * Choose, which related nodes to fetch as well
1767
+ */
1768
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1769
+ /**
1770
+ * The data needed to create a Notification.
1771
+ */
1772
+ data: Prisma.XOR<Prisma.NotificationCreateInput, Prisma.NotificationUncheckedCreateInput>;
1773
+ };
1774
+ /**
1775
+ * Notification createMany
1776
+ */
1777
+ export type NotificationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1778
+ /**
1779
+ * The data used to create many Notifications.
1780
+ */
1781
+ data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[];
1782
+ skipDuplicates?: boolean;
1783
+ };
1784
+ /**
1785
+ * Notification createManyAndReturn
1786
+ */
1787
+ export type NotificationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1788
+ /**
1789
+ * Select specific fields to fetch from the Notification
1790
+ */
1791
+ select?: Prisma.NotificationSelectCreateManyAndReturn<ExtArgs> | null;
1792
+ /**
1793
+ * Omit specific fields from the Notification
1794
+ */
1795
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1796
+ /**
1797
+ * The data used to create many Notifications.
1798
+ */
1799
+ data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[];
1800
+ skipDuplicates?: boolean;
1801
+ /**
1802
+ * Choose, which related nodes to fetch as well
1803
+ */
1804
+ include?: Prisma.NotificationIncludeCreateManyAndReturn<ExtArgs> | null;
1805
+ };
1806
+ /**
1807
+ * Notification update
1808
+ */
1809
+ export type NotificationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1810
+ /**
1811
+ * Select specific fields to fetch from the Notification
1812
+ */
1813
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1814
+ /**
1815
+ * Omit specific fields from the Notification
1816
+ */
1817
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1818
+ /**
1819
+ * Choose, which related nodes to fetch as well
1820
+ */
1821
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1822
+ /**
1823
+ * The data needed to update a Notification.
1824
+ */
1825
+ data: Prisma.XOR<Prisma.NotificationUpdateInput, Prisma.NotificationUncheckedUpdateInput>;
1826
+ /**
1827
+ * Choose, which Notification to update.
1828
+ */
1829
+ where: Prisma.NotificationWhereUniqueInput;
1830
+ };
1831
+ /**
1832
+ * Notification updateMany
1833
+ */
1834
+ export type NotificationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1835
+ /**
1836
+ * The data used to update Notifications.
1837
+ */
1838
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyInput>;
1839
+ /**
1840
+ * Filter which Notifications to update
1841
+ */
1842
+ where?: Prisma.NotificationWhereInput;
1843
+ /**
1844
+ * Limit how many Notifications to update.
1845
+ */
1846
+ limit?: number;
1847
+ };
1848
+ /**
1849
+ * Notification updateManyAndReturn
1850
+ */
1851
+ export type NotificationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1852
+ /**
1853
+ * Select specific fields to fetch from the Notification
1854
+ */
1855
+ select?: Prisma.NotificationSelectUpdateManyAndReturn<ExtArgs> | null;
1856
+ /**
1857
+ * Omit specific fields from the Notification
1858
+ */
1859
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1860
+ /**
1861
+ * The data used to update Notifications.
1862
+ */
1863
+ data: Prisma.XOR<Prisma.NotificationUpdateManyMutationInput, Prisma.NotificationUncheckedUpdateManyInput>;
1864
+ /**
1865
+ * Filter which Notifications to update
1866
+ */
1867
+ where?: Prisma.NotificationWhereInput;
1868
+ /**
1869
+ * Limit how many Notifications to update.
1870
+ */
1871
+ limit?: number;
1872
+ /**
1873
+ * Choose, which related nodes to fetch as well
1874
+ */
1875
+ include?: Prisma.NotificationIncludeUpdateManyAndReturn<ExtArgs> | null;
1876
+ };
1877
+ /**
1878
+ * Notification upsert
1879
+ */
1880
+ export type NotificationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1881
+ /**
1882
+ * Select specific fields to fetch from the Notification
1883
+ */
1884
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1885
+ /**
1886
+ * Omit specific fields from the Notification
1887
+ */
1888
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1889
+ /**
1890
+ * Choose, which related nodes to fetch as well
1891
+ */
1892
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1893
+ /**
1894
+ * The filter to search for the Notification to update in case it exists.
1895
+ */
1896
+ where: Prisma.NotificationWhereUniqueInput;
1897
+ /**
1898
+ * In case the Notification found by the `where` argument doesn't exist, create a new Notification with this data.
1899
+ */
1900
+ create: Prisma.XOR<Prisma.NotificationCreateInput, Prisma.NotificationUncheckedCreateInput>;
1901
+ /**
1902
+ * In case the Notification was found with the provided `where` argument, update it with this data.
1903
+ */
1904
+ update: Prisma.XOR<Prisma.NotificationUpdateInput, Prisma.NotificationUncheckedUpdateInput>;
1905
+ };
1906
+ /**
1907
+ * Notification delete
1908
+ */
1909
+ export type NotificationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1910
+ /**
1911
+ * Select specific fields to fetch from the Notification
1912
+ */
1913
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1914
+ /**
1915
+ * Omit specific fields from the Notification
1916
+ */
1917
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1918
+ /**
1919
+ * Choose, which related nodes to fetch as well
1920
+ */
1921
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1922
+ /**
1923
+ * Filter which Notification to delete.
1924
+ */
1925
+ where: Prisma.NotificationWhereUniqueInput;
1926
+ };
1927
+ /**
1928
+ * Notification deleteMany
1929
+ */
1930
+ export type NotificationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1931
+ /**
1932
+ * Filter which Notifications to delete
1933
+ */
1934
+ where?: Prisma.NotificationWhereInput;
1935
+ /**
1936
+ * Limit how many Notifications to delete.
1937
+ */
1938
+ limit?: number;
1939
+ };
1940
+ /**
1941
+ * Notification.actor
1942
+ */
1943
+ export type Notification$actorArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1944
+ /**
1945
+ * Select specific fields to fetch from the User
1946
+ */
1947
+ select?: Prisma.UserSelect<ExtArgs> | null;
1948
+ /**
1949
+ * Omit specific fields from the User
1950
+ */
1951
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1952
+ /**
1953
+ * Choose, which related nodes to fetch as well
1954
+ */
1955
+ include?: Prisma.UserInclude<ExtArgs> | null;
1956
+ where?: Prisma.UserWhereInput;
1957
+ };
1958
+ /**
1959
+ * Notification.workspace
1960
+ */
1961
+ export type Notification$workspaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1962
+ /**
1963
+ * Select specific fields to fetch from the Workspace
1964
+ */
1965
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null;
1966
+ /**
1967
+ * Omit specific fields from the Workspace
1968
+ */
1969
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null;
1970
+ /**
1971
+ * Choose, which related nodes to fetch as well
1972
+ */
1973
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null;
1974
+ where?: Prisma.WorkspaceWhereInput;
1975
+ };
1976
+ /**
1977
+ * Notification without action
1978
+ */
1979
+ export type NotificationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1980
+ /**
1981
+ * Select specific fields to fetch from the Notification
1982
+ */
1983
+ select?: Prisma.NotificationSelect<ExtArgs> | null;
1984
+ /**
1985
+ * Omit specific fields from the Notification
1986
+ */
1987
+ omit?: Prisma.NotificationOmit<ExtArgs> | null;
1988
+ /**
1989
+ * Choose, which related nodes to fetch as well
1990
+ */
1991
+ include?: Prisma.NotificationInclude<ExtArgs> | null;
1992
+ };