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