@inkeep/agents-core 0.0.0-dev-20251218072121 → 0.0.0-dev-20251218173048

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
@@ -1378,9 +1378,6 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1378
1378
  id: z.ZodString;
1379
1379
  name: z.ZodString;
1380
1380
  description: z.ZodNullable<z.ZodString>;
1381
- prompt: z.ZodNullable<z.ZodString>;
1382
- createdAt: z.ZodString;
1383
- updatedAt: z.ZodString;
1384
1381
  models: z.ZodNullable<z.ZodType<{
1385
1382
  base?: {
1386
1383
  model?: string | undefined;
@@ -1443,15 +1440,15 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1443
1440
  }, {
1444
1441
  stepCountIs?: number | undefined;
1445
1442
  }>>>;
1443
+ createdAt: z.ZodString;
1444
+ updatedAt: z.ZodString;
1445
+ prompt: z.ZodNullable<z.ZodString>;
1446
1446
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
1447
1447
  }, z.core.$strip>;
1448
1448
  declare const SubAgentApiInsertSchema: z.ZodObject<{
1449
1449
  id: z.ZodString;
1450
1450
  name: z.ZodString;
1451
1451
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1452
- prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
- createdAt: z.ZodOptional<z.ZodString>;
1454
- updatedAt: z.ZodOptional<z.ZodString>;
1455
1452
  models: z.ZodOptional<z.ZodObject<{
1456
1453
  base: z.ZodOptional<z.ZodObject<{
1457
1454
  model: z.ZodOptional<z.ZodString>;
@@ -1475,15 +1472,15 @@ declare const SubAgentApiInsertSchema: z.ZodObject<{
1475
1472
  }, {
1476
1473
  stepCountIs?: number | undefined;
1477
1474
  }>>>>;
1475
+ createdAt: z.ZodOptional<z.ZodString>;
1476
+ updatedAt: z.ZodOptional<z.ZodString>;
1477
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
1478
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
1479
1479
  }, z.core.$strip>;
1480
1480
  declare const SubAgentApiUpdateSchema: z.ZodObject<{
1481
1481
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1482
1482
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1483
1483
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1484
- prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1485
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1486
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1487
1484
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
1488
1485
  base: z.ZodOptional<z.ZodObject<{
1489
1486
  model: z.ZodOptional<z.ZodString>;
@@ -1507,6 +1504,9 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
1507
1504
  }, {
1508
1505
  stepCountIs?: number | undefined;
1509
1506
  }>>>>>>;
1507
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1508
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1509
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1510
1510
  conversationHistoryConfig: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>>;
1511
1511
  }, z.core.$strip>;
1512
1512
  declare const SubAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -1935,9 +1935,9 @@ declare const ExternalSubAgentRelationInsertSchema: z.ZodObject<{
1935
1935
  }>;
1936
1936
  declare const ExternalSubAgentRelationApiInsertSchema: z.ZodObject<{
1937
1937
  id: z.ZodString;
1938
- agentId: z.ZodString;
1939
1938
  createdAt: z.ZodOptional<z.ZodString>;
1940
1939
  updatedAt: z.ZodOptional<z.ZodString>;
1940
+ agentId: z.ZodString;
1941
1941
  sourceSubAgentId: z.ZodString;
1942
1942
  targetSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1943
1943
  relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2812,9 +2812,6 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2812
2812
  id: z.ZodString;
2813
2813
  name: z.ZodString;
2814
2814
  description: z.ZodNullable<z.ZodString>;
2815
- prompt: z.ZodNullable<z.ZodString>;
2816
- createdAt: z.ZodString;
2817
- updatedAt: z.ZodString;
2818
2815
  models: z.ZodNullable<z.ZodType<{
2819
2816
  base?: {
2820
2817
  model?: string | undefined;
@@ -2877,8 +2874,11 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2877
2874
  }, {
2878
2875
  transferCountIs?: number | undefined;
2879
2876
  }>>>;
2877
+ createdAt: z.ZodString;
2878
+ updatedAt: z.ZodString;
2880
2879
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
2881
2880
  contextConfigId: z.ZodNullable<z.ZodString>;
2881
+ prompt: z.ZodNullable<z.ZodString>;
2882
2882
  statusUpdates: z.ZodNullable<z.ZodType<{
2883
2883
  enabled?: boolean | undefined;
2884
2884
  numEvents?: number | undefined;
@@ -2940,9 +2940,6 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2940
2940
  declare const AgentApiInsertSchema: z.ZodObject<{
2941
2941
  name: z.ZodString;
2942
2942
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2943
- prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2944
- createdAt: z.ZodOptional<z.ZodString>;
2945
- updatedAt: z.ZodOptional<z.ZodString>;
2946
2943
  models: z.ZodOptional<z.ZodNullable<z.ZodType<{
2947
2944
  base?: {
2948
2945
  model?: string | undefined;
@@ -3005,8 +3002,11 @@ declare const AgentApiInsertSchema: z.ZodObject<{
3005
3002
  }, {
3006
3003
  transferCountIs?: number | undefined;
3007
3004
  }>>>>;
3005
+ createdAt: z.ZodOptional<z.ZodString>;
3006
+ updatedAt: z.ZodOptional<z.ZodString>;
3008
3007
  defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3009
3008
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3009
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3010
3010
  statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
3011
3011
  enabled?: boolean | undefined;
3012
3012
  numEvents?: number | undefined;
@@ -3070,9 +3070,6 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3070
3070
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3071
3071
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3072
3072
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3073
- prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3074
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3075
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3076
3073
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
3077
3074
  base?: {
3078
3075
  model?: string | undefined;
@@ -3135,8 +3132,11 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3135
3132
  }, {
3136
3133
  transferCountIs?: number | undefined;
3137
3134
  }>>>>>>;
3135
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3136
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3138
3137
  defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3139
3138
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3139
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3140
3140
  statusUpdates: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
3141
3141
  enabled?: boolean | undefined;
3142
3142
  numEvents?: number | undefined;
@@ -3604,20 +3604,20 @@ declare const TaskUpdateSchema: z.ZodObject<{
3604
3604
  }>;
3605
3605
  declare const TaskApiSelectSchema: z.ZodObject<{
3606
3606
  id: z.ZodString;
3607
- agentId: z.ZodString;
3608
3607
  createdAt: z.ZodString;
3609
3608
  updatedAt: z.ZodString;
3610
3609
  metadata: z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
3610
+ agentId: z.ZodString;
3611
3611
  contextId: z.ZodString;
3612
3612
  status: z.ZodString;
3613
3613
  subAgentId: z.ZodString;
3614
3614
  }, z.core.$strip>;
3615
3615
  declare const TaskApiInsertSchema: z.ZodObject<{
3616
3616
  id: z.ZodString;
3617
- agentId: z.ZodString;
3618
3617
  createdAt: z.ZodOptional<z.ZodString>;
3619
3618
  updatedAt: z.ZodOptional<z.ZodString>;
3620
3619
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
3620
+ agentId: z.ZodString;
3621
3621
  conversationId: z.ZodOptional<z.ZodString>;
3622
3622
  contextId: z.ZodString;
3623
3623
  status: z.ZodString;
@@ -3625,10 +3625,10 @@ declare const TaskApiInsertSchema: z.ZodObject<{
3625
3625
  }, z.core.$strip>;
3626
3626
  declare const TaskApiUpdateSchema: z.ZodObject<{
3627
3627
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3628
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3629
3628
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3630
3629
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3631
3630
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
3631
+ agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3632
3632
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3633
3633
  contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3634
3634
  status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -4972,8 +4972,8 @@ declare const ConversationApiSelectSchema: z.ZodObject<{
4972
4972
  title: z.ZodNullable<z.ZodString>;
4973
4973
  createdAt: z.ZodString;
4974
4974
  updatedAt: z.ZodString;
4975
- userId: z.ZodNullable<z.ZodString>;
4976
4975
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
4976
+ userId: z.ZodNullable<z.ZodString>;
4977
4977
  activeSubAgentId: z.ZodString;
4978
4978
  lastContextResolution: z.ZodNullable<z.ZodString>;
4979
4979
  }, z.core.$strip>;
@@ -4982,9 +4982,9 @@ declare const ConversationApiInsertSchema: z.ZodObject<{
4982
4982
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4983
4983
  createdAt: z.ZodOptional<z.ZodString>;
4984
4984
  updatedAt: z.ZodOptional<z.ZodString>;
4985
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4986
4985
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
4987
4986
  contextConfigId: z.ZodOptional<z.ZodString>;
4987
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4988
4988
  activeSubAgentId: z.ZodString;
4989
4989
  lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4990
4990
  }, z.core.$strip>;
@@ -4993,9 +4993,9 @@ declare const ConversationApiUpdateSchema: z.ZodObject<{
4993
4993
  title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4994
4994
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4995
4995
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4996
- userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4997
4996
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
4998
4997
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4998
+ userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4999
4999
  activeSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5000
5000
  lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5001
5001
  }, z.core.$strip>;
@@ -5849,7 +5849,6 @@ declare const MessageApiSelectSchema: z.ZodObject<{
5849
5849
  createdAt: z.ZodString;
5850
5850
  updatedAt: z.ZodString;
5851
5851
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
5852
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5853
5852
  conversationId: z.ZodString;
5854
5853
  role: z.ZodString;
5855
5854
  fromSubAgentId: z.ZodNullable<z.ZodString>;
@@ -5858,6 +5857,7 @@ declare const MessageApiSelectSchema: z.ZodObject<{
5858
5857
  toExternalAgentId: z.ZodNullable<z.ZodString>;
5859
5858
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
5860
5859
  toTeamAgentId: z.ZodNullable<z.ZodString>;
5860
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5861
5861
  visibility: z.ZodString;
5862
5862
  messageType: z.ZodString;
5863
5863
  taskId: z.ZodNullable<z.ZodString>;
@@ -5870,7 +5870,6 @@ declare const MessageApiInsertSchema: z.ZodObject<{
5870
5870
  createdAt: z.ZodOptional<z.ZodString>;
5871
5871
  updatedAt: z.ZodOptional<z.ZodString>;
5872
5872
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
5873
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5874
5873
  conversationId: z.ZodString;
5875
5874
  role: z.ZodString;
5876
5875
  fromSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5879,6 +5878,7 @@ declare const MessageApiInsertSchema: z.ZodObject<{
5879
5878
  toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5880
5879
  fromTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5881
5880
  toTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5881
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5882
5882
  visibility: z.ZodOptional<z.ZodString>;
5883
5883
  messageType: z.ZodOptional<z.ZodString>;
5884
5884
  taskId: z.ZodOptional<z.ZodString>;
@@ -5891,7 +5891,6 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
5891
5891
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5892
5892
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5893
5893
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
5894
- content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
5895
5894
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5896
5895
  role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5897
5896
  fromSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
@@ -5900,6 +5899,7 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
5900
5899
  toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5901
5900
  fromTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5902
5901
  toTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5902
+ content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
5903
5903
  visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5904
5904
  messageType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5905
5905
  taskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -6868,7 +6868,7 @@ declare const ContextCacheInsertSchema: drizzle_zod15.BuildSchema<"insert", {
6868
6868
  }, {}, {
6869
6869
  length: 256;
6870
6870
  }>;
6871
- }, "tenantId" | "projectId" | "id" | "value" | "createdAt" | "updatedAt" | "contextConfigId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
6871
+ }, "id" | "value" | "createdAt" | "updatedAt" | "tenantId" | "contextConfigId" | "projectId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
6872
6872
  declare const ContextCacheUpdateSchema: z.ZodObject<{
6873
6873
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6874
6874
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -7298,11 +7298,11 @@ declare const DataComponentInsertSchema: z.ZodObject<{
7298
7298
  in: {};
7299
7299
  }>;
7300
7300
  declare const DataComponentBaseSchema: z.ZodObject<{
7301
- tenantId: z.ZodString;
7302
- projectId: z.ZodString;
7303
7301
  id: z.ZodString;
7304
7302
  name: z.ZodString;
7305
7303
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7304
+ tenantId: z.ZodString;
7305
+ projectId: z.ZodString;
7306
7306
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
7307
7307
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
7308
7308
  component: string;
@@ -7939,7 +7939,7 @@ declare const SubAgentDataComponentInsertSchema: drizzle_zod15.BuildSchema<"inse
7939
7939
  }, {}, {
7940
7940
  length: 256;
7941
7941
  }>;
7942
- }, "tenantId" | "projectId" | "id" | "agentId" | "createdAt" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
7942
+ }, "id" | "createdAt" | "tenantId" | "projectId" | "agentId" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
7943
7943
  declare const SubAgentDataComponentUpdateSchema: z.ZodObject<{
7944
7944
  dataComponentId: z.ZodOptional<z.ZodString>;
7945
7945
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -8673,36 +8673,33 @@ declare const ExternalAgentApiSelectSchema: z.ZodObject<{
8673
8673
  id: z.ZodString;
8674
8674
  name: z.ZodString;
8675
8675
  description: z.ZodNullable<z.ZodString>;
8676
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8677
8676
  createdAt: z.ZodString;
8678
8677
  updatedAt: z.ZodString;
8679
8678
  baseUrl: z.ZodString;
8679
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8680
8680
  }, z.core.$strip>;
8681
8681
  declare const ExternalAgentApiInsertSchema: z.ZodObject<{
8682
8682
  id: z.ZodString;
8683
8683
  name: z.ZodString;
8684
8684
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8685
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8686
8685
  createdAt: z.ZodOptional<z.ZodString>;
8687
8686
  updatedAt: z.ZodOptional<z.ZodString>;
8688
8687
  baseUrl: z.ZodString;
8688
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8689
8689
  }, z.core.$strip>;
8690
8690
  declare const ExternalAgentApiUpdateSchema: z.ZodObject<{
8691
8691
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8692
8692
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8693
8693
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
8694
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
8695
8694
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
8696
8695
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
8697
8696
  baseUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8697
+ credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
8698
8698
  }, z.core.$strip>;
8699
8699
  declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8700
8700
  id: z.ZodString;
8701
8701
  name: z.ZodString;
8702
8702
  description: z.ZodNullable<z.ZodString>;
8703
- prompt: z.ZodNullable<z.ZodString>;
8704
- createdAt: z.ZodString;
8705
- updatedAt: z.ZodString;
8706
8703
  models: z.ZodNullable<z.ZodType<{
8707
8704
  base?: {
8708
8705
  model?: string | undefined;
@@ -8765,16 +8762,19 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8765
8762
  }, {
8766
8763
  stepCountIs?: number | undefined;
8767
8764
  }>>>;
8765
+ createdAt: z.ZodString;
8766
+ updatedAt: z.ZodString;
8767
+ prompt: z.ZodNullable<z.ZodString>;
8768
8768
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
8769
8769
  type: z.ZodLiteral<"internal">;
8770
8770
  }, z.core.$strip>, z.ZodObject<{
8771
8771
  id: z.ZodString;
8772
8772
  name: z.ZodString;
8773
8773
  description: z.ZodNullable<z.ZodString>;
8774
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8775
8774
  createdAt: z.ZodString;
8776
8775
  updatedAt: z.ZodString;
8777
8776
  baseUrl: z.ZodString;
8777
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8778
8778
  type: z.ZodLiteral<"external">;
8779
8779
  }, z.core.$strip>], "type">;
8780
8780
  declare const ApiKeySelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -9239,10 +9239,10 @@ declare const ApiKeyInsertSchema: z.ZodObject<{
9239
9239
  }>;
9240
9240
  declare const ApiKeyUpdateSchema: z.ZodObject<{
9241
9241
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9242
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9242
9243
  agentId: z.ZodOptional<z.ZodString>;
9243
9244
  lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9244
9245
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9245
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9246
9246
  }, {
9247
9247
  out: {};
9248
9248
  in: {};
@@ -9250,13 +9250,13 @@ declare const ApiKeyUpdateSchema: z.ZodObject<{
9250
9250
  declare const ApiKeyApiSelectSchema: z.ZodObject<{
9251
9251
  id: z.ZodString;
9252
9252
  name: z.ZodNullable<z.ZodString>;
9253
+ createdAt: z.ZodString;
9254
+ updatedAt: z.ZodString;
9253
9255
  agentId: z.ZodString;
9254
9256
  publicId: z.ZodString;
9255
9257
  keyPrefix: z.ZodString;
9256
9258
  lastUsedAt: z.ZodNullable<z.ZodString>;
9257
9259
  expiresAt: z.ZodNullable<z.ZodString>;
9258
- createdAt: z.ZodString;
9259
- updatedAt: z.ZodString;
9260
9260
  }, {
9261
9261
  out: {};
9262
9262
  in: {};
@@ -9266,13 +9266,13 @@ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
9266
9266
  apiKey: z.ZodObject<{
9267
9267
  id: z.ZodString;
9268
9268
  name: z.ZodNullable<z.ZodString>;
9269
+ createdAt: z.ZodString;
9270
+ updatedAt: z.ZodString;
9269
9271
  agentId: z.ZodString;
9270
9272
  publicId: z.ZodString;
9271
9273
  keyPrefix: z.ZodString;
9272
9274
  lastUsedAt: z.ZodNullable<z.ZodString>;
9273
9275
  expiresAt: z.ZodNullable<z.ZodString>;
9274
- createdAt: z.ZodString;
9275
- updatedAt: z.ZodString;
9276
9276
  }, {
9277
9277
  out: {};
9278
9278
  in: {};
@@ -9282,20 +9282,20 @@ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
9282
9282
  }, z.core.$strip>;
9283
9283
  declare const ApiKeyApiInsertSchema: z.ZodObject<{
9284
9284
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9285
- agentId: z.ZodString;
9286
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9287
9285
  createdAt: z.ZodOptional<z.ZodString>;
9288
9286
  updatedAt: z.ZodOptional<z.ZodString>;
9287
+ agentId: z.ZodString;
9288
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9289
9289
  }, {
9290
9290
  out: {};
9291
9291
  in: {};
9292
9292
  }>;
9293
9293
  declare const ApiKeyApiUpdateSchema: z.ZodObject<{
9294
9294
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9295
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9295
9296
  agentId: z.ZodOptional<z.ZodString>;
9296
9297
  lastUsedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9297
9298
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
9298
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9299
9299
  }, {
9300
9300
  out: {};
9301
9301
  in: {};
@@ -9792,8 +9792,8 @@ declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
9792
9792
  updatedAt: z.ZodString;
9793
9793
  credentialStoreId: z.ZodString;
9794
9794
  retrievalParams: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
9795
- userId: z.ZodNullable<z.ZodString>;
9796
9795
  toolId: z.ZodNullable<z.ZodString>;
9796
+ userId: z.ZodNullable<z.ZodString>;
9797
9797
  createdBy: z.ZodNullable<z.ZodString>;
9798
9798
  type: z.ZodEnum<{
9799
9799
  readonly memory: "memory";
@@ -10349,8 +10349,8 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
10349
10349
  updatedAt: z.ZodOptional<z.ZodString>;
10350
10350
  credentialStoreId: z.ZodString;
10351
10351
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10352
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10353
10352
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10353
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10354
10354
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10355
10355
  type: z.ZodEnum<{
10356
10356
  readonly memory: "memory";
@@ -10365,8 +10365,8 @@ declare const CredentialReferenceApiUpdateSchema: z.ZodObject<{
10365
10365
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10366
10366
  credentialStoreId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10367
10367
  retrievalParams: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
10368
- userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10369
10368
  toolId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10369
+ userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10370
10370
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10371
10371
  type: z.ZodOptional<z.ZodEnum<{
10372
10372
  readonly memory: "memory";
@@ -10483,13 +10483,13 @@ declare const McpToolSchema: z.ZodObject<{
10483
10483
  declare const MCPToolConfigSchema: z.ZodObject<{
10484
10484
  id: z.ZodString;
10485
10485
  name: z.ZodString;
10486
- expiresAt: z.ZodOptional<z.ZodString>;
10487
10486
  createdBy: z.ZodOptional<z.ZodString>;
10488
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10489
10487
  credentialScope: z.ZodOptional<z.ZodString>;
10488
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10490
10489
  imageUrl: z.ZodOptional<z.ZodString>;
10491
10490
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
10492
10491
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10492
+ expiresAt: z.ZodOptional<z.ZodString>;
10493
10493
  availableTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
10494
10494
  name: z.ZodString;
10495
10495
  description: z.ZodOptional<z.ZodString>;
@@ -10522,8 +10522,8 @@ declare const MCPToolConfigSchema: z.ZodObject<{
10522
10522
  updatedAt: z.ZodOptional<z.ZodString>;
10523
10523
  credentialStoreId: z.ZodString;
10524
10524
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10525
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10526
10525
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10526
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10527
10527
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10528
10528
  type: z.ZodEnum<{
10529
10529
  readonly memory: "memory";
@@ -10576,6 +10576,9 @@ declare const ToolApiSelectSchema: z.ZodObject<{
10576
10576
  id: z.ZodString;
10577
10577
  name: z.ZodString;
10578
10578
  description: z.ZodNullable<z.ZodString>;
10579
+ createdAt: z.ZodString;
10580
+ updatedAt: z.ZodString;
10581
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
10579
10582
  config: z.ZodType<{
10580
10583
  type: "mcp";
10581
10584
  mcp: ToolMcpConfig;
@@ -10589,11 +10592,8 @@ declare const ToolApiSelectSchema: z.ZodObject<{
10589
10592
  type: "mcp";
10590
10593
  mcp: ToolMcpConfig;
10591
10594
  }>>;
10592
- credentialReferenceId: z.ZodNullable<z.ZodString>;
10593
- createdAt: z.ZodString;
10594
- updatedAt: z.ZodString;
10595
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
10596
10595
  credentialScope: z.ZodString;
10596
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
10597
10597
  imageUrl: z.ZodNullable<z.ZodString>;
10598
10598
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
10599
10599
  lastError: z.ZodNullable<z.ZodString>;
@@ -10602,6 +10602,9 @@ declare const ToolApiInsertSchema: z.ZodObject<{
10602
10602
  id: z.ZodString;
10603
10603
  name: z.ZodString;
10604
10604
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10605
+ createdAt: z.ZodOptional<z.ZodString>;
10606
+ updatedAt: z.ZodOptional<z.ZodString>;
10607
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10605
10608
  config: z.ZodObject<{
10606
10609
  type: z.ZodLiteral<"mcp">;
10607
10610
  mcp: z.ZodObject<{
@@ -10621,11 +10624,8 @@ declare const ToolApiInsertSchema: z.ZodObject<{
10621
10624
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
10622
10625
  }, z.core.$strip>;
10623
10626
  }, z.core.$strip>;
10624
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10625
- createdAt: z.ZodOptional<z.ZodString>;
10626
- updatedAt: z.ZodOptional<z.ZodString>;
10627
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10628
10627
  credentialScope: z.ZodOptional<z.ZodString>;
10628
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10629
10629
  imageUrl: z.ZodOptional<z.ZodString>;
10630
10630
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
10631
10631
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10634,6 +10634,9 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
10634
10634
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10635
10635
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10636
10636
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10637
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10638
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10639
+ credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10637
10640
  config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
10638
10641
  type: z.ZodLiteral<"mcp">;
10639
10642
  mcp: z.ZodObject<{
@@ -10653,11 +10656,8 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
10653
10656
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
10654
10657
  }, z.core.$strip>;
10655
10658
  }, z.core.$strip>>>;
10656
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10657
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10658
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10659
- 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>>>>>>>;
10660
10659
  credentialScope: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10660
+ 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>>>>>>>;
10661
10661
  imageUrl: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10662
10662
  capabilities: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
10663
10663
  lastError: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
@@ -11027,9 +11027,9 @@ declare const FunctionToolApiSelectSchema: z.ZodObject<{
11027
11027
  id: z.ZodString;
11028
11028
  name: z.ZodString;
11029
11029
  description: z.ZodNullable<z.ZodString>;
11030
- agentId: z.ZodString;
11031
11030
  createdAt: z.ZodString;
11032
11031
  updatedAt: z.ZodString;
11032
+ agentId: z.ZodString;
11033
11033
  functionId: z.ZodString;
11034
11034
  }, z.core.$strip>;
11035
11035
  declare const FunctionToolApiInsertSchema: z.ZodObject<{
@@ -11044,9 +11044,9 @@ declare const FunctionToolApiUpdateSchema: z.ZodObject<{
11044
11044
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11045
11045
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11046
11046
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
11047
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11048
11047
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11049
11048
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11049
+ agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11050
11050
  functionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11051
11051
  }, z.core.$strip>;
11052
11052
  declare const FunctionSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -11440,8 +11440,8 @@ declare const FetchDefinitionSchema: z.ZodObject<{
11440
11440
  updatedAt: z.ZodOptional<z.ZodString>;
11441
11441
  credentialStoreId: z.ZodString;
11442
11442
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
11443
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11444
11443
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11444
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11445
11445
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11446
11446
  type: z.ZodEnum<{
11447
11447
  readonly memory: "memory";
@@ -11464,23 +11464,23 @@ declare const ContextConfigSelectSchema: z.ZodObject<{
11464
11464
  in: {};
11465
11465
  }>;
11466
11466
  declare const ContextConfigInsertSchema: z.ZodObject<{
11467
+ id: z.ZodOptional<z.ZodString>;
11467
11468
  tenantId: z.ZodString;
11468
11469
  projectId: z.ZodString;
11469
- id: z.ZodOptional<z.ZodString>;
11470
- agentId: z.ZodString;
11471
11470
  headersSchema: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11472
11471
  contextVariables: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11472
+ agentId: z.ZodString;
11473
11473
  }, {
11474
11474
  out: {};
11475
11475
  in: {};
11476
11476
  }>;
11477
11477
  declare const ContextConfigUpdateSchema: z.ZodObject<{
11478
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11478
11479
  tenantId: z.ZodOptional<z.ZodString>;
11479
11480
  projectId: z.ZodOptional<z.ZodString>;
11480
- id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11481
- agentId: z.ZodOptional<z.ZodString>;
11482
11481
  headersSchema: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11483
11482
  contextVariables: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11483
+ agentId: z.ZodOptional<z.ZodString>;
11484
11484
  }, {
11485
11485
  out: {};
11486
11486
  in: {};
@@ -11964,34 +11964,34 @@ declare const SubAgentToolRelationApiSelectSchema: z.ZodObject<{
11964
11964
  createdAt: z.ZodString;
11965
11965
  updatedAt: z.ZodString;
11966
11966
  toolId: z.ZodString;
11967
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11968
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11969
11967
  subAgentId: z.ZodString;
11968
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11970
11969
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11970
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11971
11971
  }, z.core.$strip>;
11972
11972
  declare const SubAgentToolRelationApiInsertSchema: z.ZodObject<{
11973
11973
  id: z.ZodString;
11974
11974
  createdAt: z.ZodOptional<z.ZodString>;
11975
11975
  updatedAt: z.ZodOptional<z.ZodString>;
11976
11976
  toolId: z.ZodString;
11977
+ subAgentId: z.ZodString;
11977
11978
  headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
11979
+ selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11978
11980
  toolPolicies: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
11979
11981
  needsApproval: z.ZodOptional<z.ZodBoolean>;
11980
11982
  }, z.core.$strip>>>>;
11981
- subAgentId: z.ZodString;
11982
- selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11983
11983
  }, z.core.$strip>;
11984
11984
  declare const SubAgentToolRelationApiUpdateSchema: z.ZodObject<{
11985
11985
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11986
11986
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11987
11987
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11988
11988
  toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11989
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11989
11990
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
11991
+ selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
11990
11992
  toolPolicies: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
11991
11993
  needsApproval: z.ZodOptional<z.ZodBoolean>;
11992
11994
  }, z.core.$strip>>>>>>;
11993
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11994
- selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
11995
11995
  }, z.core.$strip>;
11996
11996
  declare const SubAgentExternalAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
11997
11997
  createdAt: drizzle_orm_pg_core495.PgColumn<{
@@ -12362,9 +12362,9 @@ declare const SubAgentExternalAgentRelationApiSelectSchema: z.ZodObject<{
12362
12362
  id: z.ZodString;
12363
12363
  createdAt: z.ZodString;
12364
12364
  updatedAt: z.ZodString;
12365
+ subAgentId: z.ZodString;
12365
12366
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12366
12367
  externalAgentId: z.ZodString;
12367
- subAgentId: z.ZodString;
12368
12368
  }, z.core.$strip>;
12369
12369
  declare const SubAgentExternalAgentRelationApiInsertSchema: z.ZodObject<{
12370
12370
  createdAt: z.ZodOptional<z.ZodString>;
@@ -12376,9 +12376,9 @@ declare const SubAgentExternalAgentRelationApiUpdateSchema: z.ZodObject<{
12376
12376
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12377
12377
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12378
12378
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12379
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12379
12380
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12380
12381
  externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12381
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12382
12382
  }, z.core.$strip>;
12383
12383
  declare const SubAgentTeamAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
12384
12384
  createdAt: drizzle_orm_pg_core495.PgColumn<{
@@ -12749,8 +12749,8 @@ declare const SubAgentTeamAgentRelationApiSelectSchema: z.ZodObject<{
12749
12749
  id: z.ZodString;
12750
12750
  createdAt: z.ZodString;
12751
12751
  updatedAt: z.ZodString;
12752
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12753
12752
  subAgentId: z.ZodString;
12753
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12754
12754
  targetAgentId: z.ZodString;
12755
12755
  }, z.core.$strip>;
12756
12756
  declare const SubAgentTeamAgentRelationApiInsertSchema: z.ZodObject<{
@@ -12763,8 +12763,8 @@ declare const SubAgentTeamAgentRelationApiUpdateSchema: z.ZodObject<{
12763
12763
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12764
12764
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12765
12765
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12766
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12767
12766
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12767
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12768
12768
  targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12769
12769
  }, z.core.$strip>;
12770
12770
  declare const LedgerArtifactSelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -14108,7 +14108,7 @@ declare const LedgerArtifactInsertSchema: drizzle_zod15.BuildSchema<"insert", {
14108
14108
  }, {}, {
14109
14109
  length: 256;
14110
14110
  }>;
14111
- }, "tenantId" | "projectId" | "id" | "type" | "name" | "description" | "createdAt" | "updatedAt" | "metadata" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
14111
+ }, "id" | "name" | "description" | "type" | "createdAt" | "updatedAt" | "tenantId" | "metadata" | "projectId" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
14112
14112
  declare const LedgerArtifactUpdateSchema: z.ZodObject<{
14113
14113
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14114
14114
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -14134,9 +14134,9 @@ declare const LedgerArtifactUpdateSchema: z.ZodObject<{
14134
14134
  }>;
14135
14135
  declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14136
14136
  id: z.ZodString;
14137
- type: z.ZodString;
14138
14137
  name: z.ZodNullable<z.ZodString>;
14139
14138
  description: z.ZodNullable<z.ZodString>;
14139
+ type: z.ZodString;
14140
14140
  createdAt: z.ZodString;
14141
14141
  updatedAt: z.ZodString;
14142
14142
  metadata: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
@@ -14152,9 +14152,9 @@ declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14152
14152
  }, z.core.$strip>;
14153
14153
  declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14154
14154
  id: z.ZodString;
14155
- type: z.ZodOptional<z.ZodString>;
14156
14155
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14157
14156
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14157
+ type: z.ZodOptional<z.ZodString>;
14158
14158
  createdAt: z.ZodOptional<z.ZodString>;
14159
14159
  updatedAt: z.ZodOptional<z.ZodString>;
14160
14160
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
@@ -14170,9 +14170,9 @@ declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14170
14170
  }, z.core.$strip>;
14171
14171
  declare const LedgerArtifactApiUpdateSchema: z.ZodObject<{
14172
14172
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14173
- type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14174
14173
  name: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14175
14174
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14175
+ type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14176
14176
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14177
14177
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14178
14178
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
@@ -14238,8 +14238,6 @@ declare const FullAgentAgentInsertSchema: z.ZodObject<{
14238
14238
  id: z.ZodString;
14239
14239
  name: z.ZodString;
14240
14240
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14241
- createdAt: z.ZodOptional<z.ZodString>;
14242
- updatedAt: z.ZodOptional<z.ZodString>;
14243
14241
  models: z.ZodOptional<z.ZodObject<{
14244
14242
  base: z.ZodOptional<z.ZodObject<{
14245
14243
  model: z.ZodOptional<z.ZodString>;
@@ -14263,6 +14261,8 @@ declare const FullAgentAgentInsertSchema: z.ZodObject<{
14263
14261
  }, {
14264
14262
  stepCountIs?: number | undefined;
14265
14263
  }>>>>;
14264
+ createdAt: z.ZodOptional<z.ZodString>;
14265
+ updatedAt: z.ZodOptional<z.ZodString>;
14266
14266
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
14267
14267
  type: z.ZodLiteral<"internal">;
14268
14268
  canUse: z.ZodArray<z.ZodObject<{
@@ -14300,8 +14300,6 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14300
14300
  id: z.ZodString;
14301
14301
  name: z.ZodString;
14302
14302
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14303
- createdAt: z.ZodOptional<z.ZodString>;
14304
- updatedAt: z.ZodOptional<z.ZodString>;
14305
14303
  models: z.ZodOptional<z.ZodObject<{
14306
14304
  base: z.ZodOptional<z.ZodObject<{
14307
14305
  model: z.ZodOptional<z.ZodString>;
@@ -14325,6 +14323,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14325
14323
  }, {
14326
14324
  stepCountIs?: number | undefined;
14327
14325
  }>>>>;
14326
+ createdAt: z.ZodOptional<z.ZodString>;
14327
+ updatedAt: z.ZodOptional<z.ZodString>;
14328
14328
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
14329
14329
  type: z.ZodLiteral<"internal">;
14330
14330
  canUse: z.ZodArray<z.ZodObject<{
@@ -14354,6 +14354,9 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14354
14354
  id: z.ZodString;
14355
14355
  name: z.ZodString;
14356
14356
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14357
+ createdAt: z.ZodOptional<z.ZodString>;
14358
+ updatedAt: z.ZodOptional<z.ZodString>;
14359
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14357
14360
  config: z.ZodObject<{
14358
14361
  type: z.ZodLiteral<"mcp">;
14359
14362
  mcp: z.ZodObject<{
@@ -14373,11 +14376,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14373
14376
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14374
14377
  }, z.core.$strip>;
14375
14378
  }, z.core.$strip>;
14376
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14377
- createdAt: z.ZodOptional<z.ZodString>;
14378
- updatedAt: z.ZodOptional<z.ZodString>;
14379
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14380
14379
  credentialScope: z.ZodOptional<z.ZodString>;
14380
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14381
14381
  imageUrl: z.ZodOptional<z.ZodString>;
14382
14382
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
14383
14383
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14386,10 +14386,10 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14386
14386
  id: z.ZodString;
14387
14387
  name: z.ZodString;
14388
14388
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14389
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14390
14389
  createdAt: z.ZodOptional<z.ZodString>;
14391
14390
  updatedAt: z.ZodOptional<z.ZodString>;
14392
14391
  baseUrl: z.ZodString;
14392
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14393
14393
  }, z.core.$strip>>>;
14394
14394
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14395
14395
  id: z.ZodString;
@@ -14511,7 +14511,6 @@ declare const ProjectSelectSchema: z.ZodObject<{
14511
14511
  in: {};
14512
14512
  }>;
14513
14513
  declare const ProjectInsertSchema: z.ZodObject<{
14514
- tenantId: z.ZodString;
14515
14514
  id: z.ZodString;
14516
14515
  name: z.ZodString;
14517
14516
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14533,6 +14532,7 @@ declare const ProjectInsertSchema: z.ZodObject<{
14533
14532
  transferCountIs: z.ZodOptional<z.ZodNumber>;
14534
14533
  stepCountIs: z.ZodOptional<z.ZodNumber>;
14535
14534
  }, z.core.$strip>>;
14535
+ tenantId: z.ZodString;
14536
14536
  }, {
14537
14537
  out: {};
14538
14538
  in: {};
@@ -14566,8 +14566,6 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
14566
14566
  id: z.ZodString;
14567
14567
  name: z.ZodString;
14568
14568
  description: z.ZodNullable<z.ZodString>;
14569
- createdAt: z.ZodString;
14570
- updatedAt: z.ZodString;
14571
14569
  models: z.ZodNullable<z.ZodObject<{
14572
14570
  base: z.ZodObject<{
14573
14571
  model: z.ZodOptional<z.ZodString>;
@@ -14586,6 +14584,8 @@ declare const ProjectApiSelectSchema: z.ZodObject<{
14586
14584
  transferCountIs: z.ZodOptional<z.ZodNumber>;
14587
14585
  stepCountIs: z.ZodOptional<z.ZodNumber>;
14588
14586
  }, z.core.$strip>>;
14587
+ createdAt: z.ZodString;
14588
+ updatedAt: z.ZodString;
14589
14589
  }, {
14590
14590
  out: {};
14591
14591
  in: {};
@@ -14675,8 +14675,6 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14675
14675
  id: z.ZodString;
14676
14676
  name: z.ZodString;
14677
14677
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14678
- createdAt: z.ZodOptional<z.ZodString>;
14679
- updatedAt: z.ZodOptional<z.ZodString>;
14680
14678
  models: z.ZodOptional<z.ZodObject<{
14681
14679
  base: z.ZodOptional<z.ZodObject<{
14682
14680
  model: z.ZodOptional<z.ZodString>;
@@ -14700,6 +14698,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14700
14698
  }, {
14701
14699
  stepCountIs?: number | undefined;
14702
14700
  }>>>>;
14701
+ createdAt: z.ZodOptional<z.ZodString>;
14702
+ updatedAt: z.ZodOptional<z.ZodString>;
14703
14703
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
14704
14704
  type: z.ZodLiteral<"internal">;
14705
14705
  canUse: z.ZodArray<z.ZodObject<{
@@ -14729,6 +14729,9 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14729
14729
  id: z.ZodString;
14730
14730
  name: z.ZodString;
14731
14731
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14732
+ createdAt: z.ZodOptional<z.ZodString>;
14733
+ updatedAt: z.ZodOptional<z.ZodString>;
14734
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14732
14735
  config: z.ZodObject<{
14733
14736
  type: z.ZodLiteral<"mcp">;
14734
14737
  mcp: z.ZodObject<{
@@ -14748,11 +14751,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14748
14751
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14749
14752
  }, z.core.$strip>;
14750
14753
  }, z.core.$strip>;
14751
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14752
- createdAt: z.ZodOptional<z.ZodString>;
14753
- updatedAt: z.ZodOptional<z.ZodString>;
14754
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14755
14754
  credentialScope: z.ZodOptional<z.ZodString>;
14755
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14756
14756
  imageUrl: z.ZodOptional<z.ZodString>;
14757
14757
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
14758
14758
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14761,10 +14761,10 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14761
14761
  id: z.ZodString;
14762
14762
  name: z.ZodString;
14763
14763
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14764
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14765
14764
  createdAt: z.ZodOptional<z.ZodString>;
14766
14765
  updatedAt: z.ZodOptional<z.ZodString>;
14767
14766
  baseUrl: z.ZodString;
14767
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14768
14768
  }, z.core.$strip>>>;
14769
14769
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14770
14770
  id: z.ZodString;
@@ -14830,6 +14830,9 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14830
14830
  id: z.ZodString;
14831
14831
  name: z.ZodString;
14832
14832
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14833
+ createdAt: z.ZodOptional<z.ZodString>;
14834
+ updatedAt: z.ZodOptional<z.ZodString>;
14835
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14833
14836
  config: z.ZodObject<{
14834
14837
  type: z.ZodLiteral<"mcp">;
14835
14838
  mcp: z.ZodObject<{
@@ -14849,11 +14852,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14849
14852
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14850
14853
  }, z.core.$strip>;
14851
14854
  }, z.core.$strip>;
14852
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14853
- createdAt: z.ZodOptional<z.ZodString>;
14854
- updatedAt: 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>>>>>;
14856
14855
  credentialScope: z.ZodOptional<z.ZodString>;
14856
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14857
14857
  imageUrl: z.ZodOptional<z.ZodString>;
14858
14858
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
14859
14859
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14908,10 +14908,10 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14908
14908
  id: z.ZodString;
14909
14909
  name: z.ZodString;
14910
14910
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14911
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14912
14911
  createdAt: z.ZodOptional<z.ZodString>;
14913
14912
  updatedAt: z.ZodOptional<z.ZodString>;
14914
14913
  baseUrl: z.ZodString;
14914
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14915
14915
  }, z.core.$strip>>>;
14916
14916
  statusUpdates: z.ZodOptional<z.ZodObject<{
14917
14917
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -14935,8 +14935,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14935
14935
  updatedAt: z.ZodOptional<z.ZodString>;
14936
14936
  credentialStoreId: z.ZodString;
14937
14937
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14938
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14939
14938
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14939
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14940
14940
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14941
14941
  type: z.ZodEnum<{
14942
14942
  readonly memory: "memory";
@@ -14955,8 +14955,6 @@ declare const ProjectResponse: z.ZodObject<{
14955
14955
  id: z.ZodString;
14956
14956
  name: z.ZodString;
14957
14957
  description: z.ZodNullable<z.ZodString>;
14958
- createdAt: z.ZodString;
14959
- updatedAt: z.ZodString;
14960
14958
  models: z.ZodNullable<z.ZodObject<{
14961
14959
  base: z.ZodObject<{
14962
14960
  model: z.ZodOptional<z.ZodString>;
@@ -14975,6 +14973,8 @@ declare const ProjectResponse: z.ZodObject<{
14975
14973
  transferCountIs: z.ZodOptional<z.ZodNumber>;
14976
14974
  stepCountIs: z.ZodOptional<z.ZodNumber>;
14977
14975
  }, z.core.$strip>>;
14976
+ createdAt: z.ZodString;
14977
+ updatedAt: z.ZodString;
14978
14978
  }, {
14979
14979
  out: {};
14980
14980
  in: {};
@@ -14985,9 +14985,6 @@ declare const SubAgentResponse: z.ZodObject<{
14985
14985
  id: z.ZodString;
14986
14986
  name: z.ZodString;
14987
14987
  description: z.ZodNullable<z.ZodString>;
14988
- prompt: z.ZodNullable<z.ZodString>;
14989
- createdAt: z.ZodString;
14990
- updatedAt: z.ZodString;
14991
14988
  models: z.ZodNullable<z.ZodType<{
14992
14989
  base?: {
14993
14990
  model?: string | undefined;
@@ -15050,6 +15047,9 @@ declare const SubAgentResponse: z.ZodObject<{
15050
15047
  }, {
15051
15048
  stepCountIs?: number | undefined;
15052
15049
  }>>>;
15050
+ createdAt: z.ZodString;
15051
+ updatedAt: z.ZodString;
15052
+ prompt: z.ZodNullable<z.ZodString>;
15053
15053
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
15054
15054
  }, z.core.$strip>;
15055
15055
  }, z.core.$strip>;
@@ -15058,9 +15058,6 @@ declare const AgentResponse: z.ZodObject<{
15058
15058
  id: z.ZodString;
15059
15059
  name: z.ZodString;
15060
15060
  description: z.ZodNullable<z.ZodString>;
15061
- prompt: z.ZodNullable<z.ZodString>;
15062
- createdAt: z.ZodString;
15063
- updatedAt: z.ZodString;
15064
15061
  models: z.ZodNullable<z.ZodType<{
15065
15062
  base?: {
15066
15063
  model?: string | undefined;
@@ -15123,8 +15120,11 @@ declare const AgentResponse: z.ZodObject<{
15123
15120
  }, {
15124
15121
  transferCountIs?: number | undefined;
15125
15122
  }>>>;
15123
+ createdAt: z.ZodString;
15124
+ updatedAt: z.ZodString;
15126
15125
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
15127
15126
  contextConfigId: z.ZodNullable<z.ZodString>;
15127
+ prompt: z.ZodNullable<z.ZodString>;
15128
15128
  statusUpdates: z.ZodNullable<z.ZodType<{
15129
15129
  enabled?: boolean | undefined;
15130
15130
  numEvents?: number | undefined;
@@ -15189,6 +15189,9 @@ declare const ToolResponse: z.ZodObject<{
15189
15189
  id: z.ZodString;
15190
15190
  name: z.ZodString;
15191
15191
  description: z.ZodNullable<z.ZodString>;
15192
+ createdAt: z.ZodString;
15193
+ updatedAt: z.ZodString;
15194
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
15192
15195
  config: z.ZodType<{
15193
15196
  type: "mcp";
15194
15197
  mcp: ToolMcpConfig;
@@ -15202,11 +15205,8 @@ declare const ToolResponse: z.ZodObject<{
15202
15205
  type: "mcp";
15203
15206
  mcp: ToolMcpConfig;
15204
15207
  }>>;
15205
- credentialReferenceId: z.ZodNullable<z.ZodString>;
15206
- createdAt: z.ZodString;
15207
- updatedAt: z.ZodString;
15208
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15209
15208
  credentialScope: z.ZodString;
15209
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15210
15210
  imageUrl: z.ZodNullable<z.ZodString>;
15211
15211
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
15212
15212
  lastError: z.ZodNullable<z.ZodString>;
@@ -15217,10 +15217,10 @@ declare const ExternalAgentResponse: z.ZodObject<{
15217
15217
  id: z.ZodString;
15218
15218
  name: z.ZodString;
15219
15219
  description: z.ZodNullable<z.ZodString>;
15220
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15221
15220
  createdAt: z.ZodString;
15222
15221
  updatedAt: z.ZodString;
15223
15222
  baseUrl: z.ZodString;
15223
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15224
15224
  }, z.core.$strip>;
15225
15225
  }, z.core.$strip>;
15226
15226
  declare const ContextConfigResponse: z.ZodObject<{
@@ -15236,13 +15236,13 @@ declare const ApiKeyResponse: z.ZodObject<{
15236
15236
  data: z.ZodObject<{
15237
15237
  id: z.ZodString;
15238
15238
  name: z.ZodNullable<z.ZodString>;
15239
+ createdAt: z.ZodString;
15240
+ updatedAt: z.ZodString;
15239
15241
  agentId: z.ZodString;
15240
15242
  publicId: z.ZodString;
15241
15243
  keyPrefix: z.ZodString;
15242
15244
  lastUsedAt: z.ZodNullable<z.ZodString>;
15243
15245
  expiresAt: z.ZodNullable<z.ZodString>;
15244
- createdAt: z.ZodString;
15245
- updatedAt: z.ZodString;
15246
15246
  }, {
15247
15247
  out: {};
15248
15248
  in: {};
@@ -15256,8 +15256,8 @@ declare const CredentialReferenceResponse: z.ZodObject<{
15256
15256
  updatedAt: z.ZodString;
15257
15257
  credentialStoreId: z.ZodString;
15258
15258
  retrievalParams: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
15259
- userId: z.ZodNullable<z.ZodString>;
15260
15259
  toolId: z.ZodNullable<z.ZodString>;
15260
+ userId: z.ZodNullable<z.ZodString>;
15261
15261
  createdBy: z.ZodNullable<z.ZodString>;
15262
15262
  type: z.ZodEnum<{
15263
15263
  readonly memory: "memory";
@@ -15822,9 +15822,9 @@ declare const FunctionToolResponse: z.ZodObject<{
15822
15822
  id: z.ZodString;
15823
15823
  name: z.ZodString;
15824
15824
  description: z.ZodNullable<z.ZodString>;
15825
- agentId: z.ZodString;
15826
15825
  createdAt: z.ZodString;
15827
15826
  updatedAt: z.ZodString;
15827
+ agentId: z.ZodString;
15828
15828
  functionId: z.ZodString;
15829
15829
  }, z.core.$strip>;
15830
15830
  }, z.core.$strip>;
@@ -15877,10 +15877,10 @@ declare const SubAgentToolRelationResponse: z.ZodObject<{
15877
15877
  createdAt: z.ZodString;
15878
15878
  updatedAt: z.ZodString;
15879
15879
  toolId: z.ZodString;
15880
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15881
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15882
15880
  subAgentId: z.ZodString;
15881
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15883
15882
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15883
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15884
15884
  }, z.core.$strip>;
15885
15885
  }, z.core.$strip>;
15886
15886
  declare const ConversationResponse: z.ZodObject<{
@@ -15889,8 +15889,8 @@ declare const ConversationResponse: z.ZodObject<{
15889
15889
  title: z.ZodNullable<z.ZodString>;
15890
15890
  createdAt: z.ZodString;
15891
15891
  updatedAt: z.ZodString;
15892
- userId: z.ZodNullable<z.ZodString>;
15893
15892
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
15893
+ userId: z.ZodNullable<z.ZodString>;
15894
15894
  activeSubAgentId: z.ZodString;
15895
15895
  lastContextResolution: z.ZodNullable<z.ZodString>;
15896
15896
  }, z.core.$strip>;
@@ -15901,7 +15901,6 @@ declare const MessageResponse: z.ZodObject<{
15901
15901
  createdAt: z.ZodString;
15902
15902
  updatedAt: z.ZodString;
15903
15903
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
15904
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
15905
15904
  conversationId: z.ZodString;
15906
15905
  role: z.ZodString;
15907
15906
  fromSubAgentId: z.ZodNullable<z.ZodString>;
@@ -15910,6 +15909,7 @@ declare const MessageResponse: z.ZodObject<{
15910
15909
  toExternalAgentId: z.ZodNullable<z.ZodString>;
15911
15910
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
15912
15911
  toTeamAgentId: z.ZodNullable<z.ZodString>;
15912
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
15913
15913
  visibility: z.ZodString;
15914
15914
  messageType: z.ZodString;
15915
15915
  taskId: z.ZodNullable<z.ZodString>;
@@ -15923,8 +15923,6 @@ declare const ProjectListResponse: z.ZodObject<{
15923
15923
  id: z.ZodString;
15924
15924
  name: z.ZodString;
15925
15925
  description: z.ZodNullable<z.ZodString>;
15926
- createdAt: z.ZodString;
15927
- updatedAt: z.ZodString;
15928
15926
  models: z.ZodNullable<z.ZodObject<{
15929
15927
  base: z.ZodObject<{
15930
15928
  model: z.ZodOptional<z.ZodString>;
@@ -15943,6 +15941,8 @@ declare const ProjectListResponse: z.ZodObject<{
15943
15941
  transferCountIs: z.ZodOptional<z.ZodNumber>;
15944
15942
  stepCountIs: z.ZodOptional<z.ZodNumber>;
15945
15943
  }, z.core.$strip>>;
15944
+ createdAt: z.ZodString;
15945
+ updatedAt: z.ZodString;
15946
15946
  }, {
15947
15947
  out: {};
15948
15948
  in: {};
@@ -15959,9 +15959,6 @@ declare const SubAgentListResponse: z.ZodObject<{
15959
15959
  id: z.ZodString;
15960
15960
  name: z.ZodString;
15961
15961
  description: z.ZodNullable<z.ZodString>;
15962
- prompt: z.ZodNullable<z.ZodString>;
15963
- createdAt: z.ZodString;
15964
- updatedAt: z.ZodString;
15965
15962
  models: z.ZodNullable<z.ZodType<{
15966
15963
  base?: {
15967
15964
  model?: string | undefined;
@@ -16024,6 +16021,9 @@ declare const SubAgentListResponse: z.ZodObject<{
16024
16021
  }, {
16025
16022
  stepCountIs?: number | undefined;
16026
16023
  }>>>;
16024
+ createdAt: z.ZodString;
16025
+ updatedAt: z.ZodString;
16026
+ prompt: z.ZodNullable<z.ZodString>;
16027
16027
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
16028
16028
  }, z.core.$strip>>;
16029
16029
  pagination: z.ZodObject<{
@@ -16038,9 +16038,6 @@ declare const AgentListResponse: z.ZodObject<{
16038
16038
  id: z.ZodString;
16039
16039
  name: z.ZodString;
16040
16040
  description: z.ZodNullable<z.ZodString>;
16041
- prompt: z.ZodNullable<z.ZodString>;
16042
- createdAt: z.ZodString;
16043
- updatedAt: z.ZodString;
16044
16041
  models: z.ZodNullable<z.ZodType<{
16045
16042
  base?: {
16046
16043
  model?: string | undefined;
@@ -16103,8 +16100,11 @@ declare const AgentListResponse: z.ZodObject<{
16103
16100
  }, {
16104
16101
  transferCountIs?: number | undefined;
16105
16102
  }>>>;
16103
+ createdAt: z.ZodString;
16104
+ updatedAt: z.ZodString;
16106
16105
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
16107
16106
  contextConfigId: z.ZodNullable<z.ZodString>;
16107
+ prompt: z.ZodNullable<z.ZodString>;
16108
16108
  statusUpdates: z.ZodNullable<z.ZodType<{
16109
16109
  enabled?: boolean | undefined;
16110
16110
  numEvents?: number | undefined;
@@ -16175,6 +16175,9 @@ declare const ToolListResponse: z.ZodObject<{
16175
16175
  id: z.ZodString;
16176
16176
  name: z.ZodString;
16177
16177
  description: z.ZodNullable<z.ZodString>;
16178
+ createdAt: z.ZodString;
16179
+ updatedAt: z.ZodString;
16180
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
16178
16181
  config: z.ZodType<{
16179
16182
  type: "mcp";
16180
16183
  mcp: ToolMcpConfig;
@@ -16188,11 +16191,8 @@ declare const ToolListResponse: z.ZodObject<{
16188
16191
  type: "mcp";
16189
16192
  mcp: ToolMcpConfig;
16190
16193
  }>>;
16191
- credentialReferenceId: z.ZodNullable<z.ZodString>;
16192
- createdAt: z.ZodString;
16193
- updatedAt: z.ZodString;
16194
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
16195
16194
  credentialScope: z.ZodString;
16195
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
16196
16196
  imageUrl: z.ZodNullable<z.ZodString>;
16197
16197
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
16198
16198
  lastError: z.ZodNullable<z.ZodString>;
@@ -16209,10 +16209,10 @@ declare const ExternalAgentListResponse: z.ZodObject<{
16209
16209
  id: z.ZodString;
16210
16210
  name: z.ZodString;
16211
16211
  description: z.ZodNullable<z.ZodString>;
16212
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16213
16212
  createdAt: z.ZodString;
16214
16213
  updatedAt: z.ZodString;
16215
16214
  baseUrl: z.ZodString;
16215
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16216
16216
  }, z.core.$strip>>;
16217
16217
  pagination: z.ZodObject<{
16218
16218
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -16240,13 +16240,13 @@ declare const ApiKeyListResponse: z.ZodObject<{
16240
16240
  data: z.ZodArray<z.ZodObject<{
16241
16241
  id: z.ZodString;
16242
16242
  name: z.ZodNullable<z.ZodString>;
16243
+ createdAt: z.ZodString;
16244
+ updatedAt: z.ZodString;
16243
16245
  agentId: z.ZodString;
16244
16246
  publicId: z.ZodString;
16245
16247
  keyPrefix: z.ZodString;
16246
16248
  lastUsedAt: z.ZodNullable<z.ZodString>;
16247
16249
  expiresAt: z.ZodNullable<z.ZodString>;
16248
- createdAt: z.ZodString;
16249
- updatedAt: z.ZodString;
16250
16250
  }, {
16251
16251
  out: {};
16252
16252
  in: {};
@@ -16266,8 +16266,8 @@ declare const CredentialReferenceListResponse: z.ZodObject<{
16266
16266
  updatedAt: z.ZodString;
16267
16267
  credentialStoreId: z.ZodString;
16268
16268
  retrievalParams: z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
16269
- userId: z.ZodNullable<z.ZodString>;
16270
16269
  toolId: z.ZodNullable<z.ZodString>;
16270
+ userId: z.ZodNullable<z.ZodString>;
16271
16271
  createdBy: z.ZodNullable<z.ZodString>;
16272
16272
  type: z.ZodEnum<{
16273
16273
  readonly memory: "memory";
@@ -16844,9 +16844,9 @@ declare const FunctionToolListResponse: z.ZodObject<{
16844
16844
  id: z.ZodString;
16845
16845
  name: z.ZodString;
16846
16846
  description: z.ZodNullable<z.ZodString>;
16847
- agentId: z.ZodString;
16848
16847
  createdAt: z.ZodString;
16849
16848
  updatedAt: z.ZodString;
16849
+ agentId: z.ZodString;
16850
16850
  functionId: z.ZodString;
16851
16851
  }, z.core.$strip>>;
16852
16852
  pagination: z.ZodObject<{
@@ -16923,10 +16923,10 @@ declare const SubAgentToolRelationListResponse: z.ZodObject<{
16923
16923
  createdAt: z.ZodString;
16924
16924
  updatedAt: z.ZodString;
16925
16925
  toolId: z.ZodString;
16926
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16927
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16928
16926
  subAgentId: z.ZodString;
16927
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16929
16928
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16929
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16930
16930
  }, z.core.$strip>>;
16931
16931
  pagination: z.ZodObject<{
16932
16932
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -16941,8 +16941,8 @@ declare const ConversationListResponse: z.ZodObject<{
16941
16941
  title: z.ZodNullable<z.ZodString>;
16942
16942
  createdAt: z.ZodString;
16943
16943
  updatedAt: z.ZodString;
16944
- userId: z.ZodNullable<z.ZodString>;
16945
16944
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
16945
+ userId: z.ZodNullable<z.ZodString>;
16946
16946
  activeSubAgentId: z.ZodString;
16947
16947
  lastContextResolution: z.ZodNullable<z.ZodString>;
16948
16948
  }, z.core.$strip>>;
@@ -16959,7 +16959,6 @@ declare const MessageListResponse: z.ZodObject<{
16959
16959
  createdAt: z.ZodString;
16960
16960
  updatedAt: z.ZodString;
16961
16961
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
16962
- content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
16963
16962
  conversationId: z.ZodString;
16964
16963
  role: z.ZodString;
16965
16964
  fromSubAgentId: z.ZodNullable<z.ZodString>;
@@ -16968,6 +16967,7 @@ declare const MessageListResponse: z.ZodObject<{
16968
16967
  toExternalAgentId: z.ZodNullable<z.ZodString>;
16969
16968
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
16970
16969
  toTeamAgentId: z.ZodNullable<z.ZodString>;
16970
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
16971
16971
  visibility: z.ZodString;
16972
16972
  messageType: z.ZodString;
16973
16973
  taskId: z.ZodNullable<z.ZodString>;
@@ -17061,8 +17061,6 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17061
17061
  id: z.ZodString;
17062
17062
  name: z.ZodString;
17063
17063
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17064
- createdAt: z.ZodOptional<z.ZodString>;
17065
- updatedAt: z.ZodOptional<z.ZodString>;
17066
17064
  models: z.ZodOptional<z.ZodObject<{
17067
17065
  base: z.ZodOptional<z.ZodObject<{
17068
17066
  model: z.ZodOptional<z.ZodString>;
@@ -17086,6 +17084,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17086
17084
  }, {
17087
17085
  stepCountIs?: number | undefined;
17088
17086
  }>>>>;
17087
+ createdAt: z.ZodOptional<z.ZodString>;
17088
+ updatedAt: z.ZodOptional<z.ZodString>;
17089
17089
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
17090
17090
  type: z.ZodLiteral<"internal">;
17091
17091
  canUse: z.ZodArray<z.ZodObject<{
@@ -17115,6 +17115,9 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17115
17115
  id: z.ZodString;
17116
17116
  name: z.ZodString;
17117
17117
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17118
+ createdAt: z.ZodOptional<z.ZodString>;
17119
+ updatedAt: z.ZodOptional<z.ZodString>;
17120
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17118
17121
  config: z.ZodObject<{
17119
17122
  type: z.ZodLiteral<"mcp">;
17120
17123
  mcp: z.ZodObject<{
@@ -17134,11 +17137,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17134
17137
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17135
17138
  }, z.core.$strip>;
17136
17139
  }, z.core.$strip>;
17137
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17138
- createdAt: z.ZodOptional<z.ZodString>;
17139
- updatedAt: z.ZodOptional<z.ZodString>;
17140
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17141
17140
  credentialScope: z.ZodOptional<z.ZodString>;
17141
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17142
17142
  imageUrl: z.ZodOptional<z.ZodString>;
17143
17143
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17144
17144
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17147,10 +17147,10 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17147
17147
  id: z.ZodString;
17148
17148
  name: z.ZodString;
17149
17149
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17150
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17151
17150
  createdAt: z.ZodOptional<z.ZodString>;
17152
17151
  updatedAt: z.ZodOptional<z.ZodString>;
17153
17152
  baseUrl: z.ZodString;
17153
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17154
17154
  }, z.core.$strip>>>;
17155
17155
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17156
17156
  id: z.ZodString;
@@ -17216,6 +17216,9 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17216
17216
  id: z.ZodString;
17217
17217
  name: z.ZodString;
17218
17218
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17219
+ createdAt: z.ZodOptional<z.ZodString>;
17220
+ updatedAt: z.ZodOptional<z.ZodString>;
17221
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17219
17222
  config: z.ZodObject<{
17220
17223
  type: z.ZodLiteral<"mcp">;
17221
17224
  mcp: z.ZodObject<{
@@ -17235,11 +17238,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17235
17238
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17236
17239
  }, z.core.$strip>;
17237
17240
  }, z.core.$strip>;
17238
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17239
- createdAt: z.ZodOptional<z.ZodString>;
17240
- updatedAt: z.ZodOptional<z.ZodString>;
17241
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17242
17241
  credentialScope: z.ZodOptional<z.ZodString>;
17242
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17243
17243
  imageUrl: z.ZodOptional<z.ZodString>;
17244
17244
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17245
17245
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17294,10 +17294,10 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17294
17294
  id: z.ZodString;
17295
17295
  name: z.ZodString;
17296
17296
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17297
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17298
17297
  createdAt: z.ZodOptional<z.ZodString>;
17299
17298
  updatedAt: z.ZodOptional<z.ZodString>;
17300
17299
  baseUrl: z.ZodString;
17300
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17301
17301
  }, z.core.$strip>>>;
17302
17302
  statusUpdates: z.ZodOptional<z.ZodObject<{
17303
17303
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -17321,8 +17321,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17321
17321
  updatedAt: z.ZodOptional<z.ZodString>;
17322
17322
  credentialStoreId: z.ZodString;
17323
17323
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17324
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17325
17324
  toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17325
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17326
17326
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17327
17327
  type: z.ZodEnum<{
17328
17328
  readonly memory: "memory";
@@ -17350,8 +17350,6 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17350
17350
  id: z.ZodString;
17351
17351
  name: z.ZodString;
17352
17352
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17353
- createdAt: z.ZodOptional<z.ZodString>;
17354
- updatedAt: z.ZodOptional<z.ZodString>;
17355
17353
  models: z.ZodOptional<z.ZodObject<{
17356
17354
  base: z.ZodOptional<z.ZodObject<{
17357
17355
  model: z.ZodOptional<z.ZodString>;
@@ -17375,6 +17373,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17375
17373
  }, {
17376
17374
  stepCountIs?: number | undefined;
17377
17375
  }>>>>;
17376
+ createdAt: z.ZodOptional<z.ZodString>;
17377
+ updatedAt: z.ZodOptional<z.ZodString>;
17378
17378
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
17379
17379
  type: z.ZodLiteral<"internal">;
17380
17380
  canUse: z.ZodArray<z.ZodObject<{
@@ -17404,6 +17404,9 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17404
17404
  id: z.ZodString;
17405
17405
  name: z.ZodString;
17406
17406
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17407
+ createdAt: z.ZodOptional<z.ZodString>;
17408
+ updatedAt: z.ZodOptional<z.ZodString>;
17409
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17407
17410
  config: z.ZodObject<{
17408
17411
  type: z.ZodLiteral<"mcp">;
17409
17412
  mcp: z.ZodObject<{
@@ -17423,11 +17426,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17423
17426
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17424
17427
  }, z.core.$strip>;
17425
17428
  }, z.core.$strip>;
17426
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17427
- createdAt: z.ZodOptional<z.ZodString>;
17428
- updatedAt: z.ZodOptional<z.ZodString>;
17429
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17430
17429
  credentialScope: z.ZodOptional<z.ZodString>;
17430
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17431
17431
  imageUrl: z.ZodOptional<z.ZodString>;
17432
17432
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
17433
17433
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17436,10 +17436,10 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17436
17436
  id: z.ZodString;
17437
17437
  name: z.ZodString;
17438
17438
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17439
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17440
17439
  createdAt: z.ZodOptional<z.ZodString>;
17441
17440
  updatedAt: z.ZodOptional<z.ZodString>;
17442
17441
  baseUrl: z.ZodString;
17442
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17443
17443
  }, z.core.$strip>>>;
17444
17444
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17445
17445
  id: z.ZodString;
@@ -17640,8 +17640,8 @@ declare const SubAgentTeamAgentRelationResponse: z.ZodObject<{
17640
17640
  id: z.ZodString;
17641
17641
  createdAt: z.ZodString;
17642
17642
  updatedAt: z.ZodString;
17643
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17644
17643
  subAgentId: z.ZodString;
17644
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17645
17645
  targetAgentId: z.ZodString;
17646
17646
  }, z.core.$strip>;
17647
17647
  }, z.core.$strip>;
@@ -17650,8 +17650,8 @@ declare const SubAgentTeamAgentRelationListResponse: z.ZodObject<{
17650
17650
  id: z.ZodString;
17651
17651
  createdAt: z.ZodString;
17652
17652
  updatedAt: z.ZodString;
17653
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17654
17653
  subAgentId: z.ZodString;
17654
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17655
17655
  targetAgentId: z.ZodString;
17656
17656
  }, z.core.$strip>>;
17657
17657
  pagination: z.ZodObject<{
@@ -17666,9 +17666,9 @@ declare const SubAgentExternalAgentRelationResponse: z.ZodObject<{
17666
17666
  id: z.ZodString;
17667
17667
  createdAt: z.ZodString;
17668
17668
  updatedAt: z.ZodString;
17669
+ subAgentId: z.ZodString;
17669
17670
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17670
17671
  externalAgentId: z.ZodString;
17671
- subAgentId: z.ZodString;
17672
17672
  }, z.core.$strip>;
17673
17673
  }, z.core.$strip>;
17674
17674
  declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
@@ -17676,9 +17676,9 @@ declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
17676
17676
  id: z.ZodString;
17677
17677
  createdAt: z.ZodString;
17678
17678
  updatedAt: z.ZodString;
17679
+ subAgentId: z.ZodString;
17679
17680
  headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17680
17681
  externalAgentId: z.ZodString;
17681
- subAgentId: z.ZodString;
17682
17682
  }, z.core.$strip>>;
17683
17683
  pagination: z.ZodObject<{
17684
17684
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -18991,14 +18991,9 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
18991
18991
  declare const getAgentById: (db: DatabaseClient) => (params: {
18992
18992
  scopes: AgentScopeConfig;
18993
18993
  }) => Promise<{
18994
- tenantId: string;
18995
- projectId: string;
18996
18994
  id: string;
18997
18995
  name: string;
18998
18996
  description: string | null;
18999
- prompt: string | null;
19000
- createdAt: string;
19001
- updatedAt: string;
19002
18997
  models: {
19003
18998
  base?: {
19004
18999
  model?: string | undefined;
@@ -19016,8 +19011,12 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19016
19011
  stopWhen: {
19017
19012
  transferCountIs?: number | undefined;
19018
19013
  } | null;
19014
+ createdAt: string;
19015
+ updatedAt: string;
19016
+ tenantId: string;
19019
19017
  defaultSubAgentId: string | null;
19020
19018
  contextConfigId: string | null;
19019
+ prompt: string | null;
19021
19020
  statusUpdates: {
19022
19021
  enabled?: boolean | undefined;
19023
19022
  numEvents?: number | undefined;
@@ -19033,18 +19032,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19033
19032
  } | undefined;
19034
19033
  }[] | undefined;
19035
19034
  } | null;
19035
+ projectId: string;
19036
19036
  } | null>;
19037
19037
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19038
19038
  scopes: AgentScopeConfig;
19039
19039
  }) => Promise<{
19040
- tenantId: string;
19041
- projectId: string;
19042
19040
  id: string;
19043
19041
  name: string;
19044
19042
  description: string | null;
19045
- prompt: string | null;
19046
- createdAt: string;
19047
- updatedAt: string;
19048
19043
  models: {
19049
19044
  base?: {
19050
19045
  model?: string | undefined;
@@ -19062,8 +19057,12 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19062
19057
  stopWhen: {
19063
19058
  transferCountIs?: number | undefined;
19064
19059
  } | null;
19060
+ createdAt: string;
19061
+ updatedAt: string;
19062
+ tenantId: string;
19065
19063
  defaultSubAgentId: string | null;
19066
19064
  contextConfigId: string | null;
19065
+ prompt: string | null;
19067
19066
  statusUpdates: {
19068
19067
  enabled?: boolean | undefined;
19069
19068
  numEvents?: number | undefined;
@@ -19079,16 +19078,11 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19079
19078
  } | undefined;
19080
19079
  }[] | undefined;
19081
19080
  } | null;
19081
+ projectId: string;
19082
19082
  defaultSubAgent: {
19083
- tenantId: string;
19084
- projectId: string;
19085
19083
  id: string;
19086
19084
  name: string;
19087
19085
  description: string | null;
19088
- prompt: string | null;
19089
- agentId: string;
19090
- createdAt: string;
19091
- updatedAt: string;
19092
19086
  models: {
19093
19087
  base?: {
19094
19088
  model?: string | undefined;
@@ -19106,20 +19100,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19106
19100
  stopWhen: {
19107
19101
  stepCountIs?: number | undefined;
19108
19102
  } | null;
19103
+ createdAt: string;
19104
+ updatedAt: string;
19105
+ tenantId: string;
19106
+ prompt: string | null;
19107
+ projectId: string;
19108
+ agentId: string;
19109
19109
  conversationHistoryConfig: ConversationHistoryConfig | null;
19110
19110
  } | null;
19111
19111
  } | null>;
19112
19112
  declare const listAgents: (db: DatabaseClient) => (params: {
19113
19113
  scopes: ProjectScopeConfig;
19114
19114
  }) => Promise<{
19115
- tenantId: string;
19116
- projectId: string;
19117
19115
  id: string;
19118
19116
  name: string;
19119
19117
  description: string | null;
19120
- prompt: string | null;
19121
- createdAt: string;
19122
- updatedAt: string;
19123
19118
  models: {
19124
19119
  base?: {
19125
19120
  model?: string | undefined;
@@ -19137,8 +19132,12 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19137
19132
  stopWhen: {
19138
19133
  transferCountIs?: number | undefined;
19139
19134
  } | null;
19135
+ createdAt: string;
19136
+ updatedAt: string;
19137
+ tenantId: string;
19140
19138
  defaultSubAgentId: string | null;
19141
19139
  contextConfigId: string | null;
19140
+ prompt: string | null;
19142
19141
  statusUpdates: {
19143
19142
  enabled?: boolean | undefined;
19144
19143
  numEvents?: number | undefined;
@@ -19154,6 +19153,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19154
19153
  } | undefined;
19155
19154
  }[] | undefined;
19156
19155
  } | null;
19156
+ projectId: string;
19157
19157
  }[]>;
19158
19158
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
19159
19159
  scopes: ProjectScopeConfig;
@@ -19211,14 +19211,9 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
19211
19211
  };
19212
19212
  }>;
19213
19213
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
19214
- tenantId: string;
19215
- projectId: string;
19216
19214
  id: string;
19217
19215
  name: string;
19218
19216
  description: string | null;
19219
- prompt: string | null;
19220
- createdAt: string;
19221
- updatedAt: string;
19222
19217
  models: {
19223
19218
  base?: {
19224
19219
  model?: string | undefined;
@@ -19236,8 +19231,12 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19236
19231
  stopWhen: {
19237
19232
  transferCountIs?: number | undefined;
19238
19233
  } | null;
19234
+ createdAt: string;
19235
+ updatedAt: string;
19236
+ tenantId: string;
19239
19237
  defaultSubAgentId: string | null;
19240
19238
  contextConfigId: string | null;
19239
+ prompt: string | null;
19241
19240
  statusUpdates: {
19242
19241
  enabled?: boolean | undefined;
19243
19242
  numEvents?: number | undefined;
@@ -19253,6 +19252,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19253
19252
  } | undefined;
19254
19253
  }[] | undefined;
19255
19254
  } | null;
19255
+ projectId: string;
19256
19256
  }>;
19257
19257
  declare const updateAgent: (db: DatabaseClient) => (params: {
19258
19258
  scopes: AgentScopeConfig;
@@ -19352,49 +19352,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
19352
19352
  scopes: ProjectScopeConfig;
19353
19353
  id: string;
19354
19354
  }) => Promise<{
19355
- tenantId: string;
19356
- projectId: string;
19357
19355
  id: string;
19358
19356
  name: string | null;
19357
+ createdAt: string;
19358
+ updatedAt: string;
19359
+ tenantId: string;
19360
+ projectId: string;
19359
19361
  agentId: string;
19360
19362
  publicId: string;
19361
19363
  keyHash: string;
19362
19364
  keyPrefix: string;
19363
19365
  lastUsedAt: string | null;
19364
19366
  expiresAt: string | null;
19365
- createdAt: string;
19366
- updatedAt: string;
19367
19367
  } | undefined>;
19368
19368
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
19369
- tenantId: string;
19370
- projectId: string;
19371
19369
  id: string;
19372
19370
  name: string | null;
19371
+ createdAt: string;
19372
+ updatedAt: string;
19373
+ tenantId: string;
19374
+ projectId: string;
19373
19375
  agentId: string;
19374
19376
  publicId: string;
19375
19377
  keyHash: string;
19376
19378
  keyPrefix: string;
19377
19379
  lastUsedAt: string | null;
19378
19380
  expiresAt: string | null;
19379
- createdAt: string;
19380
- updatedAt: string;
19381
19381
  } | undefined>;
19382
19382
  declare const listApiKeys: (db: DatabaseClient) => (params: {
19383
19383
  scopes: ProjectScopeConfig;
19384
19384
  agentId?: string;
19385
19385
  }) => Promise<{
19386
- tenantId: string;
19387
- projectId: string;
19388
19386
  id: string;
19389
19387
  name: string | null;
19388
+ createdAt: string;
19389
+ updatedAt: string;
19390
+ tenantId: string;
19391
+ projectId: string;
19390
19392
  agentId: string;
19391
19393
  publicId: string;
19392
19394
  keyHash: string;
19393
19395
  keyPrefix: string;
19394
19396
  lastUsedAt: string | null;
19395
19397
  expiresAt: string | null;
19396
- createdAt: string;
19397
- updatedAt: string;
19398
19398
  }[]>;
19399
19399
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
19400
19400
  scopes: ProjectScopeConfig;
@@ -19410,18 +19410,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
19410
19410
  };
19411
19411
  }>;
19412
19412
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
19413
- tenantId: string;
19414
- projectId: string;
19415
19413
  id: string;
19416
19414
  name: string | null;
19415
+ createdAt: string;
19416
+ updatedAt: string;
19417
+ tenantId: string;
19418
+ projectId: string;
19417
19419
  agentId: string;
19418
19420
  publicId: string;
19419
19421
  keyHash: string;
19420
19422
  keyPrefix: string;
19421
19423
  lastUsedAt: string | null;
19422
19424
  expiresAt: string | null;
19423
- createdAt: string;
19424
- updatedAt: string;
19425
19425
  }>;
19426
19426
  declare const updateApiKey: (db: DatabaseClient) => (params: {
19427
19427
  scopes: ProjectScopeConfig;
@@ -19469,13 +19469,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
19469
19469
  scopes: ProjectScopeConfig;
19470
19470
  id: string;
19471
19471
  }) => Promise<{
19472
- tenantId: string;
19473
- projectId: string;
19474
19472
  id: string;
19475
19473
  name: string;
19476
19474
  description: string | null;
19477
19475
  createdAt: string;
19478
19476
  updatedAt: string;
19477
+ tenantId: string;
19478
+ projectId: string;
19479
19479
  props: Record<string, unknown> | null;
19480
19480
  } | undefined>;
19481
19481
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -19503,13 +19503,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
19503
19503
  };
19504
19504
  }>;
19505
19505
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
19506
- tenantId: string;
19507
- projectId: string;
19508
19506
  id: string;
19509
19507
  name: string;
19510
19508
  description: string | null;
19511
19509
  createdAt: string;
19512
19510
  updatedAt: string;
19511
+ tenantId: string;
19512
+ projectId: string;
19513
19513
  props: Record<string, unknown> | null;
19514
19514
  }>;
19515
19515
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -19546,11 +19546,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
19546
19546
  scopes: SubAgentScopeConfig;
19547
19547
  artifactComponentId: string;
19548
19548
  }) => Promise<{
19549
+ id: string;
19550
+ createdAt: string;
19549
19551
  tenantId: string;
19550
19552
  projectId: string;
19551
- id: string;
19552
19553
  agentId: string;
19553
- createdAt: string;
19554
19554
  subAgentId: string;
19555
19555
  artifactComponentId: string;
19556
19556
  }>;
@@ -19589,11 +19589,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
19589
19589
  scopes: SubAgentScopeConfig;
19590
19590
  artifactComponentId: string;
19591
19591
  }) => Promise<{
19592
+ id: string;
19593
+ createdAt: string;
19592
19594
  tenantId: string;
19593
19595
  projectId: string;
19594
- id: string;
19595
19596
  agentId: string;
19596
- createdAt: string;
19597
19597
  subAgentId: string;
19598
19598
  artifactComponentId: string;
19599
19599
  } | null>;
@@ -19675,26 +19675,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
19675
19675
  scopes: AgentScopeConfig;
19676
19676
  id: string;
19677
19677
  }) => Promise<{
19678
- tenantId: string;
19679
- projectId: string;
19680
19678
  id: string;
19681
- agentId: string;
19682
19679
  createdAt: string;
19683
19680
  updatedAt: string;
19681
+ tenantId: string;
19682
+ projectId: string;
19684
19683
  headersSchema: unknown;
19685
19684
  contextVariables: Record<string, ContextFetchDefinition> | null;
19685
+ agentId: string;
19686
19686
  } | undefined>;
19687
19687
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
19688
19688
  scopes: AgentScopeConfig;
19689
19689
  }) => Promise<{
19690
- tenantId: string;
19691
- projectId: string;
19692
19690
  id: string;
19693
- agentId: string;
19694
19691
  createdAt: string;
19695
19692
  updatedAt: string;
19693
+ tenantId: string;
19694
+ projectId: string;
19696
19695
  headersSchema: unknown;
19697
19696
  contextVariables: Record<string, ContextFetchDefinition> | null;
19697
+ agentId: string;
19698
19698
  }[]>;
19699
19699
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
19700
19700
  scopes: AgentScopeConfig;
@@ -19709,14 +19709,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
19709
19709
  };
19710
19710
  }>;
19711
19711
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
19712
- tenantId: string;
19713
- projectId: string;
19714
19712
  id: string;
19715
- agentId: string;
19716
19713
  createdAt: string;
19717
19714
  updatedAt: string;
19715
+ tenantId: string;
19716
+ projectId: string;
19718
19717
  headersSchema: unknown;
19719
19718
  contextVariables: Record<string, ContextFetchDefinition> | null;
19719
+ agentId: string;
19720
19720
  }>;
19721
19721
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
19722
19722
  scopes: AgentScopeConfig;
@@ -19749,14 +19749,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
19749
19749
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
19750
19750
  data: ContextConfigInsert;
19751
19751
  }) => Promise<{
19752
- tenantId: string;
19753
- projectId: string;
19754
19752
  id: string;
19755
- agentId: string;
19756
19753
  createdAt: string;
19757
19754
  updatedAt: string;
19755
+ tenantId: string;
19756
+ projectId: string;
19758
19757
  headersSchema: unknown;
19759
19758
  contextVariables: Record<string, ContextFetchDefinition> | null;
19759
+ agentId: string;
19760
19760
  }>;
19761
19761
  //#endregion
19762
19762
  //#region src/data-access/conversations.d.ts
@@ -19769,14 +19769,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
19769
19769
  total: number;
19770
19770
  }>;
19771
19771
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
19772
- tenantId: string;
19773
- projectId: string;
19774
19772
  id: string;
19775
19773
  title: string | null;
19776
19774
  createdAt: string;
19777
19775
  updatedAt: string;
19778
- userId: string | null;
19776
+ tenantId: string;
19779
19777
  metadata: ConversationMetadata | null;
19778
+ projectId: string;
19779
+ userId: string | null;
19780
19780
  activeSubAgentId: string;
19781
19781
  lastContextResolution: string | null;
19782
19782
  }>;
@@ -19820,14 +19820,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
19820
19820
  scopes: ProjectScopeConfig;
19821
19821
  conversationId: string;
19822
19822
  }) => Promise<{
19823
- tenantId: string;
19824
- projectId: string;
19825
19823
  id: string;
19826
19824
  title: string | null;
19827
19825
  createdAt: string;
19828
19826
  updatedAt: string;
19829
- userId: string | null;
19827
+ tenantId: string;
19830
19828
  metadata: ConversationMetadata | null;
19829
+ projectId: string;
19830
+ userId: string | null;
19831
19831
  activeSubAgentId: string;
19832
19832
  lastContextResolution: string | null;
19833
19833
  } | undefined>;
@@ -19844,14 +19844,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
19844
19844
  metadata?: ConversationMetadata | null | undefined;
19845
19845
  contextConfigId?: string | undefined;
19846
19846
  } | {
19847
- tenantId: string;
19848
- projectId: string;
19849
19847
  id: string;
19850
19848
  title: string | null;
19851
19849
  createdAt: string;
19852
19850
  updatedAt: string;
19853
- userId: string | null;
19851
+ tenantId: string;
19854
19852
  metadata: ConversationMetadata | null;
19853
+ projectId: string;
19854
+ userId: string | null;
19855
19855
  activeSubAgentId: string;
19856
19856
  lastContextResolution: string | null;
19857
19857
  }>;
@@ -19870,14 +19870,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
19870
19870
  scopes: ProjectScopeConfig;
19871
19871
  conversationId: string;
19872
19872
  }) => Promise<{
19873
- tenantId: string;
19874
- projectId: string;
19875
19873
  id: string;
19876
19874
  title: string | null;
19877
19875
  createdAt: string;
19878
19876
  updatedAt: string;
19879
- userId: string | null;
19877
+ tenantId: string;
19880
19878
  metadata: ConversationMetadata | null;
19879
+ projectId: string;
19880
+ userId: string | null;
19881
19881
  activeSubAgentId: string;
19882
19882
  lastContextResolution: string | null;
19883
19883
  } | undefined>;
@@ -20054,11 +20054,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
20054
20054
  scopes: SubAgentScopeConfig;
20055
20055
  dataComponentId: string;
20056
20056
  }) => Promise<{
20057
+ id: string;
20058
+ createdAt: string;
20057
20059
  tenantId: string;
20058
20060
  projectId: string;
20059
- id: string;
20060
20061
  agentId: string;
20061
- createdAt: string;
20062
20062
  subAgentId: string;
20063
20063
  dataComponentId: string;
20064
20064
  }>;
@@ -20096,11 +20096,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
20096
20096
  scopes: SubAgentScopeConfig;
20097
20097
  dataComponentId: string;
20098
20098
  }) => Promise<{
20099
+ id: string;
20100
+ createdAt: string;
20099
20101
  tenantId: string;
20100
20102
  projectId: string;
20101
- id: string;
20102
20103
  agentId: string;
20103
- createdAt: string;
20104
20104
  subAgentId: string;
20105
20105
  dataComponentId: string;
20106
20106
  } | null>;
@@ -20302,14 +20302,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
20302
20302
  data: FunctionToolApiInsert;
20303
20303
  scopes: AgentScopeConfig;
20304
20304
  }) => Promise<{
20305
- tenantId: string;
20306
- projectId: string;
20307
20305
  id: string;
20308
20306
  name: string;
20309
20307
  description: string | null;
20310
- agentId: string;
20311
20308
  createdAt: string;
20312
20309
  updatedAt: string;
20310
+ tenantId: string;
20311
+ projectId: string;
20312
+ agentId: string;
20313
20313
  functionId: string;
20314
20314
  }>;
20315
20315
  /**
@@ -20344,14 +20344,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
20344
20344
  data: FunctionToolApiInsert;
20345
20345
  scopes: AgentScopeConfig;
20346
20346
  }) => Promise<{
20347
- tenantId: string;
20348
- projectId: string;
20349
20347
  id: string;
20350
20348
  name: string;
20351
20349
  description: string | null;
20352
- agentId: string;
20353
20350
  createdAt: string;
20354
20351
  updatedAt: string;
20352
+ tenantId: string;
20353
+ projectId: string;
20354
+ agentId: string;
20355
20355
  functionId: string;
20356
20356
  }>;
20357
20357
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -20483,13 +20483,12 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
20483
20483
  scopes: ProjectScopeConfig;
20484
20484
  messageId: string;
20485
20485
  }) => Promise<{
20486
- tenantId: string;
20487
- projectId: string;
20488
20486
  id: string;
20489
20487
  createdAt: string;
20490
20488
  updatedAt: string;
20489
+ tenantId: string;
20491
20490
  metadata: MessageMetadata | null;
20492
- content: MessageContent;
20491
+ projectId: string;
20493
20492
  conversationId: string;
20494
20493
  role: string;
20495
20494
  fromSubAgentId: string | null;
@@ -20498,6 +20497,7 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
20498
20497
  toExternalAgentId: string | null;
20499
20498
  fromTeamAgentId: string | null;
20500
20499
  toTeamAgentId: string | null;
20500
+ content: MessageContent;
20501
20501
  visibility: string;
20502
20502
  messageType: string;
20503
20503
  taskId: string | null;
@@ -20614,13 +20614,12 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
20614
20614
  id: string;
20615
20615
  }[]>;
20616
20616
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
20617
- tenantId: string;
20618
- projectId: string;
20619
20617
  id: string;
20620
20618
  createdAt: string;
20621
20619
  updatedAt: string;
20620
+ tenantId: string;
20622
20621
  metadata: MessageMetadata | null;
20623
- content: MessageContent;
20622
+ projectId: string;
20624
20623
  conversationId: string;
20625
20624
  role: string;
20626
20625
  fromSubAgentId: string | null;
@@ -20629,6 +20628,7 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
20629
20628
  toExternalAgentId: string | null;
20630
20629
  fromTeamAgentId: string | null;
20631
20630
  toTeamAgentId: string | null;
20631
+ content: MessageContent;
20632
20632
  visibility: string;
20633
20633
  messageType: string;
20634
20634
  taskId: string | null;
@@ -20667,13 +20667,12 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
20667
20667
  scopes: ProjectScopeConfig;
20668
20668
  messageId: string;
20669
20669
  }) => Promise<{
20670
- tenantId: string;
20671
- projectId: string;
20672
20670
  id: string;
20673
20671
  createdAt: string;
20674
20672
  updatedAt: string;
20673
+ tenantId: string;
20675
20674
  metadata: MessageMetadata | null;
20676
- content: MessageContent;
20675
+ projectId: string;
20677
20676
  conversationId: string;
20678
20677
  role: string;
20679
20678
  fromSubAgentId: string | null;
@@ -20682,6 +20681,7 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
20682
20681
  toExternalAgentId: string | null;
20683
20682
  fromTeamAgentId: string | null;
20684
20683
  toTeamAgentId: string | null;
20684
+ content: MessageContent;
20685
20685
  visibility: string;
20686
20686
  messageType: string;
20687
20687
  taskId: string | null;
@@ -20827,15 +20827,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
20827
20827
  scopes: SubAgentScopeConfig;
20828
20828
  relationId: string;
20829
20829
  }) => Promise<{
20830
- tenantId: string;
20831
- projectId: string;
20832
20830
  id: string;
20833
- agentId: string;
20834
20831
  createdAt: string;
20835
20832
  updatedAt: string;
20833
+ tenantId: string;
20834
+ projectId: string;
20835
+ agentId: string;
20836
+ subAgentId: string;
20836
20837
  headers: Record<string, string> | null;
20837
20838
  externalAgentId: string;
20838
- subAgentId: string;
20839
20839
  } | undefined>;
20840
20840
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
20841
20841
  scopes: SubAgentScopeConfig;
@@ -20862,28 +20862,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
20862
20862
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
20863
20863
  scopes: SubAgentScopeConfig;
20864
20864
  }) => Promise<{
20865
- tenantId: string;
20866
- projectId: string;
20867
20865
  id: string;
20868
- agentId: string;
20869
20866
  createdAt: string;
20870
20867
  updatedAt: string;
20868
+ tenantId: string;
20869
+ projectId: string;
20870
+ agentId: string;
20871
+ subAgentId: string;
20871
20872
  headers: Record<string, string> | null;
20872
20873
  externalAgentId: string;
20873
- subAgentId: string;
20874
20874
  }[]>;
20875
20875
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
20876
20876
  scopes: AgentScopeConfig;
20877
20877
  }) => Promise<{
20878
- tenantId: string;
20879
- projectId: string;
20880
20878
  id: string;
20881
- agentId: string;
20882
20879
  createdAt: string;
20883
20880
  updatedAt: string;
20881
+ tenantId: string;
20882
+ projectId: string;
20883
+ agentId: string;
20884
+ subAgentId: string;
20884
20885
  headers: Record<string, string> | null;
20885
20886
  externalAgentId: string;
20886
- subAgentId: string;
20887
20887
  }[]>;
20888
20888
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
20889
20889
  scopes: AgentScopeConfig;
@@ -20998,15 +20998,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
20998
20998
  headers?: Record<string, string> | null;
20999
20999
  };
21000
21000
  }) => Promise<{
21001
- tenantId: string;
21002
- projectId: string;
21003
21001
  id: string;
21004
- agentId: string;
21005
21002
  createdAt: string;
21006
21003
  updatedAt: string;
21004
+ tenantId: string;
21005
+ projectId: string;
21006
+ agentId: string;
21007
+ subAgentId: string;
21007
21008
  headers: Record<string, string> | null;
21008
21009
  externalAgentId: string;
21009
- subAgentId: string;
21010
21010
  }>;
21011
21011
  /**
21012
21012
  * Check if sub-agent external agent relation exists by params
@@ -21015,15 +21015,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
21015
21015
  scopes: SubAgentScopeConfig;
21016
21016
  externalAgentId: string;
21017
21017
  }) => Promise<{
21018
- tenantId: string;
21019
- projectId: string;
21020
21018
  id: string;
21021
- agentId: string;
21022
21019
  createdAt: string;
21023
21020
  updatedAt: string;
21021
+ tenantId: string;
21022
+ projectId: string;
21023
+ agentId: string;
21024
+ subAgentId: string;
21024
21025
  headers: Record<string, string> | null;
21025
21026
  externalAgentId: string;
21026
- subAgentId: string;
21027
21027
  } | undefined>;
21028
21028
  /**
21029
21029
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -21036,15 +21036,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
21036
21036
  headers?: Record<string, string> | null;
21037
21037
  };
21038
21038
  }) => Promise<{
21039
- tenantId: string;
21040
- projectId: string;
21041
21039
  id: string;
21042
- agentId: string;
21043
21040
  createdAt: string;
21044
21041
  updatedAt: string;
21042
+ tenantId: string;
21043
+ projectId: string;
21044
+ agentId: string;
21045
+ subAgentId: string;
21045
21046
  headers: Record<string, string> | null;
21046
21047
  externalAgentId: string;
21047
- subAgentId: string;
21048
21048
  }>;
21049
21049
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
21050
21050
  scopes: SubAgentScopeConfig;
@@ -21077,12 +21077,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
21077
21077
  scopes: AgentScopeConfig;
21078
21078
  relationId: string;
21079
21079
  }) => Promise<{
21080
- tenantId: string;
21081
- projectId: string;
21082
21080
  id: string;
21083
- agentId: string;
21084
21081
  createdAt: string;
21085
21082
  updatedAt: string;
21083
+ tenantId: string;
21084
+ projectId: string;
21085
+ agentId: string;
21086
21086
  sourceSubAgentId: string;
21087
21087
  targetSubAgentId: string | null;
21088
21088
  relationType: string | null;
@@ -21112,12 +21112,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
21112
21112
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
21113
21113
  scopes: SubAgentScopeConfig;
21114
21114
  }) => Promise<{
21115
- tenantId: string;
21116
- projectId: string;
21117
21115
  id: string;
21118
- agentId: string;
21119
21116
  createdAt: string;
21120
21117
  updatedAt: string;
21118
+ tenantId: string;
21119
+ projectId: string;
21120
+ agentId: string;
21121
21121
  sourceSubAgentId: string;
21122
21122
  targetSubAgentId: string | null;
21123
21123
  relationType: string | null;
@@ -21125,12 +21125,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
21125
21125
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
21126
21126
  scopes: AgentScopeConfig;
21127
21127
  }) => Promise<{
21128
- tenantId: string;
21129
- projectId: string;
21130
21128
  id: string;
21131
- agentId: string;
21132
21129
  createdAt: string;
21133
21130
  updatedAt: string;
21131
+ tenantId: string;
21132
+ projectId: string;
21133
+ agentId: string;
21134
21134
  sourceSubAgentId: string;
21135
21135
  targetSubAgentId: string | null;
21136
21136
  relationType: string | null;
@@ -21194,12 +21194,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
21194
21194
  }[];
21195
21195
  }>;
21196
21196
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
21197
- tenantId: string;
21198
- projectId: string;
21199
21197
  id: string;
21200
- agentId: string;
21201
21198
  createdAt: string;
21202
21199
  updatedAt: string;
21200
+ tenantId: string;
21201
+ projectId: string;
21202
+ agentId: string;
21203
21203
  sourceSubAgentId: string;
21204
21204
  targetSubAgentId: string | null;
21205
21205
  relationType: string | null;
@@ -21213,12 +21213,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
21213
21213
  targetSubAgentId?: string;
21214
21214
  relationType: string;
21215
21215
  }) => Promise<{
21216
- tenantId: string;
21217
- projectId: string;
21218
21216
  id: string;
21219
- agentId: string;
21220
21217
  createdAt: string;
21221
21218
  updatedAt: string;
21219
+ tenantId: string;
21220
+ projectId: string;
21221
+ agentId: string;
21222
21222
  sourceSubAgentId: string;
21223
21223
  targetSubAgentId: string | null;
21224
21224
  relationType: string | null;
@@ -21227,12 +21227,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
21227
21227
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
21228
21228
  */
21229
21229
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
21230
- tenantId: string;
21231
- projectId: string;
21232
21230
  id: string;
21233
- agentId: string;
21234
21231
  createdAt: string;
21235
21232
  updatedAt: string;
21233
+ tenantId: string;
21234
+ projectId: string;
21235
+ agentId: string;
21236
21236
  sourceSubAgentId: string;
21237
21237
  targetSubAgentId: string | null;
21238
21238
  relationType: string | null;
@@ -21272,19 +21272,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
21272
21272
  }> | null;
21273
21273
  };
21274
21274
  }) => Promise<{
21275
- tenantId: string;
21276
- projectId: string;
21277
21275
  id: string;
21278
- agentId: string;
21279
21276
  createdAt: string;
21280
21277
  updatedAt: string;
21278
+ tenantId: string;
21279
+ projectId: string;
21280
+ agentId: string;
21281
21281
  toolId: string;
21282
+ subAgentId: string;
21282
21283
  headers: Record<string, string> | null;
21284
+ selectedTools: string[] | null;
21283
21285
  toolPolicies: Record<string, {
21284
21286
  needsApproval?: boolean;
21285
21287
  }> | null;
21286
- subAgentId: string;
21287
- selectedTools: string[] | null;
21288
21288
  }>;
21289
21289
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
21290
21290
  scopes: AgentScopeConfig;
@@ -21316,19 +21316,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
21316
21316
  scopes: SubAgentScopeConfig;
21317
21317
  relationId: string;
21318
21318
  }) => Promise<{
21319
- tenantId: string;
21320
- projectId: string;
21321
21319
  id: string;
21322
- agentId: string;
21323
21320
  createdAt: string;
21324
21321
  updatedAt: string;
21322
+ tenantId: string;
21323
+ projectId: string;
21324
+ agentId: string;
21325
21325
  toolId: string;
21326
+ subAgentId: string;
21326
21327
  headers: Record<string, string> | null;
21328
+ selectedTools: string[] | null;
21327
21329
  toolPolicies: Record<string, {
21328
21330
  needsApproval?: boolean;
21329
21331
  }> | null;
21330
- subAgentId: string;
21331
- selectedTools: string[] | null;
21332
21332
  } | undefined>;
21333
21333
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
21334
21334
  scopes: SubAgentScopeConfig;
@@ -21512,15 +21512,9 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
21512
21512
  scopes: AgentScopeConfig;
21513
21513
  subAgentId: string;
21514
21514
  }) => Promise<{
21515
- tenantId: string;
21516
- projectId: string;
21517
21515
  id: string;
21518
21516
  name: string;
21519
21517
  description: string | null;
21520
- prompt: string | null;
21521
- agentId: string;
21522
- createdAt: string;
21523
- updatedAt: string;
21524
21518
  models: {
21525
21519
  base?: {
21526
21520
  model?: string | undefined;
@@ -21538,20 +21532,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
21538
21532
  stopWhen: {
21539
21533
  stepCountIs?: number | undefined;
21540
21534
  } | null;
21535
+ createdAt: string;
21536
+ updatedAt: string;
21537
+ tenantId: string;
21538
+ prompt: string | null;
21539
+ projectId: string;
21540
+ agentId: string;
21541
21541
  conversationHistoryConfig: ConversationHistoryConfig | null;
21542
21542
  } | undefined>;
21543
21543
  declare const listSubAgents: (db: DatabaseClient) => (params: {
21544
21544
  scopes: AgentScopeConfig;
21545
21545
  }) => Promise<{
21546
- tenantId: string;
21547
- projectId: string;
21548
21546
  id: string;
21549
21547
  name: string;
21550
21548
  description: string | null;
21551
- prompt: string | null;
21552
- agentId: string;
21553
- createdAt: string;
21554
- updatedAt: string;
21555
21549
  models: {
21556
21550
  base?: {
21557
21551
  model?: string | undefined;
@@ -21569,6 +21563,12 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
21569
21563
  stopWhen: {
21570
21564
  stepCountIs?: number | undefined;
21571
21565
  } | null;
21566
+ createdAt: string;
21567
+ updatedAt: string;
21568
+ tenantId: string;
21569
+ prompt: string | null;
21570
+ projectId: string;
21571
+ agentId: string;
21572
21572
  conversationHistoryConfig: ConversationHistoryConfig | null;
21573
21573
  }[]>;
21574
21574
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -21612,15 +21612,9 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
21612
21612
  };
21613
21613
  }>;
21614
21614
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
21615
- tenantId: string;
21616
- projectId: string;
21617
21615
  id: string;
21618
21616
  name: string;
21619
21617
  description: string | null;
21620
- prompt: string | null;
21621
- agentId: string;
21622
- createdAt: string;
21623
- updatedAt: string;
21624
21618
  models: {
21625
21619
  base?: {
21626
21620
  model?: string | undefined;
@@ -21638,6 +21632,12 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
21638
21632
  stopWhen: {
21639
21633
  stepCountIs?: number | undefined;
21640
21634
  } | null;
21635
+ createdAt: string;
21636
+ updatedAt: string;
21637
+ tenantId: string;
21638
+ prompt: string | null;
21639
+ projectId: string;
21640
+ agentId: string;
21641
21641
  conversationHistoryConfig: ConversationHistoryConfig | null;
21642
21642
  }>;
21643
21643
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -21726,14 +21726,14 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
21726
21726
  scopes: SubAgentScopeConfig;
21727
21727
  relationId: string;
21728
21728
  }) => Promise<{
21729
- tenantId: string;
21730
- projectId: string;
21731
21729
  id: string;
21732
- agentId: string;
21733
21730
  createdAt: string;
21734
21731
  updatedAt: string;
21735
- headers: Record<string, string> | null;
21732
+ tenantId: string;
21733
+ projectId: string;
21734
+ agentId: string;
21736
21735
  subAgentId: string;
21736
+ headers: Record<string, string> | null;
21737
21737
  targetAgentId: string;
21738
21738
  } | undefined>;
21739
21739
  declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
@@ -21761,27 +21761,27 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
21761
21761
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
21762
21762
  scopes: SubAgentScopeConfig;
21763
21763
  }) => Promise<{
21764
- tenantId: string;
21765
- projectId: string;
21766
21764
  id: string;
21767
- agentId: string;
21768
21765
  createdAt: string;
21769
21766
  updatedAt: string;
21770
- headers: Record<string, string> | null;
21767
+ tenantId: string;
21768
+ projectId: string;
21769
+ agentId: string;
21771
21770
  subAgentId: string;
21771
+ headers: Record<string, string> | null;
21772
21772
  targetAgentId: string;
21773
21773
  }[]>;
21774
21774
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
21775
21775
  scopes: AgentScopeConfig;
21776
21776
  }) => Promise<{
21777
- tenantId: string;
21778
- projectId: string;
21779
21777
  id: string;
21780
- agentId: string;
21781
21778
  createdAt: string;
21782
21779
  updatedAt: string;
21783
- headers: Record<string, string> | null;
21780
+ tenantId: string;
21781
+ projectId: string;
21782
+ agentId: string;
21784
21783
  subAgentId: string;
21784
+ headers: Record<string, string> | null;
21785
21785
  targetAgentId: string;
21786
21786
  }[]>;
21787
21787
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
@@ -21927,14 +21927,14 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
21927
21927
  headers?: Record<string, string> | null;
21928
21928
  };
21929
21929
  }) => Promise<{
21930
- tenantId: string;
21931
- projectId: string;
21932
21930
  id: string;
21933
- agentId: string;
21934
21931
  createdAt: string;
21935
21932
  updatedAt: string;
21936
- headers: Record<string, string> | null;
21933
+ tenantId: string;
21934
+ projectId: string;
21935
+ agentId: string;
21937
21936
  subAgentId: string;
21937
+ headers: Record<string, string> | null;
21938
21938
  targetAgentId: string;
21939
21939
  }>;
21940
21940
  /**
@@ -21944,14 +21944,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
21944
21944
  scopes: SubAgentScopeConfig;
21945
21945
  targetAgentId: string;
21946
21946
  }) => Promise<{
21947
- tenantId: string;
21948
- projectId: string;
21949
21947
  id: string;
21950
- agentId: string;
21951
21948
  createdAt: string;
21952
21949
  updatedAt: string;
21953
- headers: Record<string, string> | null;
21950
+ tenantId: string;
21951
+ projectId: string;
21952
+ agentId: string;
21954
21953
  subAgentId: string;
21954
+ headers: Record<string, string> | null;
21955
21955
  targetAgentId: string;
21956
21956
  } | undefined>;
21957
21957
  /**
@@ -21965,14 +21965,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
21965
21965
  headers?: Record<string, string> | null;
21966
21966
  };
21967
21967
  }) => Promise<{
21968
- tenantId: string;
21969
- projectId: string;
21970
21968
  id: string;
21971
- agentId: string;
21972
21969
  createdAt: string;
21973
21970
  updatedAt: string;
21974
- headers: Record<string, string> | null;
21971
+ tenantId: string;
21972
+ projectId: string;
21973
+ agentId: string;
21975
21974
  subAgentId: string;
21975
+ headers: Record<string, string> | null;
21976
21976
  targetAgentId: string;
21977
21977
  }>;
21978
21978
  declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
@@ -22003,13 +22003,13 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
22003
22003
  //#endregion
22004
22004
  //#region src/data-access/tasks.d.ts
22005
22005
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
22006
- tenantId: string;
22007
- projectId: string;
22008
22006
  id: string;
22009
- agentId: string;
22010
22007
  createdAt: string;
22011
22008
  updatedAt: string;
22009
+ tenantId: string;
22012
22010
  metadata: TaskMetadataConfig | null;
22011
+ projectId: string;
22012
+ agentId: string;
22013
22013
  contextId: string;
22014
22014
  status: string;
22015
22015
  subAgentId: string;
@@ -22045,20 +22045,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
22045
22045
  scopes: ProjectScopeConfig;
22046
22046
  toolId: string;
22047
22047
  }) => Promise<{
22048
- tenantId: string;
22049
- projectId: string;
22050
22048
  id: string;
22051
22049
  name: string;
22052
22050
  description: string | null;
22051
+ createdAt: string;
22052
+ updatedAt: string;
22053
+ tenantId: string;
22054
+ projectId: string;
22055
+ credentialReferenceId: string | null;
22053
22056
  config: {
22054
22057
  type: "mcp";
22055
22058
  mcp: ToolMcpConfig;
22056
22059
  };
22057
- credentialReferenceId: string | null;
22058
- createdAt: string;
22059
- updatedAt: string;
22060
- headers: Record<string, string> | null;
22061
22060
  credentialScope: string;
22061
+ headers: Record<string, string> | null;
22062
22062
  imageUrl: string | null;
22063
22063
  capabilities: ToolServerCapabilities | null;
22064
22064
  lastError: string | null;
@@ -22094,20 +22094,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
22094
22094
  };
22095
22095
  }>;
22096
22096
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
22097
- tenantId: string;
22098
- projectId: string;
22099
22097
  id: string;
22100
22098
  name: string;
22101
22099
  description: string | null;
22100
+ createdAt: string;
22101
+ updatedAt: string;
22102
+ tenantId: string;
22103
+ projectId: string;
22104
+ credentialReferenceId: string | null;
22102
22105
  config: {
22103
22106
  type: "mcp";
22104
22107
  mcp: ToolMcpConfig;
22105
22108
  };
22106
- credentialReferenceId: string | null;
22107
- createdAt: string;
22108
- updatedAt: string;
22109
- headers: Record<string, string> | null;
22110
22109
  credentialScope: string;
22110
+ headers: Record<string, string> | null;
22111
22111
  imageUrl: string | null;
22112
22112
  capabilities: ToolServerCapabilities | null;
22113
22113
  lastError: string | null;
@@ -22149,38 +22149,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
22149
22149
  needsApproval?: boolean;
22150
22150
  }> | null;
22151
22151
  }) => Promise<{
22152
- tenantId: string;
22153
- projectId: string;
22154
22152
  id: string;
22155
- agentId: string;
22156
22153
  createdAt: string;
22157
22154
  updatedAt: string;
22155
+ tenantId: string;
22156
+ projectId: string;
22157
+ agentId: string;
22158
22158
  toolId: string;
22159
+ subAgentId: string;
22159
22160
  headers: Record<string, string> | null;
22161
+ selectedTools: string[] | null;
22160
22162
  toolPolicies: Record<string, {
22161
22163
  needsApproval?: boolean;
22162
22164
  }> | null;
22163
- subAgentId: string;
22164
- selectedTools: string[] | null;
22165
22165
  }>;
22166
22166
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
22167
22167
  scopes: AgentScopeConfig;
22168
22168
  subAgentId: string;
22169
22169
  toolId: string;
22170
22170
  }) => Promise<{
22171
- tenantId: string;
22172
- projectId: string;
22173
22171
  id: string;
22174
- agentId: string;
22175
22172
  createdAt: string;
22176
22173
  updatedAt: string;
22174
+ tenantId: string;
22175
+ projectId: string;
22176
+ agentId: string;
22177
22177
  toolId: string;
22178
+ subAgentId: string;
22178
22179
  headers: Record<string, string> | null;
22180
+ selectedTools: string[] | null;
22179
22181
  toolPolicies: Record<string, {
22180
22182
  needsApproval?: boolean;
22181
22183
  }> | null;
22182
- subAgentId: string;
22183
- selectedTools: string[] | null;
22184
22184
  }>;
22185
22185
  /**
22186
22186
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -22196,19 +22196,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22196
22196
  }> | null;
22197
22197
  relationId?: string;
22198
22198
  }) => Promise<{
22199
- tenantId: string;
22200
- projectId: string;
22201
22199
  id: string;
22202
- agentId: string;
22203
22200
  createdAt: string;
22204
22201
  updatedAt: string;
22202
+ tenantId: string;
22203
+ projectId: string;
22204
+ agentId: string;
22205
22205
  toolId: string;
22206
+ subAgentId: string;
22206
22207
  headers: Record<string, string> | null;
22208
+ selectedTools: string[] | null;
22207
22209
  toolPolicies: Record<string, {
22208
22210
  needsApproval?: boolean;
22209
22211
  }> | null;
22210
- subAgentId: string;
22211
- selectedTools: string[] | null;
22212
22212
  }>;
22213
22213
  /**
22214
22214
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -22216,20 +22216,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22216
22216
  declare const upsertTool: (db: DatabaseClient) => (params: {
22217
22217
  data: ToolInsert;
22218
22218
  }) => Promise<{
22219
- tenantId: string;
22220
- projectId: string;
22221
22219
  id: string;
22222
22220
  name: string;
22223
22221
  description: string | null;
22222
+ createdAt: string;
22223
+ updatedAt: string;
22224
+ tenantId: string;
22225
+ projectId: string;
22226
+ credentialReferenceId: string | null;
22224
22227
  config: {
22225
22228
  type: "mcp";
22226
22229
  mcp: ToolMcpConfig;
22227
22230
  };
22228
- credentialReferenceId: string | null;
22229
- createdAt: string;
22230
- updatedAt: string;
22231
- headers: Record<string, string> | null;
22232
22231
  credentialScope: string;
22232
+ headers: Record<string, string> | null;
22233
22233
  imageUrl: string | null;
22234
22234
  capabilities: ToolServerCapabilities | null;
22235
22235
  lastError: string | null;