import { b as EngineInfo } from "./types-CsUMEPQx.js"; import { ChallengeWireErrorCode, ChallengeWireInput } from "@kya-os/checkpoint-shared"; //#region src/engine/render-types.d.ts /** Per-request host settings for the engine renderer. */ interface EngineRenderOptions { /** Serve the body-readable HTTP 200 for Challenge / Instruct (negotiated mode). */ bodyReadable200?: boolean; /** Registered context for a canonical Delegation challenge. */ delegationChallenge?: ChallengeWireInput; /** The host tried to resolve registered context and got none. */ challengeContextRequested?: boolean; } /** The rendered answer. `status: null` passes the request through. */ interface EngineRenderedResponse { status: number | null; /** Ordered `[name, value]` pairs, applied in order. Names may repeat. */ headers: [name: string, value: string][]; body?: unknown; } /** The TS challenge-wire codes plus `invalid-input` for an unparseable input. */ type EngineRenderErrorCode = ChallengeWireErrorCode | 'invalid-input'; /** What every binding returns. */ interface EngineRenderEnvelope { success: boolean; result?: EngineRenderedResponse; error?: { code: EngineRenderErrorCode; message: string; }; } /** One control the engine enforces, and the engine version it arrived in. */ interface EngineCapability { id: string; since: string; } /** The engine's self-description: attribution stamp plus capabilities. */ interface EngineManifest { manifestVersion: number; engine: EngineInfo; capabilities: EngineCapability[]; } /** A typed render failure, with the same codes as `ChallengeWireError`. */ declare class EngineRenderError extends TypeError { readonly code: EngineRenderErrorCode; constructor(code: EngineRenderErrorCode, message: string); } //#endregion //#region src/engine/adapters/status-list-cache.d.ts /** * The engine's status-list verifier, as a resolution host calls it: the host * fetches a credential's signed status list (and its issuer's DID document) * and hands both to `verifyStatusList`, which checks the signature against * the issuer's `assertionMethod` key, the URL, purpose, validity and the * signed `encodedList`. Nothing is decoded or trusted on the host side; a * list the engine rejects fails closed. */ /** The engine's `verifyStatusList` result. */ type StatusListVerification = { ok: true; envelope: 'StatusList2021' | 'BitstringStatusList'; /** The bare list URL: the `ContextSpec.revoked` key. */ url: string; issuer: string; issuedAt: number; /** Unix seconds; the list must not be used at or after this instant. */ expiresAt: number; setIndices: number[]; } | { ok: false; code: string; message: string; }; /** * The engine's `verifyStatusList` export: sync on the node and bundler * builds, async on the edge build (its wasm loads lazily). */ type StatusListVerifier = (requestJson: string) => StatusListVerification | Promise; //#endregion export { EngineRenderEnvelope as a, EngineRenderOptions as c, EngineManifest as i, EngineRenderedResponse as l, StatusListVerifier as n, EngineRenderError as o, EngineCapability as r, EngineRenderErrorCode as s, StatusListVerification as t }; //# sourceMappingURL=status-list-cache-tv7hgtri.d.ts.map