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