@voiceflow/voice-types
Version:
Voiceflow voice project types
18 lines • 796 B
TypeScript
import type { Intent } from '../models.js';
import type { BaseNode, Nullable } from '@voiceflow/base-types';
import type { NodeNoMatch, NodeNoReply, StepNoMatch, StepNoReply } from './utils.js';
export interface IntentCapture<Voice> extends BaseNode.CaptureV2.IntentCapture {
intent: Intent<Voice>;
}
export interface StepData<Voice> extends BaseNode.CaptureV2.StepData {
capture: IntentCapture<Voice> | BaseNode.CaptureV2.QueryCapture;
noReply?: Nullable<StepNoReply<Voice>>;
noMatch?: Nullable<StepNoMatch<Voice>>;
}
export interface Step<Data = StepData<unknown>> extends BaseNode.CaptureV2.Step<Data> {
}
export interface Node extends BaseNode.CaptureV2.Node {
noReply?: Nullable<NodeNoReply>;
noMatch?: Nullable<NodeNoMatch>;
}
//# sourceMappingURL=captureV2.d.ts.map