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

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";
@@ -525,6 +525,18 @@ declare const SPAN_KEYS: {
525
525
  readonly ARTIFACT_DATA: "artifact.data";
526
526
  readonly ARTIFACT_NAME: "artifact.name";
527
527
  readonly ARTIFACT_DESCRIPTION: "artifact.description";
528
+ readonly CONTEXT_BREAKDOWN_SYSTEM_TEMPLATE: "context.breakdown.system_template_tokens";
529
+ readonly CONTEXT_BREAKDOWN_CORE_INSTRUCTIONS: "context.breakdown.core_instructions_tokens";
530
+ readonly CONTEXT_BREAKDOWN_AGENT_PROMPT: "context.breakdown.agent_prompt_tokens";
531
+ readonly CONTEXT_BREAKDOWN_TOOLS: "context.breakdown.tools_tokens";
532
+ readonly CONTEXT_BREAKDOWN_ARTIFACTS: "context.breakdown.artifacts_tokens";
533
+ readonly CONTEXT_BREAKDOWN_DATA_COMPONENTS: "context.breakdown.data_components_tokens";
534
+ readonly CONTEXT_BREAKDOWN_ARTIFACT_COMPONENTS: "context.breakdown.artifact_components_tokens";
535
+ readonly CONTEXT_BREAKDOWN_TRANSFER_INSTRUCTIONS: "context.breakdown.transfer_instructions_tokens";
536
+ readonly CONTEXT_BREAKDOWN_DELEGATION_INSTRUCTIONS: "context.breakdown.delegation_instructions_tokens";
537
+ readonly CONTEXT_BREAKDOWN_THINKING_PREPARATION: "context.breakdown.thinking_preparation_tokens";
538
+ readonly CONTEXT_BREAKDOWN_CONVERSATION_HISTORY: "context.breakdown.conversation_history_tokens";
539
+ readonly CONTEXT_BREAKDOWN_TOTAL: "context.breakdown.total_tokens";
528
540
  };
529
541
  declare const UNKNOWN_VALUE: "unknown";
530
542
  /** Activity Types */
@@ -1378,9 +1390,6 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1378
1390
  id: z.ZodString;
1379
1391
  name: z.ZodString;
1380
1392
  description: z.ZodNullable<z.ZodString>;
1381
- prompt: z.ZodNullable<z.ZodString>;
1382
- createdAt: z.ZodString;
1383
- updatedAt: z.ZodString;
1384
1393
  models: z.ZodNullable<z.ZodType<{
1385
1394
  base?: {
1386
1395
  model?: string | undefined;
@@ -1443,15 +1452,15 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1443
1452
  }, {
1444
1453
  stepCountIs?: number | undefined;
1445
1454
  }>>>;
1455
+ createdAt: z.ZodString;
1456
+ updatedAt: z.ZodString;
1457
+ prompt: z.ZodNullable<z.ZodString>;
1446
1458
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
1447
1459
  }, z.core.$strip>;
1448
1460
  declare const SubAgentApiInsertSchema: z.ZodObject<{
1449
1461
  id: z.ZodString;
1450
1462
  name: z.ZodString;
1451
1463
  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
1464
  models: z.ZodOptional<z.ZodObject<{
1456
1465
  base: z.ZodOptional<z.ZodObject<{
1457
1466
  model: z.ZodOptional<z.ZodString>;
@@ -1475,15 +1484,15 @@ declare const SubAgentApiInsertSchema: z.ZodObject<{
1475
1484
  }, {
1476
1485
  stepCountIs?: number | undefined;
1477
1486
  }>>>>;
1487
+ createdAt: z.ZodOptional<z.ZodString>;
1488
+ updatedAt: z.ZodOptional<z.ZodString>;
1489
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
1490
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
1479
1491
  }, z.core.$strip>;
1480
1492
  declare const SubAgentApiUpdateSchema: z.ZodObject<{
1481
1493
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1482
1494
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1483
1495
  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
1496
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
1488
1497
  base: z.ZodOptional<z.ZodObject<{
1489
1498
  model: z.ZodOptional<z.ZodString>;
@@ -1507,6 +1516,9 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
1507
1516
  }, {
1508
1517
  stepCountIs?: number | undefined;
1509
1518
  }>>>>>>;
1519
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1520
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1521
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1510
1522
  conversationHistoryConfig: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>>;
1511
1523
  }, z.core.$strip>;
1512
1524
  declare const SubAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -1935,9 +1947,9 @@ declare const ExternalSubAgentRelationInsertSchema: z.ZodObject<{
1935
1947
  }>;
1936
1948
  declare const ExternalSubAgentRelationApiInsertSchema: z.ZodObject<{
1937
1949
  id: z.ZodString;
1938
- agentId: z.ZodString;
1939
1950
  createdAt: z.ZodOptional<z.ZodString>;
1940
1951
  updatedAt: z.ZodOptional<z.ZodString>;
1952
+ agentId: z.ZodString;
1941
1953
  sourceSubAgentId: z.ZodString;
1942
1954
  targetSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1943
1955
  relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3136,7 +3148,7 @@ declare const AgentInsertSchema: drizzle_zod15.BuildSchema<"insert", {
3136
3148
  }, {}, {
3137
3149
  length: 256;
3138
3150
  }>;
3139
- }, "tenantId" | "projectId" | "id" | "name" | "description" | "prompt" | "createdAt" | "updatedAt" | "models" | "stopWhen" | "defaultSubAgentId" | "contextConfigId" | "statusUpdates">, undefined>, undefined>;
3151
+ }, "id" | "name" | "description" | "models" | "stopWhen" | "createdAt" | "updatedAt" | "tenantId" | "defaultSubAgentId" | "contextConfigId" | "prompt" | "statusUpdates" | "projectId">, undefined>, undefined>;
3140
3152
  declare const AgentUpdateSchema: z.ZodObject<{
3141
3153
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3142
3154
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -3275,9 +3287,6 @@ declare const AgentApiSelectSchema: z.ZodObject<{
3275
3287
  id: z.ZodString;
3276
3288
  name: z.ZodString;
3277
3289
  description: z.ZodNullable<z.ZodString>;
3278
- prompt: z.ZodNullable<z.ZodString>;
3279
- createdAt: z.ZodString;
3280
- updatedAt: z.ZodString;
3281
3290
  models: z.ZodNullable<z.ZodType<{
3282
3291
  base?: {
3283
3292
  model?: string | undefined;
@@ -3340,8 +3349,11 @@ declare const AgentApiSelectSchema: z.ZodObject<{
3340
3349
  }, {
3341
3350
  transferCountIs?: number | undefined;
3342
3351
  }>>>;
3352
+ createdAt: z.ZodString;
3353
+ updatedAt: z.ZodString;
3343
3354
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
3344
3355
  contextConfigId: z.ZodNullable<z.ZodString>;
3356
+ prompt: z.ZodNullable<z.ZodString>;
3345
3357
  statusUpdates: z.ZodNullable<z.ZodType<{
3346
3358
  enabled?: boolean | undefined;
3347
3359
  numEvents?: number | undefined;
@@ -3403,9 +3415,6 @@ declare const AgentApiSelectSchema: z.ZodObject<{
3403
3415
  declare const AgentApiInsertSchema: z.ZodObject<{
3404
3416
  name: z.ZodString;
3405
3417
  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
3418
  models: z.ZodOptional<z.ZodNullable<z.ZodType<{
3410
3419
  base?: {
3411
3420
  model?: string | undefined;
@@ -3468,8 +3477,11 @@ declare const AgentApiInsertSchema: z.ZodObject<{
3468
3477
  }, {
3469
3478
  transferCountIs?: number | undefined;
3470
3479
  }>>>>;
3480
+ createdAt: z.ZodOptional<z.ZodString>;
3481
+ updatedAt: z.ZodOptional<z.ZodString>;
3471
3482
  defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3472
3483
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3484
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3473
3485
  statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
3474
3486
  enabled?: boolean | undefined;
3475
3487
  numEvents?: number | undefined;
@@ -3533,9 +3545,6 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3533
3545
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3534
3546
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3535
3547
  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
3548
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
3540
3549
  base?: {
3541
3550
  model?: string | undefined;
@@ -3598,8 +3607,11 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3598
3607
  }, {
3599
3608
  transferCountIs?: number | undefined;
3600
3609
  }>>>>>>;
3610
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3611
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3601
3612
  defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3602
3613
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3614
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3603
3615
  statusUpdates: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
3604
3616
  enabled?: boolean | undefined;
3605
3617
  numEvents?: number | undefined;
@@ -4067,34 +4079,34 @@ declare const TaskUpdateSchema: z.ZodObject<{
4067
4079
  }>;
4068
4080
  declare const TaskApiSelectSchema: z.ZodObject<{
4069
4081
  id: z.ZodString;
4070
- agentId: z.ZodString;
4071
4082
  createdAt: z.ZodString;
4072
4083
  updatedAt: z.ZodString;
4073
4084
  metadata: z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
4074
- status: z.ZodString;
4085
+ agentId: z.ZodString;
4075
4086
  contextId: z.ZodString;
4087
+ status: z.ZodString;
4076
4088
  subAgentId: z.ZodString;
4077
4089
  }, z.core.$strip>;
4078
4090
  declare const TaskApiInsertSchema: z.ZodObject<{
4079
4091
  id: z.ZodString;
4080
- agentId: z.ZodString;
4081
4092
  createdAt: z.ZodOptional<z.ZodString>;
4082
4093
  updatedAt: z.ZodOptional<z.ZodString>;
4083
4094
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
4084
- status: z.ZodString;
4095
+ agentId: z.ZodString;
4085
4096
  conversationId: z.ZodOptional<z.ZodString>;
4086
4097
  contextId: z.ZodString;
4098
+ status: z.ZodString;
4087
4099
  subAgentId: z.ZodString;
4088
4100
  }, z.core.$strip>;
4089
4101
  declare const TaskApiUpdateSchema: z.ZodObject<{
4090
4102
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4091
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4092
4103
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4093
4104
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4094
4105
  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>>;
4106
+ agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4096
4107
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4097
4108
  contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4109
+ status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4098
4110
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4099
4111
  }, z.core.$strip>;
4100
4112
  declare const TaskRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -5435,8 +5447,8 @@ declare const ConversationApiSelectSchema: z.ZodObject<{
5435
5447
  title: z.ZodNullable<z.ZodString>;
5436
5448
  createdAt: z.ZodString;
5437
5449
  updatedAt: z.ZodString;
5438
- userId: z.ZodNullable<z.ZodString>;
5439
5450
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
5451
+ userId: z.ZodNullable<z.ZodString>;
5440
5452
  activeSubAgentId: z.ZodString;
5441
5453
  lastContextResolution: z.ZodNullable<z.ZodString>;
5442
5454
  }, z.core.$strip>;
@@ -5445,9 +5457,9 @@ declare const ConversationApiInsertSchema: z.ZodObject<{
5445
5457
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5446
5458
  createdAt: z.ZodOptional<z.ZodString>;
5447
5459
  updatedAt: z.ZodOptional<z.ZodString>;
5448
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5449
5460
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
5450
5461
  contextConfigId: z.ZodOptional<z.ZodString>;
5462
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5451
5463
  activeSubAgentId: z.ZodString;
5452
5464
  lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5453
5465
  }, z.core.$strip>;
@@ -5456,9 +5468,9 @@ declare const ConversationApiUpdateSchema: z.ZodObject<{
5456
5468
  title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5457
5469
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5458
5470
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5459
- userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5460
5471
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
5461
5472
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5473
+ userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5462
5474
  activeSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5463
5475
  lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5464
5476
  }, z.core.$strip>;
@@ -6312,15 +6324,15 @@ declare const MessageApiSelectSchema: z.ZodObject<{
6312
6324
  createdAt: z.ZodString;
6313
6325
  updatedAt: z.ZodString;
6314
6326
  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
6327
  conversationId: z.ZodString;
6328
+ role: z.ZodString;
6318
6329
  fromSubAgentId: z.ZodNullable<z.ZodString>;
6319
6330
  toSubAgentId: z.ZodNullable<z.ZodString>;
6320
6331
  fromExternalAgentId: z.ZodNullable<z.ZodString>;
6321
6332
  toExternalAgentId: z.ZodNullable<z.ZodString>;
6322
6333
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
6323
6334
  toTeamAgentId: z.ZodNullable<z.ZodString>;
6335
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
6324
6336
  visibility: z.ZodString;
6325
6337
  messageType: z.ZodString;
6326
6338
  taskId: z.ZodNullable<z.ZodString>;
@@ -6333,15 +6345,15 @@ declare const MessageApiInsertSchema: z.ZodObject<{
6333
6345
  createdAt: z.ZodOptional<z.ZodString>;
6334
6346
  updatedAt: z.ZodOptional<z.ZodString>;
6335
6347
  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
6348
  conversationId: z.ZodString;
6349
+ role: z.ZodString;
6339
6350
  fromSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6340
6351
  toSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6341
6352
  fromExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6342
6353
  toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6343
6354
  fromTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6344
6355
  toTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6356
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
6345
6357
  visibility: z.ZodOptional<z.ZodString>;
6346
6358
  messageType: z.ZodOptional<z.ZodString>;
6347
6359
  taskId: z.ZodOptional<z.ZodString>;
@@ -6354,15 +6366,15 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
6354
6366
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6355
6367
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6356
6368
  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
6369
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6370
+ role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6360
6371
  fromSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6361
6372
  toSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6362
6373
  fromExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6363
6374
  toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6364
6375
  fromTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6365
6376
  toTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6377
+ content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
6366
6378
  visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6367
6379
  messageType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6368
6380
  taskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -7331,7 +7343,7 @@ declare const ContextCacheInsertSchema: drizzle_zod15.BuildSchema<"insert", {
7331
7343
  }, {}, {
7332
7344
  length: 256;
7333
7345
  }>;
7334
- }, "tenantId" | "projectId" | "id" | "value" | "createdAt" | "updatedAt" | "contextConfigId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
7346
+ }, "id" | "value" | "createdAt" | "updatedAt" | "tenantId" | "contextConfigId" | "projectId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
7335
7347
  declare const ContextCacheUpdateSchema: z.ZodObject<{
7336
7348
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7337
7349
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -7761,11 +7773,11 @@ declare const DataComponentInsertSchema: z.ZodObject<{
7761
7773
  in: {};
7762
7774
  }>;
7763
7775
  declare const DataComponentBaseSchema: z.ZodObject<{
7764
- tenantId: z.ZodString;
7765
- projectId: z.ZodString;
7766
7776
  id: z.ZodString;
7767
7777
  name: z.ZodString;
7768
7778
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7779
+ tenantId: z.ZodString;
7780
+ projectId: z.ZodString;
7769
7781
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
7770
7782
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
7771
7783
  component: string;
@@ -8402,7 +8414,7 @@ declare const SubAgentDataComponentInsertSchema: drizzle_zod15.BuildSchema<"inse
8402
8414
  }, {}, {
8403
8415
  length: 256;
8404
8416
  }>;
8405
- }, "tenantId" | "projectId" | "id" | "agentId" | "createdAt" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
8417
+ }, "id" | "createdAt" | "tenantId" | "projectId" | "agentId" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
8406
8418
  declare const SubAgentDataComponentUpdateSchema: z.ZodObject<{
8407
8419
  dataComponentId: z.ZodOptional<z.ZodString>;
8408
8420
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -9136,36 +9148,33 @@ declare const ExternalAgentApiSelectSchema: z.ZodObject<{
9136
9148
  id: z.ZodString;
9137
9149
  name: z.ZodString;
9138
9150
  description: z.ZodNullable<z.ZodString>;
9139
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9140
9151
  createdAt: z.ZodString;
9141
9152
  updatedAt: z.ZodString;
9142
9153
  baseUrl: z.ZodString;
9154
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9143
9155
  }, z.core.$strip>;
9144
9156
  declare const ExternalAgentApiInsertSchema: z.ZodObject<{
9145
9157
  id: z.ZodString;
9146
9158
  name: z.ZodString;
9147
9159
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9148
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9149
9160
  createdAt: z.ZodOptional<z.ZodString>;
9150
9161
  updatedAt: z.ZodOptional<z.ZodString>;
9151
9162
  baseUrl: z.ZodString;
9163
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9152
9164
  }, z.core.$strip>;
9153
9165
  declare const ExternalAgentApiUpdateSchema: z.ZodObject<{
9154
9166
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9155
9167
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9156
9168
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9157
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9158
9169
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
9159
9170
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
9160
9171
  baseUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9172
+ credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9161
9173
  }, z.core.$strip>;
9162
9174
  declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9163
9175
  id: z.ZodString;
9164
9176
  name: z.ZodString;
9165
9177
  description: z.ZodNullable<z.ZodString>;
9166
- prompt: z.ZodNullable<z.ZodString>;
9167
- createdAt: z.ZodString;
9168
- updatedAt: z.ZodString;
9169
9178
  models: z.ZodNullable<z.ZodType<{
9170
9179
  base?: {
9171
9180
  model?: string | undefined;
@@ -9228,16 +9237,19 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9228
9237
  }, {
9229
9238
  stepCountIs?: number | undefined;
9230
9239
  }>>>;
9240
+ createdAt: z.ZodString;
9241
+ updatedAt: z.ZodString;
9242
+ prompt: z.ZodNullable<z.ZodString>;
9231
9243
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
9232
9244
  type: z.ZodLiteral<"internal">;
9233
9245
  }, z.core.$strip>, z.ZodObject<{
9234
9246
  id: z.ZodString;
9235
9247
  name: z.ZodString;
9236
9248
  description: z.ZodNullable<z.ZodString>;
9237
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9238
9249
  createdAt: z.ZodString;
9239
9250
  updatedAt: z.ZodString;
9240
9251
  baseUrl: z.ZodString;
9252
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9241
9253
  type: z.ZodLiteral<"external">;
9242
9254
  }, z.core.$strip>], "type">;
9243
9255
  declare const ApiKeySelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -9702,10 +9714,10 @@ declare const ApiKeyInsertSchema: z.ZodObject<{
9702
9714
  }>;
9703
9715
  declare const ApiKeyUpdateSchema: z.ZodObject<{
9704
9716
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9717
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9705
9718
  agentId: z.ZodOptional<z.ZodString>;
9706
9719
  lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9707
9720
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9708
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9709
9721
  }, {
9710
9722
  out: {};
9711
9723
  in: {};
@@ -9713,13 +9725,13 @@ declare const ApiKeyUpdateSchema: z.ZodObject<{
9713
9725
  declare const ApiKeyApiSelectSchema: z.ZodObject<{
9714
9726
  id: z.ZodString;
9715
9727
  name: z.ZodNullable<z.ZodString>;
9728
+ createdAt: z.ZodString;
9729
+ updatedAt: z.ZodString;
9716
9730
  agentId: z.ZodString;
9717
9731
  publicId: z.ZodString;
9718
9732
  keyPrefix: z.ZodString;
9719
9733
  lastUsedAt: z.ZodNullable<z.ZodString>;
9720
9734
  expiresAt: z.ZodNullable<z.ZodString>;
9721
- createdAt: z.ZodString;
9722
- updatedAt: z.ZodString;
9723
9735
  }, {
9724
9736
  out: {};
9725
9737
  in: {};
@@ -9729,13 +9741,13 @@ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
9729
9741
  apiKey: z.ZodObject<{
9730
9742
  id: z.ZodString;
9731
9743
  name: z.ZodNullable<z.ZodString>;
9744
+ createdAt: z.ZodString;
9745
+ updatedAt: z.ZodString;
9732
9746
  agentId: z.ZodString;
9733
9747
  publicId: z.ZodString;
9734
9748
  keyPrefix: z.ZodString;
9735
9749
  lastUsedAt: z.ZodNullable<z.ZodString>;
9736
9750
  expiresAt: z.ZodNullable<z.ZodString>;
9737
- createdAt: z.ZodString;
9738
- updatedAt: z.ZodString;
9739
9751
  }, {
9740
9752
  out: {};
9741
9753
  in: {};
@@ -9745,20 +9757,20 @@ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
9745
9757
  }, z.core.$strip>;
9746
9758
  declare const ApiKeyApiInsertSchema: z.ZodObject<{
9747
9759
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9748
- agentId: z.ZodString;
9749
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9750
9760
  createdAt: z.ZodOptional<z.ZodString>;
9751
9761
  updatedAt: z.ZodOptional<z.ZodString>;
9762
+ agentId: z.ZodString;
9763
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9752
9764
  }, {
9753
9765
  out: {};
9754
9766
  in: {};
9755
9767
  }>;
9756
9768
  declare const ApiKeyApiUpdateSchema: z.ZodObject<{
9757
9769
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9770
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9758
9771
  agentId: z.ZodOptional<z.ZodString>;
9759
9772
  lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9760
9773
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9761
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9762
9774
  }, {
9763
9775
  out: {};
9764
9776
  in: {};
@@ -10255,8 +10267,8 @@ declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
10255
10267
  updatedAt: z.ZodString;
10256
10268
  credentialStoreId: z.ZodString;
10257
10269
  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
10270
  toolId: z.ZodNullable<z.ZodString>;
10271
+ userId: z.ZodNullable<z.ZodString>;
10260
10272
  createdBy: z.ZodNullable<z.ZodString>;
10261
10273
  type: z.ZodEnum<{
10262
10274
  readonly memory: "memory";
@@ -10812,8 +10824,8 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
10812
10824
  updatedAt: z.ZodOptional<z.ZodString>;
10813
10825
  credentialStoreId: z.ZodString;
10814
10826
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10815
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10816
10827
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10828
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10817
10829
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10818
10830
  type: z.ZodEnum<{
10819
10831
  readonly memory: "memory";
@@ -10828,8 +10840,8 @@ declare const CredentialReferenceApiUpdateSchema: z.ZodObject<{
10828
10840
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10829
10841
  credentialStoreId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10830
10842
  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
10843
  toolId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10844
+ userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10833
10845
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10834
10846
  type: z.ZodOptional<z.ZodEnum<{
10835
10847
  readonly memory: "memory";
@@ -10946,13 +10958,13 @@ declare const McpToolSchema: z.ZodObject<{
10946
10958
  declare const MCPToolConfigSchema: z.ZodObject<{
10947
10959
  id: z.ZodString;
10948
10960
  name: z.ZodString;
10949
- expiresAt: z.ZodOptional<z.ZodString>;
10950
10961
  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
10962
  credentialScope: z.ZodOptional<z.ZodString>;
10963
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10953
10964
  imageUrl: z.ZodOptional<z.ZodString>;
10954
10965
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
10955
10966
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10967
+ expiresAt: z.ZodOptional<z.ZodString>;
10956
10968
  availableTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
10957
10969
  name: z.ZodString;
10958
10970
  description: z.ZodOptional<z.ZodString>;
@@ -10985,8 +10997,8 @@ declare const MCPToolConfigSchema: z.ZodObject<{
10985
10997
  updatedAt: z.ZodOptional<z.ZodString>;
10986
10998
  credentialStoreId: z.ZodString;
10987
10999
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10988
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10989
11000
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11001
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10990
11002
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10991
11003
  type: z.ZodEnum<{
10992
11004
  readonly memory: "memory";
@@ -11039,6 +11051,9 @@ declare const ToolApiSelectSchema: z.ZodObject<{
11039
11051
  id: z.ZodString;
11040
11052
  name: z.ZodString;
11041
11053
  description: z.ZodNullable<z.ZodString>;
11054
+ createdAt: z.ZodString;
11055
+ updatedAt: z.ZodString;
11056
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
11042
11057
  config: z.ZodType<{
11043
11058
  type: "mcp";
11044
11059
  mcp: ToolMcpConfig;
@@ -11052,11 +11067,8 @@ declare const ToolApiSelectSchema: z.ZodObject<{
11052
11067
  type: "mcp";
11053
11068
  mcp: ToolMcpConfig;
11054
11069
  }>>;
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
11070
  credentialScope: z.ZodString;
11071
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
11060
11072
  imageUrl: z.ZodNullable<z.ZodString>;
11061
11073
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
11062
11074
  lastError: z.ZodNullable<z.ZodString>;
@@ -11065,6 +11077,9 @@ declare const ToolApiInsertSchema: z.ZodObject<{
11065
11077
  id: z.ZodString;
11066
11078
  name: z.ZodString;
11067
11079
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11080
+ createdAt: z.ZodOptional<z.ZodString>;
11081
+ updatedAt: z.ZodOptional<z.ZodString>;
11082
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11068
11083
  config: z.ZodObject<{
11069
11084
  type: z.ZodLiteral<"mcp">;
11070
11085
  mcp: z.ZodObject<{
@@ -11084,11 +11099,8 @@ declare const ToolApiInsertSchema: z.ZodObject<{
11084
11099
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
11085
11100
  }, z.core.$strip>;
11086
11101
  }, 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
11102
  credentialScope: z.ZodOptional<z.ZodString>;
11103
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
11092
11104
  imageUrl: z.ZodOptional<z.ZodString>;
11093
11105
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
11094
11106
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -11097,6 +11109,9 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
11097
11109
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11098
11110
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11099
11111
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11112
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11113
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11114
+ credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11100
11115
  config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
11101
11116
  type: z.ZodLiteral<"mcp">;
11102
11117
  mcp: z.ZodObject<{
@@ -11116,11 +11131,8 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
11116
11131
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
11117
11132
  }, z.core.$strip>;
11118
11133
  }, 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
11134
  credentialScope: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11135
+ 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
11136
  imageUrl: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11125
11137
  capabilities: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
11126
11138
  lastError: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
@@ -11490,9 +11502,9 @@ declare const FunctionToolApiSelectSchema: z.ZodObject<{
11490
11502
  id: z.ZodString;
11491
11503
  name: z.ZodString;
11492
11504
  description: z.ZodNullable<z.ZodString>;
11493
- agentId: z.ZodString;
11494
11505
  createdAt: z.ZodString;
11495
11506
  updatedAt: z.ZodString;
11507
+ agentId: z.ZodString;
11496
11508
  functionId: z.ZodString;
11497
11509
  }, z.core.$strip>;
11498
11510
  declare const FunctionToolApiInsertSchema: z.ZodObject<{
@@ -11507,9 +11519,9 @@ declare const FunctionToolApiUpdateSchema: z.ZodObject<{
11507
11519
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11508
11520
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11509
11521
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11510
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11511
11522
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11512
11523
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11524
+ agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11513
11525
  functionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11514
11526
  }, z.core.$strip>;
11515
11527
  declare const FunctionSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -11903,8 +11915,8 @@ declare const FetchDefinitionSchema: z.ZodObject<{
11903
11915
  updatedAt: z.ZodOptional<z.ZodString>;
11904
11916
  credentialStoreId: z.ZodString;
11905
11917
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11906
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11907
11918
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11919
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11908
11920
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11909
11921
  type: z.ZodEnum<{
11910
11922
  readonly memory: "memory";
@@ -11927,23 +11939,23 @@ declare const ContextConfigSelectSchema: z.ZodObject<{
11927
11939
  in: {};
11928
11940
  }>;
11929
11941
  declare const ContextConfigInsertSchema: z.ZodObject<{
11942
+ id: z.ZodOptional<z.ZodString>;
11930
11943
  tenantId: z.ZodString;
11931
11944
  projectId: z.ZodString;
11932
- id: z.ZodOptional<z.ZodString>;
11933
- agentId: z.ZodString;
11934
11945
  headersSchema: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11935
11946
  contextVariables: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11947
+ agentId: z.ZodString;
11936
11948
  }, {
11937
11949
  out: {};
11938
11950
  in: {};
11939
11951
  }>;
11940
11952
  declare const ContextConfigUpdateSchema: z.ZodObject<{
11953
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11941
11954
  tenantId: z.ZodOptional<z.ZodString>;
11942
11955
  projectId: z.ZodOptional<z.ZodString>;
11943
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11944
- agentId: z.ZodOptional<z.ZodString>;
11945
11956
  headersSchema: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11946
11957
  contextVariables: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11958
+ agentId: z.ZodOptional<z.ZodString>;
11947
11959
  }, {
11948
11960
  out: {};
11949
11961
  in: {};
@@ -12427,34 +12439,34 @@ declare const SubAgentToolRelationApiSelectSchema: z.ZodObject<{
12427
12439
  createdAt: z.ZodString;
12428
12440
  updatedAt: z.ZodString;
12429
12441
  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
12442
  subAgentId: z.ZodString;
12443
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12433
12444
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12445
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12434
12446
  }, z.core.$strip>;
12435
12447
  declare const SubAgentToolRelationApiInsertSchema: z.ZodObject<{
12436
12448
  id: z.ZodString;
12437
12449
  createdAt: z.ZodOptional<z.ZodString>;
12438
12450
  updatedAt: z.ZodOptional<z.ZodString>;
12439
12451
  toolId: z.ZodString;
12452
+ subAgentId: z.ZodString;
12440
12453
  headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
12454
+ selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12441
12455
  toolPolicies: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
12442
12456
  needsApproval: z.ZodOptional<z.ZodBoolean>;
12443
12457
  }, z.core.$strip>>>>;
12444
- subAgentId: z.ZodString;
12445
- selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12446
12458
  }, z.core.$strip>;
12447
12459
  declare const SubAgentToolRelationApiUpdateSchema: z.ZodObject<{
12448
12460
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12449
12461
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12450
12462
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12451
12463
  toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12464
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12452
12465
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12466
+ selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
12453
12467
  toolPolicies: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
12454
12468
  needsApproval: z.ZodOptional<z.ZodBoolean>;
12455
12469
  }, 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
12470
  }, z.core.$strip>;
12459
12471
  declare const SubAgentExternalAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
12460
12472
  createdAt: drizzle_orm_pg_core495.PgColumn<{
@@ -12825,9 +12837,9 @@ declare const SubAgentExternalAgentRelationApiSelectSchema: z.ZodObject<{
12825
12837
  id: z.ZodString;
12826
12838
  createdAt: z.ZodString;
12827
12839
  updatedAt: z.ZodString;
12840
+ subAgentId: z.ZodString;
12828
12841
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12829
12842
  externalAgentId: z.ZodString;
12830
- subAgentId: z.ZodString;
12831
12843
  }, z.core.$strip>;
12832
12844
  declare const SubAgentExternalAgentRelationApiInsertSchema: z.ZodObject<{
12833
12845
  createdAt: z.ZodOptional<z.ZodString>;
@@ -12839,9 +12851,9 @@ declare const SubAgentExternalAgentRelationApiUpdateSchema: z.ZodObject<{
12839
12851
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12840
12852
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12841
12853
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12854
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12842
12855
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12843
12856
  externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12844
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12845
12857
  }, z.core.$strip>;
12846
12858
  declare const SubAgentTeamAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
12847
12859
  createdAt: drizzle_orm_pg_core495.PgColumn<{
@@ -13212,8 +13224,8 @@ declare const SubAgentTeamAgentRelationApiSelectSchema: z.ZodObject<{
13212
13224
  id: z.ZodString;
13213
13225
  createdAt: z.ZodString;
13214
13226
  updatedAt: z.ZodString;
13215
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13216
13227
  subAgentId: z.ZodString;
13228
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13217
13229
  targetAgentId: z.ZodString;
13218
13230
  }, z.core.$strip>;
13219
13231
  declare const SubAgentTeamAgentRelationApiInsertSchema: z.ZodObject<{
@@ -13226,8 +13238,8 @@ declare const SubAgentTeamAgentRelationApiUpdateSchema: z.ZodObject<{
13226
13238
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13227
13239
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13228
13240
  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
13241
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13242
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
13231
13243
  targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13232
13244
  }, z.core.$strip>;
13233
13245
  declare const LedgerArtifactSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -14571,7 +14583,7 @@ declare const LedgerArtifactInsertSchema: drizzle_zod15.BuildSchema<"insert", {
14571
14583
  }, {}, {
14572
14584
  length: 256;
14573
14585
  }>;
14574
- }, "tenantId" | "projectId" | "id" | "type" | "name" | "description" | "createdAt" | "updatedAt" | "metadata" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
14586
+ }, "id" | "name" | "description" | "type" | "createdAt" | "updatedAt" | "tenantId" | "metadata" | "projectId" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
14575
14587
  declare const LedgerArtifactUpdateSchema: z.ZodObject<{
14576
14588
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14577
14589
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -14597,9 +14609,9 @@ declare const LedgerArtifactUpdateSchema: z.ZodObject<{
14597
14609
  }>;
14598
14610
  declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14599
14611
  id: z.ZodString;
14600
- type: z.ZodString;
14601
14612
  name: z.ZodNullable<z.ZodString>;
14602
14613
  description: z.ZodNullable<z.ZodString>;
14614
+ type: z.ZodString;
14603
14615
  createdAt: z.ZodString;
14604
14616
  updatedAt: z.ZodString;
14605
14617
  metadata: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
@@ -14615,9 +14627,9 @@ declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14615
14627
  }, z.core.$strip>;
14616
14628
  declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14617
14629
  id: z.ZodString;
14618
- type: z.ZodOptional<z.ZodString>;
14619
14630
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14620
14631
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14632
+ type: z.ZodOptional<z.ZodString>;
14621
14633
  createdAt: z.ZodOptional<z.ZodString>;
14622
14634
  updatedAt: z.ZodOptional<z.ZodString>;
14623
14635
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
@@ -14633,9 +14645,9 @@ declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14633
14645
  }, z.core.$strip>;
14634
14646
  declare const LedgerArtifactApiUpdateSchema: z.ZodObject<{
14635
14647
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14636
- type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14637
14648
  name: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14638
14649
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14650
+ type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14639
14651
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14640
14652
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14641
14653
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
@@ -14701,8 +14713,6 @@ declare const FullAgentAgentInsertSchema: z.ZodObject<{
14701
14713
  id: z.ZodString;
14702
14714
  name: z.ZodString;
14703
14715
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14704
- createdAt: z.ZodOptional<z.ZodString>;
14705
- updatedAt: z.ZodOptional<z.ZodString>;
14706
14716
  models: z.ZodOptional<z.ZodObject<{
14707
14717
  base: z.ZodOptional<z.ZodObject<{
14708
14718
  model: z.ZodOptional<z.ZodString>;
@@ -14726,6 +14736,8 @@ declare const FullAgentAgentInsertSchema: z.ZodObject<{
14726
14736
  }, {
14727
14737
  stepCountIs?: number | undefined;
14728
14738
  }>>>>;
14739
+ createdAt: z.ZodOptional<z.ZodString>;
14740
+ updatedAt: z.ZodOptional<z.ZodString>;
14729
14741
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
14730
14742
  type: z.ZodLiteral<"internal">;
14731
14743
  canUse: z.ZodArray<z.ZodObject<{
@@ -14763,8 +14775,6 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14763
14775
  id: z.ZodString;
14764
14776
  name: z.ZodString;
14765
14777
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14766
- createdAt: z.ZodOptional<z.ZodString>;
14767
- updatedAt: z.ZodOptional<z.ZodString>;
14768
14778
  models: z.ZodOptional<z.ZodObject<{
14769
14779
  base: z.ZodOptional<z.ZodObject<{
14770
14780
  model: z.ZodOptional<z.ZodString>;
@@ -14788,6 +14798,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14788
14798
  }, {
14789
14799
  stepCountIs?: number | undefined;
14790
14800
  }>>>>;
14801
+ createdAt: z.ZodOptional<z.ZodString>;
14802
+ updatedAt: z.ZodOptional<z.ZodString>;
14791
14803
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
14792
14804
  type: z.ZodLiteral<"internal">;
14793
14805
  canUse: z.ZodArray<z.ZodObject<{
@@ -14817,6 +14829,9 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14817
14829
  id: z.ZodString;
14818
14830
  name: z.ZodString;
14819
14831
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14832
+ createdAt: z.ZodOptional<z.ZodString>;
14833
+ updatedAt: z.ZodOptional<z.ZodString>;
14834
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14820
14835
  config: z.ZodObject<{
14821
14836
  type: z.ZodLiteral<"mcp">;
14822
14837
  mcp: z.ZodObject<{
@@ -14836,11 +14851,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14836
14851
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14837
14852
  }, z.core.$strip>;
14838
14853
  }, 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
14854
  credentialScope: z.ZodOptional<z.ZodString>;
14855
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14844
14856
  imageUrl: z.ZodOptional<z.ZodString>;
14845
14857
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
14846
14858
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14849,10 +14861,10 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14849
14861
  id: z.ZodString;
14850
14862
  name: z.ZodString;
14851
14863
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14852
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14853
14864
  createdAt: z.ZodOptional<z.ZodString>;
14854
14865
  updatedAt: z.ZodOptional<z.ZodString>;
14855
14866
  baseUrl: z.ZodString;
14867
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14856
14868
  }, z.core.$strip>>>;
14857
14869
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14858
14870
  id: z.ZodString;
@@ -14974,7 +14986,6 @@ declare const ProjectSelectSchema: z.ZodObject<{
14974
14986
  in: {};
14975
14987
  }>;
14976
14988
  declare const ProjectInsertSchema: z.ZodObject<{
14977
- tenantId: z.ZodString;
14978
14989
  id: z.ZodString;
14979
14990
  name: z.ZodString;
14980
14991
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14996,6 +15007,7 @@ declare const ProjectInsertSchema: z.ZodObject<{
14996
15007
  transferCountIs: z.ZodOptional<z.ZodNumber>;
14997
15008
  stepCountIs: z.ZodOptional<z.ZodNumber>;
14998
15009
  }, z.core.$strip>>;
15010
+ tenantId: z.ZodString;
14999
15011
  }, {
15000
15012
  out: {};
15001
15013
  in: {};
@@ -15029,8 +15041,6 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
15029
15041
  id: z.ZodString;
15030
15042
  name: z.ZodString;
15031
15043
  description: z.ZodNullable<z.ZodString>;
15032
- createdAt: z.ZodString;
15033
- updatedAt: z.ZodString;
15034
15044
  models: z.ZodNullable<z.ZodObject<{
15035
15045
  base: z.ZodObject<{
15036
15046
  model: z.ZodOptional<z.ZodString>;
@@ -15049,6 +15059,8 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
15049
15059
  transferCountIs: z.ZodOptional<z.ZodNumber>;
15050
15060
  stepCountIs: z.ZodOptional<z.ZodNumber>;
15051
15061
  }, z.core.$strip>>;
15062
+ createdAt: z.ZodString;
15063
+ updatedAt: z.ZodString;
15052
15064
  }, {
15053
15065
  out: {};
15054
15066
  in: {};
@@ -15138,8 +15150,6 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15138
15150
  id: z.ZodString;
15139
15151
  name: z.ZodString;
15140
15152
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15141
- createdAt: z.ZodOptional<z.ZodString>;
15142
- updatedAt: z.ZodOptional<z.ZodString>;
15143
15153
  models: z.ZodOptional<z.ZodObject<{
15144
15154
  base: z.ZodOptional<z.ZodObject<{
15145
15155
  model: z.ZodOptional<z.ZodString>;
@@ -15163,6 +15173,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15163
15173
  }, {
15164
15174
  stepCountIs?: number | undefined;
15165
15175
  }>>>>;
15176
+ createdAt: z.ZodOptional<z.ZodString>;
15177
+ updatedAt: z.ZodOptional<z.ZodString>;
15166
15178
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
15167
15179
  type: z.ZodLiteral<"internal">;
15168
15180
  canUse: z.ZodArray<z.ZodObject<{
@@ -15192,6 +15204,9 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15192
15204
  id: z.ZodString;
15193
15205
  name: z.ZodString;
15194
15206
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15207
+ createdAt: z.ZodOptional<z.ZodString>;
15208
+ updatedAt: z.ZodOptional<z.ZodString>;
15209
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15195
15210
  config: z.ZodObject<{
15196
15211
  type: z.ZodLiteral<"mcp">;
15197
15212
  mcp: z.ZodObject<{
@@ -15211,11 +15226,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15211
15226
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
15212
15227
  }, z.core.$strip>;
15213
15228
  }, 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
15229
  credentialScope: z.ZodOptional<z.ZodString>;
15230
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
15219
15231
  imageUrl: z.ZodOptional<z.ZodString>;
15220
15232
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
15221
15233
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15224,10 +15236,10 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15224
15236
  id: z.ZodString;
15225
15237
  name: z.ZodString;
15226
15238
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15227
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15228
15239
  createdAt: z.ZodOptional<z.ZodString>;
15229
15240
  updatedAt: z.ZodOptional<z.ZodString>;
15230
15241
  baseUrl: z.ZodString;
15242
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15231
15243
  }, z.core.$strip>>>;
15232
15244
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
15233
15245
  id: z.ZodString;
@@ -15293,6 +15305,9 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15293
15305
  id: z.ZodString;
15294
15306
  name: z.ZodString;
15295
15307
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15308
+ createdAt: z.ZodOptional<z.ZodString>;
15309
+ updatedAt: z.ZodOptional<z.ZodString>;
15310
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15296
15311
  config: z.ZodObject<{
15297
15312
  type: z.ZodLiteral<"mcp">;
15298
15313
  mcp: z.ZodObject<{
@@ -15312,11 +15327,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15312
15327
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
15313
15328
  }, z.core.$strip>;
15314
15329
  }, 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
15330
  credentialScope: z.ZodOptional<z.ZodString>;
15331
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
15320
15332
  imageUrl: z.ZodOptional<z.ZodString>;
15321
15333
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
15322
15334
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15371,10 +15383,10 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15371
15383
  id: z.ZodString;
15372
15384
  name: z.ZodString;
15373
15385
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15374
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15375
15386
  createdAt: z.ZodOptional<z.ZodString>;
15376
15387
  updatedAt: z.ZodOptional<z.ZodString>;
15377
15388
  baseUrl: z.ZodString;
15389
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15378
15390
  }, z.core.$strip>>>;
15379
15391
  statusUpdates: z.ZodOptional<z.ZodObject<{
15380
15392
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -15398,8 +15410,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
15398
15410
  updatedAt: z.ZodOptional<z.ZodString>;
15399
15411
  credentialStoreId: z.ZodString;
15400
15412
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15401
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15402
15413
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15414
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15403
15415
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15404
15416
  type: z.ZodEnum<{
15405
15417
  readonly memory: "memory";
@@ -15418,8 +15430,6 @@ declare const ProjectResponse: z.ZodObject<{
15418
15430
  id: z.ZodString;
15419
15431
  name: z.ZodString;
15420
15432
  description: z.ZodNullable<z.ZodString>;
15421
- createdAt: z.ZodString;
15422
- updatedAt: z.ZodString;
15423
15433
  models: z.ZodNullable<z.ZodObject<{
15424
15434
  base: z.ZodObject<{
15425
15435
  model: z.ZodOptional<z.ZodString>;
@@ -15438,6 +15448,8 @@ declare const ProjectResponse: z.ZodObject<{
15438
15448
  transferCountIs: z.ZodOptional<z.ZodNumber>;
15439
15449
  stepCountIs: z.ZodOptional<z.ZodNumber>;
15440
15450
  }, z.core.$strip>>;
15451
+ createdAt: z.ZodString;
15452
+ updatedAt: z.ZodString;
15441
15453
  }, {
15442
15454
  out: {};
15443
15455
  in: {};
@@ -15448,9 +15460,6 @@ declare const SubAgentResponse: z.ZodObject<{
15448
15460
  id: z.ZodString;
15449
15461
  name: z.ZodString;
15450
15462
  description: z.ZodNullable<z.ZodString>;
15451
- prompt: z.ZodNullable<z.ZodString>;
15452
- createdAt: z.ZodString;
15453
- updatedAt: z.ZodString;
15454
15463
  models: z.ZodNullable<z.ZodType<{
15455
15464
  base?: {
15456
15465
  model?: string | undefined;
@@ -15513,6 +15522,9 @@ declare const SubAgentResponse: z.ZodObject<{
15513
15522
  }, {
15514
15523
  stepCountIs?: number | undefined;
15515
15524
  }>>>;
15525
+ createdAt: z.ZodString;
15526
+ updatedAt: z.ZodString;
15527
+ prompt: z.ZodNullable<z.ZodString>;
15516
15528
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
15517
15529
  }, z.core.$strip>;
15518
15530
  }, z.core.$strip>;
@@ -15521,9 +15533,6 @@ declare const AgentResponse: z.ZodObject<{
15521
15533
  id: z.ZodString;
15522
15534
  name: z.ZodString;
15523
15535
  description: z.ZodNullable<z.ZodString>;
15524
- prompt: z.ZodNullable<z.ZodString>;
15525
- createdAt: z.ZodString;
15526
- updatedAt: z.ZodString;
15527
15536
  models: z.ZodNullable<z.ZodType<{
15528
15537
  base?: {
15529
15538
  model?: string | undefined;
@@ -15586,8 +15595,11 @@ declare const AgentResponse: z.ZodObject<{
15586
15595
  }, {
15587
15596
  transferCountIs?: number | undefined;
15588
15597
  }>>>;
15598
+ createdAt: z.ZodString;
15599
+ updatedAt: z.ZodString;
15589
15600
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
15590
15601
  contextConfigId: z.ZodNullable<z.ZodString>;
15602
+ prompt: z.ZodNullable<z.ZodString>;
15591
15603
  statusUpdates: z.ZodNullable<z.ZodType<{
15592
15604
  enabled?: boolean | undefined;
15593
15605
  numEvents?: number | undefined;
@@ -15652,6 +15664,9 @@ declare const ToolResponse: z.ZodObject<{
15652
15664
  id: z.ZodString;
15653
15665
  name: z.ZodString;
15654
15666
  description: z.ZodNullable<z.ZodString>;
15667
+ createdAt: z.ZodString;
15668
+ updatedAt: z.ZodString;
15669
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
15655
15670
  config: z.ZodType<{
15656
15671
  type: "mcp";
15657
15672
  mcp: ToolMcpConfig;
@@ -15665,11 +15680,8 @@ declare const ToolResponse: z.ZodObject<{
15665
15680
  type: "mcp";
15666
15681
  mcp: ToolMcpConfig;
15667
15682
  }>>;
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
15683
  credentialScope: z.ZodString;
15684
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15673
15685
  imageUrl: z.ZodNullable<z.ZodString>;
15674
15686
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
15675
15687
  lastError: z.ZodNullable<z.ZodString>;
@@ -15680,10 +15692,10 @@ declare const ExternalAgentResponse: z.ZodObject<{
15680
15692
  id: z.ZodString;
15681
15693
  name: z.ZodString;
15682
15694
  description: z.ZodNullable<z.ZodString>;
15683
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15684
15695
  createdAt: z.ZodString;
15685
15696
  updatedAt: z.ZodString;
15686
15697
  baseUrl: z.ZodString;
15698
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15687
15699
  }, z.core.$strip>;
15688
15700
  }, z.core.$strip>;
15689
15701
  declare const ContextConfigResponse: z.ZodObject<{
@@ -15699,13 +15711,13 @@ declare const ApiKeyResponse: z.ZodObject<{
15699
15711
  data: z.ZodObject<{
15700
15712
  id: z.ZodString;
15701
15713
  name: z.ZodNullable<z.ZodString>;
15714
+ createdAt: z.ZodString;
15715
+ updatedAt: z.ZodString;
15702
15716
  agentId: z.ZodString;
15703
15717
  publicId: z.ZodString;
15704
15718
  keyPrefix: z.ZodString;
15705
15719
  lastUsedAt: z.ZodNullable<z.ZodString>;
15706
15720
  expiresAt: z.ZodNullable<z.ZodString>;
15707
- createdAt: z.ZodString;
15708
- updatedAt: z.ZodString;
15709
15721
  }, {
15710
15722
  out: {};
15711
15723
  in: {};
@@ -15719,8 +15731,8 @@ declare const CredentialReferenceResponse: z.ZodObject<{
15719
15731
  updatedAt: z.ZodString;
15720
15732
  credentialStoreId: z.ZodString;
15721
15733
  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
15734
  toolId: z.ZodNullable<z.ZodString>;
15735
+ userId: z.ZodNullable<z.ZodString>;
15724
15736
  createdBy: z.ZodNullable<z.ZodString>;
15725
15737
  type: z.ZodEnum<{
15726
15738
  readonly memory: "memory";
@@ -16285,9 +16297,9 @@ declare const FunctionToolResponse: z.ZodObject<{
16285
16297
  id: z.ZodString;
16286
16298
  name: z.ZodString;
16287
16299
  description: z.ZodNullable<z.ZodString>;
16288
- agentId: z.ZodString;
16289
16300
  createdAt: z.ZodString;
16290
16301
  updatedAt: z.ZodString;
16302
+ agentId: z.ZodString;
16291
16303
  functionId: z.ZodString;
16292
16304
  }, z.core.$strip>;
16293
16305
  }, z.core.$strip>;
@@ -16340,10 +16352,10 @@ declare const SubAgentToolRelationResponse: z.ZodObject<{
16340
16352
  createdAt: z.ZodString;
16341
16353
  updatedAt: z.ZodString;
16342
16354
  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
16355
  subAgentId: z.ZodString;
16356
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16346
16357
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16358
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16347
16359
  }, z.core.$strip>;
16348
16360
  }, z.core.$strip>;
16349
16361
  declare const ConversationResponse: z.ZodObject<{
@@ -16352,8 +16364,8 @@ declare const ConversationResponse: z.ZodObject<{
16352
16364
  title: z.ZodNullable<z.ZodString>;
16353
16365
  createdAt: z.ZodString;
16354
16366
  updatedAt: z.ZodString;
16355
- userId: z.ZodNullable<z.ZodString>;
16356
16367
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
16368
+ userId: z.ZodNullable<z.ZodString>;
16357
16369
  activeSubAgentId: z.ZodString;
16358
16370
  lastContextResolution: z.ZodNullable<z.ZodString>;
16359
16371
  }, z.core.$strip>;
@@ -16364,15 +16376,15 @@ declare const MessageResponse: z.ZodObject<{
16364
16376
  createdAt: z.ZodString;
16365
16377
  updatedAt: z.ZodString;
16366
16378
  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
16379
  conversationId: z.ZodString;
16380
+ role: z.ZodString;
16370
16381
  fromSubAgentId: z.ZodNullable<z.ZodString>;
16371
16382
  toSubAgentId: z.ZodNullable<z.ZodString>;
16372
16383
  fromExternalAgentId: z.ZodNullable<z.ZodString>;
16373
16384
  toExternalAgentId: z.ZodNullable<z.ZodString>;
16374
16385
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
16375
16386
  toTeamAgentId: z.ZodNullable<z.ZodString>;
16387
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
16376
16388
  visibility: z.ZodString;
16377
16389
  messageType: z.ZodString;
16378
16390
  taskId: z.ZodNullable<z.ZodString>;
@@ -16386,8 +16398,6 @@ declare const ProjectListResponse: z.ZodObject<{
16386
16398
  id: z.ZodString;
16387
16399
  name: z.ZodString;
16388
16400
  description: z.ZodNullable<z.ZodString>;
16389
- createdAt: z.ZodString;
16390
- updatedAt: z.ZodString;
16391
16401
  models: z.ZodNullable<z.ZodObject<{
16392
16402
  base: z.ZodObject<{
16393
16403
  model: z.ZodOptional<z.ZodString>;
@@ -16406,6 +16416,8 @@ declare const ProjectListResponse: z.ZodObject<{
16406
16416
  transferCountIs: z.ZodOptional<z.ZodNumber>;
16407
16417
  stepCountIs: z.ZodOptional<z.ZodNumber>;
16408
16418
  }, z.core.$strip>>;
16419
+ createdAt: z.ZodString;
16420
+ updatedAt: z.ZodString;
16409
16421
  }, {
16410
16422
  out: {};
16411
16423
  in: {};
@@ -16422,9 +16434,6 @@ declare const SubAgentListResponse: z.ZodObject<{
16422
16434
  id: z.ZodString;
16423
16435
  name: z.ZodString;
16424
16436
  description: z.ZodNullable<z.ZodString>;
16425
- prompt: z.ZodNullable<z.ZodString>;
16426
- createdAt: z.ZodString;
16427
- updatedAt: z.ZodString;
16428
16437
  models: z.ZodNullable<z.ZodType<{
16429
16438
  base?: {
16430
16439
  model?: string | undefined;
@@ -16487,6 +16496,9 @@ declare const SubAgentListResponse: z.ZodObject<{
16487
16496
  }, {
16488
16497
  stepCountIs?: number | undefined;
16489
16498
  }>>>;
16499
+ createdAt: z.ZodString;
16500
+ updatedAt: z.ZodString;
16501
+ prompt: z.ZodNullable<z.ZodString>;
16490
16502
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
16491
16503
  }, z.core.$strip>>;
16492
16504
  pagination: z.ZodObject<{
@@ -16501,9 +16513,6 @@ declare const AgentListResponse: z.ZodObject<{
16501
16513
  id: z.ZodString;
16502
16514
  name: z.ZodString;
16503
16515
  description: z.ZodNullable<z.ZodString>;
16504
- prompt: z.ZodNullable<z.ZodString>;
16505
- createdAt: z.ZodString;
16506
- updatedAt: z.ZodString;
16507
16516
  models: z.ZodNullable<z.ZodType<{
16508
16517
  base?: {
16509
16518
  model?: string | undefined;
@@ -16566,8 +16575,11 @@ declare const AgentListResponse: z.ZodObject<{
16566
16575
  }, {
16567
16576
  transferCountIs?: number | undefined;
16568
16577
  }>>>;
16578
+ createdAt: z.ZodString;
16579
+ updatedAt: z.ZodString;
16569
16580
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
16570
16581
  contextConfigId: z.ZodNullable<z.ZodString>;
16582
+ prompt: z.ZodNullable<z.ZodString>;
16571
16583
  statusUpdates: z.ZodNullable<z.ZodType<{
16572
16584
  enabled?: boolean | undefined;
16573
16585
  numEvents?: number | undefined;
@@ -16638,6 +16650,9 @@ declare const ToolListResponse: z.ZodObject<{
16638
16650
  id: z.ZodString;
16639
16651
  name: z.ZodString;
16640
16652
  description: z.ZodNullable<z.ZodString>;
16653
+ createdAt: z.ZodString;
16654
+ updatedAt: z.ZodString;
16655
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
16641
16656
  config: z.ZodType<{
16642
16657
  type: "mcp";
16643
16658
  mcp: ToolMcpConfig;
@@ -16651,11 +16666,8 @@ declare const ToolListResponse: z.ZodObject<{
16651
16666
  type: "mcp";
16652
16667
  mcp: ToolMcpConfig;
16653
16668
  }>>;
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
16669
  credentialScope: z.ZodString;
16670
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
16659
16671
  imageUrl: z.ZodNullable<z.ZodString>;
16660
16672
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
16661
16673
  lastError: z.ZodNullable<z.ZodString>;
@@ -16672,10 +16684,10 @@ declare const ExternalAgentListResponse: z.ZodObject<{
16672
16684
  id: z.ZodString;
16673
16685
  name: z.ZodString;
16674
16686
  description: z.ZodNullable<z.ZodString>;
16675
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16676
16687
  createdAt: z.ZodString;
16677
16688
  updatedAt: z.ZodString;
16678
16689
  baseUrl: z.ZodString;
16690
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16679
16691
  }, z.core.$strip>>;
16680
16692
  pagination: z.ZodObject<{
16681
16693
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -16703,13 +16715,13 @@ declare const ApiKeyListResponse: z.ZodObject<{
16703
16715
  data: z.ZodArray<z.ZodObject<{
16704
16716
  id: z.ZodString;
16705
16717
  name: z.ZodNullable<z.ZodString>;
16718
+ createdAt: z.ZodString;
16719
+ updatedAt: z.ZodString;
16706
16720
  agentId: z.ZodString;
16707
16721
  publicId: z.ZodString;
16708
16722
  keyPrefix: z.ZodString;
16709
16723
  lastUsedAt: z.ZodNullable<z.ZodString>;
16710
16724
  expiresAt: z.ZodNullable<z.ZodString>;
16711
- createdAt: z.ZodString;
16712
- updatedAt: z.ZodString;
16713
16725
  }, {
16714
16726
  out: {};
16715
16727
  in: {};
@@ -16729,8 +16741,8 @@ declare const CredentialReferenceListResponse: z.ZodObject<{
16729
16741
  updatedAt: z.ZodString;
16730
16742
  credentialStoreId: z.ZodString;
16731
16743
  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
16744
  toolId: z.ZodNullable<z.ZodString>;
16745
+ userId: z.ZodNullable<z.ZodString>;
16734
16746
  createdBy: z.ZodNullable<z.ZodString>;
16735
16747
  type: z.ZodEnum<{
16736
16748
  readonly memory: "memory";
@@ -17307,9 +17319,9 @@ declare const FunctionToolListResponse: z.ZodObject<{
17307
17319
  id: z.ZodString;
17308
17320
  name: z.ZodString;
17309
17321
  description: z.ZodNullable<z.ZodString>;
17310
- agentId: z.ZodString;
17311
17322
  createdAt: z.ZodString;
17312
17323
  updatedAt: z.ZodString;
17324
+ agentId: z.ZodString;
17313
17325
  functionId: z.ZodString;
17314
17326
  }, z.core.$strip>>;
17315
17327
  pagination: z.ZodObject<{
@@ -17386,10 +17398,10 @@ declare const SubAgentToolRelationListResponse: z.ZodObject<{
17386
17398
  createdAt: z.ZodString;
17387
17399
  updatedAt: z.ZodString;
17388
17400
  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
17401
  subAgentId: z.ZodString;
17402
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17392
17403
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17404
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17393
17405
  }, z.core.$strip>>;
17394
17406
  pagination: z.ZodObject<{
17395
17407
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -17404,8 +17416,8 @@ declare const ConversationListResponse: z.ZodObject<{
17404
17416
  title: z.ZodNullable<z.ZodString>;
17405
17417
  createdAt: z.ZodString;
17406
17418
  updatedAt: z.ZodString;
17407
- userId: z.ZodNullable<z.ZodString>;
17408
17419
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
17420
+ userId: z.ZodNullable<z.ZodString>;
17409
17421
  activeSubAgentId: z.ZodString;
17410
17422
  lastContextResolution: z.ZodNullable<z.ZodString>;
17411
17423
  }, z.core.$strip>>;
@@ -17422,15 +17434,15 @@ declare const MessageListResponse: z.ZodObject<{
17422
17434
  createdAt: z.ZodString;
17423
17435
  updatedAt: z.ZodString;
17424
17436
  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
17437
  conversationId: z.ZodString;
17438
+ role: z.ZodString;
17428
17439
  fromSubAgentId: z.ZodNullable<z.ZodString>;
17429
17440
  toSubAgentId: z.ZodNullable<z.ZodString>;
17430
17441
  fromExternalAgentId: z.ZodNullable<z.ZodString>;
17431
17442
  toExternalAgentId: z.ZodNullable<z.ZodString>;
17432
17443
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
17433
17444
  toTeamAgentId: z.ZodNullable<z.ZodString>;
17445
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
17434
17446
  visibility: z.ZodString;
17435
17447
  messageType: z.ZodString;
17436
17448
  taskId: z.ZodNullable<z.ZodString>;
@@ -17524,8 +17536,6 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17524
17536
  id: z.ZodString;
17525
17537
  name: z.ZodString;
17526
17538
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17527
- createdAt: z.ZodOptional<z.ZodString>;
17528
- updatedAt: z.ZodOptional<z.ZodString>;
17529
17539
  models: z.ZodOptional<z.ZodObject<{
17530
17540
  base: z.ZodOptional<z.ZodObject<{
17531
17541
  model: z.ZodOptional<z.ZodString>;
@@ -17549,6 +17559,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17549
17559
  }, {
17550
17560
  stepCountIs?: number | undefined;
17551
17561
  }>>>>;
17562
+ createdAt: z.ZodOptional<z.ZodString>;
17563
+ updatedAt: z.ZodOptional<z.ZodString>;
17552
17564
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
17553
17565
  type: z.ZodLiteral<"internal">;
17554
17566
  canUse: z.ZodArray<z.ZodObject<{
@@ -17578,6 +17590,9 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17578
17590
  id: z.ZodString;
17579
17591
  name: z.ZodString;
17580
17592
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17593
+ createdAt: z.ZodOptional<z.ZodString>;
17594
+ updatedAt: z.ZodOptional<z.ZodString>;
17595
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17581
17596
  config: z.ZodObject<{
17582
17597
  type: z.ZodLiteral<"mcp">;
17583
17598
  mcp: z.ZodObject<{
@@ -17597,11 +17612,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17597
17612
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17598
17613
  }, z.core.$strip>;
17599
17614
  }, 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
17615
  credentialScope: z.ZodOptional<z.ZodString>;
17616
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17605
17617
  imageUrl: z.ZodOptional<z.ZodString>;
17606
17618
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17607
17619
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17610,10 +17622,10 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17610
17622
  id: z.ZodString;
17611
17623
  name: z.ZodString;
17612
17624
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17613
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17614
17625
  createdAt: z.ZodOptional<z.ZodString>;
17615
17626
  updatedAt: z.ZodOptional<z.ZodString>;
17616
17627
  baseUrl: z.ZodString;
17628
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17617
17629
  }, z.core.$strip>>>;
17618
17630
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17619
17631
  id: z.ZodString;
@@ -17679,6 +17691,9 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17679
17691
  id: z.ZodString;
17680
17692
  name: z.ZodString;
17681
17693
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17694
+ createdAt: z.ZodOptional<z.ZodString>;
17695
+ updatedAt: z.ZodOptional<z.ZodString>;
17696
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17682
17697
  config: z.ZodObject<{
17683
17698
  type: z.ZodLiteral<"mcp">;
17684
17699
  mcp: z.ZodObject<{
@@ -17698,11 +17713,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17698
17713
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17699
17714
  }, z.core.$strip>;
17700
17715
  }, 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
17716
  credentialScope: z.ZodOptional<z.ZodString>;
17717
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17706
17718
  imageUrl: z.ZodOptional<z.ZodString>;
17707
17719
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17708
17720
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17757,10 +17769,10 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17757
17769
  id: z.ZodString;
17758
17770
  name: z.ZodString;
17759
17771
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17760
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17761
17772
  createdAt: z.ZodOptional<z.ZodString>;
17762
17773
  updatedAt: z.ZodOptional<z.ZodString>;
17763
17774
  baseUrl: z.ZodString;
17775
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17764
17776
  }, z.core.$strip>>>;
17765
17777
  statusUpdates: z.ZodOptional<z.ZodObject<{
17766
17778
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -17784,8 +17796,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17784
17796
  updatedAt: z.ZodOptional<z.ZodString>;
17785
17797
  credentialStoreId: z.ZodString;
17786
17798
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17787
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17788
17799
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17800
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17789
17801
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17790
17802
  type: z.ZodEnum<{
17791
17803
  readonly memory: "memory";
@@ -17813,8 +17825,6 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17813
17825
  id: z.ZodString;
17814
17826
  name: z.ZodString;
17815
17827
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17816
- createdAt: z.ZodOptional<z.ZodString>;
17817
- updatedAt: z.ZodOptional<z.ZodString>;
17818
17828
  models: z.ZodOptional<z.ZodObject<{
17819
17829
  base: z.ZodOptional<z.ZodObject<{
17820
17830
  model: z.ZodOptional<z.ZodString>;
@@ -17838,6 +17848,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17838
17848
  }, {
17839
17849
  stepCountIs?: number | undefined;
17840
17850
  }>>>>;
17851
+ createdAt: z.ZodOptional<z.ZodString>;
17852
+ updatedAt: z.ZodOptional<z.ZodString>;
17841
17853
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
17842
17854
  type: z.ZodLiteral<"internal">;
17843
17855
  canUse: z.ZodArray<z.ZodObject<{
@@ -17867,6 +17879,9 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17867
17879
  id: z.ZodString;
17868
17880
  name: z.ZodString;
17869
17881
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17882
+ createdAt: z.ZodOptional<z.ZodString>;
17883
+ updatedAt: z.ZodOptional<z.ZodString>;
17884
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17870
17885
  config: z.ZodObject<{
17871
17886
  type: z.ZodLiteral<"mcp">;
17872
17887
  mcp: z.ZodObject<{
@@ -17886,11 +17901,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17886
17901
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17887
17902
  }, z.core.$strip>;
17888
17903
  }, 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
17904
  credentialScope: z.ZodOptional<z.ZodString>;
17905
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17894
17906
  imageUrl: z.ZodOptional<z.ZodString>;
17895
17907
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17896
17908
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17899,10 +17911,10 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17899
17911
  id: z.ZodString;
17900
17912
  name: z.ZodString;
17901
17913
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17902
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17903
17914
  createdAt: z.ZodOptional<z.ZodString>;
17904
17915
  updatedAt: z.ZodOptional<z.ZodString>;
17905
17916
  baseUrl: z.ZodString;
17917
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17906
17918
  }, z.core.$strip>>>;
17907
17919
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17908
17920
  id: z.ZodString;
@@ -18103,8 +18115,8 @@ declare const SubAgentTeamAgentRelationResponse: z.ZodObject<{
18103
18115
  id: z.ZodString;
18104
18116
  createdAt: z.ZodString;
18105
18117
  updatedAt: z.ZodString;
18106
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18107
18118
  subAgentId: z.ZodString;
18119
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18108
18120
  targetAgentId: z.ZodString;
18109
18121
  }, z.core.$strip>;
18110
18122
  }, z.core.$strip>;
@@ -18113,8 +18125,8 @@ declare const SubAgentTeamAgentRelationListResponse: z.ZodObject<{
18113
18125
  id: z.ZodString;
18114
18126
  createdAt: z.ZodString;
18115
18127
  updatedAt: z.ZodString;
18116
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18117
18128
  subAgentId: z.ZodString;
18129
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18118
18130
  targetAgentId: z.ZodString;
18119
18131
  }, z.core.$strip>>;
18120
18132
  pagination: z.ZodObject<{
@@ -18129,9 +18141,9 @@ declare const SubAgentExternalAgentRelationResponse: z.ZodObject<{
18129
18141
  id: z.ZodString;
18130
18142
  createdAt: z.ZodString;
18131
18143
  updatedAt: z.ZodString;
18144
+ subAgentId: z.ZodString;
18132
18145
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18133
18146
  externalAgentId: z.ZodString;
18134
- subAgentId: z.ZodString;
18135
18147
  }, z.core.$strip>;
18136
18148
  }, z.core.$strip>;
18137
18149
  declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
@@ -18139,9 +18151,9 @@ declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
18139
18151
  id: z.ZodString;
18140
18152
  createdAt: z.ZodString;
18141
18153
  updatedAt: z.ZodString;
18154
+ subAgentId: z.ZodString;
18142
18155
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
18143
18156
  externalAgentId: z.ZodString;
18144
- subAgentId: z.ZodString;
18145
18157
  }, z.core.$strip>>;
18146
18158
  pagination: z.ZodObject<{
18147
18159
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -19454,14 +19466,9 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
19454
19466
  declare const getAgentById: (db: DatabaseClient) => (params: {
19455
19467
  scopes: AgentScopeConfig;
19456
19468
  }) => Promise<{
19457
- tenantId: string;
19458
- projectId: string;
19459
19469
  id: string;
19460
19470
  name: string;
19461
19471
  description: string | null;
19462
- prompt: string | null;
19463
- createdAt: string;
19464
- updatedAt: string;
19465
19472
  models: {
19466
19473
  base?: {
19467
19474
  model?: string | undefined;
@@ -19479,8 +19486,12 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19479
19486
  stopWhen: {
19480
19487
  transferCountIs?: number | undefined;
19481
19488
  } | null;
19489
+ createdAt: string;
19490
+ updatedAt: string;
19491
+ tenantId: string;
19482
19492
  defaultSubAgentId: string | null;
19483
19493
  contextConfigId: string | null;
19494
+ prompt: string | null;
19484
19495
  statusUpdates: {
19485
19496
  enabled?: boolean | undefined;
19486
19497
  numEvents?: number | undefined;
@@ -19496,18 +19507,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19496
19507
  } | undefined;
19497
19508
  }[] | undefined;
19498
19509
  } | null;
19510
+ projectId: string;
19499
19511
  } | null>;
19500
19512
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19501
19513
  scopes: AgentScopeConfig;
19502
19514
  }) => Promise<{
19503
- tenantId: string;
19504
- projectId: string;
19505
19515
  id: string;
19506
19516
  name: string;
19507
19517
  description: string | null;
19508
- prompt: string | null;
19509
- createdAt: string;
19510
- updatedAt: string;
19511
19518
  models: {
19512
19519
  base?: {
19513
19520
  model?: string | undefined;
@@ -19525,8 +19532,12 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19525
19532
  stopWhen: {
19526
19533
  transferCountIs?: number | undefined;
19527
19534
  } | null;
19535
+ createdAt: string;
19536
+ updatedAt: string;
19537
+ tenantId: string;
19528
19538
  defaultSubAgentId: string | null;
19529
19539
  contextConfigId: string | null;
19540
+ prompt: string | null;
19530
19541
  statusUpdates: {
19531
19542
  enabled?: boolean | undefined;
19532
19543
  numEvents?: number | undefined;
@@ -19542,16 +19553,11 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19542
19553
  } | undefined;
19543
19554
  }[] | undefined;
19544
19555
  } | null;
19556
+ projectId: string;
19545
19557
  defaultSubAgent: {
19546
- tenantId: string;
19547
- projectId: string;
19548
19558
  id: string;
19549
19559
  name: string;
19550
19560
  description: string | null;
19551
- prompt: string | null;
19552
- agentId: string;
19553
- createdAt: string;
19554
- updatedAt: string;
19555
19561
  models: {
19556
19562
  base?: {
19557
19563
  model?: string | undefined;
@@ -19569,20 +19575,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19569
19575
  stopWhen: {
19570
19576
  stepCountIs?: number | undefined;
19571
19577
  } | null;
19578
+ createdAt: string;
19579
+ updatedAt: string;
19580
+ tenantId: string;
19581
+ prompt: string | null;
19582
+ projectId: string;
19583
+ agentId: string;
19572
19584
  conversationHistoryConfig: ConversationHistoryConfig | null;
19573
19585
  } | null;
19574
19586
  } | null>;
19575
19587
  declare const listAgents: (db: DatabaseClient) => (params: {
19576
19588
  scopes: ProjectScopeConfig;
19577
19589
  }) => Promise<{
19578
- tenantId: string;
19579
- projectId: string;
19580
19590
  id: string;
19581
19591
  name: string;
19582
19592
  description: string | null;
19583
- prompt: string | null;
19584
- createdAt: string;
19585
- updatedAt: string;
19586
19593
  models: {
19587
19594
  base?: {
19588
19595
  model?: string | undefined;
@@ -19600,8 +19607,12 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19600
19607
  stopWhen: {
19601
19608
  transferCountIs?: number | undefined;
19602
19609
  } | null;
19610
+ createdAt: string;
19611
+ updatedAt: string;
19612
+ tenantId: string;
19603
19613
  defaultSubAgentId: string | null;
19604
19614
  contextConfigId: string | null;
19615
+ prompt: string | null;
19605
19616
  statusUpdates: {
19606
19617
  enabled?: boolean | undefined;
19607
19618
  numEvents?: number | undefined;
@@ -19617,6 +19628,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19617
19628
  } | undefined;
19618
19629
  }[] | undefined;
19619
19630
  } | null;
19631
+ projectId: string;
19620
19632
  }[]>;
19621
19633
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
19622
19634
  scopes: ProjectScopeConfig;
@@ -19674,14 +19686,9 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
19674
19686
  };
19675
19687
  }>;
19676
19688
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
19677
- tenantId: string;
19678
- projectId: string;
19679
19689
  id: string;
19680
19690
  name: string;
19681
19691
  description: string | null;
19682
- prompt: string | null;
19683
- createdAt: string;
19684
- updatedAt: string;
19685
19692
  models: {
19686
19693
  base?: {
19687
19694
  model?: string | undefined;
@@ -19699,8 +19706,12 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19699
19706
  stopWhen: {
19700
19707
  transferCountIs?: number | undefined;
19701
19708
  } | null;
19709
+ createdAt: string;
19710
+ updatedAt: string;
19711
+ tenantId: string;
19702
19712
  defaultSubAgentId: string | null;
19703
19713
  contextConfigId: string | null;
19714
+ prompt: string | null;
19704
19715
  statusUpdates: {
19705
19716
  enabled?: boolean | undefined;
19706
19717
  numEvents?: number | undefined;
@@ -19716,6 +19727,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19716
19727
  } | undefined;
19717
19728
  }[] | undefined;
19718
19729
  } | null;
19730
+ projectId: string;
19719
19731
  }>;
19720
19732
  declare const updateAgent: (db: DatabaseClient) => (params: {
19721
19733
  scopes: AgentScopeConfig;
@@ -19815,49 +19827,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
19815
19827
  scopes: ProjectScopeConfig;
19816
19828
  id: string;
19817
19829
  }) => Promise<{
19818
- tenantId: string;
19819
- projectId: string;
19820
19830
  id: string;
19821
19831
  name: string | null;
19832
+ createdAt: string;
19833
+ updatedAt: string;
19834
+ tenantId: string;
19835
+ projectId: string;
19822
19836
  agentId: string;
19823
19837
  publicId: string;
19824
19838
  keyHash: string;
19825
19839
  keyPrefix: string;
19826
19840
  lastUsedAt: string | null;
19827
19841
  expiresAt: string | null;
19828
- createdAt: string;
19829
- updatedAt: string;
19830
19842
  } | undefined>;
19831
19843
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
19832
- tenantId: string;
19833
- projectId: string;
19834
19844
  id: string;
19835
19845
  name: string | null;
19846
+ createdAt: string;
19847
+ updatedAt: string;
19848
+ tenantId: string;
19849
+ projectId: string;
19836
19850
  agentId: string;
19837
19851
  publicId: string;
19838
19852
  keyHash: string;
19839
19853
  keyPrefix: string;
19840
19854
  lastUsedAt: string | null;
19841
19855
  expiresAt: string | null;
19842
- createdAt: string;
19843
- updatedAt: string;
19844
19856
  } | undefined>;
19845
19857
  declare const listApiKeys: (db: DatabaseClient) => (params: {
19846
19858
  scopes: ProjectScopeConfig;
19847
19859
  agentId?: string;
19848
19860
  }) => Promise<{
19849
- tenantId: string;
19850
- projectId: string;
19851
19861
  id: string;
19852
19862
  name: string | null;
19863
+ createdAt: string;
19864
+ updatedAt: string;
19865
+ tenantId: string;
19866
+ projectId: string;
19853
19867
  agentId: string;
19854
19868
  publicId: string;
19855
19869
  keyHash: string;
19856
19870
  keyPrefix: string;
19857
19871
  lastUsedAt: string | null;
19858
19872
  expiresAt: string | null;
19859
- createdAt: string;
19860
- updatedAt: string;
19861
19873
  }[]>;
19862
19874
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
19863
19875
  scopes: ProjectScopeConfig;
@@ -19873,18 +19885,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
19873
19885
  };
19874
19886
  }>;
19875
19887
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
19876
- tenantId: string;
19877
- projectId: string;
19878
19888
  id: string;
19879
19889
  name: string | null;
19890
+ createdAt: string;
19891
+ updatedAt: string;
19892
+ tenantId: string;
19893
+ projectId: string;
19880
19894
  agentId: string;
19881
19895
  publicId: string;
19882
19896
  keyHash: string;
19883
19897
  keyPrefix: string;
19884
19898
  lastUsedAt: string | null;
19885
19899
  expiresAt: string | null;
19886
- createdAt: string;
19887
- updatedAt: string;
19888
19900
  }>;
19889
19901
  declare const updateApiKey: (db: DatabaseClient) => (params: {
19890
19902
  scopes: ProjectScopeConfig;
@@ -19932,13 +19944,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
19932
19944
  scopes: ProjectScopeConfig;
19933
19945
  id: string;
19934
19946
  }) => Promise<{
19935
- tenantId: string;
19936
- projectId: string;
19937
19947
  id: string;
19938
19948
  name: string;
19939
19949
  description: string | null;
19940
19950
  createdAt: string;
19941
19951
  updatedAt: string;
19952
+ tenantId: string;
19953
+ projectId: string;
19942
19954
  props: Record<string, unknown> | null;
19943
19955
  } | undefined>;
19944
19956
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -19966,13 +19978,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
19966
19978
  };
19967
19979
  }>;
19968
19980
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
19969
- tenantId: string;
19970
- projectId: string;
19971
19981
  id: string;
19972
19982
  name: string;
19973
19983
  description: string | null;
19974
19984
  createdAt: string;
19975
19985
  updatedAt: string;
19986
+ tenantId: string;
19987
+ projectId: string;
19976
19988
  props: Record<string, unknown> | null;
19977
19989
  }>;
19978
19990
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -20009,11 +20021,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
20009
20021
  scopes: SubAgentScopeConfig;
20010
20022
  artifactComponentId: string;
20011
20023
  }) => Promise<{
20024
+ id: string;
20025
+ createdAt: string;
20012
20026
  tenantId: string;
20013
20027
  projectId: string;
20014
- id: string;
20015
20028
  agentId: string;
20016
- createdAt: string;
20017
20029
  subAgentId: string;
20018
20030
  artifactComponentId: string;
20019
20031
  }>;
@@ -20052,11 +20064,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
20052
20064
  scopes: SubAgentScopeConfig;
20053
20065
  artifactComponentId: string;
20054
20066
  }) => Promise<{
20067
+ id: string;
20068
+ createdAt: string;
20055
20069
  tenantId: string;
20056
20070
  projectId: string;
20057
- id: string;
20058
20071
  agentId: string;
20059
- createdAt: string;
20060
20072
  subAgentId: string;
20061
20073
  artifactComponentId: string;
20062
20074
  } | null>;
@@ -20138,26 +20150,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
20138
20150
  scopes: AgentScopeConfig;
20139
20151
  id: string;
20140
20152
  }) => Promise<{
20141
- tenantId: string;
20142
- projectId: string;
20143
20153
  id: string;
20144
- agentId: string;
20145
20154
  createdAt: string;
20146
20155
  updatedAt: string;
20156
+ tenantId: string;
20157
+ projectId: string;
20147
20158
  headersSchema: unknown;
20148
20159
  contextVariables: Record<string, ContextFetchDefinition> | null;
20160
+ agentId: string;
20149
20161
  } | undefined>;
20150
20162
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
20151
20163
  scopes: AgentScopeConfig;
20152
20164
  }) => Promise<{
20153
- tenantId: string;
20154
- projectId: string;
20155
20165
  id: string;
20156
- agentId: string;
20157
20166
  createdAt: string;
20158
20167
  updatedAt: string;
20168
+ tenantId: string;
20169
+ projectId: string;
20159
20170
  headersSchema: unknown;
20160
20171
  contextVariables: Record<string, ContextFetchDefinition> | null;
20172
+ agentId: string;
20161
20173
  }[]>;
20162
20174
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
20163
20175
  scopes: AgentScopeConfig;
@@ -20172,14 +20184,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
20172
20184
  };
20173
20185
  }>;
20174
20186
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
20175
- tenantId: string;
20176
- projectId: string;
20177
20187
  id: string;
20178
- agentId: string;
20179
20188
  createdAt: string;
20180
20189
  updatedAt: string;
20190
+ tenantId: string;
20191
+ projectId: string;
20181
20192
  headersSchema: unknown;
20182
20193
  contextVariables: Record<string, ContextFetchDefinition> | null;
20194
+ agentId: string;
20183
20195
  }>;
20184
20196
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
20185
20197
  scopes: AgentScopeConfig;
@@ -20212,14 +20224,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
20212
20224
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
20213
20225
  data: ContextConfigInsert;
20214
20226
  }) => Promise<{
20215
- tenantId: string;
20216
- projectId: string;
20217
20227
  id: string;
20218
- agentId: string;
20219
20228
  createdAt: string;
20220
20229
  updatedAt: string;
20230
+ tenantId: string;
20231
+ projectId: string;
20221
20232
  headersSchema: unknown;
20222
20233
  contextVariables: Record<string, ContextFetchDefinition> | null;
20234
+ agentId: string;
20223
20235
  }>;
20224
20236
  //#endregion
20225
20237
  //#region src/data-access/conversations.d.ts
@@ -20232,14 +20244,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
20232
20244
  total: number;
20233
20245
  }>;
20234
20246
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
20235
- tenantId: string;
20236
- projectId: string;
20237
20247
  id: string;
20238
20248
  title: string | null;
20239
20249
  createdAt: string;
20240
20250
  updatedAt: string;
20241
- userId: string | null;
20251
+ tenantId: string;
20242
20252
  metadata: ConversationMetadata | null;
20253
+ projectId: string;
20254
+ userId: string | null;
20243
20255
  activeSubAgentId: string;
20244
20256
  lastContextResolution: string | null;
20245
20257
  }>;
@@ -20283,14 +20295,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
20283
20295
  scopes: ProjectScopeConfig;
20284
20296
  conversationId: string;
20285
20297
  }) => Promise<{
20286
- tenantId: string;
20287
- projectId: string;
20288
20298
  id: string;
20289
20299
  title: string | null;
20290
20300
  createdAt: string;
20291
20301
  updatedAt: string;
20292
- userId: string | null;
20302
+ tenantId: string;
20293
20303
  metadata: ConversationMetadata | null;
20304
+ projectId: string;
20305
+ userId: string | null;
20294
20306
  activeSubAgentId: string;
20295
20307
  lastContextResolution: string | null;
20296
20308
  } | undefined>;
@@ -20307,14 +20319,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
20307
20319
  metadata?: ConversationMetadata | null | undefined;
20308
20320
  contextConfigId?: string | undefined;
20309
20321
  } | {
20310
- tenantId: string;
20311
- projectId: string;
20312
20322
  id: string;
20313
20323
  title: string | null;
20314
20324
  createdAt: string;
20315
20325
  updatedAt: string;
20316
- userId: string | null;
20326
+ tenantId: string;
20317
20327
  metadata: ConversationMetadata | null;
20328
+ projectId: string;
20329
+ userId: string | null;
20318
20330
  activeSubAgentId: string;
20319
20331
  lastContextResolution: string | null;
20320
20332
  }>;
@@ -20333,14 +20345,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
20333
20345
  scopes: ProjectScopeConfig;
20334
20346
  conversationId: string;
20335
20347
  }) => Promise<{
20336
- tenantId: string;
20337
- projectId: string;
20338
20348
  id: string;
20339
20349
  title: string | null;
20340
20350
  createdAt: string;
20341
20351
  updatedAt: string;
20342
- userId: string | null;
20352
+ tenantId: string;
20343
20353
  metadata: ConversationMetadata | null;
20354
+ projectId: string;
20355
+ userId: string | null;
20344
20356
  activeSubAgentId: string;
20345
20357
  lastContextResolution: string | null;
20346
20358
  } | undefined>;
@@ -20517,11 +20529,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
20517
20529
  scopes: SubAgentScopeConfig;
20518
20530
  dataComponentId: string;
20519
20531
  }) => Promise<{
20532
+ id: string;
20533
+ createdAt: string;
20520
20534
  tenantId: string;
20521
20535
  projectId: string;
20522
- id: string;
20523
20536
  agentId: string;
20524
- createdAt: string;
20525
20537
  subAgentId: string;
20526
20538
  dataComponentId: string;
20527
20539
  }>;
@@ -20559,11 +20571,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
20559
20571
  scopes: SubAgentScopeConfig;
20560
20572
  dataComponentId: string;
20561
20573
  }) => Promise<{
20574
+ id: string;
20575
+ createdAt: string;
20562
20576
  tenantId: string;
20563
20577
  projectId: string;
20564
- id: string;
20565
20578
  agentId: string;
20566
- createdAt: string;
20567
20579
  subAgentId: string;
20568
20580
  dataComponentId: string;
20569
20581
  } | null>;
@@ -20765,14 +20777,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
20765
20777
  data: FunctionToolApiInsert;
20766
20778
  scopes: AgentScopeConfig;
20767
20779
  }) => Promise<{
20768
- tenantId: string;
20769
- projectId: string;
20770
20780
  id: string;
20771
20781
  name: string;
20772
20782
  description: string | null;
20773
- agentId: string;
20774
20783
  createdAt: string;
20775
20784
  updatedAt: string;
20785
+ tenantId: string;
20786
+ projectId: string;
20787
+ agentId: string;
20776
20788
  functionId: string;
20777
20789
  }>;
20778
20790
  /**
@@ -20807,14 +20819,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
20807
20819
  data: FunctionToolApiInsert;
20808
20820
  scopes: AgentScopeConfig;
20809
20821
  }) => Promise<{
20810
- tenantId: string;
20811
- projectId: string;
20812
20822
  id: string;
20813
20823
  name: string;
20814
20824
  description: string | null;
20815
- agentId: string;
20816
20825
  createdAt: string;
20817
20826
  updatedAt: string;
20827
+ tenantId: string;
20828
+ projectId: string;
20829
+ agentId: string;
20818
20830
  functionId: string;
20819
20831
  }>;
20820
20832
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -20946,21 +20958,21 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
20946
20958
  scopes: ProjectScopeConfig;
20947
20959
  messageId: string;
20948
20960
  }) => Promise<{
20949
- tenantId: string;
20950
- projectId: string;
20951
20961
  id: string;
20952
20962
  createdAt: string;
20953
20963
  updatedAt: string;
20964
+ tenantId: string;
20954
20965
  metadata: MessageMetadata | null;
20955
- content: MessageContent;
20956
- role: string;
20966
+ projectId: string;
20957
20967
  conversationId: string;
20968
+ role: string;
20958
20969
  fromSubAgentId: string | null;
20959
20970
  toSubAgentId: string | null;
20960
20971
  fromExternalAgentId: string | null;
20961
20972
  toExternalAgentId: string | null;
20962
20973
  fromTeamAgentId: string | null;
20963
20974
  toTeamAgentId: string | null;
20975
+ content: MessageContent;
20964
20976
  visibility: string;
20965
20977
  messageType: string;
20966
20978
  taskId: string | null;
@@ -21077,21 +21089,21 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
21077
21089
  id: string;
21078
21090
  }[]>;
21079
21091
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
21080
- tenantId: string;
21081
- projectId: string;
21082
21092
  id: string;
21083
21093
  createdAt: string;
21084
21094
  updatedAt: string;
21095
+ tenantId: string;
21085
21096
  metadata: MessageMetadata | null;
21086
- content: MessageContent;
21087
- role: string;
21097
+ projectId: string;
21088
21098
  conversationId: string;
21099
+ role: string;
21089
21100
  fromSubAgentId: string | null;
21090
21101
  toSubAgentId: string | null;
21091
21102
  fromExternalAgentId: string | null;
21092
21103
  toExternalAgentId: string | null;
21093
21104
  fromTeamAgentId: string | null;
21094
21105
  toTeamAgentId: string | null;
21106
+ content: MessageContent;
21095
21107
  visibility: string;
21096
21108
  messageType: string;
21097
21109
  taskId: string | null;
@@ -21130,21 +21142,21 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
21130
21142
  scopes: ProjectScopeConfig;
21131
21143
  messageId: string;
21132
21144
  }) => Promise<{
21133
- tenantId: string;
21134
- projectId: string;
21135
21145
  id: string;
21136
21146
  createdAt: string;
21137
21147
  updatedAt: string;
21148
+ tenantId: string;
21138
21149
  metadata: MessageMetadata | null;
21139
- content: MessageContent;
21140
- role: string;
21150
+ projectId: string;
21141
21151
  conversationId: string;
21152
+ role: string;
21142
21153
  fromSubAgentId: string | null;
21143
21154
  toSubAgentId: string | null;
21144
21155
  fromExternalAgentId: string | null;
21145
21156
  toExternalAgentId: string | null;
21146
21157
  fromTeamAgentId: string | null;
21147
21158
  toTeamAgentId: string | null;
21159
+ content: MessageContent;
21148
21160
  visibility: string;
21149
21161
  messageType: string;
21150
21162
  taskId: string | null;
@@ -21290,15 +21302,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
21290
21302
  scopes: SubAgentScopeConfig;
21291
21303
  relationId: string;
21292
21304
  }) => Promise<{
21293
- tenantId: string;
21294
- projectId: string;
21295
21305
  id: string;
21296
- agentId: string;
21297
21306
  createdAt: string;
21298
21307
  updatedAt: string;
21308
+ tenantId: string;
21309
+ projectId: string;
21310
+ agentId: string;
21311
+ subAgentId: string;
21299
21312
  headers: Record<string, string> | null;
21300
21313
  externalAgentId: string;
21301
- subAgentId: string;
21302
21314
  } | undefined>;
21303
21315
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
21304
21316
  scopes: SubAgentScopeConfig;
@@ -21325,28 +21337,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
21325
21337
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
21326
21338
  scopes: SubAgentScopeConfig;
21327
21339
  }) => Promise<{
21328
- tenantId: string;
21329
- projectId: string;
21330
21340
  id: string;
21331
- agentId: string;
21332
21341
  createdAt: string;
21333
21342
  updatedAt: string;
21343
+ tenantId: string;
21344
+ projectId: string;
21345
+ agentId: string;
21346
+ subAgentId: string;
21334
21347
  headers: Record<string, string> | null;
21335
21348
  externalAgentId: string;
21336
- subAgentId: string;
21337
21349
  }[]>;
21338
21350
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
21339
21351
  scopes: AgentScopeConfig;
21340
21352
  }) => Promise<{
21341
- tenantId: string;
21342
- projectId: string;
21343
21353
  id: string;
21344
- agentId: string;
21345
21354
  createdAt: string;
21346
21355
  updatedAt: string;
21356
+ tenantId: string;
21357
+ projectId: string;
21358
+ agentId: string;
21359
+ subAgentId: string;
21347
21360
  headers: Record<string, string> | null;
21348
21361
  externalAgentId: string;
21349
- subAgentId: string;
21350
21362
  }[]>;
21351
21363
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
21352
21364
  scopes: AgentScopeConfig;
@@ -21461,15 +21473,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
21461
21473
  headers?: Record<string, string> | null;
21462
21474
  };
21463
21475
  }) => Promise<{
21464
- tenantId: string;
21465
- projectId: string;
21466
21476
  id: string;
21467
- agentId: string;
21468
21477
  createdAt: string;
21469
21478
  updatedAt: string;
21479
+ tenantId: string;
21480
+ projectId: string;
21481
+ agentId: string;
21482
+ subAgentId: string;
21470
21483
  headers: Record<string, string> | null;
21471
21484
  externalAgentId: string;
21472
- subAgentId: string;
21473
21485
  }>;
21474
21486
  /**
21475
21487
  * Check if sub-agent external agent relation exists by params
@@ -21478,15 +21490,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
21478
21490
  scopes: SubAgentScopeConfig;
21479
21491
  externalAgentId: string;
21480
21492
  }) => Promise<{
21481
- tenantId: string;
21482
- projectId: string;
21483
21493
  id: string;
21484
- agentId: string;
21485
21494
  createdAt: string;
21486
21495
  updatedAt: string;
21496
+ tenantId: string;
21497
+ projectId: string;
21498
+ agentId: string;
21499
+ subAgentId: string;
21487
21500
  headers: Record<string, string> | null;
21488
21501
  externalAgentId: string;
21489
- subAgentId: string;
21490
21502
  } | undefined>;
21491
21503
  /**
21492
21504
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -21499,15 +21511,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
21499
21511
  headers?: Record<string, string> | null;
21500
21512
  };
21501
21513
  }) => Promise<{
21502
- tenantId: string;
21503
- projectId: string;
21504
21514
  id: string;
21505
- agentId: string;
21506
21515
  createdAt: string;
21507
21516
  updatedAt: string;
21517
+ tenantId: string;
21518
+ projectId: string;
21519
+ agentId: string;
21520
+ subAgentId: string;
21508
21521
  headers: Record<string, string> | null;
21509
21522
  externalAgentId: string;
21510
- subAgentId: string;
21511
21523
  }>;
21512
21524
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
21513
21525
  scopes: SubAgentScopeConfig;
@@ -21540,12 +21552,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
21540
21552
  scopes: AgentScopeConfig;
21541
21553
  relationId: string;
21542
21554
  }) => Promise<{
21543
- tenantId: string;
21544
- projectId: string;
21545
21555
  id: string;
21546
- agentId: string;
21547
21556
  createdAt: string;
21548
21557
  updatedAt: string;
21558
+ tenantId: string;
21559
+ projectId: string;
21560
+ agentId: string;
21549
21561
  sourceSubAgentId: string;
21550
21562
  targetSubAgentId: string | null;
21551
21563
  relationType: string | null;
@@ -21575,12 +21587,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
21575
21587
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
21576
21588
  scopes: SubAgentScopeConfig;
21577
21589
  }) => Promise<{
21578
- tenantId: string;
21579
- projectId: string;
21580
21590
  id: string;
21581
- agentId: string;
21582
21591
  createdAt: string;
21583
21592
  updatedAt: string;
21593
+ tenantId: string;
21594
+ projectId: string;
21595
+ agentId: string;
21584
21596
  sourceSubAgentId: string;
21585
21597
  targetSubAgentId: string | null;
21586
21598
  relationType: string | null;
@@ -21588,12 +21600,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
21588
21600
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
21589
21601
  scopes: AgentScopeConfig;
21590
21602
  }) => Promise<{
21591
- tenantId: string;
21592
- projectId: string;
21593
21603
  id: string;
21594
- agentId: string;
21595
21604
  createdAt: string;
21596
21605
  updatedAt: string;
21606
+ tenantId: string;
21607
+ projectId: string;
21608
+ agentId: string;
21597
21609
  sourceSubAgentId: string;
21598
21610
  targetSubAgentId: string | null;
21599
21611
  relationType: string | null;
@@ -21657,12 +21669,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
21657
21669
  }[];
21658
21670
  }>;
21659
21671
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
21660
- tenantId: string;
21661
- projectId: string;
21662
21672
  id: string;
21663
- agentId: string;
21664
21673
  createdAt: string;
21665
21674
  updatedAt: string;
21675
+ tenantId: string;
21676
+ projectId: string;
21677
+ agentId: string;
21666
21678
  sourceSubAgentId: string;
21667
21679
  targetSubAgentId: string | null;
21668
21680
  relationType: string | null;
@@ -21676,12 +21688,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
21676
21688
  targetSubAgentId?: string;
21677
21689
  relationType: string;
21678
21690
  }) => Promise<{
21679
- tenantId: string;
21680
- projectId: string;
21681
21691
  id: string;
21682
- agentId: string;
21683
21692
  createdAt: string;
21684
21693
  updatedAt: string;
21694
+ tenantId: string;
21695
+ projectId: string;
21696
+ agentId: string;
21685
21697
  sourceSubAgentId: string;
21686
21698
  targetSubAgentId: string | null;
21687
21699
  relationType: string | null;
@@ -21690,12 +21702,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
21690
21702
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
21691
21703
  */
21692
21704
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
21693
- tenantId: string;
21694
- projectId: string;
21695
21705
  id: string;
21696
- agentId: string;
21697
21706
  createdAt: string;
21698
21707
  updatedAt: string;
21708
+ tenantId: string;
21709
+ projectId: string;
21710
+ agentId: string;
21699
21711
  sourceSubAgentId: string;
21700
21712
  targetSubAgentId: string | null;
21701
21713
  relationType: string | null;
@@ -21735,19 +21747,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
21735
21747
  }> | null;
21736
21748
  };
21737
21749
  }) => Promise<{
21738
- tenantId: string;
21739
- projectId: string;
21740
21750
  id: string;
21741
- agentId: string;
21742
21751
  createdAt: string;
21743
21752
  updatedAt: string;
21753
+ tenantId: string;
21754
+ projectId: string;
21755
+ agentId: string;
21744
21756
  toolId: string;
21757
+ subAgentId: string;
21745
21758
  headers: Record<string, string> | null;
21759
+ selectedTools: string[] | null;
21746
21760
  toolPolicies: Record<string, {
21747
21761
  needsApproval?: boolean;
21748
21762
  }> | null;
21749
- subAgentId: string;
21750
- selectedTools: string[] | null;
21751
21763
  }>;
21752
21764
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
21753
21765
  scopes: AgentScopeConfig;
@@ -21779,19 +21791,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
21779
21791
  scopes: SubAgentScopeConfig;
21780
21792
  relationId: string;
21781
21793
  }) => Promise<{
21782
- tenantId: string;
21783
- projectId: string;
21784
21794
  id: string;
21785
- agentId: string;
21786
21795
  createdAt: string;
21787
21796
  updatedAt: string;
21797
+ tenantId: string;
21798
+ projectId: string;
21799
+ agentId: string;
21788
21800
  toolId: string;
21801
+ subAgentId: string;
21789
21802
  headers: Record<string, string> | null;
21803
+ selectedTools: string[] | null;
21790
21804
  toolPolicies: Record<string, {
21791
21805
  needsApproval?: boolean;
21792
21806
  }> | null;
21793
- subAgentId: string;
21794
- selectedTools: string[] | null;
21795
21807
  } | undefined>;
21796
21808
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
21797
21809
  scopes: SubAgentScopeConfig;
@@ -21975,15 +21987,9 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
21975
21987
  scopes: AgentScopeConfig;
21976
21988
  subAgentId: string;
21977
21989
  }) => Promise<{
21978
- tenantId: string;
21979
- projectId: string;
21980
21990
  id: string;
21981
21991
  name: string;
21982
21992
  description: string | null;
21983
- prompt: string | null;
21984
- agentId: string;
21985
- createdAt: string;
21986
- updatedAt: string;
21987
21993
  models: {
21988
21994
  base?: {
21989
21995
  model?: string | undefined;
@@ -22001,20 +22007,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
22001
22007
  stopWhen: {
22002
22008
  stepCountIs?: number | undefined;
22003
22009
  } | null;
22010
+ createdAt: string;
22011
+ updatedAt: string;
22012
+ tenantId: string;
22013
+ prompt: string | null;
22014
+ projectId: string;
22015
+ agentId: string;
22004
22016
  conversationHistoryConfig: ConversationHistoryConfig | null;
22005
22017
  } | undefined>;
22006
22018
  declare const listSubAgents: (db: DatabaseClient) => (params: {
22007
22019
  scopes: AgentScopeConfig;
22008
22020
  }) => Promise<{
22009
- tenantId: string;
22010
- projectId: string;
22011
22021
  id: string;
22012
22022
  name: string;
22013
22023
  description: string | null;
22014
- prompt: string | null;
22015
- agentId: string;
22016
- createdAt: string;
22017
- updatedAt: string;
22018
22024
  models: {
22019
22025
  base?: {
22020
22026
  model?: string | undefined;
@@ -22032,6 +22038,12 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
22032
22038
  stopWhen: {
22033
22039
  stepCountIs?: number | undefined;
22034
22040
  } | null;
22041
+ createdAt: string;
22042
+ updatedAt: string;
22043
+ tenantId: string;
22044
+ prompt: string | null;
22045
+ projectId: string;
22046
+ agentId: string;
22035
22047
  conversationHistoryConfig: ConversationHistoryConfig | null;
22036
22048
  }[]>;
22037
22049
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -22075,15 +22087,9 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
22075
22087
  };
22076
22088
  }>;
22077
22089
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
22078
- tenantId: string;
22079
- projectId: string;
22080
22090
  id: string;
22081
22091
  name: string;
22082
22092
  description: string | null;
22083
- prompt: string | null;
22084
- agentId: string;
22085
- createdAt: string;
22086
- updatedAt: string;
22087
22093
  models: {
22088
22094
  base?: {
22089
22095
  model?: string | undefined;
@@ -22101,6 +22107,12 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
22101
22107
  stopWhen: {
22102
22108
  stepCountIs?: number | undefined;
22103
22109
  } | null;
22110
+ createdAt: string;
22111
+ updatedAt: string;
22112
+ tenantId: string;
22113
+ prompt: string | null;
22114
+ projectId: string;
22115
+ agentId: string;
22104
22116
  conversationHistoryConfig: ConversationHistoryConfig | null;
22105
22117
  }>;
22106
22118
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -22189,14 +22201,14 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
22189
22201
  scopes: SubAgentScopeConfig;
22190
22202
  relationId: string;
22191
22203
  }) => Promise<{
22192
- tenantId: string;
22193
- projectId: string;
22194
22204
  id: string;
22195
- agentId: string;
22196
22205
  createdAt: string;
22197
22206
  updatedAt: string;
22198
- headers: Record<string, string> | null;
22207
+ tenantId: string;
22208
+ projectId: string;
22209
+ agentId: string;
22199
22210
  subAgentId: string;
22211
+ headers: Record<string, string> | null;
22200
22212
  targetAgentId: string;
22201
22213
  } | undefined>;
22202
22214
  declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
@@ -22224,27 +22236,27 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
22224
22236
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
22225
22237
  scopes: SubAgentScopeConfig;
22226
22238
  }) => Promise<{
22227
- tenantId: string;
22228
- projectId: string;
22229
22239
  id: string;
22230
- agentId: string;
22231
22240
  createdAt: string;
22232
22241
  updatedAt: string;
22233
- headers: Record<string, string> | null;
22242
+ tenantId: string;
22243
+ projectId: string;
22244
+ agentId: string;
22234
22245
  subAgentId: string;
22246
+ headers: Record<string, string> | null;
22235
22247
  targetAgentId: string;
22236
22248
  }[]>;
22237
22249
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
22238
22250
  scopes: AgentScopeConfig;
22239
22251
  }) => Promise<{
22240
- tenantId: string;
22241
- projectId: string;
22242
22252
  id: string;
22243
- agentId: string;
22244
22253
  createdAt: string;
22245
22254
  updatedAt: string;
22246
- headers: Record<string, string> | null;
22255
+ tenantId: string;
22256
+ projectId: string;
22257
+ agentId: string;
22247
22258
  subAgentId: string;
22259
+ headers: Record<string, string> | null;
22248
22260
  targetAgentId: string;
22249
22261
  }[]>;
22250
22262
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
@@ -22390,14 +22402,14 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
22390
22402
  headers?: Record<string, string> | null;
22391
22403
  };
22392
22404
  }) => Promise<{
22393
- tenantId: string;
22394
- projectId: string;
22395
22405
  id: string;
22396
- agentId: string;
22397
22406
  createdAt: string;
22398
22407
  updatedAt: string;
22399
- headers: Record<string, string> | null;
22408
+ tenantId: string;
22409
+ projectId: string;
22410
+ agentId: string;
22400
22411
  subAgentId: string;
22412
+ headers: Record<string, string> | null;
22401
22413
  targetAgentId: string;
22402
22414
  }>;
22403
22415
  /**
@@ -22407,14 +22419,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
22407
22419
  scopes: SubAgentScopeConfig;
22408
22420
  targetAgentId: string;
22409
22421
  }) => Promise<{
22410
- tenantId: string;
22411
- projectId: string;
22412
22422
  id: string;
22413
- agentId: string;
22414
22423
  createdAt: string;
22415
22424
  updatedAt: string;
22416
- headers: Record<string, string> | null;
22425
+ tenantId: string;
22426
+ projectId: string;
22427
+ agentId: string;
22417
22428
  subAgentId: string;
22429
+ headers: Record<string, string> | null;
22418
22430
  targetAgentId: string;
22419
22431
  } | undefined>;
22420
22432
  /**
@@ -22428,14 +22440,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
22428
22440
  headers?: Record<string, string> | null;
22429
22441
  };
22430
22442
  }) => Promise<{
22431
- tenantId: string;
22432
- projectId: string;
22433
22443
  id: string;
22434
- agentId: string;
22435
22444
  createdAt: string;
22436
22445
  updatedAt: string;
22437
- headers: Record<string, string> | null;
22446
+ tenantId: string;
22447
+ projectId: string;
22448
+ agentId: string;
22438
22449
  subAgentId: string;
22450
+ headers: Record<string, string> | null;
22439
22451
  targetAgentId: string;
22440
22452
  }>;
22441
22453
  declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
@@ -22466,15 +22478,15 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
22466
22478
  //#endregion
22467
22479
  //#region src/data-access/tasks.d.ts
22468
22480
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
22469
- tenantId: string;
22470
- projectId: string;
22471
22481
  id: string;
22472
- agentId: string;
22473
22482
  createdAt: string;
22474
22483
  updatedAt: string;
22484
+ tenantId: string;
22475
22485
  metadata: TaskMetadataConfig | null;
22476
- status: string;
22486
+ projectId: string;
22487
+ agentId: string;
22477
22488
  contextId: string;
22489
+ status: string;
22478
22490
  subAgentId: string;
22479
22491
  }>;
22480
22492
  declare const getTask: (db: DatabaseClient) => (params: {
@@ -22508,20 +22520,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
22508
22520
  scopes: ProjectScopeConfig;
22509
22521
  toolId: string;
22510
22522
  }) => Promise<{
22511
- tenantId: string;
22512
- projectId: string;
22513
22523
  id: string;
22514
22524
  name: string;
22515
22525
  description: string | null;
22526
+ createdAt: string;
22527
+ updatedAt: string;
22528
+ tenantId: string;
22529
+ projectId: string;
22530
+ credentialReferenceId: string | null;
22516
22531
  config: {
22517
22532
  type: "mcp";
22518
22533
  mcp: ToolMcpConfig;
22519
22534
  };
22520
- credentialReferenceId: string | null;
22521
- createdAt: string;
22522
- updatedAt: string;
22523
- headers: Record<string, string> | null;
22524
22535
  credentialScope: string;
22536
+ headers: Record<string, string> | null;
22525
22537
  imageUrl: string | null;
22526
22538
  capabilities: ToolServerCapabilities | null;
22527
22539
  lastError: string | null;
@@ -22557,20 +22569,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
22557
22569
  };
22558
22570
  }>;
22559
22571
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
22560
- tenantId: string;
22561
- projectId: string;
22562
22572
  id: string;
22563
22573
  name: string;
22564
22574
  description: string | null;
22575
+ createdAt: string;
22576
+ updatedAt: string;
22577
+ tenantId: string;
22578
+ projectId: string;
22579
+ credentialReferenceId: string | null;
22565
22580
  config: {
22566
22581
  type: "mcp";
22567
22582
  mcp: ToolMcpConfig;
22568
22583
  };
22569
- credentialReferenceId: string | null;
22570
- createdAt: string;
22571
- updatedAt: string;
22572
- headers: Record<string, string> | null;
22573
22584
  credentialScope: string;
22585
+ headers: Record<string, string> | null;
22574
22586
  imageUrl: string | null;
22575
22587
  capabilities: ToolServerCapabilities | null;
22576
22588
  lastError: string | null;
@@ -22612,38 +22624,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
22612
22624
  needsApproval?: boolean;
22613
22625
  }> | null;
22614
22626
  }) => Promise<{
22615
- tenantId: string;
22616
- projectId: string;
22617
22627
  id: string;
22618
- agentId: string;
22619
22628
  createdAt: string;
22620
22629
  updatedAt: string;
22630
+ tenantId: string;
22631
+ projectId: string;
22632
+ agentId: string;
22621
22633
  toolId: string;
22634
+ subAgentId: string;
22622
22635
  headers: Record<string, string> | null;
22636
+ selectedTools: string[] | null;
22623
22637
  toolPolicies: Record<string, {
22624
22638
  needsApproval?: boolean;
22625
22639
  }> | null;
22626
- subAgentId: string;
22627
- selectedTools: string[] | null;
22628
22640
  }>;
22629
22641
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
22630
22642
  scopes: AgentScopeConfig;
22631
22643
  subAgentId: string;
22632
22644
  toolId: string;
22633
22645
  }) => Promise<{
22634
- tenantId: string;
22635
- projectId: string;
22636
22646
  id: string;
22637
- agentId: string;
22638
22647
  createdAt: string;
22639
22648
  updatedAt: string;
22649
+ tenantId: string;
22650
+ projectId: string;
22651
+ agentId: string;
22640
22652
  toolId: string;
22653
+ subAgentId: string;
22641
22654
  headers: Record<string, string> | null;
22655
+ selectedTools: string[] | null;
22642
22656
  toolPolicies: Record<string, {
22643
22657
  needsApproval?: boolean;
22644
22658
  }> | null;
22645
- subAgentId: string;
22646
- selectedTools: string[] | null;
22647
22659
  }>;
22648
22660
  /**
22649
22661
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -22659,19 +22671,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22659
22671
  }> | null;
22660
22672
  relationId?: string;
22661
22673
  }) => Promise<{
22662
- tenantId: string;
22663
- projectId: string;
22664
22674
  id: string;
22665
- agentId: string;
22666
22675
  createdAt: string;
22667
22676
  updatedAt: string;
22677
+ tenantId: string;
22678
+ projectId: string;
22679
+ agentId: string;
22668
22680
  toolId: string;
22681
+ subAgentId: string;
22669
22682
  headers: Record<string, string> | null;
22683
+ selectedTools: string[] | null;
22670
22684
  toolPolicies: Record<string, {
22671
22685
  needsApproval?: boolean;
22672
22686
  }> | null;
22673
- subAgentId: string;
22674
- selectedTools: string[] | null;
22675
22687
  }>;
22676
22688
  /**
22677
22689
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -22679,20 +22691,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22679
22691
  declare const upsertTool: (db: DatabaseClient) => (params: {
22680
22692
  data: ToolInsert;
22681
22693
  }) => Promise<{
22682
- tenantId: string;
22683
- projectId: string;
22684
22694
  id: string;
22685
22695
  name: string;
22686
22696
  description: string | null;
22697
+ createdAt: string;
22698
+ updatedAt: string;
22699
+ tenantId: string;
22700
+ projectId: string;
22701
+ credentialReferenceId: string | null;
22687
22702
  config: {
22688
22703
  type: "mcp";
22689
22704
  mcp: ToolMcpConfig;
22690
22705
  };
22691
- credentialReferenceId: string | null;
22692
- createdAt: string;
22693
- updatedAt: string;
22694
- headers: Record<string, string> | null;
22695
22706
  credentialScope: string;
22707
+ headers: Record<string, string> | null;
22696
22708
  imageUrl: string | null;
22697
22709
  capabilities: ToolServerCapabilities | null;
22698
22710
  lastError: string | null;
@@ -29471,145 +29483,145 @@ declare const credentialReferences: drizzle_orm_pg_core495.PgTableWithColumns<{
29471
29483
  };
29472
29484
  dialect: "pg";
29473
29485
  }>;
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">;
29486
+ declare const tasksRelations: drizzle_orm0.Relations<"tasks", {
29487
+ project: drizzle_orm0.One<"projects", true>;
29488
+ parentRelations: drizzle_orm0.Many<"task_relations">;
29489
+ childRelations: drizzle_orm0.Many<"task_relations">;
29490
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29491
+ messages: drizzle_orm0.Many<"messages">;
29492
+ ledgerArtifacts: drizzle_orm0.Many<"ledger_artifacts">;
29481
29493
  }>;
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">;
29494
+ declare const projectsRelations: drizzle_orm0.Relations<"projects", {
29495
+ subAgents: drizzle_orm0.Many<"sub_agents">;
29496
+ agents: drizzle_orm0.Many<"agent">;
29497
+ tools: drizzle_orm0.Many<"tools">;
29498
+ functions: drizzle_orm0.Many<"functions">;
29499
+ contextConfigs: drizzle_orm0.Many<"context_configs">;
29500
+ externalAgents: drizzle_orm0.Many<"external_agents">;
29501
+ conversations: drizzle_orm0.Many<"conversations">;
29502
+ tasks: drizzle_orm0.Many<"tasks">;
29503
+ dataComponents: drizzle_orm0.Many<"data_components">;
29504
+ artifactComponents: drizzle_orm0.Many<"artifact_components">;
29505
+ ledgerArtifacts: drizzle_orm0.Many<"ledger_artifacts">;
29506
+ credentialReferences: drizzle_orm0.Many<"credential_references">;
29495
29507
  }>;
29496
- declare const taskRelationsRelations: drizzle_orm20.Relations<"task_relations", {
29497
- parentTask: drizzle_orm20.One<"tasks", true>;
29498
- childTask: drizzle_orm20.One<"tasks", true>;
29508
+ declare const taskRelationsRelations: drizzle_orm0.Relations<"task_relations", {
29509
+ parentTask: drizzle_orm0.One<"tasks", true>;
29510
+ childTask: drizzle_orm0.One<"tasks", true>;
29499
29511
  }>;
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">;
29512
+ declare const contextConfigsRelations: drizzle_orm0.Relations<"context_configs", {
29513
+ project: drizzle_orm0.One<"projects", true>;
29514
+ agents: drizzle_orm0.Many<"agent">;
29515
+ cache: drizzle_orm0.Many<"context_cache">;
29504
29516
  }>;
29505
- declare const contextCacheRelations: drizzle_orm20.Relations<"context_cache", {
29506
- contextConfig: drizzle_orm20.One<"context_configs", true>;
29517
+ declare const contextCacheRelations: drizzle_orm0.Relations<"context_cache", {
29518
+ contextConfig: drizzle_orm0.One<"context_configs", true>;
29507
29519
  }>;
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">;
29520
+ declare const subAgentsRelations: drizzle_orm0.Relations<"sub_agents", {
29521
+ project: drizzle_orm0.One<"projects", true>;
29522
+ tasks: drizzle_orm0.Many<"tasks">;
29523
+ defaultForAgents: drizzle_orm0.Many<"agent">;
29524
+ sourceRelations: drizzle_orm0.Many<"sub_agent_relations">;
29525
+ targetRelations: drizzle_orm0.Many<"sub_agent_relations">;
29526
+ sentMessages: drizzle_orm0.Many<"messages">;
29527
+ receivedMessages: drizzle_orm0.Many<"messages">;
29528
+ toolRelations: drizzle_orm0.Many<"sub_agent_tool_relations">;
29529
+ functionToolRelations: drizzle_orm0.Many<"sub_agent_function_tool_relations">;
29530
+ dataComponentRelations: drizzle_orm0.Many<"sub_agent_data_components">;
29531
+ artifactComponentRelations: drizzle_orm0.Many<"sub_agent_artifact_components">;
29520
29532
  }>;
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">;
29533
+ declare const agentRelations: drizzle_orm0.Relations<"agent", {
29534
+ project: drizzle_orm0.One<"projects", true>;
29535
+ defaultSubAgent: drizzle_orm0.One<"sub_agents", false>;
29536
+ contextConfig: drizzle_orm0.One<"context_configs", false>;
29537
+ functionTools: drizzle_orm0.Many<"function_tools">;
29526
29538
  }>;
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>;
29539
+ declare const externalAgentsRelations: drizzle_orm0.Relations<"external_agents", {
29540
+ project: drizzle_orm0.One<"projects", true>;
29541
+ subAgentExternalAgentRelations: drizzle_orm0.Many<"sub_agent_external_agent_relations">;
29542
+ credentialReference: drizzle_orm0.One<"credential_references", false>;
29531
29543
  }>;
29532
- declare const apiKeysRelations: drizzle_orm20.Relations<"api_keys", {
29533
- project: drizzle_orm20.One<"projects", true>;
29534
- agent: drizzle_orm20.One<"agent", true>;
29544
+ declare const apiKeysRelations: drizzle_orm0.Relations<"api_keys", {
29545
+ project: drizzle_orm0.One<"projects", true>;
29546
+ agent: drizzle_orm0.One<"agent", true>;
29535
29547
  }>;
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>;
29548
+ declare const agentToolRelationsRelations: drizzle_orm0.Relations<"sub_agent_tool_relations", {
29549
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29550
+ tool: drizzle_orm0.One<"tools", true>;
29539
29551
  }>;
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">;
29552
+ declare const credentialReferencesRelations: drizzle_orm0.Relations<"credential_references", {
29553
+ project: drizzle_orm0.One<"projects", true>;
29554
+ tools: drizzle_orm0.Many<"tools">;
29555
+ externalAgents: drizzle_orm0.Many<"external_agents">;
29544
29556
  }>;
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>;
29557
+ declare const toolsRelations: drizzle_orm0.Relations<"tools", {
29558
+ project: drizzle_orm0.One<"projects", true>;
29559
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_tool_relations">;
29560
+ credentialReference: drizzle_orm0.One<"credential_references", false>;
29549
29561
  }>;
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>;
29562
+ declare const conversationsRelations: drizzle_orm0.Relations<"conversations", {
29563
+ project: drizzle_orm0.One<"projects", true>;
29564
+ messages: drizzle_orm0.Many<"messages">;
29565
+ activeSubAgent: drizzle_orm0.One<"sub_agents", true>;
29554
29566
  }>;
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">;
29567
+ declare const messagesRelations: drizzle_orm0.Relations<"messages", {
29568
+ conversation: drizzle_orm0.One<"conversations", true>;
29569
+ fromSubAgent: drizzle_orm0.One<"sub_agents", false>;
29570
+ toSubAgent: drizzle_orm0.One<"sub_agents", false>;
29571
+ fromTeamAgent: drizzle_orm0.One<"agent", false>;
29572
+ toTeamAgent: drizzle_orm0.One<"agent", false>;
29573
+ fromExternalAgent: drizzle_orm0.One<"external_agents", false>;
29574
+ toExternalAgent: drizzle_orm0.One<"external_agents", false>;
29575
+ task: drizzle_orm0.One<"tasks", false>;
29576
+ parentMessage: drizzle_orm0.One<"messages", false>;
29577
+ childMessages: drizzle_orm0.Many<"messages">;
29566
29578
  }>;
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">;
29579
+ declare const artifactComponentsRelations: drizzle_orm0.Relations<"artifact_components", {
29580
+ project: drizzle_orm0.One<"projects", true>;
29581
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_artifact_components">;
29570
29582
  }>;
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>;
29583
+ declare const subAgentArtifactComponentsRelations: drizzle_orm0.Relations<"sub_agent_artifact_components", {
29584
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29585
+ artifactComponent: drizzle_orm0.One<"artifact_components", true>;
29574
29586
  }>;
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">;
29587
+ declare const dataComponentsRelations: drizzle_orm0.Relations<"data_components", {
29588
+ project: drizzle_orm0.One<"projects", true>;
29589
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_data_components">;
29578
29590
  }>;
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>;
29591
+ declare const subAgentDataComponentsRelations: drizzle_orm0.Relations<"sub_agent_data_components", {
29592
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29593
+ dataComponent: drizzle_orm0.One<"data_components", true>;
29582
29594
  }>;
29583
- declare const ledgerArtifactsRelations: drizzle_orm20.Relations<"ledger_artifacts", {
29584
- project: drizzle_orm20.One<"projects", true>;
29585
- task: drizzle_orm20.One<"tasks", true>;
29595
+ declare const ledgerArtifactsRelations: drizzle_orm0.Relations<"ledger_artifacts", {
29596
+ project: drizzle_orm0.One<"projects", true>;
29597
+ task: drizzle_orm0.One<"tasks", true>;
29586
29598
  }>;
29587
- declare const functionsRelations: drizzle_orm20.Relations<"functions", {
29588
- functionTools: drizzle_orm20.Many<"function_tools">;
29589
- project: drizzle_orm20.One<"projects", true>;
29599
+ declare const functionsRelations: drizzle_orm0.Relations<"functions", {
29600
+ functionTools: drizzle_orm0.Many<"function_tools">;
29601
+ project: drizzle_orm0.One<"projects", true>;
29590
29602
  }>;
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>;
29603
+ declare const subAgentRelationsRelations: drizzle_orm0.Relations<"sub_agent_relations", {
29604
+ agent: drizzle_orm0.One<"agent", true>;
29605
+ sourceSubAgent: drizzle_orm0.One<"sub_agents", true>;
29606
+ targetSubAgent: drizzle_orm0.One<"sub_agents", false>;
29595
29607
  }>;
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">;
29608
+ declare const functionToolsRelations: drizzle_orm0.Relations<"function_tools", {
29609
+ project: drizzle_orm0.One<"projects", true>;
29610
+ agent: drizzle_orm0.One<"agent", true>;
29611
+ function: drizzle_orm0.One<"functions", true>;
29612
+ subAgentRelations: drizzle_orm0.Many<"sub_agent_function_tool_relations">;
29601
29613
  }>;
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>;
29614
+ declare const subAgentFunctionToolRelationsRelations: drizzle_orm0.Relations<"sub_agent_function_tool_relations", {
29615
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29616
+ functionTool: drizzle_orm0.One<"function_tools", true>;
29605
29617
  }>;
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>;
29618
+ declare const subAgentExternalAgentRelationsRelations: drizzle_orm0.Relations<"sub_agent_external_agent_relations", {
29619
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29620
+ externalAgent: drizzle_orm0.One<"external_agents", true>;
29609
29621
  }>;
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>;
29622
+ declare const subAgentTeamAgentRelationsRelations: drizzle_orm0.Relations<"sub_agent_team_agent_relations", {
29623
+ subAgent: drizzle_orm0.One<"sub_agents", true>;
29624
+ targetAgent: drizzle_orm0.One<"agent", true>;
29613
29625
  }>;
29614
29626
  //#endregion
29615
29627
  //#region src/db/client.d.ts