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

    Interface SyncAgentNotificationConfigsRequest

    Register, replace, pause, or clear caller-scoped agent-level webhook subscribers. This task manages notifications whose lifecycle belongs to the seller agent itself rather than to an account or media buy. The initial use case is capabilities.changed, which invalidates cached get_adcp_capabilities responses. Declarative semantics match account-level notification_configs[], but the replacement is scoped to the authenticated caller or registry identity: the submitted array is that caller's complete desired set, keyed by subscriber_id; persisted subscribers for that caller whose subscriber_id does not appear in the submitted array are removed; sending [] clears only that caller's set. Sellers MUST reject this task unless get_adcp_capabilities.adcp.capability_changes.notifications.supported is true.

    interface SyncAgentNotificationConfigsRequest {
        adcp_version?: string;
        adcp_major_version?: number;
        idempotency_key: string;
        notification_configs: AgentNotificationConfig[];
        dry_run?: boolean;
        context?: ContextObject;
        ext?: ExtensionObject;
    }
    Index
    adcp_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.

    adcp_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.

    idempotency_key: string

    Client-generated unique key for at-most-once execution. The task mutates the authenticated caller's persistent agent-level subscriber set and may trigger endpoint proof-of-control challenges, so retries MUST reuse the same key and same payload. Use a fresh UUID v4 for each logical replacement.

    16

    255

    ^[A-Za-z0-9_.:-]{16,255}$

    notification_configs: AgentNotificationConfig[]

    Complete desired set of agent-level notification subscribers for the authenticated caller or registry identity. Omit is invalid; send an empty array to remove every subscriber owned by this caller. Each entry registers a URL, the agent-level event types the subscriber wants, and optional legacy auth. Duplicate subscriber_id values are rejected within this caller-scoped array. If any entry fails validation or activation proof, the seller rejects the replacement and leaves this caller's previous set unchanged.

    16

    dry_run?: boolean

    When true, validate the replacement and report what would be persisted without applying it or sending endpoint proof-of-control challenges.

    context?: ContextObject