@voiceflow/voice-types
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -0,1 +1,2 @@ | ||
import type * as ApiSDK from '@voiceflow/api-sdk'; | ||
export interface Prompt<V> { | ||
@@ -6,1 +7,16 @@ desc?: string; | ||
} | ||
export interface IntentInput extends ApiSDK.IntentInput { | ||
text: string; | ||
} | ||
export interface IntentSlotDialog extends ApiSDK.IntentSlotDialog { | ||
prompt: IntentInput[]; | ||
confirm: IntentInput[]; | ||
utterances: IntentInput[]; | ||
} | ||
export interface IntentSlot extends ApiSDK.IntentSlot { | ||
dialog: IntentSlotDialog; | ||
} | ||
export interface Intent extends ApiSDK.Intent { | ||
slots?: IntentSlot[]; | ||
inputs: IntentInput[]; | ||
} |
import { Version } from '@voiceflow/base-types'; | ||
import { Prompt } from "../types"; | ||
import { Intent, Prompt } from "../types"; | ||
import { VoiceVersionSettings } from './settings'; | ||
export * from './settings'; | ||
export interface VoiceVersionData<Voice> extends Version.BaseVersionData<Prompt<Voice>> { | ||
intents: Intent[]; | ||
settings: VoiceVersionSettings<Voice>; | ||
} | ||
export declare const defaultVoiceVersionData: <Voice>({ settings, ...data }: Partial<VoiceVersionData<Voice>>, options: { | ||
export declare const defaultVoiceVersionData: <Voice>({ intents, settings, ...data }: Partial<VoiceVersionData<Voice>>, options: { | ||
defaultPromptVoice: Voice; | ||
@@ -10,0 +11,0 @@ }) => VoiceVersionData<Voice>; |
@@ -29,6 +29,6 @@ "use strict"; | ||
const defaultVoiceVersionData = (_a, options) => { | ||
var { settings } = _a, data = __rest(_a, ["settings"]); | ||
return (Object.assign(Object.assign({}, base_types_1.Version.defaultBaseVersionData(data)), { settings: settings_1.defaultVoiceVersionSettings(settings, options) })); | ||
var { intents = [], settings } = _a, data = __rest(_a, ["intents", "settings"]); | ||
return (Object.assign(Object.assign({}, base_types_1.Version.defaultBaseVersionData(data)), { intents, settings: settings_1.defaultVoiceVersionSettings(settings, options) })); | ||
}; | ||
exports.defaultVoiceVersionData = defaultVoiceVersionData; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@voiceflow/voice-types", | ||
"description": "Voiceflow voice project types", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"author": "Voiceflow", | ||
@@ -10,4 +10,4 @@ "bugs": { | ||
"dependencies": { | ||
"@voiceflow/api-sdk": "^1.36.0", | ||
"@voiceflow/base-types": "^1.3.1" | ||
"@voiceflow/api-sdk": "^1.37.0", | ||
"@voiceflow/base-types": "^1.3.2" | ||
}, | ||
@@ -41,3 +41,3 @@ "files": [ | ||
}, | ||
"gitHead": "84cd90681ea4bdd3f8cb4e5482aac964b78887aa" | ||
"gitHead": "163af7fdbed51771f09f4bad59f44f1698e562ad" | ||
} |
Sorry, the diff of this file is not supported yet
16938
262
Updated@voiceflow/api-sdk@^1.37.0
Updated@voiceflow/base-types@^1.3.2