/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { CallRouteOptionV2 } from './CallRouteOptionV2.js'; import type { CallRoutePathNodeV2 } from './CallRoutePathNodeV2.js'; import type { CallRouteAllowedCallerV2 } from './CallRouteAllowedCallerV2.js'; /** * A call route is a phone number your customers can call to reach whoever is * on call, for an urgent support line or a regulator hotline. * * When a call comes in we work down the route's path, ringing each level's targets * in turn until someone answers, then connect them to the caller. A trailing * voicemail node records a message instead. Every call raises an alert, so calls * can open incidents through an alert route. * * List and edit call routes here. Create and delete them in the dashboard. * @export * @interface CallRouteV2 */ export interface CallRouteV2 { /** * The numbers allowed to call this route. Only enforced when use_caller_allowlist is true. */ allowed_callers: Array; /** * The country this route's number belongs to */ country_code?: string; /** * */ created_at: Date; /** * Where this route is in provisioning. Only an active route answers calls: * * pending: created, and awaiting manual work from us * * pending_regulatory_information: awaiting regulatory compliance information, collected in the dashboard * * pending_number: compliance is settled, and we're provisioning a number * * active: fully provisioned, and answering calls */ current_state: CallRouteV2CurrentStateEnum; /** * The language we speak voice prompts in, via text-to-speech */ custom_language: CallRouteV2CustomLanguageEnum; /** * Unique identifier for this call route */ id: string; /** * Name for this call route */ name: string; /** * The phone-tree menu this route presents. Empty when callers are routed down the route's path. */ options: Array; /** * Who we page when a call comes in. Empty when this route presents a phone-tree menu, in which case each menu option carries its own path. */ path: Array; /** * The number your customers call to reach this route, once one has been provisioned */ phone_number?: string; /** * The type of phone number, which determines the regulatory requirements for provisioning it */ phone_number_type?: CallRouteV2PhoneNumberTypeEnum; /** * Which number responders see when we call them: * * route_number: this route's own number * * oncall_number: an incident.io on-call number */ responder_caller_id: CallRouteV2ResponderCallerIdEnum; /** * */ updated_at: Date; /** * Whether this route only answers calls from its allowed callers */ use_caller_allowlist: boolean; } /** * @export */ export declare const CallRouteV2CurrentStateEnum: { readonly Pending: "pending"; readonly PendingRegulatoryInformation: "pending_regulatory_information"; readonly PendingNumber: "pending_number"; readonly Active: "active"; }; export type CallRouteV2CurrentStateEnum = typeof CallRouteV2CurrentStateEnum[keyof typeof CallRouteV2CurrentStateEnum]; /** * @export */ export declare const CallRouteV2CustomLanguageEnum: { readonly EnUs: "en-US"; readonly EnGb: "en-GB"; readonly FrFr: "fr-FR"; readonly EsEs: "es-ES"; readonly PtPt: "pt-PT"; readonly PtBr: "pt-BR"; readonly DeDe: "de-DE"; readonly NlNl: "nl-NL"; }; export type CallRouteV2CustomLanguageEnum = typeof CallRouteV2CustomLanguageEnum[keyof typeof CallRouteV2CustomLanguageEnum]; /** * @export */ export declare const CallRouteV2PhoneNumberTypeEnum: { readonly TollFree: "toll_free"; readonly Mobile: "mobile"; readonly National: "national"; readonly Local: "local"; }; export type CallRouteV2PhoneNumberTypeEnum = typeof CallRouteV2PhoneNumberTypeEnum[keyof typeof CallRouteV2PhoneNumberTypeEnum]; /** * @export */ export declare const CallRouteV2ResponderCallerIdEnum: { readonly RouteNumber: "route_number"; readonly OncallNumber: "oncall_number"; }; export type CallRouteV2ResponderCallerIdEnum = typeof CallRouteV2ResponderCallerIdEnum[keyof typeof CallRouteV2ResponderCallerIdEnum]; /** * Check if a given object implements the CallRouteV2 interface. */ export declare function instanceOfCallRouteV2(value: object): value is CallRouteV2; export declare function CallRouteV2FromJSON(json: any): CallRouteV2; export declare function CallRouteV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): CallRouteV2; export declare function CallRouteV2ToJSON(json: any): CallRouteV2; export declare function CallRouteV2ToJSONTyped(value?: CallRouteV2 | null, ignoreDiscriminator?: boolean): any;