import type { Hab } from "./habbing.js"; /** * Route-facing policy for one hosted protocol surface. * * This contract is intentionally smaller than any concrete listener config: * transport details such as hostname, bound port, and listen callbacks belong * to the host edge, while protocol composition only needs to know which local * identities and witness semantics are exposed through that edge. */ export interface ProtocolHostPolicy { /** Service habitat used to interpret request-scoped runtime cue semantics. */ serviceHab?: Hab; /** Optional subset of locally hosted prefixes visible through one host. */ hostedPrefixes?: readonly string[]; /** Optional hosted witness habitat enabling witness-specific HTTP routes. */ witnessHab?: Hab; /** Static did:webs artifact root used by `tufa dws resolver --static-files-dir`. */ dwsStaticFilesDir?: string; /** DID path prefix used by static and dynamic did:webs artifact routes. */ dwsDidPath?: string; /** Whether dynamic did:webs artifact generation is enabled for hosted AIDs. */ dwsDynamic?: boolean; /** Use http:// when this host resolves did:webs artifacts, for local workflows. */ dwsInsecureHttp?: boolean; /** * Whether non-`mbx` query POSTs may return immediate CESR reply/replay bodies. * * KERIpy's generic HttpEnd returns 204 for `logs`/`ksn` and relies on mailbox * delivery. Tufa's controller-facing agent surface may opt in for clients * that can consume synchronous query results, while mailbox hosts keep the * KERIpy-compatible default. */ directQueryResponses?: boolean; } //# sourceMappingURL=protocol-host-policy.d.ts.map