UNPKG

@vonage/voice

Version:

The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.

45 lines (42 loc) 1.3 kB
import { BasicCallDetail } from './BasicCallDetail.js'; import { CommonCallFields } from './CommonCallFields.js'; import { CallDirection } from '../enums/CallDirection.js'; import '../enums/CallStatus.js'; import './Endpoint/CallEndpoint.js'; import './Endpoint/PhoneEndpoint.js'; import './Endpoint/SIPEndpoint.js'; import './Endpoint/VBCEndpoint.js'; import './Endpoint/WebsocketEndpoint.js'; import './Endpoint/AppEndpoint.js'; import './Endpoint/PSTNEndpoint.js'; /** * Represents detailed information about a call, including common call fields, call direction, rate, price, start time, * end time, and network information. */ type CallDetail = CommonCallFields & BasicCallDetail & { /** * The direction of the call, indicating whether it is inbound or outbound. */ direction: CallDirection; /** * The rate associated with the call in a string format. */ rate: string; /** * The price of the call in a string format. */ price: string; /** * The start time of the call in a string format. */ startTime: string; /** * The end time of the call in a string format. */ endTime: string; /** * The network information related to the call. */ network: string; }; export type { CallDetail };