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

    Interface ReliableReportingConsumerAccountV1<TCredential>

    interface ReliableReportingConsumerAccountV1<TCredential = unknown> {
        consumerScope: string;
        accountId: string;
        reconciliation: Omit<
            ReconcileReportingOptions<TCredential>,
            DurableOptionKeys,
        >;
        subscriptionExpectations?: (
            input: {
                subscriptionCoverage: readonly ReportingSubscriptionCoverage[];
                now: Date;
                ledgerAsOf: string;
                signal: AbortSignal;
            },
        ) => | readonly ExpectedReportingPeriod[]
        | Promise<readonly ExpectedReportingPeriod[]>;
        subscriptionExpectationGraceMs?: number;
    }

    Type Parameters

    • TCredential = unknown
    Index
    consumerScope: string

    Stable, non-secret seller + authenticated-principal identity.

    accountId: string

    Must match reconciliation.request.account.account_id.

    reconciliation: Omit<ReconcileReportingOptions<TCredential>, DurableOptionKeys>

    Full-snapshot reconciliation inputs. Durable stores are injected by this runtime.

    subscriptionExpectations?: (
        input: {
            subscriptionCoverage: readonly ReportingSubscriptionCoverage[];
            now: Date;
            ledgerAsOf: string;
            signal: AbortSignal;
        },
    ) => | readonly ExpectedReportingPeriod[]
    | Promise<readonly ExpectedReportingPeriod[]>

    Subscription-derived expectations (experimental media_buy.reporting_subscriptions). Before each reconciliation the runtime reads the summary view's subscription_coverage[] and passes it here; the returned periods are reconciled alongside reconciliation.expectedPeriods. Compute them with owedSubscriptionPeriodsV1 and toExpectedReportingPeriodsV1, passing now so the expectations match the snapshot being reconciled.

    Use this only against a seller that materializes subscription obligations in its reporting ledger. Against one that does not, every owed subscription period is reported as a missing expected period.

    subscriptionExpectationGraceMs?: number

    How long after a period ends the seller may take to create its obligation. Periods ending within this of ledger_as_of are not expected yet. Defaults to 0.