@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
@@ -410,6 +410,8 @@ export const ModelName = {
410
410
  AgentPlugin: 'AgentPlugin',
411
411
  AgentMember: 'AgentMember',
412
412
  Account: 'Account',
413
+ AgentTemplate: 'AgentTemplate',
414
+ AgentTemplateItem: 'AgentTemplateItem',
413
415
  AccountMember: 'AccountMember',
414
416
  AccountInvite: 'AccountInvite',
415
417
  AgentCronRun: 'AgentCronRun',
@@ -441,7 +443,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
441
443
  omit: GlobalOmitOptions
442
444
  }
443
445
  meta: {
444
- modelProps: "agentWorkQueueSnapshot" | "agentPhaseMethodology" | "sessionFollow" | "sessionAlertState" | "agent" | "agentEnv" | "gitHubEnterpriseApp" | "agentCronJob" | "agentTool" | "agentToken" | "agentPlugin" | "agentMember" | "account" | "accountMember" | "accountInvite" | "agentCronRun" | "agentCronRunSkillUsage" | "agentCronRunModelBreakdown" | "agentChatTokenUsageDailyByModel" | "agentAsk" | "agentCronRunRequest" | "agentCronRunTranscript" | "agentTranscriptRead" | "agentGitHubInstallationsSnapshot" | "pushSubscription" | "chatThreadWatch" | "userNotificationPrefs" | "agentMarketplace" | "gitHubReconcileAudit"
446
+ modelProps: "agentWorkQueueSnapshot" | "agentPhaseMethodology" | "sessionFollow" | "sessionAlertState" | "agent" | "agentEnv" | "gitHubEnterpriseApp" | "agentCronJob" | "agentTool" | "agentToken" | "agentPlugin" | "agentMember" | "account" | "agentTemplate" | "agentTemplateItem" | "accountMember" | "accountInvite" | "agentCronRun" | "agentCronRunSkillUsage" | "agentCronRunModelBreakdown" | "agentChatTokenUsageDailyByModel" | "agentAsk" | "agentCronRunRequest" | "agentCronRunTranscript" | "agentTranscriptRead" | "agentGitHubInstallationsSnapshot" | "pushSubscription" | "chatThreadWatch" | "userNotificationPrefs" | "agentMarketplace" | "gitHubReconcileAudit"
445
447
  txIsolationLevel: TransactionIsolationLevel
446
448
  }
447
449
  model: {
@@ -1407,6 +1409,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
1407
1409
  }
1408
1410
  }
1409
1411
  }
1412
+ AgentTemplate: {
1413
+ payload: Prisma.$AgentTemplatePayload<ExtArgs>
1414
+ fields: Prisma.AgentTemplateFieldRefs
1415
+ operations: {
1416
+ findUnique: {
1417
+ args: Prisma.AgentTemplateFindUniqueArgs<ExtArgs>
1418
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload> | null
1419
+ }
1420
+ findUniqueOrThrow: {
1421
+ args: Prisma.AgentTemplateFindUniqueOrThrowArgs<ExtArgs>
1422
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>
1423
+ }
1424
+ findFirst: {
1425
+ args: Prisma.AgentTemplateFindFirstArgs<ExtArgs>
1426
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload> | null
1427
+ }
1428
+ findFirstOrThrow: {
1429
+ args: Prisma.AgentTemplateFindFirstOrThrowArgs<ExtArgs>
1430
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>
1431
+ }
1432
+ findMany: {
1433
+ args: Prisma.AgentTemplateFindManyArgs<ExtArgs>
1434
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>[]
1435
+ }
1436
+ create: {
1437
+ args: Prisma.AgentTemplateCreateArgs<ExtArgs>
1438
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>
1439
+ }
1440
+ createMany: {
1441
+ args: Prisma.AgentTemplateCreateManyArgs<ExtArgs>
1442
+ result: BatchPayload
1443
+ }
1444
+ createManyAndReturn: {
1445
+ args: Prisma.AgentTemplateCreateManyAndReturnArgs<ExtArgs>
1446
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>[]
1447
+ }
1448
+ delete: {
1449
+ args: Prisma.AgentTemplateDeleteArgs<ExtArgs>
1450
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>
1451
+ }
1452
+ update: {
1453
+ args: Prisma.AgentTemplateUpdateArgs<ExtArgs>
1454
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>
1455
+ }
1456
+ deleteMany: {
1457
+ args: Prisma.AgentTemplateDeleteManyArgs<ExtArgs>
1458
+ result: BatchPayload
1459
+ }
1460
+ updateMany: {
1461
+ args: Prisma.AgentTemplateUpdateManyArgs<ExtArgs>
1462
+ result: BatchPayload
1463
+ }
1464
+ updateManyAndReturn: {
1465
+ args: Prisma.AgentTemplateUpdateManyAndReturnArgs<ExtArgs>
1466
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>[]
1467
+ }
1468
+ upsert: {
1469
+ args: Prisma.AgentTemplateUpsertArgs<ExtArgs>
1470
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplatePayload>
1471
+ }
1472
+ aggregate: {
1473
+ args: Prisma.AgentTemplateAggregateArgs<ExtArgs>
1474
+ result: runtime.Types.Utils.Optional<Prisma.AggregateAgentTemplate>
1475
+ }
1476
+ groupBy: {
1477
+ args: Prisma.AgentTemplateGroupByArgs<ExtArgs>
1478
+ result: runtime.Types.Utils.Optional<Prisma.AgentTemplateGroupByOutputType>[]
1479
+ }
1480
+ count: {
1481
+ args: Prisma.AgentTemplateCountArgs<ExtArgs>
1482
+ result: runtime.Types.Utils.Optional<Prisma.AgentTemplateCountAggregateOutputType> | number
1483
+ }
1484
+ }
1485
+ }
1486
+ AgentTemplateItem: {
1487
+ payload: Prisma.$AgentTemplateItemPayload<ExtArgs>
1488
+ fields: Prisma.AgentTemplateItemFieldRefs
1489
+ operations: {
1490
+ findUnique: {
1491
+ args: Prisma.AgentTemplateItemFindUniqueArgs<ExtArgs>
1492
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload> | null
1493
+ }
1494
+ findUniqueOrThrow: {
1495
+ args: Prisma.AgentTemplateItemFindUniqueOrThrowArgs<ExtArgs>
1496
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>
1497
+ }
1498
+ findFirst: {
1499
+ args: Prisma.AgentTemplateItemFindFirstArgs<ExtArgs>
1500
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload> | null
1501
+ }
1502
+ findFirstOrThrow: {
1503
+ args: Prisma.AgentTemplateItemFindFirstOrThrowArgs<ExtArgs>
1504
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>
1505
+ }
1506
+ findMany: {
1507
+ args: Prisma.AgentTemplateItemFindManyArgs<ExtArgs>
1508
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>[]
1509
+ }
1510
+ create: {
1511
+ args: Prisma.AgentTemplateItemCreateArgs<ExtArgs>
1512
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>
1513
+ }
1514
+ createMany: {
1515
+ args: Prisma.AgentTemplateItemCreateManyArgs<ExtArgs>
1516
+ result: BatchPayload
1517
+ }
1518
+ createManyAndReturn: {
1519
+ args: Prisma.AgentTemplateItemCreateManyAndReturnArgs<ExtArgs>
1520
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>[]
1521
+ }
1522
+ delete: {
1523
+ args: Prisma.AgentTemplateItemDeleteArgs<ExtArgs>
1524
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>
1525
+ }
1526
+ update: {
1527
+ args: Prisma.AgentTemplateItemUpdateArgs<ExtArgs>
1528
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>
1529
+ }
1530
+ deleteMany: {
1531
+ args: Prisma.AgentTemplateItemDeleteManyArgs<ExtArgs>
1532
+ result: BatchPayload
1533
+ }
1534
+ updateMany: {
1535
+ args: Prisma.AgentTemplateItemUpdateManyArgs<ExtArgs>
1536
+ result: BatchPayload
1537
+ }
1538
+ updateManyAndReturn: {
1539
+ args: Prisma.AgentTemplateItemUpdateManyAndReturnArgs<ExtArgs>
1540
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>[]
1541
+ }
1542
+ upsert: {
1543
+ args: Prisma.AgentTemplateItemUpsertArgs<ExtArgs>
1544
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$AgentTemplateItemPayload>
1545
+ }
1546
+ aggregate: {
1547
+ args: Prisma.AgentTemplateItemAggregateArgs<ExtArgs>
1548
+ result: runtime.Types.Utils.Optional<Prisma.AggregateAgentTemplateItem>
1549
+ }
1550
+ groupBy: {
1551
+ args: Prisma.AgentTemplateItemGroupByArgs<ExtArgs>
1552
+ result: runtime.Types.Utils.Optional<Prisma.AgentTemplateItemGroupByOutputType>[]
1553
+ }
1554
+ count: {
1555
+ args: Prisma.AgentTemplateItemCountArgs<ExtArgs>
1556
+ result: runtime.Types.Utils.Optional<Prisma.AgentTemplateItemCountAggregateOutputType> | number
1557
+ }
1558
+ }
1559
+ }
1410
1560
  AccountMember: {
1411
1561
  payload: Prisma.$AccountMemberPayload<ExtArgs>
1412
1562
  fields: Prisma.AccountMemberFieldRefs
@@ -2705,6 +2855,7 @@ export const AgentScalarFieldEnum = {
2705
2855
  cleanupMergedWorktrees: 'cleanupMergedWorktrees',
2706
2856
  cleanupAfterDays: 'cleanupAfterDays',
2707
2857
  bakedMarketplaces: 'bakedMarketplaces',
2858
+ templateDetached: 'templateDetached',
2708
2859
  createdAt: 'createdAt',
2709
2860
  updatedAt: 'updatedAt'
2710
2861
  } as const
@@ -2718,6 +2869,7 @@ export const AgentEnvScalarFieldEnum = {
2718
2869
  key: 'key',
2719
2870
  value: 'value',
2720
2871
  secret: 'secret',
2872
+ source: 'source',
2721
2873
  createdAt: 'createdAt',
2722
2874
  updatedAt: 'updatedAt'
2723
2875
  } as const
@@ -2753,6 +2905,7 @@ export const AgentCronJobScalarFieldEnum = {
2753
2905
  preCheck: 'preCheck',
2754
2906
  name: 'name',
2755
2907
  system: 'system',
2908
+ source: 'source',
2756
2909
  lockdownDisabledAt: 'lockdownDisabledAt',
2757
2910
  runRequestedAt: 'runRequestedAt',
2758
2911
  runRequestedBy: 'runRequestedBy',
@@ -2769,7 +2922,9 @@ export const AgentToolScalarFieldEnum = {
2769
2922
  agentId: 'agentId',
2770
2923
  pattern: 'pattern',
2771
2924
  enabled: 'enabled',
2772
- createdAt: 'createdAt'
2925
+ source: 'source',
2926
+ createdAt: 'createdAt',
2927
+ updatedAt: 'updatedAt'
2773
2928
  } as const
2774
2929
 
2775
2930
  export type AgentToolScalarFieldEnum = (typeof AgentToolScalarFieldEnum)[keyof typeof AgentToolScalarFieldEnum]
@@ -2793,6 +2948,7 @@ export const AgentPluginScalarFieldEnum = {
2793
2948
  name: 'name',
2794
2949
  version: 'version',
2795
2950
  enabled: 'enabled',
2951
+ source: 'source',
2796
2952
  createdAt: 'createdAt',
2797
2953
  updatedAt: 'updatedAt'
2798
2954
  } as const
@@ -2825,6 +2981,30 @@ export const AccountScalarFieldEnum = {
2825
2981
  export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
2826
2982
 
2827
2983
 
2984
+ export const AgentTemplateScalarFieldEnum = {
2985
+ id: 'id',
2986
+ accountId: 'accountId',
2987
+ specialty: 'specialty',
2988
+ createdAt: 'createdAt',
2989
+ updatedAt: 'updatedAt'
2990
+ } as const
2991
+
2992
+ export type AgentTemplateScalarFieldEnum = (typeof AgentTemplateScalarFieldEnum)[keyof typeof AgentTemplateScalarFieldEnum]
2993
+
2994
+
2995
+ export const AgentTemplateItemScalarFieldEnum = {
2996
+ id: 'id',
2997
+ templateId: 'templateId',
2998
+ kind: 'kind',
2999
+ key: 'key',
3000
+ payload: 'payload',
3001
+ createdAt: 'createdAt',
3002
+ updatedAt: 'updatedAt'
3003
+ } as const
3004
+
3005
+ export type AgentTemplateItemScalarFieldEnum = (typeof AgentTemplateItemScalarFieldEnum)[keyof typeof AgentTemplateItemScalarFieldEnum]
3006
+
3007
+
2828
3008
  export const AccountMemberScalarFieldEnum = {
2829
3009
  id: 'id',
2830
3010
  accountId: 'accountId',
@@ -3371,6 +3551,8 @@ export type GlobalOmitConfig = {
3371
3551
  agentPlugin?: Prisma.AgentPluginOmit
3372
3552
  agentMember?: Prisma.AgentMemberOmit
3373
3553
  account?: Prisma.AccountOmit
3554
+ agentTemplate?: Prisma.AgentTemplateOmit
3555
+ agentTemplateItem?: Prisma.AgentTemplateItemOmit
3374
3556
  accountMember?: Prisma.AccountMemberOmit
3375
3557
  accountInvite?: Prisma.AccountInviteOmit
3376
3558
  agentCronRun?: Prisma.AgentCronRunOmit
@@ -64,6 +64,8 @@ export const ModelName = {
64
64
  AgentPlugin: 'AgentPlugin',
65
65
  AgentMember: 'AgentMember',
66
66
  Account: 'Account',
67
+ AgentTemplate: 'AgentTemplate',
68
+ AgentTemplateItem: 'AgentTemplateItem',
67
69
  AccountMember: 'AccountMember',
68
70
  AccountInvite: 'AccountInvite',
69
71
  AgentCronRun: 'AgentCronRun',
@@ -173,6 +175,7 @@ export const AgentScalarFieldEnum = {
173
175
  cleanupMergedWorktrees: 'cleanupMergedWorktrees',
174
176
  cleanupAfterDays: 'cleanupAfterDays',
175
177
  bakedMarketplaces: 'bakedMarketplaces',
178
+ templateDetached: 'templateDetached',
176
179
  createdAt: 'createdAt',
177
180
  updatedAt: 'updatedAt'
178
181
  } as const
@@ -186,6 +189,7 @@ export const AgentEnvScalarFieldEnum = {
186
189
  key: 'key',
187
190
  value: 'value',
188
191
  secret: 'secret',
192
+ source: 'source',
189
193
  createdAt: 'createdAt',
190
194
  updatedAt: 'updatedAt'
191
195
  } as const
@@ -221,6 +225,7 @@ export const AgentCronJobScalarFieldEnum = {
221
225
  preCheck: 'preCheck',
222
226
  name: 'name',
223
227
  system: 'system',
228
+ source: 'source',
224
229
  lockdownDisabledAt: 'lockdownDisabledAt',
225
230
  runRequestedAt: 'runRequestedAt',
226
231
  runRequestedBy: 'runRequestedBy',
@@ -237,7 +242,9 @@ export const AgentToolScalarFieldEnum = {
237
242
  agentId: 'agentId',
238
243
  pattern: 'pattern',
239
244
  enabled: 'enabled',
240
- createdAt: 'createdAt'
245
+ source: 'source',
246
+ createdAt: 'createdAt',
247
+ updatedAt: 'updatedAt'
241
248
  } as const
242
249
 
243
250
  export type AgentToolScalarFieldEnum = (typeof AgentToolScalarFieldEnum)[keyof typeof AgentToolScalarFieldEnum]
@@ -261,6 +268,7 @@ export const AgentPluginScalarFieldEnum = {
261
268
  name: 'name',
262
269
  version: 'version',
263
270
  enabled: 'enabled',
271
+ source: 'source',
264
272
  createdAt: 'createdAt',
265
273
  updatedAt: 'updatedAt'
266
274
  } as const
@@ -293,6 +301,30 @@ export const AccountScalarFieldEnum = {
293
301
  export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
294
302
 
295
303
 
304
+ export const AgentTemplateScalarFieldEnum = {
305
+ id: 'id',
306
+ accountId: 'accountId',
307
+ specialty: 'specialty',
308
+ createdAt: 'createdAt',
309
+ updatedAt: 'updatedAt'
310
+ } as const
311
+
312
+ export type AgentTemplateScalarFieldEnum = (typeof AgentTemplateScalarFieldEnum)[keyof typeof AgentTemplateScalarFieldEnum]
313
+
314
+
315
+ export const AgentTemplateItemScalarFieldEnum = {
316
+ id: 'id',
317
+ templateId: 'templateId',
318
+ kind: 'kind',
319
+ key: 'key',
320
+ payload: 'payload',
321
+ createdAt: 'createdAt',
322
+ updatedAt: 'updatedAt'
323
+ } as const
324
+
325
+ export type AgentTemplateItemScalarFieldEnum = (typeof AgentTemplateItemScalarFieldEnum)[keyof typeof AgentTemplateItemScalarFieldEnum]
326
+
327
+
296
328
  export const AccountMemberScalarFieldEnum = {
297
329
  id: 'id',
298
330
  accountId: 'accountId',
@@ -251,6 +251,7 @@ export type AccountWhereInput = {
251
251
  agents?: Prisma.AgentListRelationFilter
252
252
  members?: Prisma.AccountMemberListRelationFilter
253
253
  invites?: Prisma.AccountInviteListRelationFilter
254
+ templates?: Prisma.AgentTemplateListRelationFilter
254
255
  }
255
256
 
256
257
  export type AccountOrderByWithRelationInput = {
@@ -266,6 +267,7 @@ export type AccountOrderByWithRelationInput = {
266
267
  agents?: Prisma.AgentOrderByRelationAggregateInput
267
268
  members?: Prisma.AccountMemberOrderByRelationAggregateInput
268
269
  invites?: Prisma.AccountInviteOrderByRelationAggregateInput
270
+ templates?: Prisma.AgentTemplateOrderByRelationAggregateInput
269
271
  }
270
272
 
271
273
  export type AccountWhereUniqueInput = Prisma.AtLeast<{
@@ -284,6 +286,7 @@ export type AccountWhereUniqueInput = Prisma.AtLeast<{
284
286
  agents?: Prisma.AgentListRelationFilter
285
287
  members?: Prisma.AccountMemberListRelationFilter
286
288
  invites?: Prisma.AccountInviteListRelationFilter
289
+ templates?: Prisma.AgentTemplateListRelationFilter
287
290
  }, "id">
288
291
 
289
292
  export type AccountOrderByWithAggregationInput = {
@@ -331,6 +334,7 @@ export type AccountCreateInput = {
331
334
  agents?: Prisma.AgentCreateNestedManyWithoutAccountInput
332
335
  members?: Prisma.AccountMemberCreateNestedManyWithoutAccountInput
333
336
  invites?: Prisma.AccountInviteCreateNestedManyWithoutAccountInput
337
+ templates?: Prisma.AgentTemplateCreateNestedManyWithoutAccountInput
334
338
  }
335
339
 
336
340
  export type AccountUncheckedCreateInput = {
@@ -346,6 +350,7 @@ export type AccountUncheckedCreateInput = {
346
350
  agents?: Prisma.AgentUncheckedCreateNestedManyWithoutAccountInput
347
351
  members?: Prisma.AccountMemberUncheckedCreateNestedManyWithoutAccountInput
348
352
  invites?: Prisma.AccountInviteUncheckedCreateNestedManyWithoutAccountInput
353
+ templates?: Prisma.AgentTemplateUncheckedCreateNestedManyWithoutAccountInput
349
354
  }
350
355
 
351
356
  export type AccountUpdateInput = {
@@ -361,6 +366,7 @@ export type AccountUpdateInput = {
361
366
  agents?: Prisma.AgentUpdateManyWithoutAccountNestedInput
362
367
  members?: Prisma.AccountMemberUpdateManyWithoutAccountNestedInput
363
368
  invites?: Prisma.AccountInviteUpdateManyWithoutAccountNestedInput
369
+ templates?: Prisma.AgentTemplateUpdateManyWithoutAccountNestedInput
364
370
  }
365
371
 
366
372
  export type AccountUncheckedUpdateInput = {
@@ -376,6 +382,7 @@ export type AccountUncheckedUpdateInput = {
376
382
  agents?: Prisma.AgentUncheckedUpdateManyWithoutAccountNestedInput
377
383
  members?: Prisma.AccountMemberUncheckedUpdateManyWithoutAccountNestedInput
378
384
  invites?: Prisma.AccountInviteUncheckedUpdateManyWithoutAccountNestedInput
385
+ templates?: Prisma.AgentTemplateUncheckedUpdateManyWithoutAccountNestedInput
379
386
  }
380
387
 
381
388
  export type AccountCreateManyInput = {
@@ -484,6 +491,22 @@ export type AccountUpdateOneWithoutAgentsNestedInput = {
484
491
  update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutAgentsInput, Prisma.AccountUpdateWithoutAgentsInput>, Prisma.AccountUncheckedUpdateWithoutAgentsInput>
485
492
  }
486
493
 
494
+ export type AccountCreateNestedOneWithoutTemplatesInput = {
495
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutTemplatesInput, Prisma.AccountUncheckedCreateWithoutTemplatesInput>
496
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutTemplatesInput
497
+ connect?: Prisma.AccountWhereUniqueInput
498
+ }
499
+
500
+ export type AccountUpdateOneWithoutTemplatesNestedInput = {
501
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutTemplatesInput, Prisma.AccountUncheckedCreateWithoutTemplatesInput>
502
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutTemplatesInput
503
+ upsert?: Prisma.AccountUpsertWithoutTemplatesInput
504
+ disconnect?: Prisma.AccountWhereInput | boolean
505
+ delete?: Prisma.AccountWhereInput | boolean
506
+ connect?: Prisma.AccountWhereUniqueInput
507
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutTemplatesInput, Prisma.AccountUpdateWithoutTemplatesInput>, Prisma.AccountUncheckedUpdateWithoutTemplatesInput>
508
+ }
509
+
487
510
  export type AccountCreateNestedOneWithoutMembersInput = {
488
511
  create?: Prisma.XOR<Prisma.AccountCreateWithoutMembersInput, Prisma.AccountUncheckedCreateWithoutMembersInput>
489
512
  connectOrCreate?: Prisma.AccountCreateOrConnectWithoutMembersInput
@@ -524,6 +547,7 @@ export type AccountCreateWithoutAgentsInput = {
524
547
  updatedAt?: Date | string
525
548
  members?: Prisma.AccountMemberCreateNestedManyWithoutAccountInput
526
549
  invites?: Prisma.AccountInviteCreateNestedManyWithoutAccountInput
550
+ templates?: Prisma.AgentTemplateCreateNestedManyWithoutAccountInput
527
551
  }
528
552
 
529
553
  export type AccountUncheckedCreateWithoutAgentsInput = {
@@ -538,6 +562,7 @@ export type AccountUncheckedCreateWithoutAgentsInput = {
538
562
  updatedAt?: Date | string
539
563
  members?: Prisma.AccountMemberUncheckedCreateNestedManyWithoutAccountInput
540
564
  invites?: Prisma.AccountInviteUncheckedCreateNestedManyWithoutAccountInput
565
+ templates?: Prisma.AgentTemplateUncheckedCreateNestedManyWithoutAccountInput
541
566
  }
542
567
 
543
568
  export type AccountCreateOrConnectWithoutAgentsInput = {
@@ -568,6 +593,7 @@ export type AccountUpdateWithoutAgentsInput = {
568
593
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
569
594
  members?: Prisma.AccountMemberUpdateManyWithoutAccountNestedInput
570
595
  invites?: Prisma.AccountInviteUpdateManyWithoutAccountNestedInput
596
+ templates?: Prisma.AgentTemplateUpdateManyWithoutAccountNestedInput
571
597
  }
572
598
 
573
599
  export type AccountUncheckedUpdateWithoutAgentsInput = {
@@ -582,6 +608,83 @@ export type AccountUncheckedUpdateWithoutAgentsInput = {
582
608
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
583
609
  members?: Prisma.AccountMemberUncheckedUpdateManyWithoutAccountNestedInput
584
610
  invites?: Prisma.AccountInviteUncheckedUpdateManyWithoutAccountNestedInput
611
+ templates?: Prisma.AgentTemplateUncheckedUpdateManyWithoutAccountNestedInput
612
+ }
613
+
614
+ export type AccountCreateWithoutTemplatesInput = {
615
+ id?: string
616
+ name: string
617
+ status?: string
618
+ maxAgents?: number
619
+ plan?: string | null
620
+ trialExpiresAt?: Date | string | null
621
+ trialExpiryWarnedAt?: Date | string | null
622
+ createdAt?: Date | string
623
+ updatedAt?: Date | string
624
+ agents?: Prisma.AgentCreateNestedManyWithoutAccountInput
625
+ members?: Prisma.AccountMemberCreateNestedManyWithoutAccountInput
626
+ invites?: Prisma.AccountInviteCreateNestedManyWithoutAccountInput
627
+ }
628
+
629
+ export type AccountUncheckedCreateWithoutTemplatesInput = {
630
+ id?: string
631
+ name: string
632
+ status?: string
633
+ maxAgents?: number
634
+ plan?: string | null
635
+ trialExpiresAt?: Date | string | null
636
+ trialExpiryWarnedAt?: Date | string | null
637
+ createdAt?: Date | string
638
+ updatedAt?: Date | string
639
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutAccountInput
640
+ members?: Prisma.AccountMemberUncheckedCreateNestedManyWithoutAccountInput
641
+ invites?: Prisma.AccountInviteUncheckedCreateNestedManyWithoutAccountInput
642
+ }
643
+
644
+ export type AccountCreateOrConnectWithoutTemplatesInput = {
645
+ where: Prisma.AccountWhereUniqueInput
646
+ create: Prisma.XOR<Prisma.AccountCreateWithoutTemplatesInput, Prisma.AccountUncheckedCreateWithoutTemplatesInput>
647
+ }
648
+
649
+ export type AccountUpsertWithoutTemplatesInput = {
650
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutTemplatesInput, Prisma.AccountUncheckedUpdateWithoutTemplatesInput>
651
+ create: Prisma.XOR<Prisma.AccountCreateWithoutTemplatesInput, Prisma.AccountUncheckedCreateWithoutTemplatesInput>
652
+ where?: Prisma.AccountWhereInput
653
+ }
654
+
655
+ export type AccountUpdateToOneWithWhereWithoutTemplatesInput = {
656
+ where?: Prisma.AccountWhereInput
657
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutTemplatesInput, Prisma.AccountUncheckedUpdateWithoutTemplatesInput>
658
+ }
659
+
660
+ export type AccountUpdateWithoutTemplatesInput = {
661
+ id?: Prisma.StringFieldUpdateOperationsInput | string
662
+ name?: Prisma.StringFieldUpdateOperationsInput | string
663
+ status?: Prisma.StringFieldUpdateOperationsInput | string
664
+ maxAgents?: Prisma.IntFieldUpdateOperationsInput | number
665
+ plan?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
666
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
667
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
668
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
669
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
670
+ agents?: Prisma.AgentUpdateManyWithoutAccountNestedInput
671
+ members?: Prisma.AccountMemberUpdateManyWithoutAccountNestedInput
672
+ invites?: Prisma.AccountInviteUpdateManyWithoutAccountNestedInput
673
+ }
674
+
675
+ export type AccountUncheckedUpdateWithoutTemplatesInput = {
676
+ id?: Prisma.StringFieldUpdateOperationsInput | string
677
+ name?: Prisma.StringFieldUpdateOperationsInput | string
678
+ status?: Prisma.StringFieldUpdateOperationsInput | string
679
+ maxAgents?: Prisma.IntFieldUpdateOperationsInput | number
680
+ plan?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
681
+ trialExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
682
+ trialExpiryWarnedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
683
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
684
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
685
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutAccountNestedInput
686
+ members?: Prisma.AccountMemberUncheckedUpdateManyWithoutAccountNestedInput
687
+ invites?: Prisma.AccountInviteUncheckedUpdateManyWithoutAccountNestedInput
585
688
  }
586
689
 
587
690
  export type AccountCreateWithoutMembersInput = {
@@ -596,6 +699,7 @@ export type AccountCreateWithoutMembersInput = {
596
699
  updatedAt?: Date | string
597
700
  agents?: Prisma.AgentCreateNestedManyWithoutAccountInput
598
701
  invites?: Prisma.AccountInviteCreateNestedManyWithoutAccountInput
702
+ templates?: Prisma.AgentTemplateCreateNestedManyWithoutAccountInput
599
703
  }
600
704
 
601
705
  export type AccountUncheckedCreateWithoutMembersInput = {
@@ -610,6 +714,7 @@ export type AccountUncheckedCreateWithoutMembersInput = {
610
714
  updatedAt?: Date | string
611
715
  agents?: Prisma.AgentUncheckedCreateNestedManyWithoutAccountInput
612
716
  invites?: Prisma.AccountInviteUncheckedCreateNestedManyWithoutAccountInput
717
+ templates?: Prisma.AgentTemplateUncheckedCreateNestedManyWithoutAccountInput
613
718
  }
614
719
 
615
720
  export type AccountCreateOrConnectWithoutMembersInput = {
@@ -640,6 +745,7 @@ export type AccountUpdateWithoutMembersInput = {
640
745
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
641
746
  agents?: Prisma.AgentUpdateManyWithoutAccountNestedInput
642
747
  invites?: Prisma.AccountInviteUpdateManyWithoutAccountNestedInput
748
+ templates?: Prisma.AgentTemplateUpdateManyWithoutAccountNestedInput
643
749
  }
644
750
 
645
751
  export type AccountUncheckedUpdateWithoutMembersInput = {
@@ -654,6 +760,7 @@ export type AccountUncheckedUpdateWithoutMembersInput = {
654
760
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
655
761
  agents?: Prisma.AgentUncheckedUpdateManyWithoutAccountNestedInput
656
762
  invites?: Prisma.AccountInviteUncheckedUpdateManyWithoutAccountNestedInput
763
+ templates?: Prisma.AgentTemplateUncheckedUpdateManyWithoutAccountNestedInput
657
764
  }
658
765
 
659
766
  export type AccountCreateWithoutInvitesInput = {
@@ -668,6 +775,7 @@ export type AccountCreateWithoutInvitesInput = {
668
775
  updatedAt?: Date | string
669
776
  agents?: Prisma.AgentCreateNestedManyWithoutAccountInput
670
777
  members?: Prisma.AccountMemberCreateNestedManyWithoutAccountInput
778
+ templates?: Prisma.AgentTemplateCreateNestedManyWithoutAccountInput
671
779
  }
672
780
 
673
781
  export type AccountUncheckedCreateWithoutInvitesInput = {
@@ -682,6 +790,7 @@ export type AccountUncheckedCreateWithoutInvitesInput = {
682
790
  updatedAt?: Date | string
683
791
  agents?: Prisma.AgentUncheckedCreateNestedManyWithoutAccountInput
684
792
  members?: Prisma.AccountMemberUncheckedCreateNestedManyWithoutAccountInput
793
+ templates?: Prisma.AgentTemplateUncheckedCreateNestedManyWithoutAccountInput
685
794
  }
686
795
 
687
796
  export type AccountCreateOrConnectWithoutInvitesInput = {
@@ -712,6 +821,7 @@ export type AccountUpdateWithoutInvitesInput = {
712
821
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
713
822
  agents?: Prisma.AgentUpdateManyWithoutAccountNestedInput
714
823
  members?: Prisma.AccountMemberUpdateManyWithoutAccountNestedInput
824
+ templates?: Prisma.AgentTemplateUpdateManyWithoutAccountNestedInput
715
825
  }
716
826
 
717
827
  export type AccountUncheckedUpdateWithoutInvitesInput = {
@@ -726,6 +836,7 @@ export type AccountUncheckedUpdateWithoutInvitesInput = {
726
836
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
727
837
  agents?: Prisma.AgentUncheckedUpdateManyWithoutAccountNestedInput
728
838
  members?: Prisma.AccountMemberUncheckedUpdateManyWithoutAccountNestedInput
839
+ templates?: Prisma.AgentTemplateUncheckedUpdateManyWithoutAccountNestedInput
729
840
  }
730
841
 
731
842
 
@@ -737,12 +848,14 @@ export type AccountCountOutputType = {
737
848
  agents: number
738
849
  members: number
739
850
  invites: number
851
+ templates: number
740
852
  }
741
853
 
742
854
  export type AccountCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
743
855
  agents?: boolean | AccountCountOutputTypeCountAgentsArgs
744
856
  members?: boolean | AccountCountOutputTypeCountMembersArgs
745
857
  invites?: boolean | AccountCountOutputTypeCountInvitesArgs
858
+ templates?: boolean | AccountCountOutputTypeCountTemplatesArgs
746
859
  }
747
860
 
748
861
  /**
@@ -776,6 +889,13 @@ export type AccountCountOutputTypeCountInvitesArgs<ExtArgs extends runtime.Types
776
889
  where?: Prisma.AccountInviteWhereInput
777
890
  }
778
891
 
892
+ /**
893
+ * AccountCountOutputType without action
894
+ */
895
+ export type AccountCountOutputTypeCountTemplatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
896
+ where?: Prisma.AgentTemplateWhereInput
897
+ }
898
+
779
899
 
780
900
  export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
781
901
  id?: boolean
@@ -790,6 +910,7 @@ export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
790
910
  agents?: boolean | Prisma.Account$agentsArgs<ExtArgs>
791
911
  members?: boolean | Prisma.Account$membersArgs<ExtArgs>
792
912
  invites?: boolean | Prisma.Account$invitesArgs<ExtArgs>
913
+ templates?: boolean | Prisma.Account$templatesArgs<ExtArgs>
793
914
  _count?: boolean | Prisma.AccountCountOutputTypeDefaultArgs<ExtArgs>
794
915
  }, ExtArgs["result"]["account"]>
795
916
 
@@ -834,6 +955,7 @@ export type AccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
834
955
  agents?: boolean | Prisma.Account$agentsArgs<ExtArgs>
835
956
  members?: boolean | Prisma.Account$membersArgs<ExtArgs>
836
957
  invites?: boolean | Prisma.Account$invitesArgs<ExtArgs>
958
+ templates?: boolean | Prisma.Account$templatesArgs<ExtArgs>
837
959
  _count?: boolean | Prisma.AccountCountOutputTypeDefaultArgs<ExtArgs>
838
960
  }
839
961
  export type AccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
@@ -845,6 +967,7 @@ export type $AccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
845
967
  agents: Prisma.$AgentPayload<ExtArgs>[]
846
968
  members: Prisma.$AccountMemberPayload<ExtArgs>[]
847
969
  invites: Prisma.$AccountInvitePayload<ExtArgs>[]
970
+ templates: Prisma.$AgentTemplatePayload<ExtArgs>[]
848
971
  }
849
972
  scalars: runtime.Types.Extensions.GetPayloadResult<{
850
973
  id: string
@@ -1253,6 +1376,7 @@ export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.
1253
1376
  agents<T extends Prisma.Account$agentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$agentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1254
1377
  members<T extends Prisma.Account$membersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$membersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1255
1378
  invites<T extends Prisma.Account$invitesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$invitesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountInvitePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1379
+ templates<T extends Prisma.Account$templatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$templatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1256
1380
  /**
1257
1381
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1258
1382
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1755,6 +1879,30 @@ export type Account$invitesArgs<ExtArgs extends runtime.Types.Extensions.Interna
1755
1879
  distinct?: Prisma.AccountInviteScalarFieldEnum | Prisma.AccountInviteScalarFieldEnum[]
1756
1880
  }
1757
1881
 
1882
+ /**
1883
+ * Account.templates
1884
+ */
1885
+ export type Account$templatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1886
+ /**
1887
+ * Select specific fields to fetch from the AgentTemplate
1888
+ */
1889
+ select?: Prisma.AgentTemplateSelect<ExtArgs> | null
1890
+ /**
1891
+ * Omit specific fields from the AgentTemplate
1892
+ */
1893
+ omit?: Prisma.AgentTemplateOmit<ExtArgs> | null
1894
+ /**
1895
+ * Choose, which related nodes to fetch as well
1896
+ */
1897
+ include?: Prisma.AgentTemplateInclude<ExtArgs> | null
1898
+ where?: Prisma.AgentTemplateWhereInput
1899
+ orderBy?: Prisma.AgentTemplateOrderByWithRelationInput | Prisma.AgentTemplateOrderByWithRelationInput[]
1900
+ cursor?: Prisma.AgentTemplateWhereUniqueInput
1901
+ take?: number
1902
+ skip?: number
1903
+ distinct?: Prisma.AgentTemplateScalarFieldEnum | Prisma.AgentTemplateScalarFieldEnum[]
1904
+ }
1905
+
1758
1906
  /**
1759
1907
  * Account without action
1760
1908
  */