@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
47 lines (44 loc) • 1.41 kB
text/typescript
import { BasicCallDetail } from './BasicCallDetail.mjs';
import { CommonCallFields } from './CommonCallFields.mjs';
import { CallDirection } from '../enums/CallDirection.mjs';
import '../enums/CallStatus.mjs';
import './Endpoint/CallEndpoint.mjs';
import './Endpoint/PhoneEndpoint.mjs';
import './Endpoint/SIPEndpoint.mjs';
import './Endpoint/VBCEndpoint.mjs';
import './Endpoint/WebsocketEndpoint.mjs';
import './Endpoint/WebsocketAuthorization.mjs';
import '../enums/Endpoint/WebsocketBitrate.mjs';
import './Endpoint/AppEndpoint.mjs';
import './Endpoint/PSTNEndpoint.mjs';
/**
* 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 };