@voiceflow/base-types 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/models/shared.d.ts +14 -14
- package/build/esm/models/shared.d.ts +14 -14
- package/package.json +2 -2
|
@@ -21,26 +21,26 @@ export interface IntentInput {
|
|
|
21
21
|
/** @deprecated shouldn't be used */
|
|
22
22
|
voice?: string;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export interface IntentSlotDialog {
|
|
25
25
|
prompt: any[];
|
|
26
26
|
confirm: any[];
|
|
27
27
|
utterances: IntentInput[];
|
|
28
28
|
confirmEnabled: boolean;
|
|
29
|
-
}
|
|
30
|
-
export
|
|
29
|
+
}
|
|
30
|
+
export interface IntentSlot {
|
|
31
31
|
id: string;
|
|
32
32
|
dialog: IntentSlotDialog;
|
|
33
33
|
required: boolean;
|
|
34
|
-
}
|
|
35
|
-
export
|
|
34
|
+
}
|
|
35
|
+
export interface Intent {
|
|
36
36
|
key: string;
|
|
37
37
|
name: string;
|
|
38
38
|
slots?: IntentSlot[];
|
|
39
39
|
inputs: IntentInput[];
|
|
40
40
|
builtIn?: boolean;
|
|
41
41
|
_platform?: string;
|
|
42
|
-
}
|
|
43
|
-
export
|
|
42
|
+
}
|
|
43
|
+
export interface Slot {
|
|
44
44
|
key: string;
|
|
45
45
|
name: string;
|
|
46
46
|
type: {
|
|
@@ -48,15 +48,15 @@ export declare type Slot = {
|
|
|
48
48
|
};
|
|
49
49
|
color?: string;
|
|
50
50
|
inputs: string[];
|
|
51
|
-
}
|
|
52
|
-
export
|
|
51
|
+
}
|
|
52
|
+
export interface SlotMapping {
|
|
53
53
|
slot: Nullable<string>;
|
|
54
54
|
variable: Nullable<Variable>;
|
|
55
|
-
}
|
|
56
|
-
export
|
|
55
|
+
}
|
|
56
|
+
export interface CommandMapping {
|
|
57
57
|
slot: string;
|
|
58
58
|
variable: Variable;
|
|
59
|
-
}
|
|
59
|
+
}
|
|
60
60
|
/**
|
|
61
61
|
* @deprecated
|
|
62
62
|
*/
|
|
@@ -113,8 +113,8 @@ interface StepOnlyData<P = [BasePort, ...BasePort[]]> {
|
|
|
113
113
|
}
|
|
114
114
|
export declare type BaseStep<D extends AnyRecord = AnyRecord, P = [BasePort, ...BasePort[]]> = BaseDiagramNode<D & StepOnlyData<P>>;
|
|
115
115
|
export declare type BasePlatformData = AnyRecord;
|
|
116
|
-
export
|
|
116
|
+
export interface PrototypeModel {
|
|
117
117
|
slots: Slot[];
|
|
118
118
|
intents: Intent[];
|
|
119
|
-
}
|
|
119
|
+
}
|
|
120
120
|
export {};
|
|
@@ -21,26 +21,26 @@ export interface IntentInput {
|
|
|
21
21
|
/** @deprecated shouldn't be used */
|
|
22
22
|
voice?: string;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export interface IntentSlotDialog {
|
|
25
25
|
prompt: any[];
|
|
26
26
|
confirm: any[];
|
|
27
27
|
utterances: IntentInput[];
|
|
28
28
|
confirmEnabled: boolean;
|
|
29
|
-
}
|
|
30
|
-
export
|
|
29
|
+
}
|
|
30
|
+
export interface IntentSlot {
|
|
31
31
|
id: string;
|
|
32
32
|
dialog: IntentSlotDialog;
|
|
33
33
|
required: boolean;
|
|
34
|
-
}
|
|
35
|
-
export
|
|
34
|
+
}
|
|
35
|
+
export interface Intent {
|
|
36
36
|
key: string;
|
|
37
37
|
name: string;
|
|
38
38
|
slots?: IntentSlot[];
|
|
39
39
|
inputs: IntentInput[];
|
|
40
40
|
builtIn?: boolean;
|
|
41
41
|
_platform?: string;
|
|
42
|
-
}
|
|
43
|
-
export
|
|
42
|
+
}
|
|
43
|
+
export interface Slot {
|
|
44
44
|
key: string;
|
|
45
45
|
name: string;
|
|
46
46
|
type: {
|
|
@@ -48,15 +48,15 @@ export declare type Slot = {
|
|
|
48
48
|
};
|
|
49
49
|
color?: string;
|
|
50
50
|
inputs: string[];
|
|
51
|
-
}
|
|
52
|
-
export
|
|
51
|
+
}
|
|
52
|
+
export interface SlotMapping {
|
|
53
53
|
slot: Nullable<string>;
|
|
54
54
|
variable: Nullable<Variable>;
|
|
55
|
-
}
|
|
56
|
-
export
|
|
55
|
+
}
|
|
56
|
+
export interface CommandMapping {
|
|
57
57
|
slot: string;
|
|
58
58
|
variable: Variable;
|
|
59
|
-
}
|
|
59
|
+
}
|
|
60
60
|
/**
|
|
61
61
|
* @deprecated
|
|
62
62
|
*/
|
|
@@ -113,8 +113,8 @@ interface StepOnlyData<P = [BasePort, ...BasePort[]]> {
|
|
|
113
113
|
}
|
|
114
114
|
export declare type BaseStep<D extends AnyRecord = AnyRecord, P = [BasePort, ...BasePort[]]> = BaseDiagramNode<D & StepOnlyData<P>>;
|
|
115
115
|
export declare type BasePlatformData = AnyRecord;
|
|
116
|
-
export
|
|
116
|
+
export interface PrototypeModel {
|
|
117
117
|
slots: Slot[];
|
|
118
118
|
intents: Intent[];
|
|
119
|
-
}
|
|
119
|
+
}
|
|
120
120
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/base-types",
|
|
3
3
|
"description": "Voiceflow base project types",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.1",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"test:integration": "exit 0",
|
|
40
40
|
"test:unit": "exit 0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8b3953e48e461d3795a2e52f158891889cdca361"
|
|
43
43
|
}
|