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