/** * @example * { * provider: "byo", * phone_number: "+19876543210", * label: "Sales Hotline", * inbound: true, * outbound: true, * inbound_config: { * allowed_addresses: ["112.126.15.64/27"] * }, * outbound_config: { * address: "xxx:xxx@sip.example.com", * transport: "tls" * } * } * * @example * { * provider: "byo", * phone_number: "+19876543210", * label: "Sales Hotline", * inbound: true, * outbound: true, * inbound_config: { * allowed_addresses: ["112.126.15.64/27"] * }, * outbound_config: { * address: "xxx:xxx@sip.example.com", * transport: "tls" * } * } */ export interface AddPhoneNumbersRequest { /** * Number provider: * - `byo`: BYO (Bring Your Own) * - `twilio`: Twilio */ provider: AddPhoneNumbersRequest.Provider; /** Telephone number in E.164 format. */ phone_number: string; /** A label used to identify the number. */ label: string; /** Whether the number supports inbound calls. */ inbound?: boolean; /** Whether the number supports outbound calls. */ outbound?: boolean; /** SIP inbound call configuration. */ inbound_config: AddPhoneNumbersRequest.InboundConfig; /** SIP outbound call configuration. */ outbound_config: AddPhoneNumbersRequest.OutboundConfig; } export declare namespace AddPhoneNumbersRequest { /** * Number provider: * - `byo`: BYO (Bring Your Own) * - `twilio`: Twilio */ const Provider: { readonly Byo: "byo"; readonly Twilio: "twilio"; }; type Provider = (typeof Provider)[keyof typeof Provider]; /** * SIP inbound call configuration. */ interface InboundConfig { /** List of allowed IP addresses. For example `112.126.15.64/27` */ allowed_addresses?: string[]; } /** * SIP outbound call configuration. */ interface OutboundConfig { /** SIP address. For example `xxx:xxx@sip.example.com` */ address?: string; /** Transport protocol. For example `tls` */ transport?: string; /** Number prefix. For example `6036` */ prefix?: string; } }