@inkeep/agents-manage-api 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.
package/dist/index.cjs CHANGED
@@ -21,8 +21,7 @@ agentsCore.loadEnvironmentFiles();
21
21
  var envSchema = zod.z.object({
22
22
  NODE_ENV: zod.z.enum(["development", "production", "test"]).optional(),
23
23
  ENVIRONMENT: zod.z.enum(["development", "production", "pentest", "test"]).optional(),
24
- AGENTS_MANAGE_API_URL: zod.z.string().optional().default("http://localhost:3002"),
25
- AGENTS_RUN_API_URL: zod.z.string().optional().default("http://localhost:3003"),
24
+ INKEEP_AGENTS_MANAGE_API_URL: zod.z.string().optional().default("http://localhost:3002"),
26
25
  DATABASE_URL: zod.z.string().optional(),
27
26
  LOG_LEVEL: zod.z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
28
27
  NANGO_SERVER_URL: zod.z.string().optional().default("https://api.nango.dev"),
@@ -31,8 +30,7 @@ var envSchema = zod.z.object({
31
30
  });
32
31
  var parseEnv = () => {
33
32
  try {
34
- const parsedEnv = envSchema.parse(process.env);
35
- return parsedEnv;
33
+ return envSchema.parse(process.env);
36
34
  } catch (error) {
37
35
  if (error instanceof zod.z.ZodError) {
38
36
  const missingVars = error.issues.map((issue) => issue.path.join("."));
@@ -73,6 +71,7 @@ var apiKeyAuth = () => factory.createMiddleware(async (c, next) => {
73
71
  function setupOpenAPIRoutes(app25) {
74
72
  app25.get("/openapi.json", (c) => {
75
73
  try {
74
+ const serverUrl = process.env.VERCEL_ENV === "production" && process.env.VERCEL_PROJECT_PRODUCTION_URL ? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` : process.env.VERCEL_ENV === "preview" && process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : env.INKEEP_AGENTS_MANAGE_API_URL;
76
75
  const document = app25.getOpenAPIDocument({
77
76
  openapi: "3.0.0",
78
77
  info: {
@@ -82,8 +81,8 @@ function setupOpenAPIRoutes(app25) {
82
81
  },
83
82
  servers: [
84
83
  {
85
- url: env.AGENTS_MANAGE_API_URL,
86
- description: "Development server"
84
+ url: serverUrl,
85
+ description: "API Server"
87
86
  }
88
87
  ]
89
88
  });
@@ -203,7 +202,7 @@ app.openapi(
203
202
  description: "Related agent infos retrieved successfully",
204
203
  content: {
205
204
  "application/json": {
206
- schema: agentsCore.ListResponseSchema(agentsCore.RelatedAgentInfoSchema)
205
+ schema: agentsCore.RelatedAgentInfoListResponse
207
206
  }
208
207
  }
209
208
  },
@@ -243,7 +242,7 @@ app.openapi(
243
242
  description: "Full agent definition retrieved successfully",
244
243
  content: {
245
244
  "application/json": {
246
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentWithinContextOfProjectSchema)
245
+ schema: agentsCore.AgentWithinContextOfProjectResponse
247
246
  }
248
247
  }
249
248
  },
@@ -419,7 +418,7 @@ app2.openapi(
419
418
  description: "Full agent created successfully",
420
419
  content: {
421
420
  "application/json": {
422
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentWithinContextOfProjectSchema)
421
+ schema: agentsCore.AgentWithinContextOfProjectResponse
423
422
  }
424
423
  }
425
424
  },
@@ -461,7 +460,7 @@ app2.openapi(
461
460
  description: "Full agent found",
462
461
  content: {
463
462
  "application/json": {
464
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentWithinContextOfProjectSchema)
463
+ schema: agentsCore.AgentWithinContextOfProjectResponse
465
464
  }
466
465
  }
467
466
  },
@@ -521,7 +520,7 @@ app2.openapi(
521
520
  description: "Full agent updated successfully",
522
521
  content: {
523
522
  "application/json": {
524
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentWithinContextOfProjectSchema)
523
+ schema: agentsCore.AgentWithinContextOfProjectResponse
525
524
  }
526
525
  }
527
526
  },
@@ -529,7 +528,7 @@ app2.openapi(
529
528
  description: "Full agent created successfully",
530
529
  content: {
531
530
  "application/json": {
532
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentWithinContextOfProjectSchema)
531
+ schema: agentsCore.AgentWithinContextOfProjectResponse
533
532
  }
534
533
  }
535
534
  },
@@ -2391,7 +2390,7 @@ app11.openapi(
2391
2390
  description: "List of function tools retrieved successfully",
2392
2391
  content: {
2393
2392
  "application/json": {
2394
- schema: agentsCore.ListResponseSchema(agentsCore.FunctionToolApiSelectSchema)
2393
+ schema: agentsCore.FunctionToolListResponse
2395
2394
  }
2396
2395
  }
2397
2396
  },
@@ -2431,7 +2430,7 @@ app11.openapi(
2431
2430
  description: "Function tool retrieved successfully",
2432
2431
  content: {
2433
2432
  "application/json": {
2434
- schema: agentsCore.SingleResponseSchema(agentsCore.FunctionToolApiSelectSchema)
2433
+ schema: agentsCore.FunctionToolResponse
2435
2434
  }
2436
2435
  }
2437
2436
  },
@@ -2483,7 +2482,7 @@ app11.openapi(
2483
2482
  description: "Function tool created successfully",
2484
2483
  content: {
2485
2484
  "application/json": {
2486
- schema: agentsCore.SingleResponseSchema(agentsCore.FunctionToolApiSelectSchema)
2485
+ schema: agentsCore.FunctionToolResponse
2487
2486
  }
2488
2487
  }
2489
2488
  },
@@ -2537,7 +2536,7 @@ app11.openapi(
2537
2536
  description: "Function tool updated successfully",
2538
2537
  content: {
2539
2538
  "application/json": {
2540
- schema: agentsCore.SingleResponseSchema(agentsCore.FunctionToolApiSelectSchema)
2539
+ schema: agentsCore.FunctionToolResponse
2541
2540
  }
2542
2541
  }
2543
2542
  },
@@ -2861,7 +2860,7 @@ app13.openapi(
2861
2860
  description: "Artifact components retrieved successfully",
2862
2861
  content: {
2863
2862
  "application/json": {
2864
- schema: agentsCore.SingleResponseSchema(zod.z.array(agentsCore.ArtifactComponentApiSelectSchema))
2863
+ schema: agentsCore.ArtifactComponentArrayResponse
2865
2864
  }
2866
2865
  }
2867
2866
  },
@@ -2895,7 +2894,7 @@ app13.openapi(
2895
2894
  description: "Agents retrieved successfully",
2896
2895
  content: {
2897
2896
  "application/json": {
2898
- schema: agentsCore.SingleResponseSchema(zod.z.array(agentsCore.ComponentAssociationSchema))
2897
+ schema: agentsCore.ComponentAssociationListResponse
2899
2898
  }
2900
2899
  }
2901
2900
  },
@@ -2933,7 +2932,7 @@ app13.openapi(
2933
2932
  description: "Agent artifact component association created successfully",
2934
2933
  content: {
2935
2934
  "application/json": {
2936
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentArtifactComponentApiSelectSchema)
2935
+ schema: agentsCore.SubAgentArtifactComponentResponse
2937
2936
  }
2938
2937
  }
2939
2938
  },
@@ -3080,7 +3079,7 @@ app14.openapi(
3080
3079
  description: "Data components retrieved successfully",
3081
3080
  content: {
3082
3081
  "application/json": {
3083
- schema: agentsCore.SingleResponseSchema(zod.z.array(agentsCore.DataComponentApiSelectSchema))
3082
+ schema: agentsCore.DataComponentArrayResponse
3084
3083
  }
3085
3084
  }
3086
3085
  },
@@ -3112,7 +3111,7 @@ app14.openapi(
3112
3111
  description: "Agents retrieved successfully",
3113
3112
  content: {
3114
3113
  "application/json": {
3115
- schema: agentsCore.SingleResponseSchema(zod.z.array(agentsCore.ComponentAssociationSchema))
3114
+ schema: agentsCore.ComponentAssociationListResponse
3116
3115
  }
3117
3116
  }
3118
3117
  },
@@ -3150,7 +3149,7 @@ app14.openapi(
3150
3149
  description: "Agent data component association created successfully",
3151
3150
  content: {
3152
3151
  "application/json": {
3153
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentDataComponentApiSelectSchema)
3152
+ schema: agentsCore.SubAgentDataComponentResponse
3154
3153
  }
3155
3154
  }
3156
3155
  },
@@ -3294,7 +3293,7 @@ app15.openapi(
3294
3293
  description: "List of sub agent external agent relations retrieved successfully",
3295
3294
  content: {
3296
3295
  "application/json": {
3297
- schema: agentsCore.ListResponseSchema(agentsCore.SubAgentExternalAgentRelationApiSelectSchema)
3296
+ schema: agentsCore.SubAgentExternalAgentRelationListResponse
3298
3297
  }
3299
3298
  }
3300
3299
  },
@@ -3335,7 +3334,7 @@ app15.openapi(
3335
3334
  description: "Sub Agent external agent relation found",
3336
3335
  content: {
3337
3336
  "application/json": {
3338
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentExternalAgentRelationApiSelectSchema)
3337
+ schema: agentsCore.SubAgentExternalAgentRelationResponse
3339
3338
  }
3340
3339
  }
3341
3340
  },
@@ -3379,7 +3378,7 @@ app15.openapi(
3379
3378
  description: "Sub Agent External Agent Relation created successfully",
3380
3379
  content: {
3381
3380
  "application/json": {
3382
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentExternalAgentRelationApiSelectSchema)
3381
+ schema: agentsCore.SubAgentExternalAgentRelationResponse
3383
3382
  }
3384
3383
  }
3385
3384
  },
@@ -3435,7 +3434,7 @@ app15.openapi(
3435
3434
  description: "Sub Agent external agent relation updated successfully",
3436
3435
  content: {
3437
3436
  "application/json": {
3438
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentExternalAgentRelationApiSelectSchema)
3437
+ schema: agentsCore.SubAgentExternalAgentRelationResponse
3439
3438
  }
3440
3439
  }
3441
3440
  },
@@ -3516,7 +3515,7 @@ app16.openapi(
3516
3515
  description: "List of sub agent relations retrieved successfully",
3517
3516
  content: {
3518
3517
  "application/json": {
3519
- schema: agentsCore.ListResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3518
+ schema: agentsCore.SubAgentRelationListResponse
3520
3519
  }
3521
3520
  }
3522
3521
  },
@@ -3575,7 +3574,7 @@ app16.openapi(
3575
3574
  description: "Sub Agent relation found",
3576
3575
  content: {
3577
3576
  "application/json": {
3578
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3577
+ schema: agentsCore.SubAgentRelationResponse
3579
3578
  }
3580
3579
  }
3581
3580
  },
@@ -3619,7 +3618,7 @@ app16.openapi(
3619
3618
  description: "Sub Agent Relation created successfully",
3620
3619
  content: {
3621
3620
  "application/json": {
3622
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3621
+ schema: agentsCore.SubAgentRelationResponse
3623
3622
  }
3624
3623
  }
3625
3624
  },
@@ -3693,7 +3692,7 @@ app16.openapi(
3693
3692
  description: "Sub Agent relation updated successfully",
3694
3693
  content: {
3695
3694
  "application/json": {
3696
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3695
+ schema: agentsCore.SubAgentRelationResponse
3697
3696
  }
3698
3697
  }
3699
3698
  },
@@ -3994,7 +3993,7 @@ app18.openapi(
3994
3993
  description: "List of sub agent team agent relations retrieved successfully",
3995
3994
  content: {
3996
3995
  "application/json": {
3997
- schema: agentsCore.ListResponseSchema(agentsCore.SubAgentTeamAgentRelationApiSelectSchema)
3996
+ schema: agentsCore.SubAgentTeamAgentRelationListResponse
3998
3997
  }
3999
3998
  }
4000
3999
  },
@@ -4035,7 +4034,7 @@ app18.openapi(
4035
4034
  description: "Sub Agent team agent relation found",
4036
4035
  content: {
4037
4036
  "application/json": {
4038
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentTeamAgentRelationApiSelectSchema)
4037
+ schema: agentsCore.SubAgentTeamAgentRelationResponse
4039
4038
  }
4040
4039
  }
4041
4040
  },
@@ -4079,7 +4078,7 @@ app18.openapi(
4079
4078
  description: "Sub Agent Team Agent Relation created successfully",
4080
4079
  content: {
4081
4080
  "application/json": {
4082
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentTeamAgentRelationApiSelectSchema)
4081
+ schema: agentsCore.SubAgentTeamAgentRelationResponse
4083
4082
  }
4084
4083
  }
4085
4084
  },
@@ -4135,7 +4134,7 @@ app18.openapi(
4135
4134
  description: "Sub Agent team agent relation updated successfully",
4136
4135
  content: {
4137
4136
  "application/json": {
4138
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentTeamAgentRelationApiSelectSchema)
4137
+ schema: agentsCore.SubAgentTeamAgentRelationResponse
4139
4138
  }
4140
4139
  }
4141
4140
  },
@@ -4219,7 +4218,7 @@ app19.openapi(
4219
4218
  description: "List of subAgent tool relations retrieved successfully",
4220
4219
  content: {
4221
4220
  "application/json": {
4222
- schema: agentsCore.ListResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
4221
+ schema: agentsCore.SubAgentToolRelationListResponse
4223
4222
  }
4224
4223
  }
4225
4224
  },
@@ -4277,7 +4276,7 @@ app19.openapi(
4277
4276
  description: "SubAgent tool relation found",
4278
4277
  content: {
4279
4278
  "application/json": {
4280
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
4279
+ schema: agentsCore.SubAgentToolRelationResponse
4281
4280
  }
4282
4281
  }
4283
4282
  },
@@ -4317,7 +4316,7 @@ app19.openapi(
4317
4316
  description: "SubAgents for tool retrieved successfully",
4318
4317
  content: {
4319
4318
  "application/json": {
4320
- schema: agentsCore.ListResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
4319
+ schema: agentsCore.SubAgentToolRelationListResponse
4321
4320
  }
4322
4321
  }
4323
4322
  },
@@ -4357,7 +4356,7 @@ app19.openapi(
4357
4356
  description: "SubAgent tool relation created successfully",
4358
4357
  content: {
4359
4358
  "application/json": {
4360
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
4359
+ schema: agentsCore.SubAgentToolRelationResponse
4361
4360
  }
4362
4361
  }
4363
4362
  },
@@ -4420,7 +4419,7 @@ app19.openapi(
4420
4419
  description: "SubAgent tool relation updated successfully",
4421
4420
  content: {
4422
4421
  "application/json": {
4423
- schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
4422
+ schema: agentsCore.SubAgentToolRelationResponse
4424
4423
  }
4425
4424
  }
4426
4425
  },
@@ -4511,7 +4510,7 @@ app20.openapi(
4511
4510
  description: "List of tools retrieved successfully",
4512
4511
  content: {
4513
4512
  "application/json": {
4514
- schema: agentsCore.ListResponseSchema(agentsCore.McpToolSchema)
4513
+ schema: agentsCore.McpToolListResponse
4515
4514
  }
4516
4515
  }
4517
4516
  },
@@ -4568,7 +4567,7 @@ app20.openapi(
4568
4567
  description: "Tool found",
4569
4568
  content: {
4570
4569
  "application/json": {
4571
- schema: agentsCore.SingleResponseSchema(agentsCore.McpToolSchema)
4570
+ schema: agentsCore.McpToolResponse
4572
4571
  }
4573
4572
  }
4574
4573
  },
@@ -4612,7 +4611,7 @@ app20.openapi(
4612
4611
  description: "Tool created successfully",
4613
4612
  content: {
4614
4613
  "application/json": {
4615
- schema: agentsCore.SingleResponseSchema(agentsCore.McpToolSchema)
4614
+ schema: agentsCore.McpToolResponse
4616
4615
  }
4617
4616
  }
4618
4617
  },
@@ -4665,7 +4664,7 @@ app20.openapi(
4665
4664
  description: "Tool updated successfully",
4666
4665
  content: {
4667
4666
  "application/json": {
4668
- schema: agentsCore.SingleResponseSchema(agentsCore.McpToolSchema)
4667
+ schema: agentsCore.McpToolResponse
4669
4668
  }
4670
4669
  }
4671
4670
  },
@@ -4815,7 +4814,7 @@ var OAuthService = class {
4815
4814
  clientName: config.clientName || process.env.OAUTH_CLIENT_NAME || "Inkeep Agent Framework",
4816
4815
  clientUri: config.clientUri || process.env.OAUTH_CLIENT_URI || "https://inkeep.com",
4817
4816
  logoUri: config.logoUri || process.env.OAUTH_CLIENT_LOGO_URI || "https://inkeep.com/images/logos/inkeep-logo-blue.svg",
4818
- redirectBaseUrl: config.redirectBaseUrl || env.AGENTS_MANAGE_API_URL
4817
+ redirectBaseUrl: config.redirectBaseUrl || env.INKEEP_AGENTS_MANAGE_API_URL
4819
4818
  };
4820
4819
  }
4821
4820
  /**
@@ -5227,7 +5226,7 @@ app23.openapi(
5227
5226
  description: "Full project created successfully",
5228
5227
  content: {
5229
5228
  "application/json": {
5230
- schema: agentsCore.SingleResponseSchema(agentsCore.FullProjectDefinitionSchema)
5229
+ schema: agentsCore.FullProjectDefinitionResponse
5231
5230
  }
5232
5231
  }
5233
5232
  },
@@ -5281,7 +5280,7 @@ app23.openapi(
5281
5280
  description: "Full project found",
5282
5281
  content: {
5283
5282
  "application/json": {
5284
- schema: agentsCore.SingleResponseSchema(agentsCore.FullProjectDefinitionSchema)
5283
+ schema: agentsCore.FullProjectDefinitionResponse
5285
5284
  }
5286
5285
  }
5287
5286
  },
@@ -5341,7 +5340,7 @@ app23.openapi(
5341
5340
  description: "Full project updated successfully",
5342
5341
  content: {
5343
5342
  "application/json": {
5344
- schema: agentsCore.SingleResponseSchema(agentsCore.FullProjectDefinitionSchema)
5343
+ schema: agentsCore.FullProjectDefinitionResponse
5345
5344
  }
5346
5345
  }
5347
5346
  },
@@ -5349,7 +5348,7 @@ app23.openapi(
5349
5348
  description: "Full project created successfully",
5350
5349
  content: {
5351
5350
  "application/json": {
5352
- schema: agentsCore.SingleResponseSchema(agentsCore.FullProjectDefinitionSchema)
5351
+ schema: agentsCore.FullProjectDefinitionResponse
5353
5352
  }
5354
5353
  }
5355
5354
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { loadEnvironmentFiles, getLogger, createDatabaseClient, commonGetErrorResponses, AgentListResponse, PaginationQueryParamsSchema, TenantProjectParamsSchema, listAgents, AgentResponse, TenantProjectIdParamsSchema, getAgentById, createApiError, ListResponseSchema, TenantProjectAgentSubAgentParamsSchema, RelatedAgentInfoSchema, getAgentSubAgentInfos, SingleResponseSchema, TenantProjectAgentParamsSchema, AgentWithinContextOfProjectSchema, getFullAgentDefinition, AgentApiInsertSchema, createAgent, generateId, AgentApiUpdateSchema, updateAgent, ErrorResponseSchema, deleteAgent, createFullAgentServerSide, getFullAgent, updateFullAgentServerSide, deleteFullAgent, ApiKeyListResponse, listApiKeysPaginated, ApiKeyResponse, getApiKeyById, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, generateApiKey, createApiKey, ApiKeyApiUpdateSchema, updateApiKey, deleteApiKey, ArtifactComponentListResponse, listArtifactComponentsPaginated, ArtifactComponentResponse, getArtifactComponentById, ArtifactComponentApiInsertSchema, validatePropsAsJsonSchema, createArtifactComponent, ArtifactComponentApiUpdateSchema, updateArtifactComponent, deleteArtifactComponent, ContextConfigListResponse, listContextConfigsPaginated, ContextConfigResponse, TenantProjectAgentIdParamsSchema, getContextConfigById, ContextConfigApiInsertSchema, createContextConfig, commonUpdateErrorResponses, ContextConfigApiUpdateSchema, updateContextConfig, commonDeleteErrorResponses, deleteContextConfig, CredentialStoreListResponseSchema, CreateCredentialInStoreResponseSchema, CreateCredentialInStoreRequestSchema, CredentialReferenceListResponse, listCredentialReferencesPaginated, CredentialReferenceApiSelectSchema, CredentialReferenceResponse, getCredentialReferenceWithResources, CredentialReferenceApiInsertSchema, createCredentialReference, CredentialReferenceApiUpdateSchema, updateCredentialReference, getCredentialReferenceById, getCredentialStoreLookupKeyFromRetrievalParams, deleteCredentialReference, DataComponentListResponse, listDataComponentsPaginated, DataComponentResponse, getDataComponent, DataComponentApiInsertSchema, createDataComponent, DataComponentApiUpdateSchema, updateDataComponent, deleteDataComponent, ExternalAgentListResponse, listExternalAgentsPaginated, ExternalAgentResponse, getExternalAgent, ExternalAgentApiInsertSchema, createExternalAgent, ExternalAgentApiUpdateSchema, updateExternalAgent, deleteExternalAgent, FunctionListResponse, listFunctions, FunctionResponse, getFunction, FunctionApiInsertSchema, upsertFunction, FunctionApiUpdateSchema, deleteFunction, FunctionToolApiSelectSchema, listFunctionTools, getFunctionToolById, FunctionToolApiInsertSchema, createFunctionTool, FunctionToolApiUpdateSchema, updateFunctionTool, deleteFunctionTool, ProjectListResponse, TenantParamsSchema, listProjectsPaginated, ProjectResponse, TenantIdParamsSchema, getProject, ProjectApiInsertSchema, createProject, ProjectApiUpdateSchema, updateProject, deleteProject, ArtifactComponentApiSelectSchema, getArtifactComponentsForAgent, ComponentAssociationSchema, getAgentsUsingArtifactComponent, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, getSubAgentById, isArtifactComponentAssociatedWithAgent, associateArtifactComponentWithAgent, RemovedResponseSchema, removeArtifactComponentFromAgent, ExistsResponseSchema, DataComponentApiSelectSchema, getDataComponentsForAgent, getAgentsUsingDataComponent, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, isDataComponentAssociatedWithAgent, associateDataComponentWithAgent, removeDataComponentFromAgent, SubAgentExternalAgentRelationApiSelectSchema, listSubAgentExternalAgentRelations, TenantProjectAgentSubAgentIdParamsSchema, getSubAgentExternalAgentRelationById, SubAgentExternalAgentRelationApiInsertSchema, createSubAgentExternalAgentRelation, SubAgentExternalAgentRelationApiUpdateSchema, updateSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelation, SubAgentRelationApiSelectSchema, SubAgentRelationQuerySchema, getAgentRelationsBySource, getSubAgentRelationsByTarget, listAgentRelations, getAgentRelationById, SubAgentRelationApiInsertSchema, validateSubAgent, createSubAgentRelation, SubAgentRelationApiUpdateSchema, updateAgentRelation, deleteSubAgentRelation, SubAgentListResponse, listSubAgentsPaginated, SubAgentResponse, SubAgentApiInsertSchema, createSubAgent, SubAgentApiUpdateSchema, updateSubAgent, deleteSubAgent, SubAgentTeamAgentRelationApiSelectSchema, listSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationById, SubAgentTeamAgentRelationApiInsertSchema, createSubAgentTeamAgentRelation, SubAgentTeamAgentRelationApiUpdateSchema, updateSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelation, SubAgentToolRelationApiSelectSchema, getAgentToolRelationByAgent, getAgentToolRelationByTool, listAgentToolRelations, getAgentToolRelationById, getAgentsForTool, SubAgentToolRelationApiInsertSchema, createAgentToolRelation, SubAgentToolRelationApiUpdateSchema, updateAgentToolRelation, deleteAgentToolRelation, McpToolSchema, ToolStatusSchema, listTools, dbResultToMcpTool, getToolById, ToolApiInsertSchema, createTool, ToolApiUpdateSchema, updateTool, deleteTool, OAuthLoginQuerySchema, OAuthCallbackQuerySchema, CredentialStoreType, FullProjectDefinitionSchema, createFullProjectServerSide, getFullProject, updateFullProjectServerSide, deleteFullProject, createDefaultCredentialStores, CredentialStoreRegistry, initiateMcpOAuthFlow, exchangeMcpAuthorizationCode, handleApiError } from '@inkeep/agents-core';
1
+ import { loadEnvironmentFiles, getLogger, createDatabaseClient, commonGetErrorResponses, AgentListResponse, PaginationQueryParamsSchema, TenantProjectParamsSchema, listAgents, AgentResponse, TenantProjectIdParamsSchema, getAgentById, createApiError, RelatedAgentInfoListResponse, TenantProjectAgentSubAgentParamsSchema, getAgentSubAgentInfos, AgentWithinContextOfProjectResponse, TenantProjectAgentParamsSchema, getFullAgentDefinition, AgentApiInsertSchema, createAgent, generateId, AgentApiUpdateSchema, updateAgent, ErrorResponseSchema, deleteAgent, AgentWithinContextOfProjectSchema, createFullAgentServerSide, getFullAgent, updateFullAgentServerSide, deleteFullAgent, ApiKeyListResponse, listApiKeysPaginated, ApiKeyResponse, getApiKeyById, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, generateApiKey, createApiKey, ApiKeyApiUpdateSchema, updateApiKey, deleteApiKey, ArtifactComponentListResponse, listArtifactComponentsPaginated, ArtifactComponentResponse, getArtifactComponentById, ArtifactComponentApiInsertSchema, validatePropsAsJsonSchema, createArtifactComponent, ArtifactComponentApiUpdateSchema, updateArtifactComponent, deleteArtifactComponent, ContextConfigListResponse, listContextConfigsPaginated, ContextConfigResponse, TenantProjectAgentIdParamsSchema, getContextConfigById, ContextConfigApiInsertSchema, createContextConfig, commonUpdateErrorResponses, ContextConfigApiUpdateSchema, updateContextConfig, commonDeleteErrorResponses, deleteContextConfig, CredentialStoreListResponseSchema, CreateCredentialInStoreResponseSchema, CreateCredentialInStoreRequestSchema, CredentialReferenceListResponse, listCredentialReferencesPaginated, ListResponseSchema, CredentialReferenceApiSelectSchema, CredentialReferenceResponse, getCredentialReferenceWithResources, CredentialReferenceApiInsertSchema, createCredentialReference, CredentialReferenceApiUpdateSchema, updateCredentialReference, getCredentialReferenceById, getCredentialStoreLookupKeyFromRetrievalParams, deleteCredentialReference, DataComponentListResponse, listDataComponentsPaginated, DataComponentResponse, getDataComponent, DataComponentApiInsertSchema, createDataComponent, DataComponentApiUpdateSchema, updateDataComponent, deleteDataComponent, ExternalAgentListResponse, listExternalAgentsPaginated, ExternalAgentResponse, getExternalAgent, ExternalAgentApiInsertSchema, createExternalAgent, ExternalAgentApiUpdateSchema, updateExternalAgent, deleteExternalAgent, FunctionListResponse, listFunctions, FunctionResponse, getFunction, FunctionApiInsertSchema, upsertFunction, FunctionApiUpdateSchema, deleteFunction, FunctionToolListResponse, listFunctionTools, FunctionToolResponse, getFunctionToolById, FunctionToolApiInsertSchema, createFunctionTool, FunctionToolApiUpdateSchema, updateFunctionTool, deleteFunctionTool, ProjectListResponse, TenantParamsSchema, listProjectsPaginated, ProjectResponse, TenantIdParamsSchema, getProject, ProjectApiInsertSchema, createProject, ProjectApiUpdateSchema, updateProject, deleteProject, ArtifactComponentArrayResponse, getArtifactComponentsForAgent, ComponentAssociationListResponse, getAgentsUsingArtifactComponent, SubAgentArtifactComponentResponse, SubAgentArtifactComponentApiInsertSchema, getSubAgentById, isArtifactComponentAssociatedWithAgent, associateArtifactComponentWithAgent, RemovedResponseSchema, removeArtifactComponentFromAgent, ExistsResponseSchema, DataComponentArrayResponse, getDataComponentsForAgent, getAgentsUsingDataComponent, SubAgentDataComponentResponse, SubAgentDataComponentApiInsertSchema, isDataComponentAssociatedWithAgent, associateDataComponentWithAgent, removeDataComponentFromAgent, SubAgentExternalAgentRelationListResponse, listSubAgentExternalAgentRelations, SubAgentExternalAgentRelationResponse, TenantProjectAgentSubAgentIdParamsSchema, getSubAgentExternalAgentRelationById, SubAgentExternalAgentRelationApiInsertSchema, createSubAgentExternalAgentRelation, SubAgentExternalAgentRelationApiUpdateSchema, updateSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelation, SubAgentRelationListResponse, SubAgentRelationQuerySchema, getAgentRelationsBySource, getSubAgentRelationsByTarget, listAgentRelations, SubAgentRelationResponse, getAgentRelationById, SubAgentRelationApiInsertSchema, validateSubAgent, createSubAgentRelation, SubAgentRelationApiUpdateSchema, updateAgentRelation, deleteSubAgentRelation, SubAgentListResponse, listSubAgentsPaginated, SubAgentResponse, SubAgentApiInsertSchema, createSubAgent, SubAgentApiUpdateSchema, updateSubAgent, deleteSubAgent, SubAgentTeamAgentRelationListResponse, listSubAgentTeamAgentRelations, SubAgentTeamAgentRelationResponse, getSubAgentTeamAgentRelationById, SubAgentTeamAgentRelationApiInsertSchema, createSubAgentTeamAgentRelation, SubAgentTeamAgentRelationApiUpdateSchema, updateSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelation, SubAgentToolRelationListResponse, getAgentToolRelationByAgent, getAgentToolRelationByTool, listAgentToolRelations, SubAgentToolRelationResponse, getAgentToolRelationById, getAgentsForTool, SubAgentToolRelationApiInsertSchema, createAgentToolRelation, SubAgentToolRelationApiUpdateSchema, updateAgentToolRelation, deleteAgentToolRelation, McpToolListResponse, ToolStatusSchema, listTools, dbResultToMcpTool, McpToolResponse, getToolById, ToolApiInsertSchema, createTool, ToolApiUpdateSchema, updateTool, deleteTool, OAuthLoginQuerySchema, OAuthCallbackQuerySchema, CredentialStoreType, FullProjectDefinitionResponse, FullProjectDefinitionSchema, createFullProjectServerSide, getFullProject, updateFullProjectServerSide, deleteFullProject, createDefaultCredentialStores, CredentialStoreRegistry, initiateMcpOAuthFlow, exchangeMcpAuthorizationCode, handleApiError } from '@inkeep/agents-core';
2
2
  import { OpenAPIHono, createRoute, z as z$1 } from '@hono/zod-openapi';
3
3
  import { Hono } from 'hono';
4
4
  import { cors } from 'hono/cors';
@@ -17,8 +17,7 @@ loadEnvironmentFiles();
17
17
  var envSchema = z.object({
18
18
  NODE_ENV: z.enum(["development", "production", "test"]).optional(),
19
19
  ENVIRONMENT: z.enum(["development", "production", "pentest", "test"]).optional(),
20
- AGENTS_MANAGE_API_URL: z.string().optional().default("http://localhost:3002"),
21
- AGENTS_RUN_API_URL: z.string().optional().default("http://localhost:3003"),
20
+ INKEEP_AGENTS_MANAGE_API_URL: z.string().optional().default("http://localhost:3002"),
22
21
  DATABASE_URL: z.string().optional(),
23
22
  LOG_LEVEL: z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
24
23
  NANGO_SERVER_URL: z.string().optional().default("https://api.nango.dev"),
@@ -27,8 +26,7 @@ var envSchema = z.object({
27
26
  });
28
27
  var parseEnv = () => {
29
28
  try {
30
- const parsedEnv = envSchema.parse(process.env);
31
- return parsedEnv;
29
+ return envSchema.parse(process.env);
32
30
  } catch (error) {
33
31
  if (error instanceof z.ZodError) {
34
32
  const missingVars = error.issues.map((issue) => issue.path.join("."));
@@ -69,6 +67,7 @@ var apiKeyAuth = () => createMiddleware(async (c, next) => {
69
67
  function setupOpenAPIRoutes(app25) {
70
68
  app25.get("/openapi.json", (c) => {
71
69
  try {
70
+ const serverUrl = process.env.VERCEL_ENV === "production" && process.env.VERCEL_PROJECT_PRODUCTION_URL ? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` : process.env.VERCEL_ENV === "preview" && process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : env.INKEEP_AGENTS_MANAGE_API_URL;
72
71
  const document = app25.getOpenAPIDocument({
73
72
  openapi: "3.0.0",
74
73
  info: {
@@ -78,8 +77,8 @@ function setupOpenAPIRoutes(app25) {
78
77
  },
79
78
  servers: [
80
79
  {
81
- url: env.AGENTS_MANAGE_API_URL,
82
- description: "Development server"
80
+ url: serverUrl,
81
+ description: "API Server"
83
82
  }
84
83
  ]
85
84
  });
@@ -199,7 +198,7 @@ app.openapi(
199
198
  description: "Related agent infos retrieved successfully",
200
199
  content: {
201
200
  "application/json": {
202
- schema: ListResponseSchema(RelatedAgentInfoSchema)
201
+ schema: RelatedAgentInfoListResponse
203
202
  }
204
203
  }
205
204
  },
@@ -239,7 +238,7 @@ app.openapi(
239
238
  description: "Full agent definition retrieved successfully",
240
239
  content: {
241
240
  "application/json": {
242
- schema: SingleResponseSchema(AgentWithinContextOfProjectSchema)
241
+ schema: AgentWithinContextOfProjectResponse
243
242
  }
244
243
  }
245
244
  },
@@ -415,7 +414,7 @@ app2.openapi(
415
414
  description: "Full agent created successfully",
416
415
  content: {
417
416
  "application/json": {
418
- schema: SingleResponseSchema(AgentWithinContextOfProjectSchema)
417
+ schema: AgentWithinContextOfProjectResponse
419
418
  }
420
419
  }
421
420
  },
@@ -457,7 +456,7 @@ app2.openapi(
457
456
  description: "Full agent found",
458
457
  content: {
459
458
  "application/json": {
460
- schema: SingleResponseSchema(AgentWithinContextOfProjectSchema)
459
+ schema: AgentWithinContextOfProjectResponse
461
460
  }
462
461
  }
463
462
  },
@@ -517,7 +516,7 @@ app2.openapi(
517
516
  description: "Full agent updated successfully",
518
517
  content: {
519
518
  "application/json": {
520
- schema: SingleResponseSchema(AgentWithinContextOfProjectSchema)
519
+ schema: AgentWithinContextOfProjectResponse
521
520
  }
522
521
  }
523
522
  },
@@ -525,7 +524,7 @@ app2.openapi(
525
524
  description: "Full agent created successfully",
526
525
  content: {
527
526
  "application/json": {
528
- schema: SingleResponseSchema(AgentWithinContextOfProjectSchema)
527
+ schema: AgentWithinContextOfProjectResponse
529
528
  }
530
529
  }
531
530
  },
@@ -2387,7 +2386,7 @@ app11.openapi(
2387
2386
  description: "List of function tools retrieved successfully",
2388
2387
  content: {
2389
2388
  "application/json": {
2390
- schema: ListResponseSchema(FunctionToolApiSelectSchema)
2389
+ schema: FunctionToolListResponse
2391
2390
  }
2392
2391
  }
2393
2392
  },
@@ -2427,7 +2426,7 @@ app11.openapi(
2427
2426
  description: "Function tool retrieved successfully",
2428
2427
  content: {
2429
2428
  "application/json": {
2430
- schema: SingleResponseSchema(FunctionToolApiSelectSchema)
2429
+ schema: FunctionToolResponse
2431
2430
  }
2432
2431
  }
2433
2432
  },
@@ -2479,7 +2478,7 @@ app11.openapi(
2479
2478
  description: "Function tool created successfully",
2480
2479
  content: {
2481
2480
  "application/json": {
2482
- schema: SingleResponseSchema(FunctionToolApiSelectSchema)
2481
+ schema: FunctionToolResponse
2483
2482
  }
2484
2483
  }
2485
2484
  },
@@ -2533,7 +2532,7 @@ app11.openapi(
2533
2532
  description: "Function tool updated successfully",
2534
2533
  content: {
2535
2534
  "application/json": {
2536
- schema: SingleResponseSchema(FunctionToolApiSelectSchema)
2535
+ schema: FunctionToolResponse
2537
2536
  }
2538
2537
  }
2539
2538
  },
@@ -2857,7 +2856,7 @@ app13.openapi(
2857
2856
  description: "Artifact components retrieved successfully",
2858
2857
  content: {
2859
2858
  "application/json": {
2860
- schema: SingleResponseSchema(z.array(ArtifactComponentApiSelectSchema))
2859
+ schema: ArtifactComponentArrayResponse
2861
2860
  }
2862
2861
  }
2863
2862
  },
@@ -2891,7 +2890,7 @@ app13.openapi(
2891
2890
  description: "Agents retrieved successfully",
2892
2891
  content: {
2893
2892
  "application/json": {
2894
- schema: SingleResponseSchema(z.array(ComponentAssociationSchema))
2893
+ schema: ComponentAssociationListResponse
2895
2894
  }
2896
2895
  }
2897
2896
  },
@@ -2929,7 +2928,7 @@ app13.openapi(
2929
2928
  description: "Agent artifact component association created successfully",
2930
2929
  content: {
2931
2930
  "application/json": {
2932
- schema: SingleResponseSchema(SubAgentArtifactComponentApiSelectSchema)
2931
+ schema: SubAgentArtifactComponentResponse
2933
2932
  }
2934
2933
  }
2935
2934
  },
@@ -3076,7 +3075,7 @@ app14.openapi(
3076
3075
  description: "Data components retrieved successfully",
3077
3076
  content: {
3078
3077
  "application/json": {
3079
- schema: SingleResponseSchema(z.array(DataComponentApiSelectSchema))
3078
+ schema: DataComponentArrayResponse
3080
3079
  }
3081
3080
  }
3082
3081
  },
@@ -3108,7 +3107,7 @@ app14.openapi(
3108
3107
  description: "Agents retrieved successfully",
3109
3108
  content: {
3110
3109
  "application/json": {
3111
- schema: SingleResponseSchema(z.array(ComponentAssociationSchema))
3110
+ schema: ComponentAssociationListResponse
3112
3111
  }
3113
3112
  }
3114
3113
  },
@@ -3146,7 +3145,7 @@ app14.openapi(
3146
3145
  description: "Agent data component association created successfully",
3147
3146
  content: {
3148
3147
  "application/json": {
3149
- schema: SingleResponseSchema(SubAgentDataComponentApiSelectSchema)
3148
+ schema: SubAgentDataComponentResponse
3150
3149
  }
3151
3150
  }
3152
3151
  },
@@ -3290,7 +3289,7 @@ app15.openapi(
3290
3289
  description: "List of sub agent external agent relations retrieved successfully",
3291
3290
  content: {
3292
3291
  "application/json": {
3293
- schema: ListResponseSchema(SubAgentExternalAgentRelationApiSelectSchema)
3292
+ schema: SubAgentExternalAgentRelationListResponse
3294
3293
  }
3295
3294
  }
3296
3295
  },
@@ -3331,7 +3330,7 @@ app15.openapi(
3331
3330
  description: "Sub Agent external agent relation found",
3332
3331
  content: {
3333
3332
  "application/json": {
3334
- schema: SingleResponseSchema(SubAgentExternalAgentRelationApiSelectSchema)
3333
+ schema: SubAgentExternalAgentRelationResponse
3335
3334
  }
3336
3335
  }
3337
3336
  },
@@ -3375,7 +3374,7 @@ app15.openapi(
3375
3374
  description: "Sub Agent External Agent Relation created successfully",
3376
3375
  content: {
3377
3376
  "application/json": {
3378
- schema: SingleResponseSchema(SubAgentExternalAgentRelationApiSelectSchema)
3377
+ schema: SubAgentExternalAgentRelationResponse
3379
3378
  }
3380
3379
  }
3381
3380
  },
@@ -3431,7 +3430,7 @@ app15.openapi(
3431
3430
  description: "Sub Agent external agent relation updated successfully",
3432
3431
  content: {
3433
3432
  "application/json": {
3434
- schema: SingleResponseSchema(SubAgentExternalAgentRelationApiSelectSchema)
3433
+ schema: SubAgentExternalAgentRelationResponse
3435
3434
  }
3436
3435
  }
3437
3436
  },
@@ -3512,7 +3511,7 @@ app16.openapi(
3512
3511
  description: "List of sub agent relations retrieved successfully",
3513
3512
  content: {
3514
3513
  "application/json": {
3515
- schema: ListResponseSchema(SubAgentRelationApiSelectSchema)
3514
+ schema: SubAgentRelationListResponse
3516
3515
  }
3517
3516
  }
3518
3517
  },
@@ -3571,7 +3570,7 @@ app16.openapi(
3571
3570
  description: "Sub Agent relation found",
3572
3571
  content: {
3573
3572
  "application/json": {
3574
- schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
3573
+ schema: SubAgentRelationResponse
3575
3574
  }
3576
3575
  }
3577
3576
  },
@@ -3615,7 +3614,7 @@ app16.openapi(
3615
3614
  description: "Sub Agent Relation created successfully",
3616
3615
  content: {
3617
3616
  "application/json": {
3618
- schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
3617
+ schema: SubAgentRelationResponse
3619
3618
  }
3620
3619
  }
3621
3620
  },
@@ -3689,7 +3688,7 @@ app16.openapi(
3689
3688
  description: "Sub Agent relation updated successfully",
3690
3689
  content: {
3691
3690
  "application/json": {
3692
- schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
3691
+ schema: SubAgentRelationResponse
3693
3692
  }
3694
3693
  }
3695
3694
  },
@@ -3990,7 +3989,7 @@ app18.openapi(
3990
3989
  description: "List of sub agent team agent relations retrieved successfully",
3991
3990
  content: {
3992
3991
  "application/json": {
3993
- schema: ListResponseSchema(SubAgentTeamAgentRelationApiSelectSchema)
3992
+ schema: SubAgentTeamAgentRelationListResponse
3994
3993
  }
3995
3994
  }
3996
3995
  },
@@ -4031,7 +4030,7 @@ app18.openapi(
4031
4030
  description: "Sub Agent team agent relation found",
4032
4031
  content: {
4033
4032
  "application/json": {
4034
- schema: SingleResponseSchema(SubAgentTeamAgentRelationApiSelectSchema)
4033
+ schema: SubAgentTeamAgentRelationResponse
4035
4034
  }
4036
4035
  }
4037
4036
  },
@@ -4075,7 +4074,7 @@ app18.openapi(
4075
4074
  description: "Sub Agent Team Agent Relation created successfully",
4076
4075
  content: {
4077
4076
  "application/json": {
4078
- schema: SingleResponseSchema(SubAgentTeamAgentRelationApiSelectSchema)
4077
+ schema: SubAgentTeamAgentRelationResponse
4079
4078
  }
4080
4079
  }
4081
4080
  },
@@ -4131,7 +4130,7 @@ app18.openapi(
4131
4130
  description: "Sub Agent team agent relation updated successfully",
4132
4131
  content: {
4133
4132
  "application/json": {
4134
- schema: SingleResponseSchema(SubAgentTeamAgentRelationApiSelectSchema)
4133
+ schema: SubAgentTeamAgentRelationResponse
4135
4134
  }
4136
4135
  }
4137
4136
  },
@@ -4215,7 +4214,7 @@ app19.openapi(
4215
4214
  description: "List of subAgent tool relations retrieved successfully",
4216
4215
  content: {
4217
4216
  "application/json": {
4218
- schema: ListResponseSchema(SubAgentToolRelationApiSelectSchema)
4217
+ schema: SubAgentToolRelationListResponse
4219
4218
  }
4220
4219
  }
4221
4220
  },
@@ -4273,7 +4272,7 @@ app19.openapi(
4273
4272
  description: "SubAgent tool relation found",
4274
4273
  content: {
4275
4274
  "application/json": {
4276
- schema: SingleResponseSchema(SubAgentToolRelationApiSelectSchema)
4275
+ schema: SubAgentToolRelationResponse
4277
4276
  }
4278
4277
  }
4279
4278
  },
@@ -4313,7 +4312,7 @@ app19.openapi(
4313
4312
  description: "SubAgents for tool retrieved successfully",
4314
4313
  content: {
4315
4314
  "application/json": {
4316
- schema: ListResponseSchema(SubAgentToolRelationApiSelectSchema)
4315
+ schema: SubAgentToolRelationListResponse
4317
4316
  }
4318
4317
  }
4319
4318
  },
@@ -4353,7 +4352,7 @@ app19.openapi(
4353
4352
  description: "SubAgent tool relation created successfully",
4354
4353
  content: {
4355
4354
  "application/json": {
4356
- schema: SingleResponseSchema(SubAgentToolRelationApiSelectSchema)
4355
+ schema: SubAgentToolRelationResponse
4357
4356
  }
4358
4357
  }
4359
4358
  },
@@ -4416,7 +4415,7 @@ app19.openapi(
4416
4415
  description: "SubAgent tool relation updated successfully",
4417
4416
  content: {
4418
4417
  "application/json": {
4419
- schema: SingleResponseSchema(SubAgentToolRelationApiSelectSchema)
4418
+ schema: SubAgentToolRelationResponse
4420
4419
  }
4421
4420
  }
4422
4421
  },
@@ -4507,7 +4506,7 @@ app20.openapi(
4507
4506
  description: "List of tools retrieved successfully",
4508
4507
  content: {
4509
4508
  "application/json": {
4510
- schema: ListResponseSchema(McpToolSchema)
4509
+ schema: McpToolListResponse
4511
4510
  }
4512
4511
  }
4513
4512
  },
@@ -4564,7 +4563,7 @@ app20.openapi(
4564
4563
  description: "Tool found",
4565
4564
  content: {
4566
4565
  "application/json": {
4567
- schema: SingleResponseSchema(McpToolSchema)
4566
+ schema: McpToolResponse
4568
4567
  }
4569
4568
  }
4570
4569
  },
@@ -4608,7 +4607,7 @@ app20.openapi(
4608
4607
  description: "Tool created successfully",
4609
4608
  content: {
4610
4609
  "application/json": {
4611
- schema: SingleResponseSchema(McpToolSchema)
4610
+ schema: McpToolResponse
4612
4611
  }
4613
4612
  }
4614
4613
  },
@@ -4661,7 +4660,7 @@ app20.openapi(
4661
4660
  description: "Tool updated successfully",
4662
4661
  content: {
4663
4662
  "application/json": {
4664
- schema: SingleResponseSchema(McpToolSchema)
4663
+ schema: McpToolResponse
4665
4664
  }
4666
4665
  }
4667
4666
  },
@@ -4811,7 +4810,7 @@ var OAuthService = class {
4811
4810
  clientName: config.clientName || process.env.OAUTH_CLIENT_NAME || "Inkeep Agent Framework",
4812
4811
  clientUri: config.clientUri || process.env.OAUTH_CLIENT_URI || "https://inkeep.com",
4813
4812
  logoUri: config.logoUri || process.env.OAUTH_CLIENT_LOGO_URI || "https://inkeep.com/images/logos/inkeep-logo-blue.svg",
4814
- redirectBaseUrl: config.redirectBaseUrl || env.AGENTS_MANAGE_API_URL
4813
+ redirectBaseUrl: config.redirectBaseUrl || env.INKEEP_AGENTS_MANAGE_API_URL
4815
4814
  };
4816
4815
  }
4817
4816
  /**
@@ -5223,7 +5222,7 @@ app23.openapi(
5223
5222
  description: "Full project created successfully",
5224
5223
  content: {
5225
5224
  "application/json": {
5226
- schema: SingleResponseSchema(FullProjectDefinitionSchema)
5225
+ schema: FullProjectDefinitionResponse
5227
5226
  }
5228
5227
  }
5229
5228
  },
@@ -5277,7 +5276,7 @@ app23.openapi(
5277
5276
  description: "Full project found",
5278
5277
  content: {
5279
5278
  "application/json": {
5280
- schema: SingleResponseSchema(FullProjectDefinitionSchema)
5279
+ schema: FullProjectDefinitionResponse
5281
5280
  }
5282
5281
  }
5283
5282
  },
@@ -5337,7 +5336,7 @@ app23.openapi(
5337
5336
  description: "Full project updated successfully",
5338
5337
  content: {
5339
5338
  "application/json": {
5340
- schema: SingleResponseSchema(FullProjectDefinitionSchema)
5339
+ schema: FullProjectDefinitionResponse
5341
5340
  }
5342
5341
  }
5343
5342
  },
@@ -5345,7 +5344,7 @@ app23.openapi(
5345
5344
  description: "Full project created successfully",
5346
5345
  content: {
5347
5346
  "application/json": {
5348
- schema: SingleResponseSchema(FullProjectDefinitionSchema)
5347
+ schema: FullProjectDefinitionResponse
5349
5348
  }
5350
5349
  }
5351
5350
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-manage-api",
3
- "version": "0.32.1",
3
+ "version": "0.33.0",
4
4
  "description": "Agents Manage API for Inkeep Agent Framework - handles CRUD operations and OAuth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "openid-client": "^6.6.4",
24
24
  "pino": "^9.7.0",
25
25
  "zod": "^4.1.11",
26
- "@inkeep/agents-core": "^0.32.1"
26
+ "@inkeep/agents-core": "^0.33.0"
27
27
  },
28
28
  "optionalDependencies": {
29
29
  "keytar": "^7.9.0"