@inkeep/agents-api 0.0.0-dev-20260204182014 → 0.0.0-dev-20260204210021
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 +5 -5
- package/dist/.well-known/workflow/v1/step.cjs +233 -570
- package/dist/createApp.d.ts +2 -2
- package/dist/createApp.js +1 -46
- package/dist/data/db/manageDbClient.d.ts +2 -2
- package/dist/data/db/runDbClient.d.ts +2 -2
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/services/EvaluationService.d.ts +5 -0
- package/dist/domains/evals/services/EvaluationService.js +51 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/userOrganizations.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/factory.d.ts +20 -20
- package/dist/index.d.ts +18 -18
- package/dist/middleware/cors.d.ts +1 -6
- package/dist/middleware/cors.js +1 -27
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/index.d.ts +2 -2
- package/dist/middleware/index.js +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.js +1 -16
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/runAuth.js +1 -48
- 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 +0 -8
- package/dist/openapi.js +1 -9
- package/package.json +5 -10
- package/dist/domains/work-apps/index.d.ts +0 -13
- package/dist/domains/work-apps/index.js +0 -23
- package/dist/domains/work-apps/types.d.ts +0 -7
- package/dist/domains/work-apps/types.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { authCorsConfig, defaultCorsConfig, getBaseDomain, isOriginAllowed, playgroundCorsConfig, runCorsConfig, signozCorsConfig
|
|
1
|
+
import { authCorsConfig, defaultCorsConfig, getBaseDomain, isOriginAllowed, playgroundCorsConfig, runCorsConfig, signozCorsConfig } from "./cors.js";
|
|
2
2
|
import { errorHandler } from "./errorHandler.js";
|
|
3
3
|
import { manageApiKeyAuth } from "./manageAuth.js";
|
|
4
4
|
import { oauthRefMiddleware } from "./ref.js";
|
|
5
5
|
import { runApiKeyAuth, runApiKeyAuthExcept, runOptionalAuth } from "./runAuth.js";
|
|
6
6
|
import { sessionAuth } from "./sessionAuth.js";
|
|
7
7
|
import { requireTenantAccess } from "./tenantAccess.js";
|
|
8
|
-
export { authCorsConfig, defaultCorsConfig, errorHandler, getBaseDomain, isOriginAllowed, manageApiKeyAuth, oauthRefMiddleware, playgroundCorsConfig, requireTenantAccess, runApiKeyAuth, runApiKeyAuthExcept, runCorsConfig, runOptionalAuth, sessionAuth, signozCorsConfig
|
|
8
|
+
export { authCorsConfig, defaultCorsConfig, errorHandler, getBaseDomain, isOriginAllowed, manageApiKeyAuth, oauthRefMiddleware, playgroundCorsConfig, requireTenantAccess, runApiKeyAuth, runApiKeyAuthExcept, runCorsConfig, runOptionalAuth, sessionAuth, signozCorsConfig };
|
package/dist/middleware/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { sessionAuth } from "./sessionAuth.js";
|
|
2
|
-
import { authCorsConfig, defaultCorsConfig, getBaseDomain, isOriginAllowed, playgroundCorsConfig, runCorsConfig, signozCorsConfig
|
|
2
|
+
import { authCorsConfig, defaultCorsConfig, getBaseDomain, isOriginAllowed, playgroundCorsConfig, runCorsConfig, signozCorsConfig } from "./cors.js";
|
|
3
3
|
import { errorHandler } from "./errorHandler.js";
|
|
4
4
|
import { manageApiKeyAuth } from "./manageAuth.js";
|
|
5
5
|
import { oauthRefMiddleware } from "./ref.js";
|
|
6
6
|
import { runApiKeyAuth, runApiKeyAuthExcept, runOptionalAuth } from "./runAuth.js";
|
|
7
7
|
import { requireTenantAccess } from "./tenantAccess.js";
|
|
8
8
|
|
|
9
|
-
export { authCorsConfig, defaultCorsConfig, errorHandler, getBaseDomain, isOriginAllowed, manageApiKeyAuth, oauthRefMiddleware, playgroundCorsConfig, requireTenantAccess, runApiKeyAuth, runApiKeyAuthExcept, runCorsConfig, runOptionalAuth, sessionAuth, signozCorsConfig
|
|
9
|
+
export { authCorsConfig, defaultCorsConfig, errorHandler, getBaseDomain, isOriginAllowed, manageApiKeyAuth, oauthRefMiddleware, playgroundCorsConfig, requireTenantAccess, runApiKeyAuth, runApiKeyAuthExcept, runCorsConfig, runOptionalAuth, sessionAuth, signozCorsConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono11 from "hono";
|
|
3
3
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/manageAuth.d.ts
|
|
@@ -12,7 +12,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
|
|
|
12
12
|
* 3. Database API key
|
|
13
13
|
* 4. Internal service token
|
|
14
14
|
*/
|
|
15
|
-
declare const manageApiKeyAuth: () =>
|
|
15
|
+
declare const manageApiKeyAuth: () => hono11.MiddlewareHandler<{
|
|
16
16
|
Variables: {
|
|
17
17
|
executionContext: BaseExecutionContext;
|
|
18
18
|
userId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { env } from "../env.js";
|
|
2
2
|
import runDbClient_default from "../data/db/runDbClient.js";
|
|
3
|
-
import { getLogger, isInternalServiceToken,
|
|
3
|
+
import { getLogger, isInternalServiceToken, validateAndGetApiKey, verifyInternalServiceAuthHeader } from "@inkeep/agents-core";
|
|
4
4
|
import { createMiddleware } from "hono/factory";
|
|
5
5
|
import { HTTPException } from "hono/http-exception";
|
|
6
6
|
|
|
@@ -58,21 +58,6 @@ const manageApiKeyAuth = () => createMiddleware(async (c, next) => {
|
|
|
58
58
|
await next();
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
if (isSlackUserToken(token)) {
|
|
62
|
-
const result = await verifySlackUserToken(token);
|
|
63
|
-
if (!result.valid || !result.payload) throw new HTTPException(401, { message: result.error || "Invalid Slack user token" });
|
|
64
|
-
logger.info({
|
|
65
|
-
inkeepUserId: result.payload.sub,
|
|
66
|
-
tenantId: result.payload.tenantId,
|
|
67
|
-
slackTeamId: result.payload.slack.teamId,
|
|
68
|
-
slackUserId: result.payload.slack.userId
|
|
69
|
-
}, "Slack user JWT authenticated successfully");
|
|
70
|
-
c.set("userId", result.payload.sub);
|
|
71
|
-
if (result.payload.slack.email) c.set("userEmail", result.payload.slack.email);
|
|
72
|
-
c.set("tenantId", result.payload.tenantId);
|
|
73
|
-
await next();
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
61
|
if (isInternalServiceToken(token)) {
|
|
77
62
|
const result = await verifyInternalServiceAuthHeader(authHeader);
|
|
78
63
|
if (!result.valid || !result.payload) throw new HTTPException(401, { message: result.error || "Invalid internal service token" });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
2
|
import { ProjectPermissionLevel } from "@inkeep/agents-core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono2 from "hono";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/projectAccess.d.ts
|
|
6
6
|
/**
|
|
@@ -10,6 +10,6 @@ declare const requireProjectPermission: <Env$1 extends {
|
|
|
10
10
|
Variables: ManageAppVariables;
|
|
11
11
|
} = {
|
|
12
12
|
Variables: ManageAppVariables;
|
|
13
|
-
}>(permission?: ProjectPermissionLevel) =>
|
|
13
|
+
}>(permission?: ProjectPermissionLevel) => hono2.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { requireProjectPermission };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono0 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/projectConfig.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Middleware that fetches the full project definition from the Management API
|
|
7
7
|
*/
|
|
8
|
-
declare const projectConfigMiddleware:
|
|
8
|
+
declare const projectConfigMiddleware: hono0.MiddlewareHandler<{
|
|
9
9
|
Variables: {
|
|
10
10
|
executionContext: BaseExecutionContext;
|
|
11
11
|
resolvedRef: ResolvedRef;
|
|
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono16.MiddlewareHandler<{
|
|
|
15
15
|
* Creates a middleware that applies project config fetching except for specified route patterns
|
|
16
16
|
* @param skipRouteCheck - Function that returns true if the route should skip the middleware
|
|
17
17
|
*/
|
|
18
|
-
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) =>
|
|
18
|
+
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono0.MiddlewareHandler<{
|
|
19
19
|
Variables: {
|
|
20
20
|
executionContext: BaseExecutionContext;
|
|
21
21
|
resolvedRef: ResolvedRef;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono4 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/requirePermission.d.ts
|
|
5
5
|
type Permission = {
|
|
@@ -9,6 +9,6 @@ declare const requirePermission: <Env$1 extends {
|
|
|
9
9
|
Variables: ManageAppVariables;
|
|
10
10
|
} = {
|
|
11
11
|
Variables: ManageAppVariables;
|
|
12
|
-
}>(permissions: Permission) =>
|
|
12
|
+
}>(permissions: Permission) => hono4.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { requirePermission };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono5 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/runAuth.d.ts
|
|
5
|
-
declare const runApiKeyAuth: () =>
|
|
5
|
+
declare const runApiKeyAuth: () => hono5.MiddlewareHandler<{
|
|
6
6
|
Variables: {
|
|
7
7
|
executionContext: BaseExecutionContext;
|
|
8
8
|
};
|
|
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono2.MiddlewareHandler<{
|
|
|
11
11
|
* Creates a middleware that applies API key authentication except for specified route patterns
|
|
12
12
|
* @param skipRouteCheck - Function that returns true if the route should skip authentication
|
|
13
13
|
*/
|
|
14
|
-
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =>
|
|
14
|
+
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono5.MiddlewareHandler<{
|
|
15
15
|
Variables: {
|
|
16
16
|
executionContext: BaseExecutionContext;
|
|
17
17
|
};
|
|
@@ -20,7 +20,7 @@ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =
|
|
|
20
20
|
* Helper middleware for endpoints that optionally support API key authentication
|
|
21
21
|
* If no auth header is present, it continues without setting the executionContext
|
|
22
22
|
*/
|
|
23
|
-
declare const runOptionalAuth: () =>
|
|
23
|
+
declare const runOptionalAuth: () => hono5.MiddlewareHandler<{
|
|
24
24
|
Variables: {
|
|
25
25
|
executionContext?: BaseExecutionContext;
|
|
26
26
|
};
|
|
@@ -2,7 +2,7 @@ import { getLogger as getLogger$1 } from "../logger.js";
|
|
|
2
2
|
import { env } from "../env.js";
|
|
3
3
|
import runDbClient_default from "../data/db/runDbClient.js";
|
|
4
4
|
import { createBaseExecutionContext } from "../types/runExecutionContext.js";
|
|
5
|
-
import { canUseProjectStrict,
|
|
5
|
+
import { canUseProjectStrict, validateAndGetApiKey, validateTargetAgent, verifyServiceToken, verifyTempToken } from "@inkeep/agents-core";
|
|
6
6
|
import { createMiddleware } from "hono/factory";
|
|
7
7
|
import { HTTPException } from "hono/http-exception";
|
|
8
8
|
|
|
@@ -125,50 +125,6 @@ async function tryApiKeyAuth(apiKey) {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
* Authenticate using a Slack user JWT token (for Slack work app delegation)
|
|
129
|
-
*/
|
|
130
|
-
async function trySlackUserJwtAuth(token, reqData) {
|
|
131
|
-
if (!isSlackUserToken(token)) return { authResult: null };
|
|
132
|
-
const result = await verifySlackUserToken(token);
|
|
133
|
-
if (!result.valid || !result.payload) {
|
|
134
|
-
logger.warn({ error: result.error }, "Invalid Slack user JWT token");
|
|
135
|
-
return {
|
|
136
|
-
authResult: null,
|
|
137
|
-
failureMessage: `Invalid Slack user token: ${result.error || "Invalid token"}`
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
const payload = result.payload;
|
|
141
|
-
if (!reqData.projectId || !reqData.agentId) {
|
|
142
|
-
logger.warn({
|
|
143
|
-
hasProjectId: !!reqData.projectId,
|
|
144
|
-
hasAgentId: !!reqData.agentId
|
|
145
|
-
}, "Slack user JWT requires x-inkeep-project-id and x-inkeep-agent-id headers");
|
|
146
|
-
return {
|
|
147
|
-
authResult: null,
|
|
148
|
-
failureMessage: "Slack user token requires x-inkeep-project-id and x-inkeep-agent-id headers"
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
logger.info({
|
|
152
|
-
inkeepUserId: payload.sub,
|
|
153
|
-
tenantId: payload.tenantId,
|
|
154
|
-
slackTeamId: payload.slack.teamId,
|
|
155
|
-
slackUserId: payload.slack.userId,
|
|
156
|
-
projectId: reqData.projectId,
|
|
157
|
-
agentId: reqData.agentId
|
|
158
|
-
}, "Slack user JWT token authenticated successfully");
|
|
159
|
-
return { authResult: {
|
|
160
|
-
apiKey: "slack-user-jwt",
|
|
161
|
-
tenantId: payload.tenantId,
|
|
162
|
-
projectId: reqData.projectId,
|
|
163
|
-
agentId: reqData.agentId,
|
|
164
|
-
apiKeyId: "slack-user-token",
|
|
165
|
-
metadata: { initiatedBy: {
|
|
166
|
-
type: "user",
|
|
167
|
-
id: payload.sub
|
|
168
|
-
} }
|
|
169
|
-
} };
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
128
|
* Authenticate using a team agent JWT token (for intra-tenant delegation)
|
|
173
129
|
*/
|
|
174
130
|
async function tryTeamAgentAuth(token, expectedSubAgentId) {
|
|
@@ -254,9 +210,6 @@ async function authenticateRequest(reqData) {
|
|
|
254
210
|
if (jwtResult) return { authResult: jwtResult };
|
|
255
211
|
const bypassResult = tryBypassAuth(apiKey, reqData);
|
|
256
212
|
if (bypassResult) return { authResult: bypassResult };
|
|
257
|
-
const slackAttempt = await trySlackUserJwtAuth(apiKey, reqData);
|
|
258
|
-
if (slackAttempt.authResult) return { authResult: slackAttempt.authResult };
|
|
259
|
-
if (slackAttempt.failureMessage) return slackAttempt;
|
|
260
213
|
const apiKeyResult = await tryApiKeyAuth(apiKey);
|
|
261
214
|
if (apiKeyResult) return { authResult: apiKeyResult };
|
|
262
215
|
const teamAttempt = await tryTeamAgentAuth(apiKey, subAgentId);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono12 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/sessionAuth.d.ts
|
|
4
4
|
|
|
@@ -7,11 +7,11 @@ import * as hono11 from "hono";
|
|
|
7
7
|
* Requires that a user has already been authenticated via Better Auth session.
|
|
8
8
|
* Used primarily for manage routes that require an active user session.
|
|
9
9
|
*/
|
|
10
|
-
declare const sessionAuth: () =>
|
|
10
|
+
declare const sessionAuth: () => hono12.MiddlewareHandler<any, string, {}, Response>;
|
|
11
11
|
/**
|
|
12
12
|
* Global session middleware - sets user and session in context for all routes
|
|
13
13
|
* Used for all routes that require an active user session.
|
|
14
14
|
*/
|
|
15
|
-
declare const sessionContext: () =>
|
|
15
|
+
declare const sessionContext: () => hono12.MiddlewareHandler<any, string, {}, Response>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { sessionAuth, sessionContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono16 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tenantAccess.d.ts
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ import * as hono1 from "hono";
|
|
|
11
11
|
* - API key user: Access only to the tenant associated with the API key
|
|
12
12
|
* - Session user: Access based on organization membership
|
|
13
13
|
*/
|
|
14
|
-
declare const requireTenantAccess: () =>
|
|
14
|
+
declare const requireTenantAccess: () => hono16.MiddlewareHandler<{
|
|
15
15
|
Variables: {
|
|
16
16
|
userId: string;
|
|
17
17
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono14 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tracing.d.ts
|
|
4
|
-
declare const otelBaggageMiddleware: () =>
|
|
5
|
-
declare const executionBaggageMiddleware: () =>
|
|
4
|
+
declare const otelBaggageMiddleware: () => hono14.MiddlewareHandler<any, string, {}, Response>;
|
|
5
|
+
declare const executionBaggageMiddleware: () => hono14.MiddlewareHandler<any, string, {}, Response>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { executionBaggageMiddleware, otelBaggageMiddleware };
|
package/dist/openapi.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ declare const TagToDescription: {
|
|
|
8
8
|
Agents: string;
|
|
9
9
|
'Artifact Components': string;
|
|
10
10
|
Branches: string;
|
|
11
|
-
Channels: string;
|
|
12
11
|
CLI: string;
|
|
13
12
|
Chat: string;
|
|
14
13
|
'Context Configs': string;
|
|
@@ -21,7 +20,6 @@ declare const TagToDescription: {
|
|
|
21
20
|
'Function Tools': string;
|
|
22
21
|
Functions: string;
|
|
23
22
|
GitHub: string;
|
|
24
|
-
Invitations: string;
|
|
25
23
|
MCP: string;
|
|
26
24
|
'MCP Catalog': string;
|
|
27
25
|
OAuth: string;
|
|
@@ -29,19 +27,13 @@ declare const TagToDescription: {
|
|
|
29
27
|
'Project Permissions': string;
|
|
30
28
|
Projects: string;
|
|
31
29
|
Refs: string;
|
|
32
|
-
Resources: string;
|
|
33
|
-
Slack: string;
|
|
34
30
|
SubAgents: string;
|
|
35
31
|
'Third-Party MCP Servers': string;
|
|
36
32
|
Tools: string;
|
|
37
33
|
Triggers: string;
|
|
38
|
-
'User Organizations': string;
|
|
39
34
|
'User Project Memberships': string;
|
|
40
|
-
Users: string;
|
|
41
35
|
Webhooks: string;
|
|
42
|
-
'Work Apps': string;
|
|
43
36
|
Workflows: string;
|
|
44
|
-
Workspaces: string;
|
|
45
37
|
};
|
|
46
38
|
declare function setupOpenAPIRoutes<E extends Env = Env>(app: OpenAPIHono<E>): void;
|
|
47
39
|
//#endregion
|
package/dist/openapi.js
CHANGED
|
@@ -7,7 +7,6 @@ const TagToDescription = {
|
|
|
7
7
|
Agents: "Operations for managing agents",
|
|
8
8
|
"Artifact Components": "Operations for managing artifact components",
|
|
9
9
|
Branches: "Operations for managing branches",
|
|
10
|
-
Channels: "Operations for managing Slack channels",
|
|
11
10
|
CLI: "CLI authentication endpoints",
|
|
12
11
|
Chat: "Chat completions endpoints",
|
|
13
12
|
"Context Configs": "Operations for managing context configurations",
|
|
@@ -20,7 +19,6 @@ const TagToDescription = {
|
|
|
20
19
|
"Function Tools": "Operations for managing function tools",
|
|
21
20
|
Functions: "Operations for managing functions",
|
|
22
21
|
GitHub: "GitHub App integration endpoints",
|
|
23
|
-
Invitations: "Operations for managing invitations",
|
|
24
22
|
MCP: "MCP (Model Context Protocol) endpoints",
|
|
25
23
|
"MCP Catalog": "Operations for MCP catalog",
|
|
26
24
|
OAuth: "OAuth authentication endpoints",
|
|
@@ -28,19 +26,13 @@ const TagToDescription = {
|
|
|
28
26
|
"Project Permissions": "Operations for managing project permissions",
|
|
29
27
|
Projects: "Operations for managing projects",
|
|
30
28
|
Refs: "Operations for the resolved ref (branch name, tag name, or commit hash)",
|
|
31
|
-
Resources: "Operations for fetching resources and data",
|
|
32
|
-
Slack: "Slack App integration endpoints",
|
|
33
29
|
SubAgents: "Operations for managing sub agents",
|
|
34
30
|
"Third-Party MCP Servers": "Operations for managing third-party MCP servers",
|
|
35
31
|
Tools: "Operations for managing MCP tools",
|
|
36
32
|
Triggers: "Operations for managing triggers",
|
|
37
|
-
"User Organizations": "Operations for managing user organizations",
|
|
38
33
|
"User Project Memberships": "Operations for managing user project memberships",
|
|
39
|
-
Users: "Operations for managing users",
|
|
40
34
|
Webhooks: "Webhook endpoints",
|
|
41
|
-
|
|
42
|
-
Workflows: "Workflow trigger endpoints",
|
|
43
|
-
Workspaces: "Operations for managing Slack workspaces"
|
|
35
|
+
Workflows: "Workflow trigger endpoints"
|
|
44
36
|
};
|
|
45
37
|
function setupOpenAPIRoutes(app) {
|
|
46
38
|
app.get("/openapi.json", (c) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-api",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260204210021",
|
|
4
4
|
"description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@hono/swagger-ui": "^0.5.1",
|
|
38
38
|
"@hono/zod-openapi": "^1.1.5",
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
40
|
-
"@nangohq/node": "^0.69.20",
|
|
41
40
|
"@opentelemetry/api": "^1.9.0",
|
|
42
41
|
"@opentelemetry/auto-instrumentations-node": "^0.64.1",
|
|
43
42
|
"@opentelemetry/baggage-span-processor": "^0.4.0",
|
|
@@ -48,8 +47,6 @@
|
|
|
48
47
|
"@opentelemetry/sdk-node": "^0.205.0",
|
|
49
48
|
"@opentelemetry/sdk-trace-base": "^2.1.0",
|
|
50
49
|
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
51
|
-
"@slack/bolt": "^4.6.0",
|
|
52
|
-
"@slack/web-api": "^7.13.0",
|
|
53
50
|
"@vercel/functions": "^1.4.0",
|
|
54
51
|
"@vercel/sandbox": "^0.0.24",
|
|
55
52
|
"@workflow/builders": "4.0.1-beta.27",
|
|
@@ -68,12 +65,11 @@
|
|
|
68
65
|
"llm-info": "^1.0.69",
|
|
69
66
|
"openid-client": "^6.8.1",
|
|
70
67
|
"pg": "^8.16.3",
|
|
71
|
-
"slack-block-builder": "^2.8.0",
|
|
72
68
|
"workflow": "4.0.1-beta.33",
|
|
73
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
74
|
-
"@inkeep/agents-manage-mcp": "^0.0.0-dev-
|
|
75
|
-
"@inkeep/agents-mcp": "^0.0.0-dev-
|
|
76
|
-
"@inkeep/agents-work-apps": "^0.0.0-dev-
|
|
69
|
+
"@inkeep/agents-core": "^0.0.0-dev-20260204210021",
|
|
70
|
+
"@inkeep/agents-manage-mcp": "^0.0.0-dev-20260204210021",
|
|
71
|
+
"@inkeep/agents-mcp": "^0.0.0-dev-20260204210021",
|
|
72
|
+
"@inkeep/agents-work-apps": "^0.0.0-dev-20260204210021"
|
|
77
73
|
},
|
|
78
74
|
"peerDependencies": {
|
|
79
75
|
"@hono/zod-openapi": "^1.1.5",
|
|
@@ -83,7 +79,6 @@
|
|
|
83
79
|
"@hono/vite-dev-server": "^0.20.1",
|
|
84
80
|
"@opentelemetry/exporter-trace-otlp-proto": "^0.203.0",
|
|
85
81
|
"@opentelemetry/sdk-metrics": "^2.1.0",
|
|
86
|
-
"@slack/types": "^2.19.0",
|
|
87
82
|
"@types/jmespath": "^0.15.2",
|
|
88
83
|
"@types/node": "^20.11.24",
|
|
89
84
|
"@types/pg": "^8.15.6",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WorkAppsVariables } from "./types.js";
|
|
2
|
-
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
3
|
-
|
|
4
|
-
//#region src/domains/work-apps/index.d.ts
|
|
5
|
-
|
|
6
|
-
declare function createWorkAppsRoutes(): OpenAPIHono<{
|
|
7
|
-
Variables: WorkAppsVariables;
|
|
8
|
-
}, {}, "/">;
|
|
9
|
-
declare const workAppsRoutes: OpenAPIHono<{
|
|
10
|
-
Variables: WorkAppsVariables;
|
|
11
|
-
}, {}, "/">;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { createWorkAppsRoutes, workAppsRoutes };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import { slackRoutes } from "@inkeep/agents-work-apps/slack";
|
|
3
|
-
|
|
4
|
-
//#region src/domains/work-apps/index.ts
|
|
5
|
-
/**
|
|
6
|
-
* Work Apps Domain
|
|
7
|
-
*
|
|
8
|
-
* Modular integration layer for third-party work applications (Slack, GitHub, etc.)
|
|
9
|
-
* Work app implementations are in @inkeep/agents-work-apps package.
|
|
10
|
-
*
|
|
11
|
-
* Each work app is mounted as a sub-route:
|
|
12
|
-
* - /work-apps/slack/* - Slack workspace installation, user linking, commands
|
|
13
|
-
* - /work-apps/github/* - GitHub integration (mounted separately in createApp)
|
|
14
|
-
*/
|
|
15
|
-
function createWorkAppsRoutes() {
|
|
16
|
-
const app = new OpenAPIHono();
|
|
17
|
-
app.route("/slack", slackRoutes);
|
|
18
|
-
return app;
|
|
19
|
-
}
|
|
20
|
-
const workAppsRoutes = createWorkAppsRoutes();
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
export { createWorkAppsRoutes, workAppsRoutes };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|