@onereach/step-voice
Version:
Onereach.ai Voice Steps
47 lines (46 loc) • 1.3 kB
TypeScript
import VoiceStep, { CallStartEvent, TODO } 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 {
callId?: string;
sessionTimeout?: number | string;
otherCallRef?: string;
otherCallRefThread?: string;
asr: TODO;
tts: TODO;
from: string;
endUserNumber: string;
gatewaySettingsMode?: GATEWAY_SETTINGS_MODE;
sipHost?: string;
sipUser?: string;
sipPassword?: string;
sipProfile?: SIP_PROFILE;
timeout?: number | string;
headers?: Array<{
name: string;
value: string;
}>;
enableSpoofCallerId?: boolean;
spoofCallerId?: string;
isAMD?: boolean;
enableWhisperTransfer?: boolean;
whisperAnnounceAudio?: TODO[];
whisperCustomerConversation?: string;
whisperCustomerConversationThread?: string;
}
export default class InitiateCall extends VoiceStep<INPUT, TODO, CallStartEvent> {
get conversation(): string | import("@onereach/flow-sdk/types").IMergeField;
runStep(): Promise<void>;
onAwake(): Promise<void>;
waitForCall(): Promise<void>;
}
export {};