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

    Type Alias ExpectedReportingMembership

    ExpectedReportingMembership:
        | { kind: "media_buy_ids" }
        | { kind: "all_media_buys"; requiredMediaBuyIds?: string[] }

    Which media buys an expected period covers, and so how an obligation's media_buy_ids are matched.

    • media_buy_ids (the default when membership is omitted): the buyer registered an exact buy set (scope: { media_buy_ids }), so the obligation must carry exactly mediaBuyIds, and its coverage must equal the expected coverage.
    • all_media_buys: the buyer registered scope: { all_media_buys: true }, so the seller freezes the set at period.end. The buyer cannot pin it in advance, so the period matches on its identity alone and pinning mediaBuyIds or coverage is a configuration error. To be definitive the obligation has to carry valid coverage evidence whose partition equals its own media_buy_ids, scope_resolved_at and coverage.evaluated_at at the instant period.end, and meet coverageRequirement; a failure is a blocking reason on the matched obligation, never a missing period. [] is an explicitly evaluated zero-buy period. Set requiredMediaBuyIds only to buys that unambiguously belong (seller-confirmed before period.start, flight covering the whole period). One the seller did not freeze is a blocking per-buy issue in ObligationReconciliation.issues (REPORTING_SCOPE_MEMBER_MISSING): the obligation still matches for the buys it lists, but the result is not definitive and the omitted buy must never be treated as reported.

    Type Declaration

    • { kind: "media_buy_ids" }
    • { kind: "all_media_buys"; requiredMediaBuyIds?: string[] }
      • kind: "all_media_buys"
      • OptionalrequiredMediaBuyIds?: string[]

        Buys that unambiguously belong to the period; each one the seller omits is a blocking issue.