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

    Type Alias ListCollectionsResponse

    ListCollectionsResponse: {
        adcp_version?: string;
        adcp_major_version?: number;
        context_id?: string;
        context?: ContextObject;
        task_id?: TaskID;
        status: TaskStatus;
        message?: TaskMessage;
        timestamp?: string;
        replayed?: boolean;
        adcp_error?: Error;
        push_notification_config?: PushNotificationConfig;
        governance_context?: string;
        payload?: {};
        outcome?: "listed" | "unchanged";
        collections?: ResponseCollection[];
        pagination?: PaginationResponse;
        collections_version?: string;
        cache_scope?: "public" | "account";
        ext?: ExtensionObject;
    } & (
        | {
            outcome: "listed";
            collections: ResponseCollection[];
            pagination?: PaginationResponse;
            collections_version: string;
            cache_scope: "public"
            | "account";
            context?: ContextObject;
            ext?: ExtensionObject;
        }
        | {
            outcome: "unchanged";
            collections_version: string;
            cache_scope: "public"
            | "account";
            context?: ContextObject;
            ext?: ExtensionObject;
        }
    )

    Experimental (media_buy.collection_catalog), added in AdCP 3.3. One page of the selling agent's collection cards, or confirmation that the selected catalog has not changed. Entries are core/response-collection.json copies under the authority rules defined there and for include_collections: adagents.json stays the root of authorization, a copy wins only on images, sample_content, url, description, season, cadence and distribution[].followers, and a copy of an undeclared collection or from an agent adagents.json does not authorize is unverified display data that never feeds carriage verification. For the same key, account and moment, the copy MUST equal the one a product or proposal read with include_collections returns. The response carries no products, pricing, availability or account terms.

    Type Declaration

    • Optionaladcp_version?: string

      Release-precision AdCP version (VERSION.RELEASE, e.g. "3.0", "3.1", "3.1-beta"). On a request: the buyer's release pin — the seller validates against its supported_versions and returns VERSION_UNSUPPORTED on cross-major mismatch, or downshifts to the highest supported release within the same major. On a response: the release the seller actually served — clients SHOULD validate the response against that release's schema, not against their pin. Patches are not negotiated; surface them as build_version on capabilities for operational visibility. When omitted, falls back to adcp_major_version (deprecated) or server default. Buyers SHOULD emit both adcp_version and adcp_major_version through 3.x to remain compatible with sellers that only read the legacy field. NORMALIZATION: SDKs that read full-semver values from bundle metadata (e.g. ComplianceIndex.published_version = "3.1.0-beta.1") MUST normalize to release-precision ("3.1-beta.1") before emitting on the wire — meta-field values are NOT valid wire values.

    • Optionaladcp_major_version?: number

      DEPRECATED in favor of adcp_version (release-precision string). Servers MUST continue to honor this field through 3.x. Removed in 4.0. Original semantics: the AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.

    • Optionalcontext_id?: string

      Transport-managed conversation identifier. On A2A, this maps to the native Message/Task contextId used to associate messages with a conversation; it is not carried inside the AdCP DataPart. On MCP, a request-body context_id, where admitted by the selected request schema, is a compatibility-only field: servers MUST ignore it, callers MUST NOT rely on it for continuity, and it MUST NOT select session state, identity, account, authorization, task continuation, or idempotency scope. MCP continuity, if provided, comes from the transport session. Distinct from context (per-request opaque echo, see below) and from task_id (AdCP operation tracking).

    • Optionalcontext?: ContextObject
    • Optionaltask_id?: TaskID
    • status: TaskStatus
    • Optionalmessage?: TaskMessage
    • Optionaltimestamp?: string

      ISO 8601 timestamp when the response was generated. Useful for debugging, logging, cache validation, and tracking async operation progress.

    • Optionalreplayed?: boolean

      Set to true when this response was returned from the idempotency cache rather than from a fresh execution. Set to false (or omitted) when the request was executed fresh. Buyers use this to distinguish cached replays from new executions — matters for billing reconciliation, audit logs, state-machine routing (cached state-tracking fields are historical snapshots, not current state — re-read via the resource's read endpoint), and any downstream system that assumes exactly-once event semantics. replayed: true appears only when the request actually resolved through the idempotency cache; an absent replayed means false, and a response MAY carry replayed: false. Pure reads may ignore an optional idempotency_key; when a seller voluntarily caches keyed reads, those responses use the same replay indicator and full cache contract.

    • Optionaladcp_error?: Error
    • Optionalpush_notification_config?: PushNotificationConfig
    • Optionalgovernance_context?: string

      Opaque authorization context issued only by an approved check_governance decision. Buyers attach it to governed requests across protocol roles (media buys, rights acquisitions, signal activations, creative services); receiving services persist it and forward it on subsequent execution and lifecycle checks. The context is the authoritative plan binding at service boundaries, so a service MUST NOT require a separate plan_id.

      Governance agents MUST emit a compact JWS per the AdCP JWS profile. Verifiers validate standard authorization claims such as signature, issuer, audience, expiry, and replay protection, but intermediaries MUST NOT interpret embedded governance state for business logic. A conditions or denied verdict never carries an authorization context.

      This is the primary correlation key for audit and reporting across the governance lifecycle.

    • Optionalpayload?: {}

      Conceptual grouping for the task-specific response data defined by individual task response schemas (e.g., get-products-response.json, create-media-buy-response.json). payload is a documentary construct — it is NOT a required wire field, and its on-the-wire shape depends on transport (see Transport serialization below). Task response schemas declare body fields without wrapping them in a payload object; the wire representation places those body fields per transport convention. On MCP the body fields appear as siblings of envelope fields at the root of the tool response; on A2A they appear inside task.artifacts[0].parts[].DataPart; on REST they appear at the root of the JSON body.

    • Optionaloutcome?: "listed" | "unchanged"

      listed when the response carries a page of collections; unchanged when if_collections_version matched the current version of the selected catalog.

    • Optionalcollections?: ResponseCollection[]

      Collections matching the selectors and filters on this page, possibly empty. At most one entry per (publisher_domain, collection_id); if a key appears more than once, that collection is unresolvable from this response and buyers fall back to the publisher's adagents.json. Selector keys that are unknown or not visible to the caller are omitted without a per-key error, so not existing and not being visible look the same; buyers detect omissions by comparing their selectors with the returned entries.

    • Optionalpagination?: PaginationResponse
    • Optionalcollections_version?: string

      Opaque version of the selected catalog, scoped to the canonicalized collections selectors and filters (arrays compared as sets, pagination.cursor excluded), plus account identity when cache_scope is account. It changes whenever any copy the selection would return, or the set of collections it selects, changes. A follower refresh that leaves a count's bounds and precision unchanged is not a change. Independent of feed_version and wholesale_feed_version: a change to one says nothing about the others. The unfiltered read (no collections selectors, no filters) carries the same version token as collection_card.* and collection_catalog.bulk_change webhooks for that cache_scope.

      1

    • Optionalcache_scope?: "public" | "account"

      public when the visible set does not depend on the account, and always when the request carried no account; account when it does. A seller MAY return public to a conditional request whose earlier response was account, meaning the account no longer has a distinct visible set; the buyer drops its account-scoped copy and uses the public one.

    • Optionalext?: ExtensionObject
    • {
          outcome: "listed";
          collections: ResponseCollection[];
          pagination?: PaginationResponse;
          collections_version: string;
          cache_scope: "public" | "account";
          context?: ContextObject;
          ext?: ExtensionObject;
      }
      • outcome: "listed"

        listed when the response carries a page of collections; unchanged when if_collections_version matched the current version of the selected catalog.

      • collections: ResponseCollection[]

        Collections matching the selectors and filters on this page, possibly empty. At most one entry per (publisher_domain, collection_id); if a key appears more than once, that collection is unresolvable from this response and buyers fall back to the publisher's adagents.json. Selector keys that are unknown or not visible to the caller are omitted without a per-key error, so not existing and not being visible look the same; buyers detect omissions by comparing their selectors with the returned entries.

      • Optionalpagination?: PaginationResponse
      • collections_version: string

        Opaque version of the selected catalog, scoped to the canonicalized collections selectors and filters (arrays compared as sets, pagination.cursor excluded), plus account identity when cache_scope is account. It changes whenever any copy the selection would return, or the set of collections it selects, changes. A follower refresh that leaves a count's bounds and precision unchanged is not a change. Independent of feed_version and wholesale_feed_version: a change to one says nothing about the others. The unfiltered read (no collections selectors, no filters) carries the same version token as collection_card.* and collection_catalog.bulk_change webhooks for that cache_scope.

        1

      • cache_scope: "public" | "account"

        public when the visible set does not depend on the account, and always when the request carried no account; account when it does. A seller MAY return public to a conditional request whose earlier response was account, meaning the account no longer has a distinct visible set; the buyer drops its account-scoped copy and uses the public one.

      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject
    • {
          outcome: "unchanged";
          collections_version: string;
          cache_scope: "public" | "account";
          context?: ContextObject;
          ext?: ExtensionObject;
      }
      • outcome: "unchanged"

        listed when the response carries a page of collections; unchanged when if_collections_version matched the current version of the selected catalog.

      • collections_version: string

        Opaque version of the selected catalog, scoped to the canonicalized collections selectors and filters (arrays compared as sets, pagination.cursor excluded), plus account identity when cache_scope is account. It changes whenever any copy the selection would return, or the set of collections it selects, changes. A follower refresh that leaves a count's bounds and precision unchanged is not a change. Independent of feed_version and wholesale_feed_version: a change to one says nothing about the others. The unfiltered read (no collections selectors, no filters) carries the same version token as collection_card.* and collection_catalog.bulk_change webhooks for that cache_scope.

        1

      • cache_scope: "public" | "account"

        public when the visible set does not depend on the account, and always when the request carried no account; account when it does. A seller MAY return public to a conditional request whose earlier response was account, meaning the account no longer has a distinct visible set; the buyer drops its account-scoped copy and uses the public one.

      • Optionalcontext?: ContextObject
      • Optionalext?: ExtensionObject