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