@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
43 lines (40 loc) • 1.34 kB
text/typescript
import { APILinks } from '@vonage/server-client';
import { CallDetail } from '../CallDetail.mjs';
import { CallEndpointResponse } from './CallEndpointResponse.mjs';
import '../BasicCallDetail.mjs';
import '../../enums/CallStatus.mjs';
import '../CommonCallFields.mjs';
import '../Endpoint/CallEndpoint.mjs';
import '../Endpoint/PhoneEndpoint.mjs';
import '../Endpoint/SIPEndpoint.mjs';
import '../Endpoint/VBCEndpoint.mjs';
import '../Endpoint/WebsocketEndpoint.mjs';
import '../Endpoint/AppEndpoint.mjs';
import '../Endpoint/PSTNEndpoint.mjs';
import '../../enums/CallDirection.mjs';
/**
* Represents the response for retrieving call details.
*
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure response before the client will transform the keys into `camelCase`.
*/
type CallDetailResponse = {
/**
* The UUID of the conversation associated with the call.
*/
conversation_uuid: string;
/**
* The start time of the call.
*/
start_time: string;
/**
* The end time of the call.
*/
end_time: string;
/**
* Information about the recipient (callee) of the call.
*/
to: CallEndpointResponse;
} & Omit<CallDetail, 'conversationUUID' | 'startTime' | 'endTime' | 'to' | 'from'> & APILinks;
export type { CallDetailResponse };