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

    Type Alias PrincipalLifecycleErrorCode

    PrincipalLifecycleErrorCode:
        | "PRINCIPAL_TASK_INCOMPLETE"
        | "PRINCIPAL_READ_FAILED"
        | "PRINCIPAL_WRITE_FAILED"
        | "PRINCIPAL_CONFLICT_EXHAUSTED"
        | "PRINCIPAL_TRANSPORT_FAILED"
        | "PRINCIPAL_IDENTITY_CHANGED"
        | "PRINCIPAL_INVALID_RESPONSE"
        | "PRINCIPAL_INVALID_OPTIONS"
        | "PRINCIPAL_SETUP_TIMEOUT"
        | "PRINCIPAL_SETUP_INTERRUPTED"
        | "PRINCIPAL_LIFECYCLE_FAILED"

    Codes a PrincipalLifecycleError carries.

    • PRINCIPAL_TASK_INCOMPLETE: a get_principal or sync_principal task did not complete (it failed, or is submitted or deferred; see taskResult).
    • PRINCIPAL_READ_FAILED: get_principal returned a failed result (see protocolErrors).
    • PRINCIPAL_WRITE_FAILED: sync_principal returned a failed result other than CONFLICT.
    • PRINCIPAL_CONFLICT_EXHAUSTED: every guarded replacement attempt met CONFLICT.
    • PRINCIPAL_TRANSPORT_FAILED: the sync_principal call threw; replay attemptedRequest exactly.
    • PRINCIPAL_IDENTITY_CHANGED: the authenticated principal changed, its kind did not match expectedPrincipalKind, or its continuity could not be verified for a retry.
    • PRINCIPAL_INVALID_RESPONSE: the seller answered a write with a dry-run result, or applied nothing.
    • PRINCIPAL_INVALID_OPTIONS: a lifecycle option misbehaved (createIdempotencyKey reused a key).
    • PRINCIPAL_SETUP_TIMEOUT: destination setup did not finish in time (PrincipalLifecycleTimeoutError).
    • PRINCIPAL_SETUP_INTERRUPTED: the configuration disappeared or changed while setup was pending.
    • PRINCIPAL_LIFECYCLE_FAILED: the default for an error constructed without a code.