@getdial/sdk - v0.38.0
    Preparing search index...

    Type Alias NumberStatusChangedData

    A change to one of a phone number's capabilities. Wait on this instead of polling a number until it is usable.

    Payload version 2. Version 1 was flat (setupStatus / setupError / a capabilities string array) and could report only the line's own setup — it had nowhere to put a WhatsApp failure or its cooldown.

    type NumberStatusChangedData = {
        capabilities: CapabilityStates;
        changed: NumberCapability[];
        number: string;
        phoneNumberId: string;
        previousStatus: NumberSettlementStatus | null;
        status: NumberSettlementStatus;
    }
    Index
    capabilities: CapabilityStates

    Every capability the number has, with its current status — a full snapshot.

    changed: NumberCapability[]

    The capabilities that moved, in no particular order. Empty on a number's first event. An array because two can settle together: a WhatsApp track reaching a terminal state is what releases a caller-ID-verified line, so whatsapp and call move in one instant.

    number: string

    E.164.

    phoneNumberId: string
    previousStatus: NumberSettlementStatus | null

    The settlement status the number left; null on its first event.

    The fold over capabilities: unsettled while any is still working.