@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 +1 -1
- package/dist/index.cjs +80 -80
- package/dist/index.js +81 -81
- package/package.json +2 -2
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
|
-
|
|
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
|
|
427
|
-
operationId: "list-
|
|
428
|
-
tags: ["
|
|
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
|
|
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
|
|
468
|
-
operationId: "get-
|
|
469
|
-
tags: ["
|
|
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: "
|
|
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: "
|
|
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
|
|
509
|
-
operationId: "create-
|
|
510
|
-
tags: ["
|
|
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: "
|
|
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
|
|
556
|
-
operationId: "update-
|
|
557
|
-
tags: ["
|
|
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: "
|
|
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: "
|
|
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
|
|
606
|
-
operationId: "delete-
|
|
607
|
-
tags: ["
|
|
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: "
|
|
613
|
+
description: "SubAgent deleted successfully"
|
|
614
614
|
},
|
|
615
615
|
404: {
|
|
616
|
-
description: "
|
|
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: "
|
|
634
|
+
message: "SubAgent not found"
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
return c.body(null, 204);
|
|
638
638
|
}
|
|
639
639
|
);
|
|
640
|
-
var
|
|
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
|
|
647
|
-
operationId: "list-
|
|
648
|
-
tags: ["
|
|
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
|
|
658
|
+
description: "List of subAgent tool relations retrieved successfully",
|
|
659
659
|
content: {
|
|
660
660
|
"application/json": {
|
|
661
|
-
schema: agentsCore.ListResponseSchema(agentsCore.
|
|
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
|
|
709
|
-
operationId: "get-
|
|
710
|
-
tags: ["
|
|
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: "
|
|
716
|
+
description: "SubAgent tool relation found",
|
|
717
717
|
content: {
|
|
718
718
|
"application/json": {
|
|
719
|
-
schema: agentsCore.SingleResponseSchema(agentsCore.
|
|
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: "
|
|
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
|
|
746
|
-
operationId: "get-
|
|
747
|
-
tags: ["
|
|
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: "
|
|
756
|
+
description: "SubAgents for tool retrieved successfully",
|
|
757
757
|
content: {
|
|
758
758
|
"application/json": {
|
|
759
|
-
schema: agentsCore.ListResponseSchema(agentsCore.
|
|
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
|
|
782
|
-
operationId: "create-
|
|
783
|
-
tags: ["
|
|
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.
|
|
789
|
+
schema: agentsCore.SubAgentToolRelationApiInsertSchema
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
},
|
|
794
794
|
responses: {
|
|
795
795
|
201: {
|
|
796
|
-
description: "
|
|
796
|
+
description: "SubAgent tool relation created successfully",
|
|
797
797
|
content: {
|
|
798
798
|
"application/json": {
|
|
799
|
-
schema: agentsCore.SingleResponseSchema(agentsCore.
|
|
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: "
|
|
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
|
|
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
|
|
845
|
-
operationId: "update-
|
|
846
|
-
tags: ["
|
|
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.
|
|
852
|
+
schema: agentsCore.SubAgentToolRelationApiUpdateSchema
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
},
|
|
857
857
|
responses: {
|
|
858
858
|
200: {
|
|
859
|
-
description: "
|
|
859
|
+
description: "SubAgent tool relation updated successfully",
|
|
860
860
|
content: {
|
|
861
861
|
"application/json": {
|
|
862
|
-
schema: agentsCore.SingleResponseSchema(agentsCore.
|
|
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: "
|
|
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
|
|
898
|
-
operationId: "delete-
|
|
899
|
-
tags: ["
|
|
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: "
|
|
905
|
+
description: "SubAgent tool relation deleted successfully"
|
|
906
906
|
},
|
|
907
907
|
404: {
|
|
908
|
-
description: "
|
|
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: "
|
|
926
|
+
message: "SubAgent tool relation not found"
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
929
|
return c.body(null, 204);
|
|
930
930
|
}
|
|
931
931
|
);
|
|
932
|
-
var
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|
|
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",
|
|
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,
|
|
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
|
|
423
|
-
operationId: "list-
|
|
424
|
-
tags: ["
|
|
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
|
|
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
|
|
464
|
-
operationId: "get-
|
|
465
|
-
tags: ["
|
|
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: "
|
|
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: "
|
|
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
|
|
505
|
-
operationId: "create-
|
|
506
|
-
tags: ["
|
|
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: "
|
|
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
|
|
552
|
-
operationId: "update-
|
|
553
|
-
tags: ["
|
|
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: "
|
|
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: "
|
|
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
|
|
602
|
-
operationId: "delete-
|
|
603
|
-
tags: ["
|
|
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: "
|
|
609
|
+
description: "SubAgent deleted successfully"
|
|
610
610
|
},
|
|
611
611
|
404: {
|
|
612
|
-
description: "
|
|
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: "
|
|
630
|
+
message: "SubAgent not found"
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
return c.body(null, 204);
|
|
634
634
|
}
|
|
635
635
|
);
|
|
636
|
-
var
|
|
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
|
|
643
|
-
operationId: "list-
|
|
644
|
-
tags: ["
|
|
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
|
|
654
|
+
description: "List of subAgent tool relations retrieved successfully",
|
|
655
655
|
content: {
|
|
656
656
|
"application/json": {
|
|
657
|
-
schema: ListResponseSchema(
|
|
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
|
|
705
|
-
operationId: "get-
|
|
706
|
-
tags: ["
|
|
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: "
|
|
712
|
+
description: "SubAgent tool relation found",
|
|
713
713
|
content: {
|
|
714
714
|
"application/json": {
|
|
715
|
-
schema: SingleResponseSchema(
|
|
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: "
|
|
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
|
|
742
|
-
operationId: "get-
|
|
743
|
-
tags: ["
|
|
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: "
|
|
752
|
+
description: "SubAgents for tool retrieved successfully",
|
|
753
753
|
content: {
|
|
754
754
|
"application/json": {
|
|
755
|
-
schema: ListResponseSchema(
|
|
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
|
|
778
|
-
operationId: "create-
|
|
779
|
-
tags: ["
|
|
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:
|
|
785
|
+
schema: SubAgentToolRelationApiInsertSchema
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
},
|
|
790
790
|
responses: {
|
|
791
791
|
201: {
|
|
792
|
-
description: "
|
|
792
|
+
description: "SubAgent tool relation created successfully",
|
|
793
793
|
content: {
|
|
794
794
|
"application/json": {
|
|
795
|
-
schema: SingleResponseSchema(
|
|
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: "
|
|
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
|
|
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
|
|
841
|
-
operationId: "update-
|
|
842
|
-
tags: ["
|
|
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:
|
|
848
|
+
schema: SubAgentToolRelationApiUpdateSchema
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
},
|
|
853
853
|
responses: {
|
|
854
854
|
200: {
|
|
855
|
-
description: "
|
|
855
|
+
description: "SubAgent tool relation updated successfully",
|
|
856
856
|
content: {
|
|
857
857
|
"application/json": {
|
|
858
|
-
schema: SingleResponseSchema(
|
|
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: "
|
|
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
|
|
894
|
-
operationId: "delete-
|
|
895
|
-
tags: ["
|
|
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: "
|
|
901
|
+
description: "SubAgent tool relation deleted successfully"
|
|
902
902
|
},
|
|
903
903
|
404: {
|
|
904
|
-
description: "
|
|
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: "
|
|
922
|
+
message: "SubAgent tool relation not found"
|
|
923
923
|
});
|
|
924
924
|
}
|
|
925
925
|
return c.body(null, 204);
|
|
926
926
|
}
|
|
927
927
|
);
|
|
928
|
-
var
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
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",
|
|
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",
|
|
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-
|
|
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-
|
|
26
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251010064032"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
29
|
"keytar": "^7.9.0"
|