UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

25 lines 829 B
import type { Nullable } from '@voiceflow/common'; import type { NodeType } from './constants.js'; import type { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils/index.js'; export declare enum IntentAvailability { LOCAL = "LOCAL", GLOBAL = "GLOBAL" } export interface StepData extends SlotMappings { intent: Nullable<string>; availability?: Nullable<IntentAvailability>; } export interface Step<Data = StepData> extends BaseStep<Data> { type: NodeType.INTENT; } /** * The old implementation of commands, used only in alexa and google * use Node.Utils.AnyCommand for other platforms */ export interface Command extends BaseCommand, Required<SlotMappings> { type: CommandType.JUMP; next: NodeID; intent: string; diagramID?: string; } //# sourceMappingURL=jump.d.ts.map