@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Interface SupplyPathAuthorityStore

    Trust-on-first-successful-use storage. Capture the authenticated tenant in the store instance and namespace every pin by that tenant. Neither a read nor a failed fetch may create a pin. Storage failures must reject. Keys are the exact serialized HTTPS URL supplied by the verifier, with no fragment delimiter. Preserve query/path spelling; do not merge distinct URLs. A deadline may abandon an observe promise while its transaction completes. Such a commit still represents a validated manifest; retries must be idempotent.

    interface SupplyPathAuthorityStore {
        check(publisherDomain: string, location: string): Promise<boolean>;
        observe(publisherDomain: string, location: string): Promise<boolean>;
    }

    Implemented by

    Index
    • Read-only precheck: true if absent or equal; false for a different existing pin.

      Parameters

      • publisherDomain: string
      • location: string

      Returns Promise<boolean>

    • After successful manifest validation, atomically insert if absent or compare with the existing pin. Return false on mismatch, including a concurrent change since check(). A successful precheck is never a reservation or authorization.

      Parameters

      • publisherDomain: string
      • location: string

      Returns Promise<boolean>