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

    Function guardSyncPrincipal

    • The raw syncPrincipal guard: before a write that submits reporting_subscriptions or reporting_destinations, read the current principal (one read) and refuse, before sending, a write that would deactivate an active subscription (SUBSCRIPTION_WOULD_DEACTIVATE) or revoke a destination (DESTINATION_WOULD_REVOKE) unless the caller allows it. Dry runs are not guarded.

      Parameters

      Returns Promise<void>