// This file was auto-generated by Fern from our API Definition.

import type * as Vapi from "../index.js";

/**
 * This is the fallback destination an inbound call will be transferred to if:
 * 1. `assistantId` is not set
 * 2. `squadId` is not set
 * 3. and, `assistant-request` message to the `serverUrl` fails
 *
 * If this is not set and above conditions are met, the inbound call is hung up with an error message.
 */
export type UpdateVonagePhoneNumberDtoFallbackDestination =
    | Vapi.UpdateVonagePhoneNumberDtoFallbackDestination.Number
    | Vapi.UpdateVonagePhoneNumberDtoFallbackDestination.Sip;

export namespace UpdateVonagePhoneNumberDtoFallbackDestination {
    export interface Number extends Vapi.TransferDestinationNumber {
        type: "number";
    }

    export interface Sip extends Vapi.TransferDestinationSip {
        type: "sip";
    }
}
