@allbluecn/database 0.6.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/LICENSE +661 -0
  2. package/dist/get-prisma.d.ts +1 -0
  3. package/dist/get-prisma.js +7 -0
  4. package/generated/browser.ts +85 -0
  5. package/generated/client.ts +85 -0
  6. package/generated/commonInputTypes.ts +106 -46
  7. package/generated/internal/class.ts +174 -4
  8. package/generated/internal/prismaNamespace.ts +1698 -151
  9. package/generated/internal/prismaNamespaceBrowser.ts +279 -7
  10. package/generated/models/AiProviderConfig.ts +100 -1
  11. package/generated/models/AiStreamChunk.ts +1159 -0
  12. package/generated/models/AiUsageLog.ts +91 -31
  13. package/generated/models/Blob.ts +1428 -0
  14. package/generated/models/BusinessAgentBinding.ts +1553 -0
  15. package/generated/models/ChatInterrupt.ts +42 -1
  16. package/generated/models/ChatMessage.ts +58 -29
  17. package/generated/models/ChatPersistenceMeta.ts +1121 -0
  18. package/generated/models/ChatRun.ts +166 -1
  19. package/generated/models/ChatThread.ts +294 -1
  20. package/generated/models/CodeSnippet.ts +1555 -0
  21. package/generated/models/DesktopSetting.ts +1059 -0
  22. package/generated/models/EmailLog.ts +1345 -0
  23. package/generated/models/EmailPreference.ts +1257 -0
  24. package/generated/models/EmailSubscriber.ts +1233 -0
  25. package/generated/models/EmailVerificationToken.ts +1380 -0
  26. package/generated/models/GenerationRun.ts +193 -1
  27. package/generated/models/HarnessPlugin.ts +1677 -0
  28. package/generated/models/HarnessWorkspace.ts +1650 -0
  29. package/generated/models/InvitationCode.ts +65 -9
  30. package/generated/models/NotificationPreference.ts +27 -1
  31. package/generated/models/OAuthProviderConfig.ts +1227 -0
  32. package/generated/models/Plan.ts +115 -1
  33. package/generated/models/SandboxInstance.ts +1277 -0
  34. package/generated/models/SystemPromptTemplate.ts +1583 -0
  35. package/generated/models/SystemPromptVersion.ts +1459 -0
  36. package/generated/models/User.ts +5759 -823
  37. package/generated/models/UserAgent.ts +250 -1
  38. package/generated/models/Workspace.ts +3 -1
  39. package/generated/models/WorkspaceFile.ts +1535 -0
  40. package/generated/models.ts +17 -0
  41. package/generated-sqlite/browser.ts +90 -0
  42. package/generated-sqlite/client.ts +90 -0
  43. package/generated-sqlite/commonInputTypes.ts +192 -78
  44. package/generated-sqlite/internal/class.ts +184 -4
  45. package/generated-sqlite/internal/prismaNamespace.ts +1786 -138
  46. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +291 -7
  47. package/generated-sqlite/models/AiProviderConfig.ts +100 -1
  48. package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
  49. package/generated-sqlite/models/AiUsageLog.ts +91 -31
  50. package/generated-sqlite/models/Blob.ts +1425 -0
  51. package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
  52. package/generated-sqlite/models/ChatInterrupt.ts +42 -1
  53. package/generated-sqlite/models/ChatMessage.ts +58 -29
  54. package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
  55. package/generated-sqlite/models/ChatRun.ts +174 -1
  56. package/generated-sqlite/models/ChatThread.ts +293 -1
  57. package/generated-sqlite/models/CodeSnippet.ts +1552 -0
  58. package/generated-sqlite/models/DesktopSetting.ts +1057 -0
  59. package/generated-sqlite/models/EmailLog.ts +1343 -0
  60. package/generated-sqlite/models/EmailPreference.ts +1255 -0
  61. package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
  62. package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
  63. package/generated-sqlite/models/GenerationRun.ts +193 -1
  64. package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
  65. package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
  66. package/generated-sqlite/models/InvitationCode.ts +65 -9
  67. package/generated-sqlite/models/NotificationPreference.ts +1313 -0
  68. package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
  69. package/generated-sqlite/models/PageVersion.ts +0 -8
  70. package/generated-sqlite/models/Plan.ts +115 -1
  71. package/generated-sqlite/models/SandboxInstance.ts +1283 -0
  72. package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
  73. package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
  74. package/generated-sqlite/models/User.ts +5345 -701
  75. package/generated-sqlite/models/UserAgent.ts +250 -1
  76. package/generated-sqlite/models/Workspace.ts +3 -1
  77. package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
  78. package/generated-sqlite/models.ts +18 -0
  79. package/get-prisma.ts +6 -0
  80. package/index.ts +11 -6
  81. package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
  82. package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
  83. package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
  84. package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
  85. package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
  86. package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
  87. package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
  88. package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
  89. package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
  90. package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
  91. package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
  92. package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
  93. package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
  94. package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
  95. package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
  96. package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
  97. package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
  98. package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
  99. package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
  100. package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
  101. package/package.json +8 -3
  102. package/schema.prisma +413 -99
  103. package/schema.sqlite.prisma +865 -543
@@ -0,0 +1,1456 @@
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
+ }
476
+
477
+ export type SystemPromptVersionUpsertWithWhereUniqueWithoutTemplateInput = {
478
+ where: Prisma.SystemPromptVersionWhereUniqueInput
479
+ update: Prisma.XOR<Prisma.SystemPromptVersionUpdateWithoutTemplateInput, Prisma.SystemPromptVersionUncheckedUpdateWithoutTemplateInput>
480
+ create: Prisma.XOR<Prisma.SystemPromptVersionCreateWithoutTemplateInput, Prisma.SystemPromptVersionUncheckedCreateWithoutTemplateInput>
481
+ }
482
+
483
+ export type SystemPromptVersionUpdateWithWhereUniqueWithoutTemplateInput = {
484
+ where: Prisma.SystemPromptVersionWhereUniqueInput
485
+ data: Prisma.XOR<Prisma.SystemPromptVersionUpdateWithoutTemplateInput, Prisma.SystemPromptVersionUncheckedUpdateWithoutTemplateInput>
486
+ }
487
+
488
+ export type SystemPromptVersionUpdateManyWithWhereWithoutTemplateInput = {
489
+ where: Prisma.SystemPromptVersionScalarWhereInput
490
+ data: Prisma.XOR<Prisma.SystemPromptVersionUpdateManyMutationInput, Prisma.SystemPromptVersionUncheckedUpdateManyWithoutTemplateInput>
491
+ }
492
+
493
+ export type SystemPromptVersionScalarWhereInput = {
494
+ AND?: Prisma.SystemPromptVersionScalarWhereInput | Prisma.SystemPromptVersionScalarWhereInput[]
495
+ OR?: Prisma.SystemPromptVersionScalarWhereInput[]
496
+ NOT?: Prisma.SystemPromptVersionScalarWhereInput | Prisma.SystemPromptVersionScalarWhereInput[]
497
+ id?: Prisma.StringFilter<"SystemPromptVersion"> | string
498
+ templateId?: Prisma.StringFilter<"SystemPromptVersion"> | string
499
+ version?: Prisma.IntFilter<"SystemPromptVersion"> | number
500
+ sections?: Prisma.JsonFilter<"SystemPromptVersion">
501
+ note?: Prisma.StringNullableFilter<"SystemPromptVersion"> | string | null
502
+ createdBy?: Prisma.StringNullableFilter<"SystemPromptVersion"> | string | null
503
+ createdAt?: Prisma.DateTimeFilter<"SystemPromptVersion"> | Date | string
504
+ }
505
+
506
+ export type SystemPromptVersionCreateManyTemplateInput = {
507
+ id?: string
508
+ version: number
509
+ sections: Prisma.JsonNullValueInput | runtime.InputJsonValue
510
+ note?: string | null
511
+ createdBy?: string | null
512
+ createdAt?: Date | string
513
+ }
514
+
515
+ export type SystemPromptVersionUpdateWithoutTemplateInput = {
516
+ id?: Prisma.StringFieldUpdateOperationsInput | string
517
+ version?: Prisma.IntFieldUpdateOperationsInput | number
518
+ sections?: Prisma.JsonNullValueInput | runtime.InputJsonValue
519
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
520
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
521
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
522
+ }
523
+
524
+ export type SystemPromptVersionUncheckedUpdateWithoutTemplateInput = {
525
+ id?: Prisma.StringFieldUpdateOperationsInput | string
526
+ version?: Prisma.IntFieldUpdateOperationsInput | number
527
+ sections?: Prisma.JsonNullValueInput | runtime.InputJsonValue
528
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
529
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
530
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
531
+ }
532
+
533
+ export type SystemPromptVersionUncheckedUpdateManyWithoutTemplateInput = {
534
+ id?: Prisma.StringFieldUpdateOperationsInput | string
535
+ version?: Prisma.IntFieldUpdateOperationsInput | number
536
+ sections?: Prisma.JsonNullValueInput | runtime.InputJsonValue
537
+ note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
538
+ createdBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
539
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
540
+ }
541
+
542
+
543
+
544
+ export type SystemPromptVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
545
+ id?: boolean
546
+ templateId?: boolean
547
+ version?: boolean
548
+ sections?: boolean
549
+ note?: boolean
550
+ createdBy?: boolean
551
+ createdAt?: boolean
552
+ template?: boolean | Prisma.SystemPromptTemplateDefaultArgs<ExtArgs>
553
+ }, ExtArgs["result"]["systemPromptVersion"]>
554
+
555
+ export type SystemPromptVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
556
+ id?: boolean
557
+ templateId?: boolean
558
+ version?: boolean
559
+ sections?: boolean
560
+ note?: boolean
561
+ createdBy?: boolean
562
+ createdAt?: boolean
563
+ template?: boolean | Prisma.SystemPromptTemplateDefaultArgs<ExtArgs>
564
+ }, ExtArgs["result"]["systemPromptVersion"]>
565
+
566
+ export type SystemPromptVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
567
+ id?: boolean
568
+ templateId?: boolean
569
+ version?: boolean
570
+ sections?: boolean
571
+ note?: boolean
572
+ createdBy?: boolean
573
+ createdAt?: boolean
574
+ template?: boolean | Prisma.SystemPromptTemplateDefaultArgs<ExtArgs>
575
+ }, ExtArgs["result"]["systemPromptVersion"]>
576
+
577
+ export type SystemPromptVersionSelectScalar = {
578
+ id?: boolean
579
+ templateId?: boolean
580
+ version?: boolean
581
+ sections?: boolean
582
+ note?: boolean
583
+ createdBy?: boolean
584
+ createdAt?: boolean
585
+ }
586
+
587
+ 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"]>
588
+ export type SystemPromptVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
589
+ template?: boolean | Prisma.SystemPromptTemplateDefaultArgs<ExtArgs>
590
+ }
591
+ export type SystemPromptVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
592
+ template?: boolean | Prisma.SystemPromptTemplateDefaultArgs<ExtArgs>
593
+ }
594
+ export type SystemPromptVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
595
+ template?: boolean | Prisma.SystemPromptTemplateDefaultArgs<ExtArgs>
596
+ }
597
+
598
+ export type $SystemPromptVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
599
+ name: "SystemPromptVersion"
600
+ objects: {
601
+ template: Prisma.$SystemPromptTemplatePayload<ExtArgs>
602
+ }
603
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
604
+ id: string
605
+ templateId: string
606
+ version: number
607
+ sections: runtime.JsonValue
608
+ note: string | null
609
+ createdBy: string | null
610
+ createdAt: Date
611
+ }, ExtArgs["result"]["systemPromptVersion"]>
612
+ composites: {}
613
+ }
614
+
615
+ export type SystemPromptVersionGetPayload<S extends boolean | null | undefined | SystemPromptVersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SystemPromptVersionPayload, S>
616
+
617
+ export type SystemPromptVersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
618
+ Omit<SystemPromptVersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
619
+ select?: SystemPromptVersionCountAggregateInputType | true
620
+ }
621
+
622
+ export interface SystemPromptVersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
623
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SystemPromptVersion'], meta: { name: 'SystemPromptVersion' } }
624
+ /**
625
+ * Find zero or one SystemPromptVersion that matches the filter.
626
+ * @param {SystemPromptVersionFindUniqueArgs} args - Arguments to find a SystemPromptVersion
627
+ * @example
628
+ * // Get one SystemPromptVersion
629
+ * const systemPromptVersion = await prisma.systemPromptVersion.findUnique({
630
+ * where: {
631
+ * // ... provide filter here
632
+ * }
633
+ * })
634
+ */
635
+ 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>
636
+
637
+ /**
638
+ * Find one SystemPromptVersion that matches the filter or throw an error with `error.code='P2025'`
639
+ * if no matches were found.
640
+ * @param {SystemPromptVersionFindUniqueOrThrowArgs} args - Arguments to find a SystemPromptVersion
641
+ * @example
642
+ * // Get one SystemPromptVersion
643
+ * const systemPromptVersion = await prisma.systemPromptVersion.findUniqueOrThrow({
644
+ * where: {
645
+ * // ... provide filter here
646
+ * }
647
+ * })
648
+ */
649
+ 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>
650
+
651
+ /**
652
+ * Find the first SystemPromptVersion that matches the filter.
653
+ * Note, that providing `undefined` is treated as the value not being there.
654
+ * Read more here: https://pris.ly/d/null-undefined
655
+ * @param {SystemPromptVersionFindFirstArgs} args - Arguments to find a SystemPromptVersion
656
+ * @example
657
+ * // Get one SystemPromptVersion
658
+ * const systemPromptVersion = await prisma.systemPromptVersion.findFirst({
659
+ * where: {
660
+ * // ... provide filter here
661
+ * }
662
+ * })
663
+ */
664
+ 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>
665
+
666
+ /**
667
+ * Find the first SystemPromptVersion that matches the filter or
668
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
669
+ * Note, that providing `undefined` is treated as the value not being there.
670
+ * Read more here: https://pris.ly/d/null-undefined
671
+ * @param {SystemPromptVersionFindFirstOrThrowArgs} args - Arguments to find a SystemPromptVersion
672
+ * @example
673
+ * // Get one SystemPromptVersion
674
+ * const systemPromptVersion = await prisma.systemPromptVersion.findFirstOrThrow({
675
+ * where: {
676
+ * // ... provide filter here
677
+ * }
678
+ * })
679
+ */
680
+ 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>
681
+
682
+ /**
683
+ * Find zero or more SystemPromptVersions that matches the filter.
684
+ * Note, that providing `undefined` is treated as the value not being there.
685
+ * Read more here: https://pris.ly/d/null-undefined
686
+ * @param {SystemPromptVersionFindManyArgs} args - Arguments to filter and select certain fields only.
687
+ * @example
688
+ * // Get all SystemPromptVersions
689
+ * const systemPromptVersions = await prisma.systemPromptVersion.findMany()
690
+ *
691
+ * // Get first 10 SystemPromptVersions
692
+ * const systemPromptVersions = await prisma.systemPromptVersion.findMany({ take: 10 })
693
+ *
694
+ * // Only select the `id`
695
+ * const systemPromptVersionWithIdOnly = await prisma.systemPromptVersion.findMany({ select: { id: true } })
696
+ *
697
+ */
698
+ findMany<T extends SystemPromptVersionFindManyArgs>(args?: Prisma.SelectSubset<T, SystemPromptVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemPromptVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
699
+
700
+ /**
701
+ * Create a SystemPromptVersion.
702
+ * @param {SystemPromptVersionCreateArgs} args - Arguments to create a SystemPromptVersion.
703
+ * @example
704
+ * // Create one SystemPromptVersion
705
+ * const SystemPromptVersion = await prisma.systemPromptVersion.create({
706
+ * data: {
707
+ * // ... data to create a SystemPromptVersion
708
+ * }
709
+ * })
710
+ *
711
+ */
712
+ 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>
713
+
714
+ /**
715
+ * Create many SystemPromptVersions.
716
+ * @param {SystemPromptVersionCreateManyArgs} args - Arguments to create many SystemPromptVersions.
717
+ * @example
718
+ * // Create many SystemPromptVersions
719
+ * const systemPromptVersion = await prisma.systemPromptVersion.createMany({
720
+ * data: [
721
+ * // ... provide data here
722
+ * ]
723
+ * })
724
+ *
725
+ */
726
+ createMany<T extends SystemPromptVersionCreateManyArgs>(args?: Prisma.SelectSubset<T, SystemPromptVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
727
+
728
+ /**
729
+ * Create many SystemPromptVersions and returns the data saved in the database.
730
+ * @param {SystemPromptVersionCreateManyAndReturnArgs} args - Arguments to create many SystemPromptVersions.
731
+ * @example
732
+ * // Create many SystemPromptVersions
733
+ * const systemPromptVersion = await prisma.systemPromptVersion.createManyAndReturn({
734
+ * data: [
735
+ * // ... provide data here
736
+ * ]
737
+ * })
738
+ *
739
+ * // Create many SystemPromptVersions and only return the `id`
740
+ * const systemPromptVersionWithIdOnly = await prisma.systemPromptVersion.createManyAndReturn({
741
+ * select: { id: true },
742
+ * data: [
743
+ * // ... provide data here
744
+ * ]
745
+ * })
746
+ * Note, that providing `undefined` is treated as the value not being there.
747
+ * Read more here: https://pris.ly/d/null-undefined
748
+ *
749
+ */
750
+ createManyAndReturn<T extends SystemPromptVersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SystemPromptVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemPromptVersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
751
+
752
+ /**
753
+ * Delete a SystemPromptVersion.
754
+ * @param {SystemPromptVersionDeleteArgs} args - Arguments to delete one SystemPromptVersion.
755
+ * @example
756
+ * // Delete one SystemPromptVersion
757
+ * const SystemPromptVersion = await prisma.systemPromptVersion.delete({
758
+ * where: {
759
+ * // ... filter to delete one SystemPromptVersion
760
+ * }
761
+ * })
762
+ *
763
+ */
764
+ 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>
765
+
766
+ /**
767
+ * Update one SystemPromptVersion.
768
+ * @param {SystemPromptVersionUpdateArgs} args - Arguments to update one SystemPromptVersion.
769
+ * @example
770
+ * // Update one SystemPromptVersion
771
+ * const systemPromptVersion = await prisma.systemPromptVersion.update({
772
+ * where: {
773
+ * // ... provide filter here
774
+ * },
775
+ * data: {
776
+ * // ... provide data here
777
+ * }
778
+ * })
779
+ *
780
+ */
781
+ 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>
782
+
783
+ /**
784
+ * Delete zero or more SystemPromptVersions.
785
+ * @param {SystemPromptVersionDeleteManyArgs} args - Arguments to filter SystemPromptVersions to delete.
786
+ * @example
787
+ * // Delete a few SystemPromptVersions
788
+ * const { count } = await prisma.systemPromptVersion.deleteMany({
789
+ * where: {
790
+ * // ... provide filter here
791
+ * }
792
+ * })
793
+ *
794
+ */
795
+ deleteMany<T extends SystemPromptVersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SystemPromptVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
796
+
797
+ /**
798
+ * Update zero or more SystemPromptVersions.
799
+ * Note, that providing `undefined` is treated as the value not being there.
800
+ * Read more here: https://pris.ly/d/null-undefined
801
+ * @param {SystemPromptVersionUpdateManyArgs} args - Arguments to update one or more rows.
802
+ * @example
803
+ * // Update many SystemPromptVersions
804
+ * const systemPromptVersion = await prisma.systemPromptVersion.updateMany({
805
+ * where: {
806
+ * // ... provide filter here
807
+ * },
808
+ * data: {
809
+ * // ... provide data here
810
+ * }
811
+ * })
812
+ *
813
+ */
814
+ updateMany<T extends SystemPromptVersionUpdateManyArgs>(args: Prisma.SelectSubset<T, SystemPromptVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
815
+
816
+ /**
817
+ * Update zero or more SystemPromptVersions and returns the data updated in the database.
818
+ * @param {SystemPromptVersionUpdateManyAndReturnArgs} args - Arguments to update many SystemPromptVersions.
819
+ * @example
820
+ * // Update many SystemPromptVersions
821
+ * const systemPromptVersion = await prisma.systemPromptVersion.updateManyAndReturn({
822
+ * where: {
823
+ * // ... provide filter here
824
+ * },
825
+ * data: [
826
+ * // ... provide data here
827
+ * ]
828
+ * })
829
+ *
830
+ * // Update zero or more SystemPromptVersions and only return the `id`
831
+ * const systemPromptVersionWithIdOnly = await prisma.systemPromptVersion.updateManyAndReturn({
832
+ * select: { id: true },
833
+ * where: {
834
+ * // ... provide filter here
835
+ * },
836
+ * data: [
837
+ * // ... provide data here
838
+ * ]
839
+ * })
840
+ * Note, that providing `undefined` is treated as the value not being there.
841
+ * Read more here: https://pris.ly/d/null-undefined
842
+ *
843
+ */
844
+ updateManyAndReturn<T extends SystemPromptVersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SystemPromptVersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemPromptVersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
845
+
846
+ /**
847
+ * Create or update one SystemPromptVersion.
848
+ * @param {SystemPromptVersionUpsertArgs} args - Arguments to update or create a SystemPromptVersion.
849
+ * @example
850
+ * // Update or create a SystemPromptVersion
851
+ * const systemPromptVersion = await prisma.systemPromptVersion.upsert({
852
+ * create: {
853
+ * // ... data to create a SystemPromptVersion
854
+ * },
855
+ * update: {
856
+ * // ... in case it already exists, update
857
+ * },
858
+ * where: {
859
+ * // ... the filter for the SystemPromptVersion we want to update
860
+ * }
861
+ * })
862
+ */
863
+ 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>
864
+
865
+
866
+ /**
867
+ * Count the number of SystemPromptVersions.
868
+ * Note, that providing `undefined` is treated as the value not being there.
869
+ * Read more here: https://pris.ly/d/null-undefined
870
+ * @param {SystemPromptVersionCountArgs} args - Arguments to filter SystemPromptVersions to count.
871
+ * @example
872
+ * // Count the number of SystemPromptVersions
873
+ * const count = await prisma.systemPromptVersion.count({
874
+ * where: {
875
+ * // ... the filter for the SystemPromptVersions we want to count
876
+ * }
877
+ * })
878
+ **/
879
+ count<T extends SystemPromptVersionCountArgs>(
880
+ args?: Prisma.Subset<T, SystemPromptVersionCountArgs>,
881
+ ): Prisma.PrismaPromise<
882
+ T extends runtime.Types.Utils.Record<'select', any>
883
+ ? T['select'] extends true
884
+ ? number
885
+ : Prisma.GetScalarType<T['select'], SystemPromptVersionCountAggregateOutputType>
886
+ : number
887
+ >
888
+
889
+ /**
890
+ * Allows you to perform aggregations operations on a SystemPromptVersion.
891
+ * Note, that providing `undefined` is treated as the value not being there.
892
+ * Read more here: https://pris.ly/d/null-undefined
893
+ * @param {SystemPromptVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
894
+ * @example
895
+ * // Ordered by age ascending
896
+ * // Where email contains prisma.io
897
+ * // Limited to the 10 users
898
+ * const aggregations = await prisma.user.aggregate({
899
+ * _avg: {
900
+ * age: true,
901
+ * },
902
+ * where: {
903
+ * email: {
904
+ * contains: "prisma.io",
905
+ * },
906
+ * },
907
+ * orderBy: {
908
+ * age: "asc",
909
+ * },
910
+ * take: 10,
911
+ * })
912
+ **/
913
+ aggregate<T extends SystemPromptVersionAggregateArgs>(args: Prisma.Subset<T, SystemPromptVersionAggregateArgs>): Prisma.PrismaPromise<GetSystemPromptVersionAggregateType<T>>
914
+
915
+ /**
916
+ * Group by SystemPromptVersion.
917
+ * Note, that providing `undefined` is treated as the value not being there.
918
+ * Read more here: https://pris.ly/d/null-undefined
919
+ * @param {SystemPromptVersionGroupByArgs} args - Group by arguments.
920
+ * @example
921
+ * // Group by city, order by createdAt, get count
922
+ * const result = await prisma.user.groupBy({
923
+ * by: ['city', 'createdAt'],
924
+ * orderBy: {
925
+ * createdAt: true
926
+ * },
927
+ * _count: {
928
+ * _all: true
929
+ * },
930
+ * })
931
+ *
932
+ **/
933
+ groupBy<
934
+ T extends SystemPromptVersionGroupByArgs,
935
+ HasSelectOrTake extends Prisma.Or<
936
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
937
+ Prisma.Extends<'take', Prisma.Keys<T>>
938
+ >,
939
+ OrderByArg extends Prisma.True extends HasSelectOrTake
940
+ ? { orderBy: SystemPromptVersionGroupByArgs['orderBy'] }
941
+ : { orderBy?: SystemPromptVersionGroupByArgs['orderBy'] },
942
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
943
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
944
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
945
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
946
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
947
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
948
+ InputErrors extends ByEmpty extends Prisma.True
949
+ ? `Error: "by" must not be empty.`
950
+ : HavingValid extends Prisma.False
951
+ ? {
952
+ [P in HavingFields]: P extends ByFields
953
+ ? never
954
+ : P extends string
955
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
956
+ : [
957
+ Error,
958
+ 'Field ',
959
+ P,
960
+ ` in "having" needs to be provided in "by"`,
961
+ ]
962
+ }[HavingFields]
963
+ : 'take' extends Prisma.Keys<T>
964
+ ? 'orderBy' extends Prisma.Keys<T>
965
+ ? ByValid extends Prisma.True
966
+ ? {}
967
+ : {
968
+ [P in OrderFields]: P extends ByFields
969
+ ? never
970
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
971
+ }[OrderFields]
972
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
973
+ : 'skip' extends Prisma.Keys<T>
974
+ ? 'orderBy' extends Prisma.Keys<T>
975
+ ? ByValid extends Prisma.True
976
+ ? {}
977
+ : {
978
+ [P in OrderFields]: P extends ByFields
979
+ ? never
980
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
981
+ }[OrderFields]
982
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
983
+ : ByValid extends Prisma.True
984
+ ? {}
985
+ : {
986
+ [P in OrderFields]: P extends ByFields
987
+ ? never
988
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
989
+ }[OrderFields]
990
+ >(args: Prisma.SubsetIntersection<T, SystemPromptVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSystemPromptVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
991
+ /**
992
+ * Fields of the SystemPromptVersion model
993
+ */
994
+ readonly fields: SystemPromptVersionFieldRefs;
995
+ }
996
+
997
+ /**
998
+ * The delegate class that acts as a "Promise-like" for SystemPromptVersion.
999
+ * Why is this prefixed with `Prisma__`?
1000
+ * Because we want to prevent naming conflicts as mentioned in
1001
+ * https://github.com/prisma/prisma-client-js/issues/707
1002
+ */
1003
+ export interface Prisma__SystemPromptVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1004
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1005
+ 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>
1006
+ /**
1007
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1008
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1009
+ * @param onrejected The callback to execute when the Promise is rejected.
1010
+ * @returns A Promise for the completion of which ever callback is executed.
1011
+ */
1012
+ 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>
1013
+ /**
1014
+ * Attaches a callback for only the rejection of the Promise.
1015
+ * @param onrejected The callback to execute when the Promise is rejected.
1016
+ * @returns A Promise for the completion of the callback.
1017
+ */
1018
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1019
+ /**
1020
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1021
+ * resolved value cannot be modified from the callback.
1022
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1023
+ * @returns A Promise for the completion of the callback.
1024
+ */
1025
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1026
+ }
1027
+
1028
+
1029
+
1030
+
1031
+ /**
1032
+ * Fields of the SystemPromptVersion model
1033
+ */
1034
+ export interface SystemPromptVersionFieldRefs {
1035
+ readonly id: Prisma.FieldRef<"SystemPromptVersion", 'String'>
1036
+ readonly templateId: Prisma.FieldRef<"SystemPromptVersion", 'String'>
1037
+ readonly version: Prisma.FieldRef<"SystemPromptVersion", 'Int'>
1038
+ readonly sections: Prisma.FieldRef<"SystemPromptVersion", 'Json'>
1039
+ readonly note: Prisma.FieldRef<"SystemPromptVersion", 'String'>
1040
+ readonly createdBy: Prisma.FieldRef<"SystemPromptVersion", 'String'>
1041
+ readonly createdAt: Prisma.FieldRef<"SystemPromptVersion", 'DateTime'>
1042
+ }
1043
+
1044
+
1045
+ // Custom InputTypes
1046
+ /**
1047
+ * SystemPromptVersion findUnique
1048
+ */
1049
+ export type SystemPromptVersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1050
+ /**
1051
+ * Select specific fields to fetch from the SystemPromptVersion
1052
+ */
1053
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1054
+ /**
1055
+ * Omit specific fields from the SystemPromptVersion
1056
+ */
1057
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1058
+ /**
1059
+ * Choose, which related nodes to fetch as well
1060
+ */
1061
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1062
+ /**
1063
+ * Filter, which SystemPromptVersion to fetch.
1064
+ */
1065
+ where: Prisma.SystemPromptVersionWhereUniqueInput
1066
+ }
1067
+
1068
+ /**
1069
+ * SystemPromptVersion findUniqueOrThrow
1070
+ */
1071
+ export type SystemPromptVersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1072
+ /**
1073
+ * Select specific fields to fetch from the SystemPromptVersion
1074
+ */
1075
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1076
+ /**
1077
+ * Omit specific fields from the SystemPromptVersion
1078
+ */
1079
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1080
+ /**
1081
+ * Choose, which related nodes to fetch as well
1082
+ */
1083
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1084
+ /**
1085
+ * Filter, which SystemPromptVersion to fetch.
1086
+ */
1087
+ where: Prisma.SystemPromptVersionWhereUniqueInput
1088
+ }
1089
+
1090
+ /**
1091
+ * SystemPromptVersion findFirst
1092
+ */
1093
+ export type SystemPromptVersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1094
+ /**
1095
+ * Select specific fields to fetch from the SystemPromptVersion
1096
+ */
1097
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1098
+ /**
1099
+ * Omit specific fields from the SystemPromptVersion
1100
+ */
1101
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1102
+ /**
1103
+ * Choose, which related nodes to fetch as well
1104
+ */
1105
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1106
+ /**
1107
+ * Filter, which SystemPromptVersion to fetch.
1108
+ */
1109
+ where?: Prisma.SystemPromptVersionWhereInput
1110
+ /**
1111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1112
+ *
1113
+ * Determine the order of SystemPromptVersions to fetch.
1114
+ */
1115
+ orderBy?: Prisma.SystemPromptVersionOrderByWithRelationInput | Prisma.SystemPromptVersionOrderByWithRelationInput[]
1116
+ /**
1117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1118
+ *
1119
+ * Sets the position for searching for SystemPromptVersions.
1120
+ */
1121
+ cursor?: Prisma.SystemPromptVersionWhereUniqueInput
1122
+ /**
1123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1124
+ *
1125
+ * Take `±n` SystemPromptVersions from the position of the cursor.
1126
+ */
1127
+ take?: number
1128
+ /**
1129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1130
+ *
1131
+ * Skip the first `n` SystemPromptVersions.
1132
+ */
1133
+ skip?: number
1134
+ /**
1135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1136
+ *
1137
+ * Filter by unique combinations of SystemPromptVersions.
1138
+ */
1139
+ distinct?: Prisma.SystemPromptVersionScalarFieldEnum | Prisma.SystemPromptVersionScalarFieldEnum[]
1140
+ }
1141
+
1142
+ /**
1143
+ * SystemPromptVersion findFirstOrThrow
1144
+ */
1145
+ export type SystemPromptVersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1146
+ /**
1147
+ * Select specific fields to fetch from the SystemPromptVersion
1148
+ */
1149
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1150
+ /**
1151
+ * Omit specific fields from the SystemPromptVersion
1152
+ */
1153
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1154
+ /**
1155
+ * Choose, which related nodes to fetch as well
1156
+ */
1157
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1158
+ /**
1159
+ * Filter, which SystemPromptVersion to fetch.
1160
+ */
1161
+ where?: Prisma.SystemPromptVersionWhereInput
1162
+ /**
1163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1164
+ *
1165
+ * Determine the order of SystemPromptVersions to fetch.
1166
+ */
1167
+ orderBy?: Prisma.SystemPromptVersionOrderByWithRelationInput | Prisma.SystemPromptVersionOrderByWithRelationInput[]
1168
+ /**
1169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1170
+ *
1171
+ * Sets the position for searching for SystemPromptVersions.
1172
+ */
1173
+ cursor?: Prisma.SystemPromptVersionWhereUniqueInput
1174
+ /**
1175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1176
+ *
1177
+ * Take `±n` SystemPromptVersions from the position of the cursor.
1178
+ */
1179
+ take?: number
1180
+ /**
1181
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1182
+ *
1183
+ * Skip the first `n` SystemPromptVersions.
1184
+ */
1185
+ skip?: number
1186
+ /**
1187
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1188
+ *
1189
+ * Filter by unique combinations of SystemPromptVersions.
1190
+ */
1191
+ distinct?: Prisma.SystemPromptVersionScalarFieldEnum | Prisma.SystemPromptVersionScalarFieldEnum[]
1192
+ }
1193
+
1194
+ /**
1195
+ * SystemPromptVersion findMany
1196
+ */
1197
+ export type SystemPromptVersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1198
+ /**
1199
+ * Select specific fields to fetch from the SystemPromptVersion
1200
+ */
1201
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1202
+ /**
1203
+ * Omit specific fields from the SystemPromptVersion
1204
+ */
1205
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1206
+ /**
1207
+ * Choose, which related nodes to fetch as well
1208
+ */
1209
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1210
+ /**
1211
+ * Filter, which SystemPromptVersions to fetch.
1212
+ */
1213
+ where?: Prisma.SystemPromptVersionWhereInput
1214
+ /**
1215
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1216
+ *
1217
+ * Determine the order of SystemPromptVersions to fetch.
1218
+ */
1219
+ orderBy?: Prisma.SystemPromptVersionOrderByWithRelationInput | Prisma.SystemPromptVersionOrderByWithRelationInput[]
1220
+ /**
1221
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1222
+ *
1223
+ * Sets the position for listing SystemPromptVersions.
1224
+ */
1225
+ cursor?: Prisma.SystemPromptVersionWhereUniqueInput
1226
+ /**
1227
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1228
+ *
1229
+ * Take `±n` SystemPromptVersions from the position of the cursor.
1230
+ */
1231
+ take?: number
1232
+ /**
1233
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1234
+ *
1235
+ * Skip the first `n` SystemPromptVersions.
1236
+ */
1237
+ skip?: number
1238
+ /**
1239
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1240
+ *
1241
+ * Filter by unique combinations of SystemPromptVersions.
1242
+ */
1243
+ distinct?: Prisma.SystemPromptVersionScalarFieldEnum | Prisma.SystemPromptVersionScalarFieldEnum[]
1244
+ }
1245
+
1246
+ /**
1247
+ * SystemPromptVersion create
1248
+ */
1249
+ export type SystemPromptVersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1250
+ /**
1251
+ * Select specific fields to fetch from the SystemPromptVersion
1252
+ */
1253
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1254
+ /**
1255
+ * Omit specific fields from the SystemPromptVersion
1256
+ */
1257
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1258
+ /**
1259
+ * Choose, which related nodes to fetch as well
1260
+ */
1261
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1262
+ /**
1263
+ * The data needed to create a SystemPromptVersion.
1264
+ */
1265
+ data: Prisma.XOR<Prisma.SystemPromptVersionCreateInput, Prisma.SystemPromptVersionUncheckedCreateInput>
1266
+ }
1267
+
1268
+ /**
1269
+ * SystemPromptVersion createMany
1270
+ */
1271
+ export type SystemPromptVersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1272
+ /**
1273
+ * The data used to create many SystemPromptVersions.
1274
+ */
1275
+ data: Prisma.SystemPromptVersionCreateManyInput | Prisma.SystemPromptVersionCreateManyInput[]
1276
+ }
1277
+
1278
+ /**
1279
+ * SystemPromptVersion createManyAndReturn
1280
+ */
1281
+ export type SystemPromptVersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1282
+ /**
1283
+ * Select specific fields to fetch from the SystemPromptVersion
1284
+ */
1285
+ select?: Prisma.SystemPromptVersionSelectCreateManyAndReturn<ExtArgs> | null
1286
+ /**
1287
+ * Omit specific fields from the SystemPromptVersion
1288
+ */
1289
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1290
+ /**
1291
+ * The data used to create many SystemPromptVersions.
1292
+ */
1293
+ data: Prisma.SystemPromptVersionCreateManyInput | Prisma.SystemPromptVersionCreateManyInput[]
1294
+ /**
1295
+ * Choose, which related nodes to fetch as well
1296
+ */
1297
+ include?: Prisma.SystemPromptVersionIncludeCreateManyAndReturn<ExtArgs> | null
1298
+ }
1299
+
1300
+ /**
1301
+ * SystemPromptVersion update
1302
+ */
1303
+ export type SystemPromptVersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ /**
1305
+ * Select specific fields to fetch from the SystemPromptVersion
1306
+ */
1307
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1308
+ /**
1309
+ * Omit specific fields from the SystemPromptVersion
1310
+ */
1311
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1312
+ /**
1313
+ * Choose, which related nodes to fetch as well
1314
+ */
1315
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1316
+ /**
1317
+ * The data needed to update a SystemPromptVersion.
1318
+ */
1319
+ data: Prisma.XOR<Prisma.SystemPromptVersionUpdateInput, Prisma.SystemPromptVersionUncheckedUpdateInput>
1320
+ /**
1321
+ * Choose, which SystemPromptVersion to update.
1322
+ */
1323
+ where: Prisma.SystemPromptVersionWhereUniqueInput
1324
+ }
1325
+
1326
+ /**
1327
+ * SystemPromptVersion updateMany
1328
+ */
1329
+ export type SystemPromptVersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1330
+ /**
1331
+ * The data used to update SystemPromptVersions.
1332
+ */
1333
+ data: Prisma.XOR<Prisma.SystemPromptVersionUpdateManyMutationInput, Prisma.SystemPromptVersionUncheckedUpdateManyInput>
1334
+ /**
1335
+ * Filter which SystemPromptVersions to update
1336
+ */
1337
+ where?: Prisma.SystemPromptVersionWhereInput
1338
+ /**
1339
+ * Limit how many SystemPromptVersions to update.
1340
+ */
1341
+ limit?: number
1342
+ }
1343
+
1344
+ /**
1345
+ * SystemPromptVersion updateManyAndReturn
1346
+ */
1347
+ export type SystemPromptVersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * Select specific fields to fetch from the SystemPromptVersion
1350
+ */
1351
+ select?: Prisma.SystemPromptVersionSelectUpdateManyAndReturn<ExtArgs> | null
1352
+ /**
1353
+ * Omit specific fields from the SystemPromptVersion
1354
+ */
1355
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1356
+ /**
1357
+ * The data used to update SystemPromptVersions.
1358
+ */
1359
+ data: Prisma.XOR<Prisma.SystemPromptVersionUpdateManyMutationInput, Prisma.SystemPromptVersionUncheckedUpdateManyInput>
1360
+ /**
1361
+ * Filter which SystemPromptVersions to update
1362
+ */
1363
+ where?: Prisma.SystemPromptVersionWhereInput
1364
+ /**
1365
+ * Limit how many SystemPromptVersions to update.
1366
+ */
1367
+ limit?: number
1368
+ /**
1369
+ * Choose, which related nodes to fetch as well
1370
+ */
1371
+ include?: Prisma.SystemPromptVersionIncludeUpdateManyAndReturn<ExtArgs> | null
1372
+ }
1373
+
1374
+ /**
1375
+ * SystemPromptVersion upsert
1376
+ */
1377
+ export type SystemPromptVersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the SystemPromptVersion
1380
+ */
1381
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1382
+ /**
1383
+ * Omit specific fields from the SystemPromptVersion
1384
+ */
1385
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1386
+ /**
1387
+ * Choose, which related nodes to fetch as well
1388
+ */
1389
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1390
+ /**
1391
+ * The filter to search for the SystemPromptVersion to update in case it exists.
1392
+ */
1393
+ where: Prisma.SystemPromptVersionWhereUniqueInput
1394
+ /**
1395
+ * In case the SystemPromptVersion found by the `where` argument doesn't exist, create a new SystemPromptVersion with this data.
1396
+ */
1397
+ create: Prisma.XOR<Prisma.SystemPromptVersionCreateInput, Prisma.SystemPromptVersionUncheckedCreateInput>
1398
+ /**
1399
+ * In case the SystemPromptVersion was found with the provided `where` argument, update it with this data.
1400
+ */
1401
+ update: Prisma.XOR<Prisma.SystemPromptVersionUpdateInput, Prisma.SystemPromptVersionUncheckedUpdateInput>
1402
+ }
1403
+
1404
+ /**
1405
+ * SystemPromptVersion delete
1406
+ */
1407
+ export type SystemPromptVersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1408
+ /**
1409
+ * Select specific fields to fetch from the SystemPromptVersion
1410
+ */
1411
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1412
+ /**
1413
+ * Omit specific fields from the SystemPromptVersion
1414
+ */
1415
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1416
+ /**
1417
+ * Choose, which related nodes to fetch as well
1418
+ */
1419
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1420
+ /**
1421
+ * Filter which SystemPromptVersion to delete.
1422
+ */
1423
+ where: Prisma.SystemPromptVersionWhereUniqueInput
1424
+ }
1425
+
1426
+ /**
1427
+ * SystemPromptVersion deleteMany
1428
+ */
1429
+ export type SystemPromptVersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1430
+ /**
1431
+ * Filter which SystemPromptVersions to delete
1432
+ */
1433
+ where?: Prisma.SystemPromptVersionWhereInput
1434
+ /**
1435
+ * Limit how many SystemPromptVersions to delete.
1436
+ */
1437
+ limit?: number
1438
+ }
1439
+
1440
+ /**
1441
+ * SystemPromptVersion without action
1442
+ */
1443
+ export type SystemPromptVersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1444
+ /**
1445
+ * Select specific fields to fetch from the SystemPromptVersion
1446
+ */
1447
+ select?: Prisma.SystemPromptVersionSelect<ExtArgs> | null
1448
+ /**
1449
+ * Omit specific fields from the SystemPromptVersion
1450
+ */
1451
+ omit?: Prisma.SystemPromptVersionOmit<ExtArgs> | null
1452
+ /**
1453
+ * Choose, which related nodes to fetch as well
1454
+ */
1455
+ include?: Prisma.SystemPromptVersionInclude<ExtArgs> | null
1456
+ }