@allbluecn/database 0.4.0 → 0.4.2

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 (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1664 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `StoryActivity` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model StoryActivity
17
+ *
18
+ */
19
+ export type StoryActivityModel = runtime.Types.Result.DefaultSelection<Prisma.$StoryActivityPayload>
20
+
21
+ export type AggregateStoryActivity = {
22
+ _count: StoryActivityCountAggregateOutputType | null
23
+ _min: StoryActivityMinAggregateOutputType | null
24
+ _max: StoryActivityMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type StoryActivityMinAggregateOutputType = {
28
+ id: string | null
29
+ storyId: string | null
30
+ userId: string | null
31
+ action: string | null
32
+ field: string | null
33
+ oldValue: string | null
34
+ newValue: string | null
35
+ isAI: boolean | null
36
+ createdAt: Date | null
37
+ }
38
+
39
+ export type StoryActivityMaxAggregateOutputType = {
40
+ id: string | null
41
+ storyId: string | null
42
+ userId: string | null
43
+ action: string | null
44
+ field: string | null
45
+ oldValue: string | null
46
+ newValue: string | null
47
+ isAI: boolean | null
48
+ createdAt: Date | null
49
+ }
50
+
51
+ export type StoryActivityCountAggregateOutputType = {
52
+ id: number
53
+ storyId: number
54
+ userId: number
55
+ action: number
56
+ field: number
57
+ oldValue: number
58
+ newValue: number
59
+ isAI: number
60
+ metadata: number
61
+ createdAt: number
62
+ _all: number
63
+ }
64
+
65
+
66
+ export type StoryActivityMinAggregateInputType = {
67
+ id?: true
68
+ storyId?: true
69
+ userId?: true
70
+ action?: true
71
+ field?: true
72
+ oldValue?: true
73
+ newValue?: true
74
+ isAI?: true
75
+ createdAt?: true
76
+ }
77
+
78
+ export type StoryActivityMaxAggregateInputType = {
79
+ id?: true
80
+ storyId?: true
81
+ userId?: true
82
+ action?: true
83
+ field?: true
84
+ oldValue?: true
85
+ newValue?: true
86
+ isAI?: true
87
+ createdAt?: true
88
+ }
89
+
90
+ export type StoryActivityCountAggregateInputType = {
91
+ id?: true
92
+ storyId?: true
93
+ userId?: true
94
+ action?: true
95
+ field?: true
96
+ oldValue?: true
97
+ newValue?: true
98
+ isAI?: true
99
+ metadata?: true
100
+ createdAt?: true
101
+ _all?: true
102
+ }
103
+
104
+ export type StoryActivityAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
105
+ /**
106
+ * Filter which StoryActivity to aggregate.
107
+ */
108
+ where?: Prisma.StoryActivityWhereInput
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
111
+ *
112
+ * Determine the order of StoryActivities to fetch.
113
+ */
114
+ orderBy?: Prisma.StoryActivityOrderByWithRelationInput | Prisma.StoryActivityOrderByWithRelationInput[]
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
117
+ *
118
+ * Sets the start position
119
+ */
120
+ cursor?: Prisma.StoryActivityWhereUniqueInput
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
123
+ *
124
+ * Take `±n` StoryActivities from the position of the cursor.
125
+ */
126
+ take?: number
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Skip the first `n` StoryActivities.
131
+ */
132
+ skip?: number
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
+ *
136
+ * Count returned StoryActivities
137
+ **/
138
+ _count?: true | StoryActivityCountAggregateInputType
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Select which fields to find the minimum value
143
+ **/
144
+ _min?: StoryActivityMinAggregateInputType
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the maximum value
149
+ **/
150
+ _max?: StoryActivityMaxAggregateInputType
151
+ }
152
+
153
+ export type GetStoryActivityAggregateType<T extends StoryActivityAggregateArgs> = {
154
+ [P in keyof T & keyof AggregateStoryActivity]: P extends '_count' | 'count'
155
+ ? T[P] extends true
156
+ ? number
157
+ : Prisma.GetScalarType<T[P], AggregateStoryActivity[P]>
158
+ : Prisma.GetScalarType<T[P], AggregateStoryActivity[P]>
159
+ }
160
+
161
+
162
+
163
+
164
+ export type StoryActivityGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ where?: Prisma.StoryActivityWhereInput
166
+ orderBy?: Prisma.StoryActivityOrderByWithAggregationInput | Prisma.StoryActivityOrderByWithAggregationInput[]
167
+ by: Prisma.StoryActivityScalarFieldEnum[] | Prisma.StoryActivityScalarFieldEnum
168
+ having?: Prisma.StoryActivityScalarWhereWithAggregatesInput
169
+ take?: number
170
+ skip?: number
171
+ _count?: StoryActivityCountAggregateInputType | true
172
+ _min?: StoryActivityMinAggregateInputType
173
+ _max?: StoryActivityMaxAggregateInputType
174
+ }
175
+
176
+ export type StoryActivityGroupByOutputType = {
177
+ id: string
178
+ storyId: string
179
+ userId: string
180
+ action: string
181
+ field: string | null
182
+ oldValue: string | null
183
+ newValue: string | null
184
+ isAI: boolean
185
+ metadata: runtime.JsonValue | null
186
+ createdAt: Date
187
+ _count: StoryActivityCountAggregateOutputType | null
188
+ _min: StoryActivityMinAggregateOutputType | null
189
+ _max: StoryActivityMaxAggregateOutputType | null
190
+ }
191
+
192
+ export type GetStoryActivityGroupByPayload<T extends StoryActivityGroupByArgs> = Prisma.PrismaPromise<
193
+ Array<
194
+ Prisma.PickEnumerable<StoryActivityGroupByOutputType, T['by']> &
195
+ {
196
+ [P in ((keyof T) & (keyof StoryActivityGroupByOutputType))]: P extends '_count'
197
+ ? T[P] extends boolean
198
+ ? number
199
+ : Prisma.GetScalarType<T[P], StoryActivityGroupByOutputType[P]>
200
+ : Prisma.GetScalarType<T[P], StoryActivityGroupByOutputType[P]>
201
+ }
202
+ >
203
+ >
204
+
205
+
206
+
207
+ export type StoryActivityWhereInput = {
208
+ AND?: Prisma.StoryActivityWhereInput | Prisma.StoryActivityWhereInput[]
209
+ OR?: Prisma.StoryActivityWhereInput[]
210
+ NOT?: Prisma.StoryActivityWhereInput | Prisma.StoryActivityWhereInput[]
211
+ id?: Prisma.StringFilter<"StoryActivity"> | string
212
+ storyId?: Prisma.StringFilter<"StoryActivity"> | string
213
+ userId?: Prisma.StringFilter<"StoryActivity"> | string
214
+ action?: Prisma.StringFilter<"StoryActivity"> | string
215
+ field?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
216
+ oldValue?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
217
+ newValue?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
218
+ isAI?: Prisma.BoolFilter<"StoryActivity"> | boolean
219
+ metadata?: Prisma.JsonNullableFilter<"StoryActivity">
220
+ createdAt?: Prisma.DateTimeFilter<"StoryActivity"> | Date | string
221
+ story?: Prisma.XOR<Prisma.StoryScalarRelationFilter, Prisma.StoryWhereInput>
222
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
223
+ }
224
+
225
+ export type StoryActivityOrderByWithRelationInput = {
226
+ id?: Prisma.SortOrder
227
+ storyId?: Prisma.SortOrder
228
+ userId?: Prisma.SortOrder
229
+ action?: Prisma.SortOrder
230
+ field?: Prisma.SortOrderInput | Prisma.SortOrder
231
+ oldValue?: Prisma.SortOrderInput | Prisma.SortOrder
232
+ newValue?: Prisma.SortOrderInput | Prisma.SortOrder
233
+ isAI?: Prisma.SortOrder
234
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder
235
+ createdAt?: Prisma.SortOrder
236
+ story?: Prisma.StoryOrderByWithRelationInput
237
+ user?: Prisma.UserOrderByWithRelationInput
238
+ }
239
+
240
+ export type StoryActivityWhereUniqueInput = Prisma.AtLeast<{
241
+ id?: string
242
+ AND?: Prisma.StoryActivityWhereInput | Prisma.StoryActivityWhereInput[]
243
+ OR?: Prisma.StoryActivityWhereInput[]
244
+ NOT?: Prisma.StoryActivityWhereInput | Prisma.StoryActivityWhereInput[]
245
+ storyId?: Prisma.StringFilter<"StoryActivity"> | string
246
+ userId?: Prisma.StringFilter<"StoryActivity"> | string
247
+ action?: Prisma.StringFilter<"StoryActivity"> | string
248
+ field?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
249
+ oldValue?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
250
+ newValue?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
251
+ isAI?: Prisma.BoolFilter<"StoryActivity"> | boolean
252
+ metadata?: Prisma.JsonNullableFilter<"StoryActivity">
253
+ createdAt?: Prisma.DateTimeFilter<"StoryActivity"> | Date | string
254
+ story?: Prisma.XOR<Prisma.StoryScalarRelationFilter, Prisma.StoryWhereInput>
255
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
256
+ }, "id">
257
+
258
+ export type StoryActivityOrderByWithAggregationInput = {
259
+ id?: Prisma.SortOrder
260
+ storyId?: Prisma.SortOrder
261
+ userId?: Prisma.SortOrder
262
+ action?: Prisma.SortOrder
263
+ field?: Prisma.SortOrderInput | Prisma.SortOrder
264
+ oldValue?: Prisma.SortOrderInput | Prisma.SortOrder
265
+ newValue?: Prisma.SortOrderInput | Prisma.SortOrder
266
+ isAI?: Prisma.SortOrder
267
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder
268
+ createdAt?: Prisma.SortOrder
269
+ _count?: Prisma.StoryActivityCountOrderByAggregateInput
270
+ _max?: Prisma.StoryActivityMaxOrderByAggregateInput
271
+ _min?: Prisma.StoryActivityMinOrderByAggregateInput
272
+ }
273
+
274
+ export type StoryActivityScalarWhereWithAggregatesInput = {
275
+ AND?: Prisma.StoryActivityScalarWhereWithAggregatesInput | Prisma.StoryActivityScalarWhereWithAggregatesInput[]
276
+ OR?: Prisma.StoryActivityScalarWhereWithAggregatesInput[]
277
+ NOT?: Prisma.StoryActivityScalarWhereWithAggregatesInput | Prisma.StoryActivityScalarWhereWithAggregatesInput[]
278
+ id?: Prisma.StringWithAggregatesFilter<"StoryActivity"> | string
279
+ storyId?: Prisma.StringWithAggregatesFilter<"StoryActivity"> | string
280
+ userId?: Prisma.StringWithAggregatesFilter<"StoryActivity"> | string
281
+ action?: Prisma.StringWithAggregatesFilter<"StoryActivity"> | string
282
+ field?: Prisma.StringNullableWithAggregatesFilter<"StoryActivity"> | string | null
283
+ oldValue?: Prisma.StringNullableWithAggregatesFilter<"StoryActivity"> | string | null
284
+ newValue?: Prisma.StringNullableWithAggregatesFilter<"StoryActivity"> | string | null
285
+ isAI?: Prisma.BoolWithAggregatesFilter<"StoryActivity"> | boolean
286
+ metadata?: Prisma.JsonNullableWithAggregatesFilter<"StoryActivity">
287
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"StoryActivity"> | Date | string
288
+ }
289
+
290
+ export type StoryActivityCreateInput = {
291
+ id?: string
292
+ action: string
293
+ field?: string | null
294
+ oldValue?: string | null
295
+ newValue?: string | null
296
+ isAI?: boolean
297
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
298
+ createdAt?: Date | string
299
+ story: Prisma.StoryCreateNestedOneWithoutActivitiesInput
300
+ user: Prisma.UserCreateNestedOneWithoutStoryActivitiesInput
301
+ }
302
+
303
+ export type StoryActivityUncheckedCreateInput = {
304
+ id?: string
305
+ storyId: string
306
+ userId: string
307
+ action: string
308
+ field?: string | null
309
+ oldValue?: string | null
310
+ newValue?: string | null
311
+ isAI?: boolean
312
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
313
+ createdAt?: Date | string
314
+ }
315
+
316
+ export type StoryActivityUpdateInput = {
317
+ id?: Prisma.StringFieldUpdateOperationsInput | string
318
+ action?: Prisma.StringFieldUpdateOperationsInput | string
319
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
320
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
321
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
322
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
323
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
324
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
325
+ story?: Prisma.StoryUpdateOneRequiredWithoutActivitiesNestedInput
326
+ user?: Prisma.UserUpdateOneRequiredWithoutStoryActivitiesNestedInput
327
+ }
328
+
329
+ export type StoryActivityUncheckedUpdateInput = {
330
+ id?: Prisma.StringFieldUpdateOperationsInput | string
331
+ storyId?: Prisma.StringFieldUpdateOperationsInput | string
332
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
333
+ action?: Prisma.StringFieldUpdateOperationsInput | string
334
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
335
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
336
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
337
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
338
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
339
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
340
+ }
341
+
342
+ export type StoryActivityCreateManyInput = {
343
+ id?: string
344
+ storyId: string
345
+ userId: string
346
+ action: string
347
+ field?: string | null
348
+ oldValue?: string | null
349
+ newValue?: string | null
350
+ isAI?: boolean
351
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
352
+ createdAt?: Date | string
353
+ }
354
+
355
+ export type StoryActivityUpdateManyMutationInput = {
356
+ id?: Prisma.StringFieldUpdateOperationsInput | string
357
+ action?: Prisma.StringFieldUpdateOperationsInput | string
358
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
359
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
360
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
361
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
362
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
363
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
364
+ }
365
+
366
+ export type StoryActivityUncheckedUpdateManyInput = {
367
+ id?: Prisma.StringFieldUpdateOperationsInput | string
368
+ storyId?: Prisma.StringFieldUpdateOperationsInput | string
369
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
370
+ action?: Prisma.StringFieldUpdateOperationsInput | string
371
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
372
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
373
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
374
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
375
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
376
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
377
+ }
378
+
379
+ export type StoryActivityListRelationFilter = {
380
+ every?: Prisma.StoryActivityWhereInput
381
+ some?: Prisma.StoryActivityWhereInput
382
+ none?: Prisma.StoryActivityWhereInput
383
+ }
384
+
385
+ export type StoryActivityOrderByRelationAggregateInput = {
386
+ _count?: Prisma.SortOrder
387
+ }
388
+
389
+ export type StoryActivityCountOrderByAggregateInput = {
390
+ id?: Prisma.SortOrder
391
+ storyId?: Prisma.SortOrder
392
+ userId?: Prisma.SortOrder
393
+ action?: Prisma.SortOrder
394
+ field?: Prisma.SortOrder
395
+ oldValue?: Prisma.SortOrder
396
+ newValue?: Prisma.SortOrder
397
+ isAI?: Prisma.SortOrder
398
+ metadata?: Prisma.SortOrder
399
+ createdAt?: Prisma.SortOrder
400
+ }
401
+
402
+ export type StoryActivityMaxOrderByAggregateInput = {
403
+ id?: Prisma.SortOrder
404
+ storyId?: Prisma.SortOrder
405
+ userId?: Prisma.SortOrder
406
+ action?: Prisma.SortOrder
407
+ field?: Prisma.SortOrder
408
+ oldValue?: Prisma.SortOrder
409
+ newValue?: Prisma.SortOrder
410
+ isAI?: Prisma.SortOrder
411
+ createdAt?: Prisma.SortOrder
412
+ }
413
+
414
+ export type StoryActivityMinOrderByAggregateInput = {
415
+ id?: Prisma.SortOrder
416
+ storyId?: Prisma.SortOrder
417
+ userId?: Prisma.SortOrder
418
+ action?: Prisma.SortOrder
419
+ field?: Prisma.SortOrder
420
+ oldValue?: Prisma.SortOrder
421
+ newValue?: Prisma.SortOrder
422
+ isAI?: Prisma.SortOrder
423
+ createdAt?: Prisma.SortOrder
424
+ }
425
+
426
+ export type StoryActivityCreateNestedManyWithoutUserInput = {
427
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutUserInput, Prisma.StoryActivityUncheckedCreateWithoutUserInput> | Prisma.StoryActivityCreateWithoutUserInput[] | Prisma.StoryActivityUncheckedCreateWithoutUserInput[]
428
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutUserInput | Prisma.StoryActivityCreateOrConnectWithoutUserInput[]
429
+ createMany?: Prisma.StoryActivityCreateManyUserInputEnvelope
430
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
431
+ }
432
+
433
+ export type StoryActivityUncheckedCreateNestedManyWithoutUserInput = {
434
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutUserInput, Prisma.StoryActivityUncheckedCreateWithoutUserInput> | Prisma.StoryActivityCreateWithoutUserInput[] | Prisma.StoryActivityUncheckedCreateWithoutUserInput[]
435
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutUserInput | Prisma.StoryActivityCreateOrConnectWithoutUserInput[]
436
+ createMany?: Prisma.StoryActivityCreateManyUserInputEnvelope
437
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
438
+ }
439
+
440
+ export type StoryActivityUpdateManyWithoutUserNestedInput = {
441
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutUserInput, Prisma.StoryActivityUncheckedCreateWithoutUserInput> | Prisma.StoryActivityCreateWithoutUserInput[] | Prisma.StoryActivityUncheckedCreateWithoutUserInput[]
442
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutUserInput | Prisma.StoryActivityCreateOrConnectWithoutUserInput[]
443
+ upsert?: Prisma.StoryActivityUpsertWithWhereUniqueWithoutUserInput | Prisma.StoryActivityUpsertWithWhereUniqueWithoutUserInput[]
444
+ createMany?: Prisma.StoryActivityCreateManyUserInputEnvelope
445
+ set?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
446
+ disconnect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
447
+ delete?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
448
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
449
+ update?: Prisma.StoryActivityUpdateWithWhereUniqueWithoutUserInput | Prisma.StoryActivityUpdateWithWhereUniqueWithoutUserInput[]
450
+ updateMany?: Prisma.StoryActivityUpdateManyWithWhereWithoutUserInput | Prisma.StoryActivityUpdateManyWithWhereWithoutUserInput[]
451
+ deleteMany?: Prisma.StoryActivityScalarWhereInput | Prisma.StoryActivityScalarWhereInput[]
452
+ }
453
+
454
+ export type StoryActivityUncheckedUpdateManyWithoutUserNestedInput = {
455
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutUserInput, Prisma.StoryActivityUncheckedCreateWithoutUserInput> | Prisma.StoryActivityCreateWithoutUserInput[] | Prisma.StoryActivityUncheckedCreateWithoutUserInput[]
456
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutUserInput | Prisma.StoryActivityCreateOrConnectWithoutUserInput[]
457
+ upsert?: Prisma.StoryActivityUpsertWithWhereUniqueWithoutUserInput | Prisma.StoryActivityUpsertWithWhereUniqueWithoutUserInput[]
458
+ createMany?: Prisma.StoryActivityCreateManyUserInputEnvelope
459
+ set?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
460
+ disconnect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
461
+ delete?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
462
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
463
+ update?: Prisma.StoryActivityUpdateWithWhereUniqueWithoutUserInput | Prisma.StoryActivityUpdateWithWhereUniqueWithoutUserInput[]
464
+ updateMany?: Prisma.StoryActivityUpdateManyWithWhereWithoutUserInput | Prisma.StoryActivityUpdateManyWithWhereWithoutUserInput[]
465
+ deleteMany?: Prisma.StoryActivityScalarWhereInput | Prisma.StoryActivityScalarWhereInput[]
466
+ }
467
+
468
+ export type StoryActivityCreateNestedManyWithoutStoryInput = {
469
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutStoryInput, Prisma.StoryActivityUncheckedCreateWithoutStoryInput> | Prisma.StoryActivityCreateWithoutStoryInput[] | Prisma.StoryActivityUncheckedCreateWithoutStoryInput[]
470
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutStoryInput | Prisma.StoryActivityCreateOrConnectWithoutStoryInput[]
471
+ createMany?: Prisma.StoryActivityCreateManyStoryInputEnvelope
472
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
473
+ }
474
+
475
+ export type StoryActivityUncheckedCreateNestedManyWithoutStoryInput = {
476
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutStoryInput, Prisma.StoryActivityUncheckedCreateWithoutStoryInput> | Prisma.StoryActivityCreateWithoutStoryInput[] | Prisma.StoryActivityUncheckedCreateWithoutStoryInput[]
477
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutStoryInput | Prisma.StoryActivityCreateOrConnectWithoutStoryInput[]
478
+ createMany?: Prisma.StoryActivityCreateManyStoryInputEnvelope
479
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
480
+ }
481
+
482
+ export type StoryActivityUpdateManyWithoutStoryNestedInput = {
483
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutStoryInput, Prisma.StoryActivityUncheckedCreateWithoutStoryInput> | Prisma.StoryActivityCreateWithoutStoryInput[] | Prisma.StoryActivityUncheckedCreateWithoutStoryInput[]
484
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutStoryInput | Prisma.StoryActivityCreateOrConnectWithoutStoryInput[]
485
+ upsert?: Prisma.StoryActivityUpsertWithWhereUniqueWithoutStoryInput | Prisma.StoryActivityUpsertWithWhereUniqueWithoutStoryInput[]
486
+ createMany?: Prisma.StoryActivityCreateManyStoryInputEnvelope
487
+ set?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
488
+ disconnect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
489
+ delete?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
490
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
491
+ update?: Prisma.StoryActivityUpdateWithWhereUniqueWithoutStoryInput | Prisma.StoryActivityUpdateWithWhereUniqueWithoutStoryInput[]
492
+ updateMany?: Prisma.StoryActivityUpdateManyWithWhereWithoutStoryInput | Prisma.StoryActivityUpdateManyWithWhereWithoutStoryInput[]
493
+ deleteMany?: Prisma.StoryActivityScalarWhereInput | Prisma.StoryActivityScalarWhereInput[]
494
+ }
495
+
496
+ export type StoryActivityUncheckedUpdateManyWithoutStoryNestedInput = {
497
+ create?: Prisma.XOR<Prisma.StoryActivityCreateWithoutStoryInput, Prisma.StoryActivityUncheckedCreateWithoutStoryInput> | Prisma.StoryActivityCreateWithoutStoryInput[] | Prisma.StoryActivityUncheckedCreateWithoutStoryInput[]
498
+ connectOrCreate?: Prisma.StoryActivityCreateOrConnectWithoutStoryInput | Prisma.StoryActivityCreateOrConnectWithoutStoryInput[]
499
+ upsert?: Prisma.StoryActivityUpsertWithWhereUniqueWithoutStoryInput | Prisma.StoryActivityUpsertWithWhereUniqueWithoutStoryInput[]
500
+ createMany?: Prisma.StoryActivityCreateManyStoryInputEnvelope
501
+ set?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
502
+ disconnect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
503
+ delete?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
504
+ connect?: Prisma.StoryActivityWhereUniqueInput | Prisma.StoryActivityWhereUniqueInput[]
505
+ update?: Prisma.StoryActivityUpdateWithWhereUniqueWithoutStoryInput | Prisma.StoryActivityUpdateWithWhereUniqueWithoutStoryInput[]
506
+ updateMany?: Prisma.StoryActivityUpdateManyWithWhereWithoutStoryInput | Prisma.StoryActivityUpdateManyWithWhereWithoutStoryInput[]
507
+ deleteMany?: Prisma.StoryActivityScalarWhereInput | Prisma.StoryActivityScalarWhereInput[]
508
+ }
509
+
510
+ export type StoryActivityCreateWithoutUserInput = {
511
+ id?: string
512
+ action: string
513
+ field?: string | null
514
+ oldValue?: string | null
515
+ newValue?: string | null
516
+ isAI?: boolean
517
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
518
+ createdAt?: Date | string
519
+ story: Prisma.StoryCreateNestedOneWithoutActivitiesInput
520
+ }
521
+
522
+ export type StoryActivityUncheckedCreateWithoutUserInput = {
523
+ id?: string
524
+ storyId: string
525
+ action: string
526
+ field?: string | null
527
+ oldValue?: string | null
528
+ newValue?: string | null
529
+ isAI?: boolean
530
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
531
+ createdAt?: Date | string
532
+ }
533
+
534
+ export type StoryActivityCreateOrConnectWithoutUserInput = {
535
+ where: Prisma.StoryActivityWhereUniqueInput
536
+ create: Prisma.XOR<Prisma.StoryActivityCreateWithoutUserInput, Prisma.StoryActivityUncheckedCreateWithoutUserInput>
537
+ }
538
+
539
+ export type StoryActivityCreateManyUserInputEnvelope = {
540
+ data: Prisma.StoryActivityCreateManyUserInput | Prisma.StoryActivityCreateManyUserInput[]
541
+ skipDuplicates?: boolean
542
+ }
543
+
544
+ export type StoryActivityUpsertWithWhereUniqueWithoutUserInput = {
545
+ where: Prisma.StoryActivityWhereUniqueInput
546
+ update: Prisma.XOR<Prisma.StoryActivityUpdateWithoutUserInput, Prisma.StoryActivityUncheckedUpdateWithoutUserInput>
547
+ create: Prisma.XOR<Prisma.StoryActivityCreateWithoutUserInput, Prisma.StoryActivityUncheckedCreateWithoutUserInput>
548
+ }
549
+
550
+ export type StoryActivityUpdateWithWhereUniqueWithoutUserInput = {
551
+ where: Prisma.StoryActivityWhereUniqueInput
552
+ data: Prisma.XOR<Prisma.StoryActivityUpdateWithoutUserInput, Prisma.StoryActivityUncheckedUpdateWithoutUserInput>
553
+ }
554
+
555
+ export type StoryActivityUpdateManyWithWhereWithoutUserInput = {
556
+ where: Prisma.StoryActivityScalarWhereInput
557
+ data: Prisma.XOR<Prisma.StoryActivityUpdateManyMutationInput, Prisma.StoryActivityUncheckedUpdateManyWithoutUserInput>
558
+ }
559
+
560
+ export type StoryActivityScalarWhereInput = {
561
+ AND?: Prisma.StoryActivityScalarWhereInput | Prisma.StoryActivityScalarWhereInput[]
562
+ OR?: Prisma.StoryActivityScalarWhereInput[]
563
+ NOT?: Prisma.StoryActivityScalarWhereInput | Prisma.StoryActivityScalarWhereInput[]
564
+ id?: Prisma.StringFilter<"StoryActivity"> | string
565
+ storyId?: Prisma.StringFilter<"StoryActivity"> | string
566
+ userId?: Prisma.StringFilter<"StoryActivity"> | string
567
+ action?: Prisma.StringFilter<"StoryActivity"> | string
568
+ field?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
569
+ oldValue?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
570
+ newValue?: Prisma.StringNullableFilter<"StoryActivity"> | string | null
571
+ isAI?: Prisma.BoolFilter<"StoryActivity"> | boolean
572
+ metadata?: Prisma.JsonNullableFilter<"StoryActivity">
573
+ createdAt?: Prisma.DateTimeFilter<"StoryActivity"> | Date | string
574
+ }
575
+
576
+ export type StoryActivityCreateWithoutStoryInput = {
577
+ id?: string
578
+ action: string
579
+ field?: string | null
580
+ oldValue?: string | null
581
+ newValue?: string | null
582
+ isAI?: boolean
583
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
584
+ createdAt?: Date | string
585
+ user: Prisma.UserCreateNestedOneWithoutStoryActivitiesInput
586
+ }
587
+
588
+ export type StoryActivityUncheckedCreateWithoutStoryInput = {
589
+ id?: string
590
+ userId: string
591
+ action: string
592
+ field?: string | null
593
+ oldValue?: string | null
594
+ newValue?: string | null
595
+ isAI?: boolean
596
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
597
+ createdAt?: Date | string
598
+ }
599
+
600
+ export type StoryActivityCreateOrConnectWithoutStoryInput = {
601
+ where: Prisma.StoryActivityWhereUniqueInput
602
+ create: Prisma.XOR<Prisma.StoryActivityCreateWithoutStoryInput, Prisma.StoryActivityUncheckedCreateWithoutStoryInput>
603
+ }
604
+
605
+ export type StoryActivityCreateManyStoryInputEnvelope = {
606
+ data: Prisma.StoryActivityCreateManyStoryInput | Prisma.StoryActivityCreateManyStoryInput[]
607
+ skipDuplicates?: boolean
608
+ }
609
+
610
+ export type StoryActivityUpsertWithWhereUniqueWithoutStoryInput = {
611
+ where: Prisma.StoryActivityWhereUniqueInput
612
+ update: Prisma.XOR<Prisma.StoryActivityUpdateWithoutStoryInput, Prisma.StoryActivityUncheckedUpdateWithoutStoryInput>
613
+ create: Prisma.XOR<Prisma.StoryActivityCreateWithoutStoryInput, Prisma.StoryActivityUncheckedCreateWithoutStoryInput>
614
+ }
615
+
616
+ export type StoryActivityUpdateWithWhereUniqueWithoutStoryInput = {
617
+ where: Prisma.StoryActivityWhereUniqueInput
618
+ data: Prisma.XOR<Prisma.StoryActivityUpdateWithoutStoryInput, Prisma.StoryActivityUncheckedUpdateWithoutStoryInput>
619
+ }
620
+
621
+ export type StoryActivityUpdateManyWithWhereWithoutStoryInput = {
622
+ where: Prisma.StoryActivityScalarWhereInput
623
+ data: Prisma.XOR<Prisma.StoryActivityUpdateManyMutationInput, Prisma.StoryActivityUncheckedUpdateManyWithoutStoryInput>
624
+ }
625
+
626
+ export type StoryActivityCreateManyUserInput = {
627
+ id?: string
628
+ storyId: string
629
+ action: string
630
+ field?: string | null
631
+ oldValue?: string | null
632
+ newValue?: string | null
633
+ isAI?: boolean
634
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
635
+ createdAt?: Date | string
636
+ }
637
+
638
+ export type StoryActivityUpdateWithoutUserInput = {
639
+ id?: Prisma.StringFieldUpdateOperationsInput | string
640
+ action?: Prisma.StringFieldUpdateOperationsInput | string
641
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
642
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
643
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
644
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
645
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
646
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
647
+ story?: Prisma.StoryUpdateOneRequiredWithoutActivitiesNestedInput
648
+ }
649
+
650
+ export type StoryActivityUncheckedUpdateWithoutUserInput = {
651
+ id?: Prisma.StringFieldUpdateOperationsInput | string
652
+ storyId?: Prisma.StringFieldUpdateOperationsInput | string
653
+ action?: Prisma.StringFieldUpdateOperationsInput | string
654
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
655
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
656
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
657
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
658
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
659
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
660
+ }
661
+
662
+ export type StoryActivityUncheckedUpdateManyWithoutUserInput = {
663
+ id?: Prisma.StringFieldUpdateOperationsInput | string
664
+ storyId?: Prisma.StringFieldUpdateOperationsInput | string
665
+ action?: Prisma.StringFieldUpdateOperationsInput | string
666
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
667
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
668
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
669
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
670
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
671
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
672
+ }
673
+
674
+ export type StoryActivityCreateManyStoryInput = {
675
+ id?: string
676
+ userId: string
677
+ action: string
678
+ field?: string | null
679
+ oldValue?: string | null
680
+ newValue?: string | null
681
+ isAI?: boolean
682
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
683
+ createdAt?: Date | string
684
+ }
685
+
686
+ export type StoryActivityUpdateWithoutStoryInput = {
687
+ id?: Prisma.StringFieldUpdateOperationsInput | string
688
+ action?: Prisma.StringFieldUpdateOperationsInput | string
689
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
690
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
691
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
692
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
693
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
694
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
695
+ user?: Prisma.UserUpdateOneRequiredWithoutStoryActivitiesNestedInput
696
+ }
697
+
698
+ export type StoryActivityUncheckedUpdateWithoutStoryInput = {
699
+ id?: Prisma.StringFieldUpdateOperationsInput | string
700
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
701
+ action?: Prisma.StringFieldUpdateOperationsInput | string
702
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
703
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
704
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
705
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
706
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
707
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
708
+ }
709
+
710
+ export type StoryActivityUncheckedUpdateManyWithoutStoryInput = {
711
+ id?: Prisma.StringFieldUpdateOperationsInput | string
712
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
713
+ action?: Prisma.StringFieldUpdateOperationsInput | string
714
+ field?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
715
+ oldValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
716
+ newValue?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
717
+ isAI?: Prisma.BoolFieldUpdateOperationsInput | boolean
718
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
719
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
720
+ }
721
+
722
+
723
+
724
+ export type StoryActivitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
725
+ id?: boolean
726
+ storyId?: boolean
727
+ userId?: boolean
728
+ action?: boolean
729
+ field?: boolean
730
+ oldValue?: boolean
731
+ newValue?: boolean
732
+ isAI?: boolean
733
+ metadata?: boolean
734
+ createdAt?: boolean
735
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
736
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
737
+ }, ExtArgs["result"]["storyActivity"]>
738
+
739
+ export type StoryActivitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
740
+ id?: boolean
741
+ storyId?: boolean
742
+ userId?: boolean
743
+ action?: boolean
744
+ field?: boolean
745
+ oldValue?: boolean
746
+ newValue?: boolean
747
+ isAI?: boolean
748
+ metadata?: boolean
749
+ createdAt?: boolean
750
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
751
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
752
+ }, ExtArgs["result"]["storyActivity"]>
753
+
754
+ export type StoryActivitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
755
+ id?: boolean
756
+ storyId?: boolean
757
+ userId?: boolean
758
+ action?: boolean
759
+ field?: boolean
760
+ oldValue?: boolean
761
+ newValue?: boolean
762
+ isAI?: boolean
763
+ metadata?: boolean
764
+ createdAt?: boolean
765
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
766
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
767
+ }, ExtArgs["result"]["storyActivity"]>
768
+
769
+ export type StoryActivitySelectScalar = {
770
+ id?: boolean
771
+ storyId?: boolean
772
+ userId?: boolean
773
+ action?: boolean
774
+ field?: boolean
775
+ oldValue?: boolean
776
+ newValue?: boolean
777
+ isAI?: boolean
778
+ metadata?: boolean
779
+ createdAt?: boolean
780
+ }
781
+
782
+ export type StoryActivityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "storyId" | "userId" | "action" | "field" | "oldValue" | "newValue" | "isAI" | "metadata" | "createdAt", ExtArgs["result"]["storyActivity"]>
783
+ export type StoryActivityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
784
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
785
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
786
+ }
787
+ export type StoryActivityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
788
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
789
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
790
+ }
791
+ export type StoryActivityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
792
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
793
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
794
+ }
795
+
796
+ export type $StoryActivityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
797
+ name: "StoryActivity"
798
+ objects: {
799
+ story: Prisma.$StoryPayload<ExtArgs>
800
+ user: Prisma.$UserPayload<ExtArgs>
801
+ }
802
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
803
+ id: string
804
+ storyId: string
805
+ userId: string
806
+ action: string
807
+ field: string | null
808
+ oldValue: string | null
809
+ newValue: string | null
810
+ isAI: boolean
811
+ metadata: runtime.JsonValue | null
812
+ createdAt: Date
813
+ }, ExtArgs["result"]["storyActivity"]>
814
+ composites: {}
815
+ }
816
+
817
+ export type StoryActivityGetPayload<S extends boolean | null | undefined | StoryActivityDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload, S>
818
+
819
+ export type StoryActivityCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
820
+ Omit<StoryActivityFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
821
+ select?: StoryActivityCountAggregateInputType | true
822
+ }
823
+
824
+ export interface StoryActivityDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
825
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StoryActivity'], meta: { name: 'StoryActivity' } }
826
+ /**
827
+ * Find zero or one StoryActivity that matches the filter.
828
+ * @param {StoryActivityFindUniqueArgs} args - Arguments to find a StoryActivity
829
+ * @example
830
+ * // Get one StoryActivity
831
+ * const storyActivity = await prisma.storyActivity.findUnique({
832
+ * where: {
833
+ * // ... provide filter here
834
+ * }
835
+ * })
836
+ */
837
+ findUnique<T extends StoryActivityFindUniqueArgs>(args: Prisma.SelectSubset<T, StoryActivityFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
838
+
839
+ /**
840
+ * Find one StoryActivity that matches the filter or throw an error with `error.code='P2025'`
841
+ * if no matches were found.
842
+ * @param {StoryActivityFindUniqueOrThrowArgs} args - Arguments to find a StoryActivity
843
+ * @example
844
+ * // Get one StoryActivity
845
+ * const storyActivity = await prisma.storyActivity.findUniqueOrThrow({
846
+ * where: {
847
+ * // ... provide filter here
848
+ * }
849
+ * })
850
+ */
851
+ findUniqueOrThrow<T extends StoryActivityFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StoryActivityFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
852
+
853
+ /**
854
+ * Find the first StoryActivity that matches the filter.
855
+ * Note, that providing `undefined` is treated as the value not being there.
856
+ * Read more here: https://pris.ly/d/null-undefined
857
+ * @param {StoryActivityFindFirstArgs} args - Arguments to find a StoryActivity
858
+ * @example
859
+ * // Get one StoryActivity
860
+ * const storyActivity = await prisma.storyActivity.findFirst({
861
+ * where: {
862
+ * // ... provide filter here
863
+ * }
864
+ * })
865
+ */
866
+ findFirst<T extends StoryActivityFindFirstArgs>(args?: Prisma.SelectSubset<T, StoryActivityFindFirstArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
867
+
868
+ /**
869
+ * Find the first StoryActivity that matches the filter or
870
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
871
+ * Note, that providing `undefined` is treated as the value not being there.
872
+ * Read more here: https://pris.ly/d/null-undefined
873
+ * @param {StoryActivityFindFirstOrThrowArgs} args - Arguments to find a StoryActivity
874
+ * @example
875
+ * // Get one StoryActivity
876
+ * const storyActivity = await prisma.storyActivity.findFirstOrThrow({
877
+ * where: {
878
+ * // ... provide filter here
879
+ * }
880
+ * })
881
+ */
882
+ findFirstOrThrow<T extends StoryActivityFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StoryActivityFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
883
+
884
+ /**
885
+ * Find zero or more StoryActivities that matches the filter.
886
+ * Note, that providing `undefined` is treated as the value not being there.
887
+ * Read more here: https://pris.ly/d/null-undefined
888
+ * @param {StoryActivityFindManyArgs} args - Arguments to filter and select certain fields only.
889
+ * @example
890
+ * // Get all StoryActivities
891
+ * const storyActivities = await prisma.storyActivity.findMany()
892
+ *
893
+ * // Get first 10 StoryActivities
894
+ * const storyActivities = await prisma.storyActivity.findMany({ take: 10 })
895
+ *
896
+ * // Only select the `id`
897
+ * const storyActivityWithIdOnly = await prisma.storyActivity.findMany({ select: { id: true } })
898
+ *
899
+ */
900
+ findMany<T extends StoryActivityFindManyArgs>(args?: Prisma.SelectSubset<T, StoryActivityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
901
+
902
+ /**
903
+ * Create a StoryActivity.
904
+ * @param {StoryActivityCreateArgs} args - Arguments to create a StoryActivity.
905
+ * @example
906
+ * // Create one StoryActivity
907
+ * const StoryActivity = await prisma.storyActivity.create({
908
+ * data: {
909
+ * // ... data to create a StoryActivity
910
+ * }
911
+ * })
912
+ *
913
+ */
914
+ create<T extends StoryActivityCreateArgs>(args: Prisma.SelectSubset<T, StoryActivityCreateArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
915
+
916
+ /**
917
+ * Create many StoryActivities.
918
+ * @param {StoryActivityCreateManyArgs} args - Arguments to create many StoryActivities.
919
+ * @example
920
+ * // Create many StoryActivities
921
+ * const storyActivity = await prisma.storyActivity.createMany({
922
+ * data: [
923
+ * // ... provide data here
924
+ * ]
925
+ * })
926
+ *
927
+ */
928
+ createMany<T extends StoryActivityCreateManyArgs>(args?: Prisma.SelectSubset<T, StoryActivityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
929
+
930
+ /**
931
+ * Create many StoryActivities and returns the data saved in the database.
932
+ * @param {StoryActivityCreateManyAndReturnArgs} args - Arguments to create many StoryActivities.
933
+ * @example
934
+ * // Create many StoryActivities
935
+ * const storyActivity = await prisma.storyActivity.createManyAndReturn({
936
+ * data: [
937
+ * // ... provide data here
938
+ * ]
939
+ * })
940
+ *
941
+ * // Create many StoryActivities and only return the `id`
942
+ * const storyActivityWithIdOnly = await prisma.storyActivity.createManyAndReturn({
943
+ * select: { id: true },
944
+ * data: [
945
+ * // ... provide data here
946
+ * ]
947
+ * })
948
+ * Note, that providing `undefined` is treated as the value not being there.
949
+ * Read more here: https://pris.ly/d/null-undefined
950
+ *
951
+ */
952
+ createManyAndReturn<T extends StoryActivityCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StoryActivityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
953
+
954
+ /**
955
+ * Delete a StoryActivity.
956
+ * @param {StoryActivityDeleteArgs} args - Arguments to delete one StoryActivity.
957
+ * @example
958
+ * // Delete one StoryActivity
959
+ * const StoryActivity = await prisma.storyActivity.delete({
960
+ * where: {
961
+ * // ... filter to delete one StoryActivity
962
+ * }
963
+ * })
964
+ *
965
+ */
966
+ delete<T extends StoryActivityDeleteArgs>(args: Prisma.SelectSubset<T, StoryActivityDeleteArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
967
+
968
+ /**
969
+ * Update one StoryActivity.
970
+ * @param {StoryActivityUpdateArgs} args - Arguments to update one StoryActivity.
971
+ * @example
972
+ * // Update one StoryActivity
973
+ * const storyActivity = await prisma.storyActivity.update({
974
+ * where: {
975
+ * // ... provide filter here
976
+ * },
977
+ * data: {
978
+ * // ... provide data here
979
+ * }
980
+ * })
981
+ *
982
+ */
983
+ update<T extends StoryActivityUpdateArgs>(args: Prisma.SelectSubset<T, StoryActivityUpdateArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
984
+
985
+ /**
986
+ * Delete zero or more StoryActivities.
987
+ * @param {StoryActivityDeleteManyArgs} args - Arguments to filter StoryActivities to delete.
988
+ * @example
989
+ * // Delete a few StoryActivities
990
+ * const { count } = await prisma.storyActivity.deleteMany({
991
+ * where: {
992
+ * // ... provide filter here
993
+ * }
994
+ * })
995
+ *
996
+ */
997
+ deleteMany<T extends StoryActivityDeleteManyArgs>(args?: Prisma.SelectSubset<T, StoryActivityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
998
+
999
+ /**
1000
+ * Update zero or more StoryActivities.
1001
+ * Note, that providing `undefined` is treated as the value not being there.
1002
+ * Read more here: https://pris.ly/d/null-undefined
1003
+ * @param {StoryActivityUpdateManyArgs} args - Arguments to update one or more rows.
1004
+ * @example
1005
+ * // Update many StoryActivities
1006
+ * const storyActivity = await prisma.storyActivity.updateMany({
1007
+ * where: {
1008
+ * // ... provide filter here
1009
+ * },
1010
+ * data: {
1011
+ * // ... provide data here
1012
+ * }
1013
+ * })
1014
+ *
1015
+ */
1016
+ updateMany<T extends StoryActivityUpdateManyArgs>(args: Prisma.SelectSubset<T, StoryActivityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1017
+
1018
+ /**
1019
+ * Update zero or more StoryActivities and returns the data updated in the database.
1020
+ * @param {StoryActivityUpdateManyAndReturnArgs} args - Arguments to update many StoryActivities.
1021
+ * @example
1022
+ * // Update many StoryActivities
1023
+ * const storyActivity = await prisma.storyActivity.updateManyAndReturn({
1024
+ * where: {
1025
+ * // ... provide filter here
1026
+ * },
1027
+ * data: [
1028
+ * // ... provide data here
1029
+ * ]
1030
+ * })
1031
+ *
1032
+ * // Update zero or more StoryActivities and only return the `id`
1033
+ * const storyActivityWithIdOnly = await prisma.storyActivity.updateManyAndReturn({
1034
+ * select: { id: true },
1035
+ * where: {
1036
+ * // ... provide filter here
1037
+ * },
1038
+ * data: [
1039
+ * // ... provide data here
1040
+ * ]
1041
+ * })
1042
+ * Note, that providing `undefined` is treated as the value not being there.
1043
+ * Read more here: https://pris.ly/d/null-undefined
1044
+ *
1045
+ */
1046
+ updateManyAndReturn<T extends StoryActivityUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StoryActivityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1047
+
1048
+ /**
1049
+ * Create or update one StoryActivity.
1050
+ * @param {StoryActivityUpsertArgs} args - Arguments to update or create a StoryActivity.
1051
+ * @example
1052
+ * // Update or create a StoryActivity
1053
+ * const storyActivity = await prisma.storyActivity.upsert({
1054
+ * create: {
1055
+ * // ... data to create a StoryActivity
1056
+ * },
1057
+ * update: {
1058
+ * // ... in case it already exists, update
1059
+ * },
1060
+ * where: {
1061
+ * // ... the filter for the StoryActivity we want to update
1062
+ * }
1063
+ * })
1064
+ */
1065
+ upsert<T extends StoryActivityUpsertArgs>(args: Prisma.SelectSubset<T, StoryActivityUpsertArgs<ExtArgs>>): Prisma.Prisma__StoryActivityClient<runtime.Types.Result.GetResult<Prisma.$StoryActivityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1066
+
1067
+
1068
+ /**
1069
+ * Count the number of StoryActivities.
1070
+ * Note, that providing `undefined` is treated as the value not being there.
1071
+ * Read more here: https://pris.ly/d/null-undefined
1072
+ * @param {StoryActivityCountArgs} args - Arguments to filter StoryActivities to count.
1073
+ * @example
1074
+ * // Count the number of StoryActivities
1075
+ * const count = await prisma.storyActivity.count({
1076
+ * where: {
1077
+ * // ... the filter for the StoryActivities we want to count
1078
+ * }
1079
+ * })
1080
+ **/
1081
+ count<T extends StoryActivityCountArgs>(
1082
+ args?: Prisma.Subset<T, StoryActivityCountArgs>,
1083
+ ): Prisma.PrismaPromise<
1084
+ T extends runtime.Types.Utils.Record<'select', any>
1085
+ ? T['select'] extends true
1086
+ ? number
1087
+ : Prisma.GetScalarType<T['select'], StoryActivityCountAggregateOutputType>
1088
+ : number
1089
+ >
1090
+
1091
+ /**
1092
+ * Allows you to perform aggregations operations on a StoryActivity.
1093
+ * Note, that providing `undefined` is treated as the value not being there.
1094
+ * Read more here: https://pris.ly/d/null-undefined
1095
+ * @param {StoryActivityAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1096
+ * @example
1097
+ * // Ordered by age ascending
1098
+ * // Where email contains prisma.io
1099
+ * // Limited to the 10 users
1100
+ * const aggregations = await prisma.user.aggregate({
1101
+ * _avg: {
1102
+ * age: true,
1103
+ * },
1104
+ * where: {
1105
+ * email: {
1106
+ * contains: "prisma.io",
1107
+ * },
1108
+ * },
1109
+ * orderBy: {
1110
+ * age: "asc",
1111
+ * },
1112
+ * take: 10,
1113
+ * })
1114
+ **/
1115
+ aggregate<T extends StoryActivityAggregateArgs>(args: Prisma.Subset<T, StoryActivityAggregateArgs>): Prisma.PrismaPromise<GetStoryActivityAggregateType<T>>
1116
+
1117
+ /**
1118
+ * Group by StoryActivity.
1119
+ * Note, that providing `undefined` is treated as the value not being there.
1120
+ * Read more here: https://pris.ly/d/null-undefined
1121
+ * @param {StoryActivityGroupByArgs} args - Group by arguments.
1122
+ * @example
1123
+ * // Group by city, order by createdAt, get count
1124
+ * const result = await prisma.user.groupBy({
1125
+ * by: ['city', 'createdAt'],
1126
+ * orderBy: {
1127
+ * createdAt: true
1128
+ * },
1129
+ * _count: {
1130
+ * _all: true
1131
+ * },
1132
+ * })
1133
+ *
1134
+ **/
1135
+ groupBy<
1136
+ T extends StoryActivityGroupByArgs,
1137
+ HasSelectOrTake extends Prisma.Or<
1138
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1139
+ Prisma.Extends<'take', Prisma.Keys<T>>
1140
+ >,
1141
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1142
+ ? { orderBy: StoryActivityGroupByArgs['orderBy'] }
1143
+ : { orderBy?: StoryActivityGroupByArgs['orderBy'] },
1144
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1145
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1146
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1147
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1148
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1149
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1150
+ InputErrors extends ByEmpty extends Prisma.True
1151
+ ? `Error: "by" must not be empty.`
1152
+ : HavingValid extends Prisma.False
1153
+ ? {
1154
+ [P in HavingFields]: P extends ByFields
1155
+ ? never
1156
+ : P extends string
1157
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1158
+ : [
1159
+ Error,
1160
+ 'Field ',
1161
+ P,
1162
+ ` in "having" needs to be provided in "by"`,
1163
+ ]
1164
+ }[HavingFields]
1165
+ : 'take' extends Prisma.Keys<T>
1166
+ ? 'orderBy' extends Prisma.Keys<T>
1167
+ ? ByValid extends Prisma.True
1168
+ ? {}
1169
+ : {
1170
+ [P in OrderFields]: P extends ByFields
1171
+ ? never
1172
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1173
+ }[OrderFields]
1174
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1175
+ : 'skip' extends Prisma.Keys<T>
1176
+ ? 'orderBy' extends Prisma.Keys<T>
1177
+ ? ByValid extends Prisma.True
1178
+ ? {}
1179
+ : {
1180
+ [P in OrderFields]: P extends ByFields
1181
+ ? never
1182
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1183
+ }[OrderFields]
1184
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1185
+ : ByValid extends Prisma.True
1186
+ ? {}
1187
+ : {
1188
+ [P in OrderFields]: P extends ByFields
1189
+ ? never
1190
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1191
+ }[OrderFields]
1192
+ >(args: Prisma.SubsetIntersection<T, StoryActivityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStoryActivityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1193
+ /**
1194
+ * Fields of the StoryActivity model
1195
+ */
1196
+ readonly fields: StoryActivityFieldRefs;
1197
+ }
1198
+
1199
+ /**
1200
+ * The delegate class that acts as a "Promise-like" for StoryActivity.
1201
+ * Why is this prefixed with `Prisma__`?
1202
+ * Because we want to prevent naming conflicts as mentioned in
1203
+ * https://github.com/prisma/prisma-client-js/issues/707
1204
+ */
1205
+ export interface Prisma__StoryActivityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1206
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1207
+ story<T extends Prisma.StoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StoryDefaultArgs<ExtArgs>>): Prisma.Prisma__StoryClient<runtime.Types.Result.GetResult<Prisma.$StoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1208
+ 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>
1209
+ /**
1210
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1211
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1212
+ * @param onrejected The callback to execute when the Promise is rejected.
1213
+ * @returns A Promise for the completion of which ever callback is executed.
1214
+ */
1215
+ 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>
1216
+ /**
1217
+ * Attaches a callback for only the rejection of the Promise.
1218
+ * @param onrejected The callback to execute when the Promise is rejected.
1219
+ * @returns A Promise for the completion of the callback.
1220
+ */
1221
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1222
+ /**
1223
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1224
+ * resolved value cannot be modified from the callback.
1225
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1226
+ * @returns A Promise for the completion of the callback.
1227
+ */
1228
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1229
+ }
1230
+
1231
+
1232
+
1233
+
1234
+ /**
1235
+ * Fields of the StoryActivity model
1236
+ */
1237
+ export interface StoryActivityFieldRefs {
1238
+ readonly id: Prisma.FieldRef<"StoryActivity", 'String'>
1239
+ readonly storyId: Prisma.FieldRef<"StoryActivity", 'String'>
1240
+ readonly userId: Prisma.FieldRef<"StoryActivity", 'String'>
1241
+ readonly action: Prisma.FieldRef<"StoryActivity", 'String'>
1242
+ readonly field: Prisma.FieldRef<"StoryActivity", 'String'>
1243
+ readonly oldValue: Prisma.FieldRef<"StoryActivity", 'String'>
1244
+ readonly newValue: Prisma.FieldRef<"StoryActivity", 'String'>
1245
+ readonly isAI: Prisma.FieldRef<"StoryActivity", 'Boolean'>
1246
+ readonly metadata: Prisma.FieldRef<"StoryActivity", 'Json'>
1247
+ readonly createdAt: Prisma.FieldRef<"StoryActivity", 'DateTime'>
1248
+ }
1249
+
1250
+
1251
+ // Custom InputTypes
1252
+ /**
1253
+ * StoryActivity findUnique
1254
+ */
1255
+ export type StoryActivityFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1256
+ /**
1257
+ * Select specific fields to fetch from the StoryActivity
1258
+ */
1259
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1260
+ /**
1261
+ * Omit specific fields from the StoryActivity
1262
+ */
1263
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1264
+ /**
1265
+ * Choose, which related nodes to fetch as well
1266
+ */
1267
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1268
+ /**
1269
+ * Filter, which StoryActivity to fetch.
1270
+ */
1271
+ where: Prisma.StoryActivityWhereUniqueInput
1272
+ }
1273
+
1274
+ /**
1275
+ * StoryActivity findUniqueOrThrow
1276
+ */
1277
+ export type StoryActivityFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1278
+ /**
1279
+ * Select specific fields to fetch from the StoryActivity
1280
+ */
1281
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1282
+ /**
1283
+ * Omit specific fields from the StoryActivity
1284
+ */
1285
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1286
+ /**
1287
+ * Choose, which related nodes to fetch as well
1288
+ */
1289
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1290
+ /**
1291
+ * Filter, which StoryActivity to fetch.
1292
+ */
1293
+ where: Prisma.StoryActivityWhereUniqueInput
1294
+ }
1295
+
1296
+ /**
1297
+ * StoryActivity findFirst
1298
+ */
1299
+ export type StoryActivityFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1300
+ /**
1301
+ * Select specific fields to fetch from the StoryActivity
1302
+ */
1303
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1304
+ /**
1305
+ * Omit specific fields from the StoryActivity
1306
+ */
1307
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1308
+ /**
1309
+ * Choose, which related nodes to fetch as well
1310
+ */
1311
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1312
+ /**
1313
+ * Filter, which StoryActivity to fetch.
1314
+ */
1315
+ where?: Prisma.StoryActivityWhereInput
1316
+ /**
1317
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1318
+ *
1319
+ * Determine the order of StoryActivities to fetch.
1320
+ */
1321
+ orderBy?: Prisma.StoryActivityOrderByWithRelationInput | Prisma.StoryActivityOrderByWithRelationInput[]
1322
+ /**
1323
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1324
+ *
1325
+ * Sets the position for searching for StoryActivities.
1326
+ */
1327
+ cursor?: Prisma.StoryActivityWhereUniqueInput
1328
+ /**
1329
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1330
+ *
1331
+ * Take `±n` StoryActivities from the position of the cursor.
1332
+ */
1333
+ take?: number
1334
+ /**
1335
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1336
+ *
1337
+ * Skip the first `n` StoryActivities.
1338
+ */
1339
+ skip?: number
1340
+ /**
1341
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1342
+ *
1343
+ * Filter by unique combinations of StoryActivities.
1344
+ */
1345
+ distinct?: Prisma.StoryActivityScalarFieldEnum | Prisma.StoryActivityScalarFieldEnum[]
1346
+ }
1347
+
1348
+ /**
1349
+ * StoryActivity findFirstOrThrow
1350
+ */
1351
+ export type StoryActivityFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1352
+ /**
1353
+ * Select specific fields to fetch from the StoryActivity
1354
+ */
1355
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1356
+ /**
1357
+ * Omit specific fields from the StoryActivity
1358
+ */
1359
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1360
+ /**
1361
+ * Choose, which related nodes to fetch as well
1362
+ */
1363
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1364
+ /**
1365
+ * Filter, which StoryActivity to fetch.
1366
+ */
1367
+ where?: Prisma.StoryActivityWhereInput
1368
+ /**
1369
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1370
+ *
1371
+ * Determine the order of StoryActivities to fetch.
1372
+ */
1373
+ orderBy?: Prisma.StoryActivityOrderByWithRelationInput | Prisma.StoryActivityOrderByWithRelationInput[]
1374
+ /**
1375
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1376
+ *
1377
+ * Sets the position for searching for StoryActivities.
1378
+ */
1379
+ cursor?: Prisma.StoryActivityWhereUniqueInput
1380
+ /**
1381
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1382
+ *
1383
+ * Take `±n` StoryActivities from the position of the cursor.
1384
+ */
1385
+ take?: number
1386
+ /**
1387
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1388
+ *
1389
+ * Skip the first `n` StoryActivities.
1390
+ */
1391
+ skip?: number
1392
+ /**
1393
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1394
+ *
1395
+ * Filter by unique combinations of StoryActivities.
1396
+ */
1397
+ distinct?: Prisma.StoryActivityScalarFieldEnum | Prisma.StoryActivityScalarFieldEnum[]
1398
+ }
1399
+
1400
+ /**
1401
+ * StoryActivity findMany
1402
+ */
1403
+ export type StoryActivityFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
+ /**
1405
+ * Select specific fields to fetch from the StoryActivity
1406
+ */
1407
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1408
+ /**
1409
+ * Omit specific fields from the StoryActivity
1410
+ */
1411
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1412
+ /**
1413
+ * Choose, which related nodes to fetch as well
1414
+ */
1415
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1416
+ /**
1417
+ * Filter, which StoryActivities to fetch.
1418
+ */
1419
+ where?: Prisma.StoryActivityWhereInput
1420
+ /**
1421
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1422
+ *
1423
+ * Determine the order of StoryActivities to fetch.
1424
+ */
1425
+ orderBy?: Prisma.StoryActivityOrderByWithRelationInput | Prisma.StoryActivityOrderByWithRelationInput[]
1426
+ /**
1427
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1428
+ *
1429
+ * Sets the position for listing StoryActivities.
1430
+ */
1431
+ cursor?: Prisma.StoryActivityWhereUniqueInput
1432
+ /**
1433
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1434
+ *
1435
+ * Take `±n` StoryActivities from the position of the cursor.
1436
+ */
1437
+ take?: number
1438
+ /**
1439
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1440
+ *
1441
+ * Skip the first `n` StoryActivities.
1442
+ */
1443
+ skip?: number
1444
+ /**
1445
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1446
+ *
1447
+ * Filter by unique combinations of StoryActivities.
1448
+ */
1449
+ distinct?: Prisma.StoryActivityScalarFieldEnum | Prisma.StoryActivityScalarFieldEnum[]
1450
+ }
1451
+
1452
+ /**
1453
+ * StoryActivity create
1454
+ */
1455
+ export type StoryActivityCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1456
+ /**
1457
+ * Select specific fields to fetch from the StoryActivity
1458
+ */
1459
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1460
+ /**
1461
+ * Omit specific fields from the StoryActivity
1462
+ */
1463
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1464
+ /**
1465
+ * Choose, which related nodes to fetch as well
1466
+ */
1467
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1468
+ /**
1469
+ * The data needed to create a StoryActivity.
1470
+ */
1471
+ data: Prisma.XOR<Prisma.StoryActivityCreateInput, Prisma.StoryActivityUncheckedCreateInput>
1472
+ }
1473
+
1474
+ /**
1475
+ * StoryActivity createMany
1476
+ */
1477
+ export type StoryActivityCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1478
+ /**
1479
+ * The data used to create many StoryActivities.
1480
+ */
1481
+ data: Prisma.StoryActivityCreateManyInput | Prisma.StoryActivityCreateManyInput[]
1482
+ skipDuplicates?: boolean
1483
+ }
1484
+
1485
+ /**
1486
+ * StoryActivity createManyAndReturn
1487
+ */
1488
+ export type StoryActivityCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1489
+ /**
1490
+ * Select specific fields to fetch from the StoryActivity
1491
+ */
1492
+ select?: Prisma.StoryActivitySelectCreateManyAndReturn<ExtArgs> | null
1493
+ /**
1494
+ * Omit specific fields from the StoryActivity
1495
+ */
1496
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1497
+ /**
1498
+ * The data used to create many StoryActivities.
1499
+ */
1500
+ data: Prisma.StoryActivityCreateManyInput | Prisma.StoryActivityCreateManyInput[]
1501
+ skipDuplicates?: boolean
1502
+ /**
1503
+ * Choose, which related nodes to fetch as well
1504
+ */
1505
+ include?: Prisma.StoryActivityIncludeCreateManyAndReturn<ExtArgs> | null
1506
+ }
1507
+
1508
+ /**
1509
+ * StoryActivity update
1510
+ */
1511
+ export type StoryActivityUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1512
+ /**
1513
+ * Select specific fields to fetch from the StoryActivity
1514
+ */
1515
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1516
+ /**
1517
+ * Omit specific fields from the StoryActivity
1518
+ */
1519
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1520
+ /**
1521
+ * Choose, which related nodes to fetch as well
1522
+ */
1523
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1524
+ /**
1525
+ * The data needed to update a StoryActivity.
1526
+ */
1527
+ data: Prisma.XOR<Prisma.StoryActivityUpdateInput, Prisma.StoryActivityUncheckedUpdateInput>
1528
+ /**
1529
+ * Choose, which StoryActivity to update.
1530
+ */
1531
+ where: Prisma.StoryActivityWhereUniqueInput
1532
+ }
1533
+
1534
+ /**
1535
+ * StoryActivity updateMany
1536
+ */
1537
+ export type StoryActivityUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1538
+ /**
1539
+ * The data used to update StoryActivities.
1540
+ */
1541
+ data: Prisma.XOR<Prisma.StoryActivityUpdateManyMutationInput, Prisma.StoryActivityUncheckedUpdateManyInput>
1542
+ /**
1543
+ * Filter which StoryActivities to update
1544
+ */
1545
+ where?: Prisma.StoryActivityWhereInput
1546
+ /**
1547
+ * Limit how many StoryActivities to update.
1548
+ */
1549
+ limit?: number
1550
+ }
1551
+
1552
+ /**
1553
+ * StoryActivity updateManyAndReturn
1554
+ */
1555
+ export type StoryActivityUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1556
+ /**
1557
+ * Select specific fields to fetch from the StoryActivity
1558
+ */
1559
+ select?: Prisma.StoryActivitySelectUpdateManyAndReturn<ExtArgs> | null
1560
+ /**
1561
+ * Omit specific fields from the StoryActivity
1562
+ */
1563
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1564
+ /**
1565
+ * The data used to update StoryActivities.
1566
+ */
1567
+ data: Prisma.XOR<Prisma.StoryActivityUpdateManyMutationInput, Prisma.StoryActivityUncheckedUpdateManyInput>
1568
+ /**
1569
+ * Filter which StoryActivities to update
1570
+ */
1571
+ where?: Prisma.StoryActivityWhereInput
1572
+ /**
1573
+ * Limit how many StoryActivities to update.
1574
+ */
1575
+ limit?: number
1576
+ /**
1577
+ * Choose, which related nodes to fetch as well
1578
+ */
1579
+ include?: Prisma.StoryActivityIncludeUpdateManyAndReturn<ExtArgs> | null
1580
+ }
1581
+
1582
+ /**
1583
+ * StoryActivity upsert
1584
+ */
1585
+ export type StoryActivityUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1586
+ /**
1587
+ * Select specific fields to fetch from the StoryActivity
1588
+ */
1589
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1590
+ /**
1591
+ * Omit specific fields from the StoryActivity
1592
+ */
1593
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1594
+ /**
1595
+ * Choose, which related nodes to fetch as well
1596
+ */
1597
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1598
+ /**
1599
+ * The filter to search for the StoryActivity to update in case it exists.
1600
+ */
1601
+ where: Prisma.StoryActivityWhereUniqueInput
1602
+ /**
1603
+ * In case the StoryActivity found by the `where` argument doesn't exist, create a new StoryActivity with this data.
1604
+ */
1605
+ create: Prisma.XOR<Prisma.StoryActivityCreateInput, Prisma.StoryActivityUncheckedCreateInput>
1606
+ /**
1607
+ * In case the StoryActivity was found with the provided `where` argument, update it with this data.
1608
+ */
1609
+ update: Prisma.XOR<Prisma.StoryActivityUpdateInput, Prisma.StoryActivityUncheckedUpdateInput>
1610
+ }
1611
+
1612
+ /**
1613
+ * StoryActivity delete
1614
+ */
1615
+ export type StoryActivityDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1616
+ /**
1617
+ * Select specific fields to fetch from the StoryActivity
1618
+ */
1619
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1620
+ /**
1621
+ * Omit specific fields from the StoryActivity
1622
+ */
1623
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1624
+ /**
1625
+ * Choose, which related nodes to fetch as well
1626
+ */
1627
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1628
+ /**
1629
+ * Filter which StoryActivity to delete.
1630
+ */
1631
+ where: Prisma.StoryActivityWhereUniqueInput
1632
+ }
1633
+
1634
+ /**
1635
+ * StoryActivity deleteMany
1636
+ */
1637
+ export type StoryActivityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1638
+ /**
1639
+ * Filter which StoryActivities to delete
1640
+ */
1641
+ where?: Prisma.StoryActivityWhereInput
1642
+ /**
1643
+ * Limit how many StoryActivities to delete.
1644
+ */
1645
+ limit?: number
1646
+ }
1647
+
1648
+ /**
1649
+ * StoryActivity without action
1650
+ */
1651
+ export type StoryActivityDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1652
+ /**
1653
+ * Select specific fields to fetch from the StoryActivity
1654
+ */
1655
+ select?: Prisma.StoryActivitySelect<ExtArgs> | null
1656
+ /**
1657
+ * Omit specific fields from the StoryActivity
1658
+ */
1659
+ omit?: Prisma.StoryActivityOmit<ExtArgs> | null
1660
+ /**
1661
+ * Choose, which related nodes to fetch as well
1662
+ */
1663
+ include?: Prisma.StoryActivityInclude<ExtArgs> | null
1664
+ }