@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface ReceiptPolicyExperimental

    How reconcile handles consumer_receipt revisions. mode: 'off' (the default) submits nothing. mode: 'verified' needs commit and exactly one of resourceReader (with referenceAllowedOrigins, for the built-in manifest inspector) or inspect.

    Reporting subscriptions (AdCP 3.3).

    interface ReceiptPolicy {
        mode: "verified" | "off";
        commit?: (
            revision: VerifiedRevision,
        ) => CommitOutcome | Promise<CommitOutcome>;
        adjustments?: (adjustment: ReportingAdjustment) => string | Promise<string>;
        resourceReader?: ReportingResourceReader<unknown>;
        referenceAllowedOrigins?: readonly string[];
        inspect?: (
            context: ReportingInspectionContext,
        ) => Promise<ReportingObservation>;
    }
    Index
    mode: "verified" | "off"
    commit?: (revision: VerifiedRevision) => CommitOutcome | Promise<CommitOutcome>

    Runs after the SDK verified the revision. Load the data, then return the outcome.

    adjustments?: (adjustment: ReportingAdjustment) => string | Promise<string>

    Sees each pending adjustment of a revision; only 'defer' is applied.

    resourceReader?: ReportingResourceReader<unknown>

    Reads materialized resources for the built-in manifest inspector.

    referenceAllowedOrigins?: readonly string[]

    Origins the built-in inspector may fetch schemas and contracts from. Required with resourceReader.

    inspect?: (context: ReportingInspectionContext) => Promise<ReportingObservation>

    Your verifier: return what you observed in the materialization.