UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

29 lines (28 loc) 1.15 kB
export var RepeatType; (function (RepeatType) { RepeatType["OFF"] = "OFF"; RepeatType["ALL"] = "ALL"; RepeatType["DIALOG"] = "DIALOG"; })(RepeatType || (RepeatType = {})); export var SessionType; (function (SessionType) { SessionType["RESUME"] = "resume"; SessionType["RESTART"] = "restart"; })(SessionType || (SessionType = {})); export var GlobalNoMatchType; (function (GlobalNoMatchType) { GlobalNoMatchType["STATIC"] = "static"; GlobalNoMatchType["GENERATIVE"] = "generative"; })(GlobalNoMatchType || (GlobalNoMatchType = {})); export const defaultSettings = ({ error = null, repeat = RepeatType.ALL, session = { type: SessionType.RESTART }, defaultVoice = null, defaultCanvasNodeVisibility = null, defaultCarouselLayout = null, globalNoMatch = { type: GlobalNoMatchType.STATIC, prompt: undefined }, globalNoReply = { delay: undefined, prompt: undefined, enabled: false }, deepgramASR, intentConfidence = 0.6, } = {}) => ({ error, repeat, session, defaultVoice, defaultCanvasNodeVisibility, defaultCarouselLayout, globalNoMatch, globalNoReply, deepgramASR, intentConfidence, });