@inkeep/agents-api 0.78.2 → 0.78.3

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 (37) hide show
  1. package/dist/.well-known/workflow/v1/manifest.json +60 -60
  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/index.d.ts +2 -2
  10. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  11. package/dist/domains/manage/routes/authLookup.d.ts +2 -2
  12. package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
  13. package/dist/domains/manage/routes/feedback.d.ts +2 -2
  14. package/dist/domains/manage/routes/index.d.ts +2 -2
  15. package/dist/domains/manage/routes/invitations.d.ts +2 -2
  16. package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
  17. package/dist/domains/manage/routes/signoz.d.ts +2 -2
  18. package/dist/domains/manage/routes/users.d.ts +2 -2
  19. package/dist/domains/mcp/routes/mcp.d.ts +2 -2
  20. package/dist/domains/run/agents/relationTools.d.ts +2 -2
  21. package/dist/domains/run/routes/auth.d.ts +2 -2
  22. package/dist/domains/run/tools/distill-conversation-history-tool.d.ts +1 -1
  23. package/dist/domains/run/types/chat.d.ts +13 -13
  24. package/dist/factory.d.ts +3 -3
  25. package/dist/index.d.ts +2 -2
  26. package/dist/middleware/evalsAuth.d.ts +2 -2
  27. package/dist/middleware/manageAuth.d.ts +3 -3
  28. package/dist/middleware/manageBranchScopedDbExemptions.js +40 -0
  29. package/dist/middleware/projectAccess.js +19 -5
  30. package/dist/middleware/projectConfig.d.ts +3 -3
  31. package/dist/middleware/requireEntitlement.d.ts +2 -2
  32. package/dist/middleware/requirePermission.d.ts +2 -2
  33. package/dist/middleware/runAuth.d.ts +4 -4
  34. package/dist/middleware/sessionAuth.d.ts +3 -3
  35. package/dist/middleware/tenantAccess.d.ts +2 -2
  36. package/dist/middleware/tracing.d.ts +3 -3
  37. package/package.json +5 -5
@@ -29,6 +29,33 @@
29
29
  "stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
30
30
  }
31
31
  },
32
+ "src/domains/run/workflow/steps/schedulerSteps.ts": {
33
+ "checkSchedulerCurrentStep": {
34
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
35
+ },
36
+ "dispatchDueTriggersStep": {
37
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
38
+ },
39
+ "msUntilNextMinuteStep": {
40
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
41
+ },
42
+ "registerSchedulerStep": {
43
+ "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
44
+ }
45
+ },
46
+ "src/domains/run/workflow/steps/webhookDeliverySteps.ts": {
47
+ "deliverWebhookStep": {
48
+ "stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//deliverWebhookStep"
49
+ },
50
+ "logStep": {
51
+ "stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//logStep"
52
+ }
53
+ },
54
+ "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/stdlib.js": {
55
+ "fetch": {
56
+ "stepId": "step//workflow@4.2.0-beta.67//fetch"
57
+ }
58
+ },
32
59
  "src/domains/evals/workflow/functions/runDatasetItem.ts": {
33
60
  "executeDatasetItemStep": {
34
61
  "stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeDatasetItemStep"
@@ -55,19 +82,6 @@
55
82
  "stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//recordConversationStep"
56
83
  }
57
84
  },
58
- "src/domains/run/workflow/steps/webhookDeliverySteps.ts": {
59
- "deliverWebhookStep": {
60
- "stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//deliverWebhookStep"
61
- },
62
- "logStep": {
63
- "stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//logStep"
64
- }
65
- },
66
- "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/stdlib.js": {
67
- "fetch": {
68
- "stepId": "step//workflow@4.2.0-beta.67//fetch"
69
- }
70
- },
71
85
  "src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
72
86
  "addConversationIdStep": {
73
87
  "stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//addConversationIdStep"
@@ -106,20 +120,6 @@
106
120
  "stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//resetInvocationToPendingStep"
107
121
  }
108
122
  },
109
- "src/domains/run/workflow/steps/schedulerSteps.ts": {
110
- "checkSchedulerCurrentStep": {
111
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
112
- },
113
- "dispatchDueTriggersStep": {
114
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
115
- },
116
- "msUntilNextMinuteStep": {
117
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
118
- },
119
- "registerSchedulerStep": {
120
- "stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
121
- }
122
- },
123
123
  "src/domains/run/workflow/steps/agentExecutionSteps.ts": {
124
124
  "callLlmStep": {
125
125
  "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//callLlmStep"
@@ -432,39 +432,6 @@
432
432
  }
433
433
  }
434
434
  },
435
- "src/domains/run/workflow/functions/agentExecution.ts": {
436
- "_agentExecutionWorkflow": {
437
- "workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
438
- "graph": {
439
- "nodes": [
440
- {
441
- "id": "start",
442
- "type": "workflowStart",
443
- "data": {
444
- "label": "Start: _agentExecutionWorkflow",
445
- "nodeKind": "workflow_start"
446
- }
447
- },
448
- {
449
- "id": "end",
450
- "type": "workflowEnd",
451
- "data": {
452
- "label": "Return",
453
- "nodeKind": "workflow_end"
454
- }
455
- }
456
- ],
457
- "edges": [
458
- {
459
- "id": "e_start_end",
460
- "source": "start",
461
- "target": "end",
462
- "type": "default"
463
- }
464
- ]
465
- }
466
- }
467
- },
468
435
  "src/domains/run/workflow/functions/schedulerWorkflow.ts": {
469
436
  "_schedulerWorkflow": {
470
437
  "workflowId": "workflow//./src/domains/run/workflow/functions/schedulerWorkflow//_schedulerWorkflow",
@@ -520,6 +487,39 @@
520
487
  ]
521
488
  }
522
489
  }
490
+ },
491
+ "src/domains/run/workflow/functions/agentExecution.ts": {
492
+ "_agentExecutionWorkflow": {
493
+ "workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
494
+ "graph": {
495
+ "nodes": [
496
+ {
497
+ "id": "start",
498
+ "type": "workflowStart",
499
+ "data": {
500
+ "label": "Start: _agentExecutionWorkflow",
501
+ "nodeKind": "workflow_start"
502
+ }
503
+ },
504
+ {
505
+ "id": "end",
506
+ "type": "workflowEnd",
507
+ "data": {
508
+ "label": "Return",
509
+ "nodeKind": "workflow_end"
510
+ }
511
+ }
512
+ ],
513
+ "edges": [
514
+ {
515
+ "id": "e_start_end",
516
+ "source": "start",
517
+ "target": "end",
518
+ "type": "default"
519
+ }
520
+ ]
521
+ }
522
+ }
523
523
  }
524
524
  },
525
525
  "classes": {}
@@ -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_types4 from "hono/types";
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<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
8
+ declare function createAgentsHono(config: AppConfig): Hono<hono_types0.BlankEnv, hono_types0.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_core2 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_core2.AgentsManageDatabaseClient;
5
5
  //#endregion
6
6
  export { manageDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core1 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core6 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data/db/runDbClient.d.ts
4
- declare const runDbClient: _inkeep_agents_core1.AgentsRunDatabaseClient;
4
+ declare const runDbClient: _inkeep_agents_core6.AgentsRunDatabaseClient;
5
5
  //#endregion
6
6
  export { runDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core5 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core3 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/agent.d.ts
4
- declare const agentHandlers: _inkeep_agents_core5.EntityEffectHandlers<"agent">;
4
+ declare const agentHandlers: _inkeep_agents_core3.EntityEffectHandlers<"agent">;
5
5
  //#endregion
6
6
  export { agentHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core6 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core5 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/context-configs.d.ts
4
- declare const contextConfigsHandlers: _inkeep_agents_core6.EntityEffectHandlers<"context_configs">;
4
+ declare const contextConfigsHandlers: _inkeep_agents_core5.EntityEffectHandlers<"context_configs">;
5
5
  //#endregion
6
6
  export { contextConfigsHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core2 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core1 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/sub-agents.d.ts
4
- declare const subAgentsHandlers: _inkeep_agents_core2.EntityEffectHandlers<"sub_agents">;
4
+ declare const subAgentsHandlers: _inkeep_agents_core1.EntityEffectHandlers<"sub_agents">;
5
5
  //#endregion
6
6
  export { subAgentsHandlers };
@@ -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-reconciliation/handlers/tools.d.ts
4
- declare const toolsHandlers: _inkeep_agents_core0.EntityEffectHandlers<"tools">;
4
+ declare const toolsHandlers: _inkeep_agents_core4.EntityEffectHandlers<"tools">;
5
5
  //#endregion
6
6
  export { toolsHandlers };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono14 from "hono";
2
+ import * as hono20 from "hono";
3
3
 
4
4
  //#region src/domains/evals/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono14.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono20.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types12 from "hono/types";
2
+ import * as hono_types5 from "hono/types";
3
3
 
4
4
  //#region src/domains/evals/workflow/routes.d.ts
5
- declare const workflowRoutes: Hono<hono_types12.BlankEnv, hono_types12.BlankSchema, "/">;
5
+ declare const workflowRoutes: Hono<hono_types5.BlankEnv, hono_types5.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_types6 from "hono/types";
3
+ import * as hono_types7 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_types6.BlankSchema, "/">;
8
+ }, hono_types7.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 hono15 from "hono";
2
+ import * as hono16 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/availableAgents.d.ts
5
- declare const app: OpenAPIHono<hono15.Env, {}, "/">;
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 hono20 from "hono";
2
+ import * as hono18 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/feedback.d.ts
5
- declare const app: OpenAPIHono<hono20.Env, {}, "/">;
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 hono16 from "hono";
2
+ import * as hono15 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono16.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono15.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_types7 from "hono/types";
3
+ import * as hono_types8 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_types7.BlankSchema, "/">;
8
+ }, hono_types8.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_types8 from "hono/types";
3
+ import * as hono_types9 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_types8.BlankSchema, "/">;
8
+ }, hono_types9.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { passwordResetLinksRoutes as default };
@@ -1,6 +1,6 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types9 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 class FetchResponseError extends Error {
@@ -22,6 +22,6 @@ declare function queryWithRetry(signoz: SignozConfig, payload: any): Promise<{
22
22
  }>;
23
23
  declare const app: Hono<{
24
24
  Variables: ManageAppVariables;
25
- }, hono_types9.BlankSchema, "/">;
25
+ }, hono_types10.BlankSchema, "/">;
26
26
  //#endregion
27
27
  export { FetchResponseError, app as default, effectiveRetryCap, getMissingKeys, queryReferencesKeys, queryWithRetry, stripSelectFields };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types0 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_types0.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_types0 from "hono/types";
2
+ import * as hono_types12 from "hono/types";
3
3
 
4
4
  //#region src/domains/mcp/routes/mcp.d.ts
5
- declare const app: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types12.BlankEnv, hono_types12.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -2,7 +2,7 @@ import { AgentConfig, AgentRunContext, DelegateRelation } from "./agent-types.js
2
2
  import "./Agent.js";
3
3
  import { InternalRelation } from "../utils/project.js";
4
4
  import { z } from "@hono/zod-openapi";
5
- import * as _inkeep_agents_core3 from "@inkeep/agents-core";
5
+ import * as _inkeep_agents_core0 from "@inkeep/agents-core";
6
6
  import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
7
7
  import * as ai0 from "ai";
8
8
 
@@ -50,7 +50,7 @@ declare function createDelegateToAgentTool({
50
50
  message: string;
51
51
  }, {
52
52
  toolCallId: any;
53
- result: _inkeep_agents_core3.Message | _inkeep_agents_core3.Task;
53
+ result: _inkeep_agents_core0.Message | _inkeep_agents_core0.Task;
54
54
  }>;
55
55
  /**
56
56
  * Parameters for building a transfer relation config
@@ -1,8 +1,8 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono18 from "hono";
2
+ import * as hono19 from "hono";
3
3
 
4
4
  //#region src/domains/run/routes/auth.d.ts
5
5
  declare function getAnonJwtSecret(): Uint8Array;
6
- declare const app: OpenAPIHono<hono18.Env, {}, "/">;
6
+ declare const app: OpenAPIHono<hono19.Env, {}, "/">;
7
7
  //#endregion
8
8
  export { app as default, getAnonJwtSecret };
@@ -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";
32
33
  high: "high";
33
34
  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
- high: "high";
11
- low: "low";
12
10
  auto: "auto";
11
+ low: "low";
12
+ high: "high";
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
- high: "high";
21
- low: "low";
22
20
  auto: "auto";
21
+ low: "low";
22
+ high: "high";
23
23
  }>>;
24
24
  }, z.core.$strip>;
25
25
  }, z.core.$strip>;
@@ -104,10 +104,10 @@ declare const VercelMessageSchema: z.ZodObject<{
104
104
  id: z.ZodOptional<z.ZodString>;
105
105
  role: z.ZodEnum<{
106
106
  function: "function";
107
- tool: "tool";
108
107
  user: "user";
109
108
  system: "system";
110
109
  assistant: "assistant";
110
+ tool: "tool";
111
111
  }>;
112
112
  content: z.ZodAny;
113
113
  parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
@@ -162,9 +162,9 @@ declare const ContentItemSchema: z.ZodUnion<readonly [z.ZodObject<{
162
162
  image_url: z.ZodObject<{
163
163
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
164
164
  detail: z.ZodOptional<z.ZodEnum<{
165
- high: "high";
166
- low: "low";
167
165
  auto: "auto";
166
+ low: "low";
167
+ high: "high";
168
168
  }>>;
169
169
  }, z.core.$strip>;
170
170
  }, z.core.$strip>, z.ZodObject<{
@@ -179,10 +179,10 @@ type ContentItem = z.infer<typeof ContentItemSchema>;
179
179
  declare const MessageSchema: z.ZodObject<{
180
180
  role: z.ZodEnum<{
181
181
  function: "function";
182
- tool: "tool";
183
182
  user: "user";
184
183
  system: "system";
185
184
  assistant: "assistant";
185
+ tool: "tool";
186
186
  }>;
187
187
  content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
188
188
  type: z.ZodLiteral<"text">;
@@ -192,9 +192,9 @@ declare const MessageSchema: z.ZodObject<{
192
192
  image_url: z.ZodObject<{
193
193
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
194
194
  detail: z.ZodOptional<z.ZodEnum<{
195
- high: "high";
196
- low: "low";
197
195
  auto: "auto";
196
+ low: "low";
197
+ high: "high";
198
198
  }>>;
199
199
  }, z.core.$strip>;
200
200
  }, z.core.$strip>, z.ZodObject<{
@@ -212,10 +212,10 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
212
212
  messages: z.ZodArray<z.ZodObject<{
213
213
  role: z.ZodEnum<{
214
214
  function: "function";
215
- tool: "tool";
216
215
  user: "user";
217
216
  system: "system";
218
217
  assistant: "assistant";
218
+ tool: "tool";
219
219
  }>;
220
220
  content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
221
221
  type: z.ZodLiteral<"text">;
@@ -225,9 +225,9 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
225
225
  image_url: z.ZodObject<{
226
226
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
227
227
  detail: z.ZodOptional<z.ZodEnum<{
228
- high: "high";
229
- low: "low";
230
228
  auto: "auto";
229
+ low: "low";
230
+ high: "high";
231
231
  }>>;
232
232
  }, z.core.$strip>;
233
233
  }, z.core.$strip>, z.ZodObject<{
package/dist/factory.d.ts CHANGED
@@ -2,9 +2,9 @@ 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 hono19 from "hono";
5
+ import * as hono5 from "hono";
6
6
  import { EmailServiceConfig, SSOProviderConfig, UserAuthConfig, createAuth } from "@inkeep/agents-core/auth";
7
- import * as hono_types10 from "hono/types";
7
+ import * as hono_types1 from "hono/types";
8
8
 
9
9
  //#region src/factory.d.ts
10
10
  declare function createAgentsAuth(userAuthConfig?: UserAuthConfig, emailService?: EmailServiceConfig): ReturnType<typeof createAuth>;
@@ -14,6 +14,6 @@ declare function createAgentsApp(config?: {
14
14
  auth?: UserAuthConfig;
15
15
  sandboxConfig?: SandboxConfig;
16
16
  emailService?: EmailServiceConfig;
17
- }): hono19.Hono<hono_types10.BlankEnv, hono_types10.BlankSchema, "/">;
17
+ }): hono5.Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
18
18
  //#endregion
19
19
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono };
package/dist/index.d.ts CHANGED
@@ -5,10 +5,10 @@ import { NativeSandboxConfig, SandboxConfig, VercelSandboxConfig } from "./domai
5
5
  import { SSOProviderConfig, UserAuthConfig, createAgentsApp, createAgentsAuth } from "./factory.js";
6
6
  import "./sentry.js";
7
7
  import { Hono } from "hono";
8
- import * as hono_types2 from "hono/types";
8
+ import * as hono_types3 from "hono/types";
9
9
 
10
10
  //#region src/index.d.ts
11
11
  declare const auth: ReturnType<typeof createAgentsAuth>;
12
- declare const app: Hono<hono_types2.BlankEnv, hono_types2.BlankSchema, "/">;
12
+ declare const app: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
13
13
  //#endregion
14
14
  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 hono1 from "hono";
2
+ import * as hono0 from "hono";
3
3
 
4
4
  //#region src/middleware/evalsAuth.d.ts
5
5
 
@@ -7,7 +7,7 @@ import * as hono1 from "hono";
7
7
  * Middleware to authenticate API requests using Bearer token authentication
8
8
  * First checks if token matches INKEEP_AGENTS_EVAL_API_BYPASS_SECRET,
9
9
  */
10
- declare const evalApiKeyAuth: () => hono1.MiddlewareHandler<{
10
+ declare const evalApiKeyAuth: () => hono0.MiddlewareHandler<{
11
11
  Variables: {
12
12
  executionContext: BaseExecutionContext;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono0 from "hono";
2
+ import * as hono1 from "hono";
3
3
  import { createAuth } from "@inkeep/agents-core/auth";
4
4
 
5
5
  //#region src/middleware/manageAuth.d.ts
@@ -18,7 +18,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
18
18
  * the narrow legacy exceptions enumerated in `LEGACY_API_KEY_ALLOWED_ROUTES`. API keys
19
19
  * are otherwise restricted to the run domain only.
20
20
  */
21
- declare const manageBearerAuth: () => hono0.MiddlewareHandler<{
21
+ declare const manageBearerAuth: () => hono1.MiddlewareHandler<{
22
22
  Variables: {
23
23
  executionContext: BaseExecutionContext;
24
24
  userId?: string;
@@ -33,6 +33,6 @@ declare const manageBearerAuth: () => hono0.MiddlewareHandler<{
33
33
  * Uses Bearer token → manage bearer auth (bypass secret, session, Slack JWT, internal service),
34
34
  * otherwise falls back to session auth.
35
35
  */
36
- declare const manageBearerOrSessionAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
36
+ declare const manageBearerOrSessionAuth: () => hono1.MiddlewareHandler<any, string, {}, Response>;
37
37
  //#endregion
38
38
  export { manageBearerAuth, manageBearerOrSessionAuth };
@@ -48,6 +48,46 @@ const MANAGE_BRANCH_SCOPED_DB_EXEMPT_ROUTES = [
48
48
  reason: "Runtime Postgres (runDbClient)",
49
49
  path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/feedback(?:\/|$)/
50
50
  },
51
+ {
52
+ name: "conversations",
53
+ reason: "Runtime Postgres (runDbClient) + blob storage",
54
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/conversations(?:\/|$)/
55
+ },
56
+ {
57
+ name: "api-keys",
58
+ reason: "Runtime Postgres (runDbClient)",
59
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/api-keys(?:\/|$)/
60
+ },
61
+ {
62
+ name: "app-auth-keys",
63
+ reason: "Runtime Postgres (runDbClient)",
64
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/apps\/[^/]+\/auth\/keys(?:\/|$)/
65
+ },
66
+ {
67
+ name: "credential-stores",
68
+ reason: "Credential-store registry + external stores (no db)",
69
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/credential-stores(?:\/|$)/
70
+ },
71
+ {
72
+ name: "project-permissions",
73
+ reason: "SpiceDB + session context only",
74
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/permissions(?:\/|$)/
75
+ },
76
+ {
77
+ name: "mcp-catalog",
78
+ reason: "Static catalog + optional Composio fetch (external)",
79
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/mcp-catalog(?:\/|$)/
80
+ },
81
+ {
82
+ name: "third-party-mcp-servers",
83
+ reason: "Composio external API + OAuth helper",
84
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/third-party-mcp-servers(?:\/|$)/
85
+ },
86
+ {
87
+ name: "evals-evaluation-results",
88
+ reason: "Runtime Postgres (runDbClient)",
89
+ path: /^\/manage\/tenants\/[^/]+\/projects\/[^/]+\/evals\/evaluation-results(?:\/|$)/
90
+ },
51
91
  {
52
92
  name: "tenant-apps",
53
93
  reason: "Runtime Postgres (runDbClient)",
@@ -64,11 +64,25 @@ const requireProjectPermission = (permission = "view") => {
64
64
  });
65
65
  break;
66
66
  }
67
- if (!hasAccess) throw createApiError({
68
- code: "not_found",
69
- message: "Project not found",
70
- instance: c.req.path
71
- });
67
+ if (!hasAccess) {
68
+ if (permission !== "view") {
69
+ if (await canViewProject({
70
+ userId,
71
+ tenantId,
72
+ projectId,
73
+ orgRole: tenantRole
74
+ })) throw createApiError({
75
+ code: "forbidden",
76
+ message: `You do not have permission to ${permission} this project`,
77
+ instance: c.req.path
78
+ });
79
+ }
80
+ throw createApiError({
81
+ code: "not_found",
82
+ message: "Project not found",
83
+ instance: c.req.path
84
+ });
85
+ }
72
86
  await next();
73
87
  } catch (error) {
74
88
  if (error instanceof HTTPException) throw error;
@@ -1,11 +1,11 @@
1
1
  import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
2
- import * as hono2 from "hono";
2
+ import * as hono3 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: hono2.MiddlewareHandler<{
8
+ declare const projectConfigMiddleware: hono3.MiddlewareHandler<{
9
9
  Variables: {
10
10
  executionContext: BaseExecutionContext;
11
11
  resolvedRef: ResolvedRef;
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono2.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) => hono2.MiddlewareHandler<{
18
+ declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono3.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 hono5 from "hono";
2
+ import * as hono6 from "hono";
3
3
 
4
4
  //#region src/middleware/requireEntitlement.d.ts
5
5
  type EntitlementConfig = {
@@ -11,6 +11,6 @@ declare const requireEntitlement: <Env$1 extends {
11
11
  Variables: ManageAppVariables;
12
12
  } = {
13
13
  Variables: ManageAppVariables;
14
- }>(config: EntitlementConfig) => hono5.MiddlewareHandler<Env$1, string, {}, Response>;
14
+ }>(config: EntitlementConfig) => hono6.MiddlewareHandler<Env$1, string, {}, Response>;
15
15
  //#endregion
16
16
  export { requireEntitlement };
@@ -1,5 +1,5 @@
1
1
  import { ManageAppVariables } from "../types/app.js";
2
- import * as hono4 from "hono";
2
+ import * as hono0 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) => hono4.MiddlewareHandler<Env$1, string, {}, Response>;
12
+ }>(permissions: Permission) => hono0.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 hono6 from "hono";
2
+ import * as hono10 from "hono";
3
3
 
4
4
  //#region src/middleware/runAuth.d.ts
5
- declare const runApiKeyAuth: () => hono6.MiddlewareHandler<{
5
+ declare const runApiKeyAuth: () => hono10.MiddlewareHandler<{
6
6
  Variables: {
7
7
  executionContext: BaseExecutionContext;
8
8
  };
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono6.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) => hono6.MiddlewareHandler<{
14
+ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono10.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: () => hono6.MiddlewareHandler<{
23
+ declare const runOptionalAuth: () => hono10.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 hono9 from "hono";
2
+ import * as hono8 from "hono";
3
3
 
4
4
  //#region src/middleware/sessionAuth.d.ts
5
5
 
@@ -8,12 +8,12 @@ import * as hono9 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: () => hono9.MiddlewareHandler<any, string, {}, Response>;
11
+ declare const sessionAuth: () => hono8.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: () => hono9.MiddlewareHandler<{
16
+ declare const sessionContext: () => hono8.MiddlewareHandler<{
17
17
  Variables: AppVariables;
18
18
  }, string, {}, Response>;
19
19
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as hono11 from "hono";
1
+ import * as hono7 from "hono";
2
2
 
3
3
  //#region src/middleware/tenantAccess.d.ts
4
4
 
@@ -12,7 +12,7 @@ import * as hono11 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: () => hono11.MiddlewareHandler<{
15
+ declare const requireTenantAccess: () => hono7.MiddlewareHandler<{
16
16
  Variables: {
17
17
  userId: string;
18
18
  tenantId: string;
@@ -1,7 +1,7 @@
1
- import * as hono12 from "hono";
1
+ import * as hono13 from "hono";
2
2
 
3
3
  //#region src/middleware/tracing.d.ts
4
- declare const otelBaggageMiddleware: () => hono12.MiddlewareHandler<any, string, {}, Response>;
5
- declare const executionBaggageMiddleware: () => hono12.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const otelBaggageMiddleware: () => hono13.MiddlewareHandler<any, string, {}, Response>;
5
+ declare const executionBaggageMiddleware: () => hono13.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.78.2",
3
+ "version": "0.78.3",
4
4
  "description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -71,10 +71,10 @@
71
71
  "llm-info": "^1.0.69",
72
72
  "pg": "^8.16.3",
73
73
  "workflow": "4.2.0-beta.67",
74
- "@inkeep/agents-core": "^0.78.2",
75
- "@inkeep/agents-email": "^0.78.2",
76
- "@inkeep/agents-mcp": "^0.78.2",
77
- "@inkeep/agents-work-apps": "^0.78.2"
74
+ "@inkeep/agents-core": "^0.78.3",
75
+ "@inkeep/agents-email": "^0.78.3",
76
+ "@inkeep/agents-mcp": "^0.78.3",
77
+ "@inkeep/agents-work-apps": "^0.78.3"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@hono/zod-openapi": "^1.1.5",