@inkeep/agents-core 0.0.0-dev-20260219040736 → 0.0.0-dev-20260219045007

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 (30) hide show
  1. package/dist/auth/auth-schema.d.ts +83 -83
  2. package/dist/auth/auth-validation-schemas.d.ts +131 -131
  3. package/dist/client-exports.d.ts +3 -3
  4. package/dist/data-access/manage/agents.d.ts +21 -21
  5. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  6. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +12 -12
  9. package/dist/data-access/manage/skills.d.ts +13 -13
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  11. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  13. package/dist/data-access/manage/subAgents.d.ts +15 -15
  14. package/dist/data-access/manage/tools.d.ts +21 -21
  15. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  16. package/dist/data-access/runtime/conversations.d.ts +20 -20
  17. package/dist/data-access/runtime/messages.d.ts +9 -9
  18. package/dist/data-access/runtime/tasks.d.ts +4 -4
  19. package/dist/middleware/authz-meta.d.ts +15 -0
  20. package/dist/middleware/authz-meta.js +11 -0
  21. package/dist/middleware/create-protected-route.d.ts +30 -0
  22. package/dist/middleware/create-protected-route.js +20 -0
  23. package/dist/middleware/index.d.ts +5 -0
  24. package/dist/middleware/index.js +6 -0
  25. package/dist/middleware/inherited-auth.d.ts +43 -0
  26. package/dist/middleware/inherited-auth.js +50 -0
  27. package/dist/middleware/no-auth.d.ts +6 -0
  28. package/dist/middleware/no-auth.js +11 -0
  29. package/dist/validation/schemas.d.ts +1498 -1498
  30. package/package.json +5 -1
@@ -0,0 +1,50 @@
1
+ import { registerAuthzMeta } from "./authz-meta.js";
2
+ import { createMiddleware } from "hono/factory";
3
+
4
+ //#region src/middleware/inherited-auth.ts
5
+ /**
6
+ * Documentation-only permission marker for routes whose authentication
7
+ * is already enforced by a parent `app.use()` in createApp.ts.
8
+ *
9
+ * This does NOT perform any auth check itself — it only registers
10
+ * x-authz metadata so the OpenAPI spec accurately reflects the
11
+ * auth requirement.
12
+ *
13
+ * Use this when the route lives under a path that already has
14
+ * middleware applied (e.g. `/manage/tenants/*` has `manageApiKeyOrSessionAuth`).
15
+ */
16
+ const inheritedAuth = (meta) => {
17
+ const mw = createMiddleware(async (_c, next) => {
18
+ await next();
19
+ });
20
+ registerAuthzMeta(mw, meta);
21
+ return mw;
22
+ };
23
+ /**
24
+ * Marker for routes under `/manage/tenants/*` whose auth is handled
25
+ * by `manageApiKeyOrSessionAuth()` in createApp.ts.
26
+ *
27
+ * No auth check runs at the route level — this is purely for OpenAPI documentation.
28
+ */
29
+ const inheritedManageTenantAuth = () => inheritedAuth({
30
+ resource: "organization",
31
+ permission: "member",
32
+ description: "Requires organization membership. Auth is enforced by the manageApiKeyOrSessionAuth middleware in createApp.ts."
33
+ });
34
+ /**
35
+ * Marker for routes under `/run/*` whose auth is handled
36
+ * by `runApiKeyAuth()` in createApp.ts.
37
+ *
38
+ * No auth check runs at the route level — this is purely for OpenAPI documentation.
39
+ */
40
+ const inheritedRunApiKeyAuth = () => inheritedAuth({ description: "Requires a valid API key (Bearer token). Auth is enforced by runApiKeyAuth middleware in createApp.ts." });
41
+ /**
42
+ * Marker for routes under `/work-apps/*` whose auth is handled
43
+ * by `workAppsAuth()` in createApp.ts.
44
+ *
45
+ * No auth check runs at the route level — this is purely for OpenAPI documentation.
46
+ */
47
+ const inheritedWorkAppsAuth = () => inheritedAuth({ description: "Requires work-apps authentication (OIDC token or Slack signature). Auth is enforced by workAppsAuth middleware in createApp.ts." });
48
+
49
+ //#endregion
50
+ export { inheritedAuth, inheritedManageTenantAuth, inheritedRunApiKeyAuth, inheritedWorkAppsAuth };
@@ -0,0 +1,6 @@
1
+ import * as hono3 from "hono";
2
+
3
+ //#region src/middleware/no-auth.d.ts
4
+ declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
5
+ //#endregion
6
+ export { noAuth };
@@ -0,0 +1,11 @@
1
+ import { createMiddleware } from "hono/factory";
2
+
3
+ //#region src/middleware/no-auth.ts
4
+ const noAuth = () => {
5
+ return createMiddleware(async (_c, next) => {
6
+ await next();
7
+ });
8
+ };
9
+
10
+ //#endregion
11
+ export { noAuth };