@voiceflow/chat-types 2.1.4 → 2.1.8
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/node/capture.d.ts +3 -0
- package/build/common/node/captureV2.d.ts +17 -0
- package/build/common/node/captureV2.js +4 -0
- package/build/common/node/captureV2.js.map +1 -0
- package/build/common/node/index.d.ts +1 -0
- package/build/common/node/index.js +2 -1
- package/build/common/node/index.js.map +1 -1
- package/build/esm/node/capture.d.ts +3 -0
- package/build/esm/node/captureV2.d.ts +17 -0
- package/build/esm/node/captureV2.js +3 -0
- package/build/esm/node/captureV2.js.map +1 -0
- package/build/esm/node/index.d.ts +1 -0
- package/build/esm/node/index.js +1 -0
- package/build/esm/node/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Button, Node, Nullable, Request } from '@voiceflow/base-types';
|
|
2
2
|
import { NodeNoReply, NodeReprompt, StepNoReply, StepReprompt } from './utils';
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export interface StepData extends Node.Capture.StepData, Button.StepButton, StepReprompt {
|
|
4
5
|
noReply?: Nullable<StepNoReply>;
|
|
5
6
|
}
|
|
7
|
+
/** @deprecated */
|
|
6
8
|
export interface Step<Data = StepData> extends Node.Capture.Step<Data> {
|
|
7
9
|
}
|
|
10
|
+
/** @deprecated */
|
|
8
11
|
export interface Node extends Node.Capture.Node, Request.NodeButton, NodeReprompt {
|
|
9
12
|
noReply?: Nullable<NodeNoReply>;
|
|
10
13
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Node, Nullable } from '@voiceflow/base-types';
|
|
2
|
+
import { Intent } from "../types";
|
|
3
|
+
import { NodeNoMatch, NodeNoReply, StepNoMatch, StepNoReply } from './utils';
|
|
4
|
+
export interface IntentCapture extends Node.CaptureV2.IntentCapture {
|
|
5
|
+
intent: Intent;
|
|
6
|
+
}
|
|
7
|
+
export interface StepData extends Node.CaptureV2.StepData {
|
|
8
|
+
capture: IntentCapture | Node.CaptureV2.QueryCapture;
|
|
9
|
+
noReply?: Nullable<StepNoReply>;
|
|
10
|
+
noMatch?: Nullable<StepNoMatch>;
|
|
11
|
+
}
|
|
12
|
+
export interface Step<Data = StepData> extends Node.CaptureV2.Step<Data> {
|
|
13
|
+
}
|
|
14
|
+
export interface Node extends Node.CaptureV2.Node {
|
|
15
|
+
noReply?: Nullable<NodeNoReply>;
|
|
16
|
+
noMatch?: Nullable<NodeNoMatch>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captureV2.js","sourceRoot":"","sources":["../../../src/node/captureV2.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
|
|
@@ -19,9 +19,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.Utils = exports.Prompt = exports.Interaction = exports.Capture = exports.Buttons = void 0;
|
|
22
|
+
exports.Utils = exports.Prompt = exports.Interaction = exports.CaptureV2 = exports.Capture = exports.Buttons = void 0;
|
|
23
23
|
exports.Buttons = __importStar(require("./buttons"));
|
|
24
24
|
exports.Capture = __importStar(require("./capture"));
|
|
25
|
+
exports.CaptureV2 = __importStar(require("./captureV2"));
|
|
25
26
|
exports.Interaction = __importStar(require("./interaction"));
|
|
26
27
|
exports.Prompt = __importStar(require("./prompt"));
|
|
27
28
|
exports.Utils = __importStar(require("./utils"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,qDAAqC;AACrC,6DAA6C;AAC7C,mDAAmC;AACnC,iDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAqC;AACrC,qDAAqC;AACrC,yDAAyC;AACzC,6DAA6C;AAC7C,mDAAmC;AACnC,iDAAiC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Button, Node, Nullable, Request } from '@voiceflow/base-types';
|
|
2
2
|
import { NodeNoReply, NodeReprompt, StepNoReply, StepReprompt } from './utils';
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export interface StepData extends Node.Capture.StepData, Button.StepButton, StepReprompt {
|
|
4
5
|
noReply?: Nullable<StepNoReply>;
|
|
5
6
|
}
|
|
7
|
+
/** @deprecated */
|
|
6
8
|
export interface Step<Data = StepData> extends Node.Capture.Step<Data> {
|
|
7
9
|
}
|
|
10
|
+
/** @deprecated */
|
|
8
11
|
export interface Node extends Node.Capture.Node, Request.NodeButton, NodeReprompt {
|
|
9
12
|
noReply?: Nullable<NodeNoReply>;
|
|
10
13
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Node, Nullable } from '@voiceflow/base-types';
|
|
2
|
+
import { Intent } from "../types";
|
|
3
|
+
import { NodeNoMatch, NodeNoReply, StepNoMatch, StepNoReply } from './utils';
|
|
4
|
+
export interface IntentCapture extends Node.CaptureV2.IntentCapture {
|
|
5
|
+
intent: Intent;
|
|
6
|
+
}
|
|
7
|
+
export interface StepData extends Node.CaptureV2.StepData {
|
|
8
|
+
capture: IntentCapture | Node.CaptureV2.QueryCapture;
|
|
9
|
+
noReply?: Nullable<StepNoReply>;
|
|
10
|
+
noMatch?: Nullable<StepNoMatch>;
|
|
11
|
+
}
|
|
12
|
+
export interface Step<Data = StepData> extends Node.CaptureV2.Step<Data> {
|
|
13
|
+
}
|
|
14
|
+
export interface Node extends Node.CaptureV2.Node {
|
|
15
|
+
noReply?: Nullable<NodeNoReply>;
|
|
16
|
+
noMatch?: Nullable<NodeNoMatch>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captureV2.js","sourceRoot":"","sources":["../../../src/node/captureV2.ts"],"names":[],"mappings":"AAAA,0DAA0D"}
|
package/build/esm/node/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/chat-types",
|
|
3
3
|
"description": "Voiceflow chat project types",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.8",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@voiceflow/base-types": "^2.
|
|
10
|
+
"@voiceflow/base-types": "^2.5.2"
|
|
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": "8b27c25d722801baa7c94c915b2b4b1aa8ee11c2"
|
|
43
43
|
}
|