@inkeep/agents-api 0.0.0-dev-20260331023415 → 0.0.0-dev-20260331031331

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.
Files changed (35) hide show
  1. package/dist/.well-known/workflow/v1/manifest.json +58 -58
  2. package/dist/createApp.d.ts +2 -2
  3. package/dist/data/db/manageDbClient.d.ts +2 -2
  4. package/dist/data/db/runDbClient.d.ts +2 -2
  5. package/dist/data-reconciliation/handlers/agent.d.ts +2 -2
  6. package/dist/data-reconciliation/handlers/context-configs.d.ts +2 -2
  7. package/dist/data-reconciliation/handlers/sub-agents.d.ts +2 -2
  8. package/dist/data-reconciliation/handlers/tools.d.ts +2 -2
  9. package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
  10. package/dist/domains/evals/routes/index.d.ts +2 -2
  11. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  12. package/dist/domains/manage/routes/authLookup.d.ts +2 -2
  13. package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
  14. package/dist/domains/manage/routes/conversations.d.ts +2 -2
  15. package/dist/domains/manage/routes/index.d.ts +2 -2
  16. package/dist/domains/manage/routes/invitations.d.ts +2 -2
  17. package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
  18. package/dist/domains/manage/routes/signoz.d.ts +2 -2
  19. package/dist/domains/manage/routes/users.d.ts +2 -2
  20. package/dist/domains/mcp/routes/mcp.d.ts +2 -2
  21. package/dist/domains/run/routes/auth.js +11 -4
  22. package/dist/domains/run/tools/distill-conversation-history-tool.d.ts +1 -1
  23. package/dist/domains/run/types/chat.d.ts +10 -10
  24. package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +6 -6
  25. package/dist/env.d.ts +3 -3
  26. package/dist/factory.d.ts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/middleware/manageAuth.d.ts +3 -3
  29. package/dist/middleware/projectConfig.d.ts +3 -3
  30. package/dist/middleware/requirePermission.d.ts +2 -2
  31. package/dist/middleware/runAuth.d.ts +4 -4
  32. package/dist/middleware/sessionAuth.d.ts +3 -3
  33. package/dist/middleware/tenantAccess.d.ts +2 -2
  34. package/dist/middleware/tracing.d.ts +3 -3
  35. package/package.json +5 -5
@@ -12,18 +12,9 @@
12
12
  "stepId": "__builtin_response_text"
13
13
  }
14
14
  },
15
- "src/domains/evals/workflow/functions/evaluateConversation.ts": {
16
- "executeEvaluatorStep": {
17
- "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
18
- },
19
- "getConversationStep": {
20
- "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
21
- },
22
- "getEvaluatorsStep": {
23
- "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
24
- },
25
- "logStep": {
26
- "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
15
+ "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_59326db5a7501857789e302437f4195e/node_modules/workflow/dist/stdlib.js": {
16
+ "fetch": {
17
+ "stepId": "step//workflow@4.2.0-beta.67//fetch"
27
18
  }
28
19
  },
29
20
  "src/domains/evals/workflow/functions/runDatasetItem.ts": {
@@ -40,11 +31,6 @@
40
31
  "stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
41
32
  }
42
33
  },
43
- "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_59326db5a7501857789e302437f4195e/node_modules/workflow/dist/stdlib.js": {
44
- "fetch": {
45
- "stepId": "step//workflow@4.2.0-beta.67//fetch"
46
- }
47
- },
48
34
  "src/domains/run/workflow/steps/schedulerSteps.ts": {
49
35
  "checkSchedulerCurrentStep": {
50
36
  "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
@@ -59,6 +45,20 @@
59
45
  "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
60
46
  }
61
47
  },
48
+ "src/domains/evals/workflow/functions/evaluateConversation.ts": {
49
+ "executeEvaluatorStep": {
50
+ "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
51
+ },
52
+ "getConversationStep": {
53
+ "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
54
+ },
55
+ "getEvaluatorsStep": {
56
+ "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
57
+ },
58
+ "logStep": {
59
+ "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
60
+ }
61
+ },
62
62
  "src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
63
63
  "addConversationIdStep": {
64
64
  "stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//addConversationIdStep"
@@ -125,16 +125,16 @@
125
125
  }
126
126
  },
127
127
  "workflows": {
128
- "src/domains/evals/workflow/functions/evaluateConversation.ts": {
129
- "_evaluateConversationWorkflow": {
130
- "workflowId": "workflow//./src/domains/evals/workflow/functions/evaluateConversation//_evaluateConversationWorkflow",
128
+ "src/domains/evals/workflow/functions/runDatasetItem.ts": {
129
+ "_runDatasetItemWorkflow": {
130
+ "workflowId": "workflow//./src/domains/evals/workflow/functions/runDatasetItem//_runDatasetItemWorkflow",
131
131
  "graph": {
132
132
  "nodes": [
133
133
  {
134
134
  "id": "start",
135
135
  "type": "workflowStart",
136
136
  "data": {
137
- "label": "Start: _evaluateConversationWorkflow",
137
+ "label": "Start: _runDatasetItemWorkflow",
138
138
  "nodeKind": "workflow_start"
139
139
  }
140
140
  },
@@ -158,16 +158,16 @@
158
158
  }
159
159
  }
160
160
  },
161
- "src/domains/evals/workflow/functions/runDatasetItem.ts": {
162
- "_runDatasetItemWorkflow": {
163
- "workflowId": "workflow//./src/domains/evals/workflow/functions/runDatasetItem//_runDatasetItemWorkflow",
161
+ "src/domains/evals/workflow/functions/evaluateConversation.ts": {
162
+ "_evaluateConversationWorkflow": {
163
+ "workflowId": "workflow//./src/domains/evals/workflow/functions/evaluateConversation//_evaluateConversationWorkflow",
164
164
  "graph": {
165
165
  "nodes": [
166
166
  {
167
167
  "id": "start",
168
168
  "type": "workflowStart",
169
169
  "data": {
170
- "label": "Start: _runDatasetItemWorkflow",
170
+ "label": "Start: _evaluateConversationWorkflow",
171
171
  "nodeKind": "workflow_start"
172
172
  }
173
173
  },
@@ -267,30 +267,19 @@
267
267
  }
268
268
  }
269
269
  },
270
- "src/domains/run/workflow/functions/schedulerWorkflow.ts": {
271
- "_schedulerWorkflow": {
272
- "workflowId": "workflow//./src/domains/run/workflow/functions/schedulerWorkflow//_schedulerWorkflow",
270
+ "src/domains/run/workflow/functions/agentExecution.ts": {
271
+ "_agentExecutionWorkflow": {
272
+ "workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
273
273
  "graph": {
274
274
  "nodes": [
275
275
  {
276
276
  "id": "start",
277
277
  "type": "workflowStart",
278
278
  "data": {
279
- "label": "Start: _schedulerWorkflow",
279
+ "label": "Start: _agentExecutionWorkflow",
280
280
  "nodeKind": "workflow_start"
281
281
  }
282
282
  },
283
- {
284
- "id": "node_0",
285
- "type": "primitive",
286
- "data": {
287
- "label": "sleep",
288
- "nodeKind": "primitive"
289
- },
290
- "metadata": {
291
- "loopId": "loop_0"
292
- }
293
- },
294
283
  {
295
284
  "id": "end",
296
285
  "type": "workflowEnd",
@@ -302,20 +291,8 @@
302
291
  ],
303
292
  "edges": [
304
293
  {
305
- "id": "e_node_0_back_node_0",
306
- "source": "node_0",
307
- "target": "node_0",
308
- "type": "loop"
309
- },
310
- {
311
- "id": "e_start_node_0",
294
+ "id": "e_start_end",
312
295
  "source": "start",
313
- "target": "node_0",
314
- "type": "default"
315
- },
316
- {
317
- "id": "e_node_0_end",
318
- "source": "node_0",
319
296
  "target": "end",
320
297
  "type": "default"
321
298
  }
@@ -323,19 +300,30 @@
323
300
  }
324
301
  }
325
302
  },
326
- "src/domains/run/workflow/functions/agentExecution.ts": {
327
- "_agentExecutionWorkflow": {
328
- "workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
303
+ "src/domains/run/workflow/functions/schedulerWorkflow.ts": {
304
+ "_schedulerWorkflow": {
305
+ "workflowId": "workflow//./src/domains/run/workflow/functions/schedulerWorkflow//_schedulerWorkflow",
329
306
  "graph": {
330
307
  "nodes": [
331
308
  {
332
309
  "id": "start",
333
310
  "type": "workflowStart",
334
311
  "data": {
335
- "label": "Start: _agentExecutionWorkflow",
312
+ "label": "Start: _schedulerWorkflow",
336
313
  "nodeKind": "workflow_start"
337
314
  }
338
315
  },
316
+ {
317
+ "id": "node_0",
318
+ "type": "primitive",
319
+ "data": {
320
+ "label": "sleep",
321
+ "nodeKind": "primitive"
322
+ },
323
+ "metadata": {
324
+ "loopId": "loop_0"
325
+ }
326
+ },
339
327
  {
340
328
  "id": "end",
341
329
  "type": "workflowEnd",
@@ -347,8 +335,20 @@
347
335
  ],
348
336
  "edges": [
349
337
  {
350
- "id": "e_start_end",
338
+ "id": "e_node_0_back_node_0",
339
+ "source": "node_0",
340
+ "target": "node_0",
341
+ "type": "loop"
342
+ },
343
+ {
344
+ "id": "e_start_node_0",
351
345
  "source": "start",
346
+ "target": "node_0",
347
+ "type": "default"
348
+ },
349
+ {
350
+ "id": "e_node_0_end",
351
+ "source": "node_0",
352
352
  "target": "end",
353
353
  "type": "default"
354
354
  }
@@ -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 hono_types8 from "hono/types";
4
+ import * as hono_types1 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<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
8
+ declare function createAgentsHono(config: AppConfig): Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { createAgentsHono, isWebhookRoute };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core0 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core4 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data/db/manageDbClient.d.ts
4
- declare const manageDbClient: _inkeep_agents_core0.AgentsManageDatabaseClient;
4
+ declare const manageDbClient: _inkeep_agents_core4.AgentsManageDatabaseClient;
5
5
  //#endregion
6
6
  export { manageDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core0 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core1 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data/db/runDbClient.d.ts
4
- declare const runDbClient: _inkeep_agents_core0.AgentsRunDatabaseClient;
4
+ declare const runDbClient: _inkeep_agents_core1.AgentsRunDatabaseClient;
5
5
  //#endregion
6
6
  export { runDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core1 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core0 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/agent.d.ts
4
- declare const agentHandlers: _inkeep_agents_core1.EntityEffectHandlers<"agent">;
4
+ declare const agentHandlers: _inkeep_agents_core0.EntityEffectHandlers<"agent">;
5
5
  //#endregion
6
6
  export { agentHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core2 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core0 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/context-configs.d.ts
4
- declare const contextConfigsHandlers: _inkeep_agents_core2.EntityEffectHandlers<"context_configs">;
4
+ declare const contextConfigsHandlers: _inkeep_agents_core0.EntityEffectHandlers<"context_configs">;
5
5
  //#endregion
6
6
  export { contextConfigsHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core4 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core3 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/sub-agents.d.ts
4
- declare const subAgentsHandlers: _inkeep_agents_core4.EntityEffectHandlers<"sub_agents">;
4
+ declare const subAgentsHandlers: _inkeep_agents_core3.EntityEffectHandlers<"sub_agents">;
5
5
  //#endregion
6
6
  export { subAgentsHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core3 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core2 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/tools.d.ts
4
- declare const toolsHandlers: _inkeep_agents_core3.EntityEffectHandlers<"tools">;
4
+ declare const toolsHandlers: _inkeep_agents_core2.EntityEffectHandlers<"tools">;
5
5
  //#endregion
6
6
  export { toolsHandlers };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono12 from "hono";
2
+ import * as hono17 from "hono";
3
3
 
4
4
  //#region src/domains/evals/routes/datasetTriggers.d.ts
5
- declare const app: OpenAPIHono<hono12.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono17.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 hono11 from "hono";
2
+ import * as hono18 from "hono";
3
3
 
4
4
  //#region src/domains/evals/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono11.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono18.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types1 from "hono/types";
2
+ import * as hono_types4 from "hono/types";
3
3
 
4
4
  //#region src/domains/evals/workflow/routes.d.ts
5
- declare const workflowRoutes: Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
5
+ declare const workflowRoutes: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { workflowRoutes };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types10 from "hono/types";
3
+ import * as hono_types3 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/authLookup.d.ts
6
6
  declare const authLookupRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types10.BlankSchema, "/">;
8
+ }, hono_types3.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { authLookupRoutes as default };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono18 from "hono";
2
+ import * as hono12 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/availableAgents.d.ts
5
- declare const app: OpenAPIHono<hono18.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono12.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 hono17 from "hono";
2
+ import * as hono13 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/conversations.d.ts
5
- declare const app: OpenAPIHono<hono17.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono13.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 hono13 from "hono";
2
+ import * as hono14 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono13.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono14.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types3 from "hono/types";
3
+ import * as hono_types7 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/invitations.d.ts
6
6
  declare const invitationsRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types3.BlankSchema, "/">;
8
+ }, hono_types7.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { invitationsRoutes as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types7 from "hono/types";
3
+ import * as hono_types6 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/passwordResetLinks.d.ts
6
6
  declare const passwordResetLinksRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types7.BlankSchema, "/">;
8
+ }, hono_types6.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { passwordResetLinksRoutes as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types6 from "hono/types";
3
+ import * as hono_types10 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
- }, hono_types6.BlankSchema, "/">;
8
+ }, hono_types10.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { app as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types13 from "hono/types";
3
+ import * as hono_types11 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/users.d.ts
6
6
  declare const usersRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types13.BlankSchema, "/">;
8
+ }, hono_types11.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { usersRoutes as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types4 from "hono/types";
2
+ import * as hono_types8 from "hono/types";
3
3
 
4
4
  //#region src/domains/mcp/routes/mcp.d.ts
5
- declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -118,6 +118,8 @@ app.openapi(createProtectedRoute({
118
118
  });
119
119
  const secret = getAnonJwtSecret();
120
120
  let anonUserId;
121
+ let refreshTenantId;
122
+ let refreshProjectId;
121
123
  const authHeader = c.req.header("Authorization");
122
124
  if (authHeader?.startsWith("Bearer ")) {
123
125
  const bearerToken = authHeader.slice(7);
@@ -126,8 +128,11 @@ app.openapi(createProtectedRoute({
126
128
  issuer: "inkeep",
127
129
  algorithms: ["HS256"]
128
130
  });
129
- if (payload.app === appId && payload.type === "anonymous" && typeof payload.sub === "string" && payload.sub.startsWith("anon_")) anonUserId = payload.sub;
130
- else logger.debug({
131
+ if (payload.app === appId && payload.type === "anonymous" && typeof payload.sub === "string" && payload.sub.startsWith("anon_")) {
132
+ anonUserId = payload.sub;
133
+ refreshTenantId = typeof payload.tid === "string" ? payload.tid : null;
134
+ refreshProjectId = typeof payload.pid === "string" ? payload.pid : null;
135
+ } else logger.debug({
131
136
  appId,
132
137
  tokenApp: payload.app,
133
138
  tokenType: payload.type
@@ -145,13 +150,15 @@ app.openapi(createProtectedRoute({
145
150
  }
146
151
  const isRefresh = !!anonUserId;
147
152
  if (!anonUserId) anonUserId = `anon_${crypto.randomUUID()}`;
153
+ const tenantId = isRefresh ? refreshTenantId ?? appRecord.tenantId : appRecord.tenantId || c.req.header("x-inkeep-tenant-id") || null;
154
+ const projectId = isRefresh ? refreshProjectId ?? appRecord.projectId : appRecord.projectId || c.req.header("x-inkeep-project-id") || null;
148
155
  const lifetimeSeconds = env.INKEEP_ANON_SESSION_LIFETIME_SECONDS;
149
156
  const now = Math.floor(Date.now() / 1e3);
150
157
  const exp = now + lifetimeSeconds;
151
158
  const expiresAt = (/* @__PURE__ */ new Date(exp * 1e3)).toISOString();
152
159
  const token = await new SignJWT({
153
- tid: appRecord.tenantId,
154
- pid: appRecord.projectId,
160
+ tid: tenantId,
161
+ pid: projectId,
155
162
  app: appId,
156
163
  type: "anonymous"
157
164
  }).setProtectedHeader({
@@ -29,9 +29,9 @@ declare const ConversationHistorySummarySchema: z.ZodObject<{
29
29
  tool_call_id: z.ZodString;
30
30
  content_summary: z.ZodString;
31
31
  relevance: z.ZodEnum<{
32
- low: "low";
33
32
  high: "high";
34
33
  medium: "medium";
34
+ low: "low";
35
35
  }>;
36
36
  }, z.core.$strip>>>;
37
37
  conversation_flow: z.ZodObject<{
@@ -7,9 +7,9 @@ declare const InlineDocumentDataSchema: z.ZodUnion<readonly [z.ZodUnion<readonly
7
7
  /** OpenAI-specific image detail level. Has no effect on other providers. */
8
8
  declare const ImageDetailEnum: readonly ["auto", "low", "high"];
9
9
  declare const ImageDetailSchema: z.ZodEnum<{
10
- auto: "auto";
11
- low: "low";
12
10
  high: "high";
11
+ low: "low";
12
+ auto: "auto";
13
13
  }>;
14
14
  type ImageDetail = z.infer<typeof ImageDetailSchema>;
15
15
  declare const ImageContentItemSchema: z.ZodObject<{
@@ -17,9 +17,9 @@ declare const ImageContentItemSchema: z.ZodObject<{
17
17
  image_url: z.ZodObject<{
18
18
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
19
19
  detail: z.ZodOptional<z.ZodEnum<{
20
- auto: "auto";
21
- low: "low";
22
20
  high: "high";
21
+ low: "low";
22
+ auto: "auto";
23
23
  }>>;
24
24
  }, z.core.$strip>;
25
25
  }, z.core.$strip>;
@@ -160,9 +160,9 @@ declare const ContentItemSchema: z.ZodUnion<readonly [z.ZodObject<{
160
160
  image_url: z.ZodObject<{
161
161
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
162
162
  detail: z.ZodOptional<z.ZodEnum<{
163
- auto: "auto";
164
- low: "low";
165
163
  high: "high";
164
+ low: "low";
165
+ auto: "auto";
166
166
  }>>;
167
167
  }, z.core.$strip>;
168
168
  }, z.core.$strip>, z.ZodObject<{
@@ -190,9 +190,9 @@ declare const MessageSchema: z.ZodObject<{
190
190
  image_url: z.ZodObject<{
191
191
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
192
192
  detail: z.ZodOptional<z.ZodEnum<{
193
- auto: "auto";
194
- low: "low";
195
193
  high: "high";
194
+ low: "low";
195
+ auto: "auto";
196
196
  }>>;
197
197
  }, z.core.$strip>;
198
198
  }, z.core.$strip>, z.ZodObject<{
@@ -223,9 +223,9 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
223
223
  image_url: z.ZodObject<{
224
224
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
225
225
  detail: z.ZodOptional<z.ZodEnum<{
226
- auto: "auto";
227
- low: "low";
228
226
  high: "high";
227
+ low: "low";
228
+ auto: "auto";
229
229
  }>>;
230
230
  }, z.core.$strip>;
231
231
  }, z.core.$strip>, z.ZodObject<{
@@ -71,7 +71,7 @@ declare function createInvocationIdempotentStep(params: {
71
71
  projectId: string;
72
72
  tenantId: string;
73
73
  id: string;
74
- status: "completed" | "pending" | "failed" | "running" | "cancelled";
74
+ status: "completed" | "pending" | "running" | "failed" | "cancelled";
75
75
  ref?: {
76
76
  type: "commit" | "tag" | "branch";
77
77
  name: string;
@@ -116,7 +116,7 @@ declare function markRunningStep(params: {
116
116
  projectId: string;
117
117
  tenantId: string;
118
118
  id: string;
119
- status: "completed" | "pending" | "failed" | "running" | "cancelled";
119
+ status: "completed" | "pending" | "running" | "failed" | "cancelled";
120
120
  ref?: {
121
121
  type: "commit" | "tag" | "branch";
122
122
  name: string;
@@ -148,7 +148,7 @@ declare function addConversationIdStep(params: {
148
148
  projectId: string;
149
149
  tenantId: string;
150
150
  id: string;
151
- status: "completed" | "pending" | "failed" | "running" | "cancelled";
151
+ status: "completed" | "pending" | "running" | "failed" | "cancelled";
152
152
  ref?: {
153
153
  type: "commit" | "tag" | "branch";
154
154
  name: string;
@@ -178,7 +178,7 @@ declare function markCompletedStep(params: {
178
178
  projectId: string;
179
179
  tenantId: string;
180
180
  id: string;
181
- status: "completed" | "pending" | "failed" | "running" | "cancelled";
181
+ status: "completed" | "pending" | "running" | "failed" | "cancelled";
182
182
  ref?: {
183
183
  type: "commit" | "tag" | "branch";
184
184
  name: string;
@@ -208,7 +208,7 @@ declare function markFailedStep(params: {
208
208
  projectId: string;
209
209
  tenantId: string;
210
210
  id: string;
211
- status: "completed" | "pending" | "failed" | "running" | "cancelled";
211
+ status: "completed" | "pending" | "running" | "failed" | "cancelled";
212
212
  ref?: {
213
213
  type: "commit" | "tag" | "branch";
214
214
  name: string;
@@ -257,7 +257,7 @@ declare function resetInvocationToPendingStep(params: {
257
257
  projectId: string;
258
258
  tenantId: string;
259
259
  id: string;
260
- status: "completed" | "pending" | "failed" | "running" | "cancelled";
260
+ status: "completed" | "pending" | "running" | "failed" | "cancelled";
261
261
  ref?: {
262
262
  type: "commit" | "tag" | "branch";
263
263
  name: string;
package/dist/env.d.ts CHANGED
@@ -14,11 +14,11 @@ declare const envSchema: z.ZodObject<{
14
14
  pentest: "pentest";
15
15
  }>>;
16
16
  LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
17
- debug: "debug";
18
17
  error: "error";
18
+ trace: "trace";
19
+ debug: "debug";
19
20
  info: "info";
20
21
  warn: "warn";
21
- trace: "trace";
22
22
  }>>;
23
23
  INKEEP_AGENTS_MANAGE_DATABASE_URL: z.ZodString;
24
24
  INKEEP_AGENTS_RUN_DATABASE_URL: z.ZodString;
@@ -79,7 +79,7 @@ declare const envSchema: z.ZodObject<{
79
79
  declare const env: {
80
80
  NODE_ENV: "development" | "production" | "test";
81
81
  ENVIRONMENT: "development" | "production" | "test" | "pentest";
82
- LOG_LEVEL: "debug" | "error" | "info" | "warn" | "trace";
82
+ LOG_LEVEL: "error" | "trace" | "debug" | "info" | "warn";
83
83
  INKEEP_AGENTS_MANAGE_DATABASE_URL: string;
84
84
  INKEEP_AGENTS_RUN_DATABASE_URL: string;
85
85
  INKEEP_AGENTS_API_URL: string;
package/dist/factory.d.ts CHANGED
@@ -2,7 +2,7 @@ import { SandboxConfig } from "./types/app.js";
2
2
  import "./types/index.js";
3
3
  import { createAgentsHono } from "./createApp.js";
4
4
  import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
5
- import * as hono8 from "hono";
5
+ import * as hono0 from "hono";
6
6
  import * as zod0 from "zod";
7
7
  import { EmailServiceConfig, SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
8
8
  import * as hono_types0 from "hono/types";
@@ -479,6 +479,6 @@ declare function createAgentsApp(config?: {
479
479
  auth?: UserAuthConfig;
480
480
  sandboxConfig?: SandboxConfig;
481
481
  emailService?: EmailServiceConfig;
482
- }): hono8.Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
482
+ }): hono0.Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
483
483
  //#endregion
484
484
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono };
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js
6
6
  import "./sentry.js";
7
7
  import { Hono } from "hono";
8
8
  import * as zod32 from "zod";
9
- import * as hono_types11 from "hono/types";
9
+ import * as hono_types12 from "hono/types";
10
10
  import * as better_auth43 from "better-auth";
11
11
  import * as better_auth_plugins4 from "better-auth/plugins";
12
12
 
@@ -474,6 +474,6 @@ declare const auth: better_auth43.Auth<{
474
474
  }>;
475
475
  }];
476
476
  }>;
477
- declare const app: Hono<hono_types11.BlankEnv, hono_types11.BlankSchema, "/">;
477
+ declare const app: Hono<hono_types12.BlankEnv, hono_types12.BlankSchema, "/">;
478
478
  //#endregion
479
479
  export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, app as default };
@@ -1,5 +1,5 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono0 from "hono";
2
+ import * as hono15 from "hono";
3
3
  import { createAuth } from "@inkeep/agents-core/auth";
4
4
 
5
5
  //#region src/middleware/manageAuth.d.ts
@@ -16,7 +16,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
16
16
  * EXCEPT for the legacy exception on GET /manage/tenants/:t/projects/:p/conversations/:id
17
17
  * (see isLegacyApiKeyAllowedRoute). API keys are otherwise restricted to the run domain only.
18
18
  */
19
- declare const manageBearerAuth: () => hono0.MiddlewareHandler<{
19
+ declare const manageBearerAuth: () => hono15.MiddlewareHandler<{
20
20
  Variables: {
21
21
  executionContext: BaseExecutionContext;
22
22
  userId?: string;
@@ -30,6 +30,6 @@ declare const manageBearerAuth: () => hono0.MiddlewareHandler<{
30
30
  * Uses Bearer token → manage bearer auth (bypass secret, session, Slack JWT, internal service),
31
31
  * otherwise falls back to session auth.
32
32
  */
33
- declare const manageBearerOrSessionAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
33
+ declare const manageBearerOrSessionAuth: () => hono15.MiddlewareHandler<any, string, {}, Response>;
34
34
  //#endregion
35
35
  export { manageBearerAuth, manageBearerOrSessionAuth };
@@ -1,11 +1,11 @@
1
1
  import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
2
- import * as hono9 from "hono";
2
+ import * as hono1 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: hono9.MiddlewareHandler<{
8
+ declare const projectConfigMiddleware: hono1.MiddlewareHandler<{
9
9
  Variables: {
10
10
  executionContext: BaseExecutionContext;
11
11
  resolvedRef: ResolvedRef;
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono9.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) => hono9.MiddlewareHandler<{
18
+ declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono1.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 hono7 from "hono";
2
+ import * as hono3 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) => hono7.MiddlewareHandler<Env$1, string, {}, Response>;
12
+ }>(permissions: Permission) => hono3.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 hono14 from "hono";
2
+ import * as hono4 from "hono";
3
3
 
4
4
  //#region src/middleware/runAuth.d.ts
5
- declare const runApiKeyAuth: () => hono14.MiddlewareHandler<{
5
+ declare const runApiKeyAuth: () => hono4.MiddlewareHandler<{
6
6
  Variables: {
7
7
  executionContext: BaseExecutionContext;
8
8
  };
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono14.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) => hono14.MiddlewareHandler<{
14
+ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono4.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: () => hono14.MiddlewareHandler<{
23
+ declare const runOptionalAuth: () => hono4.MiddlewareHandler<{
24
24
  Variables: {
25
25
  executionContext?: BaseExecutionContext;
26
26
  };
@@ -1,5 +1,5 @@
1
1
  import { AppVariables } from "../types/app.js";
2
- import * as hono2 from "hono";
2
+ import * as hono7 from "hono";
3
3
 
4
4
  //#region src/middleware/sessionAuth.d.ts
5
5
 
@@ -8,12 +8,12 @@ import * as hono2 from "hono";
8
8
  * Requires that a user has already been authenticated via Better Auth session.
9
9
  * Used primarily for manage routes that require an active user session.
10
10
  */
11
- declare const sessionAuth: () => hono2.MiddlewareHandler<any, string, {}, Response>;
11
+ declare const sessionAuth: () => hono7.MiddlewareHandler<any, string, {}, Response>;
12
12
  /**
13
13
  * Global session middleware - sets user and session in context for all routes
14
14
  * Used for all routes that require an active user session.
15
15
  */
16
- declare const sessionContext: () => hono2.MiddlewareHandler<{
16
+ declare const sessionContext: () => hono7.MiddlewareHandler<{
17
17
  Variables: AppVariables;
18
18
  }, string, {}, Response>;
19
19
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as hono4 from "hono";
1
+ import * as hono9 from "hono";
2
2
 
3
3
  //#region src/middleware/tenantAccess.d.ts
4
4
 
@@ -12,7 +12,7 @@ import * as hono4 from "hono";
12
12
  * - API key user: Access only to the tenant associated with the API key
13
13
  * - Session user: Access based on organization membership
14
14
  */
15
- declare const requireTenantAccess: () => hono4.MiddlewareHandler<{
15
+ declare const requireTenantAccess: () => hono9.MiddlewareHandler<{
16
16
  Variables: {
17
17
  userId: string;
18
18
  tenantId: string;
@@ -1,7 +1,7 @@
1
- import * as hono5 from "hono";
1
+ import * as hono10 from "hono";
2
2
 
3
3
  //#region src/middleware/tracing.d.ts
4
- declare const otelBaggageMiddleware: () => hono5.MiddlewareHandler<any, string, {}, Response>;
5
- declare const executionBaggageMiddleware: () => hono5.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const otelBaggageMiddleware: () => hono10.MiddlewareHandler<any, string, {}, Response>;
5
+ declare const executionBaggageMiddleware: () => hono10.MiddlewareHandler<any, string, {}, Response>;
6
6
  //#endregion
7
7
  export { executionBaggageMiddleware, otelBaggageMiddleware };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-api",
3
- "version": "0.0.0-dev-20260331023415",
3
+ "version": "0.0.0-dev-20260331031331",
4
4
  "description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -73,10 +73,10 @@
73
73
  "pg": "^8.16.3",
74
74
  "undici": "^7.22.0",
75
75
  "workflow": "4.2.0-beta.67",
76
- "@inkeep/agents-core": "^0.0.0-dev-20260331023415",
77
- "@inkeep/agents-email": "^0.0.0-dev-20260331023415",
78
- "@inkeep/agents-mcp": "^0.0.0-dev-20260331023415",
79
- "@inkeep/agents-work-apps": "^0.0.0-dev-20260331023415"
76
+ "@inkeep/agents-core": "^0.0.0-dev-20260331031331",
77
+ "@inkeep/agents-email": "^0.0.0-dev-20260331031331",
78
+ "@inkeep/agents-mcp": "^0.0.0-dev-20260331031331",
79
+ "@inkeep/agents-work-apps": "^0.0.0-dev-20260331031331"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@hono/zod-openapi": "^1.1.5",