UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

42 lines 1.24 kB
import type { Nullable } from '@voiceflow/common'; import type { StepButtonsLayout } from '../button'; import type { NodeType } from './constants'; import type { BaseNoMatchStepData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, DataID, NoMatchNoReplyStepPorts, StepIntentScope } from './utils'; /** * @deprecated use `actions` instead */ export declare enum ButtonAction { URL = "URL", PATH = "PATH", INTENT = "INTENT" } export interface Button extends DataID { name: string; intent?: Nullable<string>; /** * @deprecated use `actions` instead */ url?: Nullable<string>; /** * @deprecated use `actions` instead */ actions: ButtonAction[]; /** * @deprecated use `actions` instead */ diagramID?: Nullable<string>; } export interface StepData extends StepButtonsLayout, BaseNoReplyStepData, StepIntentScope, BaseNoMatchStepData { buttons: Button[]; /** * @deprecated use noMatch instead */ else?: BaseStepNoMatch; } export interface StepPorts extends NoMatchNoReplyStepPorts { } export interface Step<Data = StepData> extends BaseStep<Data, StepPorts> { type: NodeType.BUTTONS; platform?: string; } //# sourceMappingURL=buttons.d.ts.map