@inkeep/agents-core 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/dist/{chunk-TO2HNKGP.js → chunk-E4SFK6AI.js} +143 -157
  3. package/dist/{chunk-VPJ6Z5QZ.js → chunk-ID4CFGVF.js} +202 -131
  4. package/dist/chunk-JTHQYGCX.js +173 -0
  5. package/dist/chunk-TCLX6C3C.js +271 -0
  6. package/dist/client-exports.cjs +622 -272
  7. package/dist/client-exports.d.cts +6 -5
  8. package/dist/client-exports.d.ts +6 -5
  9. package/dist/client-exports.js +5 -4
  10. package/dist/db/schema.cjs +201 -130
  11. package/dist/db/schema.d.cts +2 -2
  12. package/dist/db/schema.d.ts +2 -2
  13. package/dist/db/schema.js +1 -1
  14. package/dist/index.cjs +2734 -1831
  15. package/dist/index.d.cts +1664 -1544
  16. package/dist/index.d.ts +1664 -1544
  17. package/dist/index.js +1953 -1467
  18. package/dist/{schema-BQk_FMBV.d.ts → schema-Bjy5TkFv.d.cts} +473 -172
  19. package/dist/{schema-Ct2NlO81.d.cts → schema-CfWbqju2.d.ts} +473 -172
  20. package/dist/signoz-queries-CifqdbnO.d.cts +269 -0
  21. package/dist/signoz-queries-CifqdbnO.d.ts +269 -0
  22. package/dist/types/index.d.cts +2 -2
  23. package/dist/types/index.d.ts +2 -2
  24. package/dist/{utility-s9c5CVOe.d.cts → utility-Fxoh7s82.d.cts} +585 -384
  25. package/dist/{utility-s9c5CVOe.d.ts → utility-Fxoh7s82.d.ts} +585 -384
  26. package/dist/validation/index.cjs +429 -325
  27. package/dist/validation/index.d.cts +76 -4
  28. package/dist/validation/index.d.ts +76 -4
  29. package/dist/validation/index.js +2 -2
  30. package/drizzle/0005_wide_shriek.sql +127 -0
  31. package/drizzle/0006_damp_lenny_balinger.sql +52 -0
  32. package/drizzle/meta/0005_snapshot.json +2558 -0
  33. package/drizzle/meta/0006_snapshot.json +2751 -0
  34. package/drizzle/meta/_journal.json +14 -0
  35. package/package.json +1 -1
  36. package/dist/chunk-L53XWAYG.js +0 -134
@@ -385,12 +385,12 @@ declare const StopWhenSchema: z.ZodObject<{
385
385
  declare const GraphStopWhenSchema: z.ZodObject<{
386
386
  transferCountIs: z.ZodOptional<z.ZodNumber>;
387
387
  }, z.core.$strip>;
388
- declare const AgentStopWhenSchema: z.ZodObject<{
388
+ declare const SubAgentStopWhenSchema: z.ZodObject<{
389
389
  stepCountIs: z.ZodOptional<z.ZodNumber>;
390
390
  }, z.core.$strip>;
391
391
  type StopWhen = z.infer<typeof StopWhenSchema>;
392
392
  type GraphStopWhen = z.infer<typeof GraphStopWhenSchema>;
393
- type AgentStopWhen = z.infer<typeof AgentStopWhenSchema>;
393
+ type SubAgentStopWhen = z.infer<typeof SubAgentStopWhenSchema>;
394
394
  declare const MIN_ID_LENGTH = 1;
395
395
  declare const MAX_ID_LENGTH = 255;
396
396
  declare const URL_SAFE_ID_PATTERN: RegExp;
@@ -451,10 +451,10 @@ declare const FunctionToolConfigSchema: z.ZodObject<{
451
451
  type FunctionToolConfig = Omit<z.infer<typeof FunctionToolConfigSchema>, 'execute'> & {
452
452
  execute: ((params: any) => Promise<any>) | string;
453
453
  };
454
- declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
454
+ declare const SubAgentSelectSchema: drizzle_zod.BuildSchema<"select", {
455
455
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
456
456
  name: "created_at";
457
- tableName: "agents";
457
+ tableName: "sub_agents";
458
458
  dataType: "string";
459
459
  columnType: "SQLiteText";
460
460
  data: string;
@@ -473,7 +473,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
473
473
  }>;
474
474
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
475
475
  name: "updated_at";
476
- tableName: "agents";
476
+ tableName: "sub_agents";
477
477
  dataType: "string";
478
478
  columnType: "SQLiteText";
479
479
  data: string;
@@ -492,7 +492,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
492
492
  }>;
493
493
  prompt: drizzle_orm_sqlite_core.SQLiteColumn<{
494
494
  name: "prompt";
495
- tableName: "agents";
495
+ tableName: "sub_agents";
496
496
  dataType: "string";
497
497
  columnType: "SQLiteText";
498
498
  data: string;
@@ -511,7 +511,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
511
511
  }>;
512
512
  conversationHistoryConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
513
513
  name: "conversation_history_config";
514
- tableName: "agents";
514
+ tableName: "sub_agents";
515
515
  dataType: "json";
516
516
  columnType: "SQLiteTextJson";
517
517
  data: ConversationHistoryConfig;
@@ -530,7 +530,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
530
530
  }>;
531
531
  models: drizzle_orm_sqlite_core.SQLiteColumn<{
532
532
  name: "models";
533
- tableName: "agents";
533
+ tableName: "sub_agents";
534
534
  dataType: "json";
535
535
  columnType: "SQLiteTextJson";
536
536
  data: {
@@ -575,7 +575,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
575
575
  }>;
576
576
  stopWhen: drizzle_orm_sqlite_core.SQLiteColumn<{
577
577
  name: "stop_when";
578
- tableName: "agents";
578
+ tableName: "sub_agents";
579
579
  dataType: "json";
580
580
  columnType: "SQLiteTextJson";
581
581
  data: {
@@ -598,7 +598,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
598
598
  }>;
599
599
  name: drizzle_orm_sqlite_core.SQLiteColumn<{
600
600
  name: "name";
601
- tableName: "agents";
601
+ tableName: "sub_agents";
602
602
  dataType: "string";
603
603
  columnType: "SQLiteText";
604
604
  data: string;
@@ -617,7 +617,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
617
617
  }>;
618
618
  description: drizzle_orm_sqlite_core.SQLiteColumn<{
619
619
  name: "description";
620
- tableName: "agents";
620
+ tableName: "sub_agents";
621
621
  dataType: "string";
622
622
  columnType: "SQLiteText";
623
623
  data: string;
@@ -636,7 +636,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
636
636
  }>;
637
637
  graphId: drizzle_orm_sqlite_core.SQLiteColumn<{
638
638
  name: "graph_id";
639
- tableName: "agents";
639
+ tableName: "sub_agents";
640
640
  dataType: "string";
641
641
  columnType: "SQLiteText";
642
642
  data: string;
@@ -655,7 +655,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
655
655
  }>;
656
656
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
657
657
  name: "project_id";
658
- tableName: "agents";
658
+ tableName: "sub_agents";
659
659
  dataType: "string";
660
660
  columnType: "SQLiteText";
661
661
  data: string;
@@ -674,7 +674,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
674
674
  }>;
675
675
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
676
676
  name: "tenant_id";
677
- tableName: "agents";
677
+ tableName: "sub_agents";
678
678
  dataType: "string";
679
679
  columnType: "SQLiteText";
680
680
  data: string;
@@ -693,7 +693,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
693
693
  }>;
694
694
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
695
695
  name: "id";
696
- tableName: "agents";
696
+ tableName: "sub_agents";
697
697
  dataType: "string";
698
698
  columnType: "SQLiteText";
699
699
  data: string;
@@ -711,7 +711,7 @@ declare const AgentSelectSchema: drizzle_zod.BuildSchema<"select", {
711
711
  length: number | undefined;
712
712
  }>;
713
713
  }, undefined, undefined>;
714
- declare const AgentInsertSchema: z.ZodObject<{
714
+ declare const SubAgentInsertSchema: z.ZodObject<{
715
715
  createdAt: z.ZodOptional<z.ZodString>;
716
716
  updatedAt: z.ZodOptional<z.ZodString>;
717
717
  prompt: z.ZodString;
@@ -749,7 +749,7 @@ declare const AgentInsertSchema: z.ZodObject<{
749
749
  out: {};
750
750
  in: {};
751
751
  }>;
752
- declare const AgentUpdateSchema: z.ZodObject<{
752
+ declare const SubAgentUpdateSchema: z.ZodObject<{
753
753
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
754
754
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
755
755
  prompt: z.ZodOptional<z.ZodString>;
@@ -787,7 +787,7 @@ declare const AgentUpdateSchema: z.ZodObject<{
787
787
  out: {};
788
788
  in: {};
789
789
  }>;
790
- declare const AgentApiSelectSchema: z.ZodObject<{
790
+ declare const SubAgentApiSelectSchema: z.ZodObject<{
791
791
  id: z.ZodString;
792
792
  name: z.ZodString;
793
793
  description: z.ZodString;
@@ -858,7 +858,7 @@ declare const AgentApiSelectSchema: z.ZodObject<{
858
858
  }>>>;
859
859
  conversationHistoryConfig: z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>;
860
860
  }, z.core.$strip>;
861
- declare const AgentApiInsertSchema: z.ZodObject<{
861
+ declare const SubAgentApiInsertSchema: z.ZodObject<{
862
862
  id: z.ZodString;
863
863
  name: z.ZodString;
864
864
  description: z.ZodString;
@@ -890,7 +890,7 @@ declare const AgentApiInsertSchema: z.ZodObject<{
890
890
  }>>>>;
891
891
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
892
892
  }, z.core.$strip>;
893
- declare const AgentApiUpdateSchema: z.ZodObject<{
893
+ declare const SubAgentApiUpdateSchema: z.ZodObject<{
894
894
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
895
895
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
896
896
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -922,10 +922,10 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
922
922
  }>>>>>>;
923
923
  conversationHistoryConfig: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>>;
924
924
  }, z.core.$strip>;
925
- declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
925
+ declare const SubAgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
926
926
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
927
927
  name: "created_at";
928
- tableName: "agent_relations";
928
+ tableName: "sub_agent_relations";
929
929
  dataType: "string";
930
930
  columnType: "SQLiteText";
931
931
  data: string;
@@ -944,7 +944,7 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
944
944
  }>;
945
945
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
946
946
  name: "updated_at";
947
- tableName: "agent_relations";
947
+ tableName: "sub_agent_relations";
948
948
  dataType: "string";
949
949
  columnType: "SQLiteText";
950
950
  data: string;
@@ -961,9 +961,9 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
961
961
  }, {}, {
962
962
  length: number | undefined;
963
963
  }>;
964
- sourceAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
965
- name: "source_agent_id";
966
- tableName: "agent_relations";
964
+ sourceSubAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
965
+ name: "source_sub_agent_id";
966
+ tableName: "sub_agent_relations";
967
967
  dataType: "string";
968
968
  columnType: "SQLiteText";
969
969
  data: string;
@@ -980,9 +980,9 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
980
980
  }, {}, {
981
981
  length: number | undefined;
982
982
  }>;
983
- targetAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
984
- name: "target_agent_id";
985
- tableName: "agent_relations";
983
+ targetSubAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
984
+ name: "target_sub_agent_id";
985
+ tableName: "sub_agent_relations";
986
986
  dataType: "string";
987
987
  columnType: "SQLiteText";
988
988
  data: string;
@@ -999,9 +999,9 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
999
999
  }, {}, {
1000
1000
  length: number | undefined;
1001
1001
  }>;
1002
- externalAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
1003
- name: "external_agent_id";
1004
- tableName: "agent_relations";
1002
+ externalSubAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
1003
+ name: "external_sub_agent_id";
1004
+ tableName: "sub_agent_relations";
1005
1005
  dataType: "string";
1006
1006
  columnType: "SQLiteText";
1007
1007
  data: string;
@@ -1020,7 +1020,7 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
1020
1020
  }>;
1021
1021
  relationType: drizzle_orm_sqlite_core.SQLiteColumn<{
1022
1022
  name: "relation_type";
1023
- tableName: "agent_relations";
1023
+ tableName: "sub_agent_relations";
1024
1024
  dataType: "string";
1025
1025
  columnType: "SQLiteText";
1026
1026
  data: string;
@@ -1039,7 +1039,7 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
1039
1039
  }>;
1040
1040
  graphId: drizzle_orm_sqlite_core.SQLiteColumn<{
1041
1041
  name: "graph_id";
1042
- tableName: "agent_relations";
1042
+ tableName: "sub_agent_relations";
1043
1043
  dataType: "string";
1044
1044
  columnType: "SQLiteText";
1045
1045
  data: string;
@@ -1058,7 +1058,7 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
1058
1058
  }>;
1059
1059
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
1060
1060
  name: "project_id";
1061
- tableName: "agent_relations";
1061
+ tableName: "sub_agent_relations";
1062
1062
  dataType: "string";
1063
1063
  columnType: "SQLiteText";
1064
1064
  data: string;
@@ -1077,7 +1077,7 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
1077
1077
  }>;
1078
1078
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
1079
1079
  name: "tenant_id";
1080
- tableName: "agent_relations";
1080
+ tableName: "sub_agent_relations";
1081
1081
  dataType: "string";
1082
1082
  columnType: "SQLiteText";
1083
1083
  data: string;
@@ -1096,7 +1096,7 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
1096
1096
  }>;
1097
1097
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
1098
1098
  name: "id";
1099
- tableName: "agent_relations";
1099
+ tableName: "sub_agent_relations";
1100
1100
  dataType: "string";
1101
1101
  columnType: "SQLiteText";
1102
1102
  data: string;
@@ -1114,7 +1114,7 @@ declare const AgentRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
1114
1114
  length: number | undefined;
1115
1115
  }>;
1116
1116
  }, undefined, undefined>;
1117
- declare const AgentRelationInsertSchema: z.ZodObject<{
1117
+ declare const SubAgentRelationInsertSchema: z.ZodObject<{
1118
1118
  createdAt: z.ZodOptional<z.ZodString>;
1119
1119
  updatedAt: z.ZodOptional<z.ZodString>;
1120
1120
  relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1122,14 +1122,14 @@ declare const AgentRelationInsertSchema: z.ZodObject<{
1122
1122
  tenantId: z.ZodString;
1123
1123
  id: z.ZodString;
1124
1124
  graphId: z.ZodString;
1125
- sourceAgentId: z.ZodString;
1126
- targetAgentId: z.ZodOptional<z.ZodString>;
1127
- externalAgentId: z.ZodOptional<z.ZodString>;
1125
+ sourceSubAgentId: z.ZodString;
1126
+ targetSubAgentId: z.ZodOptional<z.ZodString>;
1127
+ externalSubAgentId: z.ZodOptional<z.ZodString>;
1128
1128
  }, {
1129
1129
  out: {};
1130
1130
  in: {};
1131
1131
  }>;
1132
- declare const AgentRelationUpdateSchema: z.ZodObject<{
1132
+ declare const SubAgentRelationUpdateSchema: z.ZodObject<{
1133
1133
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1134
1134
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1135
1135
  relationType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1137,74 +1137,74 @@ declare const AgentRelationUpdateSchema: z.ZodObject<{
1137
1137
  tenantId: z.ZodOptional<z.ZodString>;
1138
1138
  id: z.ZodOptional<z.ZodString>;
1139
1139
  graphId: z.ZodOptional<z.ZodString>;
1140
- sourceAgentId: z.ZodOptional<z.ZodString>;
1141
- targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1142
- externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1140
+ sourceSubAgentId: z.ZodOptional<z.ZodString>;
1141
+ targetSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1142
+ externalSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1143
1143
  }, {
1144
1144
  out: {};
1145
1145
  in: {};
1146
1146
  }>;
1147
- declare const AgentRelationApiSelectSchema: z.ZodObject<{
1147
+ declare const SubAgentRelationApiSelectSchema: z.ZodObject<{
1148
1148
  id: z.ZodString;
1149
1149
  createdAt: z.ZodString;
1150
1150
  updatedAt: z.ZodString;
1151
- sourceAgentId: z.ZodString;
1152
- targetAgentId: z.ZodNullable<z.ZodString>;
1153
- externalAgentId: z.ZodNullable<z.ZodString>;
1151
+ sourceSubAgentId: z.ZodString;
1152
+ targetSubAgentId: z.ZodNullable<z.ZodString>;
1153
+ externalSubAgentId: z.ZodNullable<z.ZodString>;
1154
1154
  relationType: z.ZodNullable<z.ZodString>;
1155
1155
  }, z.core.$strip>;
1156
- declare const AgentRelationApiInsertSchema: z.ZodObject<{
1156
+ declare const SubAgentRelationApiInsertSchema: z.ZodObject<{
1157
1157
  id: z.ZodString;
1158
1158
  createdAt: z.ZodOptional<z.ZodString>;
1159
1159
  updatedAt: z.ZodOptional<z.ZodString>;
1160
- sourceAgentId: z.ZodString;
1161
- targetAgentId: z.ZodOptional<z.ZodString>;
1162
- externalAgentId: z.ZodOptional<z.ZodString>;
1160
+ sourceSubAgentId: z.ZodString;
1161
+ targetSubAgentId: z.ZodOptional<z.ZodString>;
1162
+ externalSubAgentId: z.ZodOptional<z.ZodString>;
1163
1163
  relationType: z.ZodEnum<{
1164
1164
  transfer: "transfer";
1165
1165
  delegate: "delegate";
1166
1166
  }>;
1167
1167
  }, z.core.$strip>;
1168
- declare const AgentRelationApiUpdateSchema: z.ZodObject<{
1168
+ declare const SubAgentRelationApiUpdateSchema: z.ZodObject<{
1169
1169
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1170
1170
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1171
1171
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1172
- sourceAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1173
- targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1174
- externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1172
+ sourceSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1173
+ targetSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1174
+ externalSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
1175
1175
  relationType: z.ZodOptional<z.ZodEnum<{
1176
1176
  transfer: "transfer";
1177
1177
  delegate: "delegate";
1178
1178
  }>>;
1179
1179
  }, z.core.$strip>;
1180
- declare const AgentRelationQuerySchema: z.ZodObject<{
1181
- sourceAgentId: z.ZodOptional<z.ZodString>;
1182
- targetAgentId: z.ZodOptional<z.ZodString>;
1183
- externalAgentId: z.ZodOptional<z.ZodString>;
1180
+ declare const SubAgentRelationQuerySchema: z.ZodObject<{
1181
+ sourceSubAgentId: z.ZodOptional<z.ZodString>;
1182
+ targetSubAgentId: z.ZodOptional<z.ZodString>;
1183
+ externalSubAgentId: z.ZodOptional<z.ZodString>;
1184
1184
  }, z.core.$strip>;
1185
- declare const ExternalAgentRelationInsertSchema: z.ZodObject<{
1185
+ declare const ExternalSubAgentRelationInsertSchema: z.ZodObject<{
1186
1186
  createdAt: z.ZodOptional<z.ZodString>;
1187
1187
  updatedAt: z.ZodOptional<z.ZodString>;
1188
- targetAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1188
+ targetSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1189
1189
  relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
1190
  projectId: z.ZodString;
1191
1191
  tenantId: z.ZodString;
1192
1192
  id: z.ZodString;
1193
1193
  graphId: z.ZodString;
1194
- sourceAgentId: z.ZodString;
1195
- externalAgentId: z.ZodString;
1194
+ sourceSubAgentId: z.ZodString;
1195
+ externalSubAgentId: z.ZodString;
1196
1196
  }, {
1197
1197
  out: {};
1198
1198
  in: {};
1199
1199
  }>;
1200
- declare const ExternalAgentRelationApiInsertSchema: z.ZodObject<{
1200
+ declare const ExternalSubAgentRelationApiInsertSchema: z.ZodObject<{
1201
1201
  id: z.ZodString;
1202
1202
  graphId: z.ZodString;
1203
1203
  createdAt: z.ZodOptional<z.ZodString>;
1204
1204
  updatedAt: z.ZodOptional<z.ZodString>;
1205
- sourceAgentId: z.ZodString;
1206
- targetAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
- externalAgentId: z.ZodString;
1205
+ sourceSubAgentId: z.ZodString;
1206
+ targetSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
+ externalSubAgentId: z.ZodString;
1208
1208
  relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
1209
  }, z.core.$strip>;
1210
1210
  declare const AgentGraphSelectSchema: drizzle_zod.BuildSchema<"select", {
@@ -1284,8 +1284,8 @@ declare const AgentGraphSelectSchema: drizzle_zod.BuildSchema<"select", {
1284
1284
  }, {}, {
1285
1285
  length: number | undefined;
1286
1286
  }>;
1287
- defaultAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
1288
- name: "default_agent_id";
1287
+ defaultSubAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
1288
+ name: "default_sub_agent_id";
1289
1289
  tableName: "agent_graph";
1290
1290
  dataType: "string";
1291
1291
  columnType: "SQLiteText";
@@ -1519,7 +1519,7 @@ declare const AgentGraphInsertSchema: z.ZodObject<{
1519
1519
  updatedAt: z.ZodOptional<z.ZodString>;
1520
1520
  name: z.ZodString;
1521
1521
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1522
- defaultAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1522
+ defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1523
1523
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1524
1524
  models: z.ZodOptional<z.ZodNullable<z.ZodType<{
1525
1525
  base?: {
@@ -1653,7 +1653,7 @@ declare const AgentGraphUpdateSchema: z.ZodObject<{
1653
1653
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1654
1654
  name: z.ZodOptional<z.ZodString>;
1655
1655
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1656
- defaultAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1656
+ defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1657
1657
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1658
1658
  models: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
1659
1659
  base?: {
@@ -1850,7 +1850,7 @@ declare const AgentGraphApiSelectSchema: z.ZodObject<{
1850
1850
  }, {
1851
1851
  transferCountIs?: number | undefined;
1852
1852
  }>>>;
1853
- defaultAgentId: z.ZodNullable<z.ZodString>;
1853
+ defaultSubAgentId: z.ZodNullable<z.ZodString>;
1854
1854
  contextConfigId: z.ZodNullable<z.ZodString>;
1855
1855
  statusUpdates: z.ZodNullable<z.ZodType<{
1856
1856
  enabled?: boolean | undefined;
@@ -1978,7 +1978,7 @@ declare const AgentGraphApiInsertSchema: z.ZodObject<{
1978
1978
  }, {
1979
1979
  transferCountIs?: number | undefined;
1980
1980
  }>>>>;
1981
- defaultAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1981
+ defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1982
1982
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1983
1983
  statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
1984
1984
  enabled?: boolean | undefined;
@@ -2108,7 +2108,7 @@ declare const AgentGraphApiUpdateSchema: z.ZodObject<{
2108
2108
  }, {
2109
2109
  transferCountIs?: number | undefined;
2110
2110
  }>>>>>>;
2111
- defaultAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2111
+ defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2112
2112
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2113
2113
  statusUpdates: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2114
2114
  enabled?: boolean | undefined;
@@ -2265,8 +2265,8 @@ declare const TaskSelectSchema: drizzle_zod.BuildSchema<"select", {
2265
2265
  }, {}, {
2266
2266
  $type: TaskMetadataConfig;
2267
2267
  }>;
2268
- agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
2269
- name: "agent_id";
2268
+ subAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
2269
+ name: "sub_agent_id";
2270
2270
  tableName: "tasks";
2271
2271
  dataType: "string";
2272
2272
  columnType: "SQLiteText";
@@ -2367,7 +2367,7 @@ declare const TaskInsertSchema: z.ZodObject<{
2367
2367
  contextId: z.ZodString;
2368
2368
  status: z.ZodString;
2369
2369
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
2370
- agentId: z.ZodString;
2370
+ subAgentId: z.ZodString;
2371
2371
  graphId: z.ZodString;
2372
2372
  projectId: z.ZodString;
2373
2373
  tenantId: z.ZodString;
@@ -2383,7 +2383,7 @@ declare const TaskUpdateSchema: z.ZodObject<{
2383
2383
  contextId: z.ZodOptional<z.ZodString>;
2384
2384
  status: z.ZodOptional<z.ZodString>;
2385
2385
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>;
2386
- agentId: z.ZodOptional<z.ZodString>;
2386
+ subAgentId: z.ZodOptional<z.ZodString>;
2387
2387
  graphId: z.ZodOptional<z.ZodString>;
2388
2388
  projectId: z.ZodOptional<z.ZodString>;
2389
2389
  tenantId: z.ZodOptional<z.ZodString>;
@@ -2401,7 +2401,7 @@ declare const TaskApiSelectSchema: z.ZodObject<{
2401
2401
  status: z.ZodString;
2402
2402
  metadata: z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>;
2403
2403
  contextId: z.ZodString;
2404
- agentId: z.ZodString;
2404
+ subAgentId: z.ZodString;
2405
2405
  }, z.core.$strip>;
2406
2406
  declare const TaskApiInsertSchema: z.ZodObject<{
2407
2407
  id: z.ZodString;
@@ -2412,7 +2412,7 @@ declare const TaskApiInsertSchema: z.ZodObject<{
2412
2412
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
2413
2413
  conversationId: z.ZodOptional<z.ZodString>;
2414
2414
  contextId: z.ZodString;
2415
- agentId: z.ZodString;
2415
+ subAgentId: z.ZodString;
2416
2416
  }, z.core.$strip>;
2417
2417
  declare const TaskApiUpdateSchema: z.ZodObject<{
2418
2418
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -2423,7 +2423,7 @@ declare const TaskApiUpdateSchema: z.ZodObject<{
2423
2423
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
2424
2424
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2425
2425
  contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2426
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2426
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2427
2427
  }, z.core.$strip>;
2428
2428
  declare const TaskRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
2429
2429
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
@@ -2735,13 +2735,6 @@ declare const ToolSelectSchema: drizzle_zod.BuildSchema<"select", {
2735
2735
  data: {
2736
2736
  type: "mcp";
2737
2737
  mcp: ToolMcpConfig;
2738
- } | {
2739
- type: "function";
2740
- function?: {
2741
- inputSchema: Record<string, unknown>;
2742
- executeCode: string;
2743
- dependencies: Record<string, unknown>;
2744
- };
2745
2738
  };
2746
2739
  driverParam: Buffer<ArrayBufferLike>;
2747
2740
  notNull: true;
@@ -2757,34 +2750,8 @@ declare const ToolSelectSchema: drizzle_zod.BuildSchema<"select", {
2757
2750
  $type: {
2758
2751
  type: "mcp";
2759
2752
  mcp: ToolMcpConfig;
2760
- } | {
2761
- type: "function";
2762
- function?: {
2763
- inputSchema: Record<string, unknown>;
2764
- executeCode: string;
2765
- dependencies: Record<string, unknown>;
2766
- };
2767
2753
  };
2768
2754
  }>;
2769
- functionId: drizzle_orm_sqlite_core.SQLiteColumn<{
2770
- name: "function_id";
2771
- tableName: "tools";
2772
- dataType: "string";
2773
- columnType: "SQLiteText";
2774
- data: string;
2775
- driverParam: string;
2776
- notNull: false;
2777
- hasDefault: false;
2778
- isPrimaryKey: false;
2779
- isAutoincrement: false;
2780
- hasRuntimeDefault: false;
2781
- enumValues: [string, ...string[]];
2782
- baseColumn: never;
2783
- identity: undefined;
2784
- generated: undefined;
2785
- }, {}, {
2786
- length: number | undefined;
2787
- }>;
2788
2755
  credentialReferenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
2789
2756
  name: "credential_reference_id";
2790
2757
  tableName: "tools";
@@ -2951,8 +2918,7 @@ declare const ToolInsertSchema: z.ZodObject<{
2951
2918
  tenantId: z.ZodString;
2952
2919
  id: z.ZodString;
2953
2920
  imageUrl: z.ZodOptional<z.ZodString>;
2954
- functionId: z.ZodOptional<z.ZodString>;
2955
- config: z.ZodDiscriminatedUnion<[z.ZodObject<{
2921
+ config: z.ZodObject<{
2956
2922
  type: z.ZodLiteral<"mcp">;
2957
2923
  mcp: z.ZodObject<{
2958
2924
  server: z.ZodObject<{
@@ -2970,9 +2936,7 @@ declare const ToolInsertSchema: z.ZodObject<{
2970
2936
  }, z.core.$strip>>;
2971
2937
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2972
2938
  }, z.core.$strip>;
2973
- }, z.core.$strip>, z.ZodObject<{
2974
- type: z.ZodLiteral<"function">;
2975
- }, z.core.$strip>], "type">;
2939
+ }, z.core.$strip>;
2976
2940
  }, {
2977
2941
  out: {};
2978
2942
  in: {};
@@ -3035,8 +2999,8 @@ declare const ConversationSelectSchema: drizzle_zod.BuildSchema<"select", {
3035
2999
  }, {}, {
3036
3000
  length: number | undefined;
3037
3001
  }>;
3038
- activeAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3039
- name: "active_agent_id";
3002
+ activeSubAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3003
+ name: "active_sub_agent_id";
3040
3004
  tableName: "conversations";
3041
3005
  dataType: "string";
3042
3006
  columnType: "SQLiteText";
@@ -3173,7 +3137,7 @@ declare const ConversationInsertSchema: z.ZodObject<{
3173
3137
  createdAt: z.ZodOptional<z.ZodString>;
3174
3138
  updatedAt: z.ZodOptional<z.ZodString>;
3175
3139
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3176
- activeAgentId: z.ZodString;
3140
+ activeSubAgentId: z.ZodString;
3177
3141
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3178
3142
  lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3179
3143
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
@@ -3189,7 +3153,7 @@ declare const ConversationUpdateSchema: z.ZodObject<{
3189
3153
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3190
3154
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3191
3155
  userId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3192
- activeAgentId: z.ZodOptional<z.ZodString>;
3156
+ activeSubAgentId: z.ZodOptional<z.ZodString>;
3193
3157
  title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3194
3158
  lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3195
3159
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>;
@@ -3208,7 +3172,7 @@ declare const ConversationApiSelectSchema: z.ZodObject<{
3208
3172
  title: z.ZodNullable<z.ZodString>;
3209
3173
  metadata: z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>;
3210
3174
  userId: z.ZodNullable<z.ZodString>;
3211
- activeAgentId: z.ZodString;
3175
+ activeSubAgentId: z.ZodString;
3212
3176
  lastContextResolution: z.ZodNullable<z.ZodString>;
3213
3177
  }, z.core.$strip>;
3214
3178
  declare const ConversationApiInsertSchema: z.ZodObject<{
@@ -3219,7 +3183,7 @@ declare const ConversationApiInsertSchema: z.ZodObject<{
3219
3183
  contextConfigId: z.ZodOptional<z.ZodString>;
3220
3184
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
3221
3185
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3222
- activeAgentId: z.ZodString;
3186
+ activeSubAgentId: z.ZodString;
3223
3187
  lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3224
3188
  }, z.core.$strip>;
3225
3189
  declare const ConversationApiUpdateSchema: z.ZodObject<{
@@ -3230,7 +3194,7 @@ declare const ConversationApiUpdateSchema: z.ZodObject<{
3230
3194
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3231
3195
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
3232
3196
  userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3233
- activeAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3197
+ activeSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3234
3198
  lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3235
3199
  }, z.core.$strip>;
3236
3200
  declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
@@ -3310,8 +3274,8 @@ declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
3310
3274
  }, {}, {
3311
3275
  length: number | undefined;
3312
3276
  }>;
3313
- fromAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3314
- name: "from_agent_id";
3277
+ fromSubAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3278
+ name: "from_sub_agent_id";
3315
3279
  tableName: "messages";
3316
3280
  dataType: "string";
3317
3281
  columnType: "SQLiteText";
@@ -3329,8 +3293,8 @@ declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
3329
3293
  }, {}, {
3330
3294
  length: number | undefined;
3331
3295
  }>;
3332
- toAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3333
- name: "to_agent_id";
3296
+ toSubAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3297
+ name: "to_sub_agent_id";
3334
3298
  tableName: "messages";
3335
3299
  dataType: "string";
3336
3300
  columnType: "SQLiteText";
@@ -3349,7 +3313,7 @@ declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
3349
3313
  length: number | undefined;
3350
3314
  }>;
3351
3315
  fromExternalAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3352
- name: "from_external_agent_id";
3316
+ name: "from_external_sub_agent_id";
3353
3317
  tableName: "messages";
3354
3318
  dataType: "string";
3355
3319
  columnType: "SQLiteText";
@@ -3368,7 +3332,7 @@ declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
3368
3332
  length: number | undefined;
3369
3333
  }>;
3370
3334
  toExternalAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3371
- name: "to_external_agent_id";
3335
+ name: "to_external_sub_agent_id";
3372
3336
  tableName: "messages";
3373
3337
  dataType: "string";
3374
3338
  columnType: "SQLiteText";
@@ -3443,25 +3407,6 @@ declare const MessageSelectSchema: drizzle_zod.BuildSchema<"select", {
3443
3407
  }, {}, {
3444
3408
  length: number | undefined;
3445
3409
  }>;
3446
- agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3447
- name: "agent_id";
3448
- tableName: "messages";
3449
- dataType: "string";
3450
- columnType: "SQLiteText";
3451
- data: string;
3452
- driverParam: string;
3453
- notNull: false;
3454
- hasDefault: false;
3455
- isPrimaryKey: false;
3456
- isAutoincrement: false;
3457
- hasRuntimeDefault: false;
3458
- enumValues: [string, ...string[]];
3459
- baseColumn: never;
3460
- identity: undefined;
3461
- generated: undefined;
3462
- }, {}, {
3463
- length: number | undefined;
3464
- }>;
3465
3410
  taskId: drizzle_orm_sqlite_core.SQLiteColumn<{
3466
3411
  name: "task_id";
3467
3412
  tableName: "messages";
@@ -3619,14 +3564,13 @@ declare const MessageInsertSchema: z.ZodObject<{
3619
3564
  createdAt: z.ZodOptional<z.ZodString>;
3620
3565
  updatedAt: z.ZodOptional<z.ZodString>;
3621
3566
  role: z.ZodString;
3622
- fromAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3623
- toAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3567
+ fromSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3568
+ toSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3624
3569
  fromExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3625
3570
  toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3626
3571
  content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3627
3572
  visibility: z.ZodOptional<z.ZodString>;
3628
3573
  messageType: z.ZodOptional<z.ZodString>;
3629
- agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3630
3574
  parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3631
3575
  a2aTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3632
3576
  a2aSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3644,14 +3588,13 @@ declare const MessageUpdateSchema: z.ZodObject<{
3644
3588
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3645
3589
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3646
3590
  role: z.ZodOptional<z.ZodString>;
3647
- fromAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3648
- toAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3591
+ fromSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3592
+ toSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3649
3593
  fromExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3650
3594
  toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3651
3595
  content: z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>;
3652
3596
  visibility: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3653
3597
  messageType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3654
- agentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3655
3598
  parentMessageId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3656
3599
  a2aTaskId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3657
3600
  a2aSessionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -3672,10 +3615,9 @@ declare const MessageApiSelectSchema: z.ZodObject<{
3672
3615
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
3673
3616
  content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3674
3617
  conversationId: z.ZodString;
3675
- agentId: z.ZodNullable<z.ZodString>;
3676
3618
  role: z.ZodString;
3677
- fromAgentId: z.ZodNullable<z.ZodString>;
3678
- toAgentId: z.ZodNullable<z.ZodString>;
3619
+ fromSubAgentId: z.ZodNullable<z.ZodString>;
3620
+ toSubAgentId: z.ZodNullable<z.ZodString>;
3679
3621
  fromExternalAgentId: z.ZodNullable<z.ZodString>;
3680
3622
  toExternalAgentId: z.ZodNullable<z.ZodString>;
3681
3623
  visibility: z.ZodString;
@@ -3692,10 +3634,9 @@ declare const MessageApiInsertSchema: z.ZodObject<{
3692
3634
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
3693
3635
  content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
3694
3636
  conversationId: z.ZodString;
3695
- agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3696
3637
  role: z.ZodString;
3697
- fromAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3698
- toAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3638
+ fromSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3639
+ toSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3699
3640
  fromExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3700
3641
  toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3701
3642
  visibility: z.ZodOptional<z.ZodString>;
@@ -3712,10 +3653,9 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
3712
3653
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
3713
3654
  content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
3714
3655
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3715
- agentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3716
3656
  role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3717
- fromAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3718
- toAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3657
+ fromSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3658
+ toSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3719
3659
  fromExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3720
3660
  toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
3721
3661
  visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -4491,10 +4431,10 @@ declare const DataComponentApiUpdateSchema: z.ZodObject<{
4491
4431
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4492
4432
  props: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
4493
4433
  }, z.core.$strip>;
4494
- declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4434
+ declare const SubAgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4495
4435
  dataComponentId: drizzle_orm_sqlite_core.SQLiteColumn<{
4496
4436
  name: "data_component_id";
4497
- tableName: "agent_data_components";
4437
+ tableName: "sub_agent_data_components";
4498
4438
  dataType: "string";
4499
4439
  columnType: "SQLiteText";
4500
4440
  data: string;
@@ -4513,7 +4453,7 @@ declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select",
4513
4453
  }>;
4514
4454
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
4515
4455
  name: "created_at";
4516
- tableName: "agent_data_components";
4456
+ tableName: "sub_agent_data_components";
4517
4457
  dataType: "string";
4518
4458
  columnType: "SQLiteText";
4519
4459
  data: string;
@@ -4530,9 +4470,9 @@ declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select",
4530
4470
  }, {}, {
4531
4471
  length: number | undefined;
4532
4472
  }>;
4533
- agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
4534
- name: "agent_id";
4535
- tableName: "agent_data_components";
4473
+ subAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
4474
+ name: "sub_agent_id";
4475
+ tableName: "sub_agent_data_components";
4536
4476
  dataType: "string";
4537
4477
  columnType: "SQLiteText";
4538
4478
  data: string;
@@ -4551,7 +4491,7 @@ declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select",
4551
4491
  }>;
4552
4492
  graphId: drizzle_orm_sqlite_core.SQLiteColumn<{
4553
4493
  name: "graph_id";
4554
- tableName: "agent_data_components";
4494
+ tableName: "sub_agent_data_components";
4555
4495
  dataType: "string";
4556
4496
  columnType: "SQLiteText";
4557
4497
  data: string;
@@ -4570,7 +4510,7 @@ declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select",
4570
4510
  }>;
4571
4511
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
4572
4512
  name: "project_id";
4573
- tableName: "agent_data_components";
4513
+ tableName: "sub_agent_data_components";
4574
4514
  dataType: "string";
4575
4515
  columnType: "SQLiteText";
4576
4516
  data: string;
@@ -4589,7 +4529,7 @@ declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select",
4589
4529
  }>;
4590
4530
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
4591
4531
  name: "tenant_id";
4592
- tableName: "agent_data_components";
4532
+ tableName: "sub_agent_data_components";
4593
4533
  dataType: "string";
4594
4534
  columnType: "SQLiteText";
4595
4535
  data: string;
@@ -4608,7 +4548,7 @@ declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select",
4608
4548
  }>;
4609
4549
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
4610
4550
  name: "id";
4611
- tableName: "agent_data_components";
4551
+ tableName: "sub_agent_data_components";
4612
4552
  dataType: "string";
4613
4553
  columnType: "SQLiteText";
4614
4554
  data: string;
@@ -4626,10 +4566,10 @@ declare const AgentDataComponentSelectSchema: drizzle_zod.BuildSchema<"select",
4626
4566
  length: number | undefined;
4627
4567
  }>;
4628
4568
  }, undefined, undefined>;
4629
- declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert", {
4569
+ declare const SubAgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert", {
4630
4570
  dataComponentId: drizzle_orm_sqlite_core.SQLiteColumn<{
4631
4571
  name: "data_component_id";
4632
- tableName: "agent_data_components";
4572
+ tableName: "sub_agent_data_components";
4633
4573
  dataType: "string";
4634
4574
  columnType: "SQLiteText";
4635
4575
  data: string;
@@ -4648,7 +4588,7 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4648
4588
  }>;
4649
4589
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
4650
4590
  name: "created_at";
4651
- tableName: "agent_data_components";
4591
+ tableName: "sub_agent_data_components";
4652
4592
  dataType: "string";
4653
4593
  columnType: "SQLiteText";
4654
4594
  data: string;
@@ -4665,9 +4605,9 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4665
4605
  }, {}, {
4666
4606
  length: number | undefined;
4667
4607
  }>;
4668
- agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
4669
- name: "agent_id";
4670
- tableName: "agent_data_components";
4608
+ subAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
4609
+ name: "sub_agent_id";
4610
+ tableName: "sub_agent_data_components";
4671
4611
  dataType: "string";
4672
4612
  columnType: "SQLiteText";
4673
4613
  data: string;
@@ -4686,7 +4626,7 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4686
4626
  }>;
4687
4627
  graphId: drizzle_orm_sqlite_core.SQLiteColumn<{
4688
4628
  name: "graph_id";
4689
- tableName: "agent_data_components";
4629
+ tableName: "sub_agent_data_components";
4690
4630
  dataType: "string";
4691
4631
  columnType: "SQLiteText";
4692
4632
  data: string;
@@ -4705,7 +4645,7 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4705
4645
  }>;
4706
4646
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
4707
4647
  name: "project_id";
4708
- tableName: "agent_data_components";
4648
+ tableName: "sub_agent_data_components";
4709
4649
  dataType: "string";
4710
4650
  columnType: "SQLiteText";
4711
4651
  data: string;
@@ -4724,7 +4664,7 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4724
4664
  }>;
4725
4665
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
4726
4666
  name: "tenant_id";
4727
- tableName: "agent_data_components";
4667
+ tableName: "sub_agent_data_components";
4728
4668
  dataType: "string";
4729
4669
  columnType: "SQLiteText";
4730
4670
  data: string;
@@ -4743,7 +4683,7 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4743
4683
  }>;
4744
4684
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
4745
4685
  name: "id";
4746
- tableName: "agent_data_components";
4686
+ tableName: "sub_agent_data_components";
4747
4687
  dataType: "string";
4748
4688
  columnType: "SQLiteText";
4749
4689
  data: string;
@@ -4761,10 +4701,10 @@ declare const AgentDataComponentInsertSchema: drizzle_zod.BuildSchema<"insert",
4761
4701
  length: number | undefined;
4762
4702
  }>;
4763
4703
  }, undefined, undefined>;
4764
- declare const AgentDataComponentUpdateSchema: z.ZodObject<{
4704
+ declare const SubAgentDataComponentUpdateSchema: z.ZodObject<{
4765
4705
  dataComponentId: z.ZodOptional<z.ZodString>;
4766
4706
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4767
- agentId: z.ZodOptional<z.ZodString>;
4707
+ subAgentId: z.ZodOptional<z.ZodString>;
4768
4708
  graphId: z.ZodOptional<z.ZodString>;
4769
4709
  projectId: z.ZodOptional<z.ZodString>;
4770
4710
  tenantId: z.ZodOptional<z.ZodString>;
@@ -4773,24 +4713,24 @@ declare const AgentDataComponentUpdateSchema: z.ZodObject<{
4773
4713
  out: {};
4774
4714
  in: {};
4775
4715
  }>;
4776
- declare const AgentDataComponentApiSelectSchema: z.ZodObject<{
4716
+ declare const SubAgentDataComponentApiSelectSchema: z.ZodObject<{
4777
4717
  id: z.ZodString;
4778
4718
  createdAt: z.ZodString;
4779
- agentId: z.ZodString;
4719
+ subAgentId: z.ZodString;
4780
4720
  dataComponentId: z.ZodString;
4781
4721
  }, z.core.$strip>;
4782
- declare const AgentDataComponentApiInsertSchema: z.ZodObject<{
4722
+ declare const SubAgentDataComponentApiInsertSchema: z.ZodObject<{
4783
4723
  graphId: z.ZodString;
4784
- agentId: z.ZodString;
4724
+ subAgentId: z.ZodString;
4785
4725
  dataComponentId: z.ZodString;
4786
4726
  }, {
4787
4727
  out: {};
4788
4728
  in: {};
4789
4729
  }>;
4790
- declare const AgentDataComponentApiUpdateSchema: z.ZodObject<{
4730
+ declare const SubAgentDataComponentApiUpdateSchema: z.ZodObject<{
4791
4731
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4792
4732
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4793
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4733
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4794
4734
  dataComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4795
4735
  }, z.core.$strip>;
4796
4736
  declare const ArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
@@ -4998,10 +4938,10 @@ declare const ArtifactComponentApiUpdateSchema: z.ZodObject<{
4998
4938
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4999
4939
  props: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
5000
4940
  }, z.core.$strip>;
5001
- declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
4941
+ declare const SubAgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"select", {
5002
4942
  artifactComponentId: drizzle_orm_sqlite_core.SQLiteColumn<{
5003
4943
  name: "artifact_component_id";
5004
- tableName: "agent_artifact_components";
4944
+ tableName: "sub_agent_artifact_components";
5005
4945
  dataType: "string";
5006
4946
  columnType: "SQLiteText";
5007
4947
  data: string;
@@ -5020,7 +4960,7 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5020
4960
  }>;
5021
4961
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
5022
4962
  name: "created_at";
5023
- tableName: "agent_artifact_components";
4963
+ tableName: "sub_agent_artifact_components";
5024
4964
  dataType: "string";
5025
4965
  columnType: "SQLiteText";
5026
4966
  data: string;
@@ -5037,9 +4977,9 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5037
4977
  }, {}, {
5038
4978
  length: number | undefined;
5039
4979
  }>;
5040
- agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
5041
- name: "agent_id";
5042
- tableName: "agent_artifact_components";
4980
+ subAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
4981
+ name: "sub_agent_id";
4982
+ tableName: "sub_agent_artifact_components";
5043
4983
  dataType: "string";
5044
4984
  columnType: "SQLiteText";
5045
4985
  data: string;
@@ -5058,7 +4998,7 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5058
4998
  }>;
5059
4999
  graphId: drizzle_orm_sqlite_core.SQLiteColumn<{
5060
5000
  name: "graph_id";
5061
- tableName: "agent_artifact_components";
5001
+ tableName: "sub_agent_artifact_components";
5062
5002
  dataType: "string";
5063
5003
  columnType: "SQLiteText";
5064
5004
  data: string;
@@ -5077,7 +5017,7 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5077
5017
  }>;
5078
5018
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
5079
5019
  name: "project_id";
5080
- tableName: "agent_artifact_components";
5020
+ tableName: "sub_agent_artifact_components";
5081
5021
  dataType: "string";
5082
5022
  columnType: "SQLiteText";
5083
5023
  data: string;
@@ -5096,7 +5036,7 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5096
5036
  }>;
5097
5037
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
5098
5038
  name: "tenant_id";
5099
- tableName: "agent_artifact_components";
5039
+ tableName: "sub_agent_artifact_components";
5100
5040
  dataType: "string";
5101
5041
  columnType: "SQLiteText";
5102
5042
  data: string;
@@ -5115,7 +5055,7 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5115
5055
  }>;
5116
5056
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
5117
5057
  name: "id";
5118
- tableName: "agent_artifact_components";
5058
+ tableName: "sub_agent_artifact_components";
5119
5059
  dataType: "string";
5120
5060
  columnType: "SQLiteText";
5121
5061
  data: string;
@@ -5133,48 +5073,48 @@ declare const AgentArtifactComponentSelectSchema: drizzle_zod.BuildSchema<"selec
5133
5073
  length: number | undefined;
5134
5074
  }>;
5135
5075
  }, undefined, undefined>;
5136
- declare const AgentArtifactComponentInsertSchema: z.ZodObject<{
5076
+ declare const SubAgentArtifactComponentInsertSchema: z.ZodObject<{
5137
5077
  createdAt: z.ZodOptional<z.ZodString>;
5138
5078
  graphId: z.ZodString;
5139
5079
  projectId: z.ZodString;
5140
5080
  tenantId: z.ZodString;
5141
5081
  id: z.ZodString;
5142
- agentId: z.ZodString;
5082
+ subAgentId: z.ZodString;
5143
5083
  artifactComponentId: z.ZodString;
5144
5084
  }, {
5145
5085
  out: {};
5146
5086
  in: {};
5147
5087
  }>;
5148
- declare const AgentArtifactComponentUpdateSchema: z.ZodObject<{
5088
+ declare const SubAgentArtifactComponentUpdateSchema: z.ZodObject<{
5149
5089
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5150
5090
  graphId: z.ZodOptional<z.ZodString>;
5151
5091
  projectId: z.ZodOptional<z.ZodString>;
5152
5092
  tenantId: z.ZodOptional<z.ZodString>;
5153
5093
  id: z.ZodOptional<z.ZodString>;
5154
- agentId: z.ZodOptional<z.ZodString>;
5094
+ subAgentId: z.ZodOptional<z.ZodString>;
5155
5095
  artifactComponentId: z.ZodOptional<z.ZodString>;
5156
5096
  }, {
5157
5097
  out: {};
5158
5098
  in: {};
5159
5099
  }>;
5160
- declare const AgentArtifactComponentApiSelectSchema: z.ZodObject<{
5100
+ declare const SubAgentArtifactComponentApiSelectSchema: z.ZodObject<{
5161
5101
  id: z.ZodString;
5162
5102
  createdAt: z.ZodString;
5163
- agentId: z.ZodString;
5103
+ subAgentId: z.ZodString;
5164
5104
  artifactComponentId: z.ZodString;
5165
5105
  }, z.core.$strip>;
5166
- declare const AgentArtifactComponentApiInsertSchema: z.ZodObject<{
5106
+ declare const SubAgentArtifactComponentApiInsertSchema: z.ZodObject<{
5167
5107
  graphId: z.ZodString;
5168
- agentId: z.ZodString;
5108
+ subAgentId: z.ZodString;
5169
5109
  artifactComponentId: z.ZodString;
5170
5110
  }, {
5171
5111
  out: {};
5172
5112
  in: {};
5173
5113
  }>;
5174
- declare const AgentArtifactComponentApiUpdateSchema: z.ZodObject<{
5114
+ declare const SubAgentArtifactComponentApiUpdateSchema: z.ZodObject<{
5175
5115
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5176
5116
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5177
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5117
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5178
5118
  artifactComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5179
5119
  }, z.core.$strip>;
5180
5120
  declare const ExternalAgentSelectSchema: z.ZodObject<{
@@ -5779,13 +5719,6 @@ declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
5779
5719
  data: {
5780
5720
  type: "mcp";
5781
5721
  mcp: ToolMcpConfig;
5782
- } | {
5783
- type: "function";
5784
- function?: {
5785
- inputSchema: Record<string, unknown>;
5786
- executeCode: string;
5787
- dependencies: Record<string, unknown>;
5788
- };
5789
5722
  };
5790
5723
  driverParam: Buffer<ArrayBufferLike>;
5791
5724
  notNull: true;
@@ -5801,34 +5734,8 @@ declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
5801
5734
  $type: {
5802
5735
  type: "mcp";
5803
5736
  mcp: ToolMcpConfig;
5804
- } | {
5805
- type: "function";
5806
- function?: {
5807
- inputSchema: Record<string, unknown>;
5808
- executeCode: string;
5809
- dependencies: Record<string, unknown>;
5810
- };
5811
5737
  };
5812
5738
  }>;
5813
- functionId: drizzle_orm_sqlite_core.SQLiteColumn<{
5814
- name: "function_id";
5815
- tableName: "tools";
5816
- dataType: "string";
5817
- columnType: "SQLiteText";
5818
- data: string;
5819
- driverParam: string;
5820
- notNull: false;
5821
- hasDefault: false;
5822
- isPrimaryKey: false;
5823
- isAutoincrement: false;
5824
- hasRuntimeDefault: false;
5825
- enumValues: [string, ...string[]];
5826
- baseColumn: never;
5827
- identity: undefined;
5828
- generated: undefined;
5829
- }, {}, {
5830
- length: number | undefined;
5831
- }>;
5832
5739
  credentialReferenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
5833
5740
  name: "credential_reference_id";
5834
5741
  tableName: "tools";
@@ -6017,8 +5924,7 @@ declare const McpToolSchema: z.ZodObject<{
6017
5924
  projectId: z.ZodString;
6018
5925
  tenantId: z.ZodString;
6019
5926
  id: z.ZodString;
6020
- functionId: z.ZodOptional<z.ZodString>;
6021
- config: z.ZodDiscriminatedUnion<[z.ZodObject<{
5927
+ config: z.ZodObject<{
6022
5928
  type: z.ZodLiteral<"mcp">;
6023
5929
  mcp: z.ZodObject<{
6024
5930
  server: z.ZodObject<{
@@ -6036,9 +5942,7 @@ declare const McpToolSchema: z.ZodObject<{
6036
5942
  }, z.core.$strip>>;
6037
5943
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
6038
5944
  }, z.core.$strip>;
6039
- }, z.core.$strip>, z.ZodObject<{
6040
- type: z.ZodLiteral<"function">;
6041
- }, z.core.$strip>], "type">;
5945
+ }, z.core.$strip>;
6042
5946
  imageUrl: z.ZodOptional<z.ZodString>;
6043
5947
  availableTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
6044
5948
  name: z.ZodString;
@@ -6063,7 +5967,6 @@ declare const MCPToolConfigSchema: z.ZodObject<{
6063
5967
  name: z.ZodString;
6064
5968
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
6065
5969
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
6066
- functionId: z.ZodOptional<z.ZodString>;
6067
5970
  imageUrl: z.ZodOptional<z.ZodString>;
6068
5971
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6069
5972
  availableTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -6119,8 +6022,7 @@ declare const ToolUpdateSchema: z.ZodObject<{
6119
6022
  tenantId: z.ZodOptional<z.ZodString>;
6120
6023
  id: z.ZodOptional<z.ZodString>;
6121
6024
  imageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6122
- functionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6123
- config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6025
+ config: z.ZodOptional<z.ZodObject<{
6124
6026
  type: z.ZodLiteral<"mcp">;
6125
6027
  mcp: z.ZodObject<{
6126
6028
  server: z.ZodObject<{
@@ -6138,9 +6040,7 @@ declare const ToolUpdateSchema: z.ZodObject<{
6138
6040
  }, z.core.$strip>>;
6139
6041
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
6140
6042
  }, z.core.$strip>;
6141
- }, z.core.$strip>, z.ZodObject<{
6142
- type: z.ZodLiteral<"function">;
6143
- }, z.core.$strip>], "type">>;
6043
+ }, z.core.$strip>>;
6144
6044
  }, {
6145
6045
  out: {};
6146
6046
  in: {};
@@ -6152,50 +6052,21 @@ declare const ToolApiSelectSchema: z.ZodObject<{
6152
6052
  config: z.ZodType<{
6153
6053
  type: "mcp";
6154
6054
  mcp: ToolMcpConfig;
6155
- } | {
6156
- type: "function";
6157
- function?: {
6158
- inputSchema: Record<string, unknown>;
6159
- executeCode: string;
6160
- dependencies: Record<string, unknown>;
6161
- };
6162
6055
  }, {
6163
6056
  type: "mcp";
6164
6057
  mcp: ToolMcpConfig;
6165
- } | {
6166
- type: "function";
6167
- function?: {
6168
- inputSchema: Record<string, unknown>;
6169
- executeCode: string;
6170
- dependencies: Record<string, unknown>;
6171
- };
6172
6058
  }, z.core.$ZodTypeInternals<{
6173
6059
  type: "mcp";
6174
6060
  mcp: ToolMcpConfig;
6175
- } | {
6176
- type: "function";
6177
- function?: {
6178
- inputSchema: Record<string, unknown>;
6179
- executeCode: string;
6180
- dependencies: Record<string, unknown>;
6181
- };
6182
6061
  }, {
6183
6062
  type: "mcp";
6184
6063
  mcp: ToolMcpConfig;
6185
- } | {
6186
- type: "function";
6187
- function?: {
6188
- inputSchema: Record<string, unknown>;
6189
- executeCode: string;
6190
- dependencies: Record<string, unknown>;
6191
- };
6192
6064
  }>>;
6193
6065
  credentialReferenceId: z.ZodNullable<z.ZodString>;
6194
6066
  createdAt: z.ZodString;
6195
6067
  updatedAt: z.ZodString;
6196
6068
  headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
6197
6069
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
6198
- functionId: z.ZodNullable<z.ZodString>;
6199
6070
  imageUrl: z.ZodNullable<z.ZodString>;
6200
6071
  lastError: z.ZodNullable<z.ZodString>;
6201
6072
  }, z.core.$strip>;
@@ -6203,7 +6074,7 @@ declare const ToolApiInsertSchema: z.ZodObject<{
6203
6074
  id: z.ZodString;
6204
6075
  name: z.ZodString;
6205
6076
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6206
- config: z.ZodDiscriminatedUnion<[z.ZodObject<{
6077
+ config: z.ZodObject<{
6207
6078
  type: z.ZodLiteral<"mcp">;
6208
6079
  mcp: z.ZodObject<{
6209
6080
  server: z.ZodObject<{
@@ -6221,15 +6092,12 @@ declare const ToolApiInsertSchema: z.ZodObject<{
6221
6092
  }, z.core.$strip>>;
6222
6093
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
6223
6094
  }, z.core.$strip>;
6224
- }, z.core.$strip>, z.ZodObject<{
6225
- type: z.ZodLiteral<"function">;
6226
- }, z.core.$strip>], "type">;
6095
+ }, z.core.$strip>;
6227
6096
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6228
6097
  createdAt: z.ZodOptional<z.ZodString>;
6229
6098
  updatedAt: z.ZodOptional<z.ZodString>;
6230
6099
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
6231
6100
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
6232
- functionId: z.ZodOptional<z.ZodString>;
6233
6101
  imageUrl: z.ZodOptional<z.ZodString>;
6234
6102
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6235
6103
  }, z.core.$strip>;
@@ -6237,7 +6105,7 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
6237
6105
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6238
6106
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6239
6107
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6240
- config: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6108
+ config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
6241
6109
  type: z.ZodLiteral<"mcp">;
6242
6110
  mcp: z.ZodObject<{
6243
6111
  server: z.ZodObject<{
@@ -6255,18 +6123,242 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
6255
6123
  }, z.core.$strip>>;
6256
6124
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
6257
6125
  }, z.core.$strip>;
6258
- }, z.core.$strip>, z.ZodObject<{
6259
- type: z.ZodLiteral<"function">;
6260
- }, z.core.$strip>], "type">>>;
6126
+ }, z.core.$strip>>>;
6261
6127
  credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6262
6128
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6263
6129
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6264
6130
  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>>>>>>>;
6265
6131
  capabilities: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
6266
- functionId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6267
6132
  imageUrl: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6268
6133
  lastError: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6269
6134
  }, z.core.$strip>;
6135
+ declare const FunctionToolSelectSchema: drizzle_zod.BuildSchema<"select", {
6136
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6137
+ name: "created_at";
6138
+ tableName: "function_tools";
6139
+ dataType: "string";
6140
+ columnType: "SQLiteText";
6141
+ data: string;
6142
+ driverParam: string;
6143
+ notNull: true;
6144
+ hasDefault: true;
6145
+ isPrimaryKey: false;
6146
+ isAutoincrement: false;
6147
+ hasRuntimeDefault: false;
6148
+ enumValues: [string, ...string[]];
6149
+ baseColumn: never;
6150
+ identity: undefined;
6151
+ generated: undefined;
6152
+ }, {}, {
6153
+ length: number | undefined;
6154
+ }>;
6155
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6156
+ name: "updated_at";
6157
+ tableName: "function_tools";
6158
+ dataType: "string";
6159
+ columnType: "SQLiteText";
6160
+ data: string;
6161
+ driverParam: string;
6162
+ notNull: true;
6163
+ hasDefault: true;
6164
+ isPrimaryKey: false;
6165
+ isAutoincrement: false;
6166
+ hasRuntimeDefault: false;
6167
+ enumValues: [string, ...string[]];
6168
+ baseColumn: never;
6169
+ identity: undefined;
6170
+ generated: undefined;
6171
+ }, {}, {
6172
+ length: number | undefined;
6173
+ }>;
6174
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
6175
+ name: "name";
6176
+ tableName: "function_tools";
6177
+ dataType: "string";
6178
+ columnType: "SQLiteText";
6179
+ data: string;
6180
+ driverParam: string;
6181
+ notNull: true;
6182
+ hasDefault: false;
6183
+ isPrimaryKey: false;
6184
+ isAutoincrement: false;
6185
+ hasRuntimeDefault: false;
6186
+ enumValues: [string, ...string[]];
6187
+ baseColumn: never;
6188
+ identity: undefined;
6189
+ generated: undefined;
6190
+ }, {}, {
6191
+ length: number | undefined;
6192
+ }>;
6193
+ description: drizzle_orm_sqlite_core.SQLiteColumn<{
6194
+ name: "description";
6195
+ tableName: "function_tools";
6196
+ dataType: "string";
6197
+ columnType: "SQLiteText";
6198
+ data: string;
6199
+ driverParam: string;
6200
+ notNull: false;
6201
+ hasDefault: false;
6202
+ isPrimaryKey: false;
6203
+ isAutoincrement: false;
6204
+ hasRuntimeDefault: false;
6205
+ enumValues: [string, ...string[]];
6206
+ baseColumn: never;
6207
+ identity: undefined;
6208
+ generated: undefined;
6209
+ }, {}, {
6210
+ length: number | undefined;
6211
+ }>;
6212
+ functionId: drizzle_orm_sqlite_core.SQLiteColumn<{
6213
+ name: "function_id";
6214
+ tableName: "function_tools";
6215
+ dataType: "string";
6216
+ columnType: "SQLiteText";
6217
+ data: string;
6218
+ driverParam: string;
6219
+ notNull: true;
6220
+ hasDefault: false;
6221
+ isPrimaryKey: false;
6222
+ isAutoincrement: false;
6223
+ hasRuntimeDefault: false;
6224
+ enumValues: [string, ...string[]];
6225
+ baseColumn: never;
6226
+ identity: undefined;
6227
+ generated: undefined;
6228
+ }, {}, {
6229
+ length: number | undefined;
6230
+ }>;
6231
+ graphId: drizzle_orm_sqlite_core.SQLiteColumn<{
6232
+ name: "graph_id";
6233
+ tableName: "function_tools";
6234
+ dataType: "string";
6235
+ columnType: "SQLiteText";
6236
+ data: string;
6237
+ driverParam: string;
6238
+ notNull: true;
6239
+ hasDefault: false;
6240
+ isPrimaryKey: false;
6241
+ isAutoincrement: false;
6242
+ hasRuntimeDefault: false;
6243
+ enumValues: [string, ...string[]];
6244
+ baseColumn: never;
6245
+ identity: undefined;
6246
+ generated: undefined;
6247
+ }, {}, {
6248
+ length: number | undefined;
6249
+ }>;
6250
+ projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
6251
+ name: "project_id";
6252
+ tableName: "function_tools";
6253
+ dataType: "string";
6254
+ columnType: "SQLiteText";
6255
+ data: string;
6256
+ driverParam: string;
6257
+ notNull: true;
6258
+ hasDefault: false;
6259
+ isPrimaryKey: false;
6260
+ isAutoincrement: false;
6261
+ hasRuntimeDefault: false;
6262
+ enumValues: [string, ...string[]];
6263
+ baseColumn: never;
6264
+ identity: undefined;
6265
+ generated: undefined;
6266
+ }, {}, {
6267
+ length: number | undefined;
6268
+ }>;
6269
+ tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
6270
+ name: "tenant_id";
6271
+ tableName: "function_tools";
6272
+ dataType: "string";
6273
+ columnType: "SQLiteText";
6274
+ data: string;
6275
+ driverParam: string;
6276
+ notNull: true;
6277
+ hasDefault: false;
6278
+ isPrimaryKey: false;
6279
+ isAutoincrement: false;
6280
+ hasRuntimeDefault: false;
6281
+ enumValues: [string, ...string[]];
6282
+ baseColumn: never;
6283
+ identity: undefined;
6284
+ generated: undefined;
6285
+ }, {}, {
6286
+ length: number | undefined;
6287
+ }>;
6288
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
6289
+ name: "id";
6290
+ tableName: "function_tools";
6291
+ dataType: "string";
6292
+ columnType: "SQLiteText";
6293
+ data: string;
6294
+ driverParam: string;
6295
+ notNull: true;
6296
+ hasDefault: false;
6297
+ isPrimaryKey: false;
6298
+ isAutoincrement: false;
6299
+ hasRuntimeDefault: false;
6300
+ enumValues: [string, ...string[]];
6301
+ baseColumn: never;
6302
+ identity: undefined;
6303
+ generated: undefined;
6304
+ }, {}, {
6305
+ length: number | undefined;
6306
+ }>;
6307
+ }, undefined, undefined>;
6308
+ declare const FunctionToolInsertSchema: z.ZodObject<{
6309
+ createdAt: z.ZodOptional<z.ZodString>;
6310
+ updatedAt: z.ZodOptional<z.ZodString>;
6311
+ name: z.ZodString;
6312
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6313
+ functionId: z.ZodString;
6314
+ graphId: z.ZodString;
6315
+ projectId: z.ZodString;
6316
+ tenantId: z.ZodString;
6317
+ id: z.ZodString;
6318
+ }, {
6319
+ out: {};
6320
+ in: {};
6321
+ }>;
6322
+ declare const FunctionToolUpdateSchema: z.ZodObject<{
6323
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6324
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6325
+ name: z.ZodOptional<z.ZodString>;
6326
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6327
+ functionId: z.ZodOptional<z.ZodString>;
6328
+ graphId: z.ZodOptional<z.ZodString>;
6329
+ projectId: z.ZodOptional<z.ZodString>;
6330
+ tenantId: z.ZodOptional<z.ZodString>;
6331
+ id: z.ZodOptional<z.ZodString>;
6332
+ }, {
6333
+ out: {};
6334
+ in: {};
6335
+ }>;
6336
+ declare const FunctionToolApiSelectSchema: z.ZodObject<{
6337
+ id: z.ZodString;
6338
+ name: z.ZodString;
6339
+ description: z.ZodNullable<z.ZodString>;
6340
+ graphId: z.ZodString;
6341
+ createdAt: z.ZodString;
6342
+ updatedAt: z.ZodString;
6343
+ functionId: z.ZodString;
6344
+ }, z.core.$strip>;
6345
+ declare const FunctionToolApiInsertSchema: z.ZodObject<{
6346
+ id: z.ZodString;
6347
+ name: z.ZodString;
6348
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6349
+ createdAt: z.ZodOptional<z.ZodString>;
6350
+ updatedAt: z.ZodOptional<z.ZodString>;
6351
+ functionId: z.ZodString;
6352
+ }, z.core.$strip>;
6353
+ declare const FunctionToolApiUpdateSchema: z.ZodObject<{
6354
+ id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6355
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6356
+ description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6357
+ graphId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6358
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6359
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6360
+ functionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6361
+ }, z.core.$strip>;
6270
6362
  declare const FunctionSelectSchema: drizzle_zod.BuildSchema<"select", {
6271
6363
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6272
6364
  name: "created_at";
@@ -6573,10 +6665,10 @@ declare const ContextConfigApiUpdateSchema: z.ZodObject<{
6573
6665
  headersSchema: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodUnknown>>>;
6574
6666
  contextVariables: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>, z.core.$ZodTypeInternals<Record<string, ContextFetchDefinition>, Record<string, ContextFetchDefinition>>>>>>>;
6575
6667
  }, z.core.$strip>;
6576
- declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6668
+ declare const SubAgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6577
6669
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6578
6670
  name: "created_at";
6579
- tableName: "agent_tool_relations";
6671
+ tableName: "sub_agent_tool_relations";
6580
6672
  dataType: "string";
6581
6673
  columnType: "SQLiteText";
6582
6674
  data: string;
@@ -6595,7 +6687,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6595
6687
  }>;
6596
6688
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
6597
6689
  name: "updated_at";
6598
- tableName: "agent_tool_relations";
6690
+ tableName: "sub_agent_tool_relations";
6599
6691
  dataType: "string";
6600
6692
  columnType: "SQLiteText";
6601
6693
  data: string;
@@ -6614,7 +6706,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6614
6706
  }>;
6615
6707
  toolId: drizzle_orm_sqlite_core.SQLiteColumn<{
6616
6708
  name: "tool_id";
6617
- tableName: "agent_tool_relations";
6709
+ tableName: "sub_agent_tool_relations";
6618
6710
  dataType: "string";
6619
6711
  columnType: "SQLiteText";
6620
6712
  data: string;
@@ -6633,7 +6725,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6633
6725
  }>;
6634
6726
  selectedTools: drizzle_orm_sqlite_core.SQLiteColumn<{
6635
6727
  name: "selected_tools";
6636
- tableName: "agent_tool_relations";
6728
+ tableName: "sub_agent_tool_relations";
6637
6729
  dataType: "json";
6638
6730
  columnType: "SQLiteBlobJson";
6639
6731
  data: string[] | null;
@@ -6652,7 +6744,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6652
6744
  }>;
6653
6745
  headers: drizzle_orm_sqlite_core.SQLiteColumn<{
6654
6746
  name: "headers";
6655
- tableName: "agent_tool_relations";
6747
+ tableName: "sub_agent_tool_relations";
6656
6748
  dataType: "json";
6657
6749
  columnType: "SQLiteBlobJson";
6658
6750
  data: Record<string, string> | null;
@@ -6669,9 +6761,9 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6669
6761
  }, {}, {
6670
6762
  $type: Record<string, string> | null;
6671
6763
  }>;
6672
- agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
6673
- name: "agent_id";
6674
- tableName: "agent_tool_relations";
6764
+ subAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
6765
+ name: "sub_agent_id";
6766
+ tableName: "sub_agent_tool_relations";
6675
6767
  dataType: "string";
6676
6768
  columnType: "SQLiteText";
6677
6769
  data: string;
@@ -6690,7 +6782,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6690
6782
  }>;
6691
6783
  graphId: drizzle_orm_sqlite_core.SQLiteColumn<{
6692
6784
  name: "graph_id";
6693
- tableName: "agent_tool_relations";
6785
+ tableName: "sub_agent_tool_relations";
6694
6786
  dataType: "string";
6695
6787
  columnType: "SQLiteText";
6696
6788
  data: string;
@@ -6709,7 +6801,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6709
6801
  }>;
6710
6802
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
6711
6803
  name: "project_id";
6712
- tableName: "agent_tool_relations";
6804
+ tableName: "sub_agent_tool_relations";
6713
6805
  dataType: "string";
6714
6806
  columnType: "SQLiteText";
6715
6807
  data: string;
@@ -6728,7 +6820,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6728
6820
  }>;
6729
6821
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
6730
6822
  name: "tenant_id";
6731
- tableName: "agent_tool_relations";
6823
+ tableName: "sub_agent_tool_relations";
6732
6824
  dataType: "string";
6733
6825
  columnType: "SQLiteText";
6734
6826
  data: string;
@@ -6747,7 +6839,7 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6747
6839
  }>;
6748
6840
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
6749
6841
  name: "id";
6750
- tableName: "agent_tool_relations";
6842
+ tableName: "sub_agent_tool_relations";
6751
6843
  dataType: "string";
6752
6844
  columnType: "SQLiteText";
6753
6845
  data: string;
@@ -6765,14 +6857,14 @@ declare const AgentToolRelationSelectSchema: drizzle_zod.BuildSchema<"select", {
6765
6857
  length: number | undefined;
6766
6858
  }>;
6767
6859
  }, undefined, undefined>;
6768
- declare const AgentToolRelationInsertSchema: z.ZodObject<{
6860
+ declare const SubAgentToolRelationInsertSchema: z.ZodObject<{
6769
6861
  createdAt: z.ZodOptional<z.ZodString>;
6770
6862
  updatedAt: z.ZodOptional<z.ZodString>;
6771
6863
  graphId: z.ZodString;
6772
6864
  projectId: z.ZodString;
6773
6865
  tenantId: z.ZodString;
6774
6866
  id: z.ZodString;
6775
- agentId: z.ZodString;
6867
+ subAgentId: z.ZodString;
6776
6868
  toolId: z.ZodString;
6777
6869
  selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6778
6870
  headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
@@ -6780,14 +6872,14 @@ declare const AgentToolRelationInsertSchema: z.ZodObject<{
6780
6872
  out: {};
6781
6873
  in: {};
6782
6874
  }>;
6783
- declare const AgentToolRelationUpdateSchema: z.ZodObject<{
6875
+ declare const SubAgentToolRelationUpdateSchema: z.ZodObject<{
6784
6876
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6785
6877
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6786
6878
  graphId: z.ZodOptional<z.ZodString>;
6787
6879
  projectId: z.ZodOptional<z.ZodString>;
6788
6880
  tenantId: z.ZodOptional<z.ZodString>;
6789
6881
  id: z.ZodOptional<z.ZodString>;
6790
- agentId: z.ZodOptional<z.ZodString>;
6882
+ subAgentId: z.ZodOptional<z.ZodString>;
6791
6883
  toolId: z.ZodOptional<z.ZodString>;
6792
6884
  selectedTools: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
6793
6885
  headers: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
@@ -6795,32 +6887,32 @@ declare const AgentToolRelationUpdateSchema: z.ZodObject<{
6795
6887
  out: {};
6796
6888
  in: {};
6797
6889
  }>;
6798
- declare const AgentToolRelationApiSelectSchema: z.ZodObject<{
6890
+ declare const SubAgentToolRelationApiSelectSchema: z.ZodObject<{
6799
6891
  id: z.ZodString;
6800
6892
  createdAt: z.ZodString;
6801
6893
  updatedAt: z.ZodString;
6802
6894
  headers: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6803
6895
  toolId: z.ZodString;
6804
6896
  selectedTools: z.ZodNullable<z.ZodType<drizzle_zod.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod.Json, unknown>>>;
6805
- agentId: z.ZodString;
6897
+ subAgentId: z.ZodString;
6806
6898
  }, z.core.$strip>;
6807
- declare const AgentToolRelationApiInsertSchema: z.ZodObject<{
6899
+ declare const SubAgentToolRelationApiInsertSchema: z.ZodObject<{
6808
6900
  id: z.ZodString;
6809
6901
  createdAt: z.ZodOptional<z.ZodString>;
6810
6902
  updatedAt: z.ZodOptional<z.ZodString>;
6811
6903
  headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
6812
6904
  toolId: z.ZodString;
6813
6905
  selectedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6814
- agentId: z.ZodString;
6906
+ subAgentId: z.ZodString;
6815
6907
  }, z.core.$strip>;
6816
- declare const AgentToolRelationApiUpdateSchema: z.ZodObject<{
6908
+ declare const SubAgentToolRelationApiUpdateSchema: z.ZodObject<{
6817
6909
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6818
6910
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6819
6911
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6820
6912
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
6821
6913
  toolId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6822
6914
  selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
6823
- agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6915
+ subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6824
6916
  }, z.core.$strip>;
6825
6917
  declare const LedgerArtifactSelectSchema: drizzle_zod.BuildSchema<"select", {
6826
6918
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
@@ -7665,10 +7757,10 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
7665
7757
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7666
7758
  createdAt: z.ZodOptional<z.ZodString>;
7667
7759
  updatedAt: z.ZodOptional<z.ZodString>;
7668
- defaultAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7760
+ defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7669
7761
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7670
7762
  id: z.ZodString;
7671
- agents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
7763
+ subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
7672
7764
  id: z.ZodString;
7673
7765
  name: z.ZodString;
7674
7766
  description: z.ZodString;
@@ -7724,7 +7816,7 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
7724
7816
  id: z.ZodString;
7725
7817
  name: z.ZodString;
7726
7818
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7727
- config: z.ZodDiscriminatedUnion<[z.ZodObject<{
7819
+ config: z.ZodObject<{
7728
7820
  type: z.ZodLiteral<"mcp">;
7729
7821
  mcp: z.ZodObject<{
7730
7822
  server: z.ZodObject<{
@@ -7742,18 +7834,23 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
7742
7834
  }, z.core.$strip>>;
7743
7835
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
7744
7836
  }, z.core.$strip>;
7745
- }, z.core.$strip>, z.ZodObject<{
7746
- type: z.ZodLiteral<"function">;
7747
- }, z.core.$strip>], "type">;
7837
+ }, z.core.$strip>;
7748
7838
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7749
7839
  createdAt: z.ZodOptional<z.ZodString>;
7750
7840
  updatedAt: z.ZodOptional<z.ZodString>;
7751
7841
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
7752
7842
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
7753
- functionId: z.ZodOptional<z.ZodString>;
7754
7843
  imageUrl: z.ZodOptional<z.ZodString>;
7755
7844
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7756
7845
  }, z.core.$strip>>>;
7846
+ functionTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7847
+ id: z.ZodString;
7848
+ name: z.ZodString;
7849
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7850
+ createdAt: z.ZodOptional<z.ZodString>;
7851
+ updatedAt: z.ZodOptional<z.ZodString>;
7852
+ functionId: z.ZodString;
7853
+ }, z.core.$strip>>>;
7757
7854
  functions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7758
7855
  id: z.ZodString;
7759
7856
  createdAt: z.ZodOptional<z.ZodString>;
@@ -7806,10 +7903,10 @@ declare const GraphWithinContextOfProjectSchema: z.ZodObject<{
7806
7903
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7807
7904
  createdAt: z.ZodOptional<z.ZodString>;
7808
7905
  updatedAt: z.ZodOptional<z.ZodString>;
7809
- defaultAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7906
+ defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7810
7907
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7811
7908
  id: z.ZodString;
7812
- agents: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
7909
+ subAgents: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
7813
7910
  id: z.ZodString;
7814
7911
  name: z.ZodString;
7815
7912
  description: z.ZodString;
@@ -7862,6 +7959,53 @@ declare const GraphWithinContextOfProjectSchema: z.ZodObject<{
7862
7959
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
7863
7960
  type: z.ZodLiteral<"external">;
7864
7961
  }, z.core.$strip>], "type">>;
7962
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7963
+ id: z.ZodString;
7964
+ name: z.ZodString;
7965
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7966
+ config: z.ZodObject<{
7967
+ type: z.ZodLiteral<"mcp">;
7968
+ mcp: z.ZodObject<{
7969
+ server: z.ZodObject<{
7970
+ url: z.ZodString;
7971
+ }, z.core.$strip>;
7972
+ transport: z.ZodOptional<z.ZodObject<{
7973
+ type: z.ZodEnum<{
7974
+ readonly streamableHttp: "streamable_http";
7975
+ readonly sse: "sse";
7976
+ }>;
7977
+ requestInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7978
+ eventSourceInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7979
+ reconnectionOptions: z.ZodOptional<z.ZodCustom<StreamableHTTPReconnectionOptions, StreamableHTTPReconnectionOptions>>;
7980
+ sessionId: z.ZodOptional<z.ZodString>;
7981
+ }, z.core.$strip>>;
7982
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
7983
+ }, z.core.$strip>;
7984
+ }, z.core.$strip>;
7985
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7986
+ createdAt: z.ZodOptional<z.ZodString>;
7987
+ updatedAt: z.ZodOptional<z.ZodString>;
7988
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
7989
+ capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
7990
+ imageUrl: z.ZodOptional<z.ZodString>;
7991
+ lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7992
+ }, z.core.$strip>>>;
7993
+ functionTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7994
+ id: z.ZodString;
7995
+ name: z.ZodString;
7996
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7997
+ createdAt: z.ZodOptional<z.ZodString>;
7998
+ updatedAt: z.ZodOptional<z.ZodString>;
7999
+ functionId: z.ZodString;
8000
+ }, z.core.$strip>>>;
8001
+ functions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8002
+ id: z.ZodString;
8003
+ createdAt: z.ZodOptional<z.ZodString>;
8004
+ updatedAt: z.ZodOptional<z.ZodString>;
8005
+ inputSchema: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
8006
+ executeCode: z.ZodString;
8007
+ dependencies: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
8008
+ }, z.core.$strip>>>;
7865
8009
  contextConfig: z.ZodOptional<z.ZodObject<{
7866
8010
  id: z.ZodOptional<z.ZodString>;
7867
8011
  headersSchema: z.ZodOptional<z.ZodUnknown>;
@@ -8436,10 +8580,10 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
8436
8580
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8437
8581
  createdAt: z.ZodOptional<z.ZodString>;
8438
8582
  updatedAt: z.ZodOptional<z.ZodString>;
8439
- defaultAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8583
+ defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8440
8584
  contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8441
8585
  id: z.ZodString;
8442
- agents: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
8586
+ subAgents: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
8443
8587
  id: z.ZodString;
8444
8588
  name: z.ZodString;
8445
8589
  description: z.ZodString;
@@ -8492,6 +8636,53 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
8492
8636
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
8493
8637
  type: z.ZodLiteral<"external">;
8494
8638
  }, z.core.$strip>], "type">>;
8639
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8640
+ id: z.ZodString;
8641
+ name: z.ZodString;
8642
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8643
+ config: z.ZodObject<{
8644
+ type: z.ZodLiteral<"mcp">;
8645
+ mcp: z.ZodObject<{
8646
+ server: z.ZodObject<{
8647
+ url: z.ZodString;
8648
+ }, z.core.$strip>;
8649
+ transport: z.ZodOptional<z.ZodObject<{
8650
+ type: z.ZodEnum<{
8651
+ readonly streamableHttp: "streamable_http";
8652
+ readonly sse: "sse";
8653
+ }>;
8654
+ requestInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8655
+ eventSourceInit: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8656
+ reconnectionOptions: z.ZodOptional<z.ZodCustom<StreamableHTTPReconnectionOptions, StreamableHTTPReconnectionOptions>>;
8657
+ sessionId: z.ZodOptional<z.ZodString>;
8658
+ }, z.core.$strip>>;
8659
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
8660
+ }, z.core.$strip>;
8661
+ }, z.core.$strip>;
8662
+ credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8663
+ createdAt: z.ZodOptional<z.ZodString>;
8664
+ updatedAt: z.ZodOptional<z.ZodString>;
8665
+ headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
8666
+ capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
8667
+ imageUrl: z.ZodOptional<z.ZodString>;
8668
+ lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8669
+ }, z.core.$strip>>>;
8670
+ functionTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8671
+ id: z.ZodString;
8672
+ name: z.ZodString;
8673
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8674
+ createdAt: z.ZodOptional<z.ZodString>;
8675
+ updatedAt: z.ZodOptional<z.ZodString>;
8676
+ functionId: z.ZodString;
8677
+ }, z.core.$strip>>>;
8678
+ functions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8679
+ id: z.ZodString;
8680
+ createdAt: z.ZodOptional<z.ZodString>;
8681
+ updatedAt: z.ZodOptional<z.ZodString>;
8682
+ inputSchema: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
8683
+ executeCode: z.ZodString;
8684
+ dependencies: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
8685
+ }, z.core.$strip>>>;
8495
8686
  contextConfig: z.ZodOptional<z.ZodObject<{
8496
8687
  id: z.ZodOptional<z.ZodString>;
8497
8688
  headersSchema: z.ZodOptional<z.ZodUnknown>;
@@ -8535,7 +8726,7 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
8535
8726
  id: z.ZodString;
8536
8727
  name: z.ZodString;
8537
8728
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8538
- config: z.ZodDiscriminatedUnion<[z.ZodObject<{
8729
+ config: z.ZodObject<{
8539
8730
  type: z.ZodLiteral<"mcp">;
8540
8731
  mcp: z.ZodObject<{
8541
8732
  server: z.ZodObject<{
@@ -8553,15 +8744,12 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
8553
8744
  }, z.core.$strip>>;
8554
8745
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
8555
8746
  }, z.core.$strip>;
8556
- }, z.core.$strip>, z.ZodObject<{
8557
- type: z.ZodLiteral<"function">;
8558
- }, z.core.$strip>], "type">;
8747
+ }, z.core.$strip>;
8559
8748
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8560
8749
  createdAt: z.ZodOptional<z.ZodString>;
8561
8750
  updatedAt: z.ZodOptional<z.ZodString>;
8562
8751
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
8563
8752
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
8564
- functionId: z.ZodOptional<z.ZodString>;
8565
8753
  imageUrl: z.ZodOptional<z.ZodString>;
8566
8754
  lastError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8567
8755
  }, z.core.$strip>>;
@@ -8631,10 +8819,19 @@ declare const HeadersScopeSchema: z.ZodObject<{
8631
8819
  declare const TenantParamsSchema: z.ZodObject<{
8632
8820
  tenantId: z.ZodString;
8633
8821
  }, z.core.$strip>;
8822
+ declare const TenantIdParamsSchema: z.ZodObject<{
8823
+ tenantId: z.ZodString;
8824
+ id: z.ZodString;
8825
+ }, z.core.$strip>;
8634
8826
  declare const TenantProjectParamsSchema: z.ZodObject<{
8635
8827
  tenantId: z.ZodString;
8636
8828
  projectId: z.ZodString;
8637
8829
  }, z.core.$strip>;
8830
+ declare const TenantProjectIdParamsSchema: z.ZodObject<{
8831
+ tenantId: z.ZodString;
8832
+ projectId: z.ZodString;
8833
+ id: z.ZodString;
8834
+ }, z.core.$strip>;
8638
8835
  declare const TenantProjectGraphParamsSchema: z.ZodObject<{
8639
8836
  tenantId: z.ZodString;
8640
8837
  projectId: z.ZodString;
@@ -8646,16 +8843,17 @@ declare const TenantProjectGraphIdParamsSchema: z.ZodObject<{
8646
8843
  graphId: z.ZodString;
8647
8844
  id: z.ZodString;
8648
8845
  }, z.core.$strip>;
8649
- declare const TenantProjectIdParamsSchema: z.ZodObject<{
8846
+ declare const TenantProjectGraphSubAgentParamsSchema: z.ZodObject<{
8650
8847
  tenantId: z.ZodString;
8651
8848
  projectId: z.ZodString;
8652
- id: z.ZodString;
8849
+ graphId: z.ZodString;
8850
+ subAgentId: z.ZodString;
8653
8851
  }, z.core.$strip>;
8654
- declare const TenantIdParamsSchema: z.ZodObject<{
8852
+ declare const TenantProjectGraphSubAgentIdParamsSchema: z.ZodObject<{
8655
8853
  tenantId: z.ZodString;
8656
- id: z.ZodString;
8657
- }, z.core.$strip>;
8658
- declare const IdParamsSchema: z.ZodObject<{
8854
+ projectId: z.ZodString;
8855
+ graphId: z.ZodString;
8856
+ subAgentId: z.ZodString;
8659
8857
  id: z.ZodString;
8660
8858
  }, z.core.$strip>;
8661
8859
  declare const PaginationQueryParamsSchema: z.ZodObject<{
@@ -8663,21 +8861,21 @@ declare const PaginationQueryParamsSchema: z.ZodObject<{
8663
8861
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
8664
8862
  }, z.core.$strip>;
8665
8863
 
8666
- type AgentSelect = z$1.infer<typeof AgentSelectSchema>;
8667
- type AgentInsert = z$1.infer<typeof AgentInsertSchema>;
8668
- type AgentUpdate = z$1.infer<typeof AgentUpdateSchema>;
8669
- type AgentApiSelect = z$1.infer<typeof AgentApiSelectSchema>;
8670
- type AgentApiInsert = z$1.infer<typeof AgentApiInsertSchema>;
8671
- type AgentApiUpdate = z$1.infer<typeof AgentApiUpdateSchema>;
8672
- type AgentRelationSelect = z$1.infer<typeof AgentRelationSelectSchema>;
8673
- type AgentRelationInsert = z$1.infer<typeof AgentRelationInsertSchema>;
8674
- type AgentRelationUpdate = z$1.infer<typeof AgentRelationUpdateSchema>;
8675
- type AgentRelationApiSelect = z$1.infer<typeof AgentRelationApiSelectSchema>;
8676
- type AgentRelationApiInsert = z$1.infer<typeof AgentRelationApiInsertSchema>;
8677
- type AgentRelationApiUpdate = z$1.infer<typeof AgentRelationApiUpdateSchema>;
8678
- type AgentRelationQuery = z$1.infer<typeof AgentRelationQuerySchema>;
8679
- type ExternalAgentRelationInsert = z$1.infer<typeof ExternalAgentRelationInsertSchema>;
8680
- type ExternalAgentRelationApiInsert = z$1.infer<typeof ExternalAgentRelationApiInsertSchema>;
8864
+ type SubAgentSelect = z$1.infer<typeof SubAgentSelectSchema>;
8865
+ type SubAgentInsert = z$1.infer<typeof SubAgentInsertSchema>;
8866
+ type SubAgentUpdate = z$1.infer<typeof SubAgentUpdateSchema>;
8867
+ type SubAgentApiSelect = z$1.infer<typeof SubAgentApiSelectSchema>;
8868
+ type SubAgentApiInsert = z$1.infer<typeof SubAgentApiInsertSchema>;
8869
+ type SubAgentApiUpdate = z$1.infer<typeof SubAgentApiUpdateSchema>;
8870
+ type SubAgentRelationSelect = z$1.infer<typeof SubAgentRelationSelectSchema>;
8871
+ type SubAgentRelationInsert = z$1.infer<typeof SubAgentRelationInsertSchema>;
8872
+ type SubAgentRelationUpdate = z$1.infer<typeof SubAgentRelationUpdateSchema>;
8873
+ type SubAgentRelationApiSelect = z$1.infer<typeof SubAgentRelationApiSelectSchema>;
8874
+ type SubAgentRelationApiInsert = z$1.infer<typeof SubAgentRelationApiInsertSchema>;
8875
+ type SubAgentRelationApiUpdate = z$1.infer<typeof SubAgentRelationApiUpdateSchema>;
8876
+ type SubAgentRelationQuery = z$1.infer<typeof SubAgentRelationQuerySchema>;
8877
+ type ExternalSubAgentRelationInsert = z$1.infer<typeof ExternalSubAgentRelationInsertSchema>;
8878
+ type ExternalSubAgentRelationApiInsert = z$1.infer<typeof ExternalSubAgentRelationApiInsertSchema>;
8681
8879
  type AgentGraphSelect = z$1.infer<typeof AgentGraphSelectSchema>;
8682
8880
  type AgentGraphInsert = z$1.infer<typeof AgentGraphInsertSchema>;
8683
8881
  type AgentGraphUpdate = z$1.infer<typeof AgentGraphUpdateSchema>;
@@ -8710,6 +8908,9 @@ type FunctionUpdate = z$1.infer<typeof FunctionUpdateSchema>;
8710
8908
  type FunctionApiSelect = z$1.infer<typeof FunctionApiSelectSchema>;
8711
8909
  type FunctionApiInsert = z$1.infer<typeof FunctionApiInsertSchema>;
8712
8910
  type FunctionApiUpdate = z$1.infer<typeof FunctionApiUpdateSchema>;
8911
+ type FunctionToolApiSelect = z$1.infer<typeof FunctionToolApiSelectSchema>;
8912
+ type FunctionToolApiInsert = z$1.infer<typeof FunctionToolApiInsertSchema>;
8913
+ type FunctionToolApiUpdate = z$1.infer<typeof FunctionToolApiUpdateSchema>;
8713
8914
  type ConversationSelect = z$1.infer<typeof ConversationSelectSchema>;
8714
8915
  type ConversationInsert = z$1.infer<typeof ConversationInsertSchema>;
8715
8916
  type ConversationUpdate = z$1.infer<typeof ConversationUpdateSchema>;
@@ -8742,24 +8943,24 @@ type DataComponentUpdate = z$1.infer<typeof DataComponentUpdateSchema>;
8742
8943
  type DataComponentApiSelect = z$1.infer<typeof DataComponentApiSelectSchema>;
8743
8944
  type DataComponentApiInsert = z$1.infer<typeof DataComponentApiInsertSchema>;
8744
8945
  type DataComponentApiUpdate = z$1.infer<typeof DataComponentApiUpdateSchema>;
8745
- type AgentDataComponentSelect = z$1.infer<typeof AgentDataComponentSelectSchema>;
8746
- type AgentDataComponentInsert = z$1.infer<typeof AgentDataComponentInsertSchema>;
8747
- type AgentDataComponentUpdate = z$1.infer<typeof AgentDataComponentUpdateSchema>;
8748
- type AgentDataComponentApiSelect = z$1.infer<typeof AgentDataComponentApiSelectSchema>;
8749
- type AgentDataComponentApiInsert = z$1.infer<typeof AgentDataComponentApiInsertSchema>;
8750
- type AgentDataComponentApiUpdate = z$1.infer<typeof AgentDataComponentApiUpdateSchema>;
8946
+ type SubAgentDataComponentSelect = z$1.infer<typeof SubAgentDataComponentSelectSchema>;
8947
+ type SubAgentDataComponentInsert = z$1.infer<typeof SubAgentDataComponentInsertSchema>;
8948
+ type SubAgentDataComponentUpdate = z$1.infer<typeof SubAgentDataComponentUpdateSchema>;
8949
+ type SubAgentDataComponentApiSelect = z$1.infer<typeof SubAgentDataComponentApiSelectSchema>;
8950
+ type SubAgentDataComponentApiInsert = z$1.infer<typeof SubAgentDataComponentApiInsertSchema>;
8951
+ type SubAgentDataComponentApiUpdate = z$1.infer<typeof SubAgentDataComponentApiUpdateSchema>;
8751
8952
  type ArtifactComponentSelect = z$1.infer<typeof ArtifactComponentSelectSchema>;
8752
8953
  type ArtifactComponentInsert = z$1.infer<typeof ArtifactComponentInsertSchema>;
8753
8954
  type ArtifactComponentUpdate = z$1.infer<typeof ArtifactComponentUpdateSchema>;
8754
8955
  type ArtifactComponentApiSelect = z$1.infer<typeof ArtifactComponentApiSelectSchema>;
8755
8956
  type ArtifactComponentApiInsert = z$1.infer<typeof ArtifactComponentApiInsertSchema>;
8756
8957
  type ArtifactComponentApiUpdate = z$1.infer<typeof ArtifactComponentApiUpdateSchema>;
8757
- type AgentArtifactComponentSelect = z$1.infer<typeof AgentArtifactComponentSelectSchema>;
8758
- type AgentArtifactComponentInsert = z$1.infer<typeof AgentArtifactComponentInsertSchema>;
8759
- type AgentArtifactComponentUpdate = z$1.infer<typeof AgentArtifactComponentUpdateSchema>;
8760
- type AgentArtifactComponentApiSelect = z$1.infer<typeof AgentArtifactComponentApiSelectSchema>;
8761
- type AgentArtifactComponentApiInsert = z$1.infer<typeof AgentArtifactComponentApiInsertSchema>;
8762
- type AgentArtifactComponentApiUpdate = z$1.infer<typeof AgentArtifactComponentApiUpdateSchema>;
8958
+ type SubAgentArtifactComponentSelect = z$1.infer<typeof SubAgentArtifactComponentSelectSchema>;
8959
+ type SubAgentArtifactComponentInsert = z$1.infer<typeof SubAgentArtifactComponentInsertSchema>;
8960
+ type SubAgentArtifactComponentUpdate = z$1.infer<typeof SubAgentArtifactComponentUpdateSchema>;
8961
+ type SubAgentArtifactComponentApiSelect = z$1.infer<typeof SubAgentArtifactComponentApiSelectSchema>;
8962
+ type SubAgentArtifactComponentApiInsert = z$1.infer<typeof SubAgentArtifactComponentApiInsertSchema>;
8963
+ type SubAgentArtifactComponentApiUpdate = z$1.infer<typeof SubAgentArtifactComponentApiUpdateSchema>;
8763
8964
  type ExternalAgentSelect = z$1.infer<typeof ExternalAgentSelectSchema>;
8764
8965
  type ExternalAgentInsert = z$1.infer<typeof ExternalAgentInsertSchema>;
8765
8966
  type ExternalAgentUpdate = z$1.infer<typeof ExternalAgentUpdateSchema>;
@@ -8780,19 +8981,19 @@ type CredentialReferenceUpdate = z$1.infer<typeof CredentialReferenceUpdateSchem
8780
8981
  type CredentialReferenceApiSelect = z$1.infer<typeof CredentialReferenceApiSelectSchema>;
8781
8982
  type CredentialReferenceApiInsert = z$1.infer<typeof CredentialReferenceApiInsertSchema>;
8782
8983
  type CredentialReferenceApiUpdate = z$1.infer<typeof CredentialReferenceApiUpdateSchema>;
8783
- type AgentToolRelationSelect = z$1.infer<typeof AgentToolRelationSelectSchema>;
8784
- type AgentToolRelationInsert = z$1.infer<typeof AgentToolRelationInsertSchema>;
8785
- type AgentToolRelationUpdate = z$1.infer<typeof AgentToolRelationUpdateSchema>;
8786
- type AgentToolRelationApiSelect = z$1.infer<typeof AgentToolRelationApiSelectSchema>;
8787
- type AgentToolRelationApiInsert = z$1.infer<typeof AgentToolRelationApiInsertSchema>;
8788
- type AgentToolRelationApiUpdate = z$1.infer<typeof AgentToolRelationApiUpdateSchema>;
8984
+ type SubAgentToolRelationSelect = z$1.infer<typeof SubAgentToolRelationSelectSchema>;
8985
+ type SubAgentToolRelationInsert = z$1.infer<typeof SubAgentToolRelationInsertSchema>;
8986
+ type SubAgentToolRelationUpdate = z$1.infer<typeof SubAgentToolRelationUpdateSchema>;
8987
+ type SubAgentToolRelationApiSelect = z$1.infer<typeof SubAgentToolRelationApiSelectSchema>;
8988
+ type SubAgentToolRelationApiInsert = z$1.infer<typeof SubAgentToolRelationApiInsertSchema>;
8989
+ type SubAgentToolRelationApiUpdate = z$1.infer<typeof SubAgentToolRelationApiUpdateSchema>;
8789
8990
  type LedgerArtifactSelect = z$1.infer<typeof LedgerArtifactSelectSchema>;
8790
8991
  type LedgerArtifactInsert = z$1.infer<typeof LedgerArtifactInsertSchema>;
8791
8992
  type LedgerArtifactUpdate = z$1.infer<typeof LedgerArtifactUpdateSchema>;
8792
8993
  type LedgerArtifactApiSelect = z$1.infer<typeof LedgerArtifactApiSelectSchema>;
8793
8994
  type LedgerArtifactApiInsert = z$1.infer<typeof LedgerArtifactApiInsertSchema>;
8794
8995
  type LedgerArtifactApiUpdate = z$1.infer<typeof LedgerArtifactApiUpdateSchema>;
8795
- type FullGraphDefinition = z$1.infer<typeof FullGraphDefinitionSchema>;
8996
+ type FullGraphDefinition = z$1.infer<typeof GraphWithinContextOfProjectSchema>;
8796
8997
  type FullGraphAgentInsert = z$1.infer<typeof FullGraphAgentInsertSchema>;
8797
8998
  type FullProjectDefinition = z$1.infer<typeof FullProjectDefinitionSchema>;
8798
8999
  type CanUseItem = {
@@ -8801,7 +9002,7 @@ type CanUseItem = {
8801
9002
  headers?: Record<string, string> | null;
8802
9003
  agentToolRelationId?: string;
8803
9004
  };
8804
- type InternalAgentDefinition = z$1.infer<typeof AgentApiInsertSchema> & {
9005
+ type InternalAgentDefinition = z$1.infer<typeof SubAgentApiInsertSchema> & {
8805
9006
  canUse: CanUseItem[];
8806
9007
  dataComponents?: string[];
8807
9008
  artifactComponents?: string[];
@@ -8853,11 +9054,11 @@ type GraphScopeConfig = ProjectScopeConfig & {
8853
9054
  graphId: string;
8854
9055
  };
8855
9056
  type AgentScopeConfig = GraphScopeConfig & {
8856
- agentId: string;
9057
+ subAgentId: string;
8857
9058
  };
8858
9059
  interface ConversationScopeOptions {
8859
9060
  taskId?: string;
8860
- agentId?: string;
9061
+ subAgentId?: string;
8861
9062
  }
8862
9063
  type ConversationHistoryConfig = {
8863
9064
  mode?: 'full' | 'scoped' | 'none';
@@ -9037,8 +9238,8 @@ interface ExecutionContext {
9037
9238
  baseUrl: string;
9038
9239
  /** API key ID for tracking */
9039
9240
  apiKeyId: string;
9040
- /** Agent ID extracted from request headers (only for internal A2A calls) */
9041
- agentId?: string;
9241
+ /** Sub Agent ID extracted from request headers (only for internal A2A calls) */
9242
+ subAgentId?: string;
9042
9243
  }
9043
9244
 
9044
- export { type ContextConfigUpdate as $, ApiKeyApiUpdateSchema as A, type AgentScopeConfig as B, type ConversationHistoryConfig as C, type AgentRelationInsert as D, type ExternalAgentRelationInsert as E, FunctionApiInsertSchema as F, GraphStopWhenSchema as G, type AgentRelationUpdate as H, type AgentToolRelationUpdate as I, type AgentInsert as J, type AgentUpdate as K, type AgentSelect as L, ModelSettingsSchema as M, type ApiKeySelect as N, type ApiKeyInsert as O, type Part as P, type ApiKeyUpdate as Q, type CreateApiKeyParams as R, StopWhenSchema as S, type TaskMetadataConfig as T, type ApiKeyCreateResult as U, type ArtifactComponentSelect as V, type ArtifactComponentInsert as W, type ArtifactComponentUpdate as X, type ContextCacheSelect as Y, type ContextCacheInsert as Z, type ContextConfigInsert as _, FullGraphAgentInsertSchema as a, type InvalidParamsError as a$, type ConversationSelect as a0, type ConversationInsert as a1, type ConversationUpdate as a2, type CredentialReferenceSelect as a3, type ToolSelect as a4, type CredentialReferenceInsert as a5, type CredentialReferenceUpdate as a6, type DataComponentSelect as a7, type DataComponentInsert as a8, type DataComponentUpdate as a9, type FileWithUri as aA, type FilePart as aB, type DataPart as aC, TaskState as aD, type AgentCapabilities as aE, type AgentProvider as aF, type AgentSkill as aG, type SecuritySchemeBase as aH, type APIKeySecurityScheme as aI, type HTTPAuthSecurityScheme as aJ, type OAuthFlows as aK, type AuthorizationCodeOAuthFlow as aL, type ClientCredentialsOAuthFlow as aM, type ImplicitOAuthFlow as aN, type PasswordOAuthFlow as aO, type OAuth2SecurityScheme as aP, type OpenIdConnectSecurityScheme as aQ, type SecurityScheme as aR, type AgentCard as aS, type Message as aT, type TaskStatus as aU, type Task as aV, type TaskStatusUpdateEvent as aW, type TaskArtifactUpdateEvent as aX, type JSONParseError as aY, type InvalidRequestError as aZ, type MethodNotFoundError as a_, type ExternalAgentInsert as aa, type ExternalAgentSelect as ab, type ExternalAgentUpdate as ac, type FunctionApiInsert as ad, type Artifact as ae, type LedgerArtifactSelect as af, type MessageVisibility as ag, type MessageInsert as ah, type MessageUpdate as ai, type FullProjectDefinition as aj, type ProjectInfo as ak, type ProjectSelect as al, type PaginationResult as am, type ProjectResourceCounts as an, type ProjectInsert as ao, type ProjectUpdate as ap, type TaskInsert as aq, type TaskSelect as ar, type McpTool as as, type ToolInsert as at, type ToolUpdate as au, type ExecutionContext as av, type PartBase as aw, type TextPart as ax, type FileBase as ay, type FileWithBytes as az, AgentStopWhenSchema as b, type TaskRelationApiSelect as b$, type InternalError as b0, type TaskNotFoundError as b1, type TaskNotCancelableError as b2, type PushNotificationNotSupportedError as b3, type UnsupportedOperationError as b4, type ContentTypeNotSupportedError as b5, type InvalidAgentResponseError as b6, type A2AError as b7, type PushNotificationAuthenticationInfo as b8, type PushNotificationConfig as b9, type SetTaskPushNotificationConfigResponse as bA, type GetTaskPushNotificationConfigSuccessResponse as bB, type GetTaskPushNotificationConfigResponse as bC, type A2ARequest as bD, type A2AResponse as bE, type MessagePart as bF, type TaskArtifact as bG, type AgentApiSelect as bH, type AgentApiInsert as bI, type AgentApiUpdate as bJ, type AgentRelationSelect as bK, type AgentRelationApiSelect as bL, type AgentRelationApiInsert as bM, type AgentRelationApiUpdate as bN, type AgentRelationQuery as bO, type ExternalAgentRelationApiInsert as bP, type AgentGraphSelect as bQ, type AgentGraphApiSelect as bR, type AgentGraphApiInsert as bS, type AgentGraphApiUpdate as bT, type TaskUpdate as bU, type TaskApiSelect as bV, type TaskApiInsert as bW, type TaskApiUpdate as bX, type TaskRelationSelect as bY, type TaskRelationInsert as bZ, type TaskRelationUpdate as b_, type TaskPushNotificationConfig as ba, type TaskIdParams as bb, type TaskQueryParams as bc, type MessageSendConfiguration as bd, type MessageSendParams as be, type JSONRPCMessage as bf, type JSONRPCRequest as bg, type JSONRPCError as bh, type JSONRPCResult as bi, type JSONRPCErrorResponse as bj, type SendMessageRequest as bk, type SendStreamingMessageRequest as bl, type GetTaskRequest as bm, type CancelTaskRequest as bn, type SetTaskPushNotificationConfigRequest as bo, type GetTaskPushNotificationConfigRequest as bp, type TaskResubscriptionRequest as bq, type SendMessageSuccessResponse as br, type SendMessageResponse as bs, type SendStreamingMessageSuccessResponse as bt, type SendStreamingMessageResponse as bu, type GetTaskSuccessResponse as bv, type GetTaskResponse as bw, type CancelTaskSuccessResponse as bx, type CancelTaskResponse as by, type SetTaskPushNotificationConfigSuccessResponse as bz, type StopWhen as c, type LedgerArtifactApiUpdate as c$, type TaskRelationApiInsert as c0, type TaskRelationApiUpdate as c1, type ToolApiSelect as c2, type ToolApiInsert as c3, type ToolApiUpdate as c4, type FunctionSelect as c5, type FunctionInsert as c6, type FunctionUpdate as c7, type FunctionApiSelect as c8, type FunctionApiUpdate as c9, type ArtifactComponentApiInsert as cA, type ArtifactComponentApiUpdate as cB, type AgentArtifactComponentSelect as cC, type AgentArtifactComponentInsert as cD, type AgentArtifactComponentUpdate as cE, type AgentArtifactComponentApiSelect as cF, type AgentArtifactComponentApiInsert as cG, type AgentArtifactComponentApiUpdate as cH, type ExternalAgentApiSelect as cI, type ExternalAgentApiInsert as cJ, type ExternalAgentApiUpdate as cK, type AllAgentSelect as cL, type ApiKeyApiSelect as cM, type ApiKeyApiInsert as cN, type ApiKeyApiUpdate as cO, type ApiKeyApiCreationResponse as cP, type CredentialReferenceApiSelect as cQ, type CredentialReferenceApiUpdate as cR, type AgentToolRelationSelect as cS, type AgentToolRelationInsert as cT, type AgentToolRelationApiSelect as cU, type AgentToolRelationApiInsert as cV, type AgentToolRelationApiUpdate as cW, type LedgerArtifactInsert as cX, type LedgerArtifactUpdate as cY, type LedgerArtifactApiSelect as cZ, type LedgerArtifactApiInsert as c_, type ConversationApiSelect as ca, type ConversationApiInsert as cb, type ConversationApiUpdate as cc, type MessageSelect as cd, type MessageApiSelect as ce, type MessageApiInsert as cf, type MessageApiUpdate as cg, type ContextConfigApiSelect as ch, type ContextConfigApiInsert as ci, type ContextConfigApiUpdate as cj, type FetchDefinition as ck, type FetchConfig as cl, type ContextCacheUpdate as cm, type ContextCacheApiSelect as cn, type ContextCacheApiInsert as co, type ContextCacheApiUpdate as cp, type DataComponentApiSelect as cq, type DataComponentApiInsert as cr, type DataComponentApiUpdate as cs, type AgentDataComponentSelect as ct, type AgentDataComponentInsert as cu, type AgentDataComponentUpdate as cv, type AgentDataComponentApiSelect as cw, type AgentDataComponentApiInsert as cx, type AgentDataComponentApiUpdate as cy, type ArtifactComponentApiSelect as cz, type GraphStopWhen as d, TaskApiInsertSchema as d$, type FullGraphAgentInsert as d0, type CanUseItem as d1, type InternalAgentDefinition as d2, type AgentDefinition as d3, type ToolDefinition as d4, type ProjectApiSelect as d5, type ProjectApiInsert as d6, type ProjectApiUpdate as d7, type Pagination as d8, type SummaryEvent as d9, FunctionToolConfigSchema as dA, type FunctionToolConfig as dB, AgentSelectSchema as dC, AgentInsertSchema as dD, AgentUpdateSchema as dE, AgentApiSelectSchema as dF, AgentApiInsertSchema as dG, AgentApiUpdateSchema as dH, AgentRelationSelectSchema as dI, AgentRelationInsertSchema as dJ, AgentRelationUpdateSchema as dK, AgentRelationApiSelectSchema as dL, AgentRelationApiInsertSchema as dM, AgentRelationApiUpdateSchema as dN, AgentRelationQuerySchema as dO, ExternalAgentRelationInsertSchema as dP, ExternalAgentRelationApiInsertSchema as dQ, AgentGraphSelectSchema as dR, AgentGraphInsertSchema as dS, AgentGraphUpdateSchema as dT, AgentGraphApiSelectSchema as dU, AgentGraphApiInsertSchema as dV, AgentGraphApiUpdateSchema as dW, TaskSelectSchema as dX, TaskInsertSchema as dY, TaskUpdateSchema as dZ, TaskApiSelectSchema as d_, type MessageType as da, type MessageRole as db, type MessageMode as dc, type Models as dd, type ProjectModels as de, type StatusUpdateSettings as df, type StatusComponent as dg, type ConversationScopeOptions as dh, type AgentConversationHistoryConfig as di, type ContextCacheEntry as dj, type McpAuthType as dk, type McpServerAuth as dl, type McpTransportConfig as dm, type McpServerCapabilities as dn, type McpToolDefinition as dp, TOOL_STATUS_VALUES as dq, VALID_RELATION_TYPES as dr, MCPServerType as ds, MIN_ID_LENGTH as dt, MAX_ID_LENGTH as du, URL_SAFE_ID_PATTERN as dv, resourceIdSchema as dw, ModelSchema as dx, ProjectModelSchema as dy, type SandboxConfig as dz, type AgentStopWhen as e, ApiKeyInsertSchema as e$, TaskApiUpdateSchema as e0, TaskRelationSelectSchema as e1, TaskRelationInsertSchema as e2, TaskRelationUpdateSchema as e3, TaskRelationApiSelectSchema as e4, TaskRelationApiInsertSchema as e5, TaskRelationApiUpdateSchema as e6, McpTransportConfigSchema as e7, ToolStatusSchema as e8, McpToolDefinitionSchema as e9, DataComponentApiUpdateSchema as eA, AgentDataComponentSelectSchema as eB, AgentDataComponentInsertSchema as eC, AgentDataComponentUpdateSchema as eD, AgentDataComponentApiSelectSchema as eE, AgentDataComponentApiInsertSchema as eF, AgentDataComponentApiUpdateSchema as eG, ArtifactComponentSelectSchema as eH, ArtifactComponentInsertSchema as eI, ArtifactComponentUpdateSchema as eJ, ArtifactComponentApiSelectSchema as eK, ArtifactComponentApiInsertSchema as eL, ArtifactComponentApiUpdateSchema as eM, AgentArtifactComponentSelectSchema as eN, AgentArtifactComponentInsertSchema as eO, AgentArtifactComponentUpdateSchema as eP, AgentArtifactComponentApiSelectSchema as eQ, AgentArtifactComponentApiInsertSchema as eR, AgentArtifactComponentApiUpdateSchema as eS, ExternalAgentSelectSchema as eT, ExternalAgentInsertSchema as eU, ExternalAgentUpdateSchema as eV, ExternalAgentApiSelectSchema as eW, ExternalAgentApiInsertSchema as eX, ExternalAgentApiUpdateSchema as eY, AllAgentSchema as eZ, ApiKeySelectSchema as e_, ToolSelectSchema as ea, ToolInsertSchema as eb, ConversationSelectSchema as ec, ConversationInsertSchema as ed, ConversationUpdateSchema as ee, ConversationApiSelectSchema as ef, ConversationApiInsertSchema as eg, ConversationApiUpdateSchema as eh, MessageSelectSchema as ei, MessageInsertSchema as ej, MessageUpdateSchema as ek, MessageApiSelectSchema as el, MessageApiInsertSchema as em, MessageApiUpdateSchema as en, ContextCacheSelectSchema as eo, ContextCacheInsertSchema as ep, ContextCacheUpdateSchema as eq, ContextCacheApiSelectSchema as er, ContextCacheApiInsertSchema as es, ContextCacheApiUpdateSchema as et, DataComponentSelectSchema as eu, DataComponentInsertSchema as ev, DataComponentBaseSchema as ew, DataComponentUpdateSchema as ex, DataComponentApiSelectSchema as ey, DataComponentApiInsertSchema as ez, type ModelSettings as f, TenantIdParamsSchema as f$, ApiKeyUpdateSchema as f0, ApiKeyApiSelectSchema as f1, ApiKeyApiCreationResponseSchema as f2, ApiKeyApiInsertSchema as f3, CredentialReferenceSelectSchema as f4, CredentialReferenceInsertSchema as f5, CredentialReferenceUpdateSchema as f6, CredentialReferenceApiSelectSchema as f7, CredentialReferenceApiInsertSchema as f8, CredentialReferenceApiUpdateSchema as f9, LedgerArtifactApiSelectSchema as fA, LedgerArtifactApiInsertSchema as fB, LedgerArtifactApiUpdateSchema as fC, StatusComponentSchema as fD, StatusUpdateSchema as fE, CanUseItemSchema as fF, FullGraphDefinitionSchema as fG, GraphWithinContextOfProjectSchema as fH, PaginationSchema as fI, ListResponseSchema as fJ, SingleResponseSchema as fK, ErrorResponseSchema as fL, ExistsResponseSchema as fM, RemovedResponseSchema as fN, ProjectSelectSchema as fO, ProjectInsertSchema as fP, ProjectUpdateSchema as fQ, ProjectApiSelectSchema as fR, ProjectApiInsertSchema as fS, ProjectApiUpdateSchema as fT, FullProjectDefinitionSchema as fU, HeadersScopeSchema as fV, TenantParamsSchema as fW, TenantProjectParamsSchema as fX, TenantProjectGraphParamsSchema as fY, TenantProjectGraphIdParamsSchema as fZ, TenantProjectIdParamsSchema as f_, McpToolSchema as fa, MCPToolConfigSchema as fb, ToolUpdateSchema as fc, ToolApiSelectSchema as fd, ToolApiInsertSchema as fe, ToolApiUpdateSchema as ff, FunctionSelectSchema as fg, FunctionInsertSchema as fh, FunctionUpdateSchema as fi, FetchConfigSchema as fj, FetchDefinitionSchema as fk, ContextConfigSelectSchema as fl, ContextConfigInsertSchema as fm, ContextConfigUpdateSchema as fn, ContextConfigApiSelectSchema as fo, ContextConfigApiInsertSchema as fp, ContextConfigApiUpdateSchema as fq, AgentToolRelationSelectSchema as fr, AgentToolRelationInsertSchema as fs, AgentToolRelationUpdateSchema as ft, AgentToolRelationApiSelectSchema as fu, AgentToolRelationApiInsertSchema as fv, AgentToolRelationApiUpdateSchema as fw, LedgerArtifactSelectSchema as fx, LedgerArtifactInsertSchema as fy, LedgerArtifactUpdateSchema as fz, CredentialStoreType as g, IdParamsSchema as g0, PaginationQueryParamsSchema as g1, MCPTransportType as h, FunctionApiSelectSchema as i, FunctionApiUpdateSchema as j, SandboxConfigSchema as k, type ContextFetchDefinition as l, type ToolMcpConfig as m, type ToolServerCapabilities as n, type ConversationMetadata as o, type MessageContent as p, type MessageMetadata as q, type CredentialReferenceApiInsert as r, type ContextConfigSelect as s, type MCPToolConfig as t, type GraphScopeConfig as u, type ProjectScopeConfig as v, type PaginationConfig as w, type AgentGraphInsert as x, type AgentGraphUpdate as y, type FullGraphDefinition as z };
9245
+ export { type CredentialReferenceUpdate as $, ApiKeyApiUpdateSchema as A, type ApiKeySelect as B, type ConversationHistoryConfig as C, type ApiKeyInsert as D, type ApiKeyUpdate as E, FunctionApiInsertSchema as F, GraphStopWhenSchema as G, type CreateApiKeyParams as H, type ApiKeyCreateResult as I, type ArtifactComponentSelect as J, type ArtifactComponentInsert as K, type ArtifactComponentUpdate as L, ModelSettingsSchema as M, type AgentScopeConfig as N, type ContextCacheSelect as O, type Part as P, type ContextCacheInsert as Q, type ContextConfigInsert as R, StopWhenSchema as S, type TaskMetadataConfig as T, type ContextConfigUpdate as U, type ConversationSelect as V, type ConversationInsert as W, type ConversationUpdate as X, type CredentialReferenceSelect as Y, type ToolSelect as Z, type CredentialReferenceInsert as _, FullGraphAgentInsertSchema as a, type InvalidRequestError as a$, type DataComponentSelect as a0, type DataComponentInsert as a1, type DataComponentUpdate as a2, type ExternalAgentInsert as a3, type ExternalAgentSelect as a4, type ExternalAgentUpdate as a5, type FunctionApiInsert as a6, type FunctionToolApiInsert as a7, type FunctionToolApiUpdate as a8, type Artifact as a9, type FileBase as aA, type FileWithBytes as aB, type FileWithUri as aC, type FilePart as aD, type DataPart as aE, TaskState as aF, type AgentCapabilities as aG, type AgentProvider as aH, type AgentSkill as aI, type SecuritySchemeBase as aJ, type APIKeySecurityScheme as aK, type HTTPAuthSecurityScheme as aL, type OAuthFlows as aM, type AuthorizationCodeOAuthFlow as aN, type ClientCredentialsOAuthFlow as aO, type ImplicitOAuthFlow as aP, type PasswordOAuthFlow as aQ, type OAuth2SecurityScheme as aR, type OpenIdConnectSecurityScheme as aS, type SecurityScheme as aT, type AgentCard as aU, type Message as aV, type TaskStatus as aW, type Task as aX, type TaskStatusUpdateEvent as aY, type TaskArtifactUpdateEvent as aZ, type JSONParseError as a_, type LedgerArtifactSelect as aa, type MessageVisibility as ab, type MessageInsert as ac, type MessageUpdate as ad, type FullProjectDefinition as ae, type ProjectInfo as af, type ProjectSelect as ag, type PaginationResult as ah, type ProjectResourceCounts as ai, type ProjectInsert as aj, type ProjectUpdate as ak, type SubAgentRelationInsert as al, type ExternalSubAgentRelationInsert as am, type SubAgentRelationUpdate as an, type SubAgentToolRelationUpdate as ao, type SubAgentInsert as ap, type SubAgentUpdate as aq, type SubAgentSelect as ar, type TaskInsert as as, type TaskSelect as at, type McpTool as au, type ToolInsert as av, type ToolUpdate as aw, type ExecutionContext as ax, type PartBase as ay, type TextPart as az, SubAgentStopWhenSchema as b, type TaskRelationInsert as b$, type MethodNotFoundError as b0, type InvalidParamsError as b1, type InternalError as b2, type TaskNotFoundError as b3, type TaskNotCancelableError as b4, type PushNotificationNotSupportedError as b5, type UnsupportedOperationError as b6, type ContentTypeNotSupportedError as b7, type InvalidAgentResponseError as b8, type A2AError as b9, type CancelTaskResponse as bA, type SetTaskPushNotificationConfigSuccessResponse as bB, type SetTaskPushNotificationConfigResponse as bC, type GetTaskPushNotificationConfigSuccessResponse as bD, type GetTaskPushNotificationConfigResponse as bE, type A2ARequest as bF, type A2AResponse as bG, type MessagePart as bH, type TaskArtifact as bI, type SubAgentApiSelect as bJ, type SubAgentApiInsert as bK, type SubAgentApiUpdate as bL, type SubAgentRelationSelect as bM, type SubAgentRelationApiSelect as bN, type SubAgentRelationApiInsert as bO, type SubAgentRelationApiUpdate as bP, type SubAgentRelationQuery as bQ, type ExternalSubAgentRelationApiInsert as bR, type AgentGraphSelect as bS, type AgentGraphApiSelect as bT, type AgentGraphApiInsert as bU, type AgentGraphApiUpdate as bV, type TaskUpdate as bW, type TaskApiSelect as bX, type TaskApiInsert as bY, type TaskApiUpdate as bZ, type TaskRelationSelect as b_, type PushNotificationAuthenticationInfo as ba, type PushNotificationConfig as bb, type TaskPushNotificationConfig as bc, type TaskIdParams as bd, type TaskQueryParams as be, type MessageSendConfiguration as bf, type MessageSendParams as bg, type JSONRPCMessage as bh, type JSONRPCRequest as bi, type JSONRPCError as bj, type JSONRPCResult as bk, type JSONRPCErrorResponse as bl, type SendMessageRequest as bm, type SendStreamingMessageRequest as bn, type GetTaskRequest as bo, type CancelTaskRequest as bp, type SetTaskPushNotificationConfigRequest as bq, type GetTaskPushNotificationConfigRequest as br, type TaskResubscriptionRequest as bs, type SendMessageSuccessResponse as bt, type SendMessageResponse as bu, type SendStreamingMessageSuccessResponse as bv, type SendStreamingMessageResponse as bw, type GetTaskSuccessResponse as bx, type GetTaskResponse as by, type CancelTaskSuccessResponse as bz, type StopWhen as c, type LedgerArtifactUpdate as c$, type TaskRelationUpdate as c0, type TaskRelationApiSelect as c1, type TaskRelationApiInsert as c2, type TaskRelationApiUpdate as c3, type ToolApiSelect as c4, type ToolApiInsert as c5, type ToolApiUpdate as c6, type FunctionSelect as c7, type FunctionInsert as c8, type FunctionUpdate as c9, type SubAgentDataComponentApiInsert as cA, type SubAgentDataComponentApiUpdate as cB, type ArtifactComponentApiSelect as cC, type ArtifactComponentApiInsert as cD, type ArtifactComponentApiUpdate as cE, type SubAgentArtifactComponentSelect as cF, type SubAgentArtifactComponentInsert as cG, type SubAgentArtifactComponentUpdate as cH, type SubAgentArtifactComponentApiSelect as cI, type SubAgentArtifactComponentApiInsert as cJ, type SubAgentArtifactComponentApiUpdate as cK, type ExternalAgentApiSelect as cL, type ExternalAgentApiInsert as cM, type ExternalAgentApiUpdate as cN, type AllAgentSelect as cO, type ApiKeyApiSelect as cP, type ApiKeyApiInsert as cQ, type ApiKeyApiUpdate as cR, type ApiKeyApiCreationResponse as cS, type CredentialReferenceApiSelect as cT, type CredentialReferenceApiUpdate as cU, type SubAgentToolRelationSelect as cV, type SubAgentToolRelationInsert as cW, type SubAgentToolRelationApiSelect as cX, type SubAgentToolRelationApiInsert as cY, type SubAgentToolRelationApiUpdate as cZ, type LedgerArtifactInsert as c_, type FunctionApiSelect as ca, type FunctionApiUpdate as cb, type FunctionToolApiSelect as cc, type ConversationApiSelect as cd, type ConversationApiInsert as ce, type ConversationApiUpdate as cf, type MessageSelect as cg, type MessageApiSelect as ch, type MessageApiInsert as ci, type MessageApiUpdate as cj, type ContextConfigApiSelect as ck, type ContextConfigApiInsert as cl, type ContextConfigApiUpdate as cm, type FetchDefinition as cn, type FetchConfig as co, type ContextCacheUpdate as cp, type ContextCacheApiSelect as cq, type ContextCacheApiInsert as cr, type ContextCacheApiUpdate as cs, type DataComponentApiSelect as ct, type DataComponentApiInsert as cu, type DataComponentApiUpdate as cv, type SubAgentDataComponentSelect as cw, type SubAgentDataComponentInsert as cx, type SubAgentDataComponentUpdate as cy, type SubAgentDataComponentApiSelect as cz, type GraphStopWhen as d, TaskInsertSchema as d$, type LedgerArtifactApiSelect as d0, type LedgerArtifactApiInsert as d1, type LedgerArtifactApiUpdate as d2, type FullGraphAgentInsert as d3, type CanUseItem as d4, type InternalAgentDefinition as d5, type AgentDefinition as d6, type ToolDefinition as d7, type ProjectApiSelect as d8, type ProjectApiInsert as d9, ModelSchema as dA, ProjectModelSchema as dB, type SandboxConfig as dC, FunctionToolConfigSchema as dD, type FunctionToolConfig as dE, SubAgentSelectSchema as dF, SubAgentInsertSchema as dG, SubAgentUpdateSchema as dH, SubAgentApiSelectSchema as dI, SubAgentApiInsertSchema as dJ, SubAgentApiUpdateSchema as dK, SubAgentRelationSelectSchema as dL, SubAgentRelationInsertSchema as dM, SubAgentRelationUpdateSchema as dN, SubAgentRelationApiSelectSchema as dO, SubAgentRelationApiInsertSchema as dP, SubAgentRelationApiUpdateSchema as dQ, SubAgentRelationQuerySchema as dR, ExternalSubAgentRelationInsertSchema as dS, ExternalSubAgentRelationApiInsertSchema as dT, AgentGraphSelectSchema as dU, AgentGraphInsertSchema as dV, AgentGraphUpdateSchema as dW, AgentGraphApiSelectSchema as dX, AgentGraphApiInsertSchema as dY, AgentGraphApiUpdateSchema as dZ, TaskSelectSchema as d_, type ProjectApiUpdate as da, type Pagination as db, type SummaryEvent as dc, type MessageType as dd, type MessageRole as de, type MessageMode as df, type Models as dg, type ProjectModels as dh, type StatusUpdateSettings as di, type StatusComponent as dj, type ConversationScopeOptions as dk, type AgentConversationHistoryConfig as dl, type ContextCacheEntry as dm, type McpAuthType as dn, type McpServerAuth as dp, type McpTransportConfig as dq, type McpServerCapabilities as dr, type McpToolDefinition as ds, TOOL_STATUS_VALUES as dt, VALID_RELATION_TYPES as du, MCPServerType as dv, MIN_ID_LENGTH as dw, MAX_ID_LENGTH as dx, URL_SAFE_ID_PATTERN as dy, resourceIdSchema as dz, type SubAgentStopWhen as e, ExternalAgentApiUpdateSchema as e$, TaskUpdateSchema as e0, TaskApiSelectSchema as e1, TaskApiInsertSchema as e2, TaskApiUpdateSchema as e3, TaskRelationSelectSchema as e4, TaskRelationInsertSchema as e5, TaskRelationUpdateSchema as e6, TaskRelationApiSelectSchema as e7, TaskRelationApiInsertSchema as e8, TaskRelationApiUpdateSchema as e9, DataComponentUpdateSchema as eA, DataComponentApiSelectSchema as eB, DataComponentApiInsertSchema as eC, DataComponentApiUpdateSchema as eD, SubAgentDataComponentSelectSchema as eE, SubAgentDataComponentInsertSchema as eF, SubAgentDataComponentUpdateSchema as eG, SubAgentDataComponentApiSelectSchema as eH, SubAgentDataComponentApiInsertSchema as eI, SubAgentDataComponentApiUpdateSchema as eJ, ArtifactComponentSelectSchema as eK, ArtifactComponentInsertSchema as eL, ArtifactComponentUpdateSchema as eM, ArtifactComponentApiSelectSchema as eN, ArtifactComponentApiInsertSchema as eO, ArtifactComponentApiUpdateSchema as eP, SubAgentArtifactComponentSelectSchema as eQ, SubAgentArtifactComponentInsertSchema as eR, SubAgentArtifactComponentUpdateSchema as eS, SubAgentArtifactComponentApiSelectSchema as eT, SubAgentArtifactComponentApiInsertSchema as eU, SubAgentArtifactComponentApiUpdateSchema as eV, ExternalAgentSelectSchema as eW, ExternalAgentInsertSchema as eX, ExternalAgentUpdateSchema as eY, ExternalAgentApiSelectSchema as eZ, ExternalAgentApiInsertSchema as e_, McpTransportConfigSchema as ea, ToolStatusSchema as eb, McpToolDefinitionSchema as ec, ToolSelectSchema as ed, ToolInsertSchema as ee, ConversationSelectSchema as ef, ConversationInsertSchema as eg, ConversationUpdateSchema as eh, ConversationApiSelectSchema as ei, ConversationApiInsertSchema as ej, ConversationApiUpdateSchema as ek, MessageSelectSchema as el, MessageInsertSchema as em, MessageUpdateSchema as en, MessageApiSelectSchema as eo, MessageApiInsertSchema as ep, MessageApiUpdateSchema as eq, ContextCacheSelectSchema as er, ContextCacheInsertSchema as es, ContextCacheUpdateSchema as et, ContextCacheApiSelectSchema as eu, ContextCacheApiInsertSchema as ev, ContextCacheApiUpdateSchema as ew, DataComponentSelectSchema as ex, DataComponentInsertSchema as ey, DataComponentBaseSchema as ez, type ModelSettings as f, ProjectApiInsertSchema as f$, AllAgentSchema as f0, ApiKeySelectSchema as f1, ApiKeyInsertSchema as f2, ApiKeyUpdateSchema as f3, ApiKeyApiSelectSchema as f4, ApiKeyApiCreationResponseSchema as f5, ApiKeyApiInsertSchema as f6, CredentialReferenceSelectSchema as f7, CredentialReferenceInsertSchema as f8, CredentialReferenceUpdateSchema as f9, SubAgentToolRelationSelectSchema as fA, SubAgentToolRelationInsertSchema as fB, SubAgentToolRelationUpdateSchema as fC, SubAgentToolRelationApiSelectSchema as fD, SubAgentToolRelationApiInsertSchema as fE, SubAgentToolRelationApiUpdateSchema as fF, LedgerArtifactSelectSchema as fG, LedgerArtifactInsertSchema as fH, LedgerArtifactUpdateSchema as fI, LedgerArtifactApiSelectSchema as fJ, LedgerArtifactApiInsertSchema as fK, LedgerArtifactApiUpdateSchema as fL, StatusComponentSchema as fM, StatusUpdateSchema as fN, CanUseItemSchema as fO, FullGraphDefinitionSchema as fP, GraphWithinContextOfProjectSchema as fQ, PaginationSchema as fR, ListResponseSchema as fS, SingleResponseSchema as fT, ErrorResponseSchema as fU, ExistsResponseSchema as fV, RemovedResponseSchema as fW, ProjectSelectSchema as fX, ProjectInsertSchema as fY, ProjectUpdateSchema as fZ, ProjectApiSelectSchema as f_, CredentialReferenceApiSelectSchema as fa, CredentialReferenceApiInsertSchema as fb, CredentialReferenceApiUpdateSchema as fc, McpToolSchema as fd, MCPToolConfigSchema as fe, ToolUpdateSchema as ff, ToolApiSelectSchema as fg, ToolApiInsertSchema as fh, ToolApiUpdateSchema as fi, FunctionToolSelectSchema as fj, FunctionToolInsertSchema as fk, FunctionToolUpdateSchema as fl, FunctionToolApiSelectSchema as fm, FunctionToolApiInsertSchema as fn, FunctionToolApiUpdateSchema as fo, FunctionSelectSchema as fp, FunctionInsertSchema as fq, FunctionUpdateSchema as fr, FetchConfigSchema as fs, FetchDefinitionSchema as ft, ContextConfigSelectSchema as fu, ContextConfigInsertSchema as fv, ContextConfigUpdateSchema as fw, ContextConfigApiSelectSchema as fx, ContextConfigApiInsertSchema as fy, ContextConfigApiUpdateSchema as fz, CredentialStoreType as g, ProjectApiUpdateSchema as g0, FullProjectDefinitionSchema as g1, HeadersScopeSchema as g2, TenantParamsSchema as g3, TenantIdParamsSchema as g4, TenantProjectParamsSchema as g5, TenantProjectIdParamsSchema as g6, TenantProjectGraphParamsSchema as g7, TenantProjectGraphIdParamsSchema as g8, TenantProjectGraphSubAgentParamsSchema as g9, TenantProjectGraphSubAgentIdParamsSchema as ga, PaginationQueryParamsSchema as gb, MCPTransportType as h, FunctionApiSelectSchema as i, FunctionApiUpdateSchema as j, SandboxConfigSchema as k, type ContextFetchDefinition as l, type ToolMcpConfig as m, type ToolServerCapabilities as n, type ConversationMetadata as o, type MessageContent as p, type MessageMetadata as q, type CredentialReferenceApiInsert as r, type ContextConfigSelect as s, type MCPToolConfig as t, type GraphScopeConfig as u, type ProjectScopeConfig as v, type PaginationConfig as w, type AgentGraphInsert as x, type AgentGraphUpdate as y, type FullGraphDefinition as z };