@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,1532 @@
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
+ }
530
+
531
+ export type WorkspaceFileUpsertWithWhereUniqueWithoutWorkspaceInput = {
532
+ where: Prisma.WorkspaceFileWhereUniqueInput
533
+ update: Prisma.XOR<Prisma.WorkspaceFileUpdateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedUpdateWithoutWorkspaceInput>
534
+ create: Prisma.XOR<Prisma.WorkspaceFileCreateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedCreateWithoutWorkspaceInput>
535
+ }
536
+
537
+ export type WorkspaceFileUpdateWithWhereUniqueWithoutWorkspaceInput = {
538
+ where: Prisma.WorkspaceFileWhereUniqueInput
539
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateWithoutWorkspaceInput, Prisma.WorkspaceFileUncheckedUpdateWithoutWorkspaceInput>
540
+ }
541
+
542
+ export type WorkspaceFileUpdateManyWithWhereWithoutWorkspaceInput = {
543
+ where: Prisma.WorkspaceFileScalarWhereInput
544
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateManyMutationInput, Prisma.WorkspaceFileUncheckedUpdateManyWithoutWorkspaceInput>
545
+ }
546
+
547
+ export type WorkspaceFileScalarWhereInput = {
548
+ AND?: Prisma.WorkspaceFileScalarWhereInput | Prisma.WorkspaceFileScalarWhereInput[]
549
+ OR?: Prisma.WorkspaceFileScalarWhereInput[]
550
+ NOT?: Prisma.WorkspaceFileScalarWhereInput | Prisma.WorkspaceFileScalarWhereInput[]
551
+ id?: Prisma.StringFilter<"WorkspaceFile"> | string
552
+ workspaceId?: Prisma.StringFilter<"WorkspaceFile"> | string
553
+ path?: Prisma.StringFilter<"WorkspaceFile"> | string
554
+ mimeType?: Prisma.StringFilter<"WorkspaceFile"> | string
555
+ size?: Prisma.IntFilter<"WorkspaceFile"> | number
556
+ content?: Prisma.StringNullableFilter<"WorkspaceFile"> | string | null
557
+ source?: Prisma.StringFilter<"WorkspaceFile"> | string
558
+ createdAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
559
+ updatedAt?: Prisma.DateTimeFilter<"WorkspaceFile"> | Date | string
560
+ }
561
+
562
+ export type WorkspaceFileCreateManyWorkspaceInput = {
563
+ id?: string
564
+ path: string
565
+ mimeType?: string
566
+ size?: number
567
+ content?: string | null
568
+ source?: string
569
+ createdAt?: Date | string
570
+ updatedAt?: Date | string
571
+ }
572
+
573
+ export type WorkspaceFileUpdateWithoutWorkspaceInput = {
574
+ id?: Prisma.StringFieldUpdateOperationsInput | string
575
+ path?: Prisma.StringFieldUpdateOperationsInput | string
576
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
577
+ size?: Prisma.IntFieldUpdateOperationsInput | number
578
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
579
+ source?: Prisma.StringFieldUpdateOperationsInput | string
580
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
581
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
582
+ }
583
+
584
+ export type WorkspaceFileUncheckedUpdateWithoutWorkspaceInput = {
585
+ id?: Prisma.StringFieldUpdateOperationsInput | string
586
+ path?: Prisma.StringFieldUpdateOperationsInput | string
587
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
588
+ size?: Prisma.IntFieldUpdateOperationsInput | number
589
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
590
+ source?: Prisma.StringFieldUpdateOperationsInput | string
591
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
592
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
593
+ }
594
+
595
+ export type WorkspaceFileUncheckedUpdateManyWithoutWorkspaceInput = {
596
+ id?: Prisma.StringFieldUpdateOperationsInput | string
597
+ path?: Prisma.StringFieldUpdateOperationsInput | string
598
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
599
+ size?: Prisma.IntFieldUpdateOperationsInput | number
600
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
601
+ source?: Prisma.StringFieldUpdateOperationsInput | string
602
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
603
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
604
+ }
605
+
606
+
607
+
608
+ export type WorkspaceFileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
609
+ id?: boolean
610
+ workspaceId?: boolean
611
+ path?: boolean
612
+ mimeType?: boolean
613
+ size?: boolean
614
+ content?: boolean
615
+ source?: boolean
616
+ createdAt?: boolean
617
+ updatedAt?: boolean
618
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
619
+ }, ExtArgs["result"]["workspaceFile"]>
620
+
621
+ export type WorkspaceFileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
622
+ id?: boolean
623
+ workspaceId?: boolean
624
+ path?: boolean
625
+ mimeType?: boolean
626
+ size?: boolean
627
+ content?: boolean
628
+ source?: boolean
629
+ createdAt?: boolean
630
+ updatedAt?: boolean
631
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
632
+ }, ExtArgs["result"]["workspaceFile"]>
633
+
634
+ export type WorkspaceFileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
635
+ id?: boolean
636
+ workspaceId?: boolean
637
+ path?: boolean
638
+ mimeType?: boolean
639
+ size?: boolean
640
+ content?: boolean
641
+ source?: boolean
642
+ createdAt?: boolean
643
+ updatedAt?: boolean
644
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
645
+ }, ExtArgs["result"]["workspaceFile"]>
646
+
647
+ export type WorkspaceFileSelectScalar = {
648
+ id?: boolean
649
+ workspaceId?: boolean
650
+ path?: boolean
651
+ mimeType?: boolean
652
+ size?: boolean
653
+ content?: boolean
654
+ source?: boolean
655
+ createdAt?: boolean
656
+ updatedAt?: boolean
657
+ }
658
+
659
+ 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"]>
660
+ export type WorkspaceFileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
661
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
662
+ }
663
+ export type WorkspaceFileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
664
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
665
+ }
666
+ export type WorkspaceFileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
667
+ workspace?: boolean | Prisma.HarnessWorkspaceDefaultArgs<ExtArgs>
668
+ }
669
+
670
+ export type $WorkspaceFilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
671
+ name: "WorkspaceFile"
672
+ objects: {
673
+ workspace: Prisma.$HarnessWorkspacePayload<ExtArgs>
674
+ }
675
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
676
+ id: string
677
+ workspaceId: string
678
+ path: string
679
+ mimeType: string
680
+ size: number
681
+ content: string | null
682
+ source: string
683
+ createdAt: Date
684
+ updatedAt: Date
685
+ }, ExtArgs["result"]["workspaceFile"]>
686
+ composites: {}
687
+ }
688
+
689
+ export type WorkspaceFileGetPayload<S extends boolean | null | undefined | WorkspaceFileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload, S>
690
+
691
+ export type WorkspaceFileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
692
+ Omit<WorkspaceFileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
693
+ select?: WorkspaceFileCountAggregateInputType | true
694
+ }
695
+
696
+ export interface WorkspaceFileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
697
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WorkspaceFile'], meta: { name: 'WorkspaceFile' } }
698
+ /**
699
+ * Find zero or one WorkspaceFile that matches the filter.
700
+ * @param {WorkspaceFileFindUniqueArgs} args - Arguments to find a WorkspaceFile
701
+ * @example
702
+ * // Get one WorkspaceFile
703
+ * const workspaceFile = await prisma.workspaceFile.findUnique({
704
+ * where: {
705
+ * // ... provide filter here
706
+ * }
707
+ * })
708
+ */
709
+ 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>
710
+
711
+ /**
712
+ * Find one WorkspaceFile that matches the filter or throw an error with `error.code='P2025'`
713
+ * if no matches were found.
714
+ * @param {WorkspaceFileFindUniqueOrThrowArgs} args - Arguments to find a WorkspaceFile
715
+ * @example
716
+ * // Get one WorkspaceFile
717
+ * const workspaceFile = await prisma.workspaceFile.findUniqueOrThrow({
718
+ * where: {
719
+ * // ... provide filter here
720
+ * }
721
+ * })
722
+ */
723
+ 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>
724
+
725
+ /**
726
+ * Find the first WorkspaceFile that matches the filter.
727
+ * Note, that providing `undefined` is treated as the value not being there.
728
+ * Read more here: https://pris.ly/d/null-undefined
729
+ * @param {WorkspaceFileFindFirstArgs} args - Arguments to find a WorkspaceFile
730
+ * @example
731
+ * // Get one WorkspaceFile
732
+ * const workspaceFile = await prisma.workspaceFile.findFirst({
733
+ * where: {
734
+ * // ... provide filter here
735
+ * }
736
+ * })
737
+ */
738
+ 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>
739
+
740
+ /**
741
+ * Find the first WorkspaceFile that matches the filter or
742
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
743
+ * Note, that providing `undefined` is treated as the value not being there.
744
+ * Read more here: https://pris.ly/d/null-undefined
745
+ * @param {WorkspaceFileFindFirstOrThrowArgs} args - Arguments to find a WorkspaceFile
746
+ * @example
747
+ * // Get one WorkspaceFile
748
+ * const workspaceFile = await prisma.workspaceFile.findFirstOrThrow({
749
+ * where: {
750
+ * // ... provide filter here
751
+ * }
752
+ * })
753
+ */
754
+ 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>
755
+
756
+ /**
757
+ * Find zero or more WorkspaceFiles that matches the filter.
758
+ * Note, that providing `undefined` is treated as the value not being there.
759
+ * Read more here: https://pris.ly/d/null-undefined
760
+ * @param {WorkspaceFileFindManyArgs} args - Arguments to filter and select certain fields only.
761
+ * @example
762
+ * // Get all WorkspaceFiles
763
+ * const workspaceFiles = await prisma.workspaceFile.findMany()
764
+ *
765
+ * // Get first 10 WorkspaceFiles
766
+ * const workspaceFiles = await prisma.workspaceFile.findMany({ take: 10 })
767
+ *
768
+ * // Only select the `id`
769
+ * const workspaceFileWithIdOnly = await prisma.workspaceFile.findMany({ select: { id: true } })
770
+ *
771
+ */
772
+ findMany<T extends WorkspaceFileFindManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
773
+
774
+ /**
775
+ * Create a WorkspaceFile.
776
+ * @param {WorkspaceFileCreateArgs} args - Arguments to create a WorkspaceFile.
777
+ * @example
778
+ * // Create one WorkspaceFile
779
+ * const WorkspaceFile = await prisma.workspaceFile.create({
780
+ * data: {
781
+ * // ... data to create a WorkspaceFile
782
+ * }
783
+ * })
784
+ *
785
+ */
786
+ 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>
787
+
788
+ /**
789
+ * Create many WorkspaceFiles.
790
+ * @param {WorkspaceFileCreateManyArgs} args - Arguments to create many WorkspaceFiles.
791
+ * @example
792
+ * // Create many WorkspaceFiles
793
+ * const workspaceFile = await prisma.workspaceFile.createMany({
794
+ * data: [
795
+ * // ... provide data here
796
+ * ]
797
+ * })
798
+ *
799
+ */
800
+ createMany<T extends WorkspaceFileCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
801
+
802
+ /**
803
+ * Create many WorkspaceFiles and returns the data saved in the database.
804
+ * @param {WorkspaceFileCreateManyAndReturnArgs} args - Arguments to create many WorkspaceFiles.
805
+ * @example
806
+ * // Create many WorkspaceFiles
807
+ * const workspaceFile = await prisma.workspaceFile.createManyAndReturn({
808
+ * data: [
809
+ * // ... provide data here
810
+ * ]
811
+ * })
812
+ *
813
+ * // Create many WorkspaceFiles and only return the `id`
814
+ * const workspaceFileWithIdOnly = await prisma.workspaceFile.createManyAndReturn({
815
+ * select: { id: true },
816
+ * data: [
817
+ * // ... provide data here
818
+ * ]
819
+ * })
820
+ * Note, that providing `undefined` is treated as the value not being there.
821
+ * Read more here: https://pris.ly/d/null-undefined
822
+ *
823
+ */
824
+ createManyAndReturn<T extends WorkspaceFileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
825
+
826
+ /**
827
+ * Delete a WorkspaceFile.
828
+ * @param {WorkspaceFileDeleteArgs} args - Arguments to delete one WorkspaceFile.
829
+ * @example
830
+ * // Delete one WorkspaceFile
831
+ * const WorkspaceFile = await prisma.workspaceFile.delete({
832
+ * where: {
833
+ * // ... filter to delete one WorkspaceFile
834
+ * }
835
+ * })
836
+ *
837
+ */
838
+ 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>
839
+
840
+ /**
841
+ * Update one WorkspaceFile.
842
+ * @param {WorkspaceFileUpdateArgs} args - Arguments to update one WorkspaceFile.
843
+ * @example
844
+ * // Update one WorkspaceFile
845
+ * const workspaceFile = await prisma.workspaceFile.update({
846
+ * where: {
847
+ * // ... provide filter here
848
+ * },
849
+ * data: {
850
+ * // ... provide data here
851
+ * }
852
+ * })
853
+ *
854
+ */
855
+ 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>
856
+
857
+ /**
858
+ * Delete zero or more WorkspaceFiles.
859
+ * @param {WorkspaceFileDeleteManyArgs} args - Arguments to filter WorkspaceFiles to delete.
860
+ * @example
861
+ * // Delete a few WorkspaceFiles
862
+ * const { count } = await prisma.workspaceFile.deleteMany({
863
+ * where: {
864
+ * // ... provide filter here
865
+ * }
866
+ * })
867
+ *
868
+ */
869
+ deleteMany<T extends WorkspaceFileDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkspaceFileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
870
+
871
+ /**
872
+ * Update zero or more WorkspaceFiles.
873
+ * Note, that providing `undefined` is treated as the value not being there.
874
+ * Read more here: https://pris.ly/d/null-undefined
875
+ * @param {WorkspaceFileUpdateManyArgs} args - Arguments to update one or more rows.
876
+ * @example
877
+ * // Update many WorkspaceFiles
878
+ * const workspaceFile = await prisma.workspaceFile.updateMany({
879
+ * where: {
880
+ * // ... provide filter here
881
+ * },
882
+ * data: {
883
+ * // ... provide data here
884
+ * }
885
+ * })
886
+ *
887
+ */
888
+ updateMany<T extends WorkspaceFileUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkspaceFileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
889
+
890
+ /**
891
+ * Update zero or more WorkspaceFiles and returns the data updated in the database.
892
+ * @param {WorkspaceFileUpdateManyAndReturnArgs} args - Arguments to update many WorkspaceFiles.
893
+ * @example
894
+ * // Update many WorkspaceFiles
895
+ * const workspaceFile = await prisma.workspaceFile.updateManyAndReturn({
896
+ * where: {
897
+ * // ... provide filter here
898
+ * },
899
+ * data: [
900
+ * // ... provide data here
901
+ * ]
902
+ * })
903
+ *
904
+ * // Update zero or more WorkspaceFiles and only return the `id`
905
+ * const workspaceFileWithIdOnly = await prisma.workspaceFile.updateManyAndReturn({
906
+ * select: { id: true },
907
+ * where: {
908
+ * // ... provide filter here
909
+ * },
910
+ * data: [
911
+ * // ... provide data here
912
+ * ]
913
+ * })
914
+ * Note, that providing `undefined` is treated as the value not being there.
915
+ * Read more here: https://pris.ly/d/null-undefined
916
+ *
917
+ */
918
+ updateManyAndReturn<T extends WorkspaceFileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkspaceFileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceFilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
919
+
920
+ /**
921
+ * Create or update one WorkspaceFile.
922
+ * @param {WorkspaceFileUpsertArgs} args - Arguments to update or create a WorkspaceFile.
923
+ * @example
924
+ * // Update or create a WorkspaceFile
925
+ * const workspaceFile = await prisma.workspaceFile.upsert({
926
+ * create: {
927
+ * // ... data to create a WorkspaceFile
928
+ * },
929
+ * update: {
930
+ * // ... in case it already exists, update
931
+ * },
932
+ * where: {
933
+ * // ... the filter for the WorkspaceFile we want to update
934
+ * }
935
+ * })
936
+ */
937
+ 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>
938
+
939
+
940
+ /**
941
+ * Count the number of WorkspaceFiles.
942
+ * Note, that providing `undefined` is treated as the value not being there.
943
+ * Read more here: https://pris.ly/d/null-undefined
944
+ * @param {WorkspaceFileCountArgs} args - Arguments to filter WorkspaceFiles to count.
945
+ * @example
946
+ * // Count the number of WorkspaceFiles
947
+ * const count = await prisma.workspaceFile.count({
948
+ * where: {
949
+ * // ... the filter for the WorkspaceFiles we want to count
950
+ * }
951
+ * })
952
+ **/
953
+ count<T extends WorkspaceFileCountArgs>(
954
+ args?: Prisma.Subset<T, WorkspaceFileCountArgs>,
955
+ ): Prisma.PrismaPromise<
956
+ T extends runtime.Types.Utils.Record<'select', any>
957
+ ? T['select'] extends true
958
+ ? number
959
+ : Prisma.GetScalarType<T['select'], WorkspaceFileCountAggregateOutputType>
960
+ : number
961
+ >
962
+
963
+ /**
964
+ * Allows you to perform aggregations operations on a WorkspaceFile.
965
+ * Note, that providing `undefined` is treated as the value not being there.
966
+ * Read more here: https://pris.ly/d/null-undefined
967
+ * @param {WorkspaceFileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
968
+ * @example
969
+ * // Ordered by age ascending
970
+ * // Where email contains prisma.io
971
+ * // Limited to the 10 users
972
+ * const aggregations = await prisma.user.aggregate({
973
+ * _avg: {
974
+ * age: true,
975
+ * },
976
+ * where: {
977
+ * email: {
978
+ * contains: "prisma.io",
979
+ * },
980
+ * },
981
+ * orderBy: {
982
+ * age: "asc",
983
+ * },
984
+ * take: 10,
985
+ * })
986
+ **/
987
+ aggregate<T extends WorkspaceFileAggregateArgs>(args: Prisma.Subset<T, WorkspaceFileAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceFileAggregateType<T>>
988
+
989
+ /**
990
+ * Group by WorkspaceFile.
991
+ * Note, that providing `undefined` is treated as the value not being there.
992
+ * Read more here: https://pris.ly/d/null-undefined
993
+ * @param {WorkspaceFileGroupByArgs} args - Group by arguments.
994
+ * @example
995
+ * // Group by city, order by createdAt, get count
996
+ * const result = await prisma.user.groupBy({
997
+ * by: ['city', 'createdAt'],
998
+ * orderBy: {
999
+ * createdAt: true
1000
+ * },
1001
+ * _count: {
1002
+ * _all: true
1003
+ * },
1004
+ * })
1005
+ *
1006
+ **/
1007
+ groupBy<
1008
+ T extends WorkspaceFileGroupByArgs,
1009
+ HasSelectOrTake extends Prisma.Or<
1010
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1011
+ Prisma.Extends<'take', Prisma.Keys<T>>
1012
+ >,
1013
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1014
+ ? { orderBy: WorkspaceFileGroupByArgs['orderBy'] }
1015
+ : { orderBy?: WorkspaceFileGroupByArgs['orderBy'] },
1016
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1017
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1018
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1019
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1020
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1021
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1022
+ InputErrors extends ByEmpty extends Prisma.True
1023
+ ? `Error: "by" must not be empty.`
1024
+ : HavingValid extends Prisma.False
1025
+ ? {
1026
+ [P in HavingFields]: P extends ByFields
1027
+ ? never
1028
+ : P extends string
1029
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1030
+ : [
1031
+ Error,
1032
+ 'Field ',
1033
+ P,
1034
+ ` in "having" needs to be provided in "by"`,
1035
+ ]
1036
+ }[HavingFields]
1037
+ : 'take' extends Prisma.Keys<T>
1038
+ ? 'orderBy' extends Prisma.Keys<T>
1039
+ ? ByValid extends Prisma.True
1040
+ ? {}
1041
+ : {
1042
+ [P in OrderFields]: P extends ByFields
1043
+ ? never
1044
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1045
+ }[OrderFields]
1046
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1047
+ : 'skip' extends Prisma.Keys<T>
1048
+ ? 'orderBy' extends Prisma.Keys<T>
1049
+ ? ByValid extends Prisma.True
1050
+ ? {}
1051
+ : {
1052
+ [P in OrderFields]: P extends ByFields
1053
+ ? never
1054
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1055
+ }[OrderFields]
1056
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1057
+ : ByValid extends Prisma.True
1058
+ ? {}
1059
+ : {
1060
+ [P in OrderFields]: P extends ByFields
1061
+ ? never
1062
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1063
+ }[OrderFields]
1064
+ >(args: Prisma.SubsetIntersection<T, WorkspaceFileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceFileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1065
+ /**
1066
+ * Fields of the WorkspaceFile model
1067
+ */
1068
+ readonly fields: WorkspaceFileFieldRefs;
1069
+ }
1070
+
1071
+ /**
1072
+ * The delegate class that acts as a "Promise-like" for WorkspaceFile.
1073
+ * Why is this prefixed with `Prisma__`?
1074
+ * Because we want to prevent naming conflicts as mentioned in
1075
+ * https://github.com/prisma/prisma-client-js/issues/707
1076
+ */
1077
+ export interface Prisma__WorkspaceFileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1078
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1079
+ 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>
1080
+ /**
1081
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1082
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1083
+ * @param onrejected The callback to execute when the Promise is rejected.
1084
+ * @returns A Promise for the completion of which ever callback is executed.
1085
+ */
1086
+ 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>
1087
+ /**
1088
+ * Attaches a callback for only the rejection of the Promise.
1089
+ * @param onrejected The callback to execute when the Promise is rejected.
1090
+ * @returns A Promise for the completion of the callback.
1091
+ */
1092
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1093
+ /**
1094
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1095
+ * resolved value cannot be modified from the callback.
1096
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1097
+ * @returns A Promise for the completion of the callback.
1098
+ */
1099
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1100
+ }
1101
+
1102
+
1103
+
1104
+
1105
+ /**
1106
+ * Fields of the WorkspaceFile model
1107
+ */
1108
+ export interface WorkspaceFileFieldRefs {
1109
+ readonly id: Prisma.FieldRef<"WorkspaceFile", 'String'>
1110
+ readonly workspaceId: Prisma.FieldRef<"WorkspaceFile", 'String'>
1111
+ readonly path: Prisma.FieldRef<"WorkspaceFile", 'String'>
1112
+ readonly mimeType: Prisma.FieldRef<"WorkspaceFile", 'String'>
1113
+ readonly size: Prisma.FieldRef<"WorkspaceFile", 'Int'>
1114
+ readonly content: Prisma.FieldRef<"WorkspaceFile", 'String'>
1115
+ readonly source: Prisma.FieldRef<"WorkspaceFile", 'String'>
1116
+ readonly createdAt: Prisma.FieldRef<"WorkspaceFile", 'DateTime'>
1117
+ readonly updatedAt: Prisma.FieldRef<"WorkspaceFile", 'DateTime'>
1118
+ }
1119
+
1120
+
1121
+ // Custom InputTypes
1122
+ /**
1123
+ * WorkspaceFile findUnique
1124
+ */
1125
+ export type WorkspaceFileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1126
+ /**
1127
+ * Select specific fields to fetch from the WorkspaceFile
1128
+ */
1129
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1130
+ /**
1131
+ * Omit specific fields from the WorkspaceFile
1132
+ */
1133
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1134
+ /**
1135
+ * Choose, which related nodes to fetch as well
1136
+ */
1137
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1138
+ /**
1139
+ * Filter, which WorkspaceFile to fetch.
1140
+ */
1141
+ where: Prisma.WorkspaceFileWhereUniqueInput
1142
+ }
1143
+
1144
+ /**
1145
+ * WorkspaceFile findUniqueOrThrow
1146
+ */
1147
+ export type WorkspaceFileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1148
+ /**
1149
+ * Select specific fields to fetch from the WorkspaceFile
1150
+ */
1151
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1152
+ /**
1153
+ * Omit specific fields from the WorkspaceFile
1154
+ */
1155
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1156
+ /**
1157
+ * Choose, which related nodes to fetch as well
1158
+ */
1159
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1160
+ /**
1161
+ * Filter, which WorkspaceFile to fetch.
1162
+ */
1163
+ where: Prisma.WorkspaceFileWhereUniqueInput
1164
+ }
1165
+
1166
+ /**
1167
+ * WorkspaceFile findFirst
1168
+ */
1169
+ export type WorkspaceFileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1170
+ /**
1171
+ * Select specific fields to fetch from the WorkspaceFile
1172
+ */
1173
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1174
+ /**
1175
+ * Omit specific fields from the WorkspaceFile
1176
+ */
1177
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1178
+ /**
1179
+ * Choose, which related nodes to fetch as well
1180
+ */
1181
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1182
+ /**
1183
+ * Filter, which WorkspaceFile to fetch.
1184
+ */
1185
+ where?: Prisma.WorkspaceFileWhereInput
1186
+ /**
1187
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1188
+ *
1189
+ * Determine the order of WorkspaceFiles to fetch.
1190
+ */
1191
+ orderBy?: Prisma.WorkspaceFileOrderByWithRelationInput | Prisma.WorkspaceFileOrderByWithRelationInput[]
1192
+ /**
1193
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1194
+ *
1195
+ * Sets the position for searching for WorkspaceFiles.
1196
+ */
1197
+ cursor?: Prisma.WorkspaceFileWhereUniqueInput
1198
+ /**
1199
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1200
+ *
1201
+ * Take `±n` WorkspaceFiles from the position of the cursor.
1202
+ */
1203
+ take?: number
1204
+ /**
1205
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1206
+ *
1207
+ * Skip the first `n` WorkspaceFiles.
1208
+ */
1209
+ skip?: number
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1212
+ *
1213
+ * Filter by unique combinations of WorkspaceFiles.
1214
+ */
1215
+ distinct?: Prisma.WorkspaceFileScalarFieldEnum | Prisma.WorkspaceFileScalarFieldEnum[]
1216
+ }
1217
+
1218
+ /**
1219
+ * WorkspaceFile findFirstOrThrow
1220
+ */
1221
+ export type WorkspaceFileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the WorkspaceFile
1224
+ */
1225
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1226
+ /**
1227
+ * Omit specific fields from the WorkspaceFile
1228
+ */
1229
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1230
+ /**
1231
+ * Choose, which related nodes to fetch as well
1232
+ */
1233
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1234
+ /**
1235
+ * Filter, which WorkspaceFile to fetch.
1236
+ */
1237
+ where?: Prisma.WorkspaceFileWhereInput
1238
+ /**
1239
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1240
+ *
1241
+ * Determine the order of WorkspaceFiles to fetch.
1242
+ */
1243
+ orderBy?: Prisma.WorkspaceFileOrderByWithRelationInput | Prisma.WorkspaceFileOrderByWithRelationInput[]
1244
+ /**
1245
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1246
+ *
1247
+ * Sets the position for searching for WorkspaceFiles.
1248
+ */
1249
+ cursor?: Prisma.WorkspaceFileWhereUniqueInput
1250
+ /**
1251
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1252
+ *
1253
+ * Take `±n` WorkspaceFiles from the position of the cursor.
1254
+ */
1255
+ take?: number
1256
+ /**
1257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1258
+ *
1259
+ * Skip the first `n` WorkspaceFiles.
1260
+ */
1261
+ skip?: number
1262
+ /**
1263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1264
+ *
1265
+ * Filter by unique combinations of WorkspaceFiles.
1266
+ */
1267
+ distinct?: Prisma.WorkspaceFileScalarFieldEnum | Prisma.WorkspaceFileScalarFieldEnum[]
1268
+ }
1269
+
1270
+ /**
1271
+ * WorkspaceFile findMany
1272
+ */
1273
+ export type WorkspaceFileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1274
+ /**
1275
+ * Select specific fields to fetch from the WorkspaceFile
1276
+ */
1277
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1278
+ /**
1279
+ * Omit specific fields from the WorkspaceFile
1280
+ */
1281
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1282
+ /**
1283
+ * Choose, which related nodes to fetch as well
1284
+ */
1285
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1286
+ /**
1287
+ * Filter, which WorkspaceFiles to fetch.
1288
+ */
1289
+ where?: Prisma.WorkspaceFileWhereInput
1290
+ /**
1291
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1292
+ *
1293
+ * Determine the order of WorkspaceFiles to fetch.
1294
+ */
1295
+ orderBy?: Prisma.WorkspaceFileOrderByWithRelationInput | Prisma.WorkspaceFileOrderByWithRelationInput[]
1296
+ /**
1297
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1298
+ *
1299
+ * Sets the position for listing WorkspaceFiles.
1300
+ */
1301
+ cursor?: Prisma.WorkspaceFileWhereUniqueInput
1302
+ /**
1303
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1304
+ *
1305
+ * Take `±n` WorkspaceFiles from the position of the cursor.
1306
+ */
1307
+ take?: number
1308
+ /**
1309
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1310
+ *
1311
+ * Skip the first `n` WorkspaceFiles.
1312
+ */
1313
+ skip?: number
1314
+ /**
1315
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1316
+ *
1317
+ * Filter by unique combinations of WorkspaceFiles.
1318
+ */
1319
+ distinct?: Prisma.WorkspaceFileScalarFieldEnum | Prisma.WorkspaceFileScalarFieldEnum[]
1320
+ }
1321
+
1322
+ /**
1323
+ * WorkspaceFile create
1324
+ */
1325
+ export type WorkspaceFileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * Select specific fields to fetch from the WorkspaceFile
1328
+ */
1329
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1330
+ /**
1331
+ * Omit specific fields from the WorkspaceFile
1332
+ */
1333
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1334
+ /**
1335
+ * Choose, which related nodes to fetch as well
1336
+ */
1337
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1338
+ /**
1339
+ * The data needed to create a WorkspaceFile.
1340
+ */
1341
+ data: Prisma.XOR<Prisma.WorkspaceFileCreateInput, Prisma.WorkspaceFileUncheckedCreateInput>
1342
+ }
1343
+
1344
+ /**
1345
+ * WorkspaceFile createMany
1346
+ */
1347
+ export type WorkspaceFileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * The data used to create many WorkspaceFiles.
1350
+ */
1351
+ data: Prisma.WorkspaceFileCreateManyInput | Prisma.WorkspaceFileCreateManyInput[]
1352
+ }
1353
+
1354
+ /**
1355
+ * WorkspaceFile createManyAndReturn
1356
+ */
1357
+ export type WorkspaceFileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1358
+ /**
1359
+ * Select specific fields to fetch from the WorkspaceFile
1360
+ */
1361
+ select?: Prisma.WorkspaceFileSelectCreateManyAndReturn<ExtArgs> | null
1362
+ /**
1363
+ * Omit specific fields from the WorkspaceFile
1364
+ */
1365
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1366
+ /**
1367
+ * The data used to create many WorkspaceFiles.
1368
+ */
1369
+ data: Prisma.WorkspaceFileCreateManyInput | Prisma.WorkspaceFileCreateManyInput[]
1370
+ /**
1371
+ * Choose, which related nodes to fetch as well
1372
+ */
1373
+ include?: Prisma.WorkspaceFileIncludeCreateManyAndReturn<ExtArgs> | null
1374
+ }
1375
+
1376
+ /**
1377
+ * WorkspaceFile update
1378
+ */
1379
+ export type WorkspaceFileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
+ /**
1381
+ * Select specific fields to fetch from the WorkspaceFile
1382
+ */
1383
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1384
+ /**
1385
+ * Omit specific fields from the WorkspaceFile
1386
+ */
1387
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1388
+ /**
1389
+ * Choose, which related nodes to fetch as well
1390
+ */
1391
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1392
+ /**
1393
+ * The data needed to update a WorkspaceFile.
1394
+ */
1395
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateInput, Prisma.WorkspaceFileUncheckedUpdateInput>
1396
+ /**
1397
+ * Choose, which WorkspaceFile to update.
1398
+ */
1399
+ where: Prisma.WorkspaceFileWhereUniqueInput
1400
+ }
1401
+
1402
+ /**
1403
+ * WorkspaceFile updateMany
1404
+ */
1405
+ export type WorkspaceFileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1406
+ /**
1407
+ * The data used to update WorkspaceFiles.
1408
+ */
1409
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateManyMutationInput, Prisma.WorkspaceFileUncheckedUpdateManyInput>
1410
+ /**
1411
+ * Filter which WorkspaceFiles to update
1412
+ */
1413
+ where?: Prisma.WorkspaceFileWhereInput
1414
+ /**
1415
+ * Limit how many WorkspaceFiles to update.
1416
+ */
1417
+ limit?: number
1418
+ }
1419
+
1420
+ /**
1421
+ * WorkspaceFile updateManyAndReturn
1422
+ */
1423
+ export type WorkspaceFileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
+ /**
1425
+ * Select specific fields to fetch from the WorkspaceFile
1426
+ */
1427
+ select?: Prisma.WorkspaceFileSelectUpdateManyAndReturn<ExtArgs> | null
1428
+ /**
1429
+ * Omit specific fields from the WorkspaceFile
1430
+ */
1431
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1432
+ /**
1433
+ * The data used to update WorkspaceFiles.
1434
+ */
1435
+ data: Prisma.XOR<Prisma.WorkspaceFileUpdateManyMutationInput, Prisma.WorkspaceFileUncheckedUpdateManyInput>
1436
+ /**
1437
+ * Filter which WorkspaceFiles to update
1438
+ */
1439
+ where?: Prisma.WorkspaceFileWhereInput
1440
+ /**
1441
+ * Limit how many WorkspaceFiles to update.
1442
+ */
1443
+ limit?: number
1444
+ /**
1445
+ * Choose, which related nodes to fetch as well
1446
+ */
1447
+ include?: Prisma.WorkspaceFileIncludeUpdateManyAndReturn<ExtArgs> | null
1448
+ }
1449
+
1450
+ /**
1451
+ * WorkspaceFile upsert
1452
+ */
1453
+ export type WorkspaceFileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * Select specific fields to fetch from the WorkspaceFile
1456
+ */
1457
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1458
+ /**
1459
+ * Omit specific fields from the WorkspaceFile
1460
+ */
1461
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1462
+ /**
1463
+ * Choose, which related nodes to fetch as well
1464
+ */
1465
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1466
+ /**
1467
+ * The filter to search for the WorkspaceFile to update in case it exists.
1468
+ */
1469
+ where: Prisma.WorkspaceFileWhereUniqueInput
1470
+ /**
1471
+ * In case the WorkspaceFile found by the `where` argument doesn't exist, create a new WorkspaceFile with this data.
1472
+ */
1473
+ create: Prisma.XOR<Prisma.WorkspaceFileCreateInput, Prisma.WorkspaceFileUncheckedCreateInput>
1474
+ /**
1475
+ * In case the WorkspaceFile was found with the provided `where` argument, update it with this data.
1476
+ */
1477
+ update: Prisma.XOR<Prisma.WorkspaceFileUpdateInput, Prisma.WorkspaceFileUncheckedUpdateInput>
1478
+ }
1479
+
1480
+ /**
1481
+ * WorkspaceFile delete
1482
+ */
1483
+ export type WorkspaceFileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ /**
1485
+ * Select specific fields to fetch from the WorkspaceFile
1486
+ */
1487
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1488
+ /**
1489
+ * Omit specific fields from the WorkspaceFile
1490
+ */
1491
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
1495
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1496
+ /**
1497
+ * Filter which WorkspaceFile to delete.
1498
+ */
1499
+ where: Prisma.WorkspaceFileWhereUniqueInput
1500
+ }
1501
+
1502
+ /**
1503
+ * WorkspaceFile deleteMany
1504
+ */
1505
+ export type WorkspaceFileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1506
+ /**
1507
+ * Filter which WorkspaceFiles to delete
1508
+ */
1509
+ where?: Prisma.WorkspaceFileWhereInput
1510
+ /**
1511
+ * Limit how many WorkspaceFiles to delete.
1512
+ */
1513
+ limit?: number
1514
+ }
1515
+
1516
+ /**
1517
+ * WorkspaceFile without action
1518
+ */
1519
+ export type WorkspaceFileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
+ /**
1521
+ * Select specific fields to fetch from the WorkspaceFile
1522
+ */
1523
+ select?: Prisma.WorkspaceFileSelect<ExtArgs> | null
1524
+ /**
1525
+ * Omit specific fields from the WorkspaceFile
1526
+ */
1527
+ omit?: Prisma.WorkspaceFileOmit<ExtArgs> | null
1528
+ /**
1529
+ * Choose, which related nodes to fetch as well
1530
+ */
1531
+ include?: Prisma.WorkspaceFileInclude<ExtArgs> | null
1532
+ }