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

    Interface AdcpCapabilitiesConfig

    interface AdcpCapabilitiesConfig {
        major_versions?: number[];
        supported_versions?: string[];
        features?: Partial<MediaBuyFeatures>;
        account?: Partial<AccountCapabilities> & {
            agent_onboarding?: AgentOnboardingPosture;
        };
        creative?: Partial<CreativeCapabilities>;
        extensions_supported?: readonly string[];
        ext?: ExtensionObject;
        request_signing?: {
            supported: boolean;
            covers_content_digest?: "required" | "either" | "forbidden";
            required_for?: string[];
            warn_for?: string[];
            supported_for?: string[];
            protocol_methods_supported_for?: string[];
            protocol_methods_warn_for?: string[];
            protocol_methods_required_for?: string[];
            operation_sources?: ("mcp_tools_call" | "a2a_invocation_skill")[];
            profiles?: ("web-bot-auth" | "adcp/request-signing/v1")[];
        } & { profiles?: ("web-bot-auth" | "adcp/request-signing/v1")[] };
        specialisms?: AdCPSpecialism[];
        idempotency?: { replay_ttl_seconds?: number };
        capability_changes?: {
            capabilities_version?: string;
            last_modified?: string;
            cache_ttl_seconds?: number;
            notifications?:
                | CapabilityChangeNotificationsSupported
                | CapabilityChangeNotificationsUnsupported;
        };
        principal?: {
            supported: true;
            sync_task: "sync_principal";
            read_task: "get_principal";
            supported_sections: (
                | "notification_configs"
                | "reporting_destinations"
                | "declarations"
                | "reporting_subscriptions"
            )[];
            max_reporting_destinations?: number;
            reporting_destination_offerings?: {
                pattern: | "file_transfer"
                | "dataset_share"
                | "warehouse_materialization";
                transports: string[];
                formats?: ("jsonl" | "csv" | "parquet" | "avro" | "orc")[];
                access_modes?: string[];
                verification_profiles: ReportingVerificationProfileSet;
            }[];
            suspension_interval_seconds?: number;
            caller_event_types?: NotificationType[];
            optimistic_concurrency: boolean;
        };
        portfolio?: {
            publisher_domains: string[];
            primary_channels?: MediaChannel[];
            primary_countries?: string[];
            description?: string;
            advertising_policies?: string;
        };
        overrides?: AdcpCapabilitiesOverrides;
        accountRequests?: AccountRequestsCapabilityOptions;
        reportingAdcp33OnlyOfferingIds?: readonly string[];
    }
    Index
    major_versions?: number[]
    supported_versions?: string[]

    Release-precision versions this seller supports (AdCP 3.1+ per spec PR adcontextprotocol/adcp#3493). Each entry parses to a major via parseAdcpMajorVersion — the union of these majors and major_versions defines the seller's accepted set for the wire-level adcp_major_version / adcp_version claim a buyer may carry.

    3.0-pinned sellers can ignore this field. 3.1+ sellers should declare here the same release-precision strings they emit in adcp_version on responses, so buyers receiving VERSION_UNSUPPORTED can read the supported set off the error envelope and downgrade their pin.

    features?: Partial<MediaBuyFeatures>
    account?: Partial<AccountCapabilities> & {
        agent_onboarding?: AgentOnboardingPosture;
    }
    creative?: Partial<CreativeCapabilities>
    extensions_supported?: readonly string[]

    Vendor-namespaced extension capability data emitted at the top-level get_adcp_capabilities.ext field. Each populated namespace should also be listed in extensions_supported.

    request_signing?: {
        supported: boolean;
        covers_content_digest?: "required" | "either" | "forbidden";
        required_for?: string[];
        warn_for?: string[];
        supported_for?: string[];
        protocol_methods_supported_for?: string[];
        protocol_methods_warn_for?: string[];
        protocol_methods_required_for?: string[];
        operation_sources?: ("mcp_tools_call" | "a2a_invocation_skill")[];
        profiles?: ("web-bot-auth" | "adcp/request-signing/v1")[];
    } & { profiles?: ("web-bot-auth" | "adcp/request-signing/v1")[] }

    RFC 9421 request-signing verifier capability. See docs/building/implementation/security.mdx#signed-requests-transport-layer. Emitted verbatim in get_adcp_capabilities.request_signing. Omit unless the agent actually verifies incoming signatures — a supported: true claim without a working verifier is graded as FAIL by the conformance runner (see @adcp/sdk/testing/storyboard/request-signing).

    Type Declaration

    • supported: boolean

      Whether this agent verifies RFC 9421 signatures on incoming requests. When true, signatures present on requests are validated per the AdCP request-signing profile. When false or absent, signatures are ignored (requests are bearer-authenticated only).

    • Optionalcovers_content_digest?: "required" | "either" | "forbidden"

      Policy for content-digest coverage in request signatures. In AdCP 3.2 and later, an agent with request_signing.supported=true MUST explicitly emit 'required': every accepted signature on a request with a body covers content-digest, and a body-unbound signature is rejected with request_signature_components_incomplete. Omission retains the legacy effective default of 'either' only for a 3.0/3.1 response; 3.2 responses require this field explicitly. 'either' and 'forbidden' are deprecated legacy 3.0/3.1 postures retained only for version negotiation with pre-3.2 peers; they MUST NOT be advertised as a 3.2 signing posture and are removed in 4.0. A shared endpoint MUST select the verifier policy from trusted endpoint configuration and negotiated capabilities before dispatch, never from an unbound request-body version field.

    • Optionalrequired_for?: string[]

      AdCP protocol operation names (e.g., 'create_media_buy') for which this agent rejects an unsigned request with request_signature_required unless an independently valid configured fallback authenticator succeeds. A transport-specific rename of an operation is not a valid entry (MCP tools and the AdCP A2A profile use the operation name verbatim, so those names coincide with it) — verifiers MUST NOT accept operation names that are not defined by the AdCP protocol spec. Over MCP the verifier matches the tools/call params.name; over A2A it matches the skill of the sole DataPart of the message (SendMessage, SendStreamingMessage, message/send, message/stream, and the HTTP+JSON and gRPC equivalents). The A2A profile uses the AdCP operation name verbatim as skill, so that is the same name space. A request that does not resolve to exactly one operation is rejected with request_body_malformed; see docs/building/by-layer/L1/security.mdx#operation-resolution-over-a2a. JSON-RPC protocol method names like tasks/cancel belong in protocol_methods_required_for, not here. Empty in 3.0 by default; sellers populate selectively during per-counterparty pilots. In 4.0 this list MUST include all spend-committing operations the agent supports (create_media_buy, acquire_*, etc.). Every operation listed MUST also appear in supported_for; see x-adcp-validation.

    • Optionalwarn_for?: string[]

      AdCP protocol operation names for shadow-mode verification. The verifier records missing signatures and well-formed signatures that fail verification or body binding, but MUST NOT establish verified-signer identity from a failed signature; processing continues only when an independent bearer, API-key, or mTLS authenticator succeeds. A partial or malformed Signature / Signature-Input pair always hard-rejects. Used as a bridge between supported_for and required_for. Precedence: required_for > warn_for > supported_for. An operation MUST NOT appear in both warn_for and required_for; see x-adcp-validation.

    • Optionalsupported_for?: string[]

      AdCP protocol operation names for which this agent verifies signatures when present but does not require them. Under the 3.2 profile, a presented signature on a body-bearing request without content-digest coverage rejects even though an unsigned request may use configured fallback authentication. Typically a superset of required_for and warn_for.

    • Optionalprotocol_methods_supported_for?: string[]

      JSON-RPC protocol method names for which this agent verifies signatures when present. Values MUST use exact, case-sensitive equality after JSON decoding: slash-path names such as 'tasks/cancel' and 'tasks/pushNotificationConfig/set' for A2A 0.3, or PascalCase names such as 'CancelTask' and 'CreateTaskPushNotificationConfig' for A2A 1.0. A dual-stack agent lists each supported wire name independently; implementations MUST NOT translate or normalize between protocol versions. The reserved MCP envelope method 'tools/call' is forbidden because its AdCP operation identity is params.name and belongs in supported_for. Under the 3.2 profile, a presented signature on a body-bearing request without content-digest coverage rejects. Disjoint from supported_for, which carries lower_snake_case AdCP operation names only.

    • Optionalprotocol_methods_warn_for?: string[]

      Exact JSON-RPC protocol method names for shadow-mode verification, mirroring warn_for in the AdCP-operation namespace. Wire-name grammar and exact, case-sensitive matching semantics are identical to protocol_methods_supported_for. Missing signatures and well-formed signatures that fail verification or body binding are recorded but MUST NOT establish verified-signer identity; processing continues only when an independent authenticator succeeds. A partial or malformed Signature / Signature-Input pair always hard-rejects. An item MUST NOT appear in both protocol_methods_warn_for and protocol_methods_required_for; see x-adcp-validation.

    • Optionalprotocol_methods_required_for?: string[]

      Exact JSON-RPC protocol method names for which this agent rejects an unsigned request with request_signature_required unless an independently valid configured fallback authenticator succeeds. Wire-name grammar and exact, case-sensitive matching semantics are identical to protocol_methods_supported_for. Separate namespace from required_for: this bucket binds against the JSON-RPC method field, not tools/call params.name. Every listed method MUST also appear in protocol_methods_supported_for; see x-adcp-validation.

    • Optionaloperation_sources?: ("mcp_tools_call" | "a2a_invocation_skill")[]

      Transport bindings from which this verifier resolves the AdCP operation name it matches against supported_for, warn_for, and required_for. 'mcp_tools_call' resolves from the decoded params.name of a JSON-RPC tools/call request. 'a2a_invocation_skill' resolves from the decoded skill of the sole DataPart of an A2A message (SendMessage, SendStreamingMessage, message/send, message/stream, and the HTTP+JSON and gRPC equivalents), and commits the verifier to the fail-closed and skill-to-handler binding rules and the hardening clauses in docs/building/by-layer/L1/security.mdx#operation-resolution-over-a2a for every A2A version and binding the endpoint serves. A verifier MUST list a source only if it implements that source's rules and passes its conformance vectors, including the hardening tier, and a present array MUST list every source the verifier supports. Absent means a verifier that has not declared this: a counterparty MUST NOT infer that required_for is enforced over A2A. The field is self-attested and informational; buyers SHOULD sign any operation listed in required_for regardless of it. It never changes the protocol_methods_* namespace, which matches the JSON-RPC method only.

    • Optionalprofiles?: ("web-bot-auth" | "adcp/request-signing/v1")[]

      Request-signing profiles this agent verifies, named by the RFC 9421 tag value each profile puts in Signature-Input. adcp/request-signing/v1 is the AdCP RFC 9421 profile defined in docs/building/by-layer/L1/security.mdx (Signed Requests (Transport Layer)). web-bot-auth is the Web Bot Auth profile, experimental in 3.3, in docs/building/by-layer/L1/wba-profile.mdx: the verifier resolves the signer's keys from the origin named in the covered Signature-Agent header, and a verified identity the seller has not approved gets no account access. Omission means ["adcp/request-signing/v1"], so every 3.0 to 3.2 capability document keeps its meaning. A buyer signs with a profile the seller lists. The operation lists (required_for, warn_for, supported_for, and the protocol_methods_* lists) apply to every listed profile.

    • Optionalprofiles?: ("web-bot-auth" | "adcp/request-signing/v1")[]
    specialisms?: AdCPSpecialism[]

    Specialism claims the agent supports. Each entry maps to a storyboard bundle under /compliance/{version}/specialisms/{id}/; the AAO compliance runner executes the matching storyboards to verify. Only list specialisms the agent actually implements.

    idempotency?: { replay_ttl_seconds?: number }

    Idempotency capability data is derived exclusively from the active idempotency store. This legacy override is ignored so an unwired or mismatched store can never be advertised to buyers.

    capability_changes?: {
        capabilities_version?: string;
        last_modified?: string;
        cache_ttl_seconds?: number;
        notifications?:
            | CapabilityChangeNotificationsSupported
            | CapabilityChangeNotificationsUnsupported;
    }

    Freshness and notification support for the capability document.

    Type Declaration

    • Optionalcapabilities_version?: string

      Opaque revision token for the full capability document. Required when notifications.supported: true because capabilities.changed webhooks use this as the read-after-notify fence. Sellers SHOULD change this value whenever any material field in get_adcp_capabilities changes. Buyers MUST treat it as opaque and compare it only for equality.

      1

      255

    • Optionallast_modified?: string

      ISO 8601 timestamp when the seller last changed the advertised capability document. This is the scoped replacement for legacy top-level last_updated when buyers need cache validation semantics.

      date-time

    • Optionalcache_ttl_seconds?: number

      Maximum time a buyer or registry SHOULD reuse this capability response before refreshing when it has no fresher invalidation signal. Sellers that emit capabilities.changed webhooks SHOULD still set a bounded TTL so consumers can recover from missed notifications. This is a cache hint, not an authorization lifetime.

      60

      604800

      int

    • Optionalnotifications?:
          | CapabilityChangeNotificationsSupported
          | CapabilityChangeNotificationsUnsupported

      Whether the seller supports agent-level capability-change webhooks. When supported, interested consumers register endpoint subscribers with the declared registration_task; sync_principal is preferred when the broader connection surface is available, while sync_agent_notification_configs remains the specialized compatibility task. Each capabilities.changed fire is a small invalidation payload, and consumers repair by re-reading get_adcp_capabilities.

    principal?: {
        supported: true;
        sync_task: "sync_principal";
        read_task: "get_principal";
        supported_sections: (
            | "notification_configs"
            | "reporting_destinations"
            | "declarations"
            | "reporting_subscriptions"
        )[];
        max_reporting_destinations?: number;
        reporting_destination_offerings?: {
            pattern: | "file_transfer"
            | "dataset_share"
            | "warehouse_materialization";
            transports: string[];
            formats?: ("jsonl" | "csv" | "parquet" | "avro" | "orc")[];
            access_modes?: string[];
            verification_profiles: ReportingVerificationProfileSet;
        }[];
        suspension_interval_seconds?: number;
        caller_event_types?: NotificationType[];
        optimistic_concurrency: boolean;
    }

    The adcp.principal block (experimental protocol.principal): the caller-scoped configuration sections sync_principal accepts. Use the principal runtime's capabilities, which derives supported_sections from what it was configured with. Advertised to callers pinned to 3.2 or later; reporting_subscriptions only to 3.3+.

    Type Declaration

    • supported: true
    • sync_task: "sync_principal"
    • read_task: "get_principal"

      Side-effect-free task returning the caller's current connection configuration and version.

    • supported_sections: (
          | "notification_configs"
          | "reporting_destinations"
          | "declarations"
          | "reporting_subscriptions"
      )[]

      Connection configuration sections this seller accepts. Unsupported sections are rejected rather than silently ignored. reporting_subscriptions (3.3, experimental) requires media_buy.reporting_delivery.subscriptions and the media_buy.reporting_subscriptions feature id.

    • Optionalmax_reporting_destinations?: number

      Maximum caller-scoped destination bindings when reporting_destinations is supported. The task schema has a portable maximum of 64; sellers may advertise a lower operational limit.

      1

      64

      int

    • Optionalreporting_destination_offerings?: {
          pattern: "file_transfer" | "dataset_share" | "warehouse_materialization";
          transports: string[];
          formats?: ("jsonl" | "csv" | "parquet" | "avro" | "orc")[];
          access_modes?: string[];
          verification_profiles: ReportingVerificationProfileSet;
      }[]

      Objective per-pattern delivery offering, so buyers can select a compatible destination without submit-and-reject probing. A destination whose pattern, transport, access mode, format set, or verification-profile set falls outside this offering fails the sync request atomically with UNSUPPORTED_FEATURE; provider-side setup outcomes for in-offering destinations are expressed only through destination states.

      3

    • Optionalsuspension_interval_seconds?: number

      Advertised upper bound, in seconds, between a committed destination suspension or revocation — or a subscriber deactivation — and the halt of new deliveries and fires.

      1

      86400

      int

    • Optionalcaller_event_types?: NotificationType[]

      Notification types this seller can emit against caller-level subscribers, so buyers select from the offering instead of probing by rejection. Account-anchored entries fire with fire-time authorization scoping. When absent, only capabilities.changed is assumed. A caller-level subscriber requesting a type outside this set fails the sync request with UNSUPPORTED_FEATURE.

      64

    • optimistic_concurrency: boolean

      Whether expected_configuration_version is enforced. Sellers SHOULD support it when several services may authenticate as the same stable principal. When false, a request carrying expected_configuration_version is rejected with UNSUPPORTED_FEATURE rather than silently ignored.

    portfolio?: {
        publisher_domains: string[];
        primary_channels?: MediaChannel[];
        primary_countries?: string[];
        description?: string;
        advertising_policies?: string;
    }
    overrides?: AdcpCapabilitiesOverrides

    Per-domain capability blocks deep-merged on top of the framework's auto-derived response. Use when you need to surface fields the top-level AdcpCapabilitiesConfig doesn't model — execution.targeting, audience_targeting, content_standards channels, conversion_tracking identifier types, compliance_testing scenarios, etc.

    Deep-merge semantics:

    • nested objects merge recursively;
    • arrays REPLACE (not concat) so callers stay in control of cardinality;
    • primitive overrides replace the auto-derived value.

    Top-level fields the framework owns (adcp, supported_protocols, specialisms, extensions_supported, ext) are not accepted here — configure them via their dedicated fields on AdcpCapabilitiesConfig.

    accountRequests?: AccountRequestsCapabilityOptions

    Seller-supplied fields of the account.requests block (AdCP 3.3, experimental). The block itself is advertised automatically when accounts.requestAccount is registered: supported: true, request_task: 'request_account', read_task: 'list_accounts', and account.requests in experimental_features. Requires accounts.requestAccount.

    reportingAdcp33OnlyOfferingIds?: readonly string[]

    media_buy.reporting_delivery.offerings ids served to AdCP 3.3 callers only, because their report definition is at contract_version 1.2 (core/reporting-report-definition.json x-adcp-validation.package_dimension). They are dropped from get_adcp_capabilities for callers pinned below 3.3, and reporting_delivery goes too when none is left. createAdcpServerFromPlatform fills this from the installed reporting service.