@inkeep/agents-core 0.32.1 → 0.33.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.
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var zodOpenapi = require('@hono/zod-openapi');
4
- var drizzleZod = require('drizzle-zod');
5
4
  var drizzleOrm = require('drizzle-orm');
6
5
  var pgCore = require('drizzle-orm/pg-core');
6
+ var drizzleZod = require('drizzle-zod');
7
7
  var zod = require('zod');
8
8
  var Ajv = require('ajv');
9
9
 
@@ -1034,6 +1034,151 @@ var CredentialStoreType = {
1034
1034
  keychain: "keychain",
1035
1035
  nango: "nango"
1036
1036
  };
1037
+ var MIN_ID_LENGTH = 1;
1038
+ var MAX_ID_LENGTH = 255;
1039
+ var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
1040
+ var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
1041
+ message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
1042
+ }).openapi({
1043
+ description: "Resource identifier",
1044
+ example: "resource_789"
1045
+ });
1046
+ resourceIdSchema.meta({
1047
+ description: "Resource identifier"
1048
+ });
1049
+ var FIELD_MODIFIERS = {
1050
+ id: (schema) => {
1051
+ const modified = schema.min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
1052
+ message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
1053
+ }).openapi({
1054
+ description: "Resource identifier",
1055
+ example: "resource_789"
1056
+ });
1057
+ modified.meta({
1058
+ description: "Resource identifier"
1059
+ });
1060
+ return modified;
1061
+ },
1062
+ name: (_schema) => {
1063
+ const modified = zodOpenapi.z.string().describe("Name");
1064
+ modified.meta({ description: "Name" });
1065
+ return modified;
1066
+ },
1067
+ description: (_schema) => {
1068
+ const modified = zodOpenapi.z.string().describe("Description");
1069
+ modified.meta({ description: "Description" });
1070
+ return modified;
1071
+ },
1072
+ tenantId: (schema) => {
1073
+ const modified = schema.describe("Tenant identifier");
1074
+ modified.meta({ description: "Tenant identifier" });
1075
+ return modified;
1076
+ },
1077
+ projectId: (schema) => {
1078
+ const modified = schema.describe("Project identifier");
1079
+ modified.meta({ description: "Project identifier" });
1080
+ return modified;
1081
+ },
1082
+ agentId: (schema) => {
1083
+ const modified = schema.describe("Agent identifier");
1084
+ modified.meta({ description: "Agent identifier" });
1085
+ return modified;
1086
+ },
1087
+ subAgentId: (schema) => {
1088
+ const modified = schema.describe("Sub-agent identifier");
1089
+ modified.meta({ description: "Sub-agent identifier" });
1090
+ return modified;
1091
+ },
1092
+ createdAt: (schema) => {
1093
+ const modified = schema.describe("Creation timestamp");
1094
+ modified.meta({ description: "Creation timestamp" });
1095
+ return modified;
1096
+ },
1097
+ updatedAt: (schema) => {
1098
+ const modified = schema.describe("Last update timestamp");
1099
+ modified.meta({ description: "Last update timestamp" });
1100
+ return modified;
1101
+ }
1102
+ };
1103
+ function createSelectSchemaWithModifiers(table, overrides) {
1104
+ const tableColumns = table._?.columns;
1105
+ if (!tableColumns) {
1106
+ return drizzleZod.createSelectSchema(table, overrides);
1107
+ }
1108
+ const tableFieldNames = Object.keys(tableColumns);
1109
+ const modifiers = {};
1110
+ for (const fieldName of tableFieldNames) {
1111
+ const fieldNameStr = String(fieldName);
1112
+ if (fieldNameStr in FIELD_MODIFIERS) {
1113
+ modifiers[fieldNameStr] = FIELD_MODIFIERS[fieldNameStr];
1114
+ }
1115
+ }
1116
+ const mergedModifiers = { ...modifiers, ...overrides };
1117
+ return drizzleZod.createSelectSchema(table, mergedModifiers);
1118
+ }
1119
+ function createInsertSchemaWithModifiers(table, overrides) {
1120
+ const tableColumns = table._?.columns;
1121
+ if (!tableColumns) {
1122
+ return drizzleZod.createInsertSchema(table, overrides);
1123
+ }
1124
+ const tableFieldNames = Object.keys(tableColumns);
1125
+ const modifiers = {};
1126
+ for (const fieldName of tableFieldNames) {
1127
+ const fieldNameStr = String(fieldName);
1128
+ if (fieldNameStr in FIELD_MODIFIERS) {
1129
+ modifiers[fieldNameStr] = FIELD_MODIFIERS[fieldNameStr];
1130
+ }
1131
+ }
1132
+ const mergedModifiers = { ...modifiers, ...overrides };
1133
+ return drizzleZod.createInsertSchema(table, mergedModifiers);
1134
+ }
1135
+ var createSelectSchema = createSelectSchemaWithModifiers;
1136
+ var createInsertSchema = createInsertSchemaWithModifiers;
1137
+ function registerFieldSchemas(schema) {
1138
+ if (!(schema instanceof zodOpenapi.z.ZodObject)) {
1139
+ return schema;
1140
+ }
1141
+ const shape = schema.shape;
1142
+ const fieldMetadata = {
1143
+ id: { description: "Resource identifier" },
1144
+ name: { description: "Name" },
1145
+ description: { description: "Description" },
1146
+ tenantId: { description: "Tenant identifier" },
1147
+ projectId: { description: "Project identifier" },
1148
+ agentId: { description: "Agent identifier" },
1149
+ subAgentId: { description: "Sub-agent identifier" },
1150
+ createdAt: { description: "Creation timestamp" },
1151
+ updatedAt: { description: "Last update timestamp" }
1152
+ };
1153
+ for (const [fieldName, fieldSchema] of Object.entries(shape)) {
1154
+ if (fieldName in fieldMetadata && fieldSchema) {
1155
+ let zodFieldSchema = fieldSchema;
1156
+ let innerSchema = null;
1157
+ if (zodFieldSchema instanceof zodOpenapi.z.ZodOptional) {
1158
+ innerSchema = zodFieldSchema._def.innerType;
1159
+ zodFieldSchema = innerSchema;
1160
+ }
1161
+ zodFieldSchema.meta(fieldMetadata[fieldName]);
1162
+ if (fieldName === "id" && zodFieldSchema instanceof zodOpenapi.z.ZodString) {
1163
+ zodFieldSchema.openapi({
1164
+ description: "Resource identifier",
1165
+ minLength: MIN_ID_LENGTH,
1166
+ maxLength: MAX_ID_LENGTH,
1167
+ pattern: URL_SAFE_ID_PATTERN.source,
1168
+ example: "resource_789"
1169
+ });
1170
+ } else if (zodFieldSchema instanceof zodOpenapi.z.ZodString) {
1171
+ zodFieldSchema.openapi({
1172
+ description: fieldMetadata[fieldName].description
1173
+ });
1174
+ }
1175
+ if (innerSchema && fieldSchema instanceof zodOpenapi.z.ZodOptional) {
1176
+ fieldSchema.meta(fieldMetadata[fieldName]);
1177
+ }
1178
+ }
1179
+ }
1180
+ return schema;
1181
+ }
1037
1182
 
1038
1183
  // src/validation/schemas.ts
1039
1184
  var {
@@ -1057,14 +1202,8 @@ var AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi
1057
1202
  var SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi(
1058
1203
  "SubAgentStopWhen"
1059
1204
  );
1060
- var MIN_ID_LENGTH = 1;
1061
- var MAX_ID_LENGTH = 255;
1062
- var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
1063
- var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
1064
- message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
1065
- }).openapi({
1066
- example: "resource_789"
1067
- });
1205
+ var pageNumber = zodOpenapi.z.coerce.number().min(1).default(1).openapi("PaginationPageQueryParam");
1206
+ var limitNumber = zodOpenapi.z.coerce.number().min(1).max(100).default(10).openapi("PaginationLimitQueryParam");
1068
1207
  var ModelSettingsSchema = zodOpenapi.z.object({
1069
1208
  model: zodOpenapi.z.string().optional().describe("The model to use for the project."),
1070
1209
  providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional().describe("The provider options to use for the project.")
@@ -1092,8 +1231,8 @@ var createApiUpdateSchema = (schema) => schema.omit({ tenantId: true, projectId:
1092
1231
  var createAgentScopedApiSchema = (schema) => schema.omit({ tenantId: true, projectId: true, agentId: true });
1093
1232
  var createAgentScopedApiInsertSchema = (schema) => schema.omit({ tenantId: true, projectId: true, agentId: true });
1094
1233
  var createAgentScopedApiUpdateSchema = (schema) => schema.omit({ tenantId: true, projectId: true, agentId: true }).partial();
1095
- var SubAgentSelectSchema = drizzleZod.createSelectSchema(subAgents);
1096
- var SubAgentInsertSchema = drizzleZod.createInsertSchema(subAgents).extend({
1234
+ var SubAgentSelectSchema = createSelectSchema(subAgents);
1235
+ var SubAgentInsertSchema = createInsertSchema(subAgents).extend({
1097
1236
  id: resourceIdSchema,
1098
1237
  models: ModelSchema.optional()
1099
1238
  });
@@ -1101,8 +1240,8 @@ var SubAgentUpdateSchema = SubAgentInsertSchema.partial();
1101
1240
  var SubAgentApiSelectSchema = createAgentScopedApiSchema(SubAgentSelectSchema).openapi("SubAgent");
1102
1241
  var SubAgentApiInsertSchema = createAgentScopedApiInsertSchema(SubAgentInsertSchema).openapi("SubAgentCreate");
1103
1242
  var SubAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentUpdateSchema).openapi("SubAgentUpdate");
1104
- var SubAgentRelationSelectSchema = drizzleZod.createSelectSchema(subAgentRelations);
1105
- var SubAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelations).extend({
1243
+ var SubAgentRelationSelectSchema = createSelectSchema(subAgentRelations);
1244
+ var SubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
1106
1245
  id: resourceIdSchema,
1107
1246
  agentId: resourceIdSchema,
1108
1247
  sourceSubAgentId: resourceIdSchema,
@@ -1157,7 +1296,7 @@ var SubAgentRelationQuerySchema = zodOpenapi.z.object({
1157
1296
  externalSubAgentId: zodOpenapi.z.string().optional(),
1158
1297
  teamSubAgentId: zodOpenapi.z.string().optional()
1159
1298
  });
1160
- var ExternalSubAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelations).extend({
1299
+ var ExternalSubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
1161
1300
  id: resourceIdSchema,
1162
1301
  agentId: resourceIdSchema,
1163
1302
  sourceSubAgentId: resourceIdSchema,
@@ -1166,8 +1305,8 @@ var ExternalSubAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgen
1166
1305
  var ExternalSubAgentRelationApiInsertSchema = createApiInsertSchema(
1167
1306
  ExternalSubAgentRelationInsertSchema
1168
1307
  );
1169
- var AgentSelectSchema = drizzleZod.createSelectSchema(agents);
1170
- var AgentInsertSchema = drizzleZod.createInsertSchema(agents).extend({
1308
+ var AgentSelectSchema = createSelectSchema(agents);
1309
+ var AgentInsertSchema = createInsertSchema(agents).extend({
1171
1310
  id: resourceIdSchema,
1172
1311
  name: zodOpenapi.z.string().trim().nonempty()
1173
1312
  });
@@ -1177,8 +1316,8 @@ var AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({
1177
1316
  id: resourceIdSchema
1178
1317
  }).openapi("AgentCreate");
1179
1318
  var AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi("AgentUpdate");
1180
- var TaskSelectSchema = drizzleZod.createSelectSchema(tasks);
1181
- var TaskInsertSchema = drizzleZod.createInsertSchema(tasks).extend({
1319
+ var TaskSelectSchema = createSelectSchema(tasks);
1320
+ var TaskInsertSchema = createInsertSchema(tasks).extend({
1182
1321
  id: resourceIdSchema,
1183
1322
  conversationId: resourceIdSchema.optional()
1184
1323
  });
@@ -1186,8 +1325,8 @@ var TaskUpdateSchema = TaskInsertSchema.partial();
1186
1325
  var TaskApiSelectSchema = createApiSchema(TaskSelectSchema);
1187
1326
  var TaskApiInsertSchema = createApiInsertSchema(TaskInsertSchema);
1188
1327
  var TaskApiUpdateSchema = createApiUpdateSchema(TaskUpdateSchema);
1189
- var TaskRelationSelectSchema = drizzleZod.createSelectSchema(taskRelations);
1190
- var TaskRelationInsertSchema = drizzleZod.createInsertSchema(taskRelations).extend({
1328
+ var TaskRelationSelectSchema = createSelectSchema(taskRelations);
1329
+ var TaskRelationInsertSchema = createInsertSchema(taskRelations).extend({
1191
1330
  id: resourceIdSchema,
1192
1331
  parentTaskId: resourceIdSchema,
1193
1332
  childTaskId: resourceIdSchema
@@ -1231,8 +1370,8 @@ var McpToolDefinitionSchema = zodOpenapi.z.object({
1231
1370
  description: zodOpenapi.z.string().optional(),
1232
1371
  inputSchema: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).optional()
1233
1372
  });
1234
- var ToolSelectSchema = drizzleZod.createSelectSchema(tools);
1235
- var ToolInsertSchema = drizzleZod.createInsertSchema(tools).extend({
1373
+ var ToolSelectSchema = createSelectSchema(tools);
1374
+ var ToolInsertSchema = createInsertSchema(tools).extend({
1236
1375
  id: resourceIdSchema,
1237
1376
  imageUrl: imageUrlSchema,
1238
1377
  config: zodOpenapi.z.object({
@@ -1255,8 +1394,8 @@ var ToolInsertSchema = drizzleZod.createInsertSchema(tools).extend({
1255
1394
  })
1256
1395
  })
1257
1396
  });
1258
- var ConversationSelectSchema = drizzleZod.createSelectSchema(conversations);
1259
- var ConversationInsertSchema = drizzleZod.createInsertSchema(conversations).extend({
1397
+ var ConversationSelectSchema = createSelectSchema(conversations);
1398
+ var ConversationInsertSchema = createInsertSchema(conversations).extend({
1260
1399
  id: resourceIdSchema,
1261
1400
  contextConfigId: resourceIdSchema.optional()
1262
1401
  });
@@ -1264,8 +1403,8 @@ var ConversationUpdateSchema = ConversationInsertSchema.partial();
1264
1403
  var ConversationApiSelectSchema = createApiSchema(ConversationSelectSchema).openapi("Conversation");
1265
1404
  var ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSchema).openapi("ConversationCreate");
1266
1405
  var ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema).openapi("ConversationUpdate");
1267
- var MessageSelectSchema = drizzleZod.createSelectSchema(messages);
1268
- var MessageInsertSchema = drizzleZod.createInsertSchema(messages).extend({
1406
+ var MessageSelectSchema = createSelectSchema(messages);
1407
+ var MessageInsertSchema = createInsertSchema(messages).extend({
1269
1408
  id: resourceIdSchema,
1270
1409
  conversationId: resourceIdSchema,
1271
1410
  taskId: resourceIdSchema.optional()
@@ -1274,14 +1413,14 @@ var MessageUpdateSchema = MessageInsertSchema.partial();
1274
1413
  var MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Message");
1275
1414
  var MessageApiInsertSchema = createApiInsertSchema(MessageInsertSchema).openapi("MessageCreate");
1276
1415
  var MessageApiUpdateSchema = createApiUpdateSchema(MessageUpdateSchema).openapi("MessageUpdate");
1277
- var ContextCacheSelectSchema = drizzleZod.createSelectSchema(contextCache);
1278
- var ContextCacheInsertSchema = drizzleZod.createInsertSchema(contextCache);
1416
+ var ContextCacheSelectSchema = createSelectSchema(contextCache);
1417
+ var ContextCacheInsertSchema = createInsertSchema(contextCache);
1279
1418
  var ContextCacheUpdateSchema = ContextCacheInsertSchema.partial();
1280
1419
  var ContextCacheApiSelectSchema = createApiSchema(ContextCacheSelectSchema);
1281
1420
  var ContextCacheApiInsertSchema = createApiInsertSchema(ContextCacheInsertSchema);
1282
1421
  var ContextCacheApiUpdateSchema = createApiUpdateSchema(ContextCacheUpdateSchema);
1283
- var DataComponentSelectSchema = drizzleZod.createSelectSchema(dataComponents);
1284
- var DataComponentInsertSchema = drizzleZod.createInsertSchema(dataComponents).extend({
1422
+ var DataComponentSelectSchema = createSelectSchema(dataComponents);
1423
+ var DataComponentInsertSchema = createInsertSchema(dataComponents).extend({
1285
1424
  id: resourceIdSchema
1286
1425
  });
1287
1426
  var DataComponentBaseSchema = DataComponentInsertSchema.omit({
@@ -1292,8 +1431,8 @@ var DataComponentUpdateSchema = DataComponentInsertSchema.partial();
1292
1431
  var DataComponentApiSelectSchema = createApiSchema(DataComponentSelectSchema).openapi("DataComponent");
1293
1432
  var DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema).openapi("DataComponentCreate");
1294
1433
  var DataComponentApiUpdateSchema = createApiUpdateSchema(DataComponentUpdateSchema).openapi("DataComponentUpdate");
1295
- var SubAgentDataComponentSelectSchema = drizzleZod.createSelectSchema(subAgentDataComponents);
1296
- var SubAgentDataComponentInsertSchema = drizzleZod.createInsertSchema(subAgentDataComponents);
1434
+ var SubAgentDataComponentSelectSchema = createSelectSchema(subAgentDataComponents);
1435
+ var SubAgentDataComponentInsertSchema = createInsertSchema(subAgentDataComponents);
1297
1436
  var SubAgentDataComponentUpdateSchema = SubAgentDataComponentInsertSchema.partial();
1298
1437
  var SubAgentDataComponentApiSelectSchema = createAgentScopedApiSchema(
1299
1438
  SubAgentDataComponentSelectSchema
@@ -1307,8 +1446,8 @@ var SubAgentDataComponentApiInsertSchema = SubAgentDataComponentInsertSchema.omi
1307
1446
  var SubAgentDataComponentApiUpdateSchema = createAgentScopedApiUpdateSchema(
1308
1447
  SubAgentDataComponentUpdateSchema
1309
1448
  );
1310
- var ArtifactComponentSelectSchema = drizzleZod.createSelectSchema(artifactComponents);
1311
- var ArtifactComponentInsertSchema = drizzleZod.createInsertSchema(artifactComponents).extend({
1449
+ var ArtifactComponentSelectSchema = createSelectSchema(artifactComponents);
1450
+ var ArtifactComponentInsertSchema = createInsertSchema(artifactComponents).extend({
1312
1451
  id: resourceIdSchema
1313
1452
  });
1314
1453
  var ArtifactComponentUpdateSchema = ArtifactComponentInsertSchema.partial();
@@ -1324,8 +1463,8 @@ var ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
1324
1463
  var ArtifactComponentApiUpdateSchema = createApiUpdateSchema(
1325
1464
  ArtifactComponentUpdateSchema
1326
1465
  ).openapi("ArtifactComponentUpdate");
1327
- var SubAgentArtifactComponentSelectSchema = drizzleZod.createSelectSchema(subAgentArtifactComponents);
1328
- var SubAgentArtifactComponentInsertSchema = drizzleZod.createInsertSchema(
1466
+ var SubAgentArtifactComponentSelectSchema = createSelectSchema(subAgentArtifactComponents);
1467
+ var SubAgentArtifactComponentInsertSchema = createInsertSchema(
1329
1468
  subAgentArtifactComponents
1330
1469
  ).extend({
1331
1470
  id: resourceIdSchema,
@@ -1345,10 +1484,10 @@ var SubAgentArtifactComponentApiInsertSchema = SubAgentArtifactComponentInsertSc
1345
1484
  var SubAgentArtifactComponentApiUpdateSchema = createAgentScopedApiUpdateSchema(
1346
1485
  SubAgentArtifactComponentUpdateSchema
1347
1486
  );
1348
- var ExternalAgentSelectSchema = drizzleZod.createSelectSchema(externalAgents).extend({
1487
+ var ExternalAgentSelectSchema = createSelectSchema(externalAgents).extend({
1349
1488
  credentialReferenceId: zodOpenapi.z.string().nullable().optional()
1350
1489
  });
1351
- var ExternalAgentInsertSchema = drizzleZod.createInsertSchema(externalAgents).extend({
1490
+ var ExternalAgentInsertSchema = createInsertSchema(externalAgents).extend({
1352
1491
  id: resourceIdSchema
1353
1492
  });
1354
1493
  var ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
@@ -1359,8 +1498,8 @@ var AllAgentSchema = zodOpenapi.z.discriminatedUnion("type", [
1359
1498
  SubAgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("internal") }),
1360
1499
  ExternalAgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("external") })
1361
1500
  ]);
1362
- var ApiKeySelectSchema = drizzleZod.createSelectSchema(apiKeys);
1363
- var ApiKeyInsertSchema = drizzleZod.createInsertSchema(apiKeys).extend({
1501
+ var ApiKeySelectSchema = createSelectSchema(apiKeys);
1502
+ var ApiKeyInsertSchema = createInsertSchema(apiKeys).extend({
1364
1503
  id: resourceIdSchema,
1365
1504
  agentId: resourceIdSchema
1366
1505
  });
@@ -1411,7 +1550,7 @@ var CredentialReferenceSelectSchema = zodOpenapi.z.object({
1411
1550
  createdAt: zodOpenapi.z.string(),
1412
1551
  updatedAt: zodOpenapi.z.string()
1413
1552
  });
1414
- var CredentialReferenceInsertSchema = drizzleZod.createInsertSchema(credentialReferences).extend({
1553
+ var CredentialReferenceInsertSchema = createInsertSchema(credentialReferences).extend({
1415
1554
  id: resourceIdSchema,
1416
1555
  type: zodOpenapi.z.string(),
1417
1556
  credentialStoreId: resourceIdSchema,
@@ -1482,7 +1621,7 @@ var McpToolSchema = ToolInsertSchema.extend({
1482
1621
  createdAt: zodOpenapi.z.date(),
1483
1622
  updatedAt: zodOpenapi.z.date(),
1484
1623
  expiresAt: zodOpenapi.z.date().optional()
1485
- });
1624
+ }).openapi("McpTool");
1486
1625
  var MCPToolConfigSchema = McpToolSchema.omit({
1487
1626
  config: true,
1488
1627
  tenantId: true,
@@ -1506,16 +1645,16 @@ var ToolUpdateSchema = ToolInsertSchema.partial();
1506
1645
  var ToolApiSelectSchema = createApiSchema(ToolSelectSchema).openapi("Tool");
1507
1646
  var ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema).openapi("ToolCreate");
1508
1647
  var ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema).openapi("ToolUpdate");
1509
- var FunctionToolSelectSchema = drizzleZod.createSelectSchema(functionTools);
1510
- var FunctionToolInsertSchema = drizzleZod.createInsertSchema(functionTools).extend({
1648
+ var FunctionToolSelectSchema = createSelectSchema(functionTools);
1649
+ var FunctionToolInsertSchema = createInsertSchema(functionTools).extend({
1511
1650
  id: resourceIdSchema
1512
1651
  });
1513
1652
  var FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
1514
1653
  var FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).openapi("FunctionTool");
1515
1654
  var FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema).openapi("FunctionToolCreate");
1516
1655
  var FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema).openapi("FunctionToolUpdate");
1517
- var FunctionSelectSchema = drizzleZod.createSelectSchema(functions);
1518
- var FunctionInsertSchema = drizzleZod.createInsertSchema(functions).extend({
1656
+ var FunctionSelectSchema = createSelectSchema(functions);
1657
+ var FunctionInsertSchema = createInsertSchema(functions).extend({
1519
1658
  id: resourceIdSchema
1520
1659
  });
1521
1660
  var FunctionUpdateSchema = FunctionInsertSchema.partial();
@@ -1543,13 +1682,13 @@ var FetchDefinitionSchema = zodOpenapi.z.object({
1543
1682
  }),
1544
1683
  credential: CredentialReferenceApiInsertSchema.optional()
1545
1684
  }).openapi("FetchDefinition");
1546
- var ContextConfigSelectSchema = drizzleZod.createSelectSchema(contextConfigs).extend({
1685
+ var ContextConfigSelectSchema = createSelectSchema(contextConfigs).extend({
1547
1686
  headersSchema: zodOpenapi.z.any().optional().openapi({
1548
1687
  type: "object",
1549
1688
  description: "JSON Schema for validating request headers"
1550
1689
  })
1551
1690
  });
1552
- var ContextConfigInsertSchema = drizzleZod.createInsertSchema(contextConfigs).extend({
1691
+ var ContextConfigInsertSchema = createInsertSchema(contextConfigs).extend({
1553
1692
  id: resourceIdSchema.optional(),
1554
1693
  headersSchema: zodOpenapi.z.any().nullable().optional().openapi({
1555
1694
  type: "object",
@@ -1573,8 +1712,8 @@ var ContextConfigApiInsertSchema = createApiInsertSchema(ContextConfigInsertSche
1573
1712
  var ContextConfigApiUpdateSchema = createApiUpdateSchema(ContextConfigUpdateSchema).omit({
1574
1713
  agentId: true
1575
1714
  }).openapi("ContextConfigUpdate");
1576
- var SubAgentToolRelationSelectSchema = drizzleZod.createSelectSchema(subAgentToolRelations);
1577
- var SubAgentToolRelationInsertSchema = drizzleZod.createInsertSchema(subAgentToolRelations).extend({
1715
+ var SubAgentToolRelationSelectSchema = createSelectSchema(subAgentToolRelations);
1716
+ var SubAgentToolRelationInsertSchema = createInsertSchema(subAgentToolRelations).extend({
1578
1717
  id: resourceIdSchema,
1579
1718
  subAgentId: resourceIdSchema,
1580
1719
  toolId: resourceIdSchema,
@@ -1591,10 +1730,10 @@ var SubAgentToolRelationApiInsertSchema = createAgentScopedApiInsertSchema(
1591
1730
  var SubAgentToolRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
1592
1731
  SubAgentToolRelationUpdateSchema
1593
1732
  ).openapi("SubAgentToolRelationUpdate");
1594
- var SubAgentExternalAgentRelationSelectSchema = drizzleZod.createSelectSchema(
1733
+ var SubAgentExternalAgentRelationSelectSchema = createSelectSchema(
1595
1734
  subAgentExternalAgentRelations
1596
1735
  );
1597
- var SubAgentExternalAgentRelationInsertSchema = drizzleZod.createInsertSchema(
1736
+ var SubAgentExternalAgentRelationInsertSchema = createInsertSchema(
1598
1737
  subAgentExternalAgentRelations
1599
1738
  ).extend({
1600
1739
  id: resourceIdSchema,
@@ -1612,8 +1751,8 @@ var SubAgentExternalAgentRelationApiInsertSchema = createAgentScopedApiInsertSch
1612
1751
  var SubAgentExternalAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
1613
1752
  SubAgentExternalAgentRelationUpdateSchema
1614
1753
  ).openapi("SubAgentExternalAgentRelationUpdate");
1615
- var SubAgentTeamAgentRelationSelectSchema = drizzleZod.createSelectSchema(subAgentTeamAgentRelations);
1616
- var SubAgentTeamAgentRelationInsertSchema = drizzleZod.createInsertSchema(
1754
+ var SubAgentTeamAgentRelationSelectSchema = createSelectSchema(subAgentTeamAgentRelations);
1755
+ var SubAgentTeamAgentRelationInsertSchema = createInsertSchema(
1617
1756
  subAgentTeamAgentRelations
1618
1757
  ).extend({
1619
1758
  id: resourceIdSchema,
@@ -1631,8 +1770,8 @@ var SubAgentTeamAgentRelationApiInsertSchema = createAgentScopedApiInsertSchema(
1631
1770
  var SubAgentTeamAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(
1632
1771
  SubAgentTeamAgentRelationUpdateSchema
1633
1772
  ).openapi("SubAgentTeamAgentRelationUpdate");
1634
- var LedgerArtifactSelectSchema = drizzleZod.createSelectSchema(ledgerArtifacts);
1635
- var LedgerArtifactInsertSchema = drizzleZod.createInsertSchema(ledgerArtifacts);
1773
+ var LedgerArtifactSelectSchema = createSelectSchema(ledgerArtifacts);
1774
+ var LedgerArtifactInsertSchema = createInsertSchema(ledgerArtifacts);
1636
1775
  var LedgerArtifactUpdateSchema = LedgerArtifactInsertSchema.partial();
1637
1776
  var LedgerArtifactApiSelectSchema = createApiSchema(LedgerArtifactSelectSchema);
1638
1777
  var LedgerArtifactApiInsertSchema = createApiInsertSchema(LedgerArtifactInsertSchema);
@@ -1666,17 +1805,17 @@ var canDelegateToExternalAgentSchema = zodOpenapi.z.object({
1666
1805
  externalAgentId: zodOpenapi.z.string(),
1667
1806
  subAgentExternalAgentRelationId: zodOpenapi.z.string().optional(),
1668
1807
  headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
1669
- });
1808
+ }).openapi("CanDelegateToExternalAgent");
1670
1809
  var canDelegateToTeamAgentSchema = zodOpenapi.z.object({
1671
1810
  agentId: zodOpenapi.z.string(),
1672
1811
  subAgentTeamAgentRelationId: zodOpenapi.z.string().optional(),
1673
1812
  headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
1674
- });
1813
+ }).openapi("CanDelegateToTeamAgent");
1675
1814
  var TeamAgentSchema = zodOpenapi.z.object({
1676
1815
  id: zodOpenapi.z.string(),
1677
1816
  name: zodOpenapi.z.string(),
1678
1817
  description: zodOpenapi.z.string()
1679
- });
1818
+ }).openapi("TeamAgent");
1680
1819
  var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
1681
1820
  type: zodOpenapi.z.literal("internal"),
1682
1821
  canUse: zodOpenapi.z.array(CanUseItemSchema),
@@ -1695,7 +1834,7 @@ var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
1695
1834
  // Team agent with headers
1696
1835
  ])
1697
1836
  ).optional()
1698
- });
1837
+ }).openapi("FullAgentAgentInsert");
1699
1838
  var AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
1700
1839
  subAgents: zodOpenapi.z.record(zodOpenapi.z.string(), FullAgentAgentInsertSchema),
1701
1840
  // Lookup maps for UI to resolve canUse items
@@ -1717,10 +1856,10 @@ var AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
1717
1856
  VALIDATION_AGENT_PROMPT_MAX_CHARS,
1718
1857
  `Agent prompt cannot exceed ${VALIDATION_AGENT_PROMPT_MAX_CHARS} characters`
1719
1858
  ).optional()
1720
- });
1859
+ }).openapi("AgentWithinContextOfProject");
1721
1860
  var PaginationSchema = zodOpenapi.z.object({
1722
- page: zodOpenapi.z.coerce.number().min(1).default(1),
1723
- limit: zodOpenapi.z.coerce.number().min(1).max(100).default(10),
1861
+ page: pageNumber,
1862
+ limit: limitNumber,
1724
1863
  total: zodOpenapi.z.number(),
1725
1864
  pages: zodOpenapi.z.number()
1726
1865
  }).openapi("Pagination");
@@ -1745,24 +1884,30 @@ var RemovedResponseSchema = zodOpenapi.z.object({
1745
1884
  message: zodOpenapi.z.string(),
1746
1885
  removed: zodOpenapi.z.boolean()
1747
1886
  }).openapi("RemovedResponse");
1748
- var ProjectSelectSchema = drizzleZod.createSelectSchema(projects);
1749
- var ProjectInsertSchema = drizzleZod.createInsertSchema(projects).extend({
1887
+ var ProjectSelectSchema = registerFieldSchemas(
1888
+ createSelectSchema(projects).extend({
1889
+ models: ProjectModelSchema.nullable(),
1890
+ stopWhen: StopWhenSchema.nullable()
1891
+ })
1892
+ );
1893
+ var ProjectInsertSchema = createInsertSchema(projects).extend({
1750
1894
  models: ProjectModelSchema,
1751
1895
  stopWhen: StopWhenSchema.optional()
1752
1896
  }).omit({
1753
1897
  createdAt: true,
1754
1898
  updatedAt: true
1755
1899
  });
1756
- var ProjectUpdateSchema = ProjectInsertSchema.partial();
1900
+ var ProjectUpdateSchema = ProjectInsertSchema.partial().omit({
1901
+ id: true,
1902
+ tenantId: true
1903
+ });
1757
1904
  var ProjectApiSelectSchema = ProjectSelectSchema.omit({ tenantId: true }).openapi(
1758
1905
  "Project"
1759
1906
  );
1760
1907
  var ProjectApiInsertSchema = ProjectInsertSchema.omit({ tenantId: true }).openapi(
1761
1908
  "ProjectCreate"
1762
1909
  );
1763
- var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true }).openapi(
1764
- "ProjectUpdate"
1765
- );
1910
+ var ProjectApiUpdateSchema = ProjectUpdateSchema.openapi("ProjectUpdate");
1766
1911
  var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
1767
1912
  agents: zodOpenapi.z.record(zodOpenapi.z.string(), AgentWithinContextOfProjectSchema),
1768
1913
  tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema),
@@ -1775,7 +1920,7 @@ var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
1775
1920
  credentialReferences: zodOpenapi.z.record(zodOpenapi.z.string(), CredentialReferenceApiInsertSchema).optional(),
1776
1921
  createdAt: zodOpenapi.z.string().optional(),
1777
1922
  updatedAt: zodOpenapi.z.string().optional()
1778
- });
1923
+ }).openapi("FullProjectDefinition");
1779
1924
  var ProjectResponse = zodOpenapi.z.object({ data: ProjectApiSelectSchema }).openapi("ProjectResponse");
1780
1925
  var SubAgentResponse = zodOpenapi.z.object({ data: SubAgentApiSelectSchema }).openapi("SubAgentResponse");
1781
1926
  var AgentResponse = zodOpenapi.z.object({ data: AgentApiSelectSchema }).openapi("AgentResponse");
@@ -1866,6 +2011,30 @@ var SubAgentArtifactComponentListResponse = zodOpenapi.z.object({
1866
2011
  data: zodOpenapi.z.array(SubAgentArtifactComponentApiSelectSchema),
1867
2012
  pagination: PaginationSchema
1868
2013
  }).openapi("SubAgentArtifactComponentListResponse");
2014
+ var FullProjectDefinitionResponse = zodOpenapi.z.object({ data: FullProjectDefinitionSchema }).openapi("FullProjectDefinitionResponse");
2015
+ var AgentWithinContextOfProjectResponse = zodOpenapi.z.object({ data: AgentWithinContextOfProjectSchema }).openapi("AgentWithinContextOfProjectResponse");
2016
+ var RelatedAgentInfoListResponse = zodOpenapi.z.object({
2017
+ data: zodOpenapi.z.array(RelatedAgentInfoSchema),
2018
+ pagination: PaginationSchema
2019
+ }).openapi("RelatedAgentInfoListResponse");
2020
+ var ComponentAssociationListResponse = zodOpenapi.z.object({ data: zodOpenapi.z.array(ComponentAssociationSchema) }).openapi("ComponentAssociationListResponse");
2021
+ var McpToolResponse = zodOpenapi.z.object({ data: McpToolSchema }).openapi("McpToolResponse");
2022
+ var McpToolListResponse = zodOpenapi.z.object({
2023
+ data: zodOpenapi.z.array(McpToolSchema),
2024
+ pagination: PaginationSchema
2025
+ }).openapi("McpToolListResponse");
2026
+ var SubAgentTeamAgentRelationResponse = zodOpenapi.z.object({ data: SubAgentTeamAgentRelationApiSelectSchema }).openapi("SubAgentTeamAgentRelationResponse");
2027
+ var SubAgentTeamAgentRelationListResponse = zodOpenapi.z.object({
2028
+ data: zodOpenapi.z.array(SubAgentTeamAgentRelationApiSelectSchema),
2029
+ pagination: PaginationSchema
2030
+ }).openapi("SubAgentTeamAgentRelationListResponse");
2031
+ var SubAgentExternalAgentRelationResponse = zodOpenapi.z.object({ data: SubAgentExternalAgentRelationApiSelectSchema }).openapi("SubAgentExternalAgentRelationResponse");
2032
+ var SubAgentExternalAgentRelationListResponse = zodOpenapi.z.object({
2033
+ data: zodOpenapi.z.array(SubAgentExternalAgentRelationApiSelectSchema),
2034
+ pagination: PaginationSchema
2035
+ }).openapi("SubAgentExternalAgentRelationListResponse");
2036
+ var DataComponentArrayResponse = zodOpenapi.z.object({ data: zodOpenapi.z.array(DataComponentApiSelectSchema) }).openapi("DataComponentArrayResponse");
2037
+ var ArtifactComponentArrayResponse = zodOpenapi.z.object({ data: zodOpenapi.z.array(ArtifactComponentApiSelectSchema) }).openapi("ArtifactComponentArrayResponse");
1869
2038
  var HeadersScopeSchema = zodOpenapi.z.object({
1870
2039
  "x-inkeep-tenant-id": zodOpenapi.z.string().optional().openapi({
1871
2040
  description: "Tenant identifier",
@@ -1880,50 +2049,66 @@ var HeadersScopeSchema = zodOpenapi.z.object({
1880
2049
  example: "agent_789"
1881
2050
  })
1882
2051
  });
1883
- var TenantId = zodOpenapi.z.string().openapi({
2052
+ var TenantId = zodOpenapi.z.string().openapi("TenantIdPathParam", {
2053
+ param: {
2054
+ name: "tenantId",
2055
+ in: "path"
2056
+ },
1884
2057
  description: "Tenant identifier",
1885
2058
  example: "tenant_123"
1886
2059
  });
1887
- var ProjectId = zodOpenapi.z.string().openapi({
2060
+ var ProjectId = zodOpenapi.z.string().openapi("ProjectIdPathParam", {
2061
+ param: {
2062
+ name: "projectId",
2063
+ in: "path"
2064
+ },
1888
2065
  description: "Project identifier",
1889
2066
  example: "project_456"
1890
2067
  });
1891
- var AgentId = zodOpenapi.z.string().openapi({
2068
+ var AgentId = zodOpenapi.z.string().openapi("AgentIdPathParam", {
2069
+ param: {
2070
+ name: "agentId",
2071
+ in: "path"
2072
+ },
1892
2073
  description: "Agent identifier",
1893
2074
  example: "agent_789"
1894
2075
  });
1895
- var SubAgentId = zodOpenapi.z.string().openapi({
2076
+ var SubAgentId = zodOpenapi.z.string().openapi("SubAgentIdPathParam", {
2077
+ param: {
2078
+ name: "subAgentId",
2079
+ in: "path"
2080
+ },
1896
2081
  description: "Sub-agent identifier",
1897
2082
  example: "sub_agent_123"
1898
2083
  });
1899
2084
  var TenantParamsSchema = zodOpenapi.z.object({
1900
2085
  tenantId: TenantId
1901
- }).openapi("TenantParams");
2086
+ });
1902
2087
  var TenantIdParamsSchema = TenantParamsSchema.extend({
1903
2088
  id: resourceIdSchema
1904
- }).openapi("TenantIdParams");
2089
+ });
1905
2090
  var TenantProjectParamsSchema = TenantParamsSchema.extend({
1906
2091
  projectId: ProjectId
1907
- }).openapi("TenantProjectParams");
2092
+ });
1908
2093
  var TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({
1909
2094
  id: resourceIdSchema
1910
- }).openapi("TenantProjectIdParams");
2095
+ });
1911
2096
  var TenantProjectAgentParamsSchema = TenantProjectParamsSchema.extend({
1912
2097
  agentId: AgentId
1913
- }).openapi("TenantProjectAgentParams");
2098
+ });
1914
2099
  var TenantProjectAgentIdParamsSchema = TenantProjectAgentParamsSchema.extend({
1915
2100
  id: resourceIdSchema
1916
- }).openapi("TenantProjectAgentIdParams");
2101
+ });
1917
2102
  var TenantProjectAgentSubAgentParamsSchema = TenantProjectAgentParamsSchema.extend({
1918
2103
  subAgentId: SubAgentId
1919
- }).openapi("TenantProjectAgentSubAgentParams");
2104
+ });
1920
2105
  var TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentParamsSchema.extend({
1921
2106
  id: resourceIdSchema
1922
- }).openapi("TenantProjectAgentSubAgentIdParams");
1923
- var PaginationQueryParamsSchema = zodOpenapi.z.object({
1924
- page: zodOpenapi.z.coerce.number().min(1).default(1),
1925
- limit: zodOpenapi.z.coerce.number().min(1).max(100).default(10)
1926
2107
  });
2108
+ var PaginationQueryParamsSchema = zodOpenapi.z.object({
2109
+ page: pageNumber,
2110
+ limit: limitNumber
2111
+ }).openapi("PaginationQueryParams");
1927
2112
 
1928
2113
  // src/validation/agentFull.ts
1929
2114
  function validateAndTypeAgentData(data) {
@@ -2382,6 +2567,7 @@ exports.AgentResponse = AgentResponse;
2382
2567
  exports.AgentSelectSchema = AgentSelectSchema;
2383
2568
  exports.AgentStopWhenSchema = AgentStopWhenSchema;
2384
2569
  exports.AgentUpdateSchema = AgentUpdateSchema;
2570
+ exports.AgentWithinContextOfProjectResponse = AgentWithinContextOfProjectResponse;
2385
2571
  exports.AgentWithinContextOfProjectSchema = AgentWithinContextOfProjectSchema;
2386
2572
  exports.AllAgentSchema = AllAgentSchema;
2387
2573
  exports.ApiKeyApiCreationResponseSchema = ApiKeyApiCreationResponseSchema;
@@ -2396,12 +2582,14 @@ exports.ApiKeyUpdateSchema = ApiKeyUpdateSchema;
2396
2582
  exports.ArtifactComponentApiInsertSchema = ArtifactComponentApiInsertSchema;
2397
2583
  exports.ArtifactComponentApiSelectSchema = ArtifactComponentApiSelectSchema;
2398
2584
  exports.ArtifactComponentApiUpdateSchema = ArtifactComponentApiUpdateSchema;
2585
+ exports.ArtifactComponentArrayResponse = ArtifactComponentArrayResponse;
2399
2586
  exports.ArtifactComponentInsertSchema = ArtifactComponentInsertSchema;
2400
2587
  exports.ArtifactComponentListResponse = ArtifactComponentListResponse;
2401
2588
  exports.ArtifactComponentResponse = ArtifactComponentResponse;
2402
2589
  exports.ArtifactComponentSelectSchema = ArtifactComponentSelectSchema;
2403
2590
  exports.ArtifactComponentUpdateSchema = ArtifactComponentUpdateSchema;
2404
2591
  exports.CanUseItemSchema = CanUseItemSchema;
2592
+ exports.ComponentAssociationListResponse = ComponentAssociationListResponse;
2405
2593
  exports.ComponentAssociationSchema = ComponentAssociationSchema;
2406
2594
  exports.ContextCacheApiInsertSchema = ContextCacheApiInsertSchema;
2407
2595
  exports.ContextCacheApiSelectSchema = ContextCacheApiSelectSchema;
@@ -2440,6 +2628,7 @@ exports.CredentialStoreSchema = CredentialStoreSchema;
2440
2628
  exports.DataComponentApiInsertSchema = DataComponentApiInsertSchema;
2441
2629
  exports.DataComponentApiSelectSchema = DataComponentApiSelectSchema;
2442
2630
  exports.DataComponentApiUpdateSchema = DataComponentApiUpdateSchema;
2631
+ exports.DataComponentArrayResponse = DataComponentArrayResponse;
2443
2632
  exports.DataComponentBaseSchema = DataComponentBaseSchema;
2444
2633
  exports.DataComponentInsertSchema = DataComponentInsertSchema;
2445
2634
  exports.DataComponentListResponse = DataComponentListResponse;
@@ -2468,6 +2657,7 @@ exports.ExternalSubAgentRelationInsertSchema = ExternalSubAgentRelationInsertSch
2468
2657
  exports.FetchConfigSchema = FetchConfigSchema;
2469
2658
  exports.FetchDefinitionSchema = FetchDefinitionSchema;
2470
2659
  exports.FullAgentAgentInsertSchema = FullAgentAgentInsertSchema;
2660
+ exports.FullProjectDefinitionResponse = FullProjectDefinitionResponse;
2471
2661
  exports.FullProjectDefinitionSchema = FullProjectDefinitionSchema;
2472
2662
  exports.FunctionApiInsertSchema = FunctionApiInsertSchema;
2473
2663
  exports.FunctionApiSelectSchema = FunctionApiSelectSchema;
@@ -2498,6 +2688,8 @@ exports.MAX_ID_LENGTH = MAX_ID_LENGTH;
2498
2688
  exports.MCPToolConfigSchema = MCPToolConfigSchema;
2499
2689
  exports.MIN_ID_LENGTH = MIN_ID_LENGTH;
2500
2690
  exports.McpToolDefinitionSchema = McpToolDefinitionSchema;
2691
+ exports.McpToolListResponse = McpToolListResponse;
2692
+ exports.McpToolResponse = McpToolResponse;
2501
2693
  exports.McpToolSchema = McpToolSchema;
2502
2694
  exports.McpTransportConfigSchema = McpTransportConfigSchema;
2503
2695
  exports.MessageApiInsertSchema = MessageApiInsertSchema;
@@ -2523,6 +2715,7 @@ exports.ProjectModelSchema = ProjectModelSchema;
2523
2715
  exports.ProjectResponse = ProjectResponse;
2524
2716
  exports.ProjectSelectSchema = ProjectSelectSchema;
2525
2717
  exports.ProjectUpdateSchema = ProjectUpdateSchema;
2718
+ exports.RelatedAgentInfoListResponse = RelatedAgentInfoListResponse;
2526
2719
  exports.RelatedAgentInfoSchema = RelatedAgentInfoSchema;
2527
2720
  exports.RemovedResponseSchema = RemovedResponseSchema;
2528
2721
  exports.SingleResponseSchema = SingleResponseSchema;
@@ -2555,6 +2748,8 @@ exports.SubAgentExternalAgentRelationApiInsertSchema = SubAgentExternalAgentRela
2555
2748
  exports.SubAgentExternalAgentRelationApiSelectSchema = SubAgentExternalAgentRelationApiSelectSchema;
2556
2749
  exports.SubAgentExternalAgentRelationApiUpdateSchema = SubAgentExternalAgentRelationApiUpdateSchema;
2557
2750
  exports.SubAgentExternalAgentRelationInsertSchema = SubAgentExternalAgentRelationInsertSchema;
2751
+ exports.SubAgentExternalAgentRelationListResponse = SubAgentExternalAgentRelationListResponse;
2752
+ exports.SubAgentExternalAgentRelationResponse = SubAgentExternalAgentRelationResponse;
2558
2753
  exports.SubAgentExternalAgentRelationSelectSchema = SubAgentExternalAgentRelationSelectSchema;
2559
2754
  exports.SubAgentExternalAgentRelationUpdateSchema = SubAgentExternalAgentRelationUpdateSchema;
2560
2755
  exports.SubAgentInsertSchema = SubAgentInsertSchema;
@@ -2575,6 +2770,8 @@ exports.SubAgentTeamAgentRelationApiInsertSchema = SubAgentTeamAgentRelationApiI
2575
2770
  exports.SubAgentTeamAgentRelationApiSelectSchema = SubAgentTeamAgentRelationApiSelectSchema;
2576
2771
  exports.SubAgentTeamAgentRelationApiUpdateSchema = SubAgentTeamAgentRelationApiUpdateSchema;
2577
2772
  exports.SubAgentTeamAgentRelationInsertSchema = SubAgentTeamAgentRelationInsertSchema;
2773
+ exports.SubAgentTeamAgentRelationListResponse = SubAgentTeamAgentRelationListResponse;
2774
+ exports.SubAgentTeamAgentRelationResponse = SubAgentTeamAgentRelationResponse;
2578
2775
  exports.SubAgentTeamAgentRelationSelectSchema = SubAgentTeamAgentRelationSelectSchema;
2579
2776
  exports.SubAgentTeamAgentRelationUpdateSchema = SubAgentTeamAgentRelationUpdateSchema;
2580
2777
  exports.SubAgentToolRelationApiInsertSchema = SubAgentToolRelationApiInsertSchema;