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

    Interface StreamAccountChangesOptions

    interface StreamAccountChangesOptions {
        account: { account_id: string };
        cursor?: DurableAccountChangeCursor;
        resourceTypes?: readonly string[];
        maxResults?: number;
        taskOptions?: TaskOptions;
        adcpVersion?: string;
        bootstrap?: (context: AccountChangeBootstrapContext) => Promise<void>;
    }
    Index
    account: { account_id: string }

    Type Declaration

    • account_id: string

      Seller-assigned account identifier and the account's identity. For upstream-managed account namespaces, this value comes from list_accounts; for seller-defined namespaces without a list_accounts surface, it is supplied out-of-band. Buyer-declared account sellers MUST return account_id from sync_accounts. Every seller MUST accept account_id for every account the caller can operate and MUST NOT change it for the life of the account. Buyers SHOULD send it on every call after the account opens. Changing an account attribute never changes its account_id.

    Restored from the same seller/principal/account/filter partition.

    resourceTypes?: readonly string[]
    maxResults?: number
    taskOptions?: TaskOptions
    adcpVersion?: string

    Fallback served schema release for custom readers without SDK version metadata.

    bootstrap?: (context: AccountChangeBootstrapContext) => Promise<void>

    Rebuild every authoritative snapshot in scope, including all statuses and pages. A fresh latest cursor is acquired BEFORE this hook. No checkpoint is offered until it succeeds and the subsequent feed page is processed. Without this hook, first use drains earliest; expiry throws a typed error.