@inkeep/agents-core 0.0.0-dev-20251220003011 → 0.0.0-dev-20251222083114

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.
package/dist/client.d.ts CHANGED
@@ -2,7 +2,7 @@ import { c as organization, f as ssoProvider, g as verification, i as invitation
2
2
  import { M as UserOrganization, k as User } from "./auth-validation-schemas.js";
3
3
  import { z } from "@hono/zod-openapi";
4
4
  import { Logger, LoggerOptions, TransportSingleOptions } from "pino";
5
- import * as drizzle_orm20 from "drizzle-orm";
5
+ import * as drizzle_orm0 from "drizzle-orm";
6
6
  import * as drizzle_orm_pg_core495 from "drizzle-orm/pg-core";
7
7
  import { PgTable } from "drizzle-orm/pg-core";
8
8
  import * as drizzle_zod15 from "drizzle-zod";
@@ -1378,9 +1378,6 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1378
1378
  id: z.ZodString;
1379
1379
  name: z.ZodString;
1380
1380
  description: z.ZodNullable<z.ZodString>;
1381
- prompt: z.ZodNullable<z.ZodString>;
1382
- createdAt: z.ZodString;
1383
- updatedAt: z.ZodString;
1384
1381
  models: z.ZodNullable<z.ZodType<{
1385
1382
  base?: {
1386
1383
  model?: string | undefined;
@@ -1443,15 +1440,15 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1443
1440
  }, {
1444
1441
  stepCountIs?: number | undefined;
1445
1442
  }>>>;
1443
+ createdAt: z.ZodString;
1444
+ updatedAt: z.ZodString;
1445
+ prompt: z.ZodNullable<z.ZodString>;
1446
1446
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
1447
1447
  }, z.core.$strip>;
1448
1448
  declare const SubAgentApiInsertSchema: z.ZodObject<{
1449
1449
  id: z.ZodString;
1450
1450
  name: z.ZodString;
1451
1451
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1452
- prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
- createdAt: z.ZodOptional<z.ZodString>;
1454
- updatedAt: z.ZodOptional<z.ZodString>;
1455
1452
  models: z.ZodOptional<z.ZodObject<{
1456
1453
  base: z.ZodOptional<z.ZodObject<{
1457
1454
  model: z.ZodOptional<z.ZodString>;
@@ -1475,15 +1472,15 @@ declare const SubAgentApiInsertSchema: z.ZodObject<{
1475
1472
  }, {
1476
1473
  stepCountIs?: number | undefined;
1477
1474
  }>>>>;
1475
+ createdAt: z.ZodOptional<z.ZodString>;
1476
+ updatedAt: z.ZodOptional<z.ZodString>;
1477
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
1478
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
1479
1479
  }, z.core.$strip>;
1480
1480
  declare const SubAgentApiUpdateSchema: z.ZodObject<{
1481
1481
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1482
1482
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1483
1483
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1484
- prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1485
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1486
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1487
1484
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
1488
1485
  base: z.ZodOptional<z.ZodObject<{
1489
1486
  model: z.ZodOptional<z.ZodString>;
@@ -1507,6 +1504,9 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
1507
1504
  }, {
1508
1505
  stepCountIs?: number | undefined;
1509
1506
  }>>>>>>;
1507
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1508
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1509
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1510
1510
  conversationHistoryConfig: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>>;
1511
1511
  }, z.core.$strip>;
1512
1512
  declare const SubAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -1935,9 +1935,9 @@ declare const ExternalSubAgentRelationInsertSchema: z.ZodObject<{
1935
1935
  }>;
1936
1936
  declare const ExternalSubAgentRelationApiInsertSchema: z.ZodObject<{
1937
1937
  id: z.ZodString;
1938
- agentId: z.ZodString;
1939
1938
  createdAt: z.ZodOptional<z.ZodString>;
1940
1939
  updatedAt: z.ZodOptional<z.ZodString>;
1940
+ agentId: z.ZodString;
1941
1941
  sourceSubAgentId: z.ZodString;
1942
1942
  targetSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1943
1943
  relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3136,7 +3136,7 @@ declare const AgentInsertSchema: drizzle_zod15.BuildSchema<"insert", {
3136
3136
  }, {}, {
3137
3137
  length: 256;
3138
3138
  }>;
3139
- }, "tenantId" | "projectId" | "id" | "name" | "description" | "prompt" | "createdAt" | "updatedAt" | "models" | "stopWhen" | "defaultSubAgentId" | "contextConfigId" | "statusUpdates">, undefined>, undefined>;
3139
+ }, "id" | "name" | "description" | "models" | "stopWhen" | "createdAt" | "updatedAt" | "tenantId" | "defaultSubAgentId" | "contextConfigId" | "prompt" | "statusUpdates" | "projectId">, undefined>, undefined>;
3140
3140
  declare const AgentUpdateSchema: z.ZodObject<{
3141
3141
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3142
3142
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -3275,9 +3275,6 @@ declare const AgentApiSelectSchema: z.ZodObject<{
3275
3275
  id: z.ZodString;
3276
3276
  name: z.ZodString;
3277
3277
  description: z.ZodNullable<z.ZodString>;
3278
- prompt: z.ZodNullable<z.ZodString>;
3279
- createdAt: z.ZodString;
3280
- updatedAt: z.ZodString;
3281
3278
  models: z.ZodNullable<z.ZodType<{
3282
3279
  base?: {
3283
3280
  model?: string | undefined;
@@ -3340,8 +3337,11 @@ declare const AgentApiSelectSchema: z.ZodObject<{
3340
3337
  }, {
3341
3338
  transferCountIs?: number | undefined;
3342
3339
  }>>>;
3340
+ createdAt: z.ZodString;
3341
+ updatedAt: z.ZodString;
3343
3342
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
3344
3343
  contextConfigId: z.ZodNullable<z.ZodString>;
3344
+ prompt: z.ZodNullable<z.ZodString>;
3345
3345
  statusUpdates: z.ZodNullable<z.ZodType<{
3346
3346
  enabled?: boolean | undefined;
3347
3347
  numEvents?: number | undefined;
@@ -3403,9 +3403,6 @@ declare const AgentApiSelectSchema: z.ZodObject<{
3403
3403
  declare const AgentApiInsertSchema: z.ZodObject<{
3404
3404
  name: z.ZodString;
3405
3405
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3406
- prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3407
- createdAt: z.ZodOptional<z.ZodString>;
3408
- updatedAt: z.ZodOptional<z.ZodString>;
3409
3406
  models: z.ZodOptional<z.ZodNullable<z.ZodType<{
3410
3407
  base?: {
3411
3408
  model?: string | undefined;
@@ -3468,8 +3465,11 @@ declare const AgentApiInsertSchema: z.ZodObject<{
3468
3465
  }, {
3469
3466
  transferCountIs?: number | undefined;
3470
3467
  }>>>>;
3468
+ createdAt: z.ZodOptional<z.ZodString>;
3469
+ updatedAt: z.ZodOptional<z.ZodString>;
3471
3470
  defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3472
3471
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3472
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3473
3473
  statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
3474
3474
  enabled?: boolean | undefined;
3475
3475
  numEvents?: number | undefined;
@@ -3533,9 +3533,6 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3533
3533
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3534
3534
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3535
3535
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3536
- prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3537
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3538
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3539
3536
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
3540
3537
  base?: {
3541
3538
  model?: string | undefined;
@@ -3598,8 +3595,11 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3598
3595
  }, {
3599
3596
  transferCountIs?: number | undefined;
3600
3597
  }>>>>>>;
3598
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3599
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3601
3600
  defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3602
3601
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3602
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3603
3603
  statusUpdates: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
3604
3604
  enabled?: boolean | undefined;
3605
3605
  numEvents?: number | undefined;
@@ -4067,34 +4067,34 @@ declare const TaskUpdateSchema: z.ZodObject<{
4067
4067
  }>;
4068
4068
  declare const TaskApiSelectSchema: z.ZodObject<{
4069
4069
  id: z.ZodString;
4070
- agentId: z.ZodString;
4071
4070
  createdAt: z.ZodString;
4072
4071
  updatedAt: z.ZodString;
4073
4072
  metadata: z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
4074
- status: z.ZodString;
4073
+ agentId: z.ZodString;
4075
4074
  contextId: z.ZodString;
4075
+ status: z.ZodString;
4076
4076
  subAgentId: z.ZodString;
4077
4077
  }, z.core.$strip>;
4078
4078
  declare const TaskApiInsertSchema: z.ZodObject<{
4079
4079
  id: z.ZodString;
4080
- agentId: z.ZodString;
4081
4080
  createdAt: z.ZodOptional<z.ZodString>;
4082
4081
  updatedAt: z.ZodOptional<z.ZodString>;
4083
4082
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
4084
- status: z.ZodString;
4083
+ agentId: z.ZodString;
4085
4084
  conversationId: z.ZodOptional<z.ZodString>;
4086
4085
  contextId: z.ZodString;
4086
+ status: z.ZodString;
4087
4087
  subAgentId: z.ZodString;
4088
4088
  }, z.core.$strip>;
4089
4089
  declare const TaskApiUpdateSchema: z.ZodObject<{
4090
4090
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4091
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4092
4091
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4093
4092
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4094
4093
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
4095
- status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4094
+ agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4096
4095
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4097
4096
  contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4097
+ status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4098
4098
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4099
4099
  }, z.core.$strip>;
4100
4100
  declare const TaskRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -5435,8 +5435,8 @@ declare const ConversationApiSelectSchema: z.ZodObject<{
5435
5435
  title: z.ZodNullable<z.ZodString>;
5436
5436
  createdAt: z.ZodString;
5437
5437
  updatedAt: z.ZodString;
5438
- userId: z.ZodNullable<z.ZodString>;
5439
5438
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
5439
+ userId: z.ZodNullable<z.ZodString>;
5440
5440
  activeSubAgentId: z.ZodString;
5441
5441
  lastContextResolution: z.ZodNullable<z.ZodString>;
5442
5442
  }, z.core.$strip>;
@@ -5445,9 +5445,9 @@ declare const ConversationApiInsertSchema: z.ZodObject<{
5445
5445
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5446
5446
  createdAt: z.ZodOptional<z.ZodString>;
5447
5447
  updatedAt: z.ZodOptional<z.ZodString>;
5448
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5449
5448
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
5450
5449
  contextConfigId: z.ZodOptional<z.ZodString>;
5450
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5451
5451
  activeSubAgentId: z.ZodString;
5452
5452
  lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5453
5453
  }, z.core.$strip>;
@@ -5456,9 +5456,9 @@ declare const ConversationApiUpdateSchema: z.ZodObject<{
5456
5456
  title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5457
5457
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5458
5458
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5459
- userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5460
5459
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
5461
5460
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5461
+ userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5462
5462
  activeSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5463
5463
  lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5464
5464
  }, z.core.$strip>;
@@ -6312,15 +6312,15 @@ declare const MessageApiSelectSchema: z.ZodObject<{
6312
6312
  createdAt: z.ZodString;
6313
6313
  updatedAt: z.ZodString;
6314
6314
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
6315
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
6316
- role: z.ZodString;
6317
6315
  conversationId: z.ZodString;
6316
+ role: z.ZodString;
6318
6317
  fromSubAgentId: z.ZodNullable<z.ZodString>;
6319
6318
  toSubAgentId: z.ZodNullable<z.ZodString>;
6320
6319
  fromExternalAgentId: z.ZodNullable<z.ZodString>;
6321
6320
  toExternalAgentId: z.ZodNullable<z.ZodString>;
6322
6321
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
6323
6322
  toTeamAgentId: z.ZodNullable<z.ZodString>;
6323
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
6324
6324
  visibility: z.ZodString;
6325
6325
  messageType: z.ZodString;
6326
6326
  taskId: z.ZodNullable<z.ZodString>;
@@ -6333,15 +6333,15 @@ declare const MessageApiInsertSchema: z.ZodObject<{
6333
6333
  createdAt: z.ZodOptional<z.ZodString>;
6334
6334
  updatedAt: z.ZodOptional<z.ZodString>;
6335
6335
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
6336
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
6337
- role: z.ZodString;
6338
6336
  conversationId: z.ZodString;
6337
+ role: z.ZodString;
6339
6338
  fromSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6340
6339
  toSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6341
6340
  fromExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6342
6341
  toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6343
6342
  fromTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6344
6343
  toTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6344
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
6345
6345
  visibility: z.ZodOptional<z.ZodString>;
6346
6346
  messageType: z.ZodOptional<z.ZodString>;
6347
6347
  taskId: z.ZodOptional<z.ZodString>;
@@ -6354,15 +6354,15 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
6354
6354
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6355
6355
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6356
6356
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
6357
- content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
6358
- role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6359
6357
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6358
+ role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6360
6359
  fromSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6361
6360
  toSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6362
6361
  fromExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6363
6362
  toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6364
6363
  fromTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6365
6364
  toTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6365
+ content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
6366
6366
  visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6367
6367
  messageType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6368
6368
  taskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -7331,7 +7331,7 @@ declare const ContextCacheInsertSchema: drizzle_zod15.BuildSchema<"insert", {
7331
7331
  }, {}, {
7332
7332
  length: 256;
7333
7333
  }>;
7334
- }, "tenantId" | "projectId" | "id" | "value" | "createdAt" | "updatedAt" | "contextConfigId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
7334
+ }, "id" | "value" | "createdAt" | "updatedAt" | "tenantId" | "contextConfigId" | "projectId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
7335
7335
  declare const ContextCacheUpdateSchema: z.ZodObject<{
7336
7336
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7337
7337
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -7761,11 +7761,11 @@ declare const DataComponentInsertSchema: z.ZodObject<{
7761
7761
  in: {};
7762
7762
  }>;
7763
7763
  declare const DataComponentBaseSchema: z.ZodObject<{
7764
- tenantId: z.ZodString;
7765
- projectId: z.ZodString;
7766
7764
  id: z.ZodString;
7767
7765
  name: z.ZodString;
7768
7766
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7767
+ tenantId: z.ZodString;
7768
+ projectId: z.ZodString;
7769
7769
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
7770
7770
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
7771
7771
  component: string;
@@ -8402,7 +8402,7 @@ declare const SubAgentDataComponentInsertSchema: drizzle_zod15.BuildSchema<"inse
8402
8402
  }, {}, {
8403
8403
  length: 256;
8404
8404
  }>;
8405
- }, "tenantId" | "projectId" | "id" | "agentId" | "createdAt" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
8405
+ }, "id" | "createdAt" | "tenantId" | "projectId" | "agentId" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
8406
8406
  declare const SubAgentDataComponentUpdateSchema: z.ZodObject<{
8407
8407
  dataComponentId: z.ZodOptional<z.ZodString>;
8408
8408
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -9136,36 +9136,33 @@ declare const ExternalAgentApiSelectSchema: z.ZodObject<{
9136
9136
  id: z.ZodString;
9137
9137
  name: z.ZodString;
9138
9138
  description: z.ZodNullable<z.ZodString>;
9139
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9140
9139
  createdAt: z.ZodString;
9141
9140
  updatedAt: z.ZodString;
9142
9141
  baseUrl: z.ZodString;
9142
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9143
9143
  }, z.core.$strip>;
9144
9144
  declare const ExternalAgentApiInsertSchema: z.ZodObject<{
9145
9145
  id: z.ZodString;
9146
9146
  name: z.ZodString;
9147
9147
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9148
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9149
9148
  createdAt: z.ZodOptional<z.ZodString>;
9150
9149
  updatedAt: z.ZodOptional<z.ZodString>;
9151
9150
  baseUrl: z.ZodString;
9151
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9152
9152
  }, z.core.$strip>;
9153
9153
  declare const ExternalAgentApiUpdateSchema: z.ZodObject<{
9154
9154
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9155
9155
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9156
9156
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9157
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9158
9157
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
9159
9158
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
9160
9159
  baseUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9160
+ credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9161
9161
  }, z.core.$strip>;
9162
9162
  declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9163
9163
  id: z.ZodString;
9164
9164
  name: z.ZodString;
9165
9165
  description: z.ZodNullable<z.ZodString>;
9166
- prompt: z.ZodNullable<z.ZodString>;
9167
- createdAt: z.ZodString;
9168
- updatedAt: z.ZodString;
9169
9166
  models: z.ZodNullable<z.ZodType<{
9170
9167
  base?: {
9171
9168
  model?: string | undefined;
@@ -9228,16 +9225,19 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9228
9225
  }, {
9229
9226
  stepCountIs?: number | undefined;
9230
9227
  }>>>;
9228
+ createdAt: z.ZodString;
9229
+ updatedAt: z.ZodString;
9230
+ prompt: z.ZodNullable<z.ZodString>;
9231
9231
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
9232
9232
  type: z.ZodLiteral<"internal">;
9233
9233
  }, z.core.$strip>, z.ZodObject<{
9234
9234
  id: z.ZodString;
9235
9235
  name: z.ZodString;
9236
9236
  description: z.ZodNullable<z.ZodString>;
9237
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9238
9237
  createdAt: z.ZodString;
9239
9238
  updatedAt: z.ZodString;
9240
9239
  baseUrl: z.ZodString;
9240
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9241
9241
  type: z.ZodLiteral<"external">;
9242
9242
  }, z.core.$strip>], "type">;
9243
9243
  declare const ApiKeySelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -9702,10 +9702,10 @@ declare const ApiKeyInsertSchema: z.ZodObject<{
9702
9702
  }>;
9703
9703
  declare const ApiKeyUpdateSchema: z.ZodObject<{
9704
9704
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9705
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9705
9706
  agentId: z.ZodOptional<z.ZodString>;
9706
9707
  lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9707
9708
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9708
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9709
9709
  }, {
9710
9710
  out: {};
9711
9711
  in: {};
@@ -9713,13 +9713,13 @@ declare const ApiKeyUpdateSchema: z.ZodObject<{
9713
9713
  declare const ApiKeyApiSelectSchema: z.ZodObject<{
9714
9714
  id: z.ZodString;
9715
9715
  name: z.ZodNullable<z.ZodString>;
9716
+ createdAt: z.ZodString;
9717
+ updatedAt: z.ZodString;
9716
9718
  agentId: z.ZodString;
9717
9719
  publicId: z.ZodString;
9718
9720
  keyPrefix: z.ZodString;
9719
9721
  lastUsedAt: z.ZodNullable<z.ZodString>;
9720
9722
  expiresAt: z.ZodNullable<z.ZodString>;
9721
- createdAt: z.ZodString;
9722
- updatedAt: z.ZodString;
9723
9723
  }, {
9724
9724
  out: {};
9725
9725
  in: {};
@@ -9729,13 +9729,13 @@ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
9729
9729
  apiKey: z.ZodObject<{
9730
9730
  id: z.ZodString;
9731
9731
  name: z.ZodNullable<z.ZodString>;
9732
+ createdAt: z.ZodString;
9733
+ updatedAt: z.ZodString;
9732
9734
  agentId: z.ZodString;
9733
9735
  publicId: z.ZodString;
9734
9736
  keyPrefix: z.ZodString;
9735
9737
  lastUsedAt: z.ZodNullable<z.ZodString>;
9736
9738
  expiresAt: z.ZodNullable<z.ZodString>;
9737
- createdAt: z.ZodString;
9738
- updatedAt: z.ZodString;
9739
9739
  }, {
9740
9740
  out: {};
9741
9741
  in: {};
@@ -9745,20 +9745,20 @@ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
9745
9745
  }, z.core.$strip>;
9746
9746
  declare const ApiKeyApiInsertSchema: z.ZodObject<{
9747
9747
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9748
- agentId: z.ZodString;
9749
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9750
9748
  createdAt: z.ZodOptional<z.ZodString>;
9751
9749
  updatedAt: z.ZodOptional<z.ZodString>;
9750
+ agentId: z.ZodString;
9751
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9752
9752
  }, {
9753
9753
  out: {};
9754
9754
  in: {};
9755
9755
  }>;
9756
9756
  declare const ApiKeyApiUpdateSchema: z.ZodObject<{
9757
9757
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9758
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9758
9759
  agentId: z.ZodOptional<z.ZodString>;
9759
9760
  lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9760
9761
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9761
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9762
9762
  }, {
9763
9763
  out: {};
9764
9764
  in: {};
@@ -10255,8 +10255,8 @@ declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
10255
10255
  updatedAt: z.ZodString;
10256
10256
  credentialStoreId: z.ZodString;
10257
10257
  retrievalParams: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10258
- userId: z.ZodNullable<z.ZodString>;
10259
10258
  toolId: z.ZodNullable<z.ZodString>;
10259
+ userId: z.ZodNullable<z.ZodString>;
10260
10260
  createdBy: z.ZodNullable<z.ZodString>;
10261
10261
  type: z.ZodEnum<{
10262
10262
  readonly memory: "memory";
@@ -10812,8 +10812,8 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
10812
10812
  updatedAt: z.ZodOptional<z.ZodString>;
10813
10813
  credentialStoreId: z.ZodString;
10814
10814
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10815
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10816
10815
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10816
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10817
10817
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10818
10818
  type: z.ZodEnum<{
10819
10819
  readonly memory: "memory";
@@ -10828,8 +10828,8 @@ declare const CredentialReferenceApiUpdateSchema: z.ZodObject<{
10828
10828
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10829
10829
  credentialStoreId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10830
10830
  retrievalParams: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
10831
- userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10832
10831
  toolId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10832
+ userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10833
10833
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10834
10834
  type: z.ZodOptional<z.ZodEnum<{
10835
10835
  readonly memory: "memory";
@@ -10946,13 +10946,13 @@ declare const McpToolSchema: z.ZodObject<{
10946
10946
  declare const MCPToolConfigSchema: z.ZodObject<{
10947
10947
  id: z.ZodString;
10948
10948
  name: z.ZodString;
10949
- expiresAt: z.ZodOptional<z.ZodString>;
10950
10949
  createdBy: z.ZodOptional<z.ZodString>;
10951
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10952
10950
  credentialScope: z.ZodOptional<z.ZodString>;
10951
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10953
10952
  imageUrl: z.ZodOptional<z.ZodString>;
10954
10953
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
10955
10954
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10955
+ expiresAt: z.ZodOptional<z.ZodString>;
10956
10956
  availableTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
10957
10957
  name: z.ZodString;
10958
10958
  description: z.ZodOptional<z.ZodString>;
@@ -10985,8 +10985,8 @@ declare const MCPToolConfigSchema: z.ZodObject<{
10985
10985
  updatedAt: z.ZodOptional<z.ZodString>;
10986
10986
  credentialStoreId: z.ZodString;
10987
10987
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10988
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10989
10988
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10989
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10990
10990
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10991
10991
  type: z.ZodEnum<{
10992
10992
  readonly memory: "memory";
@@ -11039,6 +11039,9 @@ declare const ToolApiSelectSchema: z.ZodObject<{
11039
11039
  id: z.ZodString;
11040
11040
  name: z.ZodString;
11041
11041
  description: z.ZodNullable<z.ZodString>;
11042
+ createdAt: z.ZodString;
11043
+ updatedAt: z.ZodString;
11044
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
11042
11045
  config: z.ZodType<{
11043
11046
  type: "mcp";
11044
11047
  mcp: ToolMcpConfig;
@@ -11052,11 +11055,8 @@ declare const ToolApiSelectSchema: z.ZodObject<{
11052
11055
  type: "mcp";
11053
11056
  mcp: ToolMcpConfig;
11054
11057
  }>>;
11055
- credentialReferenceId: z.ZodNullable<z.ZodString>;
11056
- createdAt: z.ZodString;
11057
- updatedAt: z.ZodString;
11058
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
11059
11058
  credentialScope: z.ZodString;
11059
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
11060
11060
  imageUrl: z.ZodNullable<z.ZodString>;
11061
11061
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
11062
11062
  lastError: z.ZodNullable<z.ZodString>;
@@ -11065,6 +11065,9 @@ declare const ToolApiInsertSchema: z.ZodObject<{
11065
11065
  id: z.ZodString;
11066
11066
  name: z.ZodString;
11067
11067
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11068
+ createdAt: z.ZodOptional<z.ZodString>;
11069
+ updatedAt: z.ZodOptional<z.ZodString>;
11070
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11068
11071
  config: z.ZodObject<{
11069
11072
  type: z.ZodLiteral<"mcp">;
11070
11073
  mcp: z.ZodObject<{
@@ -11084,11 +11087,8 @@ declare const ToolApiInsertSchema: z.ZodObject<{
11084
11087
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
11085
11088
  }, z.core.$strip>;
11086
11089
  }, z.core.$strip>;
11087
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11088
- createdAt: z.ZodOptional<z.ZodString>;
11089
- updatedAt: z.ZodOptional<z.ZodString>;
11090
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
11091
11090
  credentialScope: z.ZodOptional<z.ZodString>;
11091
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
11092
11092
  imageUrl: z.ZodOptional<z.ZodString>;
11093
11093
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
11094
11094
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -11097,6 +11097,9 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
11097
11097
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11098
11098
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11099
11099
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11100
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11101
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11102
+ credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11100
11103
  config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
11101
11104
  type: z.ZodLiteral<"mcp">;
11102
11105
  mcp: z.ZodObject<{
@@ -11116,11 +11119,8 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
11116
11119
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
11117
11120
  }, z.core.$strip>;
11118
11121
  }, z.core.$strip>>>;
11119
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11120
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11121
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11122
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>>;
11123
11122
  credentialScope: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11123
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>>;
11124
11124
  imageUrl: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11125
11125
  capabilities: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
11126
11126
  lastError: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
@@ -11490,9 +11490,9 @@ declare const FunctionToolApiSelectSchema: z.ZodObject<{
11490
11490
  id: z.ZodString;
11491
11491
  name: z.ZodString;
11492
11492
  description: z.ZodNullable<z.ZodString>;
11493
- agentId: z.ZodString;
11494
11493
  createdAt: z.ZodString;
11495
11494
  updatedAt: z.ZodString;
11495
+ agentId: z.ZodString;
11496
11496
  functionId: z.ZodString;
11497
11497
  }, z.core.$strip>;
11498
11498
  declare const FunctionToolApiInsertSchema: z.ZodObject<{
@@ -11507,9 +11507,9 @@ declare const FunctionToolApiUpdateSchema: z.ZodObject<{
11507
11507
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11508
11508
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11509
11509
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11510
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11511
11510
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11512
11511
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11512
+ agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11513
11513
  functionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11514
11514
  }, z.core.$strip>;
11515
11515
  declare const FunctionSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -11903,8 +11903,8 @@ declare const FetchDefinitionSchema: z.ZodObject<{
11903
11903
  updatedAt: z.ZodOptional<z.ZodString>;
11904
11904
  credentialStoreId: z.ZodString;
11905
11905
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11906
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11907
11906
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11907
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11908
11908
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11909
11909
  type: z.ZodEnum<{
11910
11910
  readonly memory: "memory";
@@ -11927,23 +11927,23 @@ declare const ContextConfigSelectSchema: z.ZodObject<{
11927
11927
  in: {};
11928
11928
  }>;
11929
11929
  declare const ContextConfigInsertSchema: z.ZodObject<{
11930
+ id: z.ZodOptional<z.ZodString>;
11930
11931
  tenantId: z.ZodString;
11931
11932
  projectId: z.ZodString;
11932
- id: z.ZodOptional<z.ZodString>;
11933
- agentId: z.ZodString;
11934
11933
  headersSchema: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11935
11934
  contextVariables: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11935
+ agentId: z.ZodString;
11936
11936
  }, {
11937
11937
  out: {};
11938
11938
  in: {};
11939
11939
  }>;
11940
11940
  declare const ContextConfigUpdateSchema: z.ZodObject<{
11941
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11941
11942
  tenantId: z.ZodOptional<z.ZodString>;
11942
11943
  projectId: z.ZodOptional<z.ZodString>;
11943
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11944
- agentId: z.ZodOptional<z.ZodString>;
11945
11944
  headersSchema: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11946
11945
  contextVariables: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11946
+ agentId: z.ZodOptional<z.ZodString>;
11947
11947
  }, {
11948
11948
  out: {};
11949
11949
  in: {};
@@ -12427,34 +12427,34 @@ declare const SubAgentToolRelationApiSelectSchema: z.ZodObject<{
12427
12427
  createdAt: z.ZodString;
12428
12428
  updatedAt: z.ZodString;
12429
12429
  toolId: z.ZodString;
12430
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12431
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12432
12430
  subAgentId: z.ZodString;
12431
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12433
12432
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12433
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12434
12434
  }, z.core.$strip>;
12435
12435
  declare const SubAgentToolRelationApiInsertSchema: z.ZodObject<{
12436
12436
  id: z.ZodString;
12437
12437
  createdAt: z.ZodOptional<z.ZodString>;
12438
12438
  updatedAt: z.ZodOptional<z.ZodString>;
12439
12439
  toolId: z.ZodString;
12440
+ subAgentId: z.ZodString;
12440
12441
  headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
12442
+ selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12441
12443
  toolPolicies: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
12442
12444
  needsApproval: z.ZodOptional<z.ZodBoolean>;
12443
12445
  }, z.core.$strip>>>>;
12444
- subAgentId: z.ZodString;
12445
- selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12446
12446
  }, z.core.$strip>;
12447
12447
  declare const SubAgentToolRelationApiUpdateSchema: z.ZodObject<{
12448
12448
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12449
12449
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12450
12450
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12451
12451
  toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12452
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12452
12453
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12454
+ selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
12453
12455
  toolPolicies: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
12454
12456
  needsApproval: z.ZodOptional<z.ZodBoolean>;
12455
12457
  }, z.core.$strip>>>>>>;
12456
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12457
- selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
12458
12458
  }, z.core.$strip>;
12459
12459
  declare const SubAgentExternalAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
12460
12460
  createdAt: drizzle_orm_pg_core495.PgColumn<{
@@ -12825,9 +12825,9 @@ declare const SubAgentExternalAgentRelationApiSelectSchema: z.ZodObject<{
12825
12825
  id: z.ZodString;
12826
12826
  createdAt: z.ZodString;
12827
12827
  updatedAt: z.ZodString;
12828
+ subAgentId: z.ZodString;
12828
12829
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12829
12830
  externalAgentId: z.ZodString;
12830
- subAgentId: z.ZodString;
12831
12831
  }, z.core.$strip>;
12832
12832
  declare const SubAgentExternalAgentRelationApiInsertSchema: z.ZodObject<{
12833
12833
  createdAt: z.ZodOptional<z.ZodString>;
@@ -12839,9 +12839,9 @@ declare const SubAgentExternalAgentRelationApiUpdateSchema: z.ZodObject<{
12839
12839
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12840
12840
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12841
12841
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12842
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12842
12843
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12843
12844
  externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12844
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12845
12845
  }, z.core.$strip>;
12846
12846
  declare const SubAgentTeamAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
12847
12847
  createdAt: drizzle_orm_pg_core495.PgColumn<{
@@ -13212,8 +13212,8 @@ declare const SubAgentTeamAgentRelationApiSelectSchema: z.ZodObject<{
13212
13212
  id: z.ZodString;
13213
13213
  createdAt: z.ZodString;
13214
13214
  updatedAt: z.ZodString;
13215
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13216
13215
  subAgentId: z.ZodString;
13216
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13217
13217
  targetAgentId: z.ZodString;
13218
13218
  }, z.core.$strip>;
13219
13219
  declare const SubAgentTeamAgentRelationApiInsertSchema: z.ZodObject<{
@@ -13226,8 +13226,8 @@ declare const SubAgentTeamAgentRelationApiUpdateSchema: z.ZodObject<{
13226
13226
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13227
13227
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13228
13228
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13229
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
13230
13229
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13230
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
13231
13231
  targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13232
13232
  }, z.core.$strip>;
13233
13233
  declare const LedgerArtifactSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -14571,7 +14571,7 @@ declare const LedgerArtifactInsertSchema: drizzle_zod15.BuildSchema<"insert", {
14571
14571
  }, {}, {
14572
14572
  length: 256;
14573
14573
  }>;
14574
- }, "tenantId" | "projectId" | "id" | "type" | "name" | "description" | "createdAt" | "updatedAt" | "metadata" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
14574
+ }, "id" | "name" | "description" | "type" | "createdAt" | "updatedAt" | "tenantId" | "metadata" | "projectId" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
14575
14575
  declare const LedgerArtifactUpdateSchema: z.ZodObject<{
14576
14576
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14577
14577
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -14597,9 +14597,9 @@ declare const LedgerArtifactUpdateSchema: z.ZodObject<{
14597
14597
  }>;
14598
14598
  declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14599
14599
  id: z.ZodString;
14600
- type: z.ZodString;
14601
14600
  name: z.ZodNullable<z.ZodString>;
14602
14601
  description: z.ZodNullable<z.ZodString>;
14602
+ type: z.ZodString;
14603
14603
  createdAt: z.ZodString;
14604
14604
  updatedAt: z.ZodString;
14605
14605
  metadata: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
@@ -14615,9 +14615,9 @@ declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14615
14615
  }, z.core.$strip>;
14616
14616
  declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14617
14617
  id: z.ZodString;
14618
- type: z.ZodOptional<z.ZodString>;
14619
14618
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14620
14619
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14620
+ type: z.ZodOptional<z.ZodString>;
14621
14621
  createdAt: z.ZodOptional<z.ZodString>;
14622
14622
  updatedAt: z.ZodOptional<z.ZodString>;
14623
14623
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
@@ -14633,9 +14633,9 @@ declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14633
14633
  }, z.core.$strip>;
14634
14634
  declare const LedgerArtifactApiUpdateSchema: z.ZodObject<{
14635
14635
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14636
- type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14637
14636
  name: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14638
14637
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14638
+ type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14639
14639
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14640
14640
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14641
14641
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
@@ -14701,8 +14701,6 @@ declare const FullAgentAgentInsertSchema: z.ZodObject<{
14701
14701
  id: z.ZodString;
14702
14702
  name: z.ZodString;
14703
14703
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14704
- createdAt: z.ZodOptional<z.ZodString>;
14705
- updatedAt: z.ZodOptional<z.ZodString>;
14706
14704
  models: z.ZodOptional<z.ZodObject<{
14707
14705
  base: z.ZodOptional<z.ZodObject<{
14708
14706
  model: z.ZodOptional<z.ZodString>;
@@ -14726,6 +14724,8 @@ declare const FullAgentAgentInsertSchema: z.ZodObject<{
14726
14724
  }, {
14727
14725
  stepCountIs?: number | undefined;
14728
14726
  }>>>>;
14727
+ createdAt: z.ZodOptional<z.ZodString>;
14728
+ updatedAt: z.ZodOptional<z.ZodString>;
14729
14729
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
14730
14730
  type: z.ZodLiteral<"internal">;
14731
14731
  canUse: z.ZodArray<z.ZodObject<{
@@ -14763,8 +14763,6 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14763
14763
  id: z.ZodString;
14764
14764
  name: z.ZodString;
14765
14765
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14766
- createdAt: z.ZodOptional<z.ZodString>;
14767
- updatedAt: z.ZodOptional<z.ZodString>;
14768
14766
  models: z.ZodOptional<z.ZodObject<{
14769
14767
  base: z.ZodOptional<z.ZodObject<{
14770
14768
  model: z.ZodOptional<z.ZodString>;
@@ -14788,6 +14786,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14788
14786
  }, {
14789
14787
  stepCountIs?: number | undefined;
14790
14788
  }>>>>;
14789
+ createdAt: z.ZodOptional<z.ZodString>;
14790
+ updatedAt: z.ZodOptional<z.ZodString>;
14791
14791
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
14792
14792
  type: z.ZodLiteral<"internal">;
14793
14793
  canUse: z.ZodArray<z.ZodObject<{
@@ -14817,6 +14817,9 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14817
14817
  id: z.ZodString;
14818
14818
  name: z.ZodString;
14819
14819
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14820
+ createdAt: z.ZodOptional<z.ZodString>;
14821
+ updatedAt: z.ZodOptional<z.ZodString>;
14822
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14820
14823
  config: z.ZodObject<{
14821
14824
  type: z.ZodLiteral<"mcp">;
14822
14825
  mcp: z.ZodObject<{
@@ -14836,11 +14839,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14836
14839
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14837
14840
  }, z.core.$strip>;
14838
14841
  }, z.core.$strip>;
14839
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14840
- createdAt: z.ZodOptional<z.ZodString>;
14841
- updatedAt: z.ZodOptional<z.ZodString>;
14842
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14843
14842
  credentialScope: z.ZodOptional<z.ZodString>;
14843
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14844
14844
  imageUrl: z.ZodOptional<z.ZodString>;
14845
14845
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
14846
14846
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14849,10 +14849,10 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14849
14849
  id: z.ZodString;
14850
14850
  name: z.ZodString;
14851
14851
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14852
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14853
14852
  createdAt: z.ZodOptional<z.ZodString>;
14854
14853
  updatedAt: z.ZodOptional<z.ZodString>;
14855
14854
  baseUrl: z.ZodString;
14855
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14856
14856
  }, z.core.$strip>>>;
14857
14857
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14858
14858
  id: z.ZodString;
@@ -14974,7 +14974,6 @@ declare const ProjectSelectSchema: z.ZodObject<{
14974
14974
  in: {};
14975
14975
  }>;
14976
14976
  declare const ProjectInsertSchema: z.ZodObject<{
14977
- tenantId: z.ZodString;
14978
14977
  id: z.ZodString;
14979
14978
  name: z.ZodString;
14980
14979
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14996,6 +14995,7 @@ declare const ProjectInsertSchema: z.ZodObject<{
14996
14995
  transferCountIs: z.ZodOptional<z.ZodNumber>;
14997
14996
  stepCountIs: z.ZodOptional<z.ZodNumber>;
14998
14997
  }, z.core.$strip>>;
14998
+ tenantId: z.ZodString;
14999
14999
  }, {
15000
15000
  out: {};
15001
15001
  in: {};
@@ -15029,8 +15029,6 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
15029
15029
  id: z.ZodString;
15030
15030
  name: z.ZodString;
15031
15031
  description: z.ZodNullable<z.ZodString>;
15032
- createdAt: z.ZodString;
15033
- updatedAt: z.ZodString;
15034
15032
  models: z.ZodNullable<z.ZodObject<{
15035
15033
  base: z.ZodObject<{
15036
15034
  model: z.ZodOptional<z.ZodString>;
@@ -15049,6 +15047,8 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
15049
15047
  transferCountIs: z.ZodOptional<z.ZodNumber>;
15050
15048
  stepCountIs: z.ZodOptional<z.ZodNumber>;
15051
15049
  }, z.core.$strip>>;
15050
+ createdAt: z.ZodString;
15051
+ updatedAt: z.ZodString;
15052
15052
  }, {
15053
15053
  out: {};
15054
15054
  in: {};
@@ -15138,8 +15138,6 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15138
15138
  id: z.ZodString;
15139
15139
  name: z.ZodString;
15140
15140
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15141
- createdAt: z.ZodOptional<z.ZodString>;
15142
- updatedAt: z.ZodOptional<z.ZodString>;
15143
15141
  models: z.ZodOptional<z.ZodObject<{
15144
15142
  base: z.ZodOptional<z.ZodObject<{
15145
15143
  model: z.ZodOptional<z.ZodString>;
@@ -15163,6 +15161,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15163
15161
  }, {
15164
15162
  stepCountIs?: number | undefined;
15165
15163
  }>>>>;
15164
+ createdAt: z.ZodOptional<z.ZodString>;
15165
+ updatedAt: z.ZodOptional<z.ZodString>;
15166
15166
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
15167
15167
  type: z.ZodLiteral<"internal">;
15168
15168
  canUse: z.ZodArray<z.ZodObject<{
@@ -15192,6 +15192,9 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15192
15192
  id: z.ZodString;
15193
15193
  name: z.ZodString;
15194
15194
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15195
+ createdAt: z.ZodOptional<z.ZodString>;
15196
+ updatedAt: z.ZodOptional<z.ZodString>;
15197
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15195
15198
  config: z.ZodObject<{
15196
15199
  type: z.ZodLiteral<"mcp">;
15197
15200
  mcp: z.ZodObject<{
@@ -15211,11 +15214,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15211
15214
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
15212
15215
  }, z.core.$strip>;
15213
15216
  }, z.core.$strip>;
15214
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15215
- createdAt: z.ZodOptional<z.ZodString>;
15216
- updatedAt: z.ZodOptional<z.ZodString>;
15217
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
15218
15217
  credentialScope: z.ZodOptional<z.ZodString>;
15218
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
15219
15219
  imageUrl: z.ZodOptional<z.ZodString>;
15220
15220
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
15221
15221
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15224,10 +15224,10 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15224
15224
  id: z.ZodString;
15225
15225
  name: z.ZodString;
15226
15226
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15227
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15228
15227
  createdAt: z.ZodOptional<z.ZodString>;
15229
15228
  updatedAt: z.ZodOptional<z.ZodString>;
15230
15229
  baseUrl: z.ZodString;
15230
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15231
15231
  }, z.core.$strip>>>;
15232
15232
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15233
15233
  id: z.ZodString;
@@ -15293,6 +15293,9 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15293
15293
  id: z.ZodString;
15294
15294
  name: z.ZodString;
15295
15295
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15296
+ createdAt: z.ZodOptional<z.ZodString>;
15297
+ updatedAt: z.ZodOptional<z.ZodString>;
15298
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15296
15299
  config: z.ZodObject<{
15297
15300
  type: z.ZodLiteral<"mcp">;
15298
15301
  mcp: z.ZodObject<{
@@ -15312,11 +15315,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15312
15315
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
15313
15316
  }, z.core.$strip>;
15314
15317
  }, z.core.$strip>;
15315
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15316
- createdAt: z.ZodOptional<z.ZodString>;
15317
- updatedAt: z.ZodOptional<z.ZodString>;
15318
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
15319
15318
  credentialScope: z.ZodOptional<z.ZodString>;
15319
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
15320
15320
  imageUrl: z.ZodOptional<z.ZodString>;
15321
15321
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
15322
15322
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15371,10 +15371,10 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15371
15371
  id: z.ZodString;
15372
15372
  name: z.ZodString;
15373
15373
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15374
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15375
15374
  createdAt: z.ZodOptional<z.ZodString>;
15376
15375
  updatedAt: z.ZodOptional<z.ZodString>;
15377
15376
  baseUrl: z.ZodString;
15377
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15378
15378
  }, z.core.$strip>>>;
15379
15379
  statusUpdates: z.ZodOptional<z.ZodObject<{
15380
15380
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -15398,8 +15398,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15398
15398
  updatedAt: z.ZodOptional<z.ZodString>;
15399
15399
  credentialStoreId: z.ZodString;
15400
15400
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15401
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15402
15401
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15402
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15403
15403
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15404
15404
  type: z.ZodEnum<{
15405
15405
  readonly memory: "memory";
@@ -15418,8 +15418,6 @@ declare const ProjectResponse: z.ZodObject<{
15418
15418
  id: z.ZodString;
15419
15419
  name: z.ZodString;
15420
15420
  description: z.ZodNullable<z.ZodString>;
15421
- createdAt: z.ZodString;
15422
- updatedAt: z.ZodString;
15423
15421
  models: z.ZodNullable<z.ZodObject<{
15424
15422
  base: z.ZodObject<{
15425
15423
  model: z.ZodOptional<z.ZodString>;
@@ -15438,6 +15436,8 @@ declare const ProjectResponse: z.ZodObject<{
15438
15436
  transferCountIs: z.ZodOptional<z.ZodNumber>;
15439
15437
  stepCountIs: z.ZodOptional<z.ZodNumber>;
15440
15438
  }, z.core.$strip>>;
15439
+ createdAt: z.ZodString;
15440
+ updatedAt: z.ZodString;
15441
15441
  }, {
15442
15442
  out: {};
15443
15443
  in: {};
@@ -15448,9 +15448,6 @@ declare const SubAgentResponse: z.ZodObject<{
15448
15448
  id: z.ZodString;
15449
15449
  name: z.ZodString;
15450
15450
  description: z.ZodNullable<z.ZodString>;
15451
- prompt: z.ZodNullable<z.ZodString>;
15452
- createdAt: z.ZodString;
15453
- updatedAt: z.ZodString;
15454
15451
  models: z.ZodNullable<z.ZodType<{
15455
15452
  base?: {
15456
15453
  model?: string | undefined;
@@ -15513,6 +15510,9 @@ declare const SubAgentResponse: z.ZodObject<{
15513
15510
  }, {
15514
15511
  stepCountIs?: number | undefined;
15515
15512
  }>>>;
15513
+ createdAt: z.ZodString;
15514
+ updatedAt: z.ZodString;
15515
+ prompt: z.ZodNullable<z.ZodString>;
15516
15516
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
15517
15517
  }, z.core.$strip>;
15518
15518
  }, z.core.$strip>;
@@ -15521,9 +15521,6 @@ declare const AgentResponse: z.ZodObject<{
15521
15521
  id: z.ZodString;
15522
15522
  name: z.ZodString;
15523
15523
  description: z.ZodNullable<z.ZodString>;
15524
- prompt: z.ZodNullable<z.ZodString>;
15525
- createdAt: z.ZodString;
15526
- updatedAt: z.ZodString;
15527
15524
  models: z.ZodNullable<z.ZodType<{
15528
15525
  base?: {
15529
15526
  model?: string | undefined;
@@ -15586,8 +15583,11 @@ declare const AgentResponse: z.ZodObject<{
15586
15583
  }, {
15587
15584
  transferCountIs?: number | undefined;
15588
15585
  }>>>;
15586
+ createdAt: z.ZodString;
15587
+ updatedAt: z.ZodString;
15589
15588
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
15590
15589
  contextConfigId: z.ZodNullable<z.ZodString>;
15590
+ prompt: z.ZodNullable<z.ZodString>;
15591
15591
  statusUpdates: z.ZodNullable<z.ZodType<{
15592
15592
  enabled?: boolean | undefined;
15593
15593
  numEvents?: number | undefined;
@@ -15652,6 +15652,9 @@ declare const ToolResponse: z.ZodObject<{
15652
15652
  id: z.ZodString;
15653
15653
  name: z.ZodString;
15654
15654
  description: z.ZodNullable<z.ZodString>;
15655
+ createdAt: z.ZodString;
15656
+ updatedAt: z.ZodString;
15657
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
15655
15658
  config: z.ZodType<{
15656
15659
  type: "mcp";
15657
15660
  mcp: ToolMcpConfig;
@@ -15665,11 +15668,8 @@ declare const ToolResponse: z.ZodObject<{
15665
15668
  type: "mcp";
15666
15669
  mcp: ToolMcpConfig;
15667
15670
  }>>;
15668
- credentialReferenceId: z.ZodNullable<z.ZodString>;
15669
- createdAt: z.ZodString;
15670
- updatedAt: z.ZodString;
15671
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15672
15671
  credentialScope: z.ZodString;
15672
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15673
15673
  imageUrl: z.ZodNullable<z.ZodString>;
15674
15674
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
15675
15675
  lastError: z.ZodNullable<z.ZodString>;
@@ -15680,10 +15680,10 @@ declare const ExternalAgentResponse: z.ZodObject<{
15680
15680
  id: z.ZodString;
15681
15681
  name: z.ZodString;
15682
15682
  description: z.ZodNullable<z.ZodString>;
15683
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15684
15683
  createdAt: z.ZodString;
15685
15684
  updatedAt: z.ZodString;
15686
15685
  baseUrl: z.ZodString;
15686
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15687
15687
  }, z.core.$strip>;
15688
15688
  }, z.core.$strip>;
15689
15689
  declare const ContextConfigResponse: z.ZodObject<{
@@ -15699,13 +15699,13 @@ declare const ApiKeyResponse: z.ZodObject<{
15699
15699
  data: z.ZodObject<{
15700
15700
  id: z.ZodString;
15701
15701
  name: z.ZodNullable<z.ZodString>;
15702
+ createdAt: z.ZodString;
15703
+ updatedAt: z.ZodString;
15702
15704
  agentId: z.ZodString;
15703
15705
  publicId: z.ZodString;
15704
15706
  keyPrefix: z.ZodString;
15705
15707
  lastUsedAt: z.ZodNullable<z.ZodString>;
15706
15708
  expiresAt: z.ZodNullable<z.ZodString>;
15707
- createdAt: z.ZodString;
15708
- updatedAt: z.ZodString;
15709
15709
  }, {
15710
15710
  out: {};
15711
15711
  in: {};
@@ -15719,8 +15719,8 @@ declare const CredentialReferenceResponse: z.ZodObject<{
15719
15719
  updatedAt: z.ZodString;
15720
15720
  credentialStoreId: z.ZodString;
15721
15721
  retrievalParams: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
15722
- userId: z.ZodNullable<z.ZodString>;
15723
15722
  toolId: z.ZodNullable<z.ZodString>;
15723
+ userId: z.ZodNullable<z.ZodString>;
15724
15724
  createdBy: z.ZodNullable<z.ZodString>;
15725
15725
  type: z.ZodEnum<{
15726
15726
  readonly memory: "memory";
@@ -16285,9 +16285,9 @@ declare const FunctionToolResponse: z.ZodObject<{
16285
16285
  id: z.ZodString;
16286
16286
  name: z.ZodString;
16287
16287
  description: z.ZodNullable<z.ZodString>;
16288
- agentId: z.ZodString;
16289
16288
  createdAt: z.ZodString;
16290
16289
  updatedAt: z.ZodString;
16290
+ agentId: z.ZodString;
16291
16291
  functionId: z.ZodString;
16292
16292
  }, z.core.$strip>;
16293
16293
  }, z.core.$strip>;
@@ -16340,10 +16340,10 @@ declare const SubAgentToolRelationResponse: z.ZodObject<{
16340
16340
  createdAt: z.ZodString;
16341
16341
  updatedAt: z.ZodString;
16342
16342
  toolId: z.ZodString;
16343
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16344
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16345
16343
  subAgentId: z.ZodString;
16344
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16346
16345
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16346
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16347
16347
  }, z.core.$strip>;
16348
16348
  }, z.core.$strip>;
16349
16349
  declare const ConversationResponse: z.ZodObject<{
@@ -16352,8 +16352,8 @@ declare const ConversationResponse: z.ZodObject<{
16352
16352
  title: z.ZodNullable<z.ZodString>;
16353
16353
  createdAt: z.ZodString;
16354
16354
  updatedAt: z.ZodString;
16355
- userId: z.ZodNullable<z.ZodString>;
16356
16355
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
16356
+ userId: z.ZodNullable<z.ZodString>;
16357
16357
  activeSubAgentId: z.ZodString;
16358
16358
  lastContextResolution: z.ZodNullable<z.ZodString>;
16359
16359
  }, z.core.$strip>;
@@ -16364,15 +16364,15 @@ declare const MessageResponse: z.ZodObject<{
16364
16364
  createdAt: z.ZodString;
16365
16365
  updatedAt: z.ZodString;
16366
16366
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
16367
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
16368
- role: z.ZodString;
16369
16367
  conversationId: z.ZodString;
16368
+ role: z.ZodString;
16370
16369
  fromSubAgentId: z.ZodNullable<z.ZodString>;
16371
16370
  toSubAgentId: z.ZodNullable<z.ZodString>;
16372
16371
  fromExternalAgentId: z.ZodNullable<z.ZodString>;
16373
16372
  toExternalAgentId: z.ZodNullable<z.ZodString>;
16374
16373
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
16375
16374
  toTeamAgentId: z.ZodNullable<z.ZodString>;
16375
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
16376
16376
  visibility: z.ZodString;
16377
16377
  messageType: z.ZodString;
16378
16378
  taskId: z.ZodNullable<z.ZodString>;
@@ -16386,8 +16386,6 @@ declare const ProjectListResponse: z.ZodObject<{
16386
16386
  id: z.ZodString;
16387
16387
  name: z.ZodString;
16388
16388
  description: z.ZodNullable<z.ZodString>;
16389
- createdAt: z.ZodString;
16390
- updatedAt: z.ZodString;
16391
16389
  models: z.ZodNullable<z.ZodObject<{
16392
16390
  base: z.ZodObject<{
16393
16391
  model: z.ZodOptional<z.ZodString>;
@@ -16406,6 +16404,8 @@ declare const ProjectListResponse: z.ZodObject<{
16406
16404
  transferCountIs: z.ZodOptional<z.ZodNumber>;
16407
16405
  stepCountIs: z.ZodOptional<z.ZodNumber>;
16408
16406
  }, z.core.$strip>>;
16407
+ createdAt: z.ZodString;
16408
+ updatedAt: z.ZodString;
16409
16409
  }, {
16410
16410
  out: {};
16411
16411
  in: {};
@@ -16422,9 +16422,6 @@ declare const SubAgentListResponse: z.ZodObject<{
16422
16422
  id: z.ZodString;
16423
16423
  name: z.ZodString;
16424
16424
  description: z.ZodNullable<z.ZodString>;
16425
- prompt: z.ZodNullable<z.ZodString>;
16426
- createdAt: z.ZodString;
16427
- updatedAt: z.ZodString;
16428
16425
  models: z.ZodNullable<z.ZodType<{
16429
16426
  base?: {
16430
16427
  model?: string | undefined;
@@ -16487,6 +16484,9 @@ declare const SubAgentListResponse: z.ZodObject<{
16487
16484
  }, {
16488
16485
  stepCountIs?: number | undefined;
16489
16486
  }>>>;
16487
+ createdAt: z.ZodString;
16488
+ updatedAt: z.ZodString;
16489
+ prompt: z.ZodNullable<z.ZodString>;
16490
16490
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
16491
16491
  }, z.core.$strip>>;
16492
16492
  pagination: z.ZodObject<{
@@ -16501,9 +16501,6 @@ declare const AgentListResponse: z.ZodObject<{
16501
16501
  id: z.ZodString;
16502
16502
  name: z.ZodString;
16503
16503
  description: z.ZodNullable<z.ZodString>;
16504
- prompt: z.ZodNullable<z.ZodString>;
16505
- createdAt: z.ZodString;
16506
- updatedAt: z.ZodString;
16507
16504
  models: z.ZodNullable<z.ZodType<{
16508
16505
  base?: {
16509
16506
  model?: string | undefined;
@@ -16566,8 +16563,11 @@ declare const AgentListResponse: z.ZodObject<{
16566
16563
  }, {
16567
16564
  transferCountIs?: number | undefined;
16568
16565
  }>>>;
16566
+ createdAt: z.ZodString;
16567
+ updatedAt: z.ZodString;
16569
16568
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
16570
16569
  contextConfigId: z.ZodNullable<z.ZodString>;
16570
+ prompt: z.ZodNullable<z.ZodString>;
16571
16571
  statusUpdates: z.ZodNullable<z.ZodType<{
16572
16572
  enabled?: boolean | undefined;
16573
16573
  numEvents?: number | undefined;
@@ -16638,6 +16638,9 @@ declare const ToolListResponse: z.ZodObject<{
16638
16638
  id: z.ZodString;
16639
16639
  name: z.ZodString;
16640
16640
  description: z.ZodNullable<z.ZodString>;
16641
+ createdAt: z.ZodString;
16642
+ updatedAt: z.ZodString;
16643
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
16641
16644
  config: z.ZodType<{
16642
16645
  type: "mcp";
16643
16646
  mcp: ToolMcpConfig;
@@ -16651,11 +16654,8 @@ declare const ToolListResponse: z.ZodObject<{
16651
16654
  type: "mcp";
16652
16655
  mcp: ToolMcpConfig;
16653
16656
  }>>;
16654
- credentialReferenceId: z.ZodNullable<z.ZodString>;
16655
- createdAt: z.ZodString;
16656
- updatedAt: z.ZodString;
16657
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
16658
16657
  credentialScope: z.ZodString;
16658
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
16659
16659
  imageUrl: z.ZodNullable<z.ZodString>;
16660
16660
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
16661
16661
  lastError: z.ZodNullable<z.ZodString>;
@@ -16672,10 +16672,10 @@ declare const ExternalAgentListResponse: z.ZodObject<{
16672
16672
  id: z.ZodString;
16673
16673
  name: z.ZodString;
16674
16674
  description: z.ZodNullable<z.ZodString>;
16675
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16676
16675
  createdAt: z.ZodString;
16677
16676
  updatedAt: z.ZodString;
16678
16677
  baseUrl: z.ZodString;
16678
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16679
16679
  }, z.core.$strip>>;
16680
16680
  pagination: z.ZodObject<{
16681
16681
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -16703,13 +16703,13 @@ declare const ApiKeyListResponse: z.ZodObject<{
16703
16703
  data: z.ZodArray<z.ZodObject<{
16704
16704
  id: z.ZodString;
16705
16705
  name: z.ZodNullable<z.ZodString>;
16706
+ createdAt: z.ZodString;
16707
+ updatedAt: z.ZodString;
16706
16708
  agentId: z.ZodString;
16707
16709
  publicId: z.ZodString;
16708
16710
  keyPrefix: z.ZodString;
16709
16711
  lastUsedAt: z.ZodNullable<z.ZodString>;
16710
16712
  expiresAt: z.ZodNullable<z.ZodString>;
16711
- createdAt: z.ZodString;
16712
- updatedAt: z.ZodString;
16713
16713
  }, {
16714
16714
  out: {};
16715
16715
  in: {};
@@ -16729,8 +16729,8 @@ declare const CredentialReferenceListResponse: z.ZodObject<{
16729
16729
  updatedAt: z.ZodString;
16730
16730
  credentialStoreId: z.ZodString;
16731
16731
  retrievalParams: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
16732
- userId: z.ZodNullable<z.ZodString>;
16733
16732
  toolId: z.ZodNullable<z.ZodString>;
16733
+ userId: z.ZodNullable<z.ZodString>;
16734
16734
  createdBy: z.ZodNullable<z.ZodString>;
16735
16735
  type: z.ZodEnum<{
16736
16736
  readonly memory: "memory";
@@ -17307,9 +17307,9 @@ declare const FunctionToolListResponse: z.ZodObject<{
17307
17307
  id: z.ZodString;
17308
17308
  name: z.ZodString;
17309
17309
  description: z.ZodNullable<z.ZodString>;
17310
- agentId: z.ZodString;
17311
17310
  createdAt: z.ZodString;
17312
17311
  updatedAt: z.ZodString;
17312
+ agentId: z.ZodString;
17313
17313
  functionId: z.ZodString;
17314
17314
  }, z.core.$strip>>;
17315
17315
  pagination: z.ZodObject<{
@@ -17386,10 +17386,10 @@ declare const SubAgentToolRelationListResponse: z.ZodObject<{
17386
17386
  createdAt: z.ZodString;
17387
17387
  updatedAt: z.ZodString;
17388
17388
  toolId: z.ZodString;
17389
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17390
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17391
17389
  subAgentId: z.ZodString;
17390
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17392
17391
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17392
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17393
17393
  }, z.core.$strip>>;
17394
17394
  pagination: z.ZodObject<{
17395
17395
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -17404,8 +17404,8 @@ declare const ConversationListResponse: z.ZodObject<{
17404
17404
  title: z.ZodNullable<z.ZodString>;
17405
17405
  createdAt: z.ZodString;
17406
17406
  updatedAt: z.ZodString;
17407
- userId: z.ZodNullable<z.ZodString>;
17408
17407
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
17408
+ userId: z.ZodNullable<z.ZodString>;
17409
17409
  activeSubAgentId: z.ZodString;
17410
17410
  lastContextResolution: z.ZodNullable<z.ZodString>;
17411
17411
  }, z.core.$strip>>;
@@ -17422,15 +17422,15 @@ declare const MessageListResponse: z.ZodObject<{
17422
17422
  createdAt: z.ZodString;
17423
17423
  updatedAt: z.ZodString;
17424
17424
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
17425
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
17426
- role: z.ZodString;
17427
17425
  conversationId: z.ZodString;
17426
+ role: z.ZodString;
17428
17427
  fromSubAgentId: z.ZodNullable<z.ZodString>;
17429
17428
  toSubAgentId: z.ZodNullable<z.ZodString>;
17430
17429
  fromExternalAgentId: z.ZodNullable<z.ZodString>;
17431
17430
  toExternalAgentId: z.ZodNullable<z.ZodString>;
17432
17431
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
17433
17432
  toTeamAgentId: z.ZodNullable<z.ZodString>;
17433
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
17434
17434
  visibility: z.ZodString;
17435
17435
  messageType: z.ZodString;
17436
17436
  taskId: z.ZodNullable<z.ZodString>;
@@ -17524,8 +17524,6 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17524
17524
  id: z.ZodString;
17525
17525
  name: z.ZodString;
17526
17526
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17527
- createdAt: z.ZodOptional<z.ZodString>;
17528
- updatedAt: z.ZodOptional<z.ZodString>;
17529
17527
  models: z.ZodOptional<z.ZodObject<{
17530
17528
  base: z.ZodOptional<z.ZodObject<{
17531
17529
  model: z.ZodOptional<z.ZodString>;
@@ -17549,6 +17547,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17549
17547
  }, {
17550
17548
  stepCountIs?: number | undefined;
17551
17549
  }>>>>;
17550
+ createdAt: z.ZodOptional<z.ZodString>;
17551
+ updatedAt: z.ZodOptional<z.ZodString>;
17552
17552
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
17553
17553
  type: z.ZodLiteral<"internal">;
17554
17554
  canUse: z.ZodArray<z.ZodObject<{
@@ -17578,6 +17578,9 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17578
17578
  id: z.ZodString;
17579
17579
  name: z.ZodString;
17580
17580
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17581
+ createdAt: z.ZodOptional<z.ZodString>;
17582
+ updatedAt: z.ZodOptional<z.ZodString>;
17583
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17581
17584
  config: z.ZodObject<{
17582
17585
  type: z.ZodLiteral<"mcp">;
17583
17586
  mcp: z.ZodObject<{
@@ -17597,11 +17600,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17597
17600
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17598
17601
  }, z.core.$strip>;
17599
17602
  }, z.core.$strip>;
17600
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17601
- createdAt: z.ZodOptional<z.ZodString>;
17602
- updatedAt: z.ZodOptional<z.ZodString>;
17603
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17604
17603
  credentialScope: z.ZodOptional<z.ZodString>;
17604
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17605
17605
  imageUrl: z.ZodOptional<z.ZodString>;
17606
17606
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17607
17607
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17610,10 +17610,10 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17610
17610
  id: z.ZodString;
17611
17611
  name: z.ZodString;
17612
17612
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17613
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17614
17613
  createdAt: z.ZodOptional<z.ZodString>;
17615
17614
  updatedAt: z.ZodOptional<z.ZodString>;
17616
17615
  baseUrl: z.ZodString;
17616
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17617
17617
  }, z.core.$strip>>>;
17618
17618
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17619
17619
  id: z.ZodString;
@@ -17679,6 +17679,9 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17679
17679
  id: z.ZodString;
17680
17680
  name: z.ZodString;
17681
17681
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17682
+ createdAt: z.ZodOptional<z.ZodString>;
17683
+ updatedAt: z.ZodOptional<z.ZodString>;
17684
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17682
17685
  config: z.ZodObject<{
17683
17686
  type: z.ZodLiteral<"mcp">;
17684
17687
  mcp: z.ZodObject<{
@@ -17698,11 +17701,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17698
17701
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17699
17702
  }, z.core.$strip>;
17700
17703
  }, z.core.$strip>;
17701
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17702
- createdAt: z.ZodOptional<z.ZodString>;
17703
- updatedAt: z.ZodOptional<z.ZodString>;
17704
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17705
17704
  credentialScope: z.ZodOptional<z.ZodString>;
17705
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17706
17706
  imageUrl: z.ZodOptional<z.ZodString>;
17707
17707
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17708
17708
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17757,10 +17757,10 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17757
17757
  id: z.ZodString;
17758
17758
  name: z.ZodString;
17759
17759
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17760
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17761
17760
  createdAt: z.ZodOptional<z.ZodString>;
17762
17761
  updatedAt: z.ZodOptional<z.ZodString>;
17763
17762
  baseUrl: z.ZodString;
17763
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17764
17764
  }, z.core.$strip>>>;
17765
17765
  statusUpdates: z.ZodOptional<z.ZodObject<{
17766
17766
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -17784,8 +17784,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17784
17784
  updatedAt: z.ZodOptional<z.ZodString>;
17785
17785
  credentialStoreId: z.ZodString;
17786
17786
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17787
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17788
17787
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17788
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17789
17789
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17790
17790
  type: z.ZodEnum<{
17791
17791
  readonly memory: "memory";
@@ -17813,8 +17813,6 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17813
17813
  id: z.ZodString;
17814
17814
  name: z.ZodString;
17815
17815
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17816
- createdAt: z.ZodOptional<z.ZodString>;
17817
- updatedAt: z.ZodOptional<z.ZodString>;
17818
17816
  models: z.ZodOptional<z.ZodObject<{
17819
17817
  base: z.ZodOptional<z.ZodObject<{
17820
17818
  model: z.ZodOptional<z.ZodString>;
@@ -17838,6 +17836,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17838
17836
  }, {
17839
17837
  stepCountIs?: number | undefined;
17840
17838
  }>>>>;
17839
+ createdAt: z.ZodOptional<z.ZodString>;
17840
+ updatedAt: z.ZodOptional<z.ZodString>;
17841
17841
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
17842
17842
  type: z.ZodLiteral<"internal">;
17843
17843
  canUse: z.ZodArray<z.ZodObject<{
@@ -17867,6 +17867,9 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17867
17867
  id: z.ZodString;
17868
17868
  name: z.ZodString;
17869
17869
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17870
+ createdAt: z.ZodOptional<z.ZodString>;
17871
+ updatedAt: z.ZodOptional<z.ZodString>;
17872
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17870
17873
  config: z.ZodObject<{
17871
17874
  type: z.ZodLiteral<"mcp">;
17872
17875
  mcp: z.ZodObject<{
@@ -17886,11 +17889,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17886
17889
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17887
17890
  }, z.core.$strip>;
17888
17891
  }, z.core.$strip>;
17889
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17890
- createdAt: z.ZodOptional<z.ZodString>;
17891
- updatedAt: z.ZodOptional<z.ZodString>;
17892
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17893
17892
  credentialScope: z.ZodOptional<z.ZodString>;
17893
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17894
17894
  imageUrl: z.ZodOptional<z.ZodString>;
17895
17895
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17896
17896
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17899,10 +17899,10 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17899
17899
  id: z.ZodString;
17900
17900
  name: z.ZodString;
17901
17901
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17902
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17903
17902
  createdAt: z.ZodOptional<z.ZodString>;
17904
17903
  updatedAt: z.ZodOptional<z.ZodString>;
17905
17904
  baseUrl: z.ZodString;
17905
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17906
17906
  }, z.core.$strip>>>;
17907
17907
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17908
17908
  id: z.ZodString;
@@ -18103,8 +18103,8 @@ declare const SubAgentTeamAgentRelationResponse: z.ZodObject<{
18103
18103
  id: z.ZodString;
18104
18104
  createdAt: z.ZodString;
18105
18105
  updatedAt: z.ZodString;
18106
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18107
18106
  subAgentId: z.ZodString;
18107
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18108
18108
  targetAgentId: z.ZodString;
18109
18109
  }, z.core.$strip>;
18110
18110
  }, z.core.$strip>;
@@ -18113,8 +18113,8 @@ declare const SubAgentTeamAgentRelationListResponse: z.ZodObject<{
18113
18113
  id: z.ZodString;
18114
18114
  createdAt: z.ZodString;
18115
18115
  updatedAt: z.ZodString;
18116
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18117
18116
  subAgentId: z.ZodString;
18117
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18118
18118
  targetAgentId: z.ZodString;
18119
18119
  }, z.core.$strip>>;
18120
18120
  pagination: z.ZodObject<{
@@ -18129,9 +18129,9 @@ declare const SubAgentExternalAgentRelationResponse: z.ZodObject<{
18129
18129
  id: z.ZodString;
18130
18130
  createdAt: z.ZodString;
18131
18131
  updatedAt: z.ZodString;
18132
+ subAgentId: z.ZodString;
18132
18133
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18133
18134
  externalAgentId: z.ZodString;
18134
- subAgentId: z.ZodString;
18135
18135
  }, z.core.$strip>;
18136
18136
  }, z.core.$strip>;
18137
18137
  declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
@@ -18139,9 +18139,9 @@ declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
18139
18139
  id: z.ZodString;
18140
18140
  createdAt: z.ZodString;
18141
18141
  updatedAt: z.ZodString;
18142
+ subAgentId: z.ZodString;
18142
18143
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18143
18144
  externalAgentId: z.ZodString;
18144
- subAgentId: z.ZodString;
18145
18145
  }, z.core.$strip>>;
18146
18146
  pagination: z.ZodObject<{
18147
18147
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -19454,14 +19454,9 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
19454
19454
  declare const getAgentById: (db: DatabaseClient) => (params: {
19455
19455
  scopes: AgentScopeConfig;
19456
19456
  }) => Promise<{
19457
- tenantId: string;
19458
- projectId: string;
19459
19457
  id: string;
19460
19458
  name: string;
19461
19459
  description: string | null;
19462
- prompt: string | null;
19463
- createdAt: string;
19464
- updatedAt: string;
19465
19460
  models: {
19466
19461
  base?: {
19467
19462
  model?: string | undefined;
@@ -19479,8 +19474,12 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19479
19474
  stopWhen: {
19480
19475
  transferCountIs?: number | undefined;
19481
19476
  } | null;
19477
+ createdAt: string;
19478
+ updatedAt: string;
19479
+ tenantId: string;
19482
19480
  defaultSubAgentId: string | null;
19483
19481
  contextConfigId: string | null;
19482
+ prompt: string | null;
19484
19483
  statusUpdates: {
19485
19484
  enabled?: boolean | undefined;
19486
19485
  numEvents?: number | undefined;
@@ -19496,18 +19495,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19496
19495
  } | undefined;
19497
19496
  }[] | undefined;
19498
19497
  } | null;
19498
+ projectId: string;
19499
19499
  } | null>;
19500
19500
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19501
19501
  scopes: AgentScopeConfig;
19502
19502
  }) => Promise<{
19503
- tenantId: string;
19504
- projectId: string;
19505
19503
  id: string;
19506
19504
  name: string;
19507
19505
  description: string | null;
19508
- prompt: string | null;
19509
- createdAt: string;
19510
- updatedAt: string;
19511
19506
  models: {
19512
19507
  base?: {
19513
19508
  model?: string | undefined;
@@ -19525,8 +19520,12 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19525
19520
  stopWhen: {
19526
19521
  transferCountIs?: number | undefined;
19527
19522
  } | null;
19523
+ createdAt: string;
19524
+ updatedAt: string;
19525
+ tenantId: string;
19528
19526
  defaultSubAgentId: string | null;
19529
19527
  contextConfigId: string | null;
19528
+ prompt: string | null;
19530
19529
  statusUpdates: {
19531
19530
  enabled?: boolean | undefined;
19532
19531
  numEvents?: number | undefined;
@@ -19542,16 +19541,11 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19542
19541
  } | undefined;
19543
19542
  }[] | undefined;
19544
19543
  } | null;
19544
+ projectId: string;
19545
19545
  defaultSubAgent: {
19546
- tenantId: string;
19547
- projectId: string;
19548
19546
  id: string;
19549
19547
  name: string;
19550
19548
  description: string | null;
19551
- prompt: string | null;
19552
- agentId: string;
19553
- createdAt: string;
19554
- updatedAt: string;
19555
19549
  models: {
19556
19550
  base?: {
19557
19551
  model?: string | undefined;
@@ -19569,20 +19563,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19569
19563
  stopWhen: {
19570
19564
  stepCountIs?: number | undefined;
19571
19565
  } | null;
19566
+ createdAt: string;
19567
+ updatedAt: string;
19568
+ tenantId: string;
19569
+ prompt: string | null;
19570
+ projectId: string;
19571
+ agentId: string;
19572
19572
  conversationHistoryConfig: ConversationHistoryConfig | null;
19573
19573
  } | null;
19574
19574
  } | null>;
19575
19575
  declare const listAgents: (db: DatabaseClient) => (params: {
19576
19576
  scopes: ProjectScopeConfig;
19577
19577
  }) => Promise<{
19578
- tenantId: string;
19579
- projectId: string;
19580
19578
  id: string;
19581
19579
  name: string;
19582
19580
  description: string | null;
19583
- prompt: string | null;
19584
- createdAt: string;
19585
- updatedAt: string;
19586
19581
  models: {
19587
19582
  base?: {
19588
19583
  model?: string | undefined;
@@ -19600,8 +19595,12 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19600
19595
  stopWhen: {
19601
19596
  transferCountIs?: number | undefined;
19602
19597
  } | null;
19598
+ createdAt: string;
19599
+ updatedAt: string;
19600
+ tenantId: string;
19603
19601
  defaultSubAgentId: string | null;
19604
19602
  contextConfigId: string | null;
19603
+ prompt: string | null;
19605
19604
  statusUpdates: {
19606
19605
  enabled?: boolean | undefined;
19607
19606
  numEvents?: number | undefined;
@@ -19617,6 +19616,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19617
19616
  } | undefined;
19618
19617
  }[] | undefined;
19619
19618
  } | null;
19619
+ projectId: string;
19620
19620
  }[]>;
19621
19621
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
19622
19622
  scopes: ProjectScopeConfig;
@@ -19674,14 +19674,9 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
19674
19674
  };
19675
19675
  }>;
19676
19676
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
19677
- tenantId: string;
19678
- projectId: string;
19679
19677
  id: string;
19680
19678
  name: string;
19681
19679
  description: string | null;
19682
- prompt: string | null;
19683
- createdAt: string;
19684
- updatedAt: string;
19685
19680
  models: {
19686
19681
  base?: {
19687
19682
  model?: string | undefined;
@@ -19699,8 +19694,12 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19699
19694
  stopWhen: {
19700
19695
  transferCountIs?: number | undefined;
19701
19696
  } | null;
19697
+ createdAt: string;
19698
+ updatedAt: string;
19699
+ tenantId: string;
19702
19700
  defaultSubAgentId: string | null;
19703
19701
  contextConfigId: string | null;
19702
+ prompt: string | null;
19704
19703
  statusUpdates: {
19705
19704
  enabled?: boolean | undefined;
19706
19705
  numEvents?: number | undefined;
@@ -19716,6 +19715,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19716
19715
  } | undefined;
19717
19716
  }[] | undefined;
19718
19717
  } | null;
19718
+ projectId: string;
19719
19719
  }>;
19720
19720
  declare const updateAgent: (db: DatabaseClient) => (params: {
19721
19721
  scopes: AgentScopeConfig;
@@ -19815,49 +19815,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
19815
19815
  scopes: ProjectScopeConfig;
19816
19816
  id: string;
19817
19817
  }) => Promise<{
19818
- tenantId: string;
19819
- projectId: string;
19820
19818
  id: string;
19821
19819
  name: string | null;
19820
+ createdAt: string;
19821
+ updatedAt: string;
19822
+ tenantId: string;
19823
+ projectId: string;
19822
19824
  agentId: string;
19823
19825
  publicId: string;
19824
19826
  keyHash: string;
19825
19827
  keyPrefix: string;
19826
19828
  lastUsedAt: string | null;
19827
19829
  expiresAt: string | null;
19828
- createdAt: string;
19829
- updatedAt: string;
19830
19830
  } | undefined>;
19831
19831
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
19832
- tenantId: string;
19833
- projectId: string;
19834
19832
  id: string;
19835
19833
  name: string | null;
19834
+ createdAt: string;
19835
+ updatedAt: string;
19836
+ tenantId: string;
19837
+ projectId: string;
19836
19838
  agentId: string;
19837
19839
  publicId: string;
19838
19840
  keyHash: string;
19839
19841
  keyPrefix: string;
19840
19842
  lastUsedAt: string | null;
19841
19843
  expiresAt: string | null;
19842
- createdAt: string;
19843
- updatedAt: string;
19844
19844
  } | undefined>;
19845
19845
  declare const listApiKeys: (db: DatabaseClient) => (params: {
19846
19846
  scopes: ProjectScopeConfig;
19847
19847
  agentId?: string;
19848
19848
  }) => Promise<{
19849
- tenantId: string;
19850
- projectId: string;
19851
19849
  id: string;
19852
19850
  name: string | null;
19851
+ createdAt: string;
19852
+ updatedAt: string;
19853
+ tenantId: string;
19854
+ projectId: string;
19853
19855
  agentId: string;
19854
19856
  publicId: string;
19855
19857
  keyHash: string;
19856
19858
  keyPrefix: string;
19857
19859
  lastUsedAt: string | null;
19858
19860
  expiresAt: string | null;
19859
- createdAt: string;
19860
- updatedAt: string;
19861
19861
  }[]>;
19862
19862
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
19863
19863
  scopes: ProjectScopeConfig;
@@ -19873,18 +19873,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
19873
19873
  };
19874
19874
  }>;
19875
19875
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
19876
- tenantId: string;
19877
- projectId: string;
19878
19876
  id: string;
19879
19877
  name: string | null;
19878
+ createdAt: string;
19879
+ updatedAt: string;
19880
+ tenantId: string;
19881
+ projectId: string;
19880
19882
  agentId: string;
19881
19883
  publicId: string;
19882
19884
  keyHash: string;
19883
19885
  keyPrefix: string;
19884
19886
  lastUsedAt: string | null;
19885
19887
  expiresAt: string | null;
19886
- createdAt: string;
19887
- updatedAt: string;
19888
19888
  }>;
19889
19889
  declare const updateApiKey: (db: DatabaseClient) => (params: {
19890
19890
  scopes: ProjectScopeConfig;
@@ -19932,13 +19932,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
19932
19932
  scopes: ProjectScopeConfig;
19933
19933
  id: string;
19934
19934
  }) => Promise<{
19935
- tenantId: string;
19936
- projectId: string;
19937
19935
  id: string;
19938
19936
  name: string;
19939
19937
  description: string | null;
19940
19938
  createdAt: string;
19941
19939
  updatedAt: string;
19940
+ tenantId: string;
19941
+ projectId: string;
19942
19942
  props: Record<string, unknown> | null;
19943
19943
  } | undefined>;
19944
19944
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -19966,13 +19966,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
19966
19966
  };
19967
19967
  }>;
19968
19968
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
19969
- tenantId: string;
19970
- projectId: string;
19971
19969
  id: string;
19972
19970
  name: string;
19973
19971
  description: string | null;
19974
19972
  createdAt: string;
19975
19973
  updatedAt: string;
19974
+ tenantId: string;
19975
+ projectId: string;
19976
19976
  props: Record<string, unknown> | null;
19977
19977
  }>;
19978
19978
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -20009,11 +20009,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
20009
20009
  scopes: SubAgentScopeConfig;
20010
20010
  artifactComponentId: string;
20011
20011
  }) => Promise<{
20012
+ id: string;
20013
+ createdAt: string;
20012
20014
  tenantId: string;
20013
20015
  projectId: string;
20014
- id: string;
20015
20016
  agentId: string;
20016
- createdAt: string;
20017
20017
  subAgentId: string;
20018
20018
  artifactComponentId: string;
20019
20019
  }>;
@@ -20052,11 +20052,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
20052
20052
  scopes: SubAgentScopeConfig;
20053
20053
  artifactComponentId: string;
20054
20054
  }) => Promise<{
20055
+ id: string;
20056
+ createdAt: string;
20055
20057
  tenantId: string;
20056
20058
  projectId: string;
20057
- id: string;
20058
20059
  agentId: string;
20059
- createdAt: string;
20060
20060
  subAgentId: string;
20061
20061
  artifactComponentId: string;
20062
20062
  } | null>;
@@ -20138,26 +20138,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
20138
20138
  scopes: AgentScopeConfig;
20139
20139
  id: string;
20140
20140
  }) => Promise<{
20141
- tenantId: string;
20142
- projectId: string;
20143
20141
  id: string;
20144
- agentId: string;
20145
20142
  createdAt: string;
20146
20143
  updatedAt: string;
20144
+ tenantId: string;
20145
+ projectId: string;
20147
20146
  headersSchema: unknown;
20148
20147
  contextVariables: Record<string, ContextFetchDefinition> | null;
20148
+ agentId: string;
20149
20149
  } | undefined>;
20150
20150
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
20151
20151
  scopes: AgentScopeConfig;
20152
20152
  }) => Promise<{
20153
- tenantId: string;
20154
- projectId: string;
20155
20153
  id: string;
20156
- agentId: string;
20157
20154
  createdAt: string;
20158
20155
  updatedAt: string;
20156
+ tenantId: string;
20157
+ projectId: string;
20159
20158
  headersSchema: unknown;
20160
20159
  contextVariables: Record<string, ContextFetchDefinition> | null;
20160
+ agentId: string;
20161
20161
  }[]>;
20162
20162
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
20163
20163
  scopes: AgentScopeConfig;
@@ -20172,14 +20172,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
20172
20172
  };
20173
20173
  }>;
20174
20174
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
20175
- tenantId: string;
20176
- projectId: string;
20177
20175
  id: string;
20178
- agentId: string;
20179
20176
  createdAt: string;
20180
20177
  updatedAt: string;
20178
+ tenantId: string;
20179
+ projectId: string;
20181
20180
  headersSchema: unknown;
20182
20181
  contextVariables: Record<string, ContextFetchDefinition> | null;
20182
+ agentId: string;
20183
20183
  }>;
20184
20184
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
20185
20185
  scopes: AgentScopeConfig;
@@ -20212,14 +20212,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
20212
20212
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
20213
20213
  data: ContextConfigInsert;
20214
20214
  }) => Promise<{
20215
- tenantId: string;
20216
- projectId: string;
20217
20215
  id: string;
20218
- agentId: string;
20219
20216
  createdAt: string;
20220
20217
  updatedAt: string;
20218
+ tenantId: string;
20219
+ projectId: string;
20221
20220
  headersSchema: unknown;
20222
20221
  contextVariables: Record<string, ContextFetchDefinition> | null;
20222
+ agentId: string;
20223
20223
  }>;
20224
20224
  //#endregion
20225
20225
  //#region src/data-access/conversations.d.ts
@@ -20232,14 +20232,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
20232
20232
  total: number;
20233
20233
  }>;
20234
20234
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
20235
- tenantId: string;
20236
- projectId: string;
20237
20235
  id: string;
20238
20236
  title: string | null;
20239
20237
  createdAt: string;
20240
20238
  updatedAt: string;
20241
- userId: string | null;
20239
+ tenantId: string;
20242
20240
  metadata: ConversationMetadata | null;
20241
+ projectId: string;
20242
+ userId: string | null;
20243
20243
  activeSubAgentId: string;
20244
20244
  lastContextResolution: string | null;
20245
20245
  }>;
@@ -20283,14 +20283,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
20283
20283
  scopes: ProjectScopeConfig;
20284
20284
  conversationId: string;
20285
20285
  }) => Promise<{
20286
- tenantId: string;
20287
- projectId: string;
20288
20286
  id: string;
20289
20287
  title: string | null;
20290
20288
  createdAt: string;
20291
20289
  updatedAt: string;
20292
- userId: string | null;
20290
+ tenantId: string;
20293
20291
  metadata: ConversationMetadata | null;
20292
+ projectId: string;
20293
+ userId: string | null;
20294
20294
  activeSubAgentId: string;
20295
20295
  lastContextResolution: string | null;
20296
20296
  } | undefined>;
@@ -20307,14 +20307,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
20307
20307
  metadata?: ConversationMetadata | null | undefined;
20308
20308
  contextConfigId?: string | undefined;
20309
20309
  } | {
20310
- tenantId: string;
20311
- projectId: string;
20312
20310
  id: string;
20313
20311
  title: string | null;
20314
20312
  createdAt: string;
20315
20313
  updatedAt: string;
20316
- userId: string | null;
20314
+ tenantId: string;
20317
20315
  metadata: ConversationMetadata | null;
20316
+ projectId: string;
20317
+ userId: string | null;
20318
20318
  activeSubAgentId: string;
20319
20319
  lastContextResolution: string | null;
20320
20320
  }>;
@@ -20333,14 +20333,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
20333
20333
  scopes: ProjectScopeConfig;
20334
20334
  conversationId: string;
20335
20335
  }) => Promise<{
20336
- tenantId: string;
20337
- projectId: string;
20338
20336
  id: string;
20339
20337
  title: string | null;
20340
20338
  createdAt: string;
20341
20339
  updatedAt: string;
20342
- userId: string | null;
20340
+ tenantId: string;
20343
20341
  metadata: ConversationMetadata | null;
20342
+ projectId: string;
20343
+ userId: string | null;
20344
20344
  activeSubAgentId: string;
20345
20345
  lastContextResolution: string | null;
20346
20346
  } | undefined>;
@@ -20517,11 +20517,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
20517
20517
  scopes: SubAgentScopeConfig;
20518
20518
  dataComponentId: string;
20519
20519
  }) => Promise<{
20520
+ id: string;
20521
+ createdAt: string;
20520
20522
  tenantId: string;
20521
20523
  projectId: string;
20522
- id: string;
20523
20524
  agentId: string;
20524
- createdAt: string;
20525
20525
  subAgentId: string;
20526
20526
  dataComponentId: string;
20527
20527
  }>;
@@ -20559,11 +20559,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
20559
20559
  scopes: SubAgentScopeConfig;
20560
20560
  dataComponentId: string;
20561
20561
  }) => Promise<{
20562
+ id: string;
20563
+ createdAt: string;
20562
20564
  tenantId: string;
20563
20565
  projectId: string;
20564
- id: string;
20565
20566
  agentId: string;
20566
- createdAt: string;
20567
20567
  subAgentId: string;
20568
20568
  dataComponentId: string;
20569
20569
  } | null>;
@@ -20765,14 +20765,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
20765
20765
  data: FunctionToolApiInsert;
20766
20766
  scopes: AgentScopeConfig;
20767
20767
  }) => Promise<{
20768
- tenantId: string;
20769
- projectId: string;
20770
20768
  id: string;
20771
20769
  name: string;
20772
20770
  description: string | null;
20773
- agentId: string;
20774
20771
  createdAt: string;
20775
20772
  updatedAt: string;
20773
+ tenantId: string;
20774
+ projectId: string;
20775
+ agentId: string;
20776
20776
  functionId: string;
20777
20777
  }>;
20778
20778
  /**
@@ -20807,14 +20807,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
20807
20807
  data: FunctionToolApiInsert;
20808
20808
  scopes: AgentScopeConfig;
20809
20809
  }) => Promise<{
20810
- tenantId: string;
20811
- projectId: string;
20812
20810
  id: string;
20813
20811
  name: string;
20814
20812
  description: string | null;
20815
- agentId: string;
20816
20813
  createdAt: string;
20817
20814
  updatedAt: string;
20815
+ tenantId: string;
20816
+ projectId: string;
20817
+ agentId: string;
20818
20818
  functionId: string;
20819
20819
  }>;
20820
20820
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -20946,21 +20946,21 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
20946
20946
  scopes: ProjectScopeConfig;
20947
20947
  messageId: string;
20948
20948
  }) => Promise<{
20949
- tenantId: string;
20950
- projectId: string;
20951
20949
  id: string;
20952
20950
  createdAt: string;
20953
20951
  updatedAt: string;
20952
+ tenantId: string;
20954
20953
  metadata: MessageMetadata | null;
20955
- content: MessageContent;
20956
- role: string;
20954
+ projectId: string;
20957
20955
  conversationId: string;
20956
+ role: string;
20958
20957
  fromSubAgentId: string | null;
20959
20958
  toSubAgentId: string | null;
20960
20959
  fromExternalAgentId: string | null;
20961
20960
  toExternalAgentId: string | null;
20962
20961
  fromTeamAgentId: string | null;
20963
20962
  toTeamAgentId: string | null;
20963
+ content: MessageContent;
20964
20964
  visibility: string;
20965
20965
  messageType: string;
20966
20966
  taskId: string | null;
@@ -21077,21 +21077,21 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
21077
21077
  id: string;
21078
21078
  }[]>;
21079
21079
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
21080
- tenantId: string;
21081
- projectId: string;
21082
21080
  id: string;
21083
21081
  createdAt: string;
21084
21082
  updatedAt: string;
21083
+ tenantId: string;
21085
21084
  metadata: MessageMetadata | null;
21086
- content: MessageContent;
21087
- role: string;
21085
+ projectId: string;
21088
21086
  conversationId: string;
21087
+ role: string;
21089
21088
  fromSubAgentId: string | null;
21090
21089
  toSubAgentId: string | null;
21091
21090
  fromExternalAgentId: string | null;
21092
21091
  toExternalAgentId: string | null;
21093
21092
  fromTeamAgentId: string | null;
21094
21093
  toTeamAgentId: string | null;
21094
+ content: MessageContent;
21095
21095
  visibility: string;
21096
21096
  messageType: string;
21097
21097
  taskId: string | null;
@@ -21130,21 +21130,21 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
21130
21130
  scopes: ProjectScopeConfig;
21131
21131
  messageId: string;
21132
21132
  }) => Promise<{
21133
- tenantId: string;
21134
- projectId: string;
21135
21133
  id: string;
21136
21134
  createdAt: string;
21137
21135
  updatedAt: string;
21136
+ tenantId: string;
21138
21137
  metadata: MessageMetadata | null;
21139
- content: MessageContent;
21140
- role: string;
21138
+ projectId: string;
21141
21139
  conversationId: string;
21140
+ role: string;
21142
21141
  fromSubAgentId: string | null;
21143
21142
  toSubAgentId: string | null;
21144
21143
  fromExternalAgentId: string | null;
21145
21144
  toExternalAgentId: string | null;
21146
21145
  fromTeamAgentId: string | null;
21147
21146
  toTeamAgentId: string | null;
21147
+ content: MessageContent;
21148
21148
  visibility: string;
21149
21149
  messageType: string;
21150
21150
  taskId: string | null;
@@ -21290,15 +21290,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
21290
21290
  scopes: SubAgentScopeConfig;
21291
21291
  relationId: string;
21292
21292
  }) => Promise<{
21293
- tenantId: string;
21294
- projectId: string;
21295
21293
  id: string;
21296
- agentId: string;
21297
21294
  createdAt: string;
21298
21295
  updatedAt: string;
21296
+ tenantId: string;
21297
+ projectId: string;
21298
+ agentId: string;
21299
+ subAgentId: string;
21299
21300
  headers: Record<string, string> | null;
21300
21301
  externalAgentId: string;
21301
- subAgentId: string;
21302
21302
  } | undefined>;
21303
21303
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
21304
21304
  scopes: SubAgentScopeConfig;
@@ -21325,28 +21325,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
21325
21325
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
21326
21326
  scopes: SubAgentScopeConfig;
21327
21327
  }) => Promise<{
21328
- tenantId: string;
21329
- projectId: string;
21330
21328
  id: string;
21331
- agentId: string;
21332
21329
  createdAt: string;
21333
21330
  updatedAt: string;
21331
+ tenantId: string;
21332
+ projectId: string;
21333
+ agentId: string;
21334
+ subAgentId: string;
21334
21335
  headers: Record<string, string> | null;
21335
21336
  externalAgentId: string;
21336
- subAgentId: string;
21337
21337
  }[]>;
21338
21338
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
21339
21339
  scopes: AgentScopeConfig;
21340
21340
  }) => Promise<{
21341
- tenantId: string;
21342
- projectId: string;
21343
21341
  id: string;
21344
- agentId: string;
21345
21342
  createdAt: string;
21346
21343
  updatedAt: string;
21344
+ tenantId: string;
21345
+ projectId: string;
21346
+ agentId: string;
21347
+ subAgentId: string;
21347
21348
  headers: Record<string, string> | null;
21348
21349
  externalAgentId: string;
21349
- subAgentId: string;
21350
21350
  }[]>;
21351
21351
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
21352
21352
  scopes: AgentScopeConfig;
@@ -21461,15 +21461,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
21461
21461
  headers?: Record<string, string> | null;
21462
21462
  };
21463
21463
  }) => Promise<{
21464
- tenantId: string;
21465
- projectId: string;
21466
21464
  id: string;
21467
- agentId: string;
21468
21465
  createdAt: string;
21469
21466
  updatedAt: string;
21467
+ tenantId: string;
21468
+ projectId: string;
21469
+ agentId: string;
21470
+ subAgentId: string;
21470
21471
  headers: Record<string, string> | null;
21471
21472
  externalAgentId: string;
21472
- subAgentId: string;
21473
21473
  }>;
21474
21474
  /**
21475
21475
  * Check if sub-agent external agent relation exists by params
@@ -21478,15 +21478,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
21478
21478
  scopes: SubAgentScopeConfig;
21479
21479
  externalAgentId: string;
21480
21480
  }) => Promise<{
21481
- tenantId: string;
21482
- projectId: string;
21483
21481
  id: string;
21484
- agentId: string;
21485
21482
  createdAt: string;
21486
21483
  updatedAt: string;
21484
+ tenantId: string;
21485
+ projectId: string;
21486
+ agentId: string;
21487
+ subAgentId: string;
21487
21488
  headers: Record<string, string> | null;
21488
21489
  externalAgentId: string;
21489
- subAgentId: string;
21490
21490
  } | undefined>;
21491
21491
  /**
21492
21492
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -21499,15 +21499,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
21499
21499
  headers?: Record<string, string> | null;
21500
21500
  };
21501
21501
  }) => Promise<{
21502
- tenantId: string;
21503
- projectId: string;
21504
21502
  id: string;
21505
- agentId: string;
21506
21503
  createdAt: string;
21507
21504
  updatedAt: string;
21505
+ tenantId: string;
21506
+ projectId: string;
21507
+ agentId: string;
21508
+ subAgentId: string;
21508
21509
  headers: Record<string, string> | null;
21509
21510
  externalAgentId: string;
21510
- subAgentId: string;
21511
21511
  }>;
21512
21512
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
21513
21513
  scopes: SubAgentScopeConfig;
@@ -21540,12 +21540,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
21540
21540
  scopes: AgentScopeConfig;
21541
21541
  relationId: string;
21542
21542
  }) => Promise<{
21543
- tenantId: string;
21544
- projectId: string;
21545
21543
  id: string;
21546
- agentId: string;
21547
21544
  createdAt: string;
21548
21545
  updatedAt: string;
21546
+ tenantId: string;
21547
+ projectId: string;
21548
+ agentId: string;
21549
21549
  sourceSubAgentId: string;
21550
21550
  targetSubAgentId: string | null;
21551
21551
  relationType: string | null;
@@ -21575,12 +21575,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
21575
21575
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
21576
21576
  scopes: SubAgentScopeConfig;
21577
21577
  }) => Promise<{
21578
- tenantId: string;
21579
- projectId: string;
21580
21578
  id: string;
21581
- agentId: string;
21582
21579
  createdAt: string;
21583
21580
  updatedAt: string;
21581
+ tenantId: string;
21582
+ projectId: string;
21583
+ agentId: string;
21584
21584
  sourceSubAgentId: string;
21585
21585
  targetSubAgentId: string | null;
21586
21586
  relationType: string | null;
@@ -21588,12 +21588,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
21588
21588
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
21589
21589
  scopes: AgentScopeConfig;
21590
21590
  }) => Promise<{
21591
- tenantId: string;
21592
- projectId: string;
21593
21591
  id: string;
21594
- agentId: string;
21595
21592
  createdAt: string;
21596
21593
  updatedAt: string;
21594
+ tenantId: string;
21595
+ projectId: string;
21596
+ agentId: string;
21597
21597
  sourceSubAgentId: string;
21598
21598
  targetSubAgentId: string | null;
21599
21599
  relationType: string | null;
@@ -21657,12 +21657,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
21657
21657
  }[];
21658
21658
  }>;
21659
21659
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
21660
- tenantId: string;
21661
- projectId: string;
21662
21660
  id: string;
21663
- agentId: string;
21664
21661
  createdAt: string;
21665
21662
  updatedAt: string;
21663
+ tenantId: string;
21664
+ projectId: string;
21665
+ agentId: string;
21666
21666
  sourceSubAgentId: string;
21667
21667
  targetSubAgentId: string | null;
21668
21668
  relationType: string | null;
@@ -21676,12 +21676,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
21676
21676
  targetSubAgentId?: string;
21677
21677
  relationType: string;
21678
21678
  }) => Promise<{
21679
- tenantId: string;
21680
- projectId: string;
21681
21679
  id: string;
21682
- agentId: string;
21683
21680
  createdAt: string;
21684
21681
  updatedAt: string;
21682
+ tenantId: string;
21683
+ projectId: string;
21684
+ agentId: string;
21685
21685
  sourceSubAgentId: string;
21686
21686
  targetSubAgentId: string | null;
21687
21687
  relationType: string | null;
@@ -21690,12 +21690,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
21690
21690
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
21691
21691
  */
21692
21692
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
21693
- tenantId: string;
21694
- projectId: string;
21695
21693
  id: string;
21696
- agentId: string;
21697
21694
  createdAt: string;
21698
21695
  updatedAt: string;
21696
+ tenantId: string;
21697
+ projectId: string;
21698
+ agentId: string;
21699
21699
  sourceSubAgentId: string;
21700
21700
  targetSubAgentId: string | null;
21701
21701
  relationType: string | null;
@@ -21735,19 +21735,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
21735
21735
  }> | null;
21736
21736
  };
21737
21737
  }) => Promise<{
21738
- tenantId: string;
21739
- projectId: string;
21740
21738
  id: string;
21741
- agentId: string;
21742
21739
  createdAt: string;
21743
21740
  updatedAt: string;
21741
+ tenantId: string;
21742
+ projectId: string;
21743
+ agentId: string;
21744
21744
  toolId: string;
21745
+ subAgentId: string;
21745
21746
  headers: Record<string, string> | null;
21747
+ selectedTools: string[] | null;
21746
21748
  toolPolicies: Record<string, {
21747
21749
  needsApproval?: boolean;
21748
21750
  }> | null;
21749
- subAgentId: string;
21750
- selectedTools: string[] | null;
21751
21751
  }>;
21752
21752
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
21753
21753
  scopes: AgentScopeConfig;
@@ -21779,19 +21779,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
21779
21779
  scopes: SubAgentScopeConfig;
21780
21780
  relationId: string;
21781
21781
  }) => Promise<{
21782
- tenantId: string;
21783
- projectId: string;
21784
21782
  id: string;
21785
- agentId: string;
21786
21783
  createdAt: string;
21787
21784
  updatedAt: string;
21785
+ tenantId: string;
21786
+ projectId: string;
21787
+ agentId: string;
21788
21788
  toolId: string;
21789
+ subAgentId: string;
21789
21790
  headers: Record<string, string> | null;
21791
+ selectedTools: string[] | null;
21790
21792
  toolPolicies: Record<string, {
21791
21793
  needsApproval?: boolean;
21792
21794
  }> | null;
21793
- subAgentId: string;
21794
- selectedTools: string[] | null;
21795
21795
  } | undefined>;
21796
21796
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
21797
21797
  scopes: SubAgentScopeConfig;
@@ -21975,15 +21975,9 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
21975
21975
  scopes: AgentScopeConfig;
21976
21976
  subAgentId: string;
21977
21977
  }) => Promise<{
21978
- tenantId: string;
21979
- projectId: string;
21980
21978
  id: string;
21981
21979
  name: string;
21982
21980
  description: string | null;
21983
- prompt: string | null;
21984
- agentId: string;
21985
- createdAt: string;
21986
- updatedAt: string;
21987
21981
  models: {
21988
21982
  base?: {
21989
21983
  model?: string | undefined;
@@ -22001,20 +21995,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
22001
21995
  stopWhen: {
22002
21996
  stepCountIs?: number | undefined;
22003
21997
  } | null;
21998
+ createdAt: string;
21999
+ updatedAt: string;
22000
+ tenantId: string;
22001
+ prompt: string | null;
22002
+ projectId: string;
22003
+ agentId: string;
22004
22004
  conversationHistoryConfig: ConversationHistoryConfig | null;
22005
22005
  } | undefined>;
22006
22006
  declare const listSubAgents: (db: DatabaseClient) => (params: {
22007
22007
  scopes: AgentScopeConfig;
22008
22008
  }) => Promise<{
22009
- tenantId: string;
22010
- projectId: string;
22011
22009
  id: string;
22012
22010
  name: string;
22013
22011
  description: string | null;
22014
- prompt: string | null;
22015
- agentId: string;
22016
- createdAt: string;
22017
- updatedAt: string;
22018
22012
  models: {
22019
22013
  base?: {
22020
22014
  model?: string | undefined;
@@ -22032,6 +22026,12 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
22032
22026
  stopWhen: {
22033
22027
  stepCountIs?: number | undefined;
22034
22028
  } | null;
22029
+ createdAt: string;
22030
+ updatedAt: string;
22031
+ tenantId: string;
22032
+ prompt: string | null;
22033
+ projectId: string;
22034
+ agentId: string;
22035
22035
  conversationHistoryConfig: ConversationHistoryConfig | null;
22036
22036
  }[]>;
22037
22037
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -22075,15 +22075,9 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
22075
22075
  };
22076
22076
  }>;
22077
22077
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
22078
- tenantId: string;
22079
- projectId: string;
22080
22078
  id: string;
22081
22079
  name: string;
22082
22080
  description: string | null;
22083
- prompt: string | null;
22084
- agentId: string;
22085
- createdAt: string;
22086
- updatedAt: string;
22087
22081
  models: {
22088
22082
  base?: {
22089
22083
  model?: string | undefined;
@@ -22101,6 +22095,12 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
22101
22095
  stopWhen: {
22102
22096
  stepCountIs?: number | undefined;
22103
22097
  } | null;
22098
+ createdAt: string;
22099
+ updatedAt: string;
22100
+ tenantId: string;
22101
+ prompt: string | null;
22102
+ projectId: string;
22103
+ agentId: string;
22104
22104
  conversationHistoryConfig: ConversationHistoryConfig | null;
22105
22105
  }>;
22106
22106
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -22189,14 +22189,14 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
22189
22189
  scopes: SubAgentScopeConfig;
22190
22190
  relationId: string;
22191
22191
  }) => Promise<{
22192
- tenantId: string;
22193
- projectId: string;
22194
22192
  id: string;
22195
- agentId: string;
22196
22193
  createdAt: string;
22197
22194
  updatedAt: string;
22198
- headers: Record<string, string> | null;
22195
+ tenantId: string;
22196
+ projectId: string;
22197
+ agentId: string;
22199
22198
  subAgentId: string;
22199
+ headers: Record<string, string> | null;
22200
22200
  targetAgentId: string;
22201
22201
  } | undefined>;
22202
22202
  declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
@@ -22224,27 +22224,27 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
22224
22224
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
22225
22225
  scopes: SubAgentScopeConfig;
22226
22226
  }) => Promise<{
22227
- tenantId: string;
22228
- projectId: string;
22229
22227
  id: string;
22230
- agentId: string;
22231
22228
  createdAt: string;
22232
22229
  updatedAt: string;
22233
- headers: Record<string, string> | null;
22230
+ tenantId: string;
22231
+ projectId: string;
22232
+ agentId: string;
22234
22233
  subAgentId: string;
22234
+ headers: Record<string, string> | null;
22235
22235
  targetAgentId: string;
22236
22236
  }[]>;
22237
22237
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
22238
22238
  scopes: AgentScopeConfig;
22239
22239
  }) => Promise<{
22240
- tenantId: string;
22241
- projectId: string;
22242
22240
  id: string;
22243
- agentId: string;
22244
22241
  createdAt: string;
22245
22242
  updatedAt: string;
22246
- headers: Record<string, string> | null;
22243
+ tenantId: string;
22244
+ projectId: string;
22245
+ agentId: string;
22247
22246
  subAgentId: string;
22247
+ headers: Record<string, string> | null;
22248
22248
  targetAgentId: string;
22249
22249
  }[]>;
22250
22250
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
@@ -22390,14 +22390,14 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
22390
22390
  headers?: Record<string, string> | null;
22391
22391
  };
22392
22392
  }) => Promise<{
22393
- tenantId: string;
22394
- projectId: string;
22395
22393
  id: string;
22396
- agentId: string;
22397
22394
  createdAt: string;
22398
22395
  updatedAt: string;
22399
- headers: Record<string, string> | null;
22396
+ tenantId: string;
22397
+ projectId: string;
22398
+ agentId: string;
22400
22399
  subAgentId: string;
22400
+ headers: Record<string, string> | null;
22401
22401
  targetAgentId: string;
22402
22402
  }>;
22403
22403
  /**
@@ -22407,14 +22407,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
22407
22407
  scopes: SubAgentScopeConfig;
22408
22408
  targetAgentId: string;
22409
22409
  }) => Promise<{
22410
- tenantId: string;
22411
- projectId: string;
22412
22410
  id: string;
22413
- agentId: string;
22414
22411
  createdAt: string;
22415
22412
  updatedAt: string;
22416
- headers: Record<string, string> | null;
22413
+ tenantId: string;
22414
+ projectId: string;
22415
+ agentId: string;
22417
22416
  subAgentId: string;
22417
+ headers: Record<string, string> | null;
22418
22418
  targetAgentId: string;
22419
22419
  } | undefined>;
22420
22420
  /**
@@ -22428,14 +22428,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
22428
22428
  headers?: Record<string, string> | null;
22429
22429
  };
22430
22430
  }) => Promise<{
22431
- tenantId: string;
22432
- projectId: string;
22433
22431
  id: string;
22434
- agentId: string;
22435
22432
  createdAt: string;
22436
22433
  updatedAt: string;
22437
- headers: Record<string, string> | null;
22434
+ tenantId: string;
22435
+ projectId: string;
22436
+ agentId: string;
22438
22437
  subAgentId: string;
22438
+ headers: Record<string, string> | null;
22439
22439
  targetAgentId: string;
22440
22440
  }>;
22441
22441
  declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
@@ -22466,15 +22466,15 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
22466
22466
  //#endregion
22467
22467
  //#region src/data-access/tasks.d.ts
22468
22468
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
22469
- tenantId: string;
22470
- projectId: string;
22471
22469
  id: string;
22472
- agentId: string;
22473
22470
  createdAt: string;
22474
22471
  updatedAt: string;
22472
+ tenantId: string;
22475
22473
  metadata: TaskMetadataConfig | null;
22476
- status: string;
22474
+ projectId: string;
22475
+ agentId: string;
22477
22476
  contextId: string;
22477
+ status: string;
22478
22478
  subAgentId: string;
22479
22479
  }>;
22480
22480
  declare const getTask: (db: DatabaseClient) => (params: {
@@ -22508,20 +22508,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
22508
22508
  scopes: ProjectScopeConfig;
22509
22509
  toolId: string;
22510
22510
  }) => Promise<{
22511
- tenantId: string;
22512
- projectId: string;
22513
22511
  id: string;
22514
22512
  name: string;
22515
22513
  description: string | null;
22514
+ createdAt: string;
22515
+ updatedAt: string;
22516
+ tenantId: string;
22517
+ projectId: string;
22518
+ credentialReferenceId: string | null;
22516
22519
  config: {
22517
22520
  type: "mcp";
22518
22521
  mcp: ToolMcpConfig;
22519
22522
  };
22520
- credentialReferenceId: string | null;
22521
- createdAt: string;
22522
- updatedAt: string;
22523
- headers: Record<string, string> | null;
22524
22523
  credentialScope: string;
22524
+ headers: Record<string, string> | null;
22525
22525
  imageUrl: string | null;
22526
22526
  capabilities: ToolServerCapabilities | null;
22527
22527
  lastError: string | null;
@@ -22557,20 +22557,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
22557
22557
  };
22558
22558
  }>;
22559
22559
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
22560
- tenantId: string;
22561
- projectId: string;
22562
22560
  id: string;
22563
22561
  name: string;
22564
22562
  description: string | null;
22563
+ createdAt: string;
22564
+ updatedAt: string;
22565
+ tenantId: string;
22566
+ projectId: string;
22567
+ credentialReferenceId: string | null;
22565
22568
  config: {
22566
22569
  type: "mcp";
22567
22570
  mcp: ToolMcpConfig;
22568
22571
  };
22569
- credentialReferenceId: string | null;
22570
- createdAt: string;
22571
- updatedAt: string;
22572
- headers: Record<string, string> | null;
22573
22572
  credentialScope: string;
22573
+ headers: Record<string, string> | null;
22574
22574
  imageUrl: string | null;
22575
22575
  capabilities: ToolServerCapabilities | null;
22576
22576
  lastError: string | null;
@@ -22612,38 +22612,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
22612
22612
  needsApproval?: boolean;
22613
22613
  }> | null;
22614
22614
  }) => Promise<{
22615
- tenantId: string;
22616
- projectId: string;
22617
22615
  id: string;
22618
- agentId: string;
22619
22616
  createdAt: string;
22620
22617
  updatedAt: string;
22618
+ tenantId: string;
22619
+ projectId: string;
22620
+ agentId: string;
22621
22621
  toolId: string;
22622
+ subAgentId: string;
22622
22623
  headers: Record<string, string> | null;
22624
+ selectedTools: string[] | null;
22623
22625
  toolPolicies: Record<string, {
22624
22626
  needsApproval?: boolean;
22625
22627
  }> | null;
22626
- subAgentId: string;
22627
- selectedTools: string[] | null;
22628
22628
  }>;
22629
22629
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
22630
22630
  scopes: AgentScopeConfig;
22631
22631
  subAgentId: string;
22632
22632
  toolId: string;
22633
22633
  }) => Promise<{
22634
- tenantId: string;
22635
- projectId: string;
22636
22634
  id: string;
22637
- agentId: string;
22638
22635
  createdAt: string;
22639
22636
  updatedAt: string;
22637
+ tenantId: string;
22638
+ projectId: string;
22639
+ agentId: string;
22640
22640
  toolId: string;
22641
+ subAgentId: string;
22641
22642
  headers: Record<string, string> | null;
22643
+ selectedTools: string[] | null;
22642
22644
  toolPolicies: Record<string, {
22643
22645
  needsApproval?: boolean;
22644
22646
  }> | null;
22645
- subAgentId: string;
22646
- selectedTools: string[] | null;
22647
22647
  }>;
22648
22648
  /**
22649
22649
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -22659,19 +22659,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22659
22659
  }> | null;
22660
22660
  relationId?: string;
22661
22661
  }) => Promise<{
22662
- tenantId: string;
22663
- projectId: string;
22664
22662
  id: string;
22665
- agentId: string;
22666
22663
  createdAt: string;
22667
22664
  updatedAt: string;
22665
+ tenantId: string;
22666
+ projectId: string;
22667
+ agentId: string;
22668
22668
  toolId: string;
22669
+ subAgentId: string;
22669
22670
  headers: Record<string, string> | null;
22671
+ selectedTools: string[] | null;
22670
22672
  toolPolicies: Record<string, {
22671
22673
  needsApproval?: boolean;
22672
22674
  }> | null;
22673
- subAgentId: string;
22674
- selectedTools: string[] | null;
22675
22675
  }>;
22676
22676
  /**
22677
22677
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -22679,20 +22679,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22679
22679
  declare const upsertTool: (db: DatabaseClient) => (params: {
22680
22680
  data: ToolInsert;
22681
22681
  }) => Promise<{
22682
- tenantId: string;
22683
- projectId: string;
22684
22682
  id: string;
22685
22683
  name: string;
22686
22684
  description: string | null;
22685
+ createdAt: string;
22686
+ updatedAt: string;
22687
+ tenantId: string;
22688
+ projectId: string;
22689
+ credentialReferenceId: string | null;
22687
22690
  config: {
22688
22691
  type: "mcp";
22689
22692
  mcp: ToolMcpConfig;
22690
22693
  };
22691
- credentialReferenceId: string | null;
22692
- createdAt: string;
22693
- updatedAt: string;
22694
- headers: Record<string, string> | null;
22695
22694
  credentialScope: string;
22695
+ headers: Record<string, string> | null;
22696
22696
  imageUrl: string | null;
22697
22697
  capabilities: ToolServerCapabilities | null;
22698
22698
  lastError: string | null;
@@ -29471,145 +29471,145 @@ declare const credentialReferences: drizzle_orm_pg_core495.PgTableWithColumns<{
29471
29471
  };
29472
29472
  dialect: "pg";
29473
29473
  }>;
29474
- declare const tasksRelations: drizzle_orm20.Relations<"tasks", {
29475
- project: drizzle_orm20.One<"projects", true>;
29476
- parentRelations: drizzle_orm20.Many<"task_relations">;
29477
- childRelations: drizzle_orm20.Many<"task_relations">;
29478
- subAgent: drizzle_orm20.One<"sub_agents", true>;
29479
- messages: drizzle_orm20.Many<"messages">;
29480
- ledgerArtifacts: drizzle_orm20.Many<"ledger_artifacts">;
29474
+ declare const tasksRelations: drizzle_orm0.Relations<"tasks", {
29475
+ project: drizzle_orm0.One<"projects", true>;
29476
+ parentRelations: drizzle_orm0.Many<"task_relations">;
29477
+ childRelations: drizzle_orm0.Many<"task_relations">;
29478
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29479
+ messages: drizzle_orm0.Many<"messages">;
29480
+ ledgerArtifacts: drizzle_orm0.Many<"ledger_artifacts">;
29481
29481
  }>;
29482
- declare const projectsRelations: drizzle_orm20.Relations<"projects", {
29483
- subAgents: drizzle_orm20.Many<"sub_agents">;
29484
- agents: drizzle_orm20.Many<"agent">;
29485
- tools: drizzle_orm20.Many<"tools">;
29486
- functions: drizzle_orm20.Many<"functions">;
29487
- contextConfigs: drizzle_orm20.Many<"context_configs">;
29488
- externalAgents: drizzle_orm20.Many<"external_agents">;
29489
- conversations: drizzle_orm20.Many<"conversations">;
29490
- tasks: drizzle_orm20.Many<"tasks">;
29491
- dataComponents: drizzle_orm20.Many<"data_components">;
29492
- artifactComponents: drizzle_orm20.Many<"artifact_components">;
29493
- ledgerArtifacts: drizzle_orm20.Many<"ledger_artifacts">;
29494
- credentialReferences: drizzle_orm20.Many<"credential_references">;
29482
+ declare const projectsRelations: drizzle_orm0.Relations<"projects", {
29483
+ subAgents: drizzle_orm0.Many<"sub_agents">;
29484
+ agents: drizzle_orm0.Many<"agent">;
29485
+ tools: drizzle_orm0.Many<"tools">;
29486
+ functions: drizzle_orm0.Many<"functions">;
29487
+ contextConfigs: drizzle_orm0.Many<"context_configs">;
29488
+ externalAgents: drizzle_orm0.Many<"external_agents">;
29489
+ conversations: drizzle_orm0.Many<"conversations">;
29490
+ tasks: drizzle_orm0.Many<"tasks">;
29491
+ dataComponents: drizzle_orm0.Many<"data_components">;
29492
+ artifactComponents: drizzle_orm0.Many<"artifact_components">;
29493
+ ledgerArtifacts: drizzle_orm0.Many<"ledger_artifacts">;
29494
+ credentialReferences: drizzle_orm0.Many<"credential_references">;
29495
29495
  }>;
29496
- declare const taskRelationsRelations: drizzle_orm20.Relations<"task_relations", {
29497
- parentTask: drizzle_orm20.One<"tasks", true>;
29498
- childTask: drizzle_orm20.One<"tasks", true>;
29496
+ declare const taskRelationsRelations: drizzle_orm0.Relations<"task_relations", {
29497
+ parentTask: drizzle_orm0.One<"tasks", true>;
29498
+ childTask: drizzle_orm0.One<"tasks", true>;
29499
29499
  }>;
29500
- declare const contextConfigsRelations: drizzle_orm20.Relations<"context_configs", {
29501
- project: drizzle_orm20.One<"projects", true>;
29502
- agents: drizzle_orm20.Many<"agent">;
29503
- cache: drizzle_orm20.Many<"context_cache">;
29500
+ declare const contextConfigsRelations: drizzle_orm0.Relations<"context_configs", {
29501
+ project: drizzle_orm0.One<"projects", true>;
29502
+ agents: drizzle_orm0.Many<"agent">;
29503
+ cache: drizzle_orm0.Many<"context_cache">;
29504
29504
  }>;
29505
- declare const contextCacheRelations: drizzle_orm20.Relations<"context_cache", {
29506
- contextConfig: drizzle_orm20.One<"context_configs", true>;
29505
+ declare const contextCacheRelations: drizzle_orm0.Relations<"context_cache", {
29506
+ contextConfig: drizzle_orm0.One<"context_configs", true>;
29507
29507
  }>;
29508
- declare const subAgentsRelations: drizzle_orm20.Relations<"sub_agents", {
29509
- project: drizzle_orm20.One<"projects", true>;
29510
- tasks: drizzle_orm20.Many<"tasks">;
29511
- defaultForAgents: drizzle_orm20.Many<"agent">;
29512
- sourceRelations: drizzle_orm20.Many<"sub_agent_relations">;
29513
- targetRelations: drizzle_orm20.Many<"sub_agent_relations">;
29514
- sentMessages: drizzle_orm20.Many<"messages">;
29515
- receivedMessages: drizzle_orm20.Many<"messages">;
29516
- toolRelations: drizzle_orm20.Many<"sub_agent_tool_relations">;
29517
- functionToolRelations: drizzle_orm20.Many<"sub_agent_function_tool_relations">;
29518
- dataComponentRelations: drizzle_orm20.Many<"sub_agent_data_components">;
29519
- artifactComponentRelations: drizzle_orm20.Many<"sub_agent_artifact_components">;
29508
+ declare const subAgentsRelations: drizzle_orm0.Relations<"sub_agents", {
29509
+ project: drizzle_orm0.One<"projects", true>;
29510
+ tasks: drizzle_orm0.Many<"tasks">;
29511
+ defaultForAgents: drizzle_orm0.Many<"agent">;
29512
+ sourceRelations: drizzle_orm0.Many<"sub_agent_relations">;
29513
+ targetRelations: drizzle_orm0.Many<"sub_agent_relations">;
29514
+ sentMessages: drizzle_orm0.Many<"messages">;
29515
+ receivedMessages: drizzle_orm0.Many<"messages">;
29516
+ toolRelations: drizzle_orm0.Many<"sub_agent_tool_relations">;
29517
+ functionToolRelations: drizzle_orm0.Many<"sub_agent_function_tool_relations">;
29518
+ dataComponentRelations: drizzle_orm0.Many<"sub_agent_data_components">;
29519
+ artifactComponentRelations: drizzle_orm0.Many<"sub_agent_artifact_components">;
29520
29520
  }>;
29521
- declare const agentRelations: drizzle_orm20.Relations<"agent", {
29522
- project: drizzle_orm20.One<"projects", true>;
29523
- defaultSubAgent: drizzle_orm20.One<"sub_agents", false>;
29524
- contextConfig: drizzle_orm20.One<"context_configs", false>;
29525
- functionTools: drizzle_orm20.Many<"function_tools">;
29521
+ declare const agentRelations: drizzle_orm0.Relations<"agent", {
29522
+ project: drizzle_orm0.One<"projects", true>;
29523
+ defaultSubAgent: drizzle_orm0.One<"sub_agents", false>;
29524
+ contextConfig: drizzle_orm0.One<"context_configs", false>;
29525
+ functionTools: drizzle_orm0.Many<"function_tools">;
29526
29526
  }>;
29527
- declare const externalAgentsRelations: drizzle_orm20.Relations<"external_agents", {
29528
- project: drizzle_orm20.One<"projects", true>;
29529
- subAgentExternalAgentRelations: drizzle_orm20.Many<"sub_agent_external_agent_relations">;
29530
- credentialReference: drizzle_orm20.One<"credential_references", false>;
29527
+ declare const externalAgentsRelations: drizzle_orm0.Relations<"external_agents", {
29528
+ project: drizzle_orm0.One<"projects", true>;
29529
+ subAgentExternalAgentRelations: drizzle_orm0.Many<"sub_agent_external_agent_relations">;
29530
+ credentialReference: drizzle_orm0.One<"credential_references", false>;
29531
29531
  }>;
29532
- declare const apiKeysRelations: drizzle_orm20.Relations<"api_keys", {
29533
- project: drizzle_orm20.One<"projects", true>;
29534
- agent: drizzle_orm20.One<"agent", true>;
29532
+ declare const apiKeysRelations: drizzle_orm0.Relations<"api_keys", {
29533
+ project: drizzle_orm0.One<"projects", true>;
29534
+ agent: drizzle_orm0.One<"agent", true>;
29535
29535
  }>;
29536
- declare const agentToolRelationsRelations: drizzle_orm20.Relations<"sub_agent_tool_relations", {
29537
- subAgent: drizzle_orm20.One<"sub_agents", true>;
29538
- tool: drizzle_orm20.One<"tools", true>;
29536
+ declare const agentToolRelationsRelations: drizzle_orm0.Relations<"sub_agent_tool_relations", {
29537
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29538
+ tool: drizzle_orm0.One<"tools", true>;
29539
29539
  }>;
29540
- declare const credentialReferencesRelations: drizzle_orm20.Relations<"credential_references", {
29541
- project: drizzle_orm20.One<"projects", true>;
29542
- tools: drizzle_orm20.Many<"tools">;
29543
- externalAgents: drizzle_orm20.Many<"external_agents">;
29540
+ declare const credentialReferencesRelations: drizzle_orm0.Relations<"credential_references", {
29541
+ project: drizzle_orm0.One<"projects", true>;
29542
+ tools: drizzle_orm0.Many<"tools">;
29543
+ externalAgents: drizzle_orm0.Many<"external_agents">;
29544
29544
  }>;
29545
- declare const toolsRelations: drizzle_orm20.Relations<"tools", {
29546
- project: drizzle_orm20.One<"projects", true>;
29547
- subAgentRelations: drizzle_orm20.Many<"sub_agent_tool_relations">;
29548
- credentialReference: drizzle_orm20.One<"credential_references", false>;
29545
+ declare const toolsRelations: drizzle_orm0.Relations<"tools", {
29546
+ project: drizzle_orm0.One<"projects", true>;
29547
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_tool_relations">;
29548
+ credentialReference: drizzle_orm0.One<"credential_references", false>;
29549
29549
  }>;
29550
- declare const conversationsRelations: drizzle_orm20.Relations<"conversations", {
29551
- project: drizzle_orm20.One<"projects", true>;
29552
- messages: drizzle_orm20.Many<"messages">;
29553
- activeSubAgent: drizzle_orm20.One<"sub_agents", true>;
29550
+ declare const conversationsRelations: drizzle_orm0.Relations<"conversations", {
29551
+ project: drizzle_orm0.One<"projects", true>;
29552
+ messages: drizzle_orm0.Many<"messages">;
29553
+ activeSubAgent: drizzle_orm0.One<"sub_agents", true>;
29554
29554
  }>;
29555
- declare const messagesRelations: drizzle_orm20.Relations<"messages", {
29556
- conversation: drizzle_orm20.One<"conversations", true>;
29557
- fromSubAgent: drizzle_orm20.One<"sub_agents", false>;
29558
- toSubAgent: drizzle_orm20.One<"sub_agents", false>;
29559
- fromTeamAgent: drizzle_orm20.One<"agent", false>;
29560
- toTeamAgent: drizzle_orm20.One<"agent", false>;
29561
- fromExternalAgent: drizzle_orm20.One<"external_agents", false>;
29562
- toExternalAgent: drizzle_orm20.One<"external_agents", false>;
29563
- task: drizzle_orm20.One<"tasks", false>;
29564
- parentMessage: drizzle_orm20.One<"messages", false>;
29565
- childMessages: drizzle_orm20.Many<"messages">;
29555
+ declare const messagesRelations: drizzle_orm0.Relations<"messages", {
29556
+ conversation: drizzle_orm0.One<"conversations", true>;
29557
+ fromSubAgent: drizzle_orm0.One<"sub_agents", false>;
29558
+ toSubAgent: drizzle_orm0.One<"sub_agents", false>;
29559
+ fromTeamAgent: drizzle_orm0.One<"agent", false>;
29560
+ toTeamAgent: drizzle_orm0.One<"agent", false>;
29561
+ fromExternalAgent: drizzle_orm0.One<"external_agents", false>;
29562
+ toExternalAgent: drizzle_orm0.One<"external_agents", false>;
29563
+ task: drizzle_orm0.One<"tasks", false>;
29564
+ parentMessage: drizzle_orm0.One<"messages", false>;
29565
+ childMessages: drizzle_orm0.Many<"messages">;
29566
29566
  }>;
29567
- declare const artifactComponentsRelations: drizzle_orm20.Relations<"artifact_components", {
29568
- project: drizzle_orm20.One<"projects", true>;
29569
- subAgentRelations: drizzle_orm20.Many<"sub_agent_artifact_components">;
29567
+ declare const artifactComponentsRelations: drizzle_orm0.Relations<"artifact_components", {
29568
+ project: drizzle_orm0.One<"projects", true>;
29569
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_artifact_components">;
29570
29570
  }>;
29571
- declare const subAgentArtifactComponentsRelations: drizzle_orm20.Relations<"sub_agent_artifact_components", {
29572
- subAgent: drizzle_orm20.One<"sub_agents", true>;
29573
- artifactComponent: drizzle_orm20.One<"artifact_components", true>;
29571
+ declare const subAgentArtifactComponentsRelations: drizzle_orm0.Relations<"sub_agent_artifact_components", {
29572
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29573
+ artifactComponent: drizzle_orm0.One<"artifact_components", true>;
29574
29574
  }>;
29575
- declare const dataComponentsRelations: drizzle_orm20.Relations<"data_components", {
29576
- project: drizzle_orm20.One<"projects", true>;
29577
- subAgentRelations: drizzle_orm20.Many<"sub_agent_data_components">;
29575
+ declare const dataComponentsRelations: drizzle_orm0.Relations<"data_components", {
29576
+ project: drizzle_orm0.One<"projects", true>;
29577
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_data_components">;
29578
29578
  }>;
29579
- declare const subAgentDataComponentsRelations: drizzle_orm20.Relations<"sub_agent_data_components", {
29580
- subAgent: drizzle_orm20.One<"sub_agents", true>;
29581
- dataComponent: drizzle_orm20.One<"data_components", true>;
29579
+ declare const subAgentDataComponentsRelations: drizzle_orm0.Relations<"sub_agent_data_components", {
29580
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29581
+ dataComponent: drizzle_orm0.One<"data_components", true>;
29582
29582
  }>;
29583
- declare const ledgerArtifactsRelations: drizzle_orm20.Relations<"ledger_artifacts", {
29584
- project: drizzle_orm20.One<"projects", true>;
29585
- task: drizzle_orm20.One<"tasks", true>;
29583
+ declare const ledgerArtifactsRelations: drizzle_orm0.Relations<"ledger_artifacts", {
29584
+ project: drizzle_orm0.One<"projects", true>;
29585
+ task: drizzle_orm0.One<"tasks", true>;
29586
29586
  }>;
29587
- declare const functionsRelations: drizzle_orm20.Relations<"functions", {
29588
- functionTools: drizzle_orm20.Many<"function_tools">;
29589
- project: drizzle_orm20.One<"projects", true>;
29587
+ declare const functionsRelations: drizzle_orm0.Relations<"functions", {
29588
+ functionTools: drizzle_orm0.Many<"function_tools">;
29589
+ project: drizzle_orm0.One<"projects", true>;
29590
29590
  }>;
29591
- declare const subAgentRelationsRelations: drizzle_orm20.Relations<"sub_agent_relations", {
29592
- agent: drizzle_orm20.One<"agent", true>;
29593
- sourceSubAgent: drizzle_orm20.One<"sub_agents", true>;
29594
- targetSubAgent: drizzle_orm20.One<"sub_agents", false>;
29591
+ declare const subAgentRelationsRelations: drizzle_orm0.Relations<"sub_agent_relations", {
29592
+ agent: drizzle_orm0.One<"agent", true>;
29593
+ sourceSubAgent: drizzle_orm0.One<"sub_agents", true>;
29594
+ targetSubAgent: drizzle_orm0.One<"sub_agents", false>;
29595
29595
  }>;
29596
- declare const functionToolsRelations: drizzle_orm20.Relations<"function_tools", {
29597
- project: drizzle_orm20.One<"projects", true>;
29598
- agent: drizzle_orm20.One<"agent", true>;
29599
- function: drizzle_orm20.One<"functions", true>;
29600
- subAgentRelations: drizzle_orm20.Many<"sub_agent_function_tool_relations">;
29596
+ declare const functionToolsRelations: drizzle_orm0.Relations<"function_tools", {
29597
+ project: drizzle_orm0.One<"projects", true>;
29598
+ agent: drizzle_orm0.One<"agent", true>;
29599
+ function: drizzle_orm0.One<"functions", true>;
29600
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_function_tool_relations">;
29601
29601
  }>;
29602
- declare const subAgentFunctionToolRelationsRelations: drizzle_orm20.Relations<"sub_agent_function_tool_relations", {
29603
- subAgent: drizzle_orm20.One<"sub_agents", true>;
29604
- functionTool: drizzle_orm20.One<"function_tools", true>;
29602
+ declare const subAgentFunctionToolRelationsRelations: drizzle_orm0.Relations<"sub_agent_function_tool_relations", {
29603
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29604
+ functionTool: drizzle_orm0.One<"function_tools", true>;
29605
29605
  }>;
29606
- declare const subAgentExternalAgentRelationsRelations: drizzle_orm20.Relations<"sub_agent_external_agent_relations", {
29607
- subAgent: drizzle_orm20.One<"sub_agents", true>;
29608
- externalAgent: drizzle_orm20.One<"external_agents", true>;
29606
+ declare const subAgentExternalAgentRelationsRelations: drizzle_orm0.Relations<"sub_agent_external_agent_relations", {
29607
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29608
+ externalAgent: drizzle_orm0.One<"external_agents", true>;
29609
29609
  }>;
29610
- declare const subAgentTeamAgentRelationsRelations: drizzle_orm20.Relations<"sub_agent_team_agent_relations", {
29611
- subAgent: drizzle_orm20.One<"sub_agents", true>;
29612
- targetAgent: drizzle_orm20.One<"agent", true>;
29610
+ declare const subAgentTeamAgentRelationsRelations: drizzle_orm0.Relations<"sub_agent_team_agent_relations", {
29611
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29612
+ targetAgent: drizzle_orm0.One<"agent", true>;
29613
29613
  }>;
29614
29614
  //#endregion
29615
29615
  //#region src/db/client.d.ts