UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

53 lines • 1.59 kB
import { BosConfigInput } from "../../types.cjs"; //#region src/services/verify/chain.d.ts type ChainDepth = "pointer" | "entries" | "files"; interface VerifyFileMismatch { file: string; expected: string; actual?: string; error?: string; } interface VerifyRemoteResult { remote: string; base: string; manifest: string; manifestOk: boolean; manifestReason?: string; /** attribution leg (ADR 0046 ticket 05) — present only when the walked * config demands attribution (`publish.verification`); a false `ok` is a * hard failure for the chain (adopt/smoke/`bos verify`), independent of * the integrity legs. */ signature?: { ok: boolean; reason?: string; }; /** the immutable version directory the pin resolves into (absent on legacy pins) */ dir?: string; legacy: boolean; filesChecked: number; mismatches: VerifyFileMismatch[]; } interface VerifyReport { remotes: VerifyRemoteResult[]; } interface ChainEntryResult { remote: string; url: string; ok: boolean; reason?: string; } interface ChainVerifyResult { depth: ChainDepth; remotes: VerifyRemoteResult[]; entries: ChainEntryResult[]; ok: boolean; } declare function verifyChain(input: { config: BosConfigInput; depth: ChainDepth; fetchImpl?: typeof fetch; }): Promise<ChainVerifyResult>; declare function formatChainFailures(result: ChainVerifyResult): string; //#endregion export { ChainDepth, ChainEntryResult, ChainVerifyResult, VerifyFileMismatch, VerifyRemoteResult, VerifyReport, formatChainFailures, verifyChain }; //# sourceMappingURL=chain.d.cts.map