UNPKG

@vonage/voice

Version:

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

44 lines (41 loc) 1.98 kB
import { EarmuffCallParameters } from '../Parameters/EarmuffCallParameters.mjs'; import { HangupCallParameters } from '../Parameters/HangupCallParameters.mjs'; import { MuteCallParameters } from '../Parameters/MuteCallParameters.mjs'; import { TransferCallParameters } from '../Parameters/TransferCallParameters.mjs'; import { UnearmuffCallParameters } from '../Parameters/UnearmuffCallParameters.mjs'; import { UnmuteCallParameters } from '../Parameters/UnmuteCallParameters.mjs'; import 'ts-xor'; import '../NCCO/NCCOActions.mjs'; import '../NCCO/RecordAction.mjs'; import '../../enums/NCCOActions.mjs'; import '../../enums/NCCO/RecordingFormat.mjs'; import '../NCCO/ConversationAction.mjs'; import '../NCCO/ConnectAction.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 '../../enums/NCCO/ConnectEventType.mjs'; import '../../enums/NCCO/MachineDetection.mjs'; import '../NCCO/TalkAction.mjs'; import '../../enums/TTSLanguages.mjs'; import '../NCCO/StreamAction.mjs'; import '../NCCO/InputAction.mjs'; import '../NCCO/DTMFSettings.mjs'; import '../NCCO/SpeechSettings.mjs'; import '../NCCO/NotifyAction.mjs'; import '../NCCO/WaitAction.mjs'; /** * Represents the parameters for modifying a call, including actions like * earmuff, hangup, mute, transfer, unearmuff, and unmute. * * @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 ModifyCallRequestParameters = EarmuffCallParameters | HangupCallParameters | MuteCallParameters | TransferCallParameters | UnearmuffCallParameters | UnmuteCallParameters; export type { ModifyCallRequestParameters };