UNPKG

@onereach/step-voice

Version:
40 lines (39 loc) 984 B
import VoiceStep, { VoiceEvent } from './voice'; declare const enum GATEWAY_SETTINGS_MODE { DEFAULT = "default", CUSTOM = "custom", INHERIT = "inherit", PROFILE = "profile" } declare const enum SIP_PROFILE { DEFAULT = "default", INTERNAL = "internal", EXTERNAL = "external" } interface INPUT { destination: string; phoneNumber: string; sessionTimeout: number; sipHeaders: Array<{ name: string; value: string; }>; refer: boolean; withReplaces: boolean; replacesConversation?: string; replacesConversationThread?: string; from?: string; gatewaySettingsMode?: GATEWAY_SETTINGS_MODE; sipHost?: string; sipUser?: string; sipPassword?: string; sipProfile?: SIP_PROFILE; muteRecording?: boolean; } interface EVENT extends VoiceEvent { originateDisposition?: string; } export default class Transfer extends VoiceStep<INPUT, {}, EVENT> { runStep(): Promise<void>; } export {};