@inkeep/agents-core 0.0.0-dev-20251219001549 → 0.0.0-dev-20251219041014

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
@@ -1380,6 +1380,7 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1380
1380
  createdAt: z.ZodString;
1381
1381
  updatedAt: z.ZodString;
1382
1382
  description: z.ZodNullable<z.ZodString>;
1383
+ prompt: z.ZodNullable<z.ZodString>;
1383
1384
  models: z.ZodNullable<z.ZodType<{
1384
1385
  base?: {
1385
1386
  model?: string | undefined;
@@ -1442,7 +1443,6 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
1442
1443
  }, {
1443
1444
  stepCountIs?: number | undefined;
1444
1445
  }>>>;
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<{
@@ -1451,6 +1451,7 @@ declare const SubAgentApiInsertSchema: z.ZodObject<{
1451
1451
  createdAt: z.ZodOptional<z.ZodString>;
1452
1452
  updatedAt: z.ZodOptional<z.ZodString>;
1453
1453
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1454
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1454
1455
  models: z.ZodOptional<z.ZodObject<{
1455
1456
  base: z.ZodOptional<z.ZodObject<{
1456
1457
  model: z.ZodOptional<z.ZodString>;
@@ -1474,7 +1475,6 @@ declare const SubAgentApiInsertSchema: z.ZodObject<{
1474
1475
  }, {
1475
1476
  stepCountIs?: number | undefined;
1476
1477
  }>>>>;
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<{
@@ -1483,6 +1483,7 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
1483
1483
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1484
1484
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1485
1485
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1486
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
1486
1487
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
1487
1488
  base: z.ZodOptional<z.ZodObject<{
1488
1489
  model: z.ZodOptional<z.ZodString>;
@@ -1506,7 +1507,6 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
1506
1507
  }, {
1507
1508
  stepCountIs?: number | undefined;
1508
1509
  }>>>>>>;
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", {
@@ -2814,6 +2814,7 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2814
2814
  createdAt: z.ZodString;
2815
2815
  updatedAt: z.ZodString;
2816
2816
  description: z.ZodNullable<z.ZodString>;
2817
+ prompt: z.ZodNullable<z.ZodString>;
2817
2818
  models: z.ZodNullable<z.ZodType<{
2818
2819
  base?: {
2819
2820
  model?: string | undefined;
@@ -2878,7 +2879,6 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2878
2879
  }>>>;
2879
2880
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
2880
2881
  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;
@@ -2942,6 +2942,7 @@ declare const AgentApiInsertSchema: z.ZodObject<{
2942
2942
  createdAt: z.ZodOptional<z.ZodString>;
2943
2943
  updatedAt: z.ZodOptional<z.ZodString>;
2944
2944
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2945
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2945
2946
  models: z.ZodOptional<z.ZodNullable<z.ZodType<{
2946
2947
  base?: {
2947
2948
  model?: string | undefined;
@@ -3006,7 +3007,6 @@ declare const AgentApiInsertSchema: z.ZodObject<{
3006
3007
  }>>>>;
3007
3008
  defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3008
3009
  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;
@@ -3072,6 +3072,7 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3072
3072
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3073
3073
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3074
3074
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3075
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3075
3076
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
3076
3077
  base?: {
3077
3078
  model?: string | undefined;
@@ -3136,7 +3137,6 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
3136
3137
  }>>>>>>;
3137
3138
  defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3138
3139
  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;
@@ -3603,20 +3603,20 @@ declare const TaskUpdateSchema: z.ZodObject<{
3603
3603
  in: {};
3604
3604
  }>;
3605
3605
  declare const TaskApiSelectSchema: z.ZodObject<{
3606
- metadata: z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
3607
3606
  id: z.ZodString;
3608
3607
  createdAt: z.ZodString;
3609
3608
  updatedAt: z.ZodString;
3609
+ metadata: z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
3610
3610
  status: z.ZodString;
3611
3611
  agentId: z.ZodString;
3612
3612
  contextId: z.ZodString;
3613
3613
  subAgentId: z.ZodString;
3614
3614
  }, z.core.$strip>;
3615
3615
  declare const TaskApiInsertSchema: z.ZodObject<{
3616
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
3617
3616
  id: z.ZodString;
3618
3617
  createdAt: z.ZodOptional<z.ZodString>;
3619
3618
  updatedAt: z.ZodOptional<z.ZodString>;
3619
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
3620
3620
  status: z.ZodString;
3621
3621
  agentId: z.ZodString;
3622
3622
  conversationId: z.ZodOptional<z.ZodString>;
@@ -3624,10 +3624,10 @@ declare const TaskApiInsertSchema: z.ZodObject<{
3624
3624
  subAgentId: z.ZodString;
3625
3625
  }, z.core.$strip>;
3626
3626
  declare const TaskApiUpdateSchema: z.ZodObject<{
3627
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
3628
3627
  id: 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>>>;
3630
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
3631
3631
  status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3632
3632
  agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3633
3633
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -4968,32 +4968,32 @@ declare const ConversationUpdateSchema: z.ZodObject<{
4968
4968
  in: {};
4969
4969
  }>;
4970
4970
  declare const ConversationApiSelectSchema: z.ZodObject<{
4971
- metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
4972
4971
  id: z.ZodString;
4973
4972
  createdAt: z.ZodString;
4974
4973
  updatedAt: z.ZodString;
4975
4974
  userId: z.ZodNullable<z.ZodString>;
4975
+ metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
4976
4976
  title: z.ZodNullable<z.ZodString>;
4977
4977
  activeSubAgentId: z.ZodString;
4978
4978
  lastContextResolution: z.ZodNullable<z.ZodString>;
4979
4979
  }, z.core.$strip>;
4980
4980
  declare const ConversationApiInsertSchema: z.ZodObject<{
4981
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
4982
4981
  id: z.ZodString;
4983
4982
  createdAt: z.ZodOptional<z.ZodString>;
4984
4983
  updatedAt: z.ZodOptional<z.ZodString>;
4985
4984
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4985
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
4986
4986
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4987
4987
  contextConfigId: z.ZodOptional<z.ZodString>;
4988
4988
  activeSubAgentId: z.ZodString;
4989
4989
  lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4990
4990
  }, z.core.$strip>;
4991
4991
  declare const ConversationApiUpdateSchema: z.ZodObject<{
4992
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
4993
4992
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4994
4993
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4995
4994
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4996
4995
  userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4996
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
4997
4997
  title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4998
4998
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4999
4999
  activeSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -5845,11 +5845,12 @@ declare const MessageUpdateSchema: z.ZodObject<{
5845
5845
  in: {};
5846
5846
  }>;
5847
5847
  declare const MessageApiSelectSchema: z.ZodObject<{
5848
- metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
5849
5848
  id: z.ZodString;
5850
5849
  createdAt: z.ZodString;
5851
5850
  updatedAt: z.ZodString;
5851
+ metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
5852
5852
  role: z.ZodString;
5853
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5853
5854
  conversationId: z.ZodString;
5854
5855
  fromSubAgentId: z.ZodNullable<z.ZodString>;
5855
5856
  toSubAgentId: z.ZodNullable<z.ZodString>;
@@ -5857,7 +5858,6 @@ declare const MessageApiSelectSchema: z.ZodObject<{
5857
5858
  toExternalAgentId: z.ZodNullable<z.ZodString>;
5858
5859
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
5859
5860
  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>;
@@ -5866,11 +5866,12 @@ declare const MessageApiSelectSchema: z.ZodObject<{
5866
5866
  a2aSessionId: z.ZodNullable<z.ZodString>;
5867
5867
  }, z.core.$strip>;
5868
5868
  declare const MessageApiInsertSchema: z.ZodObject<{
5869
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
5870
5869
  id: z.ZodString;
5871
5870
  createdAt: z.ZodOptional<z.ZodString>;
5872
5871
  updatedAt: z.ZodOptional<z.ZodString>;
5872
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
5873
5873
  role: z.ZodString;
5874
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5874
5875
  conversationId: z.ZodString;
5875
5876
  fromSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5876
5877
  toSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5878,7 +5879,6 @@ declare const MessageApiInsertSchema: z.ZodObject<{
5878
5879
  toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5879
5880
  fromTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5880
5881
  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>;
@@ -5887,11 +5887,12 @@ declare const MessageApiInsertSchema: z.ZodObject<{
5887
5887
  a2aSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5888
5888
  }, z.core.$strip>;
5889
5889
  declare const MessageApiUpdateSchema: z.ZodObject<{
5890
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
5891
5890
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5892
5891
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5893
5892
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5893
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
5894
5894
  role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5895
+ content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
5895
5896
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5896
5897
  fromSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5897
5898
  toSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
@@ -5899,7 +5900,6 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
5899
5900
  toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5900
5901
  fromTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5901
5902
  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
- }, "id" | "createdAt" | "updatedAt" | "value" | "tenantId" | "contextConfigId" | "projectId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
6871
+ }, "id" | "createdAt" | "updatedAt" | "value" | "tenantId" | "projectId" | "contextConfigId" | "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>>;
@@ -8675,8 +8675,8 @@ declare const ExternalAgentApiSelectSchema: z.ZodObject<{
8675
8675
  createdAt: z.ZodString;
8676
8676
  updatedAt: z.ZodString;
8677
8677
  description: z.ZodNullable<z.ZodString>;
8678
- baseUrl: z.ZodString;
8679
8678
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8679
+ baseUrl: z.ZodString;
8680
8680
  }, z.core.$strip>;
8681
8681
  declare const ExternalAgentApiInsertSchema: z.ZodObject<{
8682
8682
  id: z.ZodString;
@@ -8684,8 +8684,8 @@ declare const ExternalAgentApiInsertSchema: z.ZodObject<{
8684
8684
  createdAt: z.ZodOptional<z.ZodString>;
8685
8685
  updatedAt: z.ZodOptional<z.ZodString>;
8686
8686
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8687
- baseUrl: z.ZodString;
8688
8687
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8688
+ baseUrl: z.ZodString;
8689
8689
  }, z.core.$strip>;
8690
8690
  declare const ExternalAgentApiUpdateSchema: z.ZodObject<{
8691
8691
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -8693,8 +8693,8 @@ declare const ExternalAgentApiUpdateSchema: z.ZodObject<{
8693
8693
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
8694
8694
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
8695
8695
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
8696
- baseUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8697
8696
  credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
8697
+ baseUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
8698
8698
  }, z.core.$strip>;
8699
8699
  declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8700
8700
  id: z.ZodString;
@@ -8702,6 +8702,7 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8702
8702
  createdAt: z.ZodString;
8703
8703
  updatedAt: z.ZodString;
8704
8704
  description: z.ZodNullable<z.ZodString>;
8705
+ prompt: z.ZodNullable<z.ZodString>;
8705
8706
  models: z.ZodNullable<z.ZodType<{
8706
8707
  base?: {
8707
8708
  model?: string | undefined;
@@ -8764,7 +8765,6 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8764
8765
  }, {
8765
8766
  stepCountIs?: number | undefined;
8766
8767
  }>>>;
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<{
@@ -8773,8 +8773,8 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8773
8773
  createdAt: z.ZodString;
8774
8774
  updatedAt: z.ZodString;
8775
8775
  description: z.ZodNullable<z.ZodString>;
8776
- baseUrl: z.ZodString;
8777
8776
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8777
+ baseUrl: z.ZodString;
8778
8778
  type: z.ZodLiteral<"external">;
8779
8779
  }, z.core.$strip>], "type">;
8780
8780
  declare const ApiKeySelectSchema: drizzle_zod15.BuildSchema<"select", {
@@ -10481,11 +10481,11 @@ declare const McpToolSchema: z.ZodObject<{
10481
10481
  in: {};
10482
10482
  }>;
10483
10483
  declare const MCPToolConfigSchema: z.ZodObject<{
10484
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10485
10484
  id: z.ZodString;
10486
10485
  name: z.ZodString;
10487
10486
  expiresAt: z.ZodOptional<z.ZodString>;
10488
10487
  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
10489
  credentialScope: z.ZodOptional<z.ZodString>;
10490
10490
  imageUrl: z.ZodOptional<z.ZodString>;
10491
10491
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
@@ -10573,13 +10573,11 @@ declare const ToolUpdateSchema: z.ZodObject<{
10573
10573
  in: {};
10574
10574
  }>;
10575
10575
  declare const ToolApiSelectSchema: z.ZodObject<{
10576
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
10577
10576
  id: z.ZodString;
10578
10577
  name: z.ZodString;
10579
10578
  createdAt: z.ZodString;
10580
10579
  updatedAt: z.ZodString;
10581
10580
  description: z.ZodNullable<z.ZodString>;
10582
- credentialReferenceId: z.ZodNullable<z.ZodString>;
10583
10581
  config: z.ZodType<{
10584
10582
  type: "mcp";
10585
10583
  mcp: ToolMcpConfig;
@@ -10593,19 +10591,19 @@ declare const ToolApiSelectSchema: z.ZodObject<{
10593
10591
  type: "mcp";
10594
10592
  mcp: ToolMcpConfig;
10595
10593
  }>>;
10594
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
10595
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
10596
10596
  credentialScope: z.ZodString;
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>;
10600
10600
  }, z.core.$strip>;
10601
10601
  declare const ToolApiInsertSchema: z.ZodObject<{
10602
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
10603
10602
  id: z.ZodString;
10604
10603
  name: z.ZodString;
10605
10604
  createdAt: z.ZodOptional<z.ZodString>;
10606
10605
  updatedAt: z.ZodOptional<z.ZodString>;
10607
10606
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10608
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10609
10607
  config: z.ZodObject<{
10610
10608
  type: z.ZodLiteral<"mcp">;
10611
10609
  mcp: z.ZodObject<{
@@ -10625,19 +10623,19 @@ declare const ToolApiInsertSchema: z.ZodObject<{
10625
10623
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
10626
10624
  }, z.core.$strip>;
10627
10625
  }, z.core.$strip>;
10626
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<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
10628
  credentialScope: z.ZodOptional<z.ZodString>;
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>>;
10632
10632
  }, z.core.$strip>;
10633
10633
  declare const ToolApiUpdateSchema: z.ZodObject<{
10634
- 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>>>>>>>;
10635
10634
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10636
10635
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10637
10636
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10638
10637
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
10639
10638
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10640
- credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10641
10639
  config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
10642
10640
  type: z.ZodLiteral<"mcp">;
10643
10641
  mcp: z.ZodObject<{
@@ -10657,6 +10655,8 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
10657
10655
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
10658
10656
  }, z.core.$strip>;
10659
10657
  }, z.core.$strip>>>;
10658
+ credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<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
10660
  credentialScope: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
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>>>>>>;
@@ -11467,9 +11467,9 @@ declare const ContextConfigInsertSchema: z.ZodObject<{
11467
11467
  id: z.ZodOptional<z.ZodString>;
11468
11468
  tenantId: z.ZodString;
11469
11469
  projectId: z.ZodString;
11470
+ agentId: z.ZodString;
11470
11471
  headersSchema: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11471
11472
  contextVariables: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11472
- agentId: z.ZodString;
11473
11473
  }, {
11474
11474
  out: {};
11475
11475
  in: {};
@@ -11478,9 +11478,9 @@ declare const ContextConfigUpdateSchema: z.ZodObject<{
11478
11478
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11479
11479
  tenantId: z.ZodOptional<z.ZodString>;
11480
11480
  projectId: z.ZodOptional<z.ZodString>;
11481
+ agentId: z.ZodOptional<z.ZodString>;
11481
11482
  headersSchema: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11482
11483
  contextVariables: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11483
- agentId: z.ZodOptional<z.ZodString>;
11484
11484
  }, {
11485
11485
  out: {};
11486
11486
  in: {};
@@ -11960,38 +11960,38 @@ declare const SubAgentToolRelationUpdateSchema: z.ZodObject<{
11960
11960
  in: {};
11961
11961
  }>;
11962
11962
  declare const SubAgentToolRelationApiSelectSchema: z.ZodObject<{
11963
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11964
11963
  id: z.ZodString;
11965
11964
  createdAt: z.ZodString;
11966
11965
  updatedAt: z.ZodString;
11967
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>>>;
11968
11969
  subAgentId: z.ZodString;
11969
11970
  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
- headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
11974
11973
  id: z.ZodString;
11975
11974
  createdAt: z.ZodOptional<z.ZodString>;
11976
11975
  updatedAt: z.ZodOptional<z.ZodString>;
11977
11976
  toolId: z.ZodString;
11978
- subAgentId: z.ZodString;
11979
- selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11977
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
11980
11978
  toolPolicies: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
11981
11979
  needsApproval: z.ZodOptional<z.ZodBoolean>;
11982
11980
  }, 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
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
11986
11985
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11987
11986
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11988
11987
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
11989
11988
  toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11990
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11991
- selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
11989
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
11992
11990
  toolPolicies: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
11993
11991
  needsApproval: z.ZodOptional<z.ZodBoolean>;
11994
11992
  }, 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<{
@@ -12359,26 +12359,26 @@ declare const SubAgentExternalAgentRelationUpdateSchema: z.ZodObject<{
12359
12359
  in: {};
12360
12360
  }>;
12361
12361
  declare const SubAgentExternalAgentRelationApiSelectSchema: z.ZodObject<{
12362
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12363
12362
  id: z.ZodString;
12364
12363
  createdAt: z.ZodString;
12365
12364
  updatedAt: z.ZodString;
12366
- subAgentId: z.ZodString;
12365
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12367
12366
  externalAgentId: z.ZodString;
12367
+ subAgentId: z.ZodString;
12368
12368
  }, z.core.$strip>;
12369
12369
  declare const SubAgentExternalAgentRelationApiInsertSchema: z.ZodObject<{
12370
- headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
12371
12370
  createdAt: z.ZodOptional<z.ZodString>;
12372
12371
  updatedAt: z.ZodOptional<z.ZodString>;
12372
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
12373
12373
  externalAgentId: z.ZodString;
12374
12374
  }, z.core.$strip>;
12375
12375
  declare const SubAgentExternalAgentRelationApiUpdateSchema: z.ZodObject<{
12376
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12377
12376
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12378
12377
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12379
12378
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12380
- subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12379
+ headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12381
12380
  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<{
@@ -12746,24 +12746,24 @@ declare const SubAgentTeamAgentRelationUpdateSchema: z.ZodObject<{
12746
12746
  in: {};
12747
12747
  }>;
12748
12748
  declare const SubAgentTeamAgentRelationApiSelectSchema: z.ZodObject<{
12749
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12750
12749
  id: z.ZodString;
12751
12750
  createdAt: z.ZodString;
12752
12751
  updatedAt: z.ZodString;
12752
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12753
12753
  subAgentId: z.ZodString;
12754
12754
  targetAgentId: z.ZodString;
12755
12755
  }, z.core.$strip>;
12756
12756
  declare const SubAgentTeamAgentRelationApiInsertSchema: z.ZodObject<{
12757
- headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
12758
12757
  createdAt: z.ZodOptional<z.ZodString>;
12759
12758
  updatedAt: z.ZodOptional<z.ZodString>;
12759
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
12760
12760
  targetAgentId: z.ZodString;
12761
12761
  }, z.core.$strip>;
12762
12762
  declare const SubAgentTeamAgentRelationApiUpdateSchema: z.ZodObject<{
12763
- headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
12764
12763
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12765
12764
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
12766
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
12767
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12768
12768
  targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12769
12769
  }, z.core.$strip>;
@@ -14108,7 +14108,7 @@ declare const LedgerArtifactInsertSchema: drizzle_zod15.BuildSchema<"insert", {
14108
14108
  }, {}, {
14109
14109
  length: 256;
14110
14110
  }>;
14111
- }, "type" | "metadata" | "id" | "name" | "createdAt" | "updatedAt" | "description" | "tenantId" | "projectId" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
14111
+ }, "id" | "name" | "createdAt" | "updatedAt" | "metadata" | "description" | "tenantId" | "projectId" | "type" | "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>>;
@@ -14133,13 +14133,13 @@ declare const LedgerArtifactUpdateSchema: z.ZodObject<{
14133
14133
  in: {};
14134
14134
  }>;
14135
14135
  declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14136
- type: z.ZodString;
14137
- metadata: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
14138
14136
  id: z.ZodString;
14139
14137
  name: z.ZodNullable<z.ZodString>;
14140
14138
  createdAt: z.ZodString;
14141
14139
  updatedAt: z.ZodString;
14140
+ metadata: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
14142
14141
  description: z.ZodNullable<z.ZodString>;
14142
+ type: z.ZodString;
14143
14143
  contextId: z.ZodString;
14144
14144
  visibility: z.ZodNullable<z.ZodString>;
14145
14145
  taskId: z.ZodString;
@@ -14151,13 +14151,13 @@ declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
14151
14151
  derivedFrom: z.ZodNullable<z.ZodString>;
14152
14152
  }, z.core.$strip>;
14153
14153
  declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14154
- type: z.ZodOptional<z.ZodString>;
14155
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
14156
14154
  id: z.ZodString;
14157
14155
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14158
14156
  createdAt: z.ZodOptional<z.ZodString>;
14159
14157
  updatedAt: z.ZodOptional<z.ZodString>;
14158
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
14160
14159
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14160
+ type: z.ZodOptional<z.ZodString>;
14161
14161
  contextId: z.ZodString;
14162
14162
  visibility: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14163
14163
  taskId: z.ZodString;
@@ -14169,13 +14169,13 @@ declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
14169
14169
  derivedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14170
14170
  }, z.core.$strip>;
14171
14171
  declare const LedgerArtifactApiUpdateSchema: z.ZodObject<{
14172
- type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14173
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
14174
14172
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14175
14173
  name: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14176
14174
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14177
14175
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14176
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
14178
14177
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14178
+ type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
14179
14179
  contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14180
14180
  visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
14181
14181
  taskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -14351,13 +14351,11 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14351
14351
  }, z.core.$strip>]>>>;
14352
14352
  }, z.core.$strip>>;
14353
14353
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14354
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14355
14354
  id: z.ZodString;
14356
14355
  name: z.ZodString;
14357
14356
  createdAt: z.ZodOptional<z.ZodString>;
14358
14357
  updatedAt: z.ZodOptional<z.ZodString>;
14359
14358
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14360
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14361
14359
  config: z.ZodObject<{
14362
14360
  type: z.ZodLiteral<"mcp">;
14363
14361
  mcp: z.ZodObject<{
@@ -14377,6 +14375,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14377
14375
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14378
14376
  }, z.core.$strip>;
14379
14377
  }, z.core.$strip>;
14378
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<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
14380
  credentialScope: z.ZodOptional<z.ZodString>;
14381
14381
  imageUrl: z.ZodOptional<z.ZodString>;
14382
14382
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
@@ -14388,8 +14388,8 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
14388
14388
  createdAt: z.ZodOptional<z.ZodString>;
14389
14389
  updatedAt: z.ZodOptional<z.ZodString>;
14390
14390
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14391
- baseUrl: z.ZodString;
14392
14391
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14392
+ baseUrl: z.ZodString;
14393
14393
  }, z.core.$strip>>>;
14394
14394
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14395
14395
  id: z.ZodString;
@@ -14514,6 +14514,7 @@ declare const ProjectInsertSchema: z.ZodObject<{
14514
14514
  id: z.ZodString;
14515
14515
  name: z.ZodString;
14516
14516
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14517
+ tenantId: z.ZodString;
14517
14518
  models: z.ZodObject<{
14518
14519
  base: z.ZodObject<{
14519
14520
  model: z.ZodOptional<z.ZodString>;
@@ -14532,7 +14533,6 @@ declare const ProjectInsertSchema: z.ZodObject<{
14532
14533
  transferCountIs: z.ZodOptional<z.ZodNumber>;
14533
14534
  stepCountIs: z.ZodOptional<z.ZodNumber>;
14534
14535
  }, z.core.$strip>>;
14535
- tenantId: z.ZodString;
14536
14536
  }, {
14537
14537
  out: {};
14538
14538
  in: {};
@@ -14726,13 +14726,11 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14726
14726
  }, z.core.$strip>]>>>;
14727
14727
  }, z.core.$strip>>;
14728
14728
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14729
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14730
14729
  id: z.ZodString;
14731
14730
  name: z.ZodString;
14732
14731
  createdAt: z.ZodOptional<z.ZodString>;
14733
14732
  updatedAt: z.ZodOptional<z.ZodString>;
14734
14733
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14735
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14736
14734
  config: z.ZodObject<{
14737
14735
  type: z.ZodLiteral<"mcp">;
14738
14736
  mcp: z.ZodObject<{
@@ -14752,6 +14750,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14752
14750
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14753
14751
  }, z.core.$strip>;
14754
14752
  }, z.core.$strip>;
14753
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<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
14755
  credentialScope: z.ZodOptional<z.ZodString>;
14756
14756
  imageUrl: z.ZodOptional<z.ZodString>;
14757
14757
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
@@ -14763,8 +14763,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14763
14763
  createdAt: z.ZodOptional<z.ZodString>;
14764
14764
  updatedAt: z.ZodOptional<z.ZodString>;
14765
14765
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14766
- baseUrl: z.ZodString;
14767
14766
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14767
+ baseUrl: z.ZodString;
14768
14768
  }, z.core.$strip>>>;
14769
14769
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
14770
14770
  id: z.ZodString;
@@ -14827,13 +14827,11 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14827
14827
  prompt: z.ZodOptional<z.ZodString>;
14828
14828
  }, z.core.$strip>>;
14829
14829
  tools: z.ZodRecord<z.ZodString, z.ZodObject<{
14830
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
14831
14830
  id: z.ZodString;
14832
14831
  name: z.ZodString;
14833
14832
  createdAt: z.ZodOptional<z.ZodString>;
14834
14833
  updatedAt: z.ZodOptional<z.ZodString>;
14835
14834
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14836
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14837
14835
  config: z.ZodObject<{
14838
14836
  type: z.ZodLiteral<"mcp">;
14839
14837
  mcp: z.ZodObject<{
@@ -14853,6 +14851,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14853
14851
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
14854
14852
  }, z.core.$strip>;
14855
14853
  }, z.core.$strip>;
14854
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<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
14856
  credentialScope: z.ZodOptional<z.ZodString>;
14857
14857
  imageUrl: z.ZodOptional<z.ZodString>;
14858
14858
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
@@ -14910,8 +14910,8 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
14910
14910
  createdAt: z.ZodOptional<z.ZodString>;
14911
14911
  updatedAt: z.ZodOptional<z.ZodString>;
14912
14912
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14913
- baseUrl: z.ZodString;
14914
14913
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14914
+ baseUrl: z.ZodString;
14915
14915
  }, z.core.$strip>>>;
14916
14916
  statusUpdates: z.ZodOptional<z.ZodObject<{
14917
14917
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -14987,6 +14987,7 @@ declare const SubAgentResponse: z.ZodObject<{
14987
14987
  createdAt: z.ZodString;
14988
14988
  updatedAt: z.ZodString;
14989
14989
  description: z.ZodNullable<z.ZodString>;
14990
+ prompt: z.ZodNullable<z.ZodString>;
14990
14991
  models: z.ZodNullable<z.ZodType<{
14991
14992
  base?: {
14992
14993
  model?: string | undefined;
@@ -15049,7 +15050,6 @@ declare const SubAgentResponse: z.ZodObject<{
15049
15050
  }, {
15050
15051
  stepCountIs?: number | undefined;
15051
15052
  }>>>;
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>;
@@ -15060,6 +15060,7 @@ declare const AgentResponse: z.ZodObject<{
15060
15060
  createdAt: z.ZodString;
15061
15061
  updatedAt: z.ZodString;
15062
15062
  description: z.ZodNullable<z.ZodString>;
15063
+ prompt: z.ZodNullable<z.ZodString>;
15063
15064
  models: z.ZodNullable<z.ZodType<{
15064
15065
  base?: {
15065
15066
  model?: string | undefined;
@@ -15124,7 +15125,6 @@ declare const AgentResponse: z.ZodObject<{
15124
15125
  }>>>;
15125
15126
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
15126
15127
  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;
@@ -15186,13 +15186,11 @@ declare const AgentResponse: z.ZodObject<{
15186
15186
  }, z.core.$strip>;
15187
15187
  declare const ToolResponse: z.ZodObject<{
15188
15188
  data: z.ZodObject<{
15189
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15190
15189
  id: z.ZodString;
15191
15190
  name: z.ZodString;
15192
15191
  createdAt: z.ZodString;
15193
15192
  updatedAt: z.ZodString;
15194
15193
  description: z.ZodNullable<z.ZodString>;
15195
- credentialReferenceId: z.ZodNullable<z.ZodString>;
15196
15194
  config: z.ZodType<{
15197
15195
  type: "mcp";
15198
15196
  mcp: ToolMcpConfig;
@@ -15206,6 +15204,8 @@ declare const ToolResponse: z.ZodObject<{
15206
15204
  type: "mcp";
15207
15205
  mcp: ToolMcpConfig;
15208
15206
  }>>;
15207
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
15208
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15209
15209
  credentialScope: z.ZodString;
15210
15210
  imageUrl: z.ZodNullable<z.ZodString>;
15211
15211
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
@@ -15219,8 +15219,8 @@ declare const ExternalAgentResponse: z.ZodObject<{
15219
15219
  createdAt: z.ZodString;
15220
15220
  updatedAt: z.ZodString;
15221
15221
  description: z.ZodNullable<z.ZodString>;
15222
- baseUrl: z.ZodString;
15223
15222
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15223
+ baseUrl: z.ZodString;
15224
15224
  }, z.core.$strip>;
15225
15225
  }, z.core.$strip>;
15226
15226
  declare const ContextConfigResponse: z.ZodObject<{
@@ -15873,23 +15873,23 @@ declare const SubAgentRelationResponse: z.ZodObject<{
15873
15873
  }, z.core.$strip>;
15874
15874
  declare const SubAgentToolRelationResponse: z.ZodObject<{
15875
15875
  data: z.ZodObject<{
15876
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15877
15876
  id: z.ZodString;
15878
15877
  createdAt: z.ZodString;
15879
15878
  updatedAt: z.ZodString;
15880
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>>>;
15881
15882
  subAgentId: z.ZodString;
15882
15883
  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<{
15887
15887
  data: z.ZodObject<{
15888
- metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
15889
15888
  id: z.ZodString;
15890
15889
  createdAt: z.ZodString;
15891
15890
  updatedAt: z.ZodString;
15892
15891
  userId: z.ZodNullable<z.ZodString>;
15892
+ metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
15893
15893
  title: z.ZodNullable<z.ZodString>;
15894
15894
  activeSubAgentId: z.ZodString;
15895
15895
  lastContextResolution: z.ZodNullable<z.ZodString>;
@@ -15897,11 +15897,12 @@ declare const ConversationResponse: z.ZodObject<{
15897
15897
  }, z.core.$strip>;
15898
15898
  declare const MessageResponse: z.ZodObject<{
15899
15899
  data: z.ZodObject<{
15900
- metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
15901
15900
  id: z.ZodString;
15902
15901
  createdAt: z.ZodString;
15903
15902
  updatedAt: z.ZodString;
15903
+ metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
15904
15904
  role: z.ZodString;
15905
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
15905
15906
  conversationId: z.ZodString;
15906
15907
  fromSubAgentId: z.ZodNullable<z.ZodString>;
15907
15908
  toSubAgentId: z.ZodNullable<z.ZodString>;
@@ -15909,7 +15910,6 @@ declare const MessageResponse: z.ZodObject<{
15909
15910
  toExternalAgentId: z.ZodNullable<z.ZodString>;
15910
15911
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
15911
15912
  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>;
@@ -15961,6 +15961,7 @@ declare const SubAgentListResponse: z.ZodObject<{
15961
15961
  createdAt: z.ZodString;
15962
15962
  updatedAt: z.ZodString;
15963
15963
  description: z.ZodNullable<z.ZodString>;
15964
+ prompt: z.ZodNullable<z.ZodString>;
15964
15965
  models: z.ZodNullable<z.ZodType<{
15965
15966
  base?: {
15966
15967
  model?: string | undefined;
@@ -16023,7 +16024,6 @@ declare const SubAgentListResponse: z.ZodObject<{
16023
16024
  }, {
16024
16025
  stepCountIs?: number | undefined;
16025
16026
  }>>>;
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<{
@@ -16040,6 +16040,7 @@ declare const AgentListResponse: z.ZodObject<{
16040
16040
  createdAt: z.ZodString;
16041
16041
  updatedAt: z.ZodString;
16042
16042
  description: z.ZodNullable<z.ZodString>;
16043
+ prompt: z.ZodNullable<z.ZodString>;
16043
16044
  models: z.ZodNullable<z.ZodType<{
16044
16045
  base?: {
16045
16046
  model?: string | undefined;
@@ -16104,7 +16105,6 @@ declare const AgentListResponse: z.ZodObject<{
16104
16105
  }>>>;
16105
16106
  defaultSubAgentId: z.ZodNullable<z.ZodString>;
16106
16107
  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;
@@ -16172,13 +16172,11 @@ declare const AgentListResponse: z.ZodObject<{
16172
16172
  }, z.core.$strip>;
16173
16173
  declare const ToolListResponse: z.ZodObject<{
16174
16174
  data: z.ZodArray<z.ZodObject<{
16175
- headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
16176
16175
  id: z.ZodString;
16177
16176
  name: z.ZodString;
16178
16177
  createdAt: z.ZodString;
16179
16178
  updatedAt: z.ZodString;
16180
16179
  description: z.ZodNullable<z.ZodString>;
16181
- credentialReferenceId: z.ZodNullable<z.ZodString>;
16182
16180
  config: z.ZodType<{
16183
16181
  type: "mcp";
16184
16182
  mcp: ToolMcpConfig;
@@ -16192,6 +16190,8 @@ declare const ToolListResponse: z.ZodObject<{
16192
16190
  type: "mcp";
16193
16191
  mcp: ToolMcpConfig;
16194
16192
  }>>;
16193
+ credentialReferenceId: z.ZodNullable<z.ZodString>;
16194
+ headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
16195
16195
  credentialScope: z.ZodString;
16196
16196
  imageUrl: z.ZodNullable<z.ZodString>;
16197
16197
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
@@ -16211,8 +16211,8 @@ declare const ExternalAgentListResponse: z.ZodObject<{
16211
16211
  createdAt: z.ZodString;
16212
16212
  updatedAt: z.ZodString;
16213
16213
  description: z.ZodNullable<z.ZodString>;
16214
- baseUrl: z.ZodString;
16215
16214
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16215
+ baseUrl: z.ZodString;
16216
16216
  }, z.core.$strip>>;
16217
16217
  pagination: z.ZodObject<{
16218
16218
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -16919,14 +16919,14 @@ declare const SubAgentRelationListResponse: z.ZodObject<{
16919
16919
  }, z.core.$strip>;
16920
16920
  declare const SubAgentToolRelationListResponse: z.ZodObject<{
16921
16921
  data: z.ZodArray<z.ZodObject<{
16922
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16923
16922
  id: z.ZodString;
16924
16923
  createdAt: z.ZodString;
16925
16924
  updatedAt: z.ZodString;
16926
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>>>;
16927
16928
  subAgentId: z.ZodString;
16928
16929
  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>>;
@@ -16937,11 +16937,11 @@ declare const SubAgentToolRelationListResponse: z.ZodObject<{
16937
16937
  }, z.core.$strip>;
16938
16938
  declare const ConversationListResponse: z.ZodObject<{
16939
16939
  data: z.ZodArray<z.ZodObject<{
16940
- metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
16941
16940
  id: z.ZodString;
16942
16941
  createdAt: z.ZodString;
16943
16942
  updatedAt: z.ZodString;
16944
16943
  userId: z.ZodNullable<z.ZodString>;
16944
+ metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
16945
16945
  title: z.ZodNullable<z.ZodString>;
16946
16946
  activeSubAgentId: z.ZodString;
16947
16947
  lastContextResolution: z.ZodNullable<z.ZodString>;
@@ -16955,11 +16955,12 @@ declare const ConversationListResponse: z.ZodObject<{
16955
16955
  }, z.core.$strip>;
16956
16956
  declare const MessageListResponse: z.ZodObject<{
16957
16957
  data: z.ZodArray<z.ZodObject<{
16958
- metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
16959
16958
  id: z.ZodString;
16960
16959
  createdAt: z.ZodString;
16961
16960
  updatedAt: z.ZodString;
16961
+ metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
16962
16962
  role: z.ZodString;
16963
+ content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
16963
16964
  conversationId: z.ZodString;
16964
16965
  fromSubAgentId: z.ZodNullable<z.ZodString>;
16965
16966
  toSubAgentId: z.ZodNullable<z.ZodString>;
@@ -16967,7 +16968,6 @@ declare const MessageListResponse: z.ZodObject<{
16967
16968
  toExternalAgentId: z.ZodNullable<z.ZodString>;
16968
16969
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
16969
16970
  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>;
@@ -17112,13 +17112,11 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17112
17112
  }, z.core.$strip>]>>>;
17113
17113
  }, z.core.$strip>>;
17114
17114
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17115
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17116
17115
  id: z.ZodString;
17117
17116
  name: z.ZodString;
17118
17117
  createdAt: z.ZodOptional<z.ZodString>;
17119
17118
  updatedAt: z.ZodOptional<z.ZodString>;
17120
17119
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17121
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17122
17120
  config: z.ZodObject<{
17123
17121
  type: z.ZodLiteral<"mcp">;
17124
17122
  mcp: z.ZodObject<{
@@ -17138,6 +17136,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17138
17136
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17139
17137
  }, z.core.$strip>;
17140
17138
  }, z.core.$strip>;
17139
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<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
17141
  credentialScope: z.ZodOptional<z.ZodString>;
17142
17142
  imageUrl: z.ZodOptional<z.ZodString>;
17143
17143
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
@@ -17149,8 +17149,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17149
17149
  createdAt: z.ZodOptional<z.ZodString>;
17150
17150
  updatedAt: z.ZodOptional<z.ZodString>;
17151
17151
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17152
- baseUrl: z.ZodString;
17153
17152
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17153
+ baseUrl: z.ZodString;
17154
17154
  }, z.core.$strip>>>;
17155
17155
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17156
17156
  id: z.ZodString;
@@ -17213,13 +17213,11 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17213
17213
  prompt: z.ZodOptional<z.ZodString>;
17214
17214
  }, z.core.$strip>>;
17215
17215
  tools: z.ZodRecord<z.ZodString, z.ZodObject<{
17216
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17217
17216
  id: z.ZodString;
17218
17217
  name: z.ZodString;
17219
17218
  createdAt: z.ZodOptional<z.ZodString>;
17220
17219
  updatedAt: z.ZodOptional<z.ZodString>;
17221
17220
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17222
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17223
17221
  config: z.ZodObject<{
17224
17222
  type: z.ZodLiteral<"mcp">;
17225
17223
  mcp: z.ZodObject<{
@@ -17239,6 +17237,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17239
17237
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17240
17238
  }, z.core.$strip>;
17241
17239
  }, z.core.$strip>;
17240
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<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
17242
  credentialScope: z.ZodOptional<z.ZodString>;
17243
17243
  imageUrl: z.ZodOptional<z.ZodString>;
17244
17244
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
@@ -17296,8 +17296,8 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
17296
17296
  createdAt: z.ZodOptional<z.ZodString>;
17297
17297
  updatedAt: z.ZodOptional<z.ZodString>;
17298
17298
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17299
- baseUrl: z.ZodString;
17300
17299
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17300
+ baseUrl: z.ZodString;
17301
17301
  }, z.core.$strip>>>;
17302
17302
  statusUpdates: z.ZodOptional<z.ZodObject<{
17303
17303
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -17401,13 +17401,11 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17401
17401
  }, z.core.$strip>]>>>;
17402
17402
  }, z.core.$strip>>;
17403
17403
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17404
- headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
17405
17404
  id: z.ZodString;
17406
17405
  name: z.ZodString;
17407
17406
  createdAt: z.ZodOptional<z.ZodString>;
17408
17407
  updatedAt: z.ZodOptional<z.ZodString>;
17409
17408
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17410
- credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17411
17409
  config: z.ZodObject<{
17412
17410
  type: z.ZodLiteral<"mcp">;
17413
17411
  mcp: z.ZodObject<{
@@ -17427,6 +17425,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17427
17425
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
17428
17426
  }, z.core.$strip>;
17429
17427
  }, z.core.$strip>;
17428
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<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
17430
  credentialScope: z.ZodOptional<z.ZodString>;
17431
17431
  imageUrl: z.ZodOptional<z.ZodString>;
17432
17432
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
@@ -17438,8 +17438,8 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
17438
17438
  createdAt: z.ZodOptional<z.ZodString>;
17439
17439
  updatedAt: z.ZodOptional<z.ZodString>;
17440
17440
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17441
- baseUrl: z.ZodString;
17442
17441
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17442
+ baseUrl: z.ZodString;
17443
17443
  }, z.core.$strip>>>;
17444
17444
  teamAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17445
17445
  id: z.ZodString;
@@ -17637,20 +17637,20 @@ declare const McpToolListResponse: z.ZodObject<{
17637
17637
  }, z.core.$strip>;
17638
17638
  declare const SubAgentTeamAgentRelationResponse: z.ZodObject<{
17639
17639
  data: z.ZodObject<{
17640
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17641
17640
  id: z.ZodString;
17642
17641
  createdAt: z.ZodString;
17643
17642
  updatedAt: z.ZodString;
17643
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17644
17644
  subAgentId: z.ZodString;
17645
17645
  targetAgentId: z.ZodString;
17646
17646
  }, z.core.$strip>;
17647
17647
  }, z.core.$strip>;
17648
17648
  declare const SubAgentTeamAgentRelationListResponse: z.ZodObject<{
17649
17649
  data: z.ZodArray<z.ZodObject<{
17650
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17651
17650
  id: z.ZodString;
17652
17651
  createdAt: z.ZodString;
17653
17652
  updatedAt: z.ZodString;
17653
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17654
17654
  subAgentId: z.ZodString;
17655
17655
  targetAgentId: z.ZodString;
17656
17656
  }, z.core.$strip>>;
@@ -17663,22 +17663,22 @@ declare const SubAgentTeamAgentRelationListResponse: z.ZodObject<{
17663
17663
  }, z.core.$strip>;
17664
17664
  declare const SubAgentExternalAgentRelationResponse: z.ZodObject<{
17665
17665
  data: z.ZodObject<{
17666
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17667
17666
  id: z.ZodString;
17668
17667
  createdAt: z.ZodString;
17669
17668
  updatedAt: z.ZodString;
17670
- subAgentId: z.ZodString;
17669
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17671
17670
  externalAgentId: z.ZodString;
17671
+ subAgentId: z.ZodString;
17672
17672
  }, z.core.$strip>;
17673
17673
  }, z.core.$strip>;
17674
17674
  declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
17675
17675
  data: z.ZodArray<z.ZodObject<{
17676
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17677
17676
  id: z.ZodString;
17678
17677
  createdAt: z.ZodString;
17679
17678
  updatedAt: z.ZodString;
17680
- subAgentId: z.ZodString;
17679
+ headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17681
17680
  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>>;
@@ -18996,6 +18996,9 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
18996
18996
  createdAt: string;
18997
18997
  updatedAt: string;
18998
18998
  description: string | null;
18999
+ tenantId: string;
19000
+ projectId: string;
19001
+ prompt: string | null;
18999
19002
  models: {
19000
19003
  base?: {
19001
19004
  model?: string | undefined;
@@ -19013,10 +19016,8 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19013
19016
  stopWhen: {
19014
19017
  transferCountIs?: number | undefined;
19015
19018
  } | null;
19016
- tenantId: string;
19017
19019
  defaultSubAgentId: string | null;
19018
19020
  contextConfigId: string | null;
19019
- prompt: string | null;
19020
19021
  statusUpdates: {
19021
19022
  enabled?: boolean | undefined;
19022
19023
  numEvents?: number | undefined;
@@ -19032,7 +19033,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
19032
19033
  } | undefined;
19033
19034
  }[] | undefined;
19034
19035
  } | null;
19035
- projectId: string;
19036
19036
  } | null>;
19037
19037
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19038
19038
  scopes: AgentScopeConfig;
@@ -19042,6 +19042,9 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19042
19042
  createdAt: string;
19043
19043
  updatedAt: string;
19044
19044
  description: string | null;
19045
+ tenantId: string;
19046
+ projectId: string;
19047
+ prompt: string | null;
19045
19048
  models: {
19046
19049
  base?: {
19047
19050
  model?: string | undefined;
@@ -19059,10 +19062,8 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19059
19062
  stopWhen: {
19060
19063
  transferCountIs?: number | undefined;
19061
19064
  } | null;
19062
- tenantId: string;
19063
19065
  defaultSubAgentId: string | null;
19064
19066
  contextConfigId: string | null;
19065
- prompt: string | null;
19066
19067
  statusUpdates: {
19067
19068
  enabled?: boolean | undefined;
19068
19069
  numEvents?: number | undefined;
@@ -19078,13 +19079,16 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19078
19079
  } | undefined;
19079
19080
  }[] | undefined;
19080
19081
  } | null;
19081
- projectId: string;
19082
19082
  defaultSubAgent: {
19083
19083
  id: string;
19084
19084
  name: string;
19085
19085
  createdAt: string;
19086
19086
  updatedAt: string;
19087
19087
  description: string | null;
19088
+ tenantId: string;
19089
+ projectId: string;
19090
+ prompt: string | null;
19091
+ agentId: string;
19088
19092
  models: {
19089
19093
  base?: {
19090
19094
  model?: string | undefined;
@@ -19102,10 +19106,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
19102
19106
  stopWhen: {
19103
19107
  stepCountIs?: number | undefined;
19104
19108
  } | null;
19105
- tenantId: string;
19106
- prompt: string | null;
19107
- projectId: string;
19108
- agentId: string;
19109
19109
  conversationHistoryConfig: ConversationHistoryConfig | null;
19110
19110
  } | null;
19111
19111
  } | null>;
@@ -19117,6 +19117,9 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19117
19117
  createdAt: string;
19118
19118
  updatedAt: string;
19119
19119
  description: string | null;
19120
+ tenantId: string;
19121
+ projectId: string;
19122
+ prompt: string | null;
19120
19123
  models: {
19121
19124
  base?: {
19122
19125
  model?: string | undefined;
@@ -19134,10 +19137,8 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19134
19137
  stopWhen: {
19135
19138
  transferCountIs?: number | undefined;
19136
19139
  } | null;
19137
- tenantId: string;
19138
19140
  defaultSubAgentId: string | null;
19139
19141
  contextConfigId: string | null;
19140
- prompt: string | null;
19141
19142
  statusUpdates: {
19142
19143
  enabled?: boolean | undefined;
19143
19144
  numEvents?: number | undefined;
@@ -19153,7 +19154,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
19153
19154
  } | undefined;
19154
19155
  }[] | undefined;
19155
19156
  } | null;
19156
- projectId: string;
19157
19157
  }[]>;
19158
19158
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
19159
19159
  scopes: ProjectScopeConfig;
@@ -19216,6 +19216,9 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19216
19216
  createdAt: string;
19217
19217
  updatedAt: string;
19218
19218
  description: string | null;
19219
+ tenantId: string;
19220
+ projectId: string;
19221
+ prompt: string | null;
19219
19222
  models: {
19220
19223
  base?: {
19221
19224
  model?: string | undefined;
@@ -19233,10 +19236,8 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19233
19236
  stopWhen: {
19234
19237
  transferCountIs?: number | undefined;
19235
19238
  } | null;
19236
- tenantId: string;
19237
19239
  defaultSubAgentId: string | null;
19238
19240
  contextConfigId: string | null;
19239
- prompt: string | null;
19240
19241
  statusUpdates: {
19241
19242
  enabled?: boolean | undefined;
19242
19243
  numEvents?: number | undefined;
@@ -19252,7 +19253,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
19252
19253
  } | undefined;
19253
19254
  }[] | undefined;
19254
19255
  } | null;
19255
- projectId: string;
19256
19256
  }>;
19257
19257
  declare const updateAgent: (db: DatabaseClient) => (params: {
19258
19258
  scopes: AgentScopeConfig;
@@ -19680,9 +19680,9 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
19680
19680
  updatedAt: string;
19681
19681
  tenantId: string;
19682
19682
  projectId: string;
19683
+ agentId: string;
19683
19684
  headersSchema: unknown;
19684
19685
  contextVariables: Record<string, ContextFetchDefinition> | null;
19685
- agentId: string;
19686
19686
  } | undefined>;
19687
19687
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
19688
19688
  scopes: AgentScopeConfig;
@@ -19692,9 +19692,9 @@ declare const listContextConfigs: (db: DatabaseClient) => (params: {
19692
19692
  updatedAt: string;
19693
19693
  tenantId: string;
19694
19694
  projectId: string;
19695
+ agentId: string;
19695
19696
  headersSchema: unknown;
19696
19697
  contextVariables: Record<string, ContextFetchDefinition> | null;
19697
- agentId: string;
19698
19698
  }[]>;
19699
19699
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
19700
19700
  scopes: AgentScopeConfig;
@@ -19714,9 +19714,9 @@ declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfi
19714
19714
  updatedAt: string;
19715
19715
  tenantId: string;
19716
19716
  projectId: string;
19717
+ agentId: string;
19717
19718
  headersSchema: unknown;
19718
19719
  contextVariables: Record<string, ContextFetchDefinition> | null;
19719
- agentId: string;
19720
19720
  }>;
19721
19721
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
19722
19722
  scopes: AgentScopeConfig;
@@ -19754,9 +19754,9 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
19754
19754
  updatedAt: string;
19755
19755
  tenantId: string;
19756
19756
  projectId: string;
19757
+ agentId: string;
19757
19758
  headersSchema: unknown;
19758
19759
  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
- metadata: ConversationMetadata | null;
19773
19772
  id: string;
19774
19773
  createdAt: string;
19775
19774
  updatedAt: string;
19776
19775
  userId: string | null;
19777
- title: string | null;
19776
+ metadata: ConversationMetadata | null;
19778
19777
  tenantId: string;
19779
19778
  projectId: string;
19779
+ title: 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
- metadata: ConversationMetadata | null;
19824
19823
  id: string;
19825
19824
  createdAt: string;
19826
19825
  updatedAt: string;
19827
19826
  userId: string | null;
19828
- title: string | null;
19827
+ metadata: ConversationMetadata | null;
19829
19828
  tenantId: string;
19830
19829
  projectId: string;
19830
+ title: 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
- metadata: ConversationMetadata | null;
19848
19847
  id: string;
19849
19848
  createdAt: string;
19850
19849
  updatedAt: string;
19851
19850
  userId: string | null;
19852
- title: string | null;
19851
+ metadata: ConversationMetadata | null;
19853
19852
  tenantId: string;
19854
19853
  projectId: string;
19854
+ title: 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
- metadata: ConversationMetadata | null;
19874
19873
  id: string;
19875
19874
  createdAt: string;
19876
19875
  updatedAt: string;
19877
19876
  userId: string | null;
19878
- title: string | null;
19877
+ metadata: ConversationMetadata | null;
19879
19878
  tenantId: string;
19880
19879
  projectId: string;
19880
+ title: string | null;
19881
19881
  activeSubAgentId: string;
19882
19882
  lastContextResolution: string | null;
19883
19883
  } | undefined>;
@@ -20483,13 +20483,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
20483
20483
  scopes: ProjectScopeConfig;
20484
20484
  messageId: string;
20485
20485
  }) => Promise<{
20486
- metadata: MessageMetadata | null;
20487
20486
  id: string;
20488
20487
  createdAt: string;
20489
20488
  updatedAt: string;
20489
+ metadata: MessageMetadata | null;
20490
20490
  role: string;
20491
20491
  tenantId: string;
20492
20492
  projectId: string;
20493
+ content: MessageContent;
20493
20494
  conversationId: string;
20494
20495
  fromSubAgentId: string | null;
20495
20496
  toSubAgentId: string | null;
@@ -20497,7 +20498,6 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
20497
20498
  toExternalAgentId: string | null;
20498
20499
  fromTeamAgentId: string | null;
20499
20500
  toTeamAgentId: string | null;
20500
- content: MessageContent;
20501
20501
  visibility: string;
20502
20502
  messageType: string;
20503
20503
  taskId: string | null;
@@ -20614,13 +20614,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
20614
20614
  id: string;
20615
20615
  }[]>;
20616
20616
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
20617
- metadata: MessageMetadata | null;
20618
20617
  id: string;
20619
20618
  createdAt: string;
20620
20619
  updatedAt: string;
20620
+ metadata: MessageMetadata | null;
20621
20621
  role: string;
20622
20622
  tenantId: string;
20623
20623
  projectId: string;
20624
+ content: MessageContent;
20624
20625
  conversationId: string;
20625
20626
  fromSubAgentId: string | null;
20626
20627
  toSubAgentId: string | null;
@@ -20628,7 +20629,6 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
20628
20629
  toExternalAgentId: string | null;
20629
20630
  fromTeamAgentId: string | null;
20630
20631
  toTeamAgentId: string | null;
20631
- content: MessageContent;
20632
20632
  visibility: string;
20633
20633
  messageType: string;
20634
20634
  taskId: string | null;
@@ -20667,13 +20667,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
20667
20667
  scopes: ProjectScopeConfig;
20668
20668
  messageId: string;
20669
20669
  }) => Promise<{
20670
- metadata: MessageMetadata | null;
20671
20670
  id: string;
20672
20671
  createdAt: string;
20673
20672
  updatedAt: string;
20673
+ metadata: MessageMetadata | null;
20674
20674
  role: string;
20675
20675
  tenantId: string;
20676
20676
  projectId: string;
20677
+ content: MessageContent;
20677
20678
  conversationId: string;
20678
20679
  fromSubAgentId: string | null;
20679
20680
  toSubAgentId: string | null;
@@ -20681,7 +20682,6 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
20681
20682
  toExternalAgentId: string | null;
20682
20683
  fromTeamAgentId: string | null;
20683
20684
  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
- headers: Record<string, string> | null;
20831
20830
  id: string;
20832
20831
  createdAt: string;
20833
20832
  updatedAt: string;
20834
20833
  tenantId: string;
20835
20834
  projectId: string;
20836
20835
  agentId: string;
20837
- subAgentId: string;
20836
+ headers: Record<string, string> | null;
20838
20837
  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
- headers: Record<string, string> | null;
20866
20865
  id: string;
20867
20866
  createdAt: string;
20868
20867
  updatedAt: string;
20869
20868
  tenantId: string;
20870
20869
  projectId: string;
20871
20870
  agentId: string;
20872
- subAgentId: string;
20871
+ headers: Record<string, string> | null;
20873
20872
  externalAgentId: string;
20873
+ subAgentId: string;
20874
20874
  }[]>;
20875
20875
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
20876
20876
  scopes: AgentScopeConfig;
20877
20877
  }) => Promise<{
20878
- headers: Record<string, string> | null;
20879
20878
  id: string;
20880
20879
  createdAt: string;
20881
20880
  updatedAt: string;
20882
20881
  tenantId: string;
20883
20882
  projectId: string;
20884
20883
  agentId: string;
20885
- subAgentId: string;
20884
+ headers: Record<string, string> | null;
20886
20885
  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
- headers: Record<string, string> | null;
21002
21001
  id: string;
21003
21002
  createdAt: string;
21004
21003
  updatedAt: string;
21005
21004
  tenantId: string;
21006
21005
  projectId: string;
21007
21006
  agentId: string;
21008
- subAgentId: string;
21007
+ headers: Record<string, string> | null;
21009
21008
  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
- headers: Record<string, string> | null;
21019
21018
  id: string;
21020
21019
  createdAt: string;
21021
21020
  updatedAt: string;
21022
21021
  tenantId: string;
21023
21022
  projectId: string;
21024
21023
  agentId: string;
21025
- subAgentId: string;
21024
+ headers: Record<string, string> | null;
21026
21025
  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
- headers: Record<string, string> | null;
21040
21039
  id: string;
21041
21040
  createdAt: string;
21042
21041
  updatedAt: string;
21043
21042
  tenantId: string;
21044
21043
  projectId: string;
21045
21044
  agentId: string;
21046
- subAgentId: string;
21045
+ headers: Record<string, string> | null;
21047
21046
  externalAgentId: string;
21047
+ subAgentId: string;
21048
21048
  }>;
21049
21049
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
21050
21050
  scopes: SubAgentScopeConfig;
@@ -21272,7 +21272,6 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
21272
21272
  }> | null;
21273
21273
  };
21274
21274
  }) => Promise<{
21275
- headers: Record<string, string> | null;
21276
21275
  id: string;
21277
21276
  createdAt: string;
21278
21277
  updatedAt: string;
@@ -21280,11 +21279,12 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
21280
21279
  projectId: string;
21281
21280
  agentId: string;
21282
21281
  toolId: string;
21283
- subAgentId: string;
21284
- selectedTools: string[] | null;
21282
+ headers: Record<string, string> | null;
21285
21283
  toolPolicies: Record<string, {
21286
21284
  needsApproval?: boolean;
21287
21285
  }> | null;
21286
+ subAgentId: string;
21287
+ selectedTools: string[] | null;
21288
21288
  }>;
21289
21289
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
21290
21290
  scopes: AgentScopeConfig;
@@ -21316,7 +21316,6 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
21316
21316
  scopes: SubAgentScopeConfig;
21317
21317
  relationId: string;
21318
21318
  }) => Promise<{
21319
- headers: Record<string, string> | null;
21320
21319
  id: string;
21321
21320
  createdAt: string;
21322
21321
  updatedAt: string;
@@ -21324,11 +21323,12 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
21324
21323
  projectId: string;
21325
21324
  agentId: string;
21326
21325
  toolId: string;
21327
- subAgentId: string;
21328
- selectedTools: string[] | null;
21326
+ headers: Record<string, string> | null;
21329
21327
  toolPolicies: Record<string, {
21330
21328
  needsApproval?: boolean;
21331
21329
  }> | null;
21330
+ subAgentId: string;
21331
+ selectedTools: string[] | null;
21332
21332
  } | undefined>;
21333
21333
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
21334
21334
  scopes: SubAgentScopeConfig;
@@ -21517,6 +21517,10 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
21517
21517
  createdAt: string;
21518
21518
  updatedAt: string;
21519
21519
  description: string | null;
21520
+ tenantId: string;
21521
+ projectId: string;
21522
+ prompt: string | null;
21523
+ agentId: string;
21520
21524
  models: {
21521
21525
  base?: {
21522
21526
  model?: string | undefined;
@@ -21534,10 +21538,6 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
21534
21538
  stopWhen: {
21535
21539
  stepCountIs?: number | undefined;
21536
21540
  } | null;
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: {
@@ -21548,6 +21548,10 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
21548
21548
  createdAt: string;
21549
21549
  updatedAt: string;
21550
21550
  description: string | null;
21551
+ tenantId: string;
21552
+ projectId: string;
21553
+ prompt: string | null;
21554
+ agentId: string;
21551
21555
  models: {
21552
21556
  base?: {
21553
21557
  model?: string | undefined;
@@ -21565,10 +21569,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
21565
21569
  stopWhen: {
21566
21570
  stepCountIs?: number | undefined;
21567
21571
  } | null;
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: {
@@ -21617,6 +21617,10 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
21617
21617
  createdAt: string;
21618
21618
  updatedAt: string;
21619
21619
  description: string | null;
21620
+ tenantId: string;
21621
+ projectId: string;
21622
+ prompt: string | null;
21623
+ agentId: string;
21620
21624
  models: {
21621
21625
  base?: {
21622
21626
  model?: string | undefined;
@@ -21634,10 +21638,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
21634
21638
  stopWhen: {
21635
21639
  stepCountIs?: number | undefined;
21636
21640
  } | null;
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,13 +21726,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
21726
21726
  scopes: SubAgentScopeConfig;
21727
21727
  relationId: string;
21728
21728
  }) => Promise<{
21729
- headers: Record<string, string> | null;
21730
21729
  id: string;
21731
21730
  createdAt: string;
21732
21731
  updatedAt: string;
21733
21732
  tenantId: string;
21734
21733
  projectId: string;
21735
21734
  agentId: string;
21735
+ headers: Record<string, string> | null;
21736
21736
  subAgentId: string;
21737
21737
  targetAgentId: string;
21738
21738
  } | undefined>;
@@ -21761,26 +21761,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
21761
21761
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
21762
21762
  scopes: SubAgentScopeConfig;
21763
21763
  }) => Promise<{
21764
- headers: Record<string, string> | null;
21765
21764
  id: string;
21766
21765
  createdAt: string;
21767
21766
  updatedAt: string;
21768
21767
  tenantId: string;
21769
21768
  projectId: string;
21770
21769
  agentId: string;
21770
+ headers: Record<string, string> | null;
21771
21771
  subAgentId: string;
21772
21772
  targetAgentId: string;
21773
21773
  }[]>;
21774
21774
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
21775
21775
  scopes: AgentScopeConfig;
21776
21776
  }) => Promise<{
21777
- headers: Record<string, string> | null;
21778
21777
  id: string;
21779
21778
  createdAt: string;
21780
21779
  updatedAt: string;
21781
21780
  tenantId: string;
21782
21781
  projectId: string;
21783
21782
  agentId: string;
21783
+ headers: Record<string, string> | null;
21784
21784
  subAgentId: string;
21785
21785
  targetAgentId: string;
21786
21786
  }[]>;
@@ -21927,13 +21927,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
21927
21927
  headers?: Record<string, string> | null;
21928
21928
  };
21929
21929
  }) => Promise<{
21930
- headers: Record<string, string> | null;
21931
21930
  id: string;
21932
21931
  createdAt: string;
21933
21932
  updatedAt: string;
21934
21933
  tenantId: string;
21935
21934
  projectId: string;
21936
21935
  agentId: string;
21936
+ headers: Record<string, string> | null;
21937
21937
  subAgentId: string;
21938
21938
  targetAgentId: string;
21939
21939
  }>;
@@ -21944,13 +21944,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
21944
21944
  scopes: SubAgentScopeConfig;
21945
21945
  targetAgentId: string;
21946
21946
  }) => Promise<{
21947
- headers: Record<string, string> | null;
21948
21947
  id: string;
21949
21948
  createdAt: string;
21950
21949
  updatedAt: string;
21951
21950
  tenantId: string;
21952
21951
  projectId: string;
21953
21952
  agentId: string;
21953
+ headers: Record<string, string> | null;
21954
21954
  subAgentId: string;
21955
21955
  targetAgentId: string;
21956
21956
  } | undefined>;
@@ -21965,13 +21965,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
21965
21965
  headers?: Record<string, string> | null;
21966
21966
  };
21967
21967
  }) => Promise<{
21968
- headers: Record<string, string> | null;
21969
21968
  id: string;
21970
21969
  createdAt: string;
21971
21970
  updatedAt: string;
21972
21971
  tenantId: string;
21973
21972
  projectId: string;
21974
21973
  agentId: string;
21974
+ headers: Record<string, string> | null;
21975
21975
  subAgentId: string;
21976
21976
  targetAgentId: string;
21977
21977
  }>;
@@ -22003,10 +22003,10 @@ 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
- metadata: TaskMetadataConfig | null;
22007
22006
  id: string;
22008
22007
  createdAt: string;
22009
22008
  updatedAt: string;
22009
+ metadata: TaskMetadataConfig | null;
22010
22010
  status: string;
22011
22011
  tenantId: string;
22012
22012
  projectId: string;
@@ -22045,7 +22045,6 @@ declare const getToolById: (db: DatabaseClient) => (params: {
22045
22045
  scopes: ProjectScopeConfig;
22046
22046
  toolId: string;
22047
22047
  }) => Promise<{
22048
- headers: Record<string, string> | null;
22049
22048
  id: string;
22050
22049
  name: string;
22051
22050
  createdAt: string;
@@ -22053,11 +22052,12 @@ declare const getToolById: (db: DatabaseClient) => (params: {
22053
22052
  description: string | null;
22054
22053
  tenantId: string;
22055
22054
  projectId: string;
22056
- credentialReferenceId: string | null;
22057
22055
  config: {
22058
22056
  type: "mcp";
22059
22057
  mcp: ToolMcpConfig;
22060
22058
  };
22059
+ credentialReferenceId: string | null;
22060
+ headers: Record<string, string> | null;
22061
22061
  credentialScope: string;
22062
22062
  imageUrl: string | null;
22063
22063
  capabilities: ToolServerCapabilities | null;
@@ -22094,7 +22094,6 @@ declare const listTools: (db: DatabaseClient) => (params: {
22094
22094
  };
22095
22095
  }>;
22096
22096
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
22097
- headers: Record<string, string> | null;
22098
22097
  id: string;
22099
22098
  name: string;
22100
22099
  createdAt: string;
@@ -22102,11 +22101,12 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
22102
22101
  description: string | null;
22103
22102
  tenantId: string;
22104
22103
  projectId: string;
22105
- credentialReferenceId: string | null;
22106
22104
  config: {
22107
22105
  type: "mcp";
22108
22106
  mcp: ToolMcpConfig;
22109
22107
  };
22108
+ credentialReferenceId: string | null;
22109
+ headers: Record<string, string> | null;
22110
22110
  credentialScope: string;
22111
22111
  imageUrl: string | null;
22112
22112
  capabilities: ToolServerCapabilities | null;
@@ -22149,7 +22149,6 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
22149
22149
  needsApproval?: boolean;
22150
22150
  }> | null;
22151
22151
  }) => Promise<{
22152
- headers: Record<string, string> | null;
22153
22152
  id: string;
22154
22153
  createdAt: string;
22155
22154
  updatedAt: string;
@@ -22157,18 +22156,18 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
22157
22156
  projectId: string;
22158
22157
  agentId: string;
22159
22158
  toolId: string;
22160
- subAgentId: string;
22161
- selectedTools: string[] | null;
22159
+ headers: Record<string, string> | null;
22162
22160
  toolPolicies: Record<string, {
22163
22161
  needsApproval?: boolean;
22164
22162
  }> | 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
- headers: Record<string, string> | null;
22172
22171
  id: string;
22173
22172
  createdAt: string;
22174
22173
  updatedAt: string;
@@ -22176,11 +22175,12 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
22176
22175
  projectId: string;
22177
22176
  agentId: string;
22178
22177
  toolId: string;
22179
- subAgentId: string;
22180
- selectedTools: string[] | null;
22178
+ headers: Record<string, string> | null;
22181
22179
  toolPolicies: Record<string, {
22182
22180
  needsApproval?: boolean;
22183
22181
  }> | 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,7 +22196,6 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22196
22196
  }> | null;
22197
22197
  relationId?: string;
22198
22198
  }) => Promise<{
22199
- headers: Record<string, string> | null;
22200
22199
  id: string;
22201
22200
  createdAt: string;
22202
22201
  updatedAt: string;
@@ -22204,11 +22203,12 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22204
22203
  projectId: string;
22205
22204
  agentId: string;
22206
22205
  toolId: string;
22207
- subAgentId: string;
22208
- selectedTools: string[] | null;
22206
+ headers: Record<string, string> | null;
22209
22207
  toolPolicies: Record<string, {
22210
22208
  needsApproval?: boolean;
22211
22209
  }> | 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,7 +22216,6 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
22216
22216
  declare const upsertTool: (db: DatabaseClient) => (params: {
22217
22217
  data: ToolInsert;
22218
22218
  }) => Promise<{
22219
- headers: Record<string, string> | null;
22220
22219
  id: string;
22221
22220
  name: string;
22222
22221
  createdAt: string;
@@ -22224,11 +22223,12 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
22224
22223
  description: string | null;
22225
22224
  tenantId: string;
22226
22225
  projectId: string;
22227
- credentialReferenceId: string | null;
22228
22226
  config: {
22229
22227
  type: "mcp";
22230
22228
  mcp: ToolMcpConfig;
22231
22229
  };
22230
+ credentialReferenceId: string | null;
22231
+ headers: Record<string, string> | null;
22232
22232
  credentialScope: string;
22233
22233
  imageUrl: string | null;
22234
22234
  capabilities: ToolServerCapabilities | null;