@voiceflow/base-types
Version:
Voiceflow base project types
48 lines • 1.14 kB
TypeScript
import type { Nullable } from '@voiceflow/common';
import type { NodeID } from './base';
export declare enum NoReplyType {
PATH = "path",
REPROMPT = "reprompt"
}
export interface BaseStepNoReply {
types: NoReplyType[];
timeout?: number;
pathName?: string;
randomize: boolean;
}
export interface BaseNoReplyStepData {
noReply?: Nullable<BaseStepNoReply>;
}
export interface StepNoReply<Prompt> extends BaseStepNoReply {
reprompts?: Prompt[];
}
export interface BaseNodeNoReply {
nodeID?: NodeID;
timeout?: number;
randomize?: boolean;
}
export interface BaseNoReplyNodeData {
noReply?: Nullable<BaseNodeNoReply>;
}
export interface NodeNoReply<NoReply> extends BaseNodeNoReply {
prompts?: NoReply[];
}
/**
* @deprecated use StepNoReply instead
*/
export interface StepReprompt<Prompt> {
/**
* @deprecated use noReply instead
*/
reprompt?: Nullable<Prompt>;
}
/**
* @deprecated use NodeNoReply instead
*/
export interface NodeReprompt<Prompt> {
/**
* @deprecated use noReplies instead
*/
reprompt?: Prompt;
}
//# sourceMappingURL=noReply.d.ts.map