@voiceflow/base-types
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -28,2 +28,5 @@ import type { Chip } from '../button'; | ||
} | ||
export interface LabelRequestPayload { | ||
label?: string; | ||
} | ||
export interface BaseRequest<P = unknown> { | ||
@@ -39,3 +42,5 @@ type: string; | ||
} | ||
export interface IntentRequestPayload extends ActionPayload { | ||
interface ActionAndLabelRequestPayload extends ActionPayload, LabelRequestPayload { | ||
} | ||
export interface IntentRequestPayload extends ActionAndLabelRequestPayload { | ||
query: string; | ||
@@ -51,6 +56,6 @@ intent: { | ||
} | ||
export interface GeneralRequest extends BaseRequest<ActionPayload> { | ||
export interface GeneralRequest extends BaseRequest<ActionAndLabelRequestPayload> { | ||
type: string; | ||
} | ||
export interface ActionRequest extends BaseRequest<ActionPayload> { | ||
export interface ActionRequest extends BaseRequest<ActionAndLabelRequestPayload> { | ||
type: RequestType.ACTION; | ||
@@ -57,0 +62,0 @@ } |
{ | ||
"name": "@voiceflow/base-types", | ||
"description": "Voiceflow base project types", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"author": "Voiceflow", | ||
@@ -40,3 +40,3 @@ "bugs": { | ||
}, | ||
"gitHead": "394d3f0de5d188628e028bd22a037f6075eee618" | ||
"gitHead": "7878e8b15f43d97f65aa971089f5c238c40e9650" | ||
} |
Sorry, the diff of this file is not supported yet
83488
1836