@inkeep/agents-manage-api 0.0.0-dev-20251014191727 → 0.0.0-dev-20251014201448
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 +28 -28
- package/dist/index.js +29 -29
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -208,7 +208,7 @@ app.openapi(
|
|
|
208
208
|
path: "/{agentId}/sub-agents/{subAgentId}/related",
|
|
209
209
|
summary: "Get Related Agent Infos",
|
|
210
210
|
operationId: "get-related-agent-infos",
|
|
211
|
-
tags: ["Agent
|
|
211
|
+
tags: ["Agent"],
|
|
212
212
|
request: {
|
|
213
213
|
params: agentsCore.TenantProjectParamsSchema.extend({
|
|
214
214
|
agentId: zod.z.string(),
|
|
@@ -257,7 +257,7 @@ app.openapi(
|
|
|
257
257
|
path: "/{agentId}/full",
|
|
258
258
|
summary: "Get Full Agent Definition",
|
|
259
259
|
operationId: "get-full-agent-definition",
|
|
260
|
-
tags: ["Agent
|
|
260
|
+
tags: ["Agent"],
|
|
261
261
|
request: {
|
|
262
262
|
params: agentsCore.TenantProjectAgentParamsSchema
|
|
263
263
|
},
|
|
@@ -3371,16 +3371,16 @@ app15.openapi(
|
|
|
3371
3371
|
zodOpenapi.createRoute({
|
|
3372
3372
|
method: "get",
|
|
3373
3373
|
path: "/",
|
|
3374
|
-
summary: "List Agent Relations",
|
|
3375
|
-
operationId: "list-agent-relations",
|
|
3376
|
-
tags: ["Agent Relations"],
|
|
3374
|
+
summary: "List Sub Agent Relations",
|
|
3375
|
+
operationId: "list-sub-agent-relations",
|
|
3376
|
+
tags: ["Sub Agent Relations"],
|
|
3377
3377
|
request: {
|
|
3378
3378
|
params: agentsCore.TenantProjectAgentParamsSchema,
|
|
3379
3379
|
query: agentsCore.PaginationQueryParamsSchema.merge(agentsCore.SubAgentRelationQuerySchema)
|
|
3380
3380
|
},
|
|
3381
3381
|
responses: {
|
|
3382
3382
|
200: {
|
|
3383
|
-
description: "List of agent relations retrieved successfully",
|
|
3383
|
+
description: "List of sub agent relations retrieved successfully",
|
|
3384
3384
|
content: {
|
|
3385
3385
|
"application/json": {
|
|
3386
3386
|
schema: agentsCore.ListResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
|
|
@@ -3411,7 +3411,7 @@ app15.openapi(
|
|
|
3411
3411
|
});
|
|
3412
3412
|
result = { ...rawResult, data: rawResult.data };
|
|
3413
3413
|
} else if (targetSubAgentId) {
|
|
3414
|
-
const rawResult = await agentsCore.
|
|
3414
|
+
const rawResult = await agentsCore.getSubAgentRelationsByTarget(dbClient_default)({
|
|
3415
3415
|
scopes: { tenantId, projectId, agentId },
|
|
3416
3416
|
targetSubAgentId,
|
|
3417
3417
|
pagination: { page: pageNum, limit: limitNum }
|
|
@@ -3435,7 +3435,7 @@ app15.openapi(
|
|
|
3435
3435
|
} catch (_error) {
|
|
3436
3436
|
throw agentsCore.createApiError({
|
|
3437
3437
|
code: "internal_server_error",
|
|
3438
|
-
message: "Failed to retrieve agent relations"
|
|
3438
|
+
message: "Failed to retrieve sub agent relations"
|
|
3439
3439
|
});
|
|
3440
3440
|
}
|
|
3441
3441
|
}
|
|
@@ -3444,15 +3444,15 @@ app15.openapi(
|
|
|
3444
3444
|
zodOpenapi.createRoute({
|
|
3445
3445
|
method: "get",
|
|
3446
3446
|
path: "/{id}",
|
|
3447
|
-
summary: "Get Agent Relation",
|
|
3448
|
-
operationId: "get-agent-relation-by-id",
|
|
3449
|
-
tags: ["Agent Relations"],
|
|
3447
|
+
summary: "Get Sub Agent Relation",
|
|
3448
|
+
operationId: "get-sub-agent-relation-by-id",
|
|
3449
|
+
tags: ["Sub Agent Relations"],
|
|
3450
3450
|
request: {
|
|
3451
3451
|
params: agentsCore.TenantProjectAgentIdParamsSchema
|
|
3452
3452
|
},
|
|
3453
3453
|
responses: {
|
|
3454
3454
|
200: {
|
|
3455
|
-
description: "Agent relation found",
|
|
3455
|
+
description: "Sub Agent relation found",
|
|
3456
3456
|
content: {
|
|
3457
3457
|
"application/json": {
|
|
3458
3458
|
schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
|
|
@@ -3471,7 +3471,7 @@ app15.openapi(
|
|
|
3471
3471
|
if (!agentRelation) {
|
|
3472
3472
|
throw agentsCore.createApiError({
|
|
3473
3473
|
code: "not_found",
|
|
3474
|
-
message: "Agent
|
|
3474
|
+
message: "Sub Agent Relation not found"
|
|
3475
3475
|
});
|
|
3476
3476
|
}
|
|
3477
3477
|
return c.json({ data: agentRelation });
|
|
@@ -3481,9 +3481,9 @@ app15.openapi(
|
|
|
3481
3481
|
zodOpenapi.createRoute({
|
|
3482
3482
|
method: "post",
|
|
3483
3483
|
path: "/",
|
|
3484
|
-
summary: "Create Agent Relation",
|
|
3485
|
-
operationId: "create-agent-relation",
|
|
3486
|
-
tags: ["Agent Relations"],
|
|
3484
|
+
summary: "Create Sub Agent Relation",
|
|
3485
|
+
operationId: "create-sub-agent-relation",
|
|
3486
|
+
tags: ["Sub Agent Relations"],
|
|
3487
3487
|
request: {
|
|
3488
3488
|
params: agentsCore.TenantProjectAgentParamsSchema,
|
|
3489
3489
|
body: {
|
|
@@ -3496,7 +3496,7 @@ app15.openapi(
|
|
|
3496
3496
|
},
|
|
3497
3497
|
responses: {
|
|
3498
3498
|
201: {
|
|
3499
|
-
description: "Agent
|
|
3499
|
+
description: "Sub Agent Relation created successfully",
|
|
3500
3500
|
content: {
|
|
3501
3501
|
"application/json": {
|
|
3502
3502
|
schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
|
|
@@ -3572,9 +3572,9 @@ app15.openapi(
|
|
|
3572
3572
|
zodOpenapi.createRoute({
|
|
3573
3573
|
method: "put",
|
|
3574
3574
|
path: "/{id}",
|
|
3575
|
-
summary: "Update Agent Relation",
|
|
3576
|
-
operationId: "update-agent-relation",
|
|
3577
|
-
tags: ["Agent Relations"],
|
|
3575
|
+
summary: "Update Sub Agent Relation",
|
|
3576
|
+
operationId: "update-sub-agent-relation",
|
|
3577
|
+
tags: ["Sub Agent Relations"],
|
|
3578
3578
|
request: {
|
|
3579
3579
|
params: agentsCore.TenantProjectAgentIdParamsSchema,
|
|
3580
3580
|
body: {
|
|
@@ -3587,7 +3587,7 @@ app15.openapi(
|
|
|
3587
3587
|
},
|
|
3588
3588
|
responses: {
|
|
3589
3589
|
200: {
|
|
3590
|
-
description: "Agent relation updated successfully",
|
|
3590
|
+
description: "Sub Agent relation updated successfully",
|
|
3591
3591
|
content: {
|
|
3592
3592
|
"application/json": {
|
|
3593
3593
|
schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
|
|
@@ -3608,7 +3608,7 @@ app15.openapi(
|
|
|
3608
3608
|
if (!updatedAgentRelation) {
|
|
3609
3609
|
throw agentsCore.createApiError({
|
|
3610
3610
|
code: "not_found",
|
|
3611
|
-
message: "Agent
|
|
3611
|
+
message: "Sub Agent Relation not found"
|
|
3612
3612
|
});
|
|
3613
3613
|
}
|
|
3614
3614
|
return c.json({ data: updatedAgentRelation });
|
|
@@ -3618,18 +3618,18 @@ app15.openapi(
|
|
|
3618
3618
|
zodOpenapi.createRoute({
|
|
3619
3619
|
method: "delete",
|
|
3620
3620
|
path: "/{id}",
|
|
3621
|
-
summary: "Delete Agent Relation",
|
|
3622
|
-
operationId: "delete-agent-relation",
|
|
3623
|
-
tags: ["Agent Relations"],
|
|
3621
|
+
summary: "Delete Sub Agent Relation",
|
|
3622
|
+
operationId: "delete-sub-agent-relation",
|
|
3623
|
+
tags: ["Sub Agent Relations"],
|
|
3624
3624
|
request: {
|
|
3625
3625
|
params: agentsCore.TenantProjectAgentIdParamsSchema
|
|
3626
3626
|
},
|
|
3627
3627
|
responses: {
|
|
3628
3628
|
204: {
|
|
3629
|
-
description: "Agent
|
|
3629
|
+
description: "Sub Agent Relation deleted successfully"
|
|
3630
3630
|
},
|
|
3631
3631
|
404: {
|
|
3632
|
-
description: "Agent
|
|
3632
|
+
description: "Sub Agent Relation not found",
|
|
3633
3633
|
content: {
|
|
3634
3634
|
"application/json": {
|
|
3635
3635
|
schema: agentsCore.ErrorResponseSchema
|
|
@@ -3647,7 +3647,7 @@ app15.openapi(
|
|
|
3647
3647
|
if (!deleted) {
|
|
3648
3648
|
throw agentsCore.createApiError({
|
|
3649
3649
|
code: "not_found",
|
|
3650
|
-
message: "Agent
|
|
3650
|
+
message: "Sub Agent Relation not found"
|
|
3651
3651
|
});
|
|
3652
3652
|
}
|
|
3653
3653
|
return c.body(null, 204);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadEnvironmentFiles, getLogger, createDatabaseClient, commonGetErrorResponses, AgentListResponse, PaginationQueryParamsSchema, TenantProjectParamsSchema, listAgents, AgentResponse, TenantProjectIdParamsSchema, getAgentById, createApiError, ListResponseSchema, getAgentSubAgentInfos, SingleResponseSchema, TenantProjectAgentParamsSchema, AgentWithinContextOfProjectSchema, getFullAgentDefinition, AgentApiInsertSchema, createAgent, 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, CredentialStoreType, CredentialReferenceListResponse, listCredentialReferencesPaginated, CredentialReferenceApiSelectSchema, CredentialReferenceResponse, getCredentialReferenceWithTools, 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, getAgentsUsingArtifactComponent, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, getSubAgentById, isArtifactComponentAssociatedWithAgent, associateArtifactComponentWithAgent, RemovedResponseSchema, removeArtifactComponentFromAgent, ExistsResponseSchema, DataComponentApiSelectSchema, getDataComponentsForAgent, getAgentsUsingDataComponent, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, isDataComponentAssociatedWithAgent, associateDataComponentWithAgent, removeDataComponentFromAgent, SubAgentRelationApiSelectSchema, SubAgentRelationQuerySchema, getAgentRelationsBySource,
|
|
1
|
+
import { loadEnvironmentFiles, getLogger, createDatabaseClient, commonGetErrorResponses, AgentListResponse, PaginationQueryParamsSchema, TenantProjectParamsSchema, listAgents, AgentResponse, TenantProjectIdParamsSchema, getAgentById, createApiError, ListResponseSchema, getAgentSubAgentInfos, SingleResponseSchema, TenantProjectAgentParamsSchema, AgentWithinContextOfProjectSchema, getFullAgentDefinition, AgentApiInsertSchema, createAgent, 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, CredentialStoreType, CredentialReferenceListResponse, listCredentialReferencesPaginated, CredentialReferenceApiSelectSchema, CredentialReferenceResponse, getCredentialReferenceWithTools, 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, getAgentsUsingArtifactComponent, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, getSubAgentById, isArtifactComponentAssociatedWithAgent, associateArtifactComponentWithAgent, RemovedResponseSchema, removeArtifactComponentFromAgent, ExistsResponseSchema, DataComponentApiSelectSchema, getDataComponentsForAgent, getAgentsUsingDataComponent, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, isDataComponentAssociatedWithAgent, associateDataComponentWithAgent, removeDataComponentFromAgent, SubAgentRelationApiSelectSchema, SubAgentRelationQuerySchema, getAgentRelationsBySource, getSubAgentRelationsByTarget, getExternalAgentRelations, listAgentRelations, getAgentRelationById, SubAgentRelationApiInsertSchema, validateExternalAgent, validateInternalSubAgent, createSubAgentRelation, SubAgentRelationApiUpdateSchema, updateAgentRelation, deleteSubAgentRelation, SubAgentListResponse, listSubAgentsPaginated, SubAgentResponse, SubAgentApiInsertSchema, createSubAgent, SubAgentApiUpdateSchema, updateSubAgent, deleteSubAgent, SubAgentToolRelationApiSelectSchema, getAgentToolRelationByAgent, getAgentToolRelationByTool, listAgentToolRelations, getAgentToolRelationById, getAgentsForTool, SubAgentToolRelationApiInsertSchema, createAgentToolRelation, SubAgentToolRelationApiUpdateSchema, updateAgentToolRelation, deleteAgentToolRelation, McpToolSchema, ToolStatusSchema, listTools, dbResultToMcpTool, getToolById, ToolApiInsertSchema, createTool, ToolApiUpdateSchema, updateTool, deleteTool, generateIdFromName, FullProjectDefinitionSchema, createFullProjectServerSide, getFullProject, updateFullProjectServerSide, deleteFullProject, createDefaultCredentialStores, CredentialStoreRegistry, discoverOAuthEndpoints, 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';
|
|
@@ -204,7 +204,7 @@ app.openapi(
|
|
|
204
204
|
path: "/{agentId}/sub-agents/{subAgentId}/related",
|
|
205
205
|
summary: "Get Related Agent Infos",
|
|
206
206
|
operationId: "get-related-agent-infos",
|
|
207
|
-
tags: ["Agent
|
|
207
|
+
tags: ["Agent"],
|
|
208
208
|
request: {
|
|
209
209
|
params: TenantProjectParamsSchema.extend({
|
|
210
210
|
agentId: z.string(),
|
|
@@ -253,7 +253,7 @@ app.openapi(
|
|
|
253
253
|
path: "/{agentId}/full",
|
|
254
254
|
summary: "Get Full Agent Definition",
|
|
255
255
|
operationId: "get-full-agent-definition",
|
|
256
|
-
tags: ["Agent
|
|
256
|
+
tags: ["Agent"],
|
|
257
257
|
request: {
|
|
258
258
|
params: TenantProjectAgentParamsSchema
|
|
259
259
|
},
|
|
@@ -3367,16 +3367,16 @@ app15.openapi(
|
|
|
3367
3367
|
createRoute({
|
|
3368
3368
|
method: "get",
|
|
3369
3369
|
path: "/",
|
|
3370
|
-
summary: "List Agent Relations",
|
|
3371
|
-
operationId: "list-agent-relations",
|
|
3372
|
-
tags: ["Agent Relations"],
|
|
3370
|
+
summary: "List Sub Agent Relations",
|
|
3371
|
+
operationId: "list-sub-agent-relations",
|
|
3372
|
+
tags: ["Sub Agent Relations"],
|
|
3373
3373
|
request: {
|
|
3374
3374
|
params: TenantProjectAgentParamsSchema,
|
|
3375
3375
|
query: PaginationQueryParamsSchema.merge(SubAgentRelationQuerySchema)
|
|
3376
3376
|
},
|
|
3377
3377
|
responses: {
|
|
3378
3378
|
200: {
|
|
3379
|
-
description: "List of agent relations retrieved successfully",
|
|
3379
|
+
description: "List of sub agent relations retrieved successfully",
|
|
3380
3380
|
content: {
|
|
3381
3381
|
"application/json": {
|
|
3382
3382
|
schema: ListResponseSchema(SubAgentRelationApiSelectSchema)
|
|
@@ -3407,7 +3407,7 @@ app15.openapi(
|
|
|
3407
3407
|
});
|
|
3408
3408
|
result = { ...rawResult, data: rawResult.data };
|
|
3409
3409
|
} else if (targetSubAgentId) {
|
|
3410
|
-
const rawResult = await
|
|
3410
|
+
const rawResult = await getSubAgentRelationsByTarget(dbClient_default)({
|
|
3411
3411
|
scopes: { tenantId, projectId, agentId },
|
|
3412
3412
|
targetSubAgentId,
|
|
3413
3413
|
pagination: { page: pageNum, limit: limitNum }
|
|
@@ -3431,7 +3431,7 @@ app15.openapi(
|
|
|
3431
3431
|
} catch (_error) {
|
|
3432
3432
|
throw createApiError({
|
|
3433
3433
|
code: "internal_server_error",
|
|
3434
|
-
message: "Failed to retrieve agent relations"
|
|
3434
|
+
message: "Failed to retrieve sub agent relations"
|
|
3435
3435
|
});
|
|
3436
3436
|
}
|
|
3437
3437
|
}
|
|
@@ -3440,15 +3440,15 @@ app15.openapi(
|
|
|
3440
3440
|
createRoute({
|
|
3441
3441
|
method: "get",
|
|
3442
3442
|
path: "/{id}",
|
|
3443
|
-
summary: "Get Agent Relation",
|
|
3444
|
-
operationId: "get-agent-relation-by-id",
|
|
3445
|
-
tags: ["Agent Relations"],
|
|
3443
|
+
summary: "Get Sub Agent Relation",
|
|
3444
|
+
operationId: "get-sub-agent-relation-by-id",
|
|
3445
|
+
tags: ["Sub Agent Relations"],
|
|
3446
3446
|
request: {
|
|
3447
3447
|
params: TenantProjectAgentIdParamsSchema
|
|
3448
3448
|
},
|
|
3449
3449
|
responses: {
|
|
3450
3450
|
200: {
|
|
3451
|
-
description: "Agent relation found",
|
|
3451
|
+
description: "Sub Agent relation found",
|
|
3452
3452
|
content: {
|
|
3453
3453
|
"application/json": {
|
|
3454
3454
|
schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
|
|
@@ -3467,7 +3467,7 @@ app15.openapi(
|
|
|
3467
3467
|
if (!agentRelation) {
|
|
3468
3468
|
throw createApiError({
|
|
3469
3469
|
code: "not_found",
|
|
3470
|
-
message: "Agent
|
|
3470
|
+
message: "Sub Agent Relation not found"
|
|
3471
3471
|
});
|
|
3472
3472
|
}
|
|
3473
3473
|
return c.json({ data: agentRelation });
|
|
@@ -3477,9 +3477,9 @@ app15.openapi(
|
|
|
3477
3477
|
createRoute({
|
|
3478
3478
|
method: "post",
|
|
3479
3479
|
path: "/",
|
|
3480
|
-
summary: "Create Agent Relation",
|
|
3481
|
-
operationId: "create-agent-relation",
|
|
3482
|
-
tags: ["Agent Relations"],
|
|
3480
|
+
summary: "Create Sub Agent Relation",
|
|
3481
|
+
operationId: "create-sub-agent-relation",
|
|
3482
|
+
tags: ["Sub Agent Relations"],
|
|
3483
3483
|
request: {
|
|
3484
3484
|
params: TenantProjectAgentParamsSchema,
|
|
3485
3485
|
body: {
|
|
@@ -3492,7 +3492,7 @@ app15.openapi(
|
|
|
3492
3492
|
},
|
|
3493
3493
|
responses: {
|
|
3494
3494
|
201: {
|
|
3495
|
-
description: "Agent
|
|
3495
|
+
description: "Sub Agent Relation created successfully",
|
|
3496
3496
|
content: {
|
|
3497
3497
|
"application/json": {
|
|
3498
3498
|
schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
|
|
@@ -3568,9 +3568,9 @@ app15.openapi(
|
|
|
3568
3568
|
createRoute({
|
|
3569
3569
|
method: "put",
|
|
3570
3570
|
path: "/{id}",
|
|
3571
|
-
summary: "Update Agent Relation",
|
|
3572
|
-
operationId: "update-agent-relation",
|
|
3573
|
-
tags: ["Agent Relations"],
|
|
3571
|
+
summary: "Update Sub Agent Relation",
|
|
3572
|
+
operationId: "update-sub-agent-relation",
|
|
3573
|
+
tags: ["Sub Agent Relations"],
|
|
3574
3574
|
request: {
|
|
3575
3575
|
params: TenantProjectAgentIdParamsSchema,
|
|
3576
3576
|
body: {
|
|
@@ -3583,7 +3583,7 @@ app15.openapi(
|
|
|
3583
3583
|
},
|
|
3584
3584
|
responses: {
|
|
3585
3585
|
200: {
|
|
3586
|
-
description: "Agent relation updated successfully",
|
|
3586
|
+
description: "Sub Agent relation updated successfully",
|
|
3587
3587
|
content: {
|
|
3588
3588
|
"application/json": {
|
|
3589
3589
|
schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
|
|
@@ -3604,7 +3604,7 @@ app15.openapi(
|
|
|
3604
3604
|
if (!updatedAgentRelation) {
|
|
3605
3605
|
throw createApiError({
|
|
3606
3606
|
code: "not_found",
|
|
3607
|
-
message: "Agent
|
|
3607
|
+
message: "Sub Agent Relation not found"
|
|
3608
3608
|
});
|
|
3609
3609
|
}
|
|
3610
3610
|
return c.json({ data: updatedAgentRelation });
|
|
@@ -3614,18 +3614,18 @@ app15.openapi(
|
|
|
3614
3614
|
createRoute({
|
|
3615
3615
|
method: "delete",
|
|
3616
3616
|
path: "/{id}",
|
|
3617
|
-
summary: "Delete Agent Relation",
|
|
3618
|
-
operationId: "delete-agent-relation",
|
|
3619
|
-
tags: ["Agent Relations"],
|
|
3617
|
+
summary: "Delete Sub Agent Relation",
|
|
3618
|
+
operationId: "delete-sub-agent-relation",
|
|
3619
|
+
tags: ["Sub Agent Relations"],
|
|
3620
3620
|
request: {
|
|
3621
3621
|
params: TenantProjectAgentIdParamsSchema
|
|
3622
3622
|
},
|
|
3623
3623
|
responses: {
|
|
3624
3624
|
204: {
|
|
3625
|
-
description: "Agent
|
|
3625
|
+
description: "Sub Agent Relation deleted successfully"
|
|
3626
3626
|
},
|
|
3627
3627
|
404: {
|
|
3628
|
-
description: "Agent
|
|
3628
|
+
description: "Sub Agent Relation not found",
|
|
3629
3629
|
content: {
|
|
3630
3630
|
"application/json": {
|
|
3631
3631
|
schema: ErrorResponseSchema
|
|
@@ -3643,7 +3643,7 @@ app15.openapi(
|
|
|
3643
3643
|
if (!deleted) {
|
|
3644
3644
|
throw createApiError({
|
|
3645
3645
|
code: "not_found",
|
|
3646
|
-
message: "Agent
|
|
3646
|
+
message: "Sub Agent Relation not found"
|
|
3647
3647
|
});
|
|
3648
3648
|
}
|
|
3649
3649
|
return c.body(null, 204);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-manage-api",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251014201448",
|
|
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.0.0-dev-
|
|
26
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251014201448"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
29
|
"keytar": "^7.9.0"
|