@voiceflow/base-types 2.7.1 → 2.7.5
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/project.d.ts +1 -4
- package/build/common/models/project.js.map +1 -1
- package/build/common/models/version.d.ts +3 -0
- package/build/common/models/version.js.map +1 -1
- package/build/common/node/utils/trace.d.ts +2 -1
- package/build/common/node/utils/trace.js +1 -0
- package/build/common/node/utils/trace.js.map +1 -1
- package/build/common/trace/index.d.ts +8 -1
- package/build/esm/models/project.d.ts +1 -4
- package/build/esm/models/project.js.map +1 -1
- package/build/esm/models/version.d.ts +3 -0
- package/build/esm/models/version.js.map +1 -1
- package/build/esm/node/utils/trace.d.ts +2 -1
- package/build/esm/node/utils/trace.js +1 -0
- package/build/esm/node/utils/trace.js.map +1 -1
- package/build/esm/trace/index.d.ts +8 -1
- package/build/esm/trace/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -17,13 +17,10 @@ export interface ProjectPrototypeLuis extends ProjectPrototypeNLPBase {
|
|
|
17
17
|
}
|
|
18
18
|
export declare type ProjectPrototypeNLP = ProjectPrototypeLuis;
|
|
19
19
|
export interface ProjectPrototype {
|
|
20
|
-
data
|
|
20
|
+
data: Record<string, any>;
|
|
21
21
|
trainedModel?: PrototypeModel;
|
|
22
22
|
lastTrainedTime?: number;
|
|
23
23
|
nlp?: ProjectPrototypeNLP;
|
|
24
|
-
messageDelay?: {
|
|
25
|
-
durationMilliseconds: number;
|
|
26
|
-
};
|
|
27
24
|
}
|
|
28
25
|
export declare enum ProjectPrivacy {
|
|
29
26
|
PUBLIC = "public",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../src/models/project.ts"],"names":[],"mappings":";;;AAGA,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;AACf,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../src/models/project.ts"],"names":[],"mappings":";;;AAGA,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;AACf,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAqBD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB"}
|
|
@@ -26,6 +26,9 @@ export interface VersionPrototypeContext<C extends BaseCommand = BaseCommand> {
|
|
|
26
26
|
export interface VersionPrototypeData<L extends string> {
|
|
27
27
|
name: string;
|
|
28
28
|
locales: L[];
|
|
29
|
+
messageDelay?: {
|
|
30
|
+
durationMilliseconds: number;
|
|
31
|
+
};
|
|
29
32
|
}
|
|
30
33
|
export interface VersionPrototypeSettings {
|
|
31
34
|
layout?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/models/version.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/models/version.ts"],"names":[],"mappings":";;;AA2DA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACrB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|
|
@@ -11,7 +11,8 @@ export declare enum TraceType {
|
|
|
11
11
|
CHOICE = "choice",
|
|
12
12
|
STREAM = "stream",
|
|
13
13
|
VISUAL = "visual",
|
|
14
|
-
NO_REPLY = "no-reply"
|
|
14
|
+
NO_REPLY = "no-reply",
|
|
15
|
+
ENTITY_FILLING = "entity-filling"
|
|
15
16
|
}
|
|
16
17
|
export interface BaseTraceFramePath<Event extends BaseEvent = BaseEvent> {
|
|
17
18
|
label?: string;
|
|
@@ -15,5 +15,6 @@ var TraceType;
|
|
|
15
15
|
TraceType["STREAM"] = "stream";
|
|
16
16
|
TraceType["VISUAL"] = "visual";
|
|
17
17
|
TraceType["NO_REPLY"] = "no-reply";
|
|
18
|
+
TraceType["ENTITY_FILLING"] = "entity-filling";
|
|
18
19
|
})(TraceType = exports.TraceType || (exports.TraceType = {}));
|
|
19
20
|
//# sourceMappingURL=trace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../../src/node/utils/trace.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../../src/node/utils/trace.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAcX;AAdD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,8CAAiC,CAAA;AACnC,CAAC,EAdW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAcpB"}
|
|
@@ -46,4 +46,11 @@ export interface NoReplyTracePayload {
|
|
|
46
46
|
export interface NoReplyTrace extends BaseTraceFrame<NoReplyTracePayload> {
|
|
47
47
|
type: TraceType.NO_REPLY;
|
|
48
48
|
}
|
|
49
|
-
export
|
|
49
|
+
export interface EntityFillingTracePayload {
|
|
50
|
+
entityToFill: string;
|
|
51
|
+
intent: IntentRequest;
|
|
52
|
+
}
|
|
53
|
+
export interface EntityFillingTrace extends BaseTraceFrame<EntityFillingTracePayload> {
|
|
54
|
+
type: TraceType.ENTITY_FILLING;
|
|
55
|
+
}
|
|
56
|
+
export declare type AnyTrace = ExitTrace | TextTrace | GoToTrace | FlowTrace | SpeakTrace | BlockTrace | DebugTrace | ChoiceTrace | StreamTrace | VisualTrace | NoReplyTrace | EntityFillingTrace;
|
|
@@ -17,13 +17,10 @@ export interface ProjectPrototypeLuis extends ProjectPrototypeNLPBase {
|
|
|
17
17
|
}
|
|
18
18
|
export declare type ProjectPrototypeNLP = ProjectPrototypeLuis;
|
|
19
19
|
export interface ProjectPrototype {
|
|
20
|
-
data
|
|
20
|
+
data: Record<string, any>;
|
|
21
21
|
trainedModel?: PrototypeModel;
|
|
22
22
|
lastTrainedTime?: number;
|
|
23
23
|
nlp?: ProjectPrototypeNLP;
|
|
24
|
-
messageDelay?: {
|
|
25
|
-
durationMilliseconds: number;
|
|
26
|
-
};
|
|
27
24
|
}
|
|
28
25
|
export declare enum ProjectPrivacy {
|
|
29
26
|
PUBLIC = "public",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../src/models/project.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;AACf,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../src/models/project.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;AACf,CAAC,EAFW,uBAAuB,KAAvB,uBAAuB,QAElC;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAqBD,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
|
|
@@ -26,6 +26,9 @@ export interface VersionPrototypeContext<C extends BaseCommand = BaseCommand> {
|
|
|
26
26
|
export interface VersionPrototypeData<L extends string> {
|
|
27
27
|
name: string;
|
|
28
28
|
locales: L[];
|
|
29
|
+
messageDelay?: {
|
|
30
|
+
durationMilliseconds: number;
|
|
31
|
+
};
|
|
29
32
|
}
|
|
30
33
|
export interface VersionPrototypeSettings {
|
|
31
34
|
layout?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/models/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/models/version.ts"],"names":[],"mappings":"AA2DA,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACrB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC"}
|
|
@@ -11,7 +11,8 @@ export declare enum TraceType {
|
|
|
11
11
|
CHOICE = "choice",
|
|
12
12
|
STREAM = "stream",
|
|
13
13
|
VISUAL = "visual",
|
|
14
|
-
NO_REPLY = "no-reply"
|
|
14
|
+
NO_REPLY = "no-reply",
|
|
15
|
+
ENTITY_FILLING = "entity-filling"
|
|
15
16
|
}
|
|
16
17
|
export interface BaseTraceFramePath<Event extends BaseEvent = BaseEvent> {
|
|
17
18
|
label?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../../src/node/utils/trace.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../../src/node/utils/trace.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,SAcX;AAdD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,8CAAiC,CAAA;AACnC,CAAC,EAdW,SAAS,KAAT,SAAS,QAcpB"}
|
|
@@ -46,4 +46,11 @@ export interface NoReplyTracePayload {
|
|
|
46
46
|
export interface NoReplyTrace extends BaseTraceFrame<NoReplyTracePayload> {
|
|
47
47
|
type: TraceType.NO_REPLY;
|
|
48
48
|
}
|
|
49
|
-
export
|
|
49
|
+
export interface EntityFillingTracePayload {
|
|
50
|
+
entityToFill: string;
|
|
51
|
+
intent: IntentRequest;
|
|
52
|
+
}
|
|
53
|
+
export interface EntityFillingTrace extends BaseTraceFrame<EntityFillingTracePayload> {
|
|
54
|
+
type: TraceType.ENTITY_FILLING;
|
|
55
|
+
}
|
|
56
|
+
export declare type AnyTrace = ExitTrace | TextTrace | GoToTrace | FlowTrace | SpeakTrace | BlockTrace | DebugTrace | ChoiceTrace | StreamTrace | VisualTrace | NoReplyTrace | EntityFillingTrace;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/trace/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/trace/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAiEqH,qBAAqB,CAjE/G"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/base-types",
|
|
3
3
|
"description": "Voiceflow base project types",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.5",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"slate": "0.
|
|
10
|
+
"slate": "0.63.0"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"build"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"test:integration": "exit 0",
|
|
40
40
|
"test:unit": "exit 0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a6e4cb2fb4d1144bfae03d7ad42b3cce37cff28a"
|
|
43
43
|
}
|