import { Hono } from "hono"; import type { IdentityDefinition } from "../identity/index.js"; import type { Channel } from "./channel.js"; import type { Connector, ConnectorRequirements } from "./connector.js"; /** Inputs the managed HTTP app is built from. */ export interface ManagedHttpAppInputs { /** The declared identity, if the project opts into managed identity. */ identity?: IdentityDefinition; /** Discovered connectors; those implementing hooks mount routes / messaging. */ connectors?: Connector[]; /** Discovered channels; Trigger transport mounts under `/v1/channels`. */ channels?: Channel[]; } /** * Build the single managed HTTP app mounted via `langgraph.json` `http.app`. * * It layers onto the built-in LangGraph routes: * - **channels** — each channel mounts a public direct or Trigger-backed * Events route and may register outbound messaging; * - **connectors** — each connector gets a sub-router namespaced under * `/connectors/{name}`; `events` mounts connector Events (e.g. GitHub); * `http` mounts additional secured/public routes. * * Connector routes are **secure by default**: MDA resolves and enforces the * caller's identity before the handler runs, and a route must opt out of * authentication explicitly (`router.public.*`). The managed HTTP surface is * logged at construction so the (especially unauthenticated) routes are never * invisible. */ export declare function buildManagedHttpApp(inputs: ManagedHttpAppInputs): Hono; export type { ConnectorRequirements }; //# sourceMappingURL=identity-http.d.ts.map