UNPKG

@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.33 kB
import { APILinks } from '@vonage/server-client'; import { CallDetail } from '../CallDetail.js'; import { CallEndpointResponse } from './CallEndpointResponse.js'; import '../BasicCallDetail.js'; import '../../enums/CallStatus.js'; import '../CommonCallFields.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'; import '../../enums/CallDirection.js'; /** * 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 };