UNPKG

@vonage/voice

Version:

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

26 lines 894 B
import { NCCOActions } from '../../enums'; /** * Represents a Notify action in a Nexmo Call Control Object (NCCO). A Notify action is used to send a notification * to the specified event URLs with the provided payload. */ export type NotifyAction = { /** * The action type, which should be set to 'notify'. */ action: NCCOActions.NOTIFY; /** * The payload to be sent as part of the notification. It is a key-value pair object where the keys and values * are both strings. */ payload: Record<string, string>; /** * An array of event URLs to which the notification will be sent. */ eventUrl: string[]; /** * (Optional) The HTTP method used for sending the notification to the event URLs. If not specified, the default * HTTP method is used. */ eventMethod?: string; }; //# sourceMappingURL=NotifyAction.d.ts.map