@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Function syncPrincipalLifecycle

    • Read, guarded-replace, and observe one principal configuration lifecycle.

      Every replacement uses the latest seller configuration version. A structured CONFLICT causes a bounded fresh read and a new logical operation. After an applied response, reusable destinations are polled until all are ready or at least one reaches a terminal action_required/rejected state.

      Parameters

      • client: PrincipalLifecycleClient
      • configuration: {
            notification_configs?: AgentNotificationConfig[];
            reporting_destinations?: AgentReportingDestination[];
            declarations?: AgentDeclarations;
        }
        • 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
      • options: PrincipalLifecycleOptions = {}

      Returns Promise<PrincipalLifecycleResult>