@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
36 lines (33 loc) • 1.09 kB
TypeScript
import { NCCOActions } from '../../enums/NCCOActions.js';
import { WaitAction } from '../../types/NCCO/WaitAction.js';
import { Serializable } from '../../interfaces/NCCO/Serializable.js';
/**
* Represents a Wait action in a Nexmo Call Control Object (NCCO).
*
* This action pauses execution of the running NCCO for a specified number of
* seconds before continuing with the next action.
*/
declare class Wait implements WaitAction, Serializable {
/**
* The action type for this NCCO action.
*/
action: NCCOActions.WAIT;
/**
* The duration in seconds to pause execution (optional).
*/
timeout?: number;
/**
* Creates a new Wait action.
*
* @param {number} [timeout] - The duration in seconds to pause execution.
* Valid values range from `0.1` to `7200`. Defaults to `10`.
*/
constructor(timeout?: number);
/**
* Serializes the Wait action to a Nexmo Call Control Object (NCCO).
*
* @return {WaitAction} - The serialized Wait action.
*/
serializeToNCCO(): WaitAction;
}
export { Wait };