Cotal TypeScript packages
    Preparing search index...

    Interface RegistryReads

    What the answer reads. Every method reads live state; nothing is cached across requests here except what the seam itself caches by an immutable key (a contract artifact by its digest).

    interface RegistryReads {
        artifact(digest: string): Promise<unknown>;
        clusterDigests(
            endpoint: string,
            instanceId: string,
        ): Promise<string[] | undefined>;
        instances(): Promise<{ endpoint: string; instanceId: string }[]>;
        observe(ref: IssuedAuthorityRef): Promise<IssuedEvidence>;
        state(endpoint: string, instanceId: string): Promise<string | null>;
    }
    Index
    • A contract artifact's JSON value by digest, or undefined when the store has none. Throws ContractInvalidError when the store holds bytes for the digest that do not verify.

      Parameters

      • digest: string

      Returns Promise<unknown>

    • The instance's registered cluster closure digests, or undefined when its record is gone.

      Parameters

      • endpoint: string
      • instanceId: string

      Returns Promise<string[] | undefined>

    • Every registered (endpoint, instanceId), from the records store's key list.

      Returns Promise<{ endpoint: string; instanceId: string }[]>

    • The instance's recorded serving state, or null when it has none.

      Parameters

      • endpoint: string
      • instanceId: string

      Returns Promise<string | null>