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

    Interface SyncPrincipalRequest

    This task begins after authentication: AdCP defines no credential-registration protocol, and the seller’s authorization system (OAuth, API keys, signed requests, workload identity) issues and maps credentials before the first call. Declaratively synchronize selected sections of the authenticated principal's standing configuration with one AdCP agent. The principal is a party: a buyer agent, or an operator-side identity acting through any client. Use this task only to change state; read current state, the configuration version, and destination setup progress through get_principal, and prefer this task over the narrower sync_agent_notification_configs when both are advertised. This task does not register a buyer agent: the stable principal MAY be a delegated human user or an autonomous workload. Identity is resolved from authenticated transport and MUST NOT be accepted from request-body agent URLs, signing key IDs, account IDs, or other self-asserted fields. Each present section is the caller's complete desired set and replaces only that section; omitted sections remain unchanged. All submitted sections apply atomically or none do. This task configures reusable principal resources but grants no advertiser-account authority. Sellers implementing it MUST advertise adcp.principal and protocol.principal.

    interface SyncPrincipalRequest {
        adcp_version?: string;
        adcp_major_version?: number;
        idempotency_key: string;
        expected_configuration_version?: string;
        expected_principal_kind?: PrincipalKind;
        configuration: {
            notification_configs?: AgentNotificationConfig[];
            reporting_destinations?: AgentReportingDestination[];
            declarations?: AgentDeclarations;
            reporting_subscriptions?: {
                subscription_id: string;
                subscription_version: number;
                active: boolean;
                scope: { all_authorized_accounts?: true; account_ids?: string[] };
                exclude_account_ids?: string[];
                operator_domains?: string[];
                selector: {
                    feed_purpose: "pacing" | "analytics" | "billing";
                    period_duration: string;
                    required_finality: ReportingFinality;
                    alignment?:
                        | "utc"
                        | "account_timezone"
                        | "source_timezone"
                        | "billing_cycle";
                    dimensions?: ReportingDimension[];
                    match?: "exact"
                    | "all"
                    | "finest";
                    dimension_systems?: ReportingDimensionSystems;
                    period_timezone?: string;
                };
                reconciliation_mode: ReportingReconciliationMode;
                replace_account_configs?: boolean;
                destination?: { destination_id: string; path_template?: string };
                destination_overrides?: {
                    account_ids?: [string, ...string[]];
                    operator_domains?: [string, ...string[]];
                    destination_id: string;
                    path_template?: string;
                }[];
            }[];
        };
        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 key for at-most-once execution, at least 16 characters; a fresh UUID v4 per logical operation is recommended. Retries MUST reuse the same key with the same body.

    16

    255

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

    expected_configuration_version?: string

    Optional optimistic-concurrency fence returned by a previous successful sync. When present and stale, the seller rejects the whole request without mutation. Compare only for equality.

    1

    255

    expected_principal_kind?: PrincipalKind
    configuration: {
        notification_configs?: AgentNotificationConfig[];
        reporting_destinations?: AgentReportingDestination[];
        declarations?: AgentDeclarations;
        reporting_subscriptions?: {
            subscription_id: string;
            subscription_version: number;
            active: boolean;
            scope: { all_authorized_accounts?: true; account_ids?: string[] };
            exclude_account_ids?: string[];
            operator_domains?: string[];
            selector: {
                feed_purpose: "pacing" | "analytics" | "billing";
                period_duration: string;
                required_finality: ReportingFinality;
                alignment?:
                    | "utc"
                    | "account_timezone"
                    | "source_timezone"
                    | "billing_cycle";
                dimensions?: ReportingDimension[];
                match?: "exact"
                | "all"
                | "finest";
                dimension_systems?: ReportingDimensionSystems;
                period_timezone?: string;
            };
            reconciliation_mode: ReportingReconciliationMode;
            replace_account_configs?: boolean;
            destination?: { destination_id: string; path_template?: string };
            destination_overrides?: {
                account_ids?: [string, ...string[]];
                operator_domains?: [string, ...string[]];
                destination_id: string;
                path_template?: string;
            }[];
        }[];
    }

    Sections to replace atomically. At least one section is required. A present array is complete desired state for that section; [] clears it; omission leaves it unchanged.

    Type Declaration

    • Optionalnotification_configs?: AgentNotificationConfig[]

      Complete desired agent-level subscriber set. The same caller-scoping, proof-of-control, secret handling, and replacement rules as sync_agent_notification_configs apply.

      16

    • Optionalreporting_destinations?: AgentReportingDestination[]

      Complete desired reusable reporting destination set. Omitting a previously present destination_id revokes it, and [] revokes every destination: the seller halts new deliveries to all of its generations within the advertised suspension_interval_seconds and retains it as a retired generation for reporting history. Revocation does not delete caller-owned data already delivered. destination_id values MUST be unique.

      64

    • Optionaldeclarations?: AgentDeclarations
    • Optionalreporting_subscriptions?: {
          subscription_id: string;
          subscription_version: number;
          active: boolean;
          scope: { all_authorized_accounts?: true; account_ids?: string[] };
          exclude_account_ids?: string[];
          operator_domains?: string[];
          selector: {
              feed_purpose: "pacing" | "analytics" | "billing";
              period_duration: string;
              required_finality: ReportingFinality;
              alignment?:
                  | "utc"
                  | "account_timezone"
                  | "source_timezone"
                  | "billing_cycle";
              dimensions?: ReportingDimension[];
              match?: "exact"
              | "all"
              | "finest";
              dimension_systems?: ReportingDimensionSystems;
              period_timezone?: string;
          };
          reconciliation_mode: ReportingReconciliationMode;
          replace_account_configs?: boolean;
          destination?: { destination_id: string; path_template?: string };
          destination_overrides?: {
              account_ids?: [string, ...string[]];
              operator_domains?: [string, ...string[]];
              destination_id: string;
              path_template?: string;
          }[];
      }[]

      Complete desired reporting subscription set (experimental, media_buy.reporting_subscriptions). Omitting a subscription deactivates it; [] deactivates every subscription. subscription_id values MUST be unique.

      32

    dry_run?: boolean

    Validate the proposed replacements and report the would-be action without persisting them, issuing durable identifiers or grants, or sending endpoint proof challenges.

    context?: ContextObject