UNPKG

@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.85 kB
import { CallEndpoint } from '../types/Endpoint/CallEndpoint.mjs'; import { PhoneEndpoint } from '../types/Endpoint/PhoneEndpoint.mjs'; import { NCCOAction } from '../types/NCCO/NCCOActions.mjs'; import { OutboundCall } from './OutboundCall.mjs'; import '../types/Endpoint/SIPEndpoint.mjs'; import '../types/Endpoint/VBCEndpoint.mjs'; import '../types/Endpoint/WebsocketEndpoint.mjs'; import '../types/Endpoint/AppEndpoint.mjs'; import '../types/NCCO/RecordAction.mjs'; import '../enums/NCCOActions.mjs'; import '../enums/NCCO/RecordingFormat.mjs'; import '../types/NCCO/ConversationAction.mjs'; import '../types/NCCO/ConnectAction.mjs'; import '../enums/NCCO/ConnectEventType.mjs'; import '../enums/NCCO/MachineDetection.mjs'; import '../types/NCCO/TalkAction.mjs'; import '../enums/TTSLanguages.mjs'; import '../types/NCCO/StreamAction.mjs'; import '../types/NCCO/InputAction.mjs'; import '../types/NCCO/DTMFSettings.mjs'; import '../types/NCCO/SpeechSettings.mjs'; import '../types/NCCO/NotifyAction.mjs'; import '../enums/HttpMethod.mjs'; import '../enums/MachineDetctionBehavior.mjs'; /** * Represents an outbound call with NCCO (Nexmo Call Control Object). * * @deprecated This class is deprecated. Please update to use the CallWithNCCO type */ declare class OutboundCallWithNCCO extends OutboundCall { /** * The list of NCCO actions. */ ncco: Array<NCCOAction>; /** * Creates a new outbound call with NCCO. * * @param {Array<NCCOAction>} ncco - The NCCO actions for the call. * @param {CallEndpoint} to - The call endpoint to which the outbound call will be made. * @param {PhoneEndpointObject} [from] - The phone endpoint object representing the caller's information. */ constructor(ncco: Array<NCCOAction>, to: CallEndpoint, from?: PhoneEndpoint); } export { OutboundCallWithNCCO };