@inkeep/agents-manage-api 0.32.1 → 0.32.2
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 +42 -42
- package/dist/index.js +43 -43
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -83,7 +83,7 @@ function setupOpenAPIRoutes(app25) {
|
|
|
83
83
|
servers: [
|
|
84
84
|
{
|
|
85
85
|
url: env.AGENTS_MANAGE_API_URL,
|
|
86
|
-
description: "
|
|
86
|
+
description: "API Server"
|
|
87
87
|
}
|
|
88
88
|
]
|
|
89
89
|
});
|
|
@@ -203,7 +203,7 @@ app.openapi(
|
|
|
203
203
|
description: "Related agent infos retrieved successfully",
|
|
204
204
|
content: {
|
|
205
205
|
"application/json": {
|
|
206
|
-
schema: agentsCore.
|
|
206
|
+
schema: agentsCore.RelatedAgentInfoListResponse
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
},
|
|
@@ -243,7 +243,7 @@ app.openapi(
|
|
|
243
243
|
description: "Full agent definition retrieved successfully",
|
|
244
244
|
content: {
|
|
245
245
|
"application/json": {
|
|
246
|
-
schema: agentsCore.
|
|
246
|
+
schema: agentsCore.AgentWithinContextOfProjectResponse
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
},
|
|
@@ -419,7 +419,7 @@ app2.openapi(
|
|
|
419
419
|
description: "Full agent created successfully",
|
|
420
420
|
content: {
|
|
421
421
|
"application/json": {
|
|
422
|
-
schema: agentsCore.
|
|
422
|
+
schema: agentsCore.AgentWithinContextOfProjectResponse
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
},
|
|
@@ -461,7 +461,7 @@ app2.openapi(
|
|
|
461
461
|
description: "Full agent found",
|
|
462
462
|
content: {
|
|
463
463
|
"application/json": {
|
|
464
|
-
schema: agentsCore.
|
|
464
|
+
schema: agentsCore.AgentWithinContextOfProjectResponse
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
},
|
|
@@ -521,7 +521,7 @@ app2.openapi(
|
|
|
521
521
|
description: "Full agent updated successfully",
|
|
522
522
|
content: {
|
|
523
523
|
"application/json": {
|
|
524
|
-
schema: agentsCore.
|
|
524
|
+
schema: agentsCore.AgentWithinContextOfProjectResponse
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
},
|
|
@@ -529,7 +529,7 @@ app2.openapi(
|
|
|
529
529
|
description: "Full agent created successfully",
|
|
530
530
|
content: {
|
|
531
531
|
"application/json": {
|
|
532
|
-
schema: agentsCore.
|
|
532
|
+
schema: agentsCore.AgentWithinContextOfProjectResponse
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
},
|
|
@@ -2391,7 +2391,7 @@ app11.openapi(
|
|
|
2391
2391
|
description: "List of function tools retrieved successfully",
|
|
2392
2392
|
content: {
|
|
2393
2393
|
"application/json": {
|
|
2394
|
-
schema: agentsCore.
|
|
2394
|
+
schema: agentsCore.FunctionToolListResponse
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
2397
|
},
|
|
@@ -2431,7 +2431,7 @@ app11.openapi(
|
|
|
2431
2431
|
description: "Function tool retrieved successfully",
|
|
2432
2432
|
content: {
|
|
2433
2433
|
"application/json": {
|
|
2434
|
-
schema: agentsCore.
|
|
2434
|
+
schema: agentsCore.FunctionToolResponse
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
},
|
|
@@ -2483,7 +2483,7 @@ app11.openapi(
|
|
|
2483
2483
|
description: "Function tool created successfully",
|
|
2484
2484
|
content: {
|
|
2485
2485
|
"application/json": {
|
|
2486
|
-
schema: agentsCore.
|
|
2486
|
+
schema: agentsCore.FunctionToolResponse
|
|
2487
2487
|
}
|
|
2488
2488
|
}
|
|
2489
2489
|
},
|
|
@@ -2537,7 +2537,7 @@ app11.openapi(
|
|
|
2537
2537
|
description: "Function tool updated successfully",
|
|
2538
2538
|
content: {
|
|
2539
2539
|
"application/json": {
|
|
2540
|
-
schema: agentsCore.
|
|
2540
|
+
schema: agentsCore.FunctionToolResponse
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
2543
|
},
|
|
@@ -2861,7 +2861,7 @@ app13.openapi(
|
|
|
2861
2861
|
description: "Artifact components retrieved successfully",
|
|
2862
2862
|
content: {
|
|
2863
2863
|
"application/json": {
|
|
2864
|
-
schema: agentsCore.
|
|
2864
|
+
schema: agentsCore.ArtifactComponentArrayResponse
|
|
2865
2865
|
}
|
|
2866
2866
|
}
|
|
2867
2867
|
},
|
|
@@ -2895,7 +2895,7 @@ app13.openapi(
|
|
|
2895
2895
|
description: "Agents retrieved successfully",
|
|
2896
2896
|
content: {
|
|
2897
2897
|
"application/json": {
|
|
2898
|
-
schema: agentsCore.
|
|
2898
|
+
schema: agentsCore.ComponentAssociationListResponse
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
2901
|
},
|
|
@@ -2933,7 +2933,7 @@ app13.openapi(
|
|
|
2933
2933
|
description: "Agent artifact component association created successfully",
|
|
2934
2934
|
content: {
|
|
2935
2935
|
"application/json": {
|
|
2936
|
-
schema: agentsCore.
|
|
2936
|
+
schema: agentsCore.SubAgentArtifactComponentResponse
|
|
2937
2937
|
}
|
|
2938
2938
|
}
|
|
2939
2939
|
},
|
|
@@ -3080,7 +3080,7 @@ app14.openapi(
|
|
|
3080
3080
|
description: "Data components retrieved successfully",
|
|
3081
3081
|
content: {
|
|
3082
3082
|
"application/json": {
|
|
3083
|
-
schema: agentsCore.
|
|
3083
|
+
schema: agentsCore.DataComponentArrayResponse
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
3086
|
},
|
|
@@ -3112,7 +3112,7 @@ app14.openapi(
|
|
|
3112
3112
|
description: "Agents retrieved successfully",
|
|
3113
3113
|
content: {
|
|
3114
3114
|
"application/json": {
|
|
3115
|
-
schema: agentsCore.
|
|
3115
|
+
schema: agentsCore.ComponentAssociationListResponse
|
|
3116
3116
|
}
|
|
3117
3117
|
}
|
|
3118
3118
|
},
|
|
@@ -3150,7 +3150,7 @@ app14.openapi(
|
|
|
3150
3150
|
description: "Agent data component association created successfully",
|
|
3151
3151
|
content: {
|
|
3152
3152
|
"application/json": {
|
|
3153
|
-
schema: agentsCore.
|
|
3153
|
+
schema: agentsCore.SubAgentDataComponentResponse
|
|
3154
3154
|
}
|
|
3155
3155
|
}
|
|
3156
3156
|
},
|
|
@@ -3294,7 +3294,7 @@ app15.openapi(
|
|
|
3294
3294
|
description: "List of sub agent external agent relations retrieved successfully",
|
|
3295
3295
|
content: {
|
|
3296
3296
|
"application/json": {
|
|
3297
|
-
schema: agentsCore.
|
|
3297
|
+
schema: agentsCore.SubAgentExternalAgentRelationListResponse
|
|
3298
3298
|
}
|
|
3299
3299
|
}
|
|
3300
3300
|
},
|
|
@@ -3335,7 +3335,7 @@ app15.openapi(
|
|
|
3335
3335
|
description: "Sub Agent external agent relation found",
|
|
3336
3336
|
content: {
|
|
3337
3337
|
"application/json": {
|
|
3338
|
-
schema: agentsCore.
|
|
3338
|
+
schema: agentsCore.SubAgentExternalAgentRelationResponse
|
|
3339
3339
|
}
|
|
3340
3340
|
}
|
|
3341
3341
|
},
|
|
@@ -3379,7 +3379,7 @@ app15.openapi(
|
|
|
3379
3379
|
description: "Sub Agent External Agent Relation created successfully",
|
|
3380
3380
|
content: {
|
|
3381
3381
|
"application/json": {
|
|
3382
|
-
schema: agentsCore.
|
|
3382
|
+
schema: agentsCore.SubAgentExternalAgentRelationResponse
|
|
3383
3383
|
}
|
|
3384
3384
|
}
|
|
3385
3385
|
},
|
|
@@ -3435,7 +3435,7 @@ app15.openapi(
|
|
|
3435
3435
|
description: "Sub Agent external agent relation updated successfully",
|
|
3436
3436
|
content: {
|
|
3437
3437
|
"application/json": {
|
|
3438
|
-
schema: agentsCore.
|
|
3438
|
+
schema: agentsCore.SubAgentExternalAgentRelationResponse
|
|
3439
3439
|
}
|
|
3440
3440
|
}
|
|
3441
3441
|
},
|
|
@@ -3516,7 +3516,7 @@ app16.openapi(
|
|
|
3516
3516
|
description: "List of sub agent relations retrieved successfully",
|
|
3517
3517
|
content: {
|
|
3518
3518
|
"application/json": {
|
|
3519
|
-
schema: agentsCore.
|
|
3519
|
+
schema: agentsCore.SubAgentRelationListResponse
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
3522
|
},
|
|
@@ -3575,7 +3575,7 @@ app16.openapi(
|
|
|
3575
3575
|
description: "Sub Agent relation found",
|
|
3576
3576
|
content: {
|
|
3577
3577
|
"application/json": {
|
|
3578
|
-
schema: agentsCore.
|
|
3578
|
+
schema: agentsCore.SubAgentRelationResponse
|
|
3579
3579
|
}
|
|
3580
3580
|
}
|
|
3581
3581
|
},
|
|
@@ -3619,7 +3619,7 @@ app16.openapi(
|
|
|
3619
3619
|
description: "Sub Agent Relation created successfully",
|
|
3620
3620
|
content: {
|
|
3621
3621
|
"application/json": {
|
|
3622
|
-
schema: agentsCore.
|
|
3622
|
+
schema: agentsCore.SubAgentRelationResponse
|
|
3623
3623
|
}
|
|
3624
3624
|
}
|
|
3625
3625
|
},
|
|
@@ -3693,7 +3693,7 @@ app16.openapi(
|
|
|
3693
3693
|
description: "Sub Agent relation updated successfully",
|
|
3694
3694
|
content: {
|
|
3695
3695
|
"application/json": {
|
|
3696
|
-
schema: agentsCore.
|
|
3696
|
+
schema: agentsCore.SubAgentRelationResponse
|
|
3697
3697
|
}
|
|
3698
3698
|
}
|
|
3699
3699
|
},
|
|
@@ -3994,7 +3994,7 @@ app18.openapi(
|
|
|
3994
3994
|
description: "List of sub agent team agent relations retrieved successfully",
|
|
3995
3995
|
content: {
|
|
3996
3996
|
"application/json": {
|
|
3997
|
-
schema: agentsCore.
|
|
3997
|
+
schema: agentsCore.SubAgentTeamAgentRelationListResponse
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
},
|
|
@@ -4035,7 +4035,7 @@ app18.openapi(
|
|
|
4035
4035
|
description: "Sub Agent team agent relation found",
|
|
4036
4036
|
content: {
|
|
4037
4037
|
"application/json": {
|
|
4038
|
-
schema: agentsCore.
|
|
4038
|
+
schema: agentsCore.SubAgentTeamAgentRelationResponse
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
4041
|
},
|
|
@@ -4079,7 +4079,7 @@ app18.openapi(
|
|
|
4079
4079
|
description: "Sub Agent Team Agent Relation created successfully",
|
|
4080
4080
|
content: {
|
|
4081
4081
|
"application/json": {
|
|
4082
|
-
schema: agentsCore.
|
|
4082
|
+
schema: agentsCore.SubAgentTeamAgentRelationResponse
|
|
4083
4083
|
}
|
|
4084
4084
|
}
|
|
4085
4085
|
},
|
|
@@ -4135,7 +4135,7 @@ app18.openapi(
|
|
|
4135
4135
|
description: "Sub Agent team agent relation updated successfully",
|
|
4136
4136
|
content: {
|
|
4137
4137
|
"application/json": {
|
|
4138
|
-
schema: agentsCore.
|
|
4138
|
+
schema: agentsCore.SubAgentTeamAgentRelationResponse
|
|
4139
4139
|
}
|
|
4140
4140
|
}
|
|
4141
4141
|
},
|
|
@@ -4219,7 +4219,7 @@ app19.openapi(
|
|
|
4219
4219
|
description: "List of subAgent tool relations retrieved successfully",
|
|
4220
4220
|
content: {
|
|
4221
4221
|
"application/json": {
|
|
4222
|
-
schema: agentsCore.
|
|
4222
|
+
schema: agentsCore.SubAgentToolRelationListResponse
|
|
4223
4223
|
}
|
|
4224
4224
|
}
|
|
4225
4225
|
},
|
|
@@ -4277,7 +4277,7 @@ app19.openapi(
|
|
|
4277
4277
|
description: "SubAgent tool relation found",
|
|
4278
4278
|
content: {
|
|
4279
4279
|
"application/json": {
|
|
4280
|
-
schema: agentsCore.
|
|
4280
|
+
schema: agentsCore.SubAgentToolRelationResponse
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
4283
|
},
|
|
@@ -4317,7 +4317,7 @@ app19.openapi(
|
|
|
4317
4317
|
description: "SubAgents for tool retrieved successfully",
|
|
4318
4318
|
content: {
|
|
4319
4319
|
"application/json": {
|
|
4320
|
-
schema: agentsCore.
|
|
4320
|
+
schema: agentsCore.SubAgentToolRelationListResponse
|
|
4321
4321
|
}
|
|
4322
4322
|
}
|
|
4323
4323
|
},
|
|
@@ -4357,7 +4357,7 @@ app19.openapi(
|
|
|
4357
4357
|
description: "SubAgent tool relation created successfully",
|
|
4358
4358
|
content: {
|
|
4359
4359
|
"application/json": {
|
|
4360
|
-
schema: agentsCore.
|
|
4360
|
+
schema: agentsCore.SubAgentToolRelationResponse
|
|
4361
4361
|
}
|
|
4362
4362
|
}
|
|
4363
4363
|
},
|
|
@@ -4420,7 +4420,7 @@ app19.openapi(
|
|
|
4420
4420
|
description: "SubAgent tool relation updated successfully",
|
|
4421
4421
|
content: {
|
|
4422
4422
|
"application/json": {
|
|
4423
|
-
schema: agentsCore.
|
|
4423
|
+
schema: agentsCore.SubAgentToolRelationResponse
|
|
4424
4424
|
}
|
|
4425
4425
|
}
|
|
4426
4426
|
},
|
|
@@ -4511,7 +4511,7 @@ app20.openapi(
|
|
|
4511
4511
|
description: "List of tools retrieved successfully",
|
|
4512
4512
|
content: {
|
|
4513
4513
|
"application/json": {
|
|
4514
|
-
schema: agentsCore.
|
|
4514
|
+
schema: agentsCore.McpToolListResponse
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
4517
4517
|
},
|
|
@@ -4568,7 +4568,7 @@ app20.openapi(
|
|
|
4568
4568
|
description: "Tool found",
|
|
4569
4569
|
content: {
|
|
4570
4570
|
"application/json": {
|
|
4571
|
-
schema: agentsCore.
|
|
4571
|
+
schema: agentsCore.McpToolResponse
|
|
4572
4572
|
}
|
|
4573
4573
|
}
|
|
4574
4574
|
},
|
|
@@ -4612,7 +4612,7 @@ app20.openapi(
|
|
|
4612
4612
|
description: "Tool created successfully",
|
|
4613
4613
|
content: {
|
|
4614
4614
|
"application/json": {
|
|
4615
|
-
schema: agentsCore.
|
|
4615
|
+
schema: agentsCore.McpToolResponse
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
4618
|
},
|
|
@@ -4665,7 +4665,7 @@ app20.openapi(
|
|
|
4665
4665
|
description: "Tool updated successfully",
|
|
4666
4666
|
content: {
|
|
4667
4667
|
"application/json": {
|
|
4668
|
-
schema: agentsCore.
|
|
4668
|
+
schema: agentsCore.McpToolResponse
|
|
4669
4669
|
}
|
|
4670
4670
|
}
|
|
4671
4671
|
},
|
|
@@ -5227,7 +5227,7 @@ app23.openapi(
|
|
|
5227
5227
|
description: "Full project created successfully",
|
|
5228
5228
|
content: {
|
|
5229
5229
|
"application/json": {
|
|
5230
|
-
schema: agentsCore.
|
|
5230
|
+
schema: agentsCore.FullProjectDefinitionResponse
|
|
5231
5231
|
}
|
|
5232
5232
|
}
|
|
5233
5233
|
},
|
|
@@ -5281,7 +5281,7 @@ app23.openapi(
|
|
|
5281
5281
|
description: "Full project found",
|
|
5282
5282
|
content: {
|
|
5283
5283
|
"application/json": {
|
|
5284
|
-
schema: agentsCore.
|
|
5284
|
+
schema: agentsCore.FullProjectDefinitionResponse
|
|
5285
5285
|
}
|
|
5286
5286
|
}
|
|
5287
5287
|
},
|
|
@@ -5341,7 +5341,7 @@ app23.openapi(
|
|
|
5341
5341
|
description: "Full project updated successfully",
|
|
5342
5342
|
content: {
|
|
5343
5343
|
"application/json": {
|
|
5344
|
-
schema: agentsCore.
|
|
5344
|
+
schema: agentsCore.FullProjectDefinitionResponse
|
|
5345
5345
|
}
|
|
5346
5346
|
}
|
|
5347
5347
|
},
|
|
@@ -5349,7 +5349,7 @@ app23.openapi(
|
|
|
5349
5349
|
description: "Full project created successfully",
|
|
5350
5350
|
content: {
|
|
5351
5351
|
"application/json": {
|
|
5352
|
-
schema: agentsCore.
|
|
5352
|
+
schema: agentsCore.FullProjectDefinitionResponse
|
|
5353
5353
|
}
|
|
5354
5354
|
}
|
|
5355
5355
|
},
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadEnvironmentFiles, getLogger, createDatabaseClient, commonGetErrorResponses, AgentListResponse, PaginationQueryParamsSchema, TenantProjectParamsSchema, listAgents, AgentResponse, TenantProjectIdParamsSchema, getAgentById, createApiError,
|
|
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';
|
|
@@ -79,7 +79,7 @@ function setupOpenAPIRoutes(app25) {
|
|
|
79
79
|
servers: [
|
|
80
80
|
{
|
|
81
81
|
url: env.AGENTS_MANAGE_API_URL,
|
|
82
|
-
description: "
|
|
82
|
+
description: "API Server"
|
|
83
83
|
}
|
|
84
84
|
]
|
|
85
85
|
});
|
|
@@ -199,7 +199,7 @@ app.openapi(
|
|
|
199
199
|
description: "Related agent infos retrieved successfully",
|
|
200
200
|
content: {
|
|
201
201
|
"application/json": {
|
|
202
|
-
schema:
|
|
202
|
+
schema: RelatedAgentInfoListResponse
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
},
|
|
@@ -239,7 +239,7 @@ app.openapi(
|
|
|
239
239
|
description: "Full agent definition retrieved successfully",
|
|
240
240
|
content: {
|
|
241
241
|
"application/json": {
|
|
242
|
-
schema:
|
|
242
|
+
schema: AgentWithinContextOfProjectResponse
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
},
|
|
@@ -415,7 +415,7 @@ app2.openapi(
|
|
|
415
415
|
description: "Full agent created successfully",
|
|
416
416
|
content: {
|
|
417
417
|
"application/json": {
|
|
418
|
-
schema:
|
|
418
|
+
schema: AgentWithinContextOfProjectResponse
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
},
|
|
@@ -457,7 +457,7 @@ app2.openapi(
|
|
|
457
457
|
description: "Full agent found",
|
|
458
458
|
content: {
|
|
459
459
|
"application/json": {
|
|
460
|
-
schema:
|
|
460
|
+
schema: AgentWithinContextOfProjectResponse
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
},
|
|
@@ -517,7 +517,7 @@ app2.openapi(
|
|
|
517
517
|
description: "Full agent updated successfully",
|
|
518
518
|
content: {
|
|
519
519
|
"application/json": {
|
|
520
|
-
schema:
|
|
520
|
+
schema: AgentWithinContextOfProjectResponse
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
},
|
|
@@ -525,7 +525,7 @@ app2.openapi(
|
|
|
525
525
|
description: "Full agent created successfully",
|
|
526
526
|
content: {
|
|
527
527
|
"application/json": {
|
|
528
|
-
schema:
|
|
528
|
+
schema: AgentWithinContextOfProjectResponse
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
},
|
|
@@ -2387,7 +2387,7 @@ app11.openapi(
|
|
|
2387
2387
|
description: "List of function tools retrieved successfully",
|
|
2388
2388
|
content: {
|
|
2389
2389
|
"application/json": {
|
|
2390
|
-
schema:
|
|
2390
|
+
schema: FunctionToolListResponse
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
2393
|
},
|
|
@@ -2427,7 +2427,7 @@ app11.openapi(
|
|
|
2427
2427
|
description: "Function tool retrieved successfully",
|
|
2428
2428
|
content: {
|
|
2429
2429
|
"application/json": {
|
|
2430
|
-
schema:
|
|
2430
|
+
schema: FunctionToolResponse
|
|
2431
2431
|
}
|
|
2432
2432
|
}
|
|
2433
2433
|
},
|
|
@@ -2479,7 +2479,7 @@ app11.openapi(
|
|
|
2479
2479
|
description: "Function tool created successfully",
|
|
2480
2480
|
content: {
|
|
2481
2481
|
"application/json": {
|
|
2482
|
-
schema:
|
|
2482
|
+
schema: FunctionToolResponse
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
2485
|
},
|
|
@@ -2533,7 +2533,7 @@ app11.openapi(
|
|
|
2533
2533
|
description: "Function tool updated successfully",
|
|
2534
2534
|
content: {
|
|
2535
2535
|
"application/json": {
|
|
2536
|
-
schema:
|
|
2536
|
+
schema: FunctionToolResponse
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
2539
|
},
|
|
@@ -2857,7 +2857,7 @@ app13.openapi(
|
|
|
2857
2857
|
description: "Artifact components retrieved successfully",
|
|
2858
2858
|
content: {
|
|
2859
2859
|
"application/json": {
|
|
2860
|
-
schema:
|
|
2860
|
+
schema: ArtifactComponentArrayResponse
|
|
2861
2861
|
}
|
|
2862
2862
|
}
|
|
2863
2863
|
},
|
|
@@ -2891,7 +2891,7 @@ app13.openapi(
|
|
|
2891
2891
|
description: "Agents retrieved successfully",
|
|
2892
2892
|
content: {
|
|
2893
2893
|
"application/json": {
|
|
2894
|
-
schema:
|
|
2894
|
+
schema: ComponentAssociationListResponse
|
|
2895
2895
|
}
|
|
2896
2896
|
}
|
|
2897
2897
|
},
|
|
@@ -2929,7 +2929,7 @@ app13.openapi(
|
|
|
2929
2929
|
description: "Agent artifact component association created successfully",
|
|
2930
2930
|
content: {
|
|
2931
2931
|
"application/json": {
|
|
2932
|
-
schema:
|
|
2932
|
+
schema: SubAgentArtifactComponentResponse
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
2935
|
},
|
|
@@ -3076,7 +3076,7 @@ app14.openapi(
|
|
|
3076
3076
|
description: "Data components retrieved successfully",
|
|
3077
3077
|
content: {
|
|
3078
3078
|
"application/json": {
|
|
3079
|
-
schema:
|
|
3079
|
+
schema: DataComponentArrayResponse
|
|
3080
3080
|
}
|
|
3081
3081
|
}
|
|
3082
3082
|
},
|
|
@@ -3108,7 +3108,7 @@ app14.openapi(
|
|
|
3108
3108
|
description: "Agents retrieved successfully",
|
|
3109
3109
|
content: {
|
|
3110
3110
|
"application/json": {
|
|
3111
|
-
schema:
|
|
3111
|
+
schema: ComponentAssociationListResponse
|
|
3112
3112
|
}
|
|
3113
3113
|
}
|
|
3114
3114
|
},
|
|
@@ -3146,7 +3146,7 @@ app14.openapi(
|
|
|
3146
3146
|
description: "Agent data component association created successfully",
|
|
3147
3147
|
content: {
|
|
3148
3148
|
"application/json": {
|
|
3149
|
-
schema:
|
|
3149
|
+
schema: SubAgentDataComponentResponse
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
3152
|
},
|
|
@@ -3290,7 +3290,7 @@ app15.openapi(
|
|
|
3290
3290
|
description: "List of sub agent external agent relations retrieved successfully",
|
|
3291
3291
|
content: {
|
|
3292
3292
|
"application/json": {
|
|
3293
|
-
schema:
|
|
3293
|
+
schema: SubAgentExternalAgentRelationListResponse
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
},
|
|
@@ -3331,7 +3331,7 @@ app15.openapi(
|
|
|
3331
3331
|
description: "Sub Agent external agent relation found",
|
|
3332
3332
|
content: {
|
|
3333
3333
|
"application/json": {
|
|
3334
|
-
schema:
|
|
3334
|
+
schema: SubAgentExternalAgentRelationResponse
|
|
3335
3335
|
}
|
|
3336
3336
|
}
|
|
3337
3337
|
},
|
|
@@ -3375,7 +3375,7 @@ app15.openapi(
|
|
|
3375
3375
|
description: "Sub Agent External Agent Relation created successfully",
|
|
3376
3376
|
content: {
|
|
3377
3377
|
"application/json": {
|
|
3378
|
-
schema:
|
|
3378
|
+
schema: SubAgentExternalAgentRelationResponse
|
|
3379
3379
|
}
|
|
3380
3380
|
}
|
|
3381
3381
|
},
|
|
@@ -3431,7 +3431,7 @@ app15.openapi(
|
|
|
3431
3431
|
description: "Sub Agent external agent relation updated successfully",
|
|
3432
3432
|
content: {
|
|
3433
3433
|
"application/json": {
|
|
3434
|
-
schema:
|
|
3434
|
+
schema: SubAgentExternalAgentRelationResponse
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
3437
3437
|
},
|
|
@@ -3512,7 +3512,7 @@ app16.openapi(
|
|
|
3512
3512
|
description: "List of sub agent relations retrieved successfully",
|
|
3513
3513
|
content: {
|
|
3514
3514
|
"application/json": {
|
|
3515
|
-
schema:
|
|
3515
|
+
schema: SubAgentRelationListResponse
|
|
3516
3516
|
}
|
|
3517
3517
|
}
|
|
3518
3518
|
},
|
|
@@ -3571,7 +3571,7 @@ app16.openapi(
|
|
|
3571
3571
|
description: "Sub Agent relation found",
|
|
3572
3572
|
content: {
|
|
3573
3573
|
"application/json": {
|
|
3574
|
-
schema:
|
|
3574
|
+
schema: SubAgentRelationResponse
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
3577
|
},
|
|
@@ -3615,7 +3615,7 @@ app16.openapi(
|
|
|
3615
3615
|
description: "Sub Agent Relation created successfully",
|
|
3616
3616
|
content: {
|
|
3617
3617
|
"application/json": {
|
|
3618
|
-
schema:
|
|
3618
|
+
schema: SubAgentRelationResponse
|
|
3619
3619
|
}
|
|
3620
3620
|
}
|
|
3621
3621
|
},
|
|
@@ -3689,7 +3689,7 @@ app16.openapi(
|
|
|
3689
3689
|
description: "Sub Agent relation updated successfully",
|
|
3690
3690
|
content: {
|
|
3691
3691
|
"application/json": {
|
|
3692
|
-
schema:
|
|
3692
|
+
schema: SubAgentRelationResponse
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
3695
|
},
|
|
@@ -3990,7 +3990,7 @@ app18.openapi(
|
|
|
3990
3990
|
description: "List of sub agent team agent relations retrieved successfully",
|
|
3991
3991
|
content: {
|
|
3992
3992
|
"application/json": {
|
|
3993
|
-
schema:
|
|
3993
|
+
schema: SubAgentTeamAgentRelationListResponse
|
|
3994
3994
|
}
|
|
3995
3995
|
}
|
|
3996
3996
|
},
|
|
@@ -4031,7 +4031,7 @@ app18.openapi(
|
|
|
4031
4031
|
description: "Sub Agent team agent relation found",
|
|
4032
4032
|
content: {
|
|
4033
4033
|
"application/json": {
|
|
4034
|
-
schema:
|
|
4034
|
+
schema: SubAgentTeamAgentRelationResponse
|
|
4035
4035
|
}
|
|
4036
4036
|
}
|
|
4037
4037
|
},
|
|
@@ -4075,7 +4075,7 @@ app18.openapi(
|
|
|
4075
4075
|
description: "Sub Agent Team Agent Relation created successfully",
|
|
4076
4076
|
content: {
|
|
4077
4077
|
"application/json": {
|
|
4078
|
-
schema:
|
|
4078
|
+
schema: SubAgentTeamAgentRelationResponse
|
|
4079
4079
|
}
|
|
4080
4080
|
}
|
|
4081
4081
|
},
|
|
@@ -4131,7 +4131,7 @@ app18.openapi(
|
|
|
4131
4131
|
description: "Sub Agent team agent relation updated successfully",
|
|
4132
4132
|
content: {
|
|
4133
4133
|
"application/json": {
|
|
4134
|
-
schema:
|
|
4134
|
+
schema: SubAgentTeamAgentRelationResponse
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
4137
|
},
|
|
@@ -4215,7 +4215,7 @@ app19.openapi(
|
|
|
4215
4215
|
description: "List of subAgent tool relations retrieved successfully",
|
|
4216
4216
|
content: {
|
|
4217
4217
|
"application/json": {
|
|
4218
|
-
schema:
|
|
4218
|
+
schema: SubAgentToolRelationListResponse
|
|
4219
4219
|
}
|
|
4220
4220
|
}
|
|
4221
4221
|
},
|
|
@@ -4273,7 +4273,7 @@ app19.openapi(
|
|
|
4273
4273
|
description: "SubAgent tool relation found",
|
|
4274
4274
|
content: {
|
|
4275
4275
|
"application/json": {
|
|
4276
|
-
schema:
|
|
4276
|
+
schema: SubAgentToolRelationResponse
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
4279
|
},
|
|
@@ -4313,7 +4313,7 @@ app19.openapi(
|
|
|
4313
4313
|
description: "SubAgents for tool retrieved successfully",
|
|
4314
4314
|
content: {
|
|
4315
4315
|
"application/json": {
|
|
4316
|
-
schema:
|
|
4316
|
+
schema: SubAgentToolRelationListResponse
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
4319
|
},
|
|
@@ -4353,7 +4353,7 @@ app19.openapi(
|
|
|
4353
4353
|
description: "SubAgent tool relation created successfully",
|
|
4354
4354
|
content: {
|
|
4355
4355
|
"application/json": {
|
|
4356
|
-
schema:
|
|
4356
|
+
schema: SubAgentToolRelationResponse
|
|
4357
4357
|
}
|
|
4358
4358
|
}
|
|
4359
4359
|
},
|
|
@@ -4416,7 +4416,7 @@ app19.openapi(
|
|
|
4416
4416
|
description: "SubAgent tool relation updated successfully",
|
|
4417
4417
|
content: {
|
|
4418
4418
|
"application/json": {
|
|
4419
|
-
schema:
|
|
4419
|
+
schema: SubAgentToolRelationResponse
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
4422
|
},
|
|
@@ -4507,7 +4507,7 @@ app20.openapi(
|
|
|
4507
4507
|
description: "List of tools retrieved successfully",
|
|
4508
4508
|
content: {
|
|
4509
4509
|
"application/json": {
|
|
4510
|
-
schema:
|
|
4510
|
+
schema: McpToolListResponse
|
|
4511
4511
|
}
|
|
4512
4512
|
}
|
|
4513
4513
|
},
|
|
@@ -4564,7 +4564,7 @@ app20.openapi(
|
|
|
4564
4564
|
description: "Tool found",
|
|
4565
4565
|
content: {
|
|
4566
4566
|
"application/json": {
|
|
4567
|
-
schema:
|
|
4567
|
+
schema: McpToolResponse
|
|
4568
4568
|
}
|
|
4569
4569
|
}
|
|
4570
4570
|
},
|
|
@@ -4608,7 +4608,7 @@ app20.openapi(
|
|
|
4608
4608
|
description: "Tool created successfully",
|
|
4609
4609
|
content: {
|
|
4610
4610
|
"application/json": {
|
|
4611
|
-
schema:
|
|
4611
|
+
schema: McpToolResponse
|
|
4612
4612
|
}
|
|
4613
4613
|
}
|
|
4614
4614
|
},
|
|
@@ -4661,7 +4661,7 @@ app20.openapi(
|
|
|
4661
4661
|
description: "Tool updated successfully",
|
|
4662
4662
|
content: {
|
|
4663
4663
|
"application/json": {
|
|
4664
|
-
schema:
|
|
4664
|
+
schema: McpToolResponse
|
|
4665
4665
|
}
|
|
4666
4666
|
}
|
|
4667
4667
|
},
|
|
@@ -5223,7 +5223,7 @@ app23.openapi(
|
|
|
5223
5223
|
description: "Full project created successfully",
|
|
5224
5224
|
content: {
|
|
5225
5225
|
"application/json": {
|
|
5226
|
-
schema:
|
|
5226
|
+
schema: FullProjectDefinitionResponse
|
|
5227
5227
|
}
|
|
5228
5228
|
}
|
|
5229
5229
|
},
|
|
@@ -5277,7 +5277,7 @@ app23.openapi(
|
|
|
5277
5277
|
description: "Full project found",
|
|
5278
5278
|
content: {
|
|
5279
5279
|
"application/json": {
|
|
5280
|
-
schema:
|
|
5280
|
+
schema: FullProjectDefinitionResponse
|
|
5281
5281
|
}
|
|
5282
5282
|
}
|
|
5283
5283
|
},
|
|
@@ -5337,7 +5337,7 @@ app23.openapi(
|
|
|
5337
5337
|
description: "Full project updated successfully",
|
|
5338
5338
|
content: {
|
|
5339
5339
|
"application/json": {
|
|
5340
|
-
schema:
|
|
5340
|
+
schema: FullProjectDefinitionResponse
|
|
5341
5341
|
}
|
|
5342
5342
|
}
|
|
5343
5343
|
},
|
|
@@ -5345,7 +5345,7 @@ app23.openapi(
|
|
|
5345
5345
|
description: "Full project created successfully",
|
|
5346
5346
|
content: {
|
|
5347
5347
|
"application/json": {
|
|
5348
|
-
schema:
|
|
5348
|
+
schema: FullProjectDefinitionResponse
|
|
5349
5349
|
}
|
|
5350
5350
|
}
|
|
5351
5351
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-manage-api",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.2",
|
|
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.
|
|
26
|
+
"@inkeep/agents-core": "^0.32.2"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
29
|
"keytar": "^7.9.0"
|