UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

25 lines (24 loc) 874 B
export interface SipCallError { error: SipCallError.Error_; } export declare namespace SipCallError { interface Error_ { /** Human-readable error message. */ message: string; /** Machine-readable error code. */ code: Error_.Code; /** The SIP response status code from the carrier (e.g. 403, 486, 603). */ sip_status_code: number; /** The SIP response reason phrase from the carrier (e.g. "Network Blocked", "Trunk CPS limit exceeded"). */ sip_status: string; } namespace Error_ { /** Machine-readable error code. */ const Code: { readonly SipCallFailed: "sip_call_failed"; readonly SipAuthFailed: "sip_auth_failed"; readonly InvalidPhoneNumber: "invalid_phone_number"; }; type Code = (typeof Code)[keyof typeof Code]; } }