@inkeep/agents-api 0.0.0-dev-20260127155059 → 0.0.0-dev-20260127183929
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/.well-known/workflow/v1/manifest.debug.json +16 -16
- package/dist/createApp.d.ts +2 -2
- package/dist/createApp.js +1 -1
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/github/routes/tokenExchange.d.ts +2 -2
- package/dist/domains/manage/routes/artifactComponents.js +5 -5
- package/dist/domains/manage/routes/cliAuth.js +1 -1
- package/dist/domains/manage/routes/contextConfigs.js +5 -5
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/credentialStores.js +2 -2
- package/dist/domains/manage/routes/dataComponents.js +5 -5
- package/dist/domains/manage/routes/evals/evaluationResults.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.js +1 -1
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/playgroundToken.js +1 -1
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/subAgentExternalAgentRelations.js +5 -5
- package/dist/domains/manage/routes/subAgentFunctionTools.js +5 -5
- package/dist/domains/manage/routes/subAgentRelations.js +6 -6
- package/dist/domains/manage/routes/subAgentTeamAgentRelations.js +6 -6
- package/dist/domains/manage/routes/userOrganizations.js +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/routes/agents.js +1 -1
- package/dist/domains/run/routes/chat.js +1 -1
- package/dist/domains/run/routes/chatDataStream.js +2 -2
- package/dist/domains/run/routes/webhooks.js +1 -1
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/env.d.ts +2 -2
- package/dist/factory.d.ts +24 -24
- package/dist/index.d.ts +22 -22
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/dist/openapi.d.ts +45 -1
- package/dist/openapi.js +49 -95
- package/package.json +4 -4
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"steps": {
|
|
3
|
-
"node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+reac_d0e39273ec53983ee1a59c0952eb17f2/node_modules/workflow/dist/internal/builtins.js": {
|
|
4
|
-
"__builtin_response_array_buffer": {
|
|
5
|
-
"stepId": "__builtin_response_array_buffer"
|
|
6
|
-
},
|
|
7
|
-
"__builtin_response_json": {
|
|
8
|
-
"stepId": "__builtin_response_json"
|
|
9
|
-
},
|
|
10
|
-
"__builtin_response_text": {
|
|
11
|
-
"stepId": "__builtin_response_text"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
3
|
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
15
4
|
"callChatApiStep": {
|
|
16
5
|
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//callChatApiStep"
|
|
@@ -25,6 +14,17 @@
|
|
|
25
14
|
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//logStep"
|
|
26
15
|
}
|
|
27
16
|
},
|
|
17
|
+
"node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+reac_d0e39273ec53983ee1a59c0952eb17f2/node_modules/workflow/dist/internal/builtins.js": {
|
|
18
|
+
"__builtin_response_array_buffer": {
|
|
19
|
+
"stepId": "__builtin_response_array_buffer"
|
|
20
|
+
},
|
|
21
|
+
"__builtin_response_json": {
|
|
22
|
+
"stepId": "__builtin_response_json"
|
|
23
|
+
},
|
|
24
|
+
"__builtin_response_text": {
|
|
25
|
+
"stepId": "__builtin_response_text"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
28
|
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
29
29
|
"executeEvaluatorStep": {
|
|
30
30
|
"stepId": "step//src/domains/evals/workflow/functions/evaluateConversation.ts//executeEvaluatorStep"
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"workflows": {
|
|
44
|
-
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
45
|
-
"_runDatasetItemWorkflow": {
|
|
46
|
-
"workflowId": "workflow//src/domains/evals/workflow/functions/runDatasetItem.ts//_runDatasetItemWorkflow"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
44
|
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
50
45
|
"_evaluateConversationWorkflow": {
|
|
51
46
|
"workflowId": "workflow//src/domains/evals/workflow/functions/evaluateConversation.ts//_evaluateConversationWorkflow"
|
|
52
47
|
}
|
|
48
|
+
},
|
|
49
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
50
|
+
"_runDatasetItemWorkflow": {
|
|
51
|
+
"workflowId": "workflow//src/domains/evals/workflow/functions/runDatasetItem.ts//_runDatasetItemWorkflow"
|
|
52
|
+
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
package/dist/createApp.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AppConfig } from "./types/app.js";
|
|
2
2
|
import "./types/index.js";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
|
-
import * as
|
|
4
|
+
import * as hono_types0 from "hono/types";
|
|
5
5
|
|
|
6
6
|
//#region src/createApp.d.ts
|
|
7
7
|
declare const isWebhookRoute: (path: string) => boolean;
|
|
8
|
-
declare function createAgentsHono(config: AppConfig): Hono<
|
|
8
|
+
declare function createAgentsHono(config: AppConfig): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { createAgentsHono, isWebhookRoute };
|
package/dist/createApp.js
CHANGED
|
@@ -103,7 +103,7 @@ function createAgentsHono(config) {
|
|
|
103
103
|
app.openapi(createRoute({
|
|
104
104
|
method: "get",
|
|
105
105
|
path: "/api/workflow/process",
|
|
106
|
-
tags: ["
|
|
106
|
+
tags: ["Workflows"],
|
|
107
107
|
summary: "Process workflow jobs",
|
|
108
108
|
description: "Keeps the workflow worker active to process queued jobs (called by cron)",
|
|
109
109
|
responses: { 200: { description: "Processing complete" } }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono18 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/datasetTriggers.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono18.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono17 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono17.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types5 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/github/routes/tokenExchange.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -19,7 +19,7 @@ app.openapi(createRoute({
|
|
|
19
19
|
path: "/",
|
|
20
20
|
summary: "List Artifact Components",
|
|
21
21
|
operationId: "list-artifact-components",
|
|
22
|
-
tags: ["Artifact
|
|
22
|
+
tags: ["Artifact Components"],
|
|
23
23
|
request: {
|
|
24
24
|
params: TenantProjectParamsSchema,
|
|
25
25
|
query: PaginationQueryParamsSchema
|
|
@@ -54,7 +54,7 @@ app.openapi(createRoute({
|
|
|
54
54
|
path: "/{id}",
|
|
55
55
|
summary: "Get Artifact Component",
|
|
56
56
|
operationId: "get-artifact-component-by-id",
|
|
57
|
-
tags: ["Artifact
|
|
57
|
+
tags: ["Artifact Components"],
|
|
58
58
|
request: { params: TenantProjectIdParamsSchema },
|
|
59
59
|
responses: {
|
|
60
60
|
200: {
|
|
@@ -84,7 +84,7 @@ app.openapi(createRoute({
|
|
|
84
84
|
path: "/",
|
|
85
85
|
summary: "Create Artifact Component",
|
|
86
86
|
operationId: "create-artifact-component",
|
|
87
|
-
tags: ["Artifact
|
|
87
|
+
tags: ["Artifact Components"],
|
|
88
88
|
request: {
|
|
89
89
|
params: TenantProjectParamsSchema,
|
|
90
90
|
body: { content: { "application/json": { schema: ArtifactComponentApiInsertSchema } } }
|
|
@@ -133,7 +133,7 @@ app.openapi(createRoute({
|
|
|
133
133
|
path: "/{id}",
|
|
134
134
|
summary: "Update Artifact Component",
|
|
135
135
|
operationId: "update-artifact-component",
|
|
136
|
-
tags: ["Artifact
|
|
136
|
+
tags: ["Artifact Components"],
|
|
137
137
|
request: {
|
|
138
138
|
params: TenantProjectIdParamsSchema,
|
|
139
139
|
body: { content: { "application/json": { schema: ArtifactComponentApiUpdateSchema } } }
|
|
@@ -180,7 +180,7 @@ app.openapi(createRoute({
|
|
|
180
180
|
path: "/{id}",
|
|
181
181
|
summary: "Delete Artifact Component",
|
|
182
182
|
operationId: "delete-artifact-component",
|
|
183
|
-
tags: ["Artifact
|
|
183
|
+
tags: ["Artifact Components"],
|
|
184
184
|
request: { params: TenantProjectIdParamsSchema },
|
|
185
185
|
responses: {
|
|
186
186
|
204: { description: "Artifact component deleted successfully" },
|
|
@@ -21,7 +21,7 @@ const CLIMeResponseSchema = z.object({
|
|
|
21
21
|
cliAuthRoutes.openapi(createRoute({
|
|
22
22
|
method: "get",
|
|
23
23
|
path: "/me",
|
|
24
|
-
tags: ["
|
|
24
|
+
tags: ["CLI"],
|
|
25
25
|
summary: "Get CLI user info",
|
|
26
26
|
description: "Get the current authenticated user and their organization for CLI usage",
|
|
27
27
|
middleware: [sessionAuth()],
|
|
@@ -20,7 +20,7 @@ app.openapi(createRoute({
|
|
|
20
20
|
path: "/",
|
|
21
21
|
summary: "List Context Configurations",
|
|
22
22
|
operationId: "list-context-configs",
|
|
23
|
-
tags: ["Context
|
|
23
|
+
tags: ["Context Configs"],
|
|
24
24
|
request: {
|
|
25
25
|
params: TenantProjectAgentParamsSchema,
|
|
26
26
|
query: PaginationQueryParamsSchema
|
|
@@ -56,7 +56,7 @@ app.openapi(createRoute({
|
|
|
56
56
|
path: "/{id}",
|
|
57
57
|
summary: "Get Context Configuration",
|
|
58
58
|
operationId: "get-context-config-by-id",
|
|
59
|
-
tags: ["Context
|
|
59
|
+
tags: ["Context Configs"],
|
|
60
60
|
request: { params: TenantProjectAgentIdParamsSchema },
|
|
61
61
|
responses: {
|
|
62
62
|
200: {
|
|
@@ -87,7 +87,7 @@ app.openapi(createRoute({
|
|
|
87
87
|
path: "/",
|
|
88
88
|
summary: "Create Context Configuration",
|
|
89
89
|
operationId: "create-context-config",
|
|
90
|
-
tags: ["Context
|
|
90
|
+
tags: ["Context Configs"],
|
|
91
91
|
request: {
|
|
92
92
|
params: TenantProjectAgentParamsSchema,
|
|
93
93
|
body: { content: { "application/json": { schema: ContextConfigApiInsertSchema } } }
|
|
@@ -116,7 +116,7 @@ app.openapi(createRoute({
|
|
|
116
116
|
path: "/{id}",
|
|
117
117
|
summary: "Update Context Configuration",
|
|
118
118
|
operationId: "update-context-config",
|
|
119
|
-
tags: ["Context
|
|
119
|
+
tags: ["Context Configs"],
|
|
120
120
|
request: {
|
|
121
121
|
params: TenantProjectAgentIdParamsSchema,
|
|
122
122
|
body: { content: { "application/json": { schema: ContextConfigApiUpdateSchema } } }
|
|
@@ -152,7 +152,7 @@ app.openapi(createRoute({
|
|
|
152
152
|
path: "/{id}",
|
|
153
153
|
summary: "Delete Context Configuration",
|
|
154
154
|
operationId: "delete-context-config",
|
|
155
|
-
tags: ["Context
|
|
155
|
+
tags: ["Context Configs"],
|
|
156
156
|
request: { params: TenantProjectAgentIdParamsSchema },
|
|
157
157
|
responses: {
|
|
158
158
|
204: { description: "Context configuration deleted successfully" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono14 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono14.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -13,7 +13,7 @@ app.openapi(createRoute({
|
|
|
13
13
|
path: "/",
|
|
14
14
|
summary: "List Credential Stores",
|
|
15
15
|
operationId: "list-credential-stores",
|
|
16
|
-
tags: ["Credential
|
|
16
|
+
tags: ["Credential Stores"],
|
|
17
17
|
request: { params: TenantProjectParamsSchema },
|
|
18
18
|
responses: {
|
|
19
19
|
200: {
|
|
@@ -40,7 +40,7 @@ app.openapi(createRoute({
|
|
|
40
40
|
path: "/{id}/credentials",
|
|
41
41
|
summary: "Create Credential in Store",
|
|
42
42
|
operationId: "create-credential-in-store",
|
|
43
|
-
tags: ["Credential
|
|
43
|
+
tags: ["Credential Stores"],
|
|
44
44
|
request: {
|
|
45
45
|
params: TenantProjectIdParamsSchema,
|
|
46
46
|
body: { content: { "application/json": { schema: CreateCredentialInStoreRequestSchema } } }
|
|
@@ -18,7 +18,7 @@ app.openapi(createRoute({
|
|
|
18
18
|
path: "/",
|
|
19
19
|
summary: "List Data Components",
|
|
20
20
|
operationId: "list-data-components",
|
|
21
|
-
tags: ["Data
|
|
21
|
+
tags: ["Data Components"],
|
|
22
22
|
request: {
|
|
23
23
|
params: TenantProjectParamsSchema,
|
|
24
24
|
query: PaginationQueryParamsSchema
|
|
@@ -53,7 +53,7 @@ app.openapi(createRoute({
|
|
|
53
53
|
path: "/{id}",
|
|
54
54
|
summary: "Get Data Component",
|
|
55
55
|
operationId: "get-data-component-by-id",
|
|
56
|
-
tags: ["Data
|
|
56
|
+
tags: ["Data Components"],
|
|
57
57
|
request: { params: TenantProjectIdParamsSchema },
|
|
58
58
|
responses: {
|
|
59
59
|
200: {
|
|
@@ -83,7 +83,7 @@ app.openapi(createRoute({
|
|
|
83
83
|
path: "/",
|
|
84
84
|
summary: "Create Data Component",
|
|
85
85
|
operationId: "create-data-component",
|
|
86
|
-
tags: ["Data
|
|
86
|
+
tags: ["Data Components"],
|
|
87
87
|
request: {
|
|
88
88
|
params: TenantProjectParamsSchema,
|
|
89
89
|
body: { content: { "application/json": { schema: DataComponentApiInsertSchema } } }
|
|
@@ -119,7 +119,7 @@ app.openapi(createRoute({
|
|
|
119
119
|
path: "/{id}",
|
|
120
120
|
summary: "Update Data Component",
|
|
121
121
|
operationId: "update-data-component",
|
|
122
|
-
tags: ["Data
|
|
122
|
+
tags: ["Data Components"],
|
|
123
123
|
request: {
|
|
124
124
|
params: TenantProjectIdParamsSchema,
|
|
125
125
|
body: { content: { "application/json": { schema: DataComponentApiUpdateSchema } } }
|
|
@@ -161,7 +161,7 @@ app.openapi(createRoute({
|
|
|
161
161
|
path: "/{id}",
|
|
162
162
|
summary: "Delete Data Component",
|
|
163
163
|
operationId: "delete-data-component",
|
|
164
|
-
tags: ["Data
|
|
164
|
+
tags: ["Data Components"],
|
|
165
165
|
request: { params: TenantProjectIdParamsSchema },
|
|
166
166
|
responses: {
|
|
167
167
|
204: { description: "Data component deleted successfully" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono16 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/evals/evaluationResults.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono16.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono15 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono15.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -19,7 +19,7 @@ const PendingInvitationsResponseSchema = z.array(PendingInvitationSchema);
|
|
|
19
19
|
invitationsRoutes.openapi(createRoute({
|
|
20
20
|
method: "get",
|
|
21
21
|
path: "/pending",
|
|
22
|
-
tags: ["
|
|
22
|
+
tags: ["Invitations"],
|
|
23
23
|
summary: "Get pending invitations",
|
|
24
24
|
description: "Get all pending (non-expired) invitations for a given email address",
|
|
25
25
|
request: { query: z.object({ email: z.email().describe("Email address to check for invitations") }) },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types8 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -19,7 +19,7 @@ app.openapi(createRoute({
|
|
|
19
19
|
path: "/",
|
|
20
20
|
summary: "Generate temporary API key for playground",
|
|
21
21
|
operationId: "create-playground-token",
|
|
22
|
-
tags: ["
|
|
22
|
+
tags: ["API Keys"],
|
|
23
23
|
description: "Generates a short-lived API key (1 hour expiry) for authenticated users to access the run-api from the playground",
|
|
24
24
|
security: [{ cookieAuth: [] }],
|
|
25
25
|
request: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types7 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/signoz.d.ts
|
|
6
6
|
declare const app: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types7.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { app as default };
|
|
@@ -19,7 +19,7 @@ app.openapi(createRoute({
|
|
|
19
19
|
path: "/",
|
|
20
20
|
summary: "List Sub Agent External Agent Relations",
|
|
21
21
|
operationId: "list-sub-agent-external-agent-relations",
|
|
22
|
-
tags: ["
|
|
22
|
+
tags: ["SubAgent External Agent Relations"],
|
|
23
23
|
request: {
|
|
24
24
|
params: TenantProjectAgentSubAgentParamsSchema,
|
|
25
25
|
query: PaginationQueryParamsSchema
|
|
@@ -64,7 +64,7 @@ app.openapi(createRoute({
|
|
|
64
64
|
path: "/{id}",
|
|
65
65
|
summary: "Get Sub Agent External Agent Relation",
|
|
66
66
|
operationId: "get-sub-agent-external-agent-relation-by-id",
|
|
67
|
-
tags: ["
|
|
67
|
+
tags: ["SubAgent External Agent Relations"],
|
|
68
68
|
request: { params: TenantProjectAgentSubAgentIdParamsSchema },
|
|
69
69
|
responses: {
|
|
70
70
|
200: {
|
|
@@ -96,7 +96,7 @@ app.openapi(createRoute({
|
|
|
96
96
|
path: "/",
|
|
97
97
|
summary: "Create Sub Agent External Agent Relation",
|
|
98
98
|
operationId: "create-sub-agent-external-agent-relation",
|
|
99
|
-
tags: ["
|
|
99
|
+
tags: ["SubAgent External Agent Relations"],
|
|
100
100
|
request: {
|
|
101
101
|
params: TenantProjectAgentSubAgentParamsSchema,
|
|
102
102
|
body: { content: { "application/json": { schema: SubAgentExternalAgentRelationApiInsertSchema } } }
|
|
@@ -147,7 +147,7 @@ app.openapi(createRoute({
|
|
|
147
147
|
path: "/{id}",
|
|
148
148
|
summary: "Update Sub Agent External Agent Relation",
|
|
149
149
|
operationId: "update-sub-agent-external-agent-relation",
|
|
150
|
-
tags: ["
|
|
150
|
+
tags: ["SubAgent External Agent Relations"],
|
|
151
151
|
request: {
|
|
152
152
|
params: TenantProjectAgentSubAgentIdParamsSchema,
|
|
153
153
|
body: { content: { "application/json": { schema: SubAgentExternalAgentRelationApiUpdateSchema } } }
|
|
@@ -184,7 +184,7 @@ app.openapi(createRoute({
|
|
|
184
184
|
path: "/{id}",
|
|
185
185
|
summary: "Delete Sub Agent External Agent Relation",
|
|
186
186
|
operationId: "delete-sub-agent-external-agent-relation",
|
|
187
|
-
tags: ["
|
|
187
|
+
tags: ["SubAgent External Agent Relations"],
|
|
188
188
|
request: { params: TenantProjectAgentSubAgentIdParamsSchema },
|
|
189
189
|
responses: {
|
|
190
190
|
204: { description: "Sub Agent External Agent Relation deleted successfully" },
|
|
@@ -17,7 +17,7 @@ app.openapi(createRoute({
|
|
|
17
17
|
path: "/sub-agent/{subAgentId}",
|
|
18
18
|
summary: "Get Function Tools for SubAgent",
|
|
19
19
|
operationId: "get-function-tools-for-sub-agent",
|
|
20
|
-
tags: ["SubAgent Function
|
|
20
|
+
tags: ["SubAgent Function Tools"],
|
|
21
21
|
request: { params: TenantProjectAgentSubAgentParamsSchema },
|
|
22
22
|
responses: {
|
|
23
23
|
200: {
|
|
@@ -44,7 +44,7 @@ app.openapi(createRoute({
|
|
|
44
44
|
path: "/function-tool/{functionToolId}/sub-agents",
|
|
45
45
|
summary: "Get SubAgents Using Function Tool",
|
|
46
46
|
operationId: "get-sub-agents-using-function-tool",
|
|
47
|
-
tags: ["SubAgent Function
|
|
47
|
+
tags: ["SubAgent Function Tools"],
|
|
48
48
|
request: { params: TenantProjectAgentParamsSchema.extend({ functionToolId: z.string() }) },
|
|
49
49
|
responses: {
|
|
50
50
|
200: {
|
|
@@ -71,7 +71,7 @@ app.openapi(createRoute({
|
|
|
71
71
|
path: "/",
|
|
72
72
|
summary: "Associate Function Tool with SubAgent",
|
|
73
73
|
operationId: "associate-function-tool-with-sub-agent",
|
|
74
|
-
tags: ["SubAgent Function
|
|
74
|
+
tags: ["SubAgent Function Tools"],
|
|
75
75
|
request: {
|
|
76
76
|
params: TenantProjectAgentParamsSchema,
|
|
77
77
|
body: { content: { "application/json": { schema: SubAgentFunctionToolRelationApiInsertSchema } } }
|
|
@@ -142,7 +142,7 @@ app.openapi(createRoute({
|
|
|
142
142
|
path: "/sub-agent/{subAgentId}/function-tool/{functionToolId}",
|
|
143
143
|
summary: "Remove Function Tool from SubAgent",
|
|
144
144
|
operationId: "remove-function-tool-from-sub-agent",
|
|
145
|
-
tags: ["SubAgent Function
|
|
145
|
+
tags: ["SubAgent Function Tools"],
|
|
146
146
|
request: { params: TenantProjectAgentSubAgentParamsSchema.extend({ functionToolId: z.string() }) },
|
|
147
147
|
responses: {
|
|
148
148
|
200: {
|
|
@@ -176,7 +176,7 @@ app.openapi(createRoute({
|
|
|
176
176
|
path: "/sub-agent/{subAgentId}/function-tool/{functionToolId}/exists",
|
|
177
177
|
summary: "Check if Function Tool is Associated with SubAgent",
|
|
178
178
|
operationId: "check-function-tool-sub-agent-association",
|
|
179
|
-
tags: ["SubAgent Function
|
|
179
|
+
tags: ["SubAgent Function Tools"],
|
|
180
180
|
request: { params: TenantProjectAgentSubAgentParamsSchema.extend({ functionToolId: z.string() }) },
|
|
181
181
|
responses: {
|
|
182
182
|
200: {
|
|
@@ -19,7 +19,7 @@ app.openapi(createRoute({
|
|
|
19
19
|
path: "/",
|
|
20
20
|
summary: "List Sub Agent Relations",
|
|
21
21
|
operationId: "list-sub-agent-relations",
|
|
22
|
-
tags: ["
|
|
22
|
+
tags: ["SubAgent Relations"],
|
|
23
23
|
request: {
|
|
24
24
|
params: TenantProjectAgentParamsSchema,
|
|
25
25
|
query: PaginationQueryParamsSchema.merge(SubAgentRelationQuerySchema)
|
|
@@ -92,7 +92,7 @@ app.openapi(createRoute({
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
return c.json(result);
|
|
95
|
-
} catch
|
|
95
|
+
} catch {
|
|
96
96
|
throw createApiError({
|
|
97
97
|
code: "internal_server_error",
|
|
98
98
|
message: "Failed to retrieve sub agent relations"
|
|
@@ -104,7 +104,7 @@ app.openapi(createRoute({
|
|
|
104
104
|
path: "/{id}",
|
|
105
105
|
summary: "Get Sub Agent Relation",
|
|
106
106
|
operationId: "get-sub-agent-relation-by-id",
|
|
107
|
-
tags: ["
|
|
107
|
+
tags: ["SubAgent Relations"],
|
|
108
108
|
request: { params: TenantProjectAgentIdParamsSchema },
|
|
109
109
|
responses: {
|
|
110
110
|
200: {
|
|
@@ -135,7 +135,7 @@ app.openapi(createRoute({
|
|
|
135
135
|
path: "/",
|
|
136
136
|
summary: "Create Sub Agent Relation",
|
|
137
137
|
operationId: "create-sub-agent-relation",
|
|
138
|
-
tags: ["
|
|
138
|
+
tags: ["SubAgent Relations"],
|
|
139
139
|
request: {
|
|
140
140
|
params: TenantProjectAgentParamsSchema,
|
|
141
141
|
body: { content: { "application/json": { schema: SubAgentRelationApiInsertSchema } } }
|
|
@@ -196,7 +196,7 @@ app.openapi(createRoute({
|
|
|
196
196
|
path: "/{id}",
|
|
197
197
|
summary: "Update Sub Agent Relation",
|
|
198
198
|
operationId: "update-sub-agent-relation",
|
|
199
|
-
tags: ["
|
|
199
|
+
tags: ["SubAgent Relations"],
|
|
200
200
|
request: {
|
|
201
201
|
params: TenantProjectAgentIdParamsSchema,
|
|
202
202
|
body: { content: { "application/json": { schema: SubAgentRelationApiUpdateSchema } } }
|
|
@@ -232,7 +232,7 @@ app.openapi(createRoute({
|
|
|
232
232
|
path: "/{id}",
|
|
233
233
|
summary: "Delete Sub Agent Relation",
|
|
234
234
|
operationId: "delete-sub-agent-relation",
|
|
235
|
-
tags: ["
|
|
235
|
+
tags: ["SubAgent Relations"],
|
|
236
236
|
request: { params: TenantProjectAgentIdParamsSchema },
|
|
237
237
|
responses: {
|
|
238
238
|
204: { description: "Sub Agent Relation deleted successfully" },
|
|
@@ -19,7 +19,7 @@ app.openapi(createRoute({
|
|
|
19
19
|
path: "/",
|
|
20
20
|
summary: "List Sub Agent Team Agent Relations",
|
|
21
21
|
operationId: "list-sub-agent-team-agent-relations",
|
|
22
|
-
tags: ["
|
|
22
|
+
tags: ["SubAgent Team Agent Relations"],
|
|
23
23
|
request: {
|
|
24
24
|
params: TenantProjectAgentSubAgentParamsSchema,
|
|
25
25
|
query: PaginationQueryParamsSchema
|
|
@@ -52,7 +52,7 @@ app.openapi(createRoute({
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
return c.json(result);
|
|
55
|
-
} catch
|
|
55
|
+
} catch {
|
|
56
56
|
throw createApiError({
|
|
57
57
|
code: "internal_server_error",
|
|
58
58
|
message: "Failed to retrieve sub agent team agent relations"
|
|
@@ -64,7 +64,7 @@ app.openapi(createRoute({
|
|
|
64
64
|
path: "/{id}",
|
|
65
65
|
summary: "Get Sub Agent Team Agent Relation",
|
|
66
66
|
operationId: "get-sub-agent-team-agent-relation-by-id",
|
|
67
|
-
tags: ["
|
|
67
|
+
tags: ["SubAgent Team Agent Relations"],
|
|
68
68
|
request: { params: TenantProjectAgentSubAgentIdParamsSchema },
|
|
69
69
|
responses: {
|
|
70
70
|
200: {
|
|
@@ -96,7 +96,7 @@ app.openapi(createRoute({
|
|
|
96
96
|
path: "/",
|
|
97
97
|
summary: "Create Sub Agent Team Agent Relation",
|
|
98
98
|
operationId: "create-sub-agent-team-agent-relation",
|
|
99
|
-
tags: ["
|
|
99
|
+
tags: ["SubAgent Team Agent Relations"],
|
|
100
100
|
request: {
|
|
101
101
|
params: TenantProjectAgentSubAgentParamsSchema,
|
|
102
102
|
body: { content: { "application/json": { schema: SubAgentTeamAgentRelationApiInsertSchema } } }
|
|
@@ -147,7 +147,7 @@ app.openapi(createRoute({
|
|
|
147
147
|
path: "/{id}",
|
|
148
148
|
summary: "Update Sub Agent Team Agent Relation",
|
|
149
149
|
operationId: "update-sub-agent-team-agent-relation",
|
|
150
|
-
tags: ["
|
|
150
|
+
tags: ["SubAgent Team Agent Relations"],
|
|
151
151
|
request: {
|
|
152
152
|
params: TenantProjectAgentSubAgentIdParamsSchema,
|
|
153
153
|
body: { content: { "application/json": { schema: SubAgentTeamAgentRelationApiUpdateSchema } } }
|
|
@@ -184,7 +184,7 @@ app.openapi(createRoute({
|
|
|
184
184
|
path: "/{id}",
|
|
185
185
|
summary: "Delete Sub Agent Team Agent Relation",
|
|
186
186
|
operationId: "delete-sub-agent-team-agent-relation",
|
|
187
|
-
tags: ["
|
|
187
|
+
tags: ["SubAgent Team Agent Relations"],
|
|
188
188
|
request: { params: TenantProjectAgentSubAgentIdParamsSchema },
|
|
189
189
|
responses: {
|
|
190
190
|
204: { description: "Sub Agent Team Agent Relation deleted successfully" },
|
|
@@ -8,7 +8,7 @@ const userOrganizationsRoutes = new OpenAPIHono();
|
|
|
8
8
|
userOrganizationsRoutes.openapi(createRoute({
|
|
9
9
|
method: "get",
|
|
10
10
|
path: "/",
|
|
11
|
-
tags: ["
|
|
11
|
+
tags: ["User Organizations"],
|
|
12
12
|
summary: "List user organizations",
|
|
13
13
|
description: "Get all organizations associated with a user",
|
|
14
14
|
request: { params: z.object({ userId: z.string().describe("User ID") }) },
|
|
@@ -27,7 +27,7 @@ userOrganizationsRoutes.openapi(createRoute({
|
|
|
27
27
|
userOrganizationsRoutes.openapi(createRoute({
|
|
28
28
|
method: "post",
|
|
29
29
|
path: "/",
|
|
30
|
-
tags: ["
|
|
30
|
+
tags: ["User Organizations"],
|
|
31
31
|
summary: "Add user to organization",
|
|
32
32
|
description: "Associate a user with an organization",
|
|
33
33
|
request: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types10 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/mcp/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types10.BlankEnv, hono_types10.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -18,7 +18,7 @@ const logger = getLogger$1("completionsHandler");
|
|
|
18
18
|
const chatCompletionsRoute = createRoute({
|
|
19
19
|
method: "post",
|
|
20
20
|
path: "/completions",
|
|
21
|
-
tags: ["
|
|
21
|
+
tags: ["Chat"],
|
|
22
22
|
summary: "Create chat completion",
|
|
23
23
|
description: "Creates a new chat completion with streaming SSE response using the configured agent",
|
|
24
24
|
security: [{ bearerAuth: [] }],
|
|
@@ -20,7 +20,7 @@ const logger = getLogger$1("chatDataStream");
|
|
|
20
20
|
const chatDataStreamRoute = createRoute({
|
|
21
21
|
method: "post",
|
|
22
22
|
path: "/chat",
|
|
23
|
-
tags: ["
|
|
23
|
+
tags: ["Chat"],
|
|
24
24
|
summary: "Chat (Vercel Streaming Protocol)",
|
|
25
25
|
description: "Chat completion endpoint streaming with Vercel data stream protocol.",
|
|
26
26
|
security: [{ bearerAuth: [] }],
|
|
@@ -365,7 +365,7 @@ app.openapi(chatDataStreamRoute, async (c) => {
|
|
|
365
365
|
const toolApprovalRoute = createRoute({
|
|
366
366
|
method: "post",
|
|
367
367
|
path: "/tool-approvals",
|
|
368
|
-
tags: ["
|
|
368
|
+
tags: ["Chat"],
|
|
369
369
|
summary: "Approve or deny tool execution",
|
|
370
370
|
description: "Handle user approval/denial of tool execution requests during conversations",
|
|
371
371
|
security: [{ bearerAuth: [] }],
|
|
@@ -12,7 +12,7 @@ const logger = getLogger("webhooks");
|
|
|
12
12
|
const triggerWebhookRoute = createRoute({
|
|
13
13
|
method: "post",
|
|
14
14
|
path: "/tenants/{tenantId}/projects/{projectId}/agents/{agentId}/triggers/{triggerId}",
|
|
15
|
-
tags: ["
|
|
15
|
+
tags: ["Webhooks"],
|
|
16
16
|
summary: "Invoke agent via trigger webhook",
|
|
17
17
|
description: "Webhook endpoint for third-party services to invoke an agent via a configured trigger",
|
|
18
18
|
request: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core0 from "@inkeep/agents-core";
|
|
2
2
|
import { BreakdownComponentDef, ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown } from "@inkeep/agents-core";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/run/utils/token-estimator.d.ts
|
|
@@ -17,7 +17,7 @@ interface AssembleResult {
|
|
|
17
17
|
/** The assembled prompt string */
|
|
18
18
|
prompt: string;
|
|
19
19
|
/** Token breakdown for each component */
|
|
20
|
-
breakdown:
|
|
20
|
+
breakdown: _inkeep_agents_core0.ContextBreakdown;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };
|