UNPKG

@vonage/voice

Version:

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

70 lines (67 loc) 2.04 kB
import { Action } from '../../types/NCCO/Action.js'; import '../../types/NCCO/NCCOActions.js'; import '../../types/NCCO/RecordAction.js'; import '../../enums/NCCOActions.js'; import '../../enums/NCCO/RecordingFormat.js'; import '../../types/NCCO/ConversationAction.js'; import '../../types/NCCO/ConnectAction.js'; import '../../types/Endpoint/CallEndpoint.js'; import '../../types/Endpoint/PhoneEndpoint.js'; import '../../types/Endpoint/SIPEndpoint.js'; import '../../types/Endpoint/VBCEndpoint.js'; import '../../types/Endpoint/WebsocketEndpoint.js'; import '../../types/Endpoint/AppEndpoint.js'; import '../../enums/NCCO/ConnectEventType.js'; import '../../enums/NCCO/MachineDetection.js'; import '../../types/NCCO/TalkAction.js'; import '../../enums/TTSLanguages.js'; import '../../types/NCCO/StreamAction.js'; import '../../types/NCCO/InputAction.js'; import '../../types/NCCO/DTMFSettings.js'; import '../../types/NCCO/SpeechSettings.js'; import '../../types/NCCO/NotifyAction.js'; /** * Represents a Nexmo Call Control Object (NCCO) transfer action. */ interface NCCOTransfer { /** * The action type, which is 'transfer'. */ action: string; /** * The destination of the transfer, including the type and NCCO actions. */ destination: { /** * The type of destination, which is 'ncco'. */ type: string; /** * The NCCO actions to be executed at the destination. */ ncco: Action[]; }; } /** * Represents a Nexmo Call Control Object (NCCO) URL transfer action. */ interface URLTransfer { /** * The action type, which is 'transfer'. */ action: string; /** * The destination of the transfer, including the type and URL. */ destination: { /** * The type of destination, which is 'url'. */ type: string; /** * The URL to which the call will be transferred. */ url: string[]; }; } export type { NCCOTransfer, URLTransfer };