IFClite TypeScript API
    Preparing search index...

    Interface LayerRegistryStore

    Minimal store surface the merge flow needs; implementations own durability.

    interface LayerRegistryStore {
        getRef(name: string): RefEntry | undefined;
        getReport?(digest: string): Uint8Array<ArrayBufferLike> | undefined;
        getReview(id: string): RegistryReview | undefined;
        hasLayer(layerId: string): boolean;
        listLayers(): string[];
        listRefs(): Record<string, RefEntry>;
        listReviews(): RegistryReview[];
        loadLayer(layerId: string): IfcxFile;
        push(file: IfcxFile): string;
        putReport?(digest: string, bytes: Uint8Array): string;
        putReview(review: RegistryReview): void;
        resolveLayerId?(idOrPrefix: string): string;
        setRef(name: string, entry: RefEntry): void;
        storeLayer(file: IfcxFile): string;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    • Parameters

      • digest: string

      Returns Uint8Array<ArrayBufferLike> | undefined

    • Parameters

      • layerId: string

      Returns boolean

    • Returns string[]

    • Verify the content address (and manifest when present), then store.

      Parameters

      Returns string

    • Check-evidence blobs (08-review.md §8.4): the IDS spec + report files whose blake3 digests a provenance manifest's checks entries carry (specDigest / report). Content-addressed and verified on write. Optional so caller-supplied stores predating evidence keep working — the route answers 501 when the store lacks them.

      Parameters

      • digest: string
      • bytes: Uint8Array

      Returns string

    • Optional id-prefix resolution (CLI convenience); identity if absent.

      Parameters

      • idOrPrefix: string

      Returns string