@inkeep/agents-manage-api 0.0.0-dev-20251009233425 → 0.0.0-dev-20251010064032

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/README.md CHANGED
@@ -87,7 +87,7 @@ import { agentGraph } from '@inkeep/agents-manage-api';
87
87
  const graph = agentGraph({
88
88
  id: 'customer-support',
89
89
  defaultSubAgent: routerAgent,
90
- agents: [routerAgent, qaAgent, orderAgent]
90
+ subAgents: () => [routerAgent, qaAgent, orderAgent]
91
91
  });
92
92
 
93
93
  await graph.init(); // Persist to database
package/dist/index.cjs CHANGED
@@ -423,16 +423,16 @@ app2.openapi(
423
423
  zodOpenapi.createRoute({
424
424
  method: "get",
425
425
  path: "/",
426
- summary: "List Agents",
427
- operationId: "list-agents",
428
- tags: ["Agent"],
426
+ summary: "List SubAgents",
427
+ operationId: "list-subagents",
428
+ tags: ["SubAgent"],
429
429
  request: {
430
430
  params: agentsCore.TenantProjectGraphParamsSchema,
431
431
  query: agentsCore.PaginationQueryParamsSchema
432
432
  },
433
433
  responses: {
434
434
  200: {
435
- description: "List of agents retrieved successfully",
435
+ description: "List of subAgents retrieved successfully",
436
436
  content: {
437
437
  "application/json": {
438
438
  schema: agentsCore.ListResponseSchema(agentsCore.SubAgentApiSelectSchema)
@@ -464,15 +464,15 @@ app2.openapi(
464
464
  zodOpenapi.createRoute({
465
465
  method: "get",
466
466
  path: "/{id}",
467
- summary: "Get Agent",
468
- operationId: "get-agent-by-id",
469
- tags: ["Agent"],
467
+ summary: "Get SubAgent",
468
+ operationId: "get-subagent-by-id",
469
+ tags: ["SubAgent"],
470
470
  request: {
471
471
  params: agentsCore.TenantProjectGraphIdParamsSchema
472
472
  },
473
473
  responses: {
474
474
  200: {
475
- description: "Agent found",
475
+ description: "SubAgent found",
476
476
  content: {
477
477
  "application/json": {
478
478
  schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentApiSelectSchema)
@@ -491,7 +491,7 @@ app2.openapi(
491
491
  if (!subAgent) {
492
492
  throw agentsCore.createApiError({
493
493
  code: "not_found",
494
- message: "Agent not found"
494
+ message: "SubAgent not found"
495
495
  });
496
496
  }
497
497
  const subAgentWithType = {
@@ -505,9 +505,9 @@ app2.openapi(
505
505
  zodOpenapi.createRoute({
506
506
  method: "post",
507
507
  path: "/",
508
- summary: "Create Agent",
509
- operationId: "create-agent",
510
- tags: ["Agent"],
508
+ summary: "Create SubAgent",
509
+ operationId: "create-subagent",
510
+ tags: ["SubAgent"],
511
511
  request: {
512
512
  params: agentsCore.TenantProjectGraphParamsSchema,
513
513
  body: {
@@ -520,7 +520,7 @@ app2.openapi(
520
520
  },
521
521
  responses: {
522
522
  201: {
523
- description: "Agent created successfully",
523
+ description: "SubAgent created successfully",
524
524
  content: {
525
525
  "application/json": {
526
526
  schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentApiSelectSchema)
@@ -552,9 +552,9 @@ app2.openapi(
552
552
  zodOpenapi.createRoute({
553
553
  method: "put",
554
554
  path: "/{id}",
555
- summary: "Update Agent",
556
- operationId: "update-agent",
557
- tags: ["Agent"],
555
+ summary: "Update SubAgent",
556
+ operationId: "update-subagent",
557
+ tags: ["SubAgent"],
558
558
  request: {
559
559
  params: agentsCore.TenantProjectGraphIdParamsSchema,
560
560
  body: {
@@ -567,7 +567,7 @@ app2.openapi(
567
567
  },
568
568
  responses: {
569
569
  200: {
570
- description: "Agent updated successfully",
570
+ description: "SubAgent updated successfully",
571
571
  content: {
572
572
  "application/json": {
573
573
  schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentApiSelectSchema)
@@ -588,7 +588,7 @@ app2.openapi(
588
588
  if (!updatedSubAgent) {
589
589
  throw agentsCore.createApiError({
590
590
  code: "not_found",
591
- message: "Agent not found"
591
+ message: "SubAgent not found"
592
592
  });
593
593
  }
594
594
  const subAgentWithType = {
@@ -602,18 +602,18 @@ app2.openapi(
602
602
  zodOpenapi.createRoute({
603
603
  method: "delete",
604
604
  path: "/{id}",
605
- summary: "Delete Agent",
606
- operationId: "delete-agent",
607
- tags: ["Agent"],
605
+ summary: "Delete SubAgent",
606
+ operationId: "delete-subagent",
607
+ tags: ["SubAgent"],
608
608
  request: {
609
609
  params: agentsCore.TenantProjectGraphIdParamsSchema
610
610
  },
611
611
  responses: {
612
612
  204: {
613
- description: "Agent deleted successfully"
613
+ description: "SubAgent deleted successfully"
614
614
  },
615
615
  404: {
616
- description: "Agent not found",
616
+ description: "SubAgent not found",
617
617
  content: {
618
618
  "application/json": {
619
619
  schema: agentsCore.ErrorResponseSchema
@@ -631,21 +631,21 @@ app2.openapi(
631
631
  if (!deleted) {
632
632
  throw agentsCore.createApiError({
633
633
  code: "not_found",
634
- message: "Agent not found"
634
+ message: "SubAgent not found"
635
635
  });
636
636
  }
637
637
  return c.body(null, 204);
638
638
  }
639
639
  );
640
- var agents_default = app2;
640
+ var subAgents_default = app2;
641
641
  var app3 = new zodOpenapi.OpenAPIHono();
642
642
  app3.openapi(
643
643
  zodOpenapi.createRoute({
644
644
  method: "get",
645
645
  path: "/",
646
- summary: "List Agent Tool Relations",
647
- operationId: "list-agent-tool-relations",
648
- tags: ["Agent Tool Relations"],
646
+ summary: "List SubAgent Tool Relations",
647
+ operationId: "list-subagent-tool-relations",
648
+ tags: ["SubAgent Tool Relations"],
649
649
  request: {
650
650
  params: agentsCore.TenantProjectGraphParamsSchema,
651
651
  query: agentsCore.PaginationQueryParamsSchema.extend({
@@ -655,10 +655,10 @@ app3.openapi(
655
655
  },
656
656
  responses: {
657
657
  200: {
658
- description: "List of agent tool relations retrieved successfully",
658
+ description: "List of subAgent tool relations retrieved successfully",
659
659
  content: {
660
660
  "application/json": {
661
- schema: agentsCore.ListResponseSchema(agentsCore.AgentToolRelationApiSelectSchema)
661
+ schema: agentsCore.ListResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
662
662
  }
663
663
  }
664
664
  },
@@ -705,18 +705,18 @@ app3.openapi(
705
705
  zodOpenapi.createRoute({
706
706
  method: "get",
707
707
  path: "/{id}",
708
- summary: "Get Agent Tool Relation",
709
- operationId: "get-agent-tool-relation",
710
- tags: ["Agent Tool Relations"],
708
+ summary: "Get SubAgent Tool Relation",
709
+ operationId: "get-subagent-tool-relation",
710
+ tags: ["SubAgent Tool Relations"],
711
711
  request: {
712
712
  params: agentsCore.TenantProjectGraphIdParamsSchema
713
713
  },
714
714
  responses: {
715
715
  200: {
716
- description: "Agent tool relation found",
716
+ description: "SubAgent tool relation found",
717
717
  content: {
718
718
  "application/json": {
719
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentToolRelationApiSelectSchema)
719
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
720
720
  }
721
721
  }
722
722
  },
@@ -732,7 +732,7 @@ app3.openapi(
732
732
  if (!agentToolRelation) {
733
733
  throw agentsCore.createApiError({
734
734
  code: "not_found",
735
- message: "Agent tool relation not found"
735
+ message: "SubAgent tool relation not found"
736
736
  });
737
737
  }
738
738
  return c.json({ data: agentToolRelation });
@@ -741,10 +741,10 @@ app3.openapi(
741
741
  app3.openapi(
742
742
  zodOpenapi.createRoute({
743
743
  method: "get",
744
- path: "/tool/{toolId}/agents",
745
- summary: "Get Agents for Tool",
746
- operationId: "get-agents-for-tool",
747
- tags: ["Agent Tool Relations"],
744
+ path: "/tool/{toolId}/sub-agents",
745
+ summary: "Get SubAgents for Tool",
746
+ operationId: "get-subagents-for-tool",
747
+ tags: ["SubAgent Tool Relations"],
748
748
  request: {
749
749
  params: agentsCore.TenantProjectGraphParamsSchema.extend({
750
750
  toolId: zod.z.string()
@@ -753,10 +753,10 @@ app3.openapi(
753
753
  },
754
754
  responses: {
755
755
  200: {
756
- description: "Agents for tool retrieved successfully",
756
+ description: "SubAgents for tool retrieved successfully",
757
757
  content: {
758
758
  "application/json": {
759
- schema: agentsCore.ListResponseSchema(agentsCore.AgentToolRelationApiSelectSchema)
759
+ schema: agentsCore.ListResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
760
760
  }
761
761
  }
762
762
  },
@@ -778,25 +778,25 @@ app3.openapi(
778
778
  zodOpenapi.createRoute({
779
779
  method: "post",
780
780
  path: "/",
781
- summary: "Create Agent Tool Relation",
782
- operationId: "create-agent-tool-relation",
783
- tags: ["Agent Tool Relations"],
781
+ summary: "Create SubAgent Tool Relation",
782
+ operationId: "create-subagent-tool-relation",
783
+ tags: ["SubAgent Tool Relations"],
784
784
  request: {
785
785
  params: agentsCore.TenantProjectGraphParamsSchema,
786
786
  body: {
787
787
  content: {
788
788
  "application/json": {
789
- schema: agentsCore.AgentToolRelationApiInsertSchema
789
+ schema: agentsCore.SubAgentToolRelationApiInsertSchema
790
790
  }
791
791
  }
792
792
  }
793
793
  },
794
794
  responses: {
795
795
  201: {
796
- description: "Agent tool relation created successfully",
796
+ description: "SubAgent tool relation created successfully",
797
797
  content: {
798
798
  "application/json": {
799
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentToolRelationApiSelectSchema)
799
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
800
800
  }
801
801
  }
802
802
  },
@@ -817,7 +817,7 @@ app3.openapi(
817
817
  if (isDuplicate) {
818
818
  throw agentsCore.createApiError({
819
819
  code: "unprocessable_entity",
820
- message: "Agent tool relation already exists"
820
+ message: "SubAgent tool relation already exists"
821
821
  });
822
822
  }
823
823
  try {
@@ -830,7 +830,7 @@ app3.openapi(
830
830
  if (error instanceof Error && (error.message.includes("FOREIGN KEY constraint failed") || error.message.includes("foreign key constraint") || error.message.includes("SQLITE_CONSTRAINT_FOREIGNKEY") || error.code === "SQLITE_CONSTRAINT_FOREIGNKEY" || error?.cause?.code === "SQLITE_CONSTRAINT_FOREIGNKEY")) {
831
831
  throw agentsCore.createApiError({
832
832
  code: "bad_request",
833
- message: "Invalid agent ID or tool ID - referenced entity does not exist"
833
+ message: "Invalid subAgent ID or tool ID - referenced entity does not exist"
834
834
  });
835
835
  }
836
836
  throw error;
@@ -841,25 +841,25 @@ app3.openapi(
841
841
  zodOpenapi.createRoute({
842
842
  method: "put",
843
843
  path: "/{id}",
844
- summary: "Update Agent Tool Relation",
845
- operationId: "update-agent-tool-relation",
846
- tags: ["Agent Tool Relations"],
844
+ summary: "Update SubAgent Tool Relation",
845
+ operationId: "update-subagent-tool-relation",
846
+ tags: ["SubAgent Tool Relations"],
847
847
  request: {
848
848
  params: agentsCore.TenantProjectGraphIdParamsSchema,
849
849
  body: {
850
850
  content: {
851
851
  "application/json": {
852
- schema: agentsCore.AgentToolRelationApiUpdateSchema
852
+ schema: agentsCore.SubAgentToolRelationApiUpdateSchema
853
853
  }
854
854
  }
855
855
  }
856
856
  },
857
857
  responses: {
858
858
  200: {
859
- description: "Agent tool relation updated successfully",
859
+ description: "SubAgent tool relation updated successfully",
860
860
  content: {
861
861
  "application/json": {
862
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentToolRelationApiSelectSchema)
862
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentToolRelationApiSelectSchema)
863
863
  }
864
864
  }
865
865
  },
@@ -884,7 +884,7 @@ app3.openapi(
884
884
  if (!updatedAgentToolRelation) {
885
885
  throw agentsCore.createApiError({
886
886
  code: "not_found",
887
- message: "Agent tool relation not found"
887
+ message: "SubAgent tool relation not found"
888
888
  });
889
889
  }
890
890
  return c.json({ data: updatedAgentToolRelation });
@@ -894,18 +894,18 @@ app3.openapi(
894
894
  zodOpenapi.createRoute({
895
895
  method: "delete",
896
896
  path: "/{id}",
897
- summary: "Delete Agent Tool Relation",
898
- operationId: "delete-agent-tool-relation",
899
- tags: ["Agent Tool Relations"],
897
+ summary: "Delete SubAgent Tool Relation",
898
+ operationId: "delete-subagent-tool-relation",
899
+ tags: ["SubAgent Tool Relations"],
900
900
  request: {
901
901
  params: agentsCore.TenantProjectGraphIdParamsSchema
902
902
  },
903
903
  responses: {
904
904
  204: {
905
- description: "Agent tool relation deleted successfully"
905
+ description: "SubAgent tool relation deleted successfully"
906
906
  },
907
907
  404: {
908
- description: "Agent tool relation not found",
908
+ description: "SubAgent tool relation not found",
909
909
  content: {
910
910
  "application/json": {
911
911
  schema: agentsCore.ErrorResponseSchema
@@ -923,13 +923,13 @@ app3.openapi(
923
923
  if (!deleted) {
924
924
  throw agentsCore.createApiError({
925
925
  code: "not_found",
926
- message: "Agent tool relation not found"
926
+ message: "SubAgent tool relation not found"
927
927
  });
928
928
  }
929
929
  return c.body(null, 204);
930
930
  }
931
931
  );
932
- var agentToolRelations_default = app3;
932
+ var subAgentToolRelations_default = app3;
933
933
  var app4 = new zodOpenapi.OpenAPIHono();
934
934
  app4.openapi(
935
935
  zodOpenapi.createRoute({
@@ -3128,7 +3128,7 @@ app13.openapi(
3128
3128
  body: {
3129
3129
  content: {
3130
3130
  "application/json": {
3131
- schema: agentsCore.AgentArtifactComponentApiInsertSchema
3131
+ schema: agentsCore.SubAgentArtifactComponentApiInsertSchema
3132
3132
  }
3133
3133
  }
3134
3134
  }
@@ -3138,7 +3138,7 @@ app13.openapi(
3138
3138
  description: "Agent artifact component association created successfully",
3139
3139
  content: {
3140
3140
  "application/json": {
3141
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentArtifactComponentApiSelectSchema)
3141
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentArtifactComponentApiSelectSchema)
3142
3142
  }
3143
3143
  }
3144
3144
  },
@@ -3358,7 +3358,7 @@ app14.openapi(
3358
3358
  body: {
3359
3359
  content: {
3360
3360
  "application/json": {
3361
- schema: agentsCore.AgentDataComponentApiInsertSchema
3361
+ schema: agentsCore.SubAgentDataComponentApiInsertSchema
3362
3362
  }
3363
3363
  }
3364
3364
  }
@@ -3368,7 +3368,7 @@ app14.openapi(
3368
3368
  description: "Agent data component association created successfully",
3369
3369
  content: {
3370
3370
  "application/json": {
3371
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentDataComponentApiSelectSchema)
3371
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentDataComponentApiSelectSchema)
3372
3372
  }
3373
3373
  }
3374
3374
  },
@@ -3507,14 +3507,14 @@ app15.openapi(
3507
3507
  tags: ["Agent Relations"],
3508
3508
  request: {
3509
3509
  params: agentsCore.TenantProjectGraphParamsSchema,
3510
- query: agentsCore.PaginationQueryParamsSchema.merge(agentsCore.AgentRelationQuerySchema)
3510
+ query: agentsCore.PaginationQueryParamsSchema.merge(agentsCore.SubAgentRelationQuerySchema)
3511
3511
  },
3512
3512
  responses: {
3513
3513
  200: {
3514
3514
  description: "List of agent relations retrieved successfully",
3515
3515
  content: {
3516
3516
  "application/json": {
3517
- schema: agentsCore.ListResponseSchema(agentsCore.AgentRelationApiSelectSchema)
3517
+ schema: agentsCore.ListResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3518
3518
  }
3519
3519
  }
3520
3520
  },
@@ -3586,7 +3586,7 @@ app15.openapi(
3586
3586
  description: "Agent relation found",
3587
3587
  content: {
3588
3588
  "application/json": {
3589
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentRelationApiSelectSchema)
3589
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3590
3590
  }
3591
3591
  }
3592
3592
  },
@@ -3620,7 +3620,7 @@ app15.openapi(
3620
3620
  body: {
3621
3621
  content: {
3622
3622
  "application/json": {
3623
- schema: agentsCore.AgentRelationApiInsertSchema
3623
+ schema: agentsCore.SubAgentRelationApiInsertSchema
3624
3624
  }
3625
3625
  }
3626
3626
  }
@@ -3630,7 +3630,7 @@ app15.openapi(
3630
3630
  description: "Agent relation created successfully",
3631
3631
  content: {
3632
3632
  "application/json": {
3633
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentRelationApiSelectSchema)
3633
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3634
3634
  }
3635
3635
  }
3636
3636
  },
@@ -3711,7 +3711,7 @@ app15.openapi(
3711
3711
  body: {
3712
3712
  content: {
3713
3713
  "application/json": {
3714
- schema: agentsCore.AgentRelationApiUpdateSchema
3714
+ schema: agentsCore.SubAgentRelationApiUpdateSchema
3715
3715
  }
3716
3716
  }
3717
3717
  }
@@ -3721,7 +3721,7 @@ app15.openapi(
3721
3721
  description: "Agent relation updated successfully",
3722
3722
  content: {
3723
3723
  "application/json": {
3724
- schema: agentsCore.SingleResponseSchema(agentsCore.AgentRelationApiSelectSchema)
3724
+ schema: agentsCore.SingleResponseSchema(agentsCore.SubAgentRelationApiSelectSchema)
3725
3725
  }
3726
3726
  }
3727
3727
  },
@@ -4039,16 +4039,16 @@ var tools_default = app16;
4039
4039
  // src/routes/index.ts
4040
4040
  var app17 = new zodOpenapi.OpenAPIHono();
4041
4041
  app17.route("/projects", projects_default);
4042
- app17.route("/projects/:projectId/graphs/:graphId/agents", agents_default);
4043
- app17.route("/projects/:projectId/graphs/:graphId/agent-relations", subAgentRelations_default);
4042
+ app17.route("/projects/:projectId/graphs/:graphId/sub-agents", subAgents_default);
4043
+ app17.route("/projects/:projectId/graphs/:graphId/sub-agent-relations", subAgentRelations_default);
4044
4044
  app17.route("/projects/:projectId/agent-graphs", agentGraph_default);
4045
- app17.route("/projects/:projectId/graphs/:graphId/agent-tool-relations", agentToolRelations_default);
4045
+ app17.route("/projects/:projectId/graphs/:graphId/sub-agent-tool-relations", subAgentToolRelations_default);
4046
4046
  app17.route(
4047
- "/projects/:projectId/graphs/:graphId/agent-artifact-components",
4047
+ "/projects/:projectId/graphs/:graphId/sub-agent-artifact-components",
4048
4048
  subAgentArtifactComponents_default
4049
4049
  );
4050
4050
  app17.route(
4051
- "/projects/:projectId/graphs/:graphId/agent-data-components",
4051
+ "/projects/:projectId/graphs/:graphId/sub-agent-data-components",
4052
4052
  subAgentDataComponents_default
4053
4053
  );
4054
4054
  app17.route("/projects/:projectId/artifact-components", artifactComponents_default);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { loadEnvironmentFiles, getLogger, createDatabaseClient, commonGetErrorResponses, ListResponseSchema, PaginationQueryParamsSchema, TenantProjectParamsSchema, AgentGraphApiSelectSchema, listAgentGraphs, SingleResponseSchema, TenantProjectIdParamsSchema, getAgentGraphById, createApiError, getGraphAgentInfos, GraphWithinContextOfProjectSchema, getFullGraphDefinition, AgentGraphApiInsertSchema, createAgentGraph, AgentGraphApiUpdateSchema, updateAgentGraph, ErrorResponseSchema, deleteAgentGraph, TenantProjectGraphParamsSchema, SubAgentApiSelectSchema, listSubAgentsPaginated, TenantProjectGraphIdParamsSchema, getSubAgentById, SubAgentApiInsertSchema, createSubAgent, SubAgentApiUpdateSchema, updateSubAgent, deleteSubAgent, AgentToolRelationApiSelectSchema, getAgentToolRelationByAgent, getAgentToolRelationByTool, listAgentToolRelations, getAgentToolRelationById, getAgentsForTool, AgentToolRelationApiInsertSchema, createAgentToolRelation, AgentToolRelationApiUpdateSchema, updateAgentToolRelation, deleteAgentToolRelation, ApiKeyApiSelectSchema, listApiKeysPaginated, getApiKeyById, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, generateApiKey, createApiKey, ApiKeyApiUpdateSchema, updateApiKey, deleteApiKey, ArtifactComponentApiSelectSchema, listArtifactComponentsPaginated, getArtifactComponentById, ArtifactComponentApiInsertSchema, validatePropsAsJsonSchema, createArtifactComponent, ArtifactComponentApiUpdateSchema, updateArtifactComponent, deleteArtifactComponent, ContextConfigApiSelectSchema, listContextConfigsPaginated, getContextConfigById, ContextConfigApiInsertSchema, createContextConfig, commonUpdateErrorResponses, ContextConfigApiUpdateSchema, updateContextConfig, commonDeleteErrorResponses, deleteContextConfig, CredentialReferenceApiSelectSchema, listCredentialReferencesPaginated, getCredentialReferenceWithTools, CredentialReferenceApiInsertSchema, createCredentialReference, CredentialReferenceApiUpdateSchema, updateCredentialReference, getCredentialReferenceById, getCredentialStoreLookupKeyFromRetrievalParams, deleteCredentialReference, DataComponentApiSelectSchema, listDataComponentsPaginated, getDataComponent, DataComponentApiInsertSchema, createDataComponent, DataComponentApiUpdateSchema, updateDataComponent, deleteDataComponent, ExternalAgentApiSelectSchema, listExternalAgentsPaginated, getExternalAgent, ExternalAgentApiInsertSchema, createExternalAgent, ExternalAgentApiUpdateSchema, updateExternalAgent, deleteExternalAgent, FunctionApiSelectSchema, listFunctions, getFunction, FunctionApiInsertSchema, upsertFunction, FunctionApiUpdateSchema, deleteFunction, createFullGraphServerSide, getFullGraph, updateFullGraphServerSide, deleteFullGraph, TenantParamsSchema, ProjectApiSelectSchema, listProjectsPaginated, TenantIdParamsSchema, getProject, ProjectApiInsertSchema, createProject, ProjectApiUpdateSchema, updateProject, deleteProject, getArtifactComponentsForAgent, getAgentsUsingArtifactComponent, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, isArtifactComponentAssociatedWithAgent, associateArtifactComponentWithAgent, RemovedResponseSchema, removeArtifactComponentFromAgent, ExistsResponseSchema, getDataComponentsForAgent, getAgentsUsingDataComponent, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, isDataComponentAssociatedWithAgent, associateDataComponentWithAgent, removeDataComponentFromAgent, AgentRelationApiSelectSchema, AgentRelationQuerySchema, getAgentRelationsBySource, getAgentRelationsByTarget, getExternalAgentRelations, listAgentRelations, getAgentRelationById, AgentRelationApiInsertSchema, validateExternalAgent, validateInternalSubAgent, createSubAgentRelation, AgentRelationApiUpdateSchema, updateAgentRelation, deleteSubAgentRelation, McpToolSchema, ToolStatusSchema, listTools, dbResultToMcpTool, getToolById, ToolApiInsertSchema, createTool, ToolApiUpdateSchema, updateTool, deleteTool, CredentialStoreType, generateIdFromName, FullProjectDefinitionSchema, createFullProjectServerSide, getFullProject, updateFullProjectServerSide, deleteFullProject, createDefaultCredentialStores, CredentialStoreRegistry, discoverOAuthEndpoints, handleApiError } from '@inkeep/agents-core';
1
+ import { loadEnvironmentFiles, getLogger, createDatabaseClient, commonGetErrorResponses, ListResponseSchema, PaginationQueryParamsSchema, TenantProjectParamsSchema, AgentGraphApiSelectSchema, listAgentGraphs, SingleResponseSchema, TenantProjectIdParamsSchema, getAgentGraphById, createApiError, getGraphAgentInfos, GraphWithinContextOfProjectSchema, getFullGraphDefinition, AgentGraphApiInsertSchema, createAgentGraph, AgentGraphApiUpdateSchema, updateAgentGraph, ErrorResponseSchema, deleteAgentGraph, TenantProjectGraphParamsSchema, SubAgentApiSelectSchema, listSubAgentsPaginated, TenantProjectGraphIdParamsSchema, getSubAgentById, SubAgentApiInsertSchema, createSubAgent, SubAgentApiUpdateSchema, updateSubAgent, deleteSubAgent, SubAgentToolRelationApiSelectSchema, getAgentToolRelationByAgent, getAgentToolRelationByTool, listAgentToolRelations, getAgentToolRelationById, getAgentsForTool, SubAgentToolRelationApiInsertSchema, createAgentToolRelation, SubAgentToolRelationApiUpdateSchema, updateAgentToolRelation, deleteAgentToolRelation, ApiKeyApiSelectSchema, listApiKeysPaginated, getApiKeyById, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, generateApiKey, createApiKey, ApiKeyApiUpdateSchema, updateApiKey, deleteApiKey, ArtifactComponentApiSelectSchema, listArtifactComponentsPaginated, getArtifactComponentById, ArtifactComponentApiInsertSchema, validatePropsAsJsonSchema, createArtifactComponent, ArtifactComponentApiUpdateSchema, updateArtifactComponent, deleteArtifactComponent, ContextConfigApiSelectSchema, listContextConfigsPaginated, getContextConfigById, ContextConfigApiInsertSchema, createContextConfig, commonUpdateErrorResponses, ContextConfigApiUpdateSchema, updateContextConfig, commonDeleteErrorResponses, deleteContextConfig, CredentialReferenceApiSelectSchema, listCredentialReferencesPaginated, getCredentialReferenceWithTools, CredentialReferenceApiInsertSchema, createCredentialReference, CredentialReferenceApiUpdateSchema, updateCredentialReference, getCredentialReferenceById, getCredentialStoreLookupKeyFromRetrievalParams, deleteCredentialReference, DataComponentApiSelectSchema, listDataComponentsPaginated, getDataComponent, DataComponentApiInsertSchema, createDataComponent, DataComponentApiUpdateSchema, updateDataComponent, deleteDataComponent, ExternalAgentApiSelectSchema, listExternalAgentsPaginated, getExternalAgent, ExternalAgentApiInsertSchema, createExternalAgent, ExternalAgentApiUpdateSchema, updateExternalAgent, deleteExternalAgent, FunctionApiSelectSchema, listFunctions, getFunction, FunctionApiInsertSchema, upsertFunction, FunctionApiUpdateSchema, deleteFunction, createFullGraphServerSide, getFullGraph, updateFullGraphServerSide, deleteFullGraph, TenantParamsSchema, ProjectApiSelectSchema, listProjectsPaginated, TenantIdParamsSchema, getProject, ProjectApiInsertSchema, createProject, ProjectApiUpdateSchema, updateProject, deleteProject, getArtifactComponentsForAgent, getAgentsUsingArtifactComponent, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, isArtifactComponentAssociatedWithAgent, associateArtifactComponentWithAgent, RemovedResponseSchema, removeArtifactComponentFromAgent, ExistsResponseSchema, getDataComponentsForAgent, getAgentsUsingDataComponent, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, isDataComponentAssociatedWithAgent, associateDataComponentWithAgent, removeDataComponentFromAgent, SubAgentRelationApiSelectSchema, SubAgentRelationQuerySchema, getAgentRelationsBySource, getAgentRelationsByTarget, getExternalAgentRelations, listAgentRelations, getAgentRelationById, SubAgentRelationApiInsertSchema, validateExternalAgent, validateInternalSubAgent, createSubAgentRelation, SubAgentRelationApiUpdateSchema, updateAgentRelation, deleteSubAgentRelation, McpToolSchema, ToolStatusSchema, listTools, dbResultToMcpTool, getToolById, ToolApiInsertSchema, createTool, ToolApiUpdateSchema, updateTool, deleteTool, CredentialStoreType, 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';
@@ -419,16 +419,16 @@ app2.openapi(
419
419
  createRoute({
420
420
  method: "get",
421
421
  path: "/",
422
- summary: "List Agents",
423
- operationId: "list-agents",
424
- tags: ["Agent"],
422
+ summary: "List SubAgents",
423
+ operationId: "list-subagents",
424
+ tags: ["SubAgent"],
425
425
  request: {
426
426
  params: TenantProjectGraphParamsSchema,
427
427
  query: PaginationQueryParamsSchema
428
428
  },
429
429
  responses: {
430
430
  200: {
431
- description: "List of agents retrieved successfully",
431
+ description: "List of subAgents retrieved successfully",
432
432
  content: {
433
433
  "application/json": {
434
434
  schema: ListResponseSchema(SubAgentApiSelectSchema)
@@ -460,15 +460,15 @@ app2.openapi(
460
460
  createRoute({
461
461
  method: "get",
462
462
  path: "/{id}",
463
- summary: "Get Agent",
464
- operationId: "get-agent-by-id",
465
- tags: ["Agent"],
463
+ summary: "Get SubAgent",
464
+ operationId: "get-subagent-by-id",
465
+ tags: ["SubAgent"],
466
466
  request: {
467
467
  params: TenantProjectGraphIdParamsSchema
468
468
  },
469
469
  responses: {
470
470
  200: {
471
- description: "Agent found",
471
+ description: "SubAgent found",
472
472
  content: {
473
473
  "application/json": {
474
474
  schema: SingleResponseSchema(SubAgentApiSelectSchema)
@@ -487,7 +487,7 @@ app2.openapi(
487
487
  if (!subAgent) {
488
488
  throw createApiError({
489
489
  code: "not_found",
490
- message: "Agent not found"
490
+ message: "SubAgent not found"
491
491
  });
492
492
  }
493
493
  const subAgentWithType = {
@@ -501,9 +501,9 @@ app2.openapi(
501
501
  createRoute({
502
502
  method: "post",
503
503
  path: "/",
504
- summary: "Create Agent",
505
- operationId: "create-agent",
506
- tags: ["Agent"],
504
+ summary: "Create SubAgent",
505
+ operationId: "create-subagent",
506
+ tags: ["SubAgent"],
507
507
  request: {
508
508
  params: TenantProjectGraphParamsSchema,
509
509
  body: {
@@ -516,7 +516,7 @@ app2.openapi(
516
516
  },
517
517
  responses: {
518
518
  201: {
519
- description: "Agent created successfully",
519
+ description: "SubAgent created successfully",
520
520
  content: {
521
521
  "application/json": {
522
522
  schema: SingleResponseSchema(SubAgentApiSelectSchema)
@@ -548,9 +548,9 @@ app2.openapi(
548
548
  createRoute({
549
549
  method: "put",
550
550
  path: "/{id}",
551
- summary: "Update Agent",
552
- operationId: "update-agent",
553
- tags: ["Agent"],
551
+ summary: "Update SubAgent",
552
+ operationId: "update-subagent",
553
+ tags: ["SubAgent"],
554
554
  request: {
555
555
  params: TenantProjectGraphIdParamsSchema,
556
556
  body: {
@@ -563,7 +563,7 @@ app2.openapi(
563
563
  },
564
564
  responses: {
565
565
  200: {
566
- description: "Agent updated successfully",
566
+ description: "SubAgent updated successfully",
567
567
  content: {
568
568
  "application/json": {
569
569
  schema: SingleResponseSchema(SubAgentApiSelectSchema)
@@ -584,7 +584,7 @@ app2.openapi(
584
584
  if (!updatedSubAgent) {
585
585
  throw createApiError({
586
586
  code: "not_found",
587
- message: "Agent not found"
587
+ message: "SubAgent not found"
588
588
  });
589
589
  }
590
590
  const subAgentWithType = {
@@ -598,18 +598,18 @@ app2.openapi(
598
598
  createRoute({
599
599
  method: "delete",
600
600
  path: "/{id}",
601
- summary: "Delete Agent",
602
- operationId: "delete-agent",
603
- tags: ["Agent"],
601
+ summary: "Delete SubAgent",
602
+ operationId: "delete-subagent",
603
+ tags: ["SubAgent"],
604
604
  request: {
605
605
  params: TenantProjectGraphIdParamsSchema
606
606
  },
607
607
  responses: {
608
608
  204: {
609
- description: "Agent deleted successfully"
609
+ description: "SubAgent deleted successfully"
610
610
  },
611
611
  404: {
612
- description: "Agent not found",
612
+ description: "SubAgent not found",
613
613
  content: {
614
614
  "application/json": {
615
615
  schema: ErrorResponseSchema
@@ -627,21 +627,21 @@ app2.openapi(
627
627
  if (!deleted) {
628
628
  throw createApiError({
629
629
  code: "not_found",
630
- message: "Agent not found"
630
+ message: "SubAgent not found"
631
631
  });
632
632
  }
633
633
  return c.body(null, 204);
634
634
  }
635
635
  );
636
- var agents_default = app2;
636
+ var subAgents_default = app2;
637
637
  var app3 = new OpenAPIHono();
638
638
  app3.openapi(
639
639
  createRoute({
640
640
  method: "get",
641
641
  path: "/",
642
- summary: "List Agent Tool Relations",
643
- operationId: "list-agent-tool-relations",
644
- tags: ["Agent Tool Relations"],
642
+ summary: "List SubAgent Tool Relations",
643
+ operationId: "list-subagent-tool-relations",
644
+ tags: ["SubAgent Tool Relations"],
645
645
  request: {
646
646
  params: TenantProjectGraphParamsSchema,
647
647
  query: PaginationQueryParamsSchema.extend({
@@ -651,10 +651,10 @@ app3.openapi(
651
651
  },
652
652
  responses: {
653
653
  200: {
654
- description: "List of agent tool relations retrieved successfully",
654
+ description: "List of subAgent tool relations retrieved successfully",
655
655
  content: {
656
656
  "application/json": {
657
- schema: ListResponseSchema(AgentToolRelationApiSelectSchema)
657
+ schema: ListResponseSchema(SubAgentToolRelationApiSelectSchema)
658
658
  }
659
659
  }
660
660
  },
@@ -701,18 +701,18 @@ app3.openapi(
701
701
  createRoute({
702
702
  method: "get",
703
703
  path: "/{id}",
704
- summary: "Get Agent Tool Relation",
705
- operationId: "get-agent-tool-relation",
706
- tags: ["Agent Tool Relations"],
704
+ summary: "Get SubAgent Tool Relation",
705
+ operationId: "get-subagent-tool-relation",
706
+ tags: ["SubAgent Tool Relations"],
707
707
  request: {
708
708
  params: TenantProjectGraphIdParamsSchema
709
709
  },
710
710
  responses: {
711
711
  200: {
712
- description: "Agent tool relation found",
712
+ description: "SubAgent tool relation found",
713
713
  content: {
714
714
  "application/json": {
715
- schema: SingleResponseSchema(AgentToolRelationApiSelectSchema)
715
+ schema: SingleResponseSchema(SubAgentToolRelationApiSelectSchema)
716
716
  }
717
717
  }
718
718
  },
@@ -728,7 +728,7 @@ app3.openapi(
728
728
  if (!agentToolRelation) {
729
729
  throw createApiError({
730
730
  code: "not_found",
731
- message: "Agent tool relation not found"
731
+ message: "SubAgent tool relation not found"
732
732
  });
733
733
  }
734
734
  return c.json({ data: agentToolRelation });
@@ -737,10 +737,10 @@ app3.openapi(
737
737
  app3.openapi(
738
738
  createRoute({
739
739
  method: "get",
740
- path: "/tool/{toolId}/agents",
741
- summary: "Get Agents for Tool",
742
- operationId: "get-agents-for-tool",
743
- tags: ["Agent Tool Relations"],
740
+ path: "/tool/{toolId}/sub-agents",
741
+ summary: "Get SubAgents for Tool",
742
+ operationId: "get-subagents-for-tool",
743
+ tags: ["SubAgent Tool Relations"],
744
744
  request: {
745
745
  params: TenantProjectGraphParamsSchema.extend({
746
746
  toolId: z.string()
@@ -749,10 +749,10 @@ app3.openapi(
749
749
  },
750
750
  responses: {
751
751
  200: {
752
- description: "Agents for tool retrieved successfully",
752
+ description: "SubAgents for tool retrieved successfully",
753
753
  content: {
754
754
  "application/json": {
755
- schema: ListResponseSchema(AgentToolRelationApiSelectSchema)
755
+ schema: ListResponseSchema(SubAgentToolRelationApiSelectSchema)
756
756
  }
757
757
  }
758
758
  },
@@ -774,25 +774,25 @@ app3.openapi(
774
774
  createRoute({
775
775
  method: "post",
776
776
  path: "/",
777
- summary: "Create Agent Tool Relation",
778
- operationId: "create-agent-tool-relation",
779
- tags: ["Agent Tool Relations"],
777
+ summary: "Create SubAgent Tool Relation",
778
+ operationId: "create-subagent-tool-relation",
779
+ tags: ["SubAgent Tool Relations"],
780
780
  request: {
781
781
  params: TenantProjectGraphParamsSchema,
782
782
  body: {
783
783
  content: {
784
784
  "application/json": {
785
- schema: AgentToolRelationApiInsertSchema
785
+ schema: SubAgentToolRelationApiInsertSchema
786
786
  }
787
787
  }
788
788
  }
789
789
  },
790
790
  responses: {
791
791
  201: {
792
- description: "Agent tool relation created successfully",
792
+ description: "SubAgent tool relation created successfully",
793
793
  content: {
794
794
  "application/json": {
795
- schema: SingleResponseSchema(AgentToolRelationApiSelectSchema)
795
+ schema: SingleResponseSchema(SubAgentToolRelationApiSelectSchema)
796
796
  }
797
797
  }
798
798
  },
@@ -813,7 +813,7 @@ app3.openapi(
813
813
  if (isDuplicate) {
814
814
  throw createApiError({
815
815
  code: "unprocessable_entity",
816
- message: "Agent tool relation already exists"
816
+ message: "SubAgent tool relation already exists"
817
817
  });
818
818
  }
819
819
  try {
@@ -826,7 +826,7 @@ app3.openapi(
826
826
  if (error instanceof Error && (error.message.includes("FOREIGN KEY constraint failed") || error.message.includes("foreign key constraint") || error.message.includes("SQLITE_CONSTRAINT_FOREIGNKEY") || error.code === "SQLITE_CONSTRAINT_FOREIGNKEY" || error?.cause?.code === "SQLITE_CONSTRAINT_FOREIGNKEY")) {
827
827
  throw createApiError({
828
828
  code: "bad_request",
829
- message: "Invalid agent ID or tool ID - referenced entity does not exist"
829
+ message: "Invalid subAgent ID or tool ID - referenced entity does not exist"
830
830
  });
831
831
  }
832
832
  throw error;
@@ -837,25 +837,25 @@ app3.openapi(
837
837
  createRoute({
838
838
  method: "put",
839
839
  path: "/{id}",
840
- summary: "Update Agent Tool Relation",
841
- operationId: "update-agent-tool-relation",
842
- tags: ["Agent Tool Relations"],
840
+ summary: "Update SubAgent Tool Relation",
841
+ operationId: "update-subagent-tool-relation",
842
+ tags: ["SubAgent Tool Relations"],
843
843
  request: {
844
844
  params: TenantProjectGraphIdParamsSchema,
845
845
  body: {
846
846
  content: {
847
847
  "application/json": {
848
- schema: AgentToolRelationApiUpdateSchema
848
+ schema: SubAgentToolRelationApiUpdateSchema
849
849
  }
850
850
  }
851
851
  }
852
852
  },
853
853
  responses: {
854
854
  200: {
855
- description: "Agent tool relation updated successfully",
855
+ description: "SubAgent tool relation updated successfully",
856
856
  content: {
857
857
  "application/json": {
858
- schema: SingleResponseSchema(AgentToolRelationApiSelectSchema)
858
+ schema: SingleResponseSchema(SubAgentToolRelationApiSelectSchema)
859
859
  }
860
860
  }
861
861
  },
@@ -880,7 +880,7 @@ app3.openapi(
880
880
  if (!updatedAgentToolRelation) {
881
881
  throw createApiError({
882
882
  code: "not_found",
883
- message: "Agent tool relation not found"
883
+ message: "SubAgent tool relation not found"
884
884
  });
885
885
  }
886
886
  return c.json({ data: updatedAgentToolRelation });
@@ -890,18 +890,18 @@ app3.openapi(
890
890
  createRoute({
891
891
  method: "delete",
892
892
  path: "/{id}",
893
- summary: "Delete Agent Tool Relation",
894
- operationId: "delete-agent-tool-relation",
895
- tags: ["Agent Tool Relations"],
893
+ summary: "Delete SubAgent Tool Relation",
894
+ operationId: "delete-subagent-tool-relation",
895
+ tags: ["SubAgent Tool Relations"],
896
896
  request: {
897
897
  params: TenantProjectGraphIdParamsSchema
898
898
  },
899
899
  responses: {
900
900
  204: {
901
- description: "Agent tool relation deleted successfully"
901
+ description: "SubAgent tool relation deleted successfully"
902
902
  },
903
903
  404: {
904
- description: "Agent tool relation not found",
904
+ description: "SubAgent tool relation not found",
905
905
  content: {
906
906
  "application/json": {
907
907
  schema: ErrorResponseSchema
@@ -919,13 +919,13 @@ app3.openapi(
919
919
  if (!deleted) {
920
920
  throw createApiError({
921
921
  code: "not_found",
922
- message: "Agent tool relation not found"
922
+ message: "SubAgent tool relation not found"
923
923
  });
924
924
  }
925
925
  return c.body(null, 204);
926
926
  }
927
927
  );
928
- var agentToolRelations_default = app3;
928
+ var subAgentToolRelations_default = app3;
929
929
  var app4 = new OpenAPIHono();
930
930
  app4.openapi(
931
931
  createRoute({
@@ -3124,7 +3124,7 @@ app13.openapi(
3124
3124
  body: {
3125
3125
  content: {
3126
3126
  "application/json": {
3127
- schema: AgentArtifactComponentApiInsertSchema
3127
+ schema: SubAgentArtifactComponentApiInsertSchema
3128
3128
  }
3129
3129
  }
3130
3130
  }
@@ -3134,7 +3134,7 @@ app13.openapi(
3134
3134
  description: "Agent artifact component association created successfully",
3135
3135
  content: {
3136
3136
  "application/json": {
3137
- schema: SingleResponseSchema(AgentArtifactComponentApiSelectSchema)
3137
+ schema: SingleResponseSchema(SubAgentArtifactComponentApiSelectSchema)
3138
3138
  }
3139
3139
  }
3140
3140
  },
@@ -3354,7 +3354,7 @@ app14.openapi(
3354
3354
  body: {
3355
3355
  content: {
3356
3356
  "application/json": {
3357
- schema: AgentDataComponentApiInsertSchema
3357
+ schema: SubAgentDataComponentApiInsertSchema
3358
3358
  }
3359
3359
  }
3360
3360
  }
@@ -3364,7 +3364,7 @@ app14.openapi(
3364
3364
  description: "Agent data component association created successfully",
3365
3365
  content: {
3366
3366
  "application/json": {
3367
- schema: SingleResponseSchema(AgentDataComponentApiSelectSchema)
3367
+ schema: SingleResponseSchema(SubAgentDataComponentApiSelectSchema)
3368
3368
  }
3369
3369
  }
3370
3370
  },
@@ -3503,14 +3503,14 @@ app15.openapi(
3503
3503
  tags: ["Agent Relations"],
3504
3504
  request: {
3505
3505
  params: TenantProjectGraphParamsSchema,
3506
- query: PaginationQueryParamsSchema.merge(AgentRelationQuerySchema)
3506
+ query: PaginationQueryParamsSchema.merge(SubAgentRelationQuerySchema)
3507
3507
  },
3508
3508
  responses: {
3509
3509
  200: {
3510
3510
  description: "List of agent relations retrieved successfully",
3511
3511
  content: {
3512
3512
  "application/json": {
3513
- schema: ListResponseSchema(AgentRelationApiSelectSchema)
3513
+ schema: ListResponseSchema(SubAgentRelationApiSelectSchema)
3514
3514
  }
3515
3515
  }
3516
3516
  },
@@ -3582,7 +3582,7 @@ app15.openapi(
3582
3582
  description: "Agent relation found",
3583
3583
  content: {
3584
3584
  "application/json": {
3585
- schema: SingleResponseSchema(AgentRelationApiSelectSchema)
3585
+ schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
3586
3586
  }
3587
3587
  }
3588
3588
  },
@@ -3616,7 +3616,7 @@ app15.openapi(
3616
3616
  body: {
3617
3617
  content: {
3618
3618
  "application/json": {
3619
- schema: AgentRelationApiInsertSchema
3619
+ schema: SubAgentRelationApiInsertSchema
3620
3620
  }
3621
3621
  }
3622
3622
  }
@@ -3626,7 +3626,7 @@ app15.openapi(
3626
3626
  description: "Agent relation created successfully",
3627
3627
  content: {
3628
3628
  "application/json": {
3629
- schema: SingleResponseSchema(AgentRelationApiSelectSchema)
3629
+ schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
3630
3630
  }
3631
3631
  }
3632
3632
  },
@@ -3707,7 +3707,7 @@ app15.openapi(
3707
3707
  body: {
3708
3708
  content: {
3709
3709
  "application/json": {
3710
- schema: AgentRelationApiUpdateSchema
3710
+ schema: SubAgentRelationApiUpdateSchema
3711
3711
  }
3712
3712
  }
3713
3713
  }
@@ -3717,7 +3717,7 @@ app15.openapi(
3717
3717
  description: "Agent relation updated successfully",
3718
3718
  content: {
3719
3719
  "application/json": {
3720
- schema: SingleResponseSchema(AgentRelationApiSelectSchema)
3720
+ schema: SingleResponseSchema(SubAgentRelationApiSelectSchema)
3721
3721
  }
3722
3722
  }
3723
3723
  },
@@ -4035,16 +4035,16 @@ var tools_default = app16;
4035
4035
  // src/routes/index.ts
4036
4036
  var app17 = new OpenAPIHono();
4037
4037
  app17.route("/projects", projects_default);
4038
- app17.route("/projects/:projectId/graphs/:graphId/agents", agents_default);
4039
- app17.route("/projects/:projectId/graphs/:graphId/agent-relations", subAgentRelations_default);
4038
+ app17.route("/projects/:projectId/graphs/:graphId/sub-agents", subAgents_default);
4039
+ app17.route("/projects/:projectId/graphs/:graphId/sub-agent-relations", subAgentRelations_default);
4040
4040
  app17.route("/projects/:projectId/agent-graphs", agentGraph_default);
4041
- app17.route("/projects/:projectId/graphs/:graphId/agent-tool-relations", agentToolRelations_default);
4041
+ app17.route("/projects/:projectId/graphs/:graphId/sub-agent-tool-relations", subAgentToolRelations_default);
4042
4042
  app17.route(
4043
- "/projects/:projectId/graphs/:graphId/agent-artifact-components",
4043
+ "/projects/:projectId/graphs/:graphId/sub-agent-artifact-components",
4044
4044
  subAgentArtifactComponents_default
4045
4045
  );
4046
4046
  app17.route(
4047
- "/projects/:projectId/graphs/:graphId/agent-data-components",
4047
+ "/projects/:projectId/graphs/:graphId/sub-agent-data-components",
4048
4048
  subAgentDataComponents_default
4049
4049
  );
4050
4050
  app17.route("/projects/:projectId/artifact-components", artifactComponents_default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-manage-api",
3
- "version": "0.0.0-dev-20251009233425",
3
+ "version": "0.0.0-dev-20251010064032",
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-20251009233425"
26
+ "@inkeep/agents-core": "^0.0.0-dev-20251010064032"
27
27
  },
28
28
  "optionalDependencies": {
29
29
  "keytar": "^7.9.0"