@allbluecn/database 0.6.0 → 0.9.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 (103) hide show
  1. package/LICENSE +661 -0
  2. package/dist/get-prisma.d.ts +1 -0
  3. package/dist/get-prisma.js +7 -0
  4. package/generated/browser.ts +85 -0
  5. package/generated/client.ts +85 -0
  6. package/generated/commonInputTypes.ts +106 -46
  7. package/generated/internal/class.ts +174 -4
  8. package/generated/internal/prismaNamespace.ts +1698 -151
  9. package/generated/internal/prismaNamespaceBrowser.ts +279 -7
  10. package/generated/models/AiProviderConfig.ts +100 -1
  11. package/generated/models/AiStreamChunk.ts +1159 -0
  12. package/generated/models/AiUsageLog.ts +91 -31
  13. package/generated/models/Blob.ts +1428 -0
  14. package/generated/models/BusinessAgentBinding.ts +1553 -0
  15. package/generated/models/ChatInterrupt.ts +42 -1
  16. package/generated/models/ChatMessage.ts +58 -29
  17. package/generated/models/ChatPersistenceMeta.ts +1121 -0
  18. package/generated/models/ChatRun.ts +166 -1
  19. package/generated/models/ChatThread.ts +294 -1
  20. package/generated/models/CodeSnippet.ts +1555 -0
  21. package/generated/models/DesktopSetting.ts +1059 -0
  22. package/generated/models/EmailLog.ts +1345 -0
  23. package/generated/models/EmailPreference.ts +1257 -0
  24. package/generated/models/EmailSubscriber.ts +1233 -0
  25. package/generated/models/EmailVerificationToken.ts +1380 -0
  26. package/generated/models/GenerationRun.ts +193 -1
  27. package/generated/models/HarnessPlugin.ts +1677 -0
  28. package/generated/models/HarnessWorkspace.ts +1650 -0
  29. package/generated/models/InvitationCode.ts +65 -9
  30. package/generated/models/NotificationPreference.ts +27 -1
  31. package/generated/models/OAuthProviderConfig.ts +1227 -0
  32. package/generated/models/Plan.ts +115 -1
  33. package/generated/models/SandboxInstance.ts +1277 -0
  34. package/generated/models/SystemPromptTemplate.ts +1583 -0
  35. package/generated/models/SystemPromptVersion.ts +1459 -0
  36. package/generated/models/User.ts +5759 -823
  37. package/generated/models/UserAgent.ts +250 -1
  38. package/generated/models/Workspace.ts +3 -1
  39. package/generated/models/WorkspaceFile.ts +1535 -0
  40. package/generated/models.ts +17 -0
  41. package/generated-sqlite/browser.ts +90 -0
  42. package/generated-sqlite/client.ts +90 -0
  43. package/generated-sqlite/commonInputTypes.ts +192 -78
  44. package/generated-sqlite/internal/class.ts +184 -4
  45. package/generated-sqlite/internal/prismaNamespace.ts +1786 -138
  46. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +291 -7
  47. package/generated-sqlite/models/AiProviderConfig.ts +100 -1
  48. package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
  49. package/generated-sqlite/models/AiUsageLog.ts +91 -31
  50. package/generated-sqlite/models/Blob.ts +1425 -0
  51. package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
  52. package/generated-sqlite/models/ChatInterrupt.ts +42 -1
  53. package/generated-sqlite/models/ChatMessage.ts +58 -29
  54. package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
  55. package/generated-sqlite/models/ChatRun.ts +174 -1
  56. package/generated-sqlite/models/ChatThread.ts +293 -1
  57. package/generated-sqlite/models/CodeSnippet.ts +1552 -0
  58. package/generated-sqlite/models/DesktopSetting.ts +1057 -0
  59. package/generated-sqlite/models/EmailLog.ts +1343 -0
  60. package/generated-sqlite/models/EmailPreference.ts +1255 -0
  61. package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
  62. package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
  63. package/generated-sqlite/models/GenerationRun.ts +193 -1
  64. package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
  65. package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
  66. package/generated-sqlite/models/InvitationCode.ts +65 -9
  67. package/generated-sqlite/models/NotificationPreference.ts +1313 -0
  68. package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
  69. package/generated-sqlite/models/PageVersion.ts +0 -8
  70. package/generated-sqlite/models/Plan.ts +115 -1
  71. package/generated-sqlite/models/SandboxInstance.ts +1283 -0
  72. package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
  73. package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
  74. package/generated-sqlite/models/User.ts +5345 -701
  75. package/generated-sqlite/models/UserAgent.ts +250 -1
  76. package/generated-sqlite/models/Workspace.ts +3 -1
  77. package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
  78. package/generated-sqlite/models.ts +18 -0
  79. package/get-prisma.ts +6 -0
  80. package/index.ts +11 -6
  81. package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
  82. package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
  83. package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
  84. package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
  85. package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
  86. package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
  87. package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
  88. package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
  89. package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
  90. package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
  91. package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
  92. package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
  93. package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
  94. package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
  95. package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
  96. package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
  97. package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
  98. package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
  99. package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
  100. package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
  101. package/package.json +8 -3
  102. package/schema.prisma +413 -99
  103. package/schema.sqlite.prisma +865 -543
@@ -0,0 +1,1535 @@
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 `WorkspaceFile` 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.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model WorkspaceFile
17
+ * 工作区文件(上传文件 + AI 生成物 + 沙箱产出)
18
+ */
19
+ export type WorkspaceFileModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkspaceFilePayload>
20
+
21
+ export type AggregateWorkspaceFile = {
22
+ _count: WorkspaceFileCountAggregateOutputType | null
23
+ _avg: WorkspaceFileAvgAggregateOutputType | null
24
+ _sum: WorkspaceFileSumAggregateOutputType | null
25
+ _min: WorkspaceFileMinAggregateOutputType | null
26
+ _max: WorkspaceFileMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type WorkspaceFileAvgAggregateOutputType = {
30
+ size: number | null
31
+ }
32
+
33
+ export type WorkspaceFileSumAggregateOutputType = {
34
+ size: number | null
35
+ }
36
+
37
+ export type WorkspaceFileMinAggregateOutputType = {
38
+ id: string | null
39
+ workspaceId: string | null
40
+ path: string | null
41
+ mimeType: string | null
42
+ size: number | null
43
+ content: string | null
44
+ source: string | null
45
+ createdAt: Date | null
46
+ updatedAt: Date | null
47
+ }
48
+
49
+ export type WorkspaceFileMaxAggregateOutputType = {
50
+ id: string | null
51
+ workspaceId: string | null
52
+ path: string | null
53
+ mimeType: string | null
54
+ size: number | null
55
+ content: string | null
56
+ source: string | null
57
+ createdAt: Date | null
58
+ updatedAt: Date | null
59
+ }
60
+
61
+ export type WorkspaceFileCountAggregateOutputType = {
62
+ id: number
63
+ workspaceId: number
64
+ path: number
65
+ mimeType: number
66
+ size: number
67
+ content: number
68
+ source: number
69
+ createdAt: number
70
+ updatedAt: number
71
+ _all: number
72
+ }
73
+
74
+
75
+ export type WorkspaceFileAvgAggregateInputType = {
76
+ size?: true
77
+ }
78
+
79
+ export type WorkspaceFileSumAggregateInputType = {
80
+ size?: true
81
+ }
82
+
83
+ export type WorkspaceFileMinAggregateInputType = {
84
+ id?: true
85
+ workspaceId?: true
86
+ path?: true
87
+ mimeType?: true
88
+ size?: true
89
+ content?: true
90
+ source?: true
91
+ createdAt?: true
92
+ updatedAt?: true
93
+ }
94
+
95
+ export type WorkspaceFileMaxAggregateInputType = {
96
+ id?: true
97
+ workspaceId?: true
98
+ path?: true
99
+ mimeType?: true
100
+ size?: true
101
+ content?: true
102
+ source?: true
103
+ createdAt?: true
104
+ updatedAt?: true
105
+ }
106
+
107
+ export type WorkspaceFileCountAggregateInputType = {
108
+ id?: true
109
+ workspaceId?: true
110
+ path?: true
111
+ mimeType?: true
112
+ size?: true
113
+ content?: true
114
+ source?: true
115
+ createdAt?: true
116
+ updatedAt?: true
117
+ _all?: true
118
+ }
119
+
120
+ export type WorkspaceFileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ /**
122
+ * Filter which WorkspaceFile to aggregate.
123
+ */
124
+ where?: Prisma.WorkspaceFileWhereInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
127
+ *
128
+ * Determine the order of WorkspaceFiles to fetch.
129
+ */
130
+ orderBy?: Prisma.WorkspaceFileOrderByWithRelationInput | Prisma.WorkspaceFileOrderByWithRelationInput[]
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
133
+ *
134
+ * Sets the start position
135
+ */
136
+ cursor?: Prisma.WorkspaceFileWhereUniqueInput
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
139
+ *
140
+ * Take `±n` WorkspaceFiles from the position of the cursor.
141
+ */
142
+ take?: number
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
+ *
146
+ * Skip the first `n` WorkspaceFiles.
147
+ */
148
+ skip?: number
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Count returned WorkspaceFiles
153
+ **/
154
+ _count?: true | WorkspaceFileCountAggregateInputType
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to average
159
+ **/
160
+ _avg?: WorkspaceFileAvgAggregateInputType
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to sum
165
+ **/
166
+ _sum?: WorkspaceFileSumAggregateInputType
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to find the minimum value
171
+ **/
172
+ _min?: WorkspaceFileMinAggregateInputType
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Select which fields to find the maximum value
177
+ **/
178
+ _max?: WorkspaceFileMaxAggregateInputType
179
+ }
180
+
181
+ export type GetWorkspaceFileAggregateType<T extends WorkspaceFileAggregateArgs> = {
182
+ [P in keyof T & keyof AggregateWorkspaceFile]: P extends '_count' | 'count'
183
+ ? T[P] extends true
184
+ ? number
185
+ : Prisma.GetScalarType<T[P], AggregateWorkspaceFile[P]>
186
+ : Prisma.GetScalarType<T[P], AggregateWorkspaceFile[P]>
187
+ }
188
+
189
+
190
+
191
+
192
+ export type WorkspaceFileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
193
+ where?: Prisma.WorkspaceFileWhereInput
194
+ orderBy?: Prisma.WorkspaceFileOrderByWithAggregationInput | Prisma.WorkspaceFileOrderByWithAggregationInput[]
195
+ by: Prisma.WorkspaceFileScalarFieldEnum[] | Prisma.WorkspaceFileScalarFieldEnum
196
+ having?: Prisma.WorkspaceFileScalarWhereWithAggregatesInput
197
+ take?: number
198
+ skip?: number
199
+ _count?: WorkspaceFileCountAggregateInputType | true
200
+ _avg?: WorkspaceFileAvgAggregateInputType
201
+ _sum?: WorkspaceFileSumAggregateInputType
202
+ _min?: WorkspaceFileMinAggregateInputType
203
+ _max?: WorkspaceFileMaxAggregateInputType
204
+ }
205
+
206
+ export type WorkspaceFileGroupByOutputType = {
207
+ id: string
208
+ workspaceId: string
209
+ path: string
210
+ mimeType: string
211
+ size: number
212
+ content: string | null
213
+ source: string
214
+ createdAt: Date
215
+ updatedAt: Date
216
+ _count: WorkspaceFileCountAggregateOutputType | null
217
+ _avg: WorkspaceFileAvgAggregateOutputType | null
218
+ _sum: WorkspaceFileSumAggregateOutputType | null
219
+ _min: WorkspaceFileMinAggregateOutputType | null
220
+ _max: WorkspaceFileMaxAggregateOutputType | null
221
+ }
222
+
223
+ export type GetWorkspaceFileGroupByPayload<T extends WorkspaceFileGroupByArgs> = Prisma.PrismaPromise<
224
+ Array<
225
+ Prisma.PickEnumerable<WorkspaceFileGroupByOutputType, T['by']> &
226
+ {
227
+ [P in ((keyof T) & (keyof WorkspaceFileGroupByOutputType))]: P extends '_count'
228
+ ? T[P] extends boolean
229
+ ? number
230
+ : Prisma.GetScalarType<T[P], WorkspaceFileGroupByOutputType[P]>
231
+ : Prisma.GetScalarType<T[P], WorkspaceFileGroupByOutputType[P]>
232
+ }
233
+ >
234
+ >
235
+
236
+
237
+
238
+ export type WorkspaceFileWhereInput = {
239
+ AND?: Prisma.WorkspaceFileWhereInput | Prisma.WorkspaceFileWhereInput[]
240
+ OR?: Prisma.WorkspaceFileWhereInput[]
241
+ NOT?: Prisma.WorkspaceFileWhereInput | Prisma.WorkspaceFileWhereInput[]
242
+ id?: Prisma.StringFilter<"WorkspaceFile"> | string
243
+ workspaceId?: Prisma.StringFilter<"WorkspaceFile"> | string
244
+ path?: Prisma.StringFilter<"WorkspaceFile"> | string
245
+ mimeType?: Prisma.StringFilter<"WorkspaceFile"> | string
246
+ size?: Prisma.IntFilter<"WorkspaceFile"> | number
247
+ content?: Prisma.StringNullableFilter<"WorkspaceFile"> | string | null
248
+ source?: Prisma.StringFilter<"WorkspaceFile"> | string
249
+ createdAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
250
+ updatedAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
251
+ workspace?: Prisma.XOR<Prisma.HarnessWorkspaceScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput>
252
+ }
253
+
254
+ export type WorkspaceFileOrderByWithRelationInput = {
255
+ id?: Prisma.SortOrder
256
+ workspaceId?: Prisma.SortOrder
257
+ path?: Prisma.SortOrder
258
+ mimeType?: Prisma.SortOrder
259
+ size?: Prisma.SortOrder
260
+ content?: Prisma.SortOrderInput | Prisma.SortOrder
261
+ source?: Prisma.SortOrder
262
+ createdAt?: Prisma.SortOrder
263
+ updatedAt?: Prisma.SortOrder
264
+ workspace?: Prisma.HarnessWorkspaceOrderByWithRelationInput
265
+ }
266
+
267
+ export type WorkspaceFileWhereUniqueInput = Prisma.AtLeast<{
268
+ id?: string
269
+ workspaceId_path?: Prisma.WorkspaceFileWorkspaceIdPathCompoundUniqueInput
270
+ AND?: Prisma.WorkspaceFileWhereInput | Prisma.WorkspaceFileWhereInput[]
271
+ OR?: Prisma.WorkspaceFileWhereInput[]
272
+ NOT?: Prisma.WorkspaceFileWhereInput | Prisma.WorkspaceFileWhereInput[]
273
+ workspaceId?: Prisma.StringFilter<"WorkspaceFile"> | string
274
+ path?: Prisma.StringFilter<"WorkspaceFile"> | string
275
+ mimeType?: Prisma.StringFilter<"WorkspaceFile"> | string
276
+ size?: Prisma.IntFilter<"WorkspaceFile"> | number
277
+ content?: Prisma.StringNullableFilter<"WorkspaceFile"> | string | null
278
+ source?: Prisma.StringFilter<"WorkspaceFile"> | string
279
+ createdAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
280
+ updatedAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
281
+ workspace?: Prisma.XOR<Prisma.HarnessWorkspaceScalarRelationFilter, Prisma.HarnessWorkspaceWhereInput>
282
+ }, "id" | "workspaceId_path">
283
+
284
+ export type WorkspaceFileOrderByWithAggregationInput = {
285
+ id?: Prisma.SortOrder
286
+ workspaceId?: Prisma.SortOrder
287
+ path?: Prisma.SortOrder
288
+ mimeType?: Prisma.SortOrder
289
+ size?: Prisma.SortOrder
290
+ content?: Prisma.SortOrderInput | Prisma.SortOrder
291
+ source?: Prisma.SortOrder
292
+ createdAt?: Prisma.SortOrder
293
+ updatedAt?: Prisma.SortOrder
294
+ _count?: Prisma.WorkspaceFileCountOrderByAggregateInput
295
+ _avg?: Prisma.WorkspaceFileAvgOrderByAggregateInput
296
+ _max?: Prisma.WorkspaceFileMaxOrderByAggregateInput
297
+ _min?: Prisma.WorkspaceFileMinOrderByAggregateInput
298
+ _sum?: Prisma.WorkspaceFileSumOrderByAggregateInput
299
+ }
300
+
301
+ export type WorkspaceFileScalarWhereWithAggregatesInput = {
302
+ AND?: Prisma.WorkspaceFileScalarWhereWithAggregatesInput | Prisma.WorkspaceFileScalarWhereWithAggregatesInput[]
303
+ OR?: Prisma.WorkspaceFileScalarWhereWithAggregatesInput[]
304
+ NOT?: Prisma.WorkspaceFileScalarWhereWithAggregatesInput | Prisma.WorkspaceFileScalarWhereWithAggregatesInput[]
305
+ id?: Prisma.StringWithAggregatesFilter<"WorkspaceFile"> | string
306
+ workspaceId?: Prisma.StringWithAggregatesFilter<"WorkspaceFile"> | string
307
+ path?: Prisma.StringWithAggregatesFilter<"WorkspaceFile"> | string
308
+ mimeType?: Prisma.StringWithAggregatesFilter<"WorkspaceFile"> | string
309
+ size?: Prisma.IntWithAggregatesFilter<"WorkspaceFile"> | number
310
+ content?: Prisma.StringNullableWithAggregatesFilter<"WorkspaceFile"> | string | null
311
+ source?: Prisma.StringWithAggregatesFilter<"WorkspaceFile"> | string
312
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorkspaceFile"> | Date | string
313
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WorkspaceFile"> | Date | string
314
+ }
315
+
316
+ export type WorkspaceFileCreateInput = {
317
+ id?: string
318
+ path: string
319
+ mimeType?: string
320
+ size?: number
321
+ content?: string | null
322
+ source?: string
323
+ createdAt?: Date | string
324
+ updatedAt?: Date | string
325
+ workspace: Prisma.HarnessWorkspaceCreateNestedOneWithoutFilesInput
326
+ }
327
+
328
+ export type WorkspaceFileUncheckedCreateInput = {
329
+ id?: string
330
+ workspaceId: string
331
+ path: string
332
+ mimeType?: string
333
+ size?: number
334
+ content?: string | null
335
+ source?: string
336
+ createdAt?: Date | string
337
+ updatedAt?: Date | string
338
+ }
339
+
340
+ export type WorkspaceFileUpdateInput = {
341
+ id?: Prisma.StringFieldUpdateOperationsInput | string
342
+ path?: Prisma.StringFieldUpdateOperationsInput | string
343
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
344
+ size?: Prisma.IntFieldUpdateOperationsInput | number
345
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
346
+ source?: Prisma.StringFieldUpdateOperationsInput | string
347
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
348
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
349
+ workspace?: Prisma.HarnessWorkspaceUpdateOneRequiredWithoutFilesNestedInput
350
+ }
351
+
352
+ export type WorkspaceFileUncheckedUpdateInput = {
353
+ id?: Prisma.StringFieldUpdateOperationsInput | string
354
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string
355
+ path?: Prisma.StringFieldUpdateOperationsInput | string
356
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
357
+ size?: Prisma.IntFieldUpdateOperationsInput | number
358
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
359
+ source?: Prisma.StringFieldUpdateOperationsInput | string
360
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
361
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
362
+ }
363
+
364
+ export type WorkspaceFileCreateManyInput = {
365
+ id?: string
366
+ workspaceId: string
367
+ path: string
368
+ mimeType?: string
369
+ size?: number
370
+ content?: string | null
371
+ source?: string
372
+ createdAt?: Date | string
373
+ updatedAt?: Date | string
374
+ }
375
+
376
+ export type WorkspaceFileUpdateManyMutationInput = {
377
+ id?: Prisma.StringFieldUpdateOperationsInput | string
378
+ path?: Prisma.StringFieldUpdateOperationsInput | string
379
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
380
+ size?: Prisma.IntFieldUpdateOperationsInput | number
381
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
382
+ source?: Prisma.StringFieldUpdateOperationsInput | string
383
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
384
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
385
+ }
386
+
387
+ export type WorkspaceFileUncheckedUpdateManyInput = {
388
+ id?: Prisma.StringFieldUpdateOperationsInput | string
389
+ workspaceId?: Prisma.StringFieldUpdateOperationsInput | string
390
+ path?: Prisma.StringFieldUpdateOperationsInput | string
391
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
392
+ size?: Prisma.IntFieldUpdateOperationsInput | number
393
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
394
+ source?: Prisma.StringFieldUpdateOperationsInput | string
395
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
396
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
397
+ }
398
+
399
+ export type WorkspaceFileListRelationFilter = {
400
+ every?: Prisma.WorkspaceFileWhereInput
401
+ some?: Prisma.WorkspaceFileWhereInput
402
+ none?: Prisma.WorkspaceFileWhereInput
403
+ }
404
+
405
+ export type WorkspaceFileOrderByRelationAggregateInput = {
406
+ _count?: Prisma.SortOrder
407
+ }
408
+
409
+ export type WorkspaceFileWorkspaceIdPathCompoundUniqueInput = {
410
+ workspaceId: string
411
+ path: string
412
+ }
413
+
414
+ export type WorkspaceFileCountOrderByAggregateInput = {
415
+ id?: Prisma.SortOrder
416
+ workspaceId?: Prisma.SortOrder
417
+ path?: Prisma.SortOrder
418
+ mimeType?: Prisma.SortOrder
419
+ size?: Prisma.SortOrder
420
+ content?: Prisma.SortOrder
421
+ source?: Prisma.SortOrder
422
+ createdAt?: Prisma.SortOrder
423
+ updatedAt?: Prisma.SortOrder
424
+ }
425
+
426
+ export type WorkspaceFileAvgOrderByAggregateInput = {
427
+ size?: Prisma.SortOrder
428
+ }
429
+
430
+ export type WorkspaceFileMaxOrderByAggregateInput = {
431
+ id?: Prisma.SortOrder
432
+ workspaceId?: Prisma.SortOrder
433
+ path?: Prisma.SortOrder
434
+ mimeType?: Prisma.SortOrder
435
+ size?: Prisma.SortOrder
436
+ content?: Prisma.SortOrder
437
+ source?: Prisma.SortOrder
438
+ createdAt?: Prisma.SortOrder
439
+ updatedAt?: Prisma.SortOrder
440
+ }
441
+
442
+ export type WorkspaceFileMinOrderByAggregateInput = {
443
+ id?: Prisma.SortOrder
444
+ workspaceId?: Prisma.SortOrder
445
+ path?: Prisma.SortOrder
446
+ mimeType?: Prisma.SortOrder
447
+ size?: Prisma.SortOrder
448
+ content?: Prisma.SortOrder
449
+ source?: Prisma.SortOrder
450
+ createdAt?: Prisma.SortOrder
451
+ updatedAt?: Prisma.SortOrder
452
+ }
453
+
454
+ export type WorkspaceFileSumOrderByAggregateInput = {
455
+ size?: Prisma.SortOrder
456
+ }
457
+
458
+ export type WorkspaceFileCreateNestedManyWithoutWorkspaceInput = {
459
+ create?: Prisma.XOR<Prisma.WorkspaceFileCreateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput> | Prisma.WorkspaceFileCreateWithoutWorkspaceInput[] | Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput[]
460
+ connectOrCreate?: Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput | Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput[]
461
+ createMany?: Prisma.WorkspaceFileCreateManyWorkspaceInputEnvelope
462
+ connect?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
463
+ }
464
+
465
+ export type WorkspaceFileUncheckedCreateNestedManyWithoutWorkspaceInput = {
466
+ create?: Prisma.XOR<Prisma.WorkspaceFileCreateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput> | Prisma.WorkspaceFileCreateWithoutWorkspaceInput[] | Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput[]
467
+ connectOrCreate?: Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput | Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput[]
468
+ createMany?: Prisma.WorkspaceFileCreateManyWorkspaceInputEnvelope
469
+ connect?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
470
+ }
471
+
472
+ export type WorkspaceFileUpdateManyWithoutWorkspaceNestedInput = {
473
+ create?: Prisma.XOR<Prisma.WorkspaceFileCreateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput> | Prisma.WorkspaceFileCreateWithoutWorkspaceInput[] | Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput[]
474
+ connectOrCreate?: Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput | Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput[]
475
+ upsert?: Prisma.WorkspaceFileUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.WorkspaceFileUpsertWithWhereUniqueWithoutWorkspaceInput[]
476
+ createMany?: Prisma.WorkspaceFileCreateManyWorkspaceInputEnvelope
477
+ set?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
478
+ disconnect?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
479
+ delete?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
480
+ connect?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
481
+ update?: Prisma.WorkspaceFileUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.WorkspaceFileUpdateWithWhereUniqueWithoutWorkspaceInput[]
482
+ updateMany?: Prisma.WorkspaceFileUpdateManyWithWhereWithoutWorkspaceInput | Prisma.WorkspaceFileUpdateManyWithWhereWithoutWorkspaceInput[]
483
+ deleteMany?: Prisma.WorkspaceFileScalarWhereInput | Prisma.WorkspaceFileScalarWhereInput[]
484
+ }
485
+
486
+ export type WorkspaceFileUncheckedUpdateManyWithoutWorkspaceNestedInput = {
487
+ create?: Prisma.XOR<Prisma.WorkspaceFileCreateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput> | Prisma.WorkspaceFileCreateWithoutWorkspaceInput[] | Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput[]
488
+ connectOrCreate?: Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput | Prisma.WorkspaceFileCreateOrConnectWithoutWorkspaceInput[]
489
+ upsert?: Prisma.WorkspaceFileUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.WorkspaceFileUpsertWithWhereUniqueWithoutWorkspaceInput[]
490
+ createMany?: Prisma.WorkspaceFileCreateManyWorkspaceInputEnvelope
491
+ set?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
492
+ disconnect?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
493
+ delete?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
494
+ connect?: Prisma.WorkspaceFileWhereUniqueInput | Prisma.WorkspaceFileWhereUniqueInput[]
495
+ update?: Prisma.WorkspaceFileUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.WorkspaceFileUpdateWithWhereUniqueWithoutWorkspaceInput[]
496
+ updateMany?: Prisma.WorkspaceFileUpdateManyWithWhereWithoutWorkspaceInput | Prisma.WorkspaceFileUpdateManyWithWhereWithoutWorkspaceInput[]
497
+ deleteMany?: Prisma.WorkspaceFileScalarWhereInput | Prisma.WorkspaceFileScalarWhereInput[]
498
+ }
499
+
500
+ export type WorkspaceFileCreateWithoutWorkspaceInput = {
501
+ id?: string
502
+ path: string
503
+ mimeType?: string
504
+ size?: number
505
+ content?: string | null
506
+ source?: string
507
+ createdAt?: Date | string
508
+ updatedAt?: Date | string
509
+ }
510
+
511
+ export type WorkspaceFileUncheckedCreateWithoutWorkspaceInput = {
512
+ id?: string
513
+ path: string
514
+ mimeType?: string
515
+ size?: number
516
+ content?: string | null
517
+ source?: string
518
+ createdAt?: Date | string
519
+ updatedAt?: Date | string
520
+ }
521
+
522
+ export type WorkspaceFileCreateOrConnectWithoutWorkspaceInput = {
523
+ where: Prisma.WorkspaceFileWhereUniqueInput
524
+ create: Prisma.XOR<Prisma.WorkspaceFileCreateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput>
525
+ }
526
+
527
+ export type WorkspaceFileCreateManyWorkspaceInputEnvelope = {
528
+ data: Prisma.WorkspaceFileCreateManyWorkspaceInput | Prisma.WorkspaceFileCreateManyWorkspaceInput[]
529
+ skipDuplicates?: boolean
530
+ }
531
+
532
+ export type WorkspaceFileUpsertWithWhereUniqueWithoutWorkspaceInput = {
533
+ where: Prisma.WorkspaceFileWhereUniqueInput
534
+ update: Prisma.XOR<Prisma.WorkspaceFileUpdateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedUpdateWithoutWorkspaceInput>
535
+ create: Prisma.XOR<Prisma.WorkspaceFileCreateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput>
536
+ }
537
+
538
+ export type WorkspaceFileUpdateWithWhereUniqueWithoutWorkspaceInput = {
539
+ where: Prisma.WorkspaceFileWhereUniqueInput
540
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedUpdateWithoutWorkspaceInput>
541
+ }
542
+
543
+ export type WorkspaceFileUpdateManyWithWhereWithoutWorkspaceInput = {
544
+ where: Prisma.WorkspaceFileScalarWhereInput
545
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateManyMutationInput, Prisma.WorkspaceFileUncheckedUpdateManyWithoutWorkspaceInput>
546
+ }
547
+
548
+ export type WorkspaceFileScalarWhereInput = {
549
+ AND?: Prisma.WorkspaceFileScalarWhereInput | Prisma.WorkspaceFileScalarWhereInput[]
550
+ OR?: Prisma.WorkspaceFileScalarWhereInput[]
551
+ NOT?: Prisma.WorkspaceFileScalarWhereInput | Prisma.WorkspaceFileScalarWhereInput[]
552
+ id?: Prisma.StringFilter<"WorkspaceFile"> | string
553
+ workspaceId?: Prisma.StringFilter<"WorkspaceFile"> | string
554
+ path?: Prisma.StringFilter<"WorkspaceFile"> | string
555
+ mimeType?: Prisma.StringFilter<"WorkspaceFile"> | string
556
+ size?: Prisma.IntFilter<"WorkspaceFile"> | number
557
+ content?: Prisma.StringNullableFilter<"WorkspaceFile"> | string | null
558
+ source?: Prisma.StringFilter<"WorkspaceFile"> | string
559
+ createdAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
560
+ updatedAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
561
+ }
562
+
563
+ export type WorkspaceFileCreateManyWorkspaceInput = {
564
+ id?: string
565
+ path: string
566
+ mimeType?: string
567
+ size?: number
568
+ content?: string | null
569
+ source?: string
570
+ createdAt?: Date | string
571
+ updatedAt?: Date | string
572
+ }
573
+
574
+ export type WorkspaceFileUpdateWithoutWorkspaceInput = {
575
+ id?: Prisma.StringFieldUpdateOperationsInput | string
576
+ path?: Prisma.StringFieldUpdateOperationsInput | string
577
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
578
+ size?: Prisma.IntFieldUpdateOperationsInput | number
579
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
580
+ source?: Prisma.StringFieldUpdateOperationsInput | string
581
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
582
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
583
+ }
584
+
585
+ export type WorkspaceFileUncheckedUpdateWithoutWorkspaceInput = {
586
+ id?: Prisma.StringFieldUpdateOperationsInput | string
587
+ path?: Prisma.StringFieldUpdateOperationsInput | string
588
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
589
+ size?: Prisma.IntFieldUpdateOperationsInput | number
590
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
591
+ source?: Prisma.StringFieldUpdateOperationsInput | string
592
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
593
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
594
+ }
595
+
596
+ export type WorkspaceFileUncheckedUpdateManyWithoutWorkspaceInput = {
597
+ id?: Prisma.StringFieldUpdateOperationsInput | string
598
+ path?: Prisma.StringFieldUpdateOperationsInput | string
599
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
600
+ size?: Prisma.IntFieldUpdateOperationsInput | number
601
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
602
+ source?: Prisma.StringFieldUpdateOperationsInput | string
603
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
604
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
605
+ }
606
+
607
+
608
+
609
+ export type WorkspaceFileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
610
+ id?: boolean
611
+ workspaceId?: boolean
612
+ path?: boolean
613
+ mimeType?: boolean
614
+ size?: boolean
615
+ content?: boolean
616
+ source?: boolean
617
+ createdAt?: boolean
618
+ updatedAt?: boolean
619
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
620
+ }, ExtArgs["result"]["workspaceFile"]>
621
+
622
+ export type WorkspaceFileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
623
+ id?: boolean
624
+ workspaceId?: boolean
625
+ path?: boolean
626
+ mimeType?: boolean
627
+ size?: boolean
628
+ content?: boolean
629
+ source?: boolean
630
+ createdAt?: boolean
631
+ updatedAt?: boolean
632
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
633
+ }, ExtArgs["result"]["workspaceFile"]>
634
+
635
+ export type WorkspaceFileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
636
+ id?: boolean
637
+ workspaceId?: boolean
638
+ path?: boolean
639
+ mimeType?: boolean
640
+ size?: boolean
641
+ content?: boolean
642
+ source?: boolean
643
+ createdAt?: boolean
644
+ updatedAt?: boolean
645
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
646
+ }, ExtArgs["result"]["workspaceFile"]>
647
+
648
+ export type WorkspaceFileSelectScalar = {
649
+ id?: boolean
650
+ workspaceId?: boolean
651
+ path?: boolean
652
+ mimeType?: boolean
653
+ size?: boolean
654
+ content?: boolean
655
+ source?: boolean
656
+ createdAt?: boolean
657
+ updatedAt?: boolean
658
+ }
659
+
660
+ export type WorkspaceFileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "workspaceId" | "path" | "mimeType" | "size" | "content" | "source" | "createdAt" | "updatedAt", ExtArgs["result"]["workspaceFile"]>
661
+ export type WorkspaceFileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
662
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
663
+ }
664
+ export type WorkspaceFileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
665
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
666
+ }
667
+ export type WorkspaceFileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
668
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
669
+ }
670
+
671
+ export type $WorkspaceFilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
672
+ name: "WorkspaceFile"
673
+ objects: {
674
+ workspace: Prisma.$HarnessWorkspacePayload<ExtArgs>
675
+ }
676
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
677
+ id: string
678
+ workspaceId: string
679
+ path: string
680
+ mimeType: string
681
+ size: number
682
+ content: string | null
683
+ source: string
684
+ createdAt: Date
685
+ updatedAt: Date
686
+ }, ExtArgs["result"]["workspaceFile"]>
687
+ composites: {}
688
+ }
689
+
690
+ export type WorkspaceFileGetPayload<S extends boolean | null | undefined | WorkspaceFileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload, S>
691
+
692
+ export type WorkspaceFileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
693
+ Omit<WorkspaceFileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
694
+ select?: WorkspaceFileCountAggregateInputType | true
695
+ }
696
+
697
+ export interface WorkspaceFileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
698
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WorkspaceFile'], meta: { name: 'WorkspaceFile' } }
699
+ /**
700
+ * Find zero or one WorkspaceFile that matches the filter.
701
+ * @param {WorkspaceFileFindUniqueArgs} args - Arguments to find a WorkspaceFile
702
+ * @example
703
+ * // Get one WorkspaceFile
704
+ * const workspaceFile = await prisma.workspaceFile.findUnique({
705
+ * where: {
706
+ * // ... provide filter here
707
+ * }
708
+ * })
709
+ */
710
+ findUnique<T extends WorkspaceFileFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkspaceFileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
711
+
712
+ /**
713
+ * Find one WorkspaceFile that matches the filter or throw an error with `error.code='P2025'`
714
+ * if no matches were found.
715
+ * @param {WorkspaceFileFindUniqueOrThrowArgs} args - Arguments to find a WorkspaceFile
716
+ * @example
717
+ * // Get one WorkspaceFile
718
+ * const workspaceFile = await prisma.workspaceFile.findUniqueOrThrow({
719
+ * where: {
720
+ * // ... provide filter here
721
+ * }
722
+ * })
723
+ */
724
+ findUniqueOrThrow<T extends WorkspaceFileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkspaceFileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
725
+
726
+ /**
727
+ * Find the first WorkspaceFile that matches the filter.
728
+ * Note, that providing `undefined` is treated as the value not being there.
729
+ * Read more here: https://pris.ly/d/null-undefined
730
+ * @param {WorkspaceFileFindFirstArgs} args - Arguments to find a WorkspaceFile
731
+ * @example
732
+ * // Get one WorkspaceFile
733
+ * const workspaceFile = await prisma.workspaceFile.findFirst({
734
+ * where: {
735
+ * // ... provide filter here
736
+ * }
737
+ * })
738
+ */
739
+ findFirst<T extends WorkspaceFileFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
740
+
741
+ /**
742
+ * Find the first WorkspaceFile that matches the filter or
743
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
744
+ * Note, that providing `undefined` is treated as the value not being there.
745
+ * Read more here: https://pris.ly/d/null-undefined
746
+ * @param {WorkspaceFileFindFirstOrThrowArgs} args - Arguments to find a WorkspaceFile
747
+ * @example
748
+ * // Get one WorkspaceFile
749
+ * const workspaceFile = await prisma.workspaceFile.findFirstOrThrow({
750
+ * where: {
751
+ * // ... provide filter here
752
+ * }
753
+ * })
754
+ */
755
+ findFirstOrThrow<T extends WorkspaceFileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
756
+
757
+ /**
758
+ * Find zero or more WorkspaceFiles that matches the filter.
759
+ * Note, that providing `undefined` is treated as the value not being there.
760
+ * Read more here: https://pris.ly/d/null-undefined
761
+ * @param {WorkspaceFileFindManyArgs} args - Arguments to filter and select certain fields only.
762
+ * @example
763
+ * // Get all WorkspaceFiles
764
+ * const workspaceFiles = await prisma.workspaceFile.findMany()
765
+ *
766
+ * // Get first 10 WorkspaceFiles
767
+ * const workspaceFiles = await prisma.workspaceFile.findMany({ take: 10 })
768
+ *
769
+ * // Only select the `id`
770
+ * const workspaceFileWithIdOnly = await prisma.workspaceFile.findMany({ select: { id: true } })
771
+ *
772
+ */
773
+ findMany<T extends WorkspaceFileFindManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
774
+
775
+ /**
776
+ * Create a WorkspaceFile.
777
+ * @param {WorkspaceFileCreateArgs} args - Arguments to create a WorkspaceFile.
778
+ * @example
779
+ * // Create one WorkspaceFile
780
+ * const WorkspaceFile = await prisma.workspaceFile.create({
781
+ * data: {
782
+ * // ... data to create a WorkspaceFile
783
+ * }
784
+ * })
785
+ *
786
+ */
787
+ create<T extends WorkspaceFileCreateArgs>(args: Prisma.SelectSubset<T, WorkspaceFileCreateArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
788
+
789
+ /**
790
+ * Create many WorkspaceFiles.
791
+ * @param {WorkspaceFileCreateManyArgs} args - Arguments to create many WorkspaceFiles.
792
+ * @example
793
+ * // Create many WorkspaceFiles
794
+ * const workspaceFile = await prisma.workspaceFile.createMany({
795
+ * data: [
796
+ * // ... provide data here
797
+ * ]
798
+ * })
799
+ *
800
+ */
801
+ createMany<T extends WorkspaceFileCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
802
+
803
+ /**
804
+ * Create many WorkspaceFiles and returns the data saved in the database.
805
+ * @param {WorkspaceFileCreateManyAndReturnArgs} args - Arguments to create many WorkspaceFiles.
806
+ * @example
807
+ * // Create many WorkspaceFiles
808
+ * const workspaceFile = await prisma.workspaceFile.createManyAndReturn({
809
+ * data: [
810
+ * // ... provide data here
811
+ * ]
812
+ * })
813
+ *
814
+ * // Create many WorkspaceFiles and only return the `id`
815
+ * const workspaceFileWithIdOnly = await prisma.workspaceFile.createManyAndReturn({
816
+ * select: { id: true },
817
+ * data: [
818
+ * // ... provide data here
819
+ * ]
820
+ * })
821
+ * Note, that providing `undefined` is treated as the value not being there.
822
+ * Read more here: https://pris.ly/d/null-undefined
823
+ *
824
+ */
825
+ createManyAndReturn<T extends WorkspaceFileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
826
+
827
+ /**
828
+ * Delete a WorkspaceFile.
829
+ * @param {WorkspaceFileDeleteArgs} args - Arguments to delete one WorkspaceFile.
830
+ * @example
831
+ * // Delete one WorkspaceFile
832
+ * const WorkspaceFile = await prisma.workspaceFile.delete({
833
+ * where: {
834
+ * // ... filter to delete one WorkspaceFile
835
+ * }
836
+ * })
837
+ *
838
+ */
839
+ delete<T extends WorkspaceFileDeleteArgs>(args: Prisma.SelectSubset<T, WorkspaceFileDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
840
+
841
+ /**
842
+ * Update one WorkspaceFile.
843
+ * @param {WorkspaceFileUpdateArgs} args - Arguments to update one WorkspaceFile.
844
+ * @example
845
+ * // Update one WorkspaceFile
846
+ * const workspaceFile = await prisma.workspaceFile.update({
847
+ * where: {
848
+ * // ... provide filter here
849
+ * },
850
+ * data: {
851
+ * // ... provide data here
852
+ * }
853
+ * })
854
+ *
855
+ */
856
+ update<T extends WorkspaceFileUpdateArgs>(args: Prisma.SelectSubset<T, WorkspaceFileUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
857
+
858
+ /**
859
+ * Delete zero or more WorkspaceFiles.
860
+ * @param {WorkspaceFileDeleteManyArgs} args - Arguments to filter WorkspaceFiles to delete.
861
+ * @example
862
+ * // Delete a few WorkspaceFiles
863
+ * const { count } = await prisma.workspaceFile.deleteMany({
864
+ * where: {
865
+ * // ... provide filter here
866
+ * }
867
+ * })
868
+ *
869
+ */
870
+ deleteMany<T extends WorkspaceFileDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
871
+
872
+ /**
873
+ * Update zero or more WorkspaceFiles.
874
+ * Note, that providing `undefined` is treated as the value not being there.
875
+ * Read more here: https://pris.ly/d/null-undefined
876
+ * @param {WorkspaceFileUpdateManyArgs} args - Arguments to update one or more rows.
877
+ * @example
878
+ * // Update many WorkspaceFiles
879
+ * const workspaceFile = await prisma.workspaceFile.updateMany({
880
+ * where: {
881
+ * // ... provide filter here
882
+ * },
883
+ * data: {
884
+ * // ... provide data here
885
+ * }
886
+ * })
887
+ *
888
+ */
889
+ updateMany<T extends WorkspaceFileUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkspaceFileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
890
+
891
+ /**
892
+ * Update zero or more WorkspaceFiles and returns the data updated in the database.
893
+ * @param {WorkspaceFileUpdateManyAndReturnArgs} args - Arguments to update many WorkspaceFiles.
894
+ * @example
895
+ * // Update many WorkspaceFiles
896
+ * const workspaceFile = await prisma.workspaceFile.updateManyAndReturn({
897
+ * where: {
898
+ * // ... provide filter here
899
+ * },
900
+ * data: [
901
+ * // ... provide data here
902
+ * ]
903
+ * })
904
+ *
905
+ * // Update zero or more WorkspaceFiles and only return the `id`
906
+ * const workspaceFileWithIdOnly = await prisma.workspaceFile.updateManyAndReturn({
907
+ * select: { id: true },
908
+ * where: {
909
+ * // ... provide filter here
910
+ * },
911
+ * data: [
912
+ * // ... provide data here
913
+ * ]
914
+ * })
915
+ * Note, that providing `undefined` is treated as the value not being there.
916
+ * Read more here: https://pris.ly/d/null-undefined
917
+ *
918
+ */
919
+ updateManyAndReturn<T extends WorkspaceFileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkspaceFileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
920
+
921
+ /**
922
+ * Create or update one WorkspaceFile.
923
+ * @param {WorkspaceFileUpsertArgs} args - Arguments to update or create a WorkspaceFile.
924
+ * @example
925
+ * // Update or create a WorkspaceFile
926
+ * const workspaceFile = await prisma.workspaceFile.upsert({
927
+ * create: {
928
+ * // ... data to create a WorkspaceFile
929
+ * },
930
+ * update: {
931
+ * // ... in case it already exists, update
932
+ * },
933
+ * where: {
934
+ * // ... the filter for the WorkspaceFile we want to update
935
+ * }
936
+ * })
937
+ */
938
+ upsert<T extends WorkspaceFileUpsertArgs>(args: Prisma.SelectSubset<T, WorkspaceFileUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkspaceFileClient<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
939
+
940
+
941
+ /**
942
+ * Count the number of WorkspaceFiles.
943
+ * Note, that providing `undefined` is treated as the value not being there.
944
+ * Read more here: https://pris.ly/d/null-undefined
945
+ * @param {WorkspaceFileCountArgs} args - Arguments to filter WorkspaceFiles to count.
946
+ * @example
947
+ * // Count the number of WorkspaceFiles
948
+ * const count = await prisma.workspaceFile.count({
949
+ * where: {
950
+ * // ... the filter for the WorkspaceFiles we want to count
951
+ * }
952
+ * })
953
+ **/
954
+ count<T extends WorkspaceFileCountArgs>(
955
+ args?: Prisma.Subset<T, WorkspaceFileCountArgs>,
956
+ ): Prisma.PrismaPromise<
957
+ T extends runtime.Types.Utils.Record<'select', any>
958
+ ? T['select'] extends true
959
+ ? number
960
+ : Prisma.GetScalarType<T['select'], WorkspaceFileCountAggregateOutputType>
961
+ : number
962
+ >
963
+
964
+ /**
965
+ * Allows you to perform aggregations operations on a WorkspaceFile.
966
+ * Note, that providing `undefined` is treated as the value not being there.
967
+ * Read more here: https://pris.ly/d/null-undefined
968
+ * @param {WorkspaceFileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
969
+ * @example
970
+ * // Ordered by age ascending
971
+ * // Where email contains prisma.io
972
+ * // Limited to the 10 users
973
+ * const aggregations = await prisma.user.aggregate({
974
+ * _avg: {
975
+ * age: true,
976
+ * },
977
+ * where: {
978
+ * email: {
979
+ * contains: "prisma.io",
980
+ * },
981
+ * },
982
+ * orderBy: {
983
+ * age: "asc",
984
+ * },
985
+ * take: 10,
986
+ * })
987
+ **/
988
+ aggregate<T extends WorkspaceFileAggregateArgs>(args: Prisma.Subset<T, WorkspaceFileAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceFileAggregateType<T>>
989
+
990
+ /**
991
+ * Group by WorkspaceFile.
992
+ * Note, that providing `undefined` is treated as the value not being there.
993
+ * Read more here: https://pris.ly/d/null-undefined
994
+ * @param {WorkspaceFileGroupByArgs} args - Group by arguments.
995
+ * @example
996
+ * // Group by city, order by createdAt, get count
997
+ * const result = await prisma.user.groupBy({
998
+ * by: ['city', 'createdAt'],
999
+ * orderBy: {
1000
+ * createdAt: true
1001
+ * },
1002
+ * _count: {
1003
+ * _all: true
1004
+ * },
1005
+ * })
1006
+ *
1007
+ **/
1008
+ groupBy<
1009
+ T extends WorkspaceFileGroupByArgs,
1010
+ HasSelectOrTake extends Prisma.Or<
1011
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1012
+ Prisma.Extends<'take', Prisma.Keys<T>>
1013
+ >,
1014
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1015
+ ? { orderBy: WorkspaceFileGroupByArgs['orderBy'] }
1016
+ : { orderBy?: WorkspaceFileGroupByArgs['orderBy'] },
1017
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1018
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1019
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1020
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1021
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1022
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1023
+ InputErrors extends ByEmpty extends Prisma.True
1024
+ ? `Error: "by" must not be empty.`
1025
+ : HavingValid extends Prisma.False
1026
+ ? {
1027
+ [P in HavingFields]: P extends ByFields
1028
+ ? never
1029
+ : P extends string
1030
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1031
+ : [
1032
+ Error,
1033
+ 'Field ',
1034
+ P,
1035
+ ` in "having" needs to be provided in "by"`,
1036
+ ]
1037
+ }[HavingFields]
1038
+ : 'take' extends Prisma.Keys<T>
1039
+ ? 'orderBy' extends Prisma.Keys<T>
1040
+ ? ByValid extends Prisma.True
1041
+ ? {}
1042
+ : {
1043
+ [P in OrderFields]: P extends ByFields
1044
+ ? never
1045
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1046
+ }[OrderFields]
1047
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1048
+ : 'skip' extends Prisma.Keys<T>
1049
+ ? 'orderBy' extends Prisma.Keys<T>
1050
+ ? ByValid extends Prisma.True
1051
+ ? {}
1052
+ : {
1053
+ [P in OrderFields]: P extends ByFields
1054
+ ? never
1055
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1056
+ }[OrderFields]
1057
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1058
+ : ByValid extends Prisma.True
1059
+ ? {}
1060
+ : {
1061
+ [P in OrderFields]: P extends ByFields
1062
+ ? never
1063
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1064
+ }[OrderFields]
1065
+ >(args: Prisma.SubsetIntersection<T, WorkspaceFileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceFileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1066
+ /**
1067
+ * Fields of the WorkspaceFile model
1068
+ */
1069
+ readonly fields: WorkspaceFileFieldRefs;
1070
+ }
1071
+
1072
+ /**
1073
+ * The delegate class that acts as a "Promise-like" for WorkspaceFile.
1074
+ * Why is this prefixed with `Prisma__`?
1075
+ * Because we want to prevent naming conflicts as mentioned in
1076
+ * https://github.com/prisma/prisma-client-js/issues/707
1077
+ */
1078
+ export interface Prisma__WorkspaceFileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1079
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1080
+ workspace<T extends Prisma.HarnessWorkspaceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>>): Prisma.Prisma__HarnessWorkspaceClient<runtime.Types.Result.GetResult<Prisma.$HarnessWorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1081
+ /**
1082
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1083
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1084
+ * @param onrejected The callback to execute when the Promise is rejected.
1085
+ * @returns A Promise for the completion of which ever callback is executed.
1086
+ */
1087
+ 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>
1088
+ /**
1089
+ * Attaches a callback for only the rejection of the Promise.
1090
+ * @param onrejected The callback to execute when the Promise is rejected.
1091
+ * @returns A Promise for the completion of the callback.
1092
+ */
1093
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1094
+ /**
1095
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1096
+ * resolved value cannot be modified from the callback.
1097
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1098
+ * @returns A Promise for the completion of the callback.
1099
+ */
1100
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1101
+ }
1102
+
1103
+
1104
+
1105
+
1106
+ /**
1107
+ * Fields of the WorkspaceFile model
1108
+ */
1109
+ export interface WorkspaceFileFieldRefs {
1110
+ readonly id: Prisma.FieldRef<"WorkspaceFile", 'String'>
1111
+ readonly workspaceId: Prisma.FieldRef<"WorkspaceFile", 'String'>
1112
+ readonly path: Prisma.FieldRef<"WorkspaceFile", 'String'>
1113
+ readonly mimeType: Prisma.FieldRef<"WorkspaceFile", 'String'>
1114
+ readonly size: Prisma.FieldRef<"WorkspaceFile", 'Int'>
1115
+ readonly content: Prisma.FieldRef<"WorkspaceFile", 'String'>
1116
+ readonly source: Prisma.FieldRef<"WorkspaceFile", 'String'>
1117
+ readonly createdAt: Prisma.FieldRef<"WorkspaceFile", 'DateTime'>
1118
+ readonly updatedAt: Prisma.FieldRef<"WorkspaceFile", 'DateTime'>
1119
+ }
1120
+
1121
+
1122
+ // Custom InputTypes
1123
+ /**
1124
+ * WorkspaceFile findUnique
1125
+ */
1126
+ export type WorkspaceFileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1127
+ /**
1128
+ * Select specific fields to fetch from the WorkspaceFile
1129
+ */
1130
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1131
+ /**
1132
+ * Omit specific fields from the WorkspaceFile
1133
+ */
1134
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1135
+ /**
1136
+ * Choose, which related nodes to fetch as well
1137
+ */
1138
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1139
+ /**
1140
+ * Filter, which WorkspaceFile to fetch.
1141
+ */
1142
+ where: Prisma.WorkspaceFileWhereUniqueInput
1143
+ }
1144
+
1145
+ /**
1146
+ * WorkspaceFile findUniqueOrThrow
1147
+ */
1148
+ export type WorkspaceFileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1149
+ /**
1150
+ * Select specific fields to fetch from the WorkspaceFile
1151
+ */
1152
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1153
+ /**
1154
+ * Omit specific fields from the WorkspaceFile
1155
+ */
1156
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1157
+ /**
1158
+ * Choose, which related nodes to fetch as well
1159
+ */
1160
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1161
+ /**
1162
+ * Filter, which WorkspaceFile to fetch.
1163
+ */
1164
+ where: Prisma.WorkspaceFileWhereUniqueInput
1165
+ }
1166
+
1167
+ /**
1168
+ * WorkspaceFile findFirst
1169
+ */
1170
+ export type WorkspaceFileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1171
+ /**
1172
+ * Select specific fields to fetch from the WorkspaceFile
1173
+ */
1174
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1175
+ /**
1176
+ * Omit specific fields from the WorkspaceFile
1177
+ */
1178
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1179
+ /**
1180
+ * Choose, which related nodes to fetch as well
1181
+ */
1182
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1183
+ /**
1184
+ * Filter, which WorkspaceFile to fetch.
1185
+ */
1186
+ where?: Prisma.WorkspaceFileWhereInput
1187
+ /**
1188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1189
+ *
1190
+ * Determine the order of WorkspaceFiles to fetch.
1191
+ */
1192
+ orderBy?: Prisma.WorkspaceFileOrderByWithRelationInput | Prisma.WorkspaceFileOrderByWithRelationInput[]
1193
+ /**
1194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1195
+ *
1196
+ * Sets the position for searching for WorkspaceFiles.
1197
+ */
1198
+ cursor?: Prisma.WorkspaceFileWhereUniqueInput
1199
+ /**
1200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1201
+ *
1202
+ * Take `±n` WorkspaceFiles from the position of the cursor.
1203
+ */
1204
+ take?: number
1205
+ /**
1206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1207
+ *
1208
+ * Skip the first `n` WorkspaceFiles.
1209
+ */
1210
+ skip?: number
1211
+ /**
1212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1213
+ *
1214
+ * Filter by unique combinations of WorkspaceFiles.
1215
+ */
1216
+ distinct?: Prisma.WorkspaceFileScalarFieldEnum | Prisma.WorkspaceFileScalarFieldEnum[]
1217
+ }
1218
+
1219
+ /**
1220
+ * WorkspaceFile findFirstOrThrow
1221
+ */
1222
+ export type WorkspaceFileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1223
+ /**
1224
+ * Select specific fields to fetch from the WorkspaceFile
1225
+ */
1226
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1227
+ /**
1228
+ * Omit specific fields from the WorkspaceFile
1229
+ */
1230
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1231
+ /**
1232
+ * Choose, which related nodes to fetch as well
1233
+ */
1234
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1235
+ /**
1236
+ * Filter, which WorkspaceFile to fetch.
1237
+ */
1238
+ where?: Prisma.WorkspaceFileWhereInput
1239
+ /**
1240
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1241
+ *
1242
+ * Determine the order of WorkspaceFiles to fetch.
1243
+ */
1244
+ orderBy?: Prisma.WorkspaceFileOrderByWithRelationInput | Prisma.WorkspaceFileOrderByWithRelationInput[]
1245
+ /**
1246
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1247
+ *
1248
+ * Sets the position for searching for WorkspaceFiles.
1249
+ */
1250
+ cursor?: Prisma.WorkspaceFileWhereUniqueInput
1251
+ /**
1252
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1253
+ *
1254
+ * Take `±n` WorkspaceFiles from the position of the cursor.
1255
+ */
1256
+ take?: number
1257
+ /**
1258
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1259
+ *
1260
+ * Skip the first `n` WorkspaceFiles.
1261
+ */
1262
+ skip?: number
1263
+ /**
1264
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1265
+ *
1266
+ * Filter by unique combinations of WorkspaceFiles.
1267
+ */
1268
+ distinct?: Prisma.WorkspaceFileScalarFieldEnum | Prisma.WorkspaceFileScalarFieldEnum[]
1269
+ }
1270
+
1271
+ /**
1272
+ * WorkspaceFile findMany
1273
+ */
1274
+ export type WorkspaceFileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
+ /**
1276
+ * Select specific fields to fetch from the WorkspaceFile
1277
+ */
1278
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1279
+ /**
1280
+ * Omit specific fields from the WorkspaceFile
1281
+ */
1282
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1283
+ /**
1284
+ * Choose, which related nodes to fetch as well
1285
+ */
1286
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1287
+ /**
1288
+ * Filter, which WorkspaceFiles to fetch.
1289
+ */
1290
+ where?: Prisma.WorkspaceFileWhereInput
1291
+ /**
1292
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1293
+ *
1294
+ * Determine the order of WorkspaceFiles to fetch.
1295
+ */
1296
+ orderBy?: Prisma.WorkspaceFileOrderByWithRelationInput | Prisma.WorkspaceFileOrderByWithRelationInput[]
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1299
+ *
1300
+ * Sets the position for listing WorkspaceFiles.
1301
+ */
1302
+ cursor?: Prisma.WorkspaceFileWhereUniqueInput
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1305
+ *
1306
+ * Take `±n` WorkspaceFiles from the position of the cursor.
1307
+ */
1308
+ take?: number
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1311
+ *
1312
+ * Skip the first `n` WorkspaceFiles.
1313
+ */
1314
+ skip?: number
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1317
+ *
1318
+ * Filter by unique combinations of WorkspaceFiles.
1319
+ */
1320
+ distinct?: Prisma.WorkspaceFileScalarFieldEnum | Prisma.WorkspaceFileScalarFieldEnum[]
1321
+ }
1322
+
1323
+ /**
1324
+ * WorkspaceFile create
1325
+ */
1326
+ export type WorkspaceFileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1327
+ /**
1328
+ * Select specific fields to fetch from the WorkspaceFile
1329
+ */
1330
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1331
+ /**
1332
+ * Omit specific fields from the WorkspaceFile
1333
+ */
1334
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1335
+ /**
1336
+ * Choose, which related nodes to fetch as well
1337
+ */
1338
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1339
+ /**
1340
+ * The data needed to create a WorkspaceFile.
1341
+ */
1342
+ data: Prisma.XOR<Prisma.WorkspaceFileCreateInput, Prisma.WorkspaceFileUncheckedCreateInput>
1343
+ }
1344
+
1345
+ /**
1346
+ * WorkspaceFile createMany
1347
+ */
1348
+ export type WorkspaceFileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * The data used to create many WorkspaceFiles.
1351
+ */
1352
+ data: Prisma.WorkspaceFileCreateManyInput | Prisma.WorkspaceFileCreateManyInput[]
1353
+ skipDuplicates?: boolean
1354
+ }
1355
+
1356
+ /**
1357
+ * WorkspaceFile createManyAndReturn
1358
+ */
1359
+ export type WorkspaceFileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1360
+ /**
1361
+ * Select specific fields to fetch from the WorkspaceFile
1362
+ */
1363
+ select?: Prisma.WorkspaceFileSelectCreateManyAndReturn<ExtArgs> | null
1364
+ /**
1365
+ * Omit specific fields from the WorkspaceFile
1366
+ */
1367
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1368
+ /**
1369
+ * The data used to create many WorkspaceFiles.
1370
+ */
1371
+ data: Prisma.WorkspaceFileCreateManyInput | Prisma.WorkspaceFileCreateManyInput[]
1372
+ skipDuplicates?: boolean
1373
+ /**
1374
+ * Choose, which related nodes to fetch as well
1375
+ */
1376
+ include?: Prisma.WorkspaceFileIncludeCreateManyAndReturn<ExtArgs> | null
1377
+ }
1378
+
1379
+ /**
1380
+ * WorkspaceFile update
1381
+ */
1382
+ export type WorkspaceFileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1383
+ /**
1384
+ * Select specific fields to fetch from the WorkspaceFile
1385
+ */
1386
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1387
+ /**
1388
+ * Omit specific fields from the WorkspaceFile
1389
+ */
1390
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1391
+ /**
1392
+ * Choose, which related nodes to fetch as well
1393
+ */
1394
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1395
+ /**
1396
+ * The data needed to update a WorkspaceFile.
1397
+ */
1398
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateInput, Prisma.WorkspaceFileUncheckedUpdateInput>
1399
+ /**
1400
+ * Choose, which WorkspaceFile to update.
1401
+ */
1402
+ where: Prisma.WorkspaceFileWhereUniqueInput
1403
+ }
1404
+
1405
+ /**
1406
+ * WorkspaceFile updateMany
1407
+ */
1408
+ export type WorkspaceFileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1409
+ /**
1410
+ * The data used to update WorkspaceFiles.
1411
+ */
1412
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateManyMutationInput, Prisma.WorkspaceFileUncheckedUpdateManyInput>
1413
+ /**
1414
+ * Filter which WorkspaceFiles to update
1415
+ */
1416
+ where?: Prisma.WorkspaceFileWhereInput
1417
+ /**
1418
+ * Limit how many WorkspaceFiles to update.
1419
+ */
1420
+ limit?: number
1421
+ }
1422
+
1423
+ /**
1424
+ * WorkspaceFile updateManyAndReturn
1425
+ */
1426
+ export type WorkspaceFileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1427
+ /**
1428
+ * Select specific fields to fetch from the WorkspaceFile
1429
+ */
1430
+ select?: Prisma.WorkspaceFileSelectUpdateManyAndReturn<ExtArgs> | null
1431
+ /**
1432
+ * Omit specific fields from the WorkspaceFile
1433
+ */
1434
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1435
+ /**
1436
+ * The data used to update WorkspaceFiles.
1437
+ */
1438
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateManyMutationInput, Prisma.WorkspaceFileUncheckedUpdateManyInput>
1439
+ /**
1440
+ * Filter which WorkspaceFiles to update
1441
+ */
1442
+ where?: Prisma.WorkspaceFileWhereInput
1443
+ /**
1444
+ * Limit how many WorkspaceFiles to update.
1445
+ */
1446
+ limit?: number
1447
+ /**
1448
+ * Choose, which related nodes to fetch as well
1449
+ */
1450
+ include?: Prisma.WorkspaceFileIncludeUpdateManyAndReturn<ExtArgs> | null
1451
+ }
1452
+
1453
+ /**
1454
+ * WorkspaceFile upsert
1455
+ */
1456
+ export type WorkspaceFileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1457
+ /**
1458
+ * Select specific fields to fetch from the WorkspaceFile
1459
+ */
1460
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1461
+ /**
1462
+ * Omit specific fields from the WorkspaceFile
1463
+ */
1464
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1465
+ /**
1466
+ * Choose, which related nodes to fetch as well
1467
+ */
1468
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1469
+ /**
1470
+ * The filter to search for the WorkspaceFile to update in case it exists.
1471
+ */
1472
+ where: Prisma.WorkspaceFileWhereUniqueInput
1473
+ /**
1474
+ * In case the WorkspaceFile found by the `where` argument doesn't exist, create a new WorkspaceFile with this data.
1475
+ */
1476
+ create: Prisma.XOR<Prisma.WorkspaceFileCreateInput, Prisma.WorkspaceFileUncheckedCreateInput>
1477
+ /**
1478
+ * In case the WorkspaceFile was found with the provided `where` argument, update it with this data.
1479
+ */
1480
+ update: Prisma.XOR<Prisma.WorkspaceFileUpdateInput, Prisma.WorkspaceFileUncheckedUpdateInput>
1481
+ }
1482
+
1483
+ /**
1484
+ * WorkspaceFile delete
1485
+ */
1486
+ export type WorkspaceFileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1487
+ /**
1488
+ * Select specific fields to fetch from the WorkspaceFile
1489
+ */
1490
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1491
+ /**
1492
+ * Omit specific fields from the WorkspaceFile
1493
+ */
1494
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1495
+ /**
1496
+ * Choose, which related nodes to fetch as well
1497
+ */
1498
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1499
+ /**
1500
+ * Filter which WorkspaceFile to delete.
1501
+ */
1502
+ where: Prisma.WorkspaceFileWhereUniqueInput
1503
+ }
1504
+
1505
+ /**
1506
+ * WorkspaceFile deleteMany
1507
+ */
1508
+ export type WorkspaceFileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1509
+ /**
1510
+ * Filter which WorkspaceFiles to delete
1511
+ */
1512
+ where?: Prisma.WorkspaceFileWhereInput
1513
+ /**
1514
+ * Limit how many WorkspaceFiles to delete.
1515
+ */
1516
+ limit?: number
1517
+ }
1518
+
1519
+ /**
1520
+ * WorkspaceFile without action
1521
+ */
1522
+ export type WorkspaceFileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * Select specific fields to fetch from the WorkspaceFile
1525
+ */
1526
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1527
+ /**
1528
+ * Omit specific fields from the WorkspaceFile
1529
+ */
1530
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1531
+ /**
1532
+ * Choose, which related nodes to fetch as well
1533
+ */
1534
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1535
+ }