@voiceflow/chat-types 2.1.14 → 2.1.18

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.
Files changed (35) hide show
  1. package/build/common/node/buttons.js +0 -1
  2. package/build/common/node/buttons.js.map +1 -1
  3. package/build/common/node/capture.js +0 -1
  4. package/build/common/node/capture.js.map +1 -1
  5. package/build/common/node/captureV2.js +0 -1
  6. package/build/common/node/captureV2.js.map +1 -1
  7. package/build/common/node/interaction.js +0 -1
  8. package/build/common/node/interaction.js.map +1 -1
  9. package/build/common/node/prompt.js +0 -1
  10. package/build/common/node/prompt.js.map +1 -1
  11. package/build/common/node/utils.js +0 -1
  12. package/build/common/node/utils.js.map +1 -1
  13. package/build/common/project/index.js +0 -1
  14. package/build/common/project/index.js.map +1 -1
  15. package/build/common/version/settings.d.ts +6 -1
  16. package/build/common/version/settings.js +3 -2
  17. package/build/common/version/settings.js.map +1 -1
  18. package/build/esm/node/buttons.js +0 -1
  19. package/build/esm/node/buttons.js.map +1 -1
  20. package/build/esm/node/capture.js +0 -1
  21. package/build/esm/node/capture.js.map +1 -1
  22. package/build/esm/node/captureV2.js +0 -1
  23. package/build/esm/node/captureV2.js.map +1 -1
  24. package/build/esm/node/interaction.js +0 -1
  25. package/build/esm/node/interaction.js.map +1 -1
  26. package/build/esm/node/prompt.js +0 -1
  27. package/build/esm/node/prompt.js.map +1 -1
  28. package/build/esm/node/utils.js +0 -1
  29. package/build/esm/node/utils.js.map +1 -1
  30. package/build/esm/project/index.js +0 -1
  31. package/build/esm/project/index.js.map +1 -1
  32. package/build/esm/version/settings.d.ts +6 -1
  33. package/build/esm/version/settings.js +3 -2
  34. package/build/esm/version/settings.js.map +1 -1
  35. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=buttons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../src/node/buttons.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
1
+ {"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../src/node/buttons.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=capture.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"capture.js","sourceRoot":"","sources":["../../../src/node/capture.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
1
+ {"version":3,"file":"capture.js","sourceRoot":"","sources":["../../../src/node/capture.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=captureV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"captureV2.js","sourceRoot":"","sources":["../../../src/node/captureV2.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
1
+ {"version":3,"file":"captureV2.js","sourceRoot":"","sources":["../../../src/node/captureV2.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=interaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../../src/node/interaction.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
1
+ {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../../src/node/interaction.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/node/prompt.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/node/prompt.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/node/utils.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/node/utils.ts"],"names":[],"mappings":""}
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.defaultChatProjectData = void 0;
5
4
  const base_types_1 = require("@voiceflow/base-types");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/project/index.ts"],"names":[],"mappings":";AAAA,0DAA0D;;;AAE1D,sDAAwD;AAIjD,MAAM,sBAAsB,GAAG,CAAC,OAAyC,EAAE,EAA2B,EAAE,CAAC,mBAC3G,oBAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,EACvC,CAAC;AAFU,QAAA,sBAAsB,0BAEhC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/project/index.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AAIjD,MAAM,sBAAsB,GAAG,CAAC,OAAyC,EAAE,EAA2B,EAAE,CAAC,mBAC3G,oBAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,EACvC,CAAC;AAFU,QAAA,sBAAsB,0BAEhC"}
@@ -1,6 +1,11 @@
1
1
  import { Version } from '@voiceflow/base-types';
2
2
  import { Prompt } from "../types";
3
+ interface MessageDelay {
4
+ durationMilliseconds: number;
5
+ }
3
6
  export interface ChatVersionSettings extends Version.BaseVersionSettings<Prompt> {
4
7
  session: Version.RestartSession | Version.ResumeSession<Prompt>;
8
+ messageDelay?: MessageDelay;
5
9
  }
6
- export declare const defaultChatVersionSettings: ({ error, ...baseSettings }?: Partial<ChatVersionSettings>) => ChatVersionSettings;
10
+ export declare const defaultChatVersionSettings: ({ error, messageDelay, ...baseSettings }?: Partial<ChatVersionSettings>) => ChatVersionSettings;
11
+ export {};
@@ -14,9 +14,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.defaultChatVersionSettings = void 0;
15
15
  const base_types_1 = require("@voiceflow/base-types");
16
16
  const utils_1 = require("../utils");
17
+ const defaultMessageDelay = ({ durationMilliseconds = 1000 } = {}) => ({ durationMilliseconds });
17
18
  const defaultChatVersionSettings = (_a = {}) => {
18
- var { error } = _a, baseSettings = __rest(_a, ["error"]);
19
- return (Object.assign(Object.assign({}, base_types_1.Version.defaultBaseVersionSettings(baseSettings)), { error: utils_1.defaultPrompt(error) }));
19
+ var { error, messageDelay } = _a, baseSettings = __rest(_a, ["error", "messageDelay"]);
20
+ return (Object.assign(Object.assign({}, base_types_1.Version.defaultBaseVersionSettings(baseSettings)), { error: utils_1.defaultPrompt(error), messageDelay: defaultMessageDelay(messageDelay) }));
20
21
  };
21
22
  exports.defaultChatVersionSettings = defaultChatVersionSettings;
22
23
  //# sourceMappingURL=settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/version/settings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAAgD;AAGhD,oCAAwC;AAMjC,MAAM,0BAA0B,GAAG,CAAC,KAA2D,EAAE,EAAuB,EAAE;QAAtF,EAAE,KAAK,OAAsD,EAAjD,YAAY,cAAxB,SAA0B,CAAF;IAA+D,OAAA,iCAC7H,oBAAO,CAAC,0BAA0B,CAAS,YAAY,CAAC,KAC3D,KAAK,EAAE,qBAAa,CAAC,KAAK,CAAC,IAC3B,CAAA;CAAA,CAAC;AAHU,QAAA,0BAA0B,8BAGpC"}
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/version/settings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAAgD;AAGhD,oCAAwC;AAWxC,MAAM,mBAAmB,GAAG,CAAC,EAAE,oBAAoB,GAAG,IAAI,KAA4B,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,CAAC;AAEjH,MAAM,0BAA0B,GAAG,CAAC,KAAyE,EAAE,EAAuB,EAAE;QAApG,EAAE,KAAK,EAAE,YAAY,OAAsD,EAAjD,YAAY,cAAtC,yBAAwC,CAAF;IAA+D,OAAA,iCAC3I,oBAAO,CAAC,0BAA0B,CAAS,YAAY,CAAC,KAC3D,KAAK,EAAE,qBAAa,CAAC,KAAK,CAAC,EAC3B,YAAY,EAAE,mBAAmB,CAAC,YAAY,CAAC,IAC/C,CAAA;CAAA,CAAC;AAJU,QAAA,0BAA0B,8BAIpC"}
@@ -1,3 +1,2 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
1
  export {};
3
2
  //# sourceMappingURL=buttons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../src/node/buttons.ts"],"names":[],"mappings":"AAAA,0DAA0D"}
1
+ {"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../src/node/buttons.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
1
  export {};
3
2
  //# sourceMappingURL=capture.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"capture.js","sourceRoot":"","sources":["../../../src/node/capture.ts"],"names":[],"mappings":"AAAA,0DAA0D"}
1
+ {"version":3,"file":"capture.js","sourceRoot":"","sources":["../../../src/node/capture.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
1
  export {};
3
2
  //# sourceMappingURL=captureV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"captureV2.js","sourceRoot":"","sources":["../../../src/node/captureV2.ts"],"names":[],"mappings":"AAAA,0DAA0D"}
1
+ {"version":3,"file":"captureV2.js","sourceRoot":"","sources":["../../../src/node/captureV2.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
1
  export {};
3
2
  //# sourceMappingURL=interaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../../src/node/interaction.ts"],"names":[],"mappings":"AAAA,0DAA0D"}
1
+ {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../../src/node/interaction.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
1
  export {};
3
2
  //# sourceMappingURL=prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/node/prompt.ts"],"names":[],"mappings":"AAAA,0DAA0D"}
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../src/node/prompt.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
1
  export {};
3
2
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/node/utils.ts"],"names":[],"mappings":"AAAA,0DAA0D"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/node/utils.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-empty-interface */
2
1
  import { Project } from '@voiceflow/base-types';
3
2
  export const defaultChatProjectData = (data = {}) => (Object.assign({}, Project.defaultBaseProjectData(data)));
4
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/project/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAE1D,OAAO,EAAU,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAyC,EAAE,EAA2B,EAAE,CAAC,mBAC3G,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,EACvC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAyC,EAAE,EAA2B,EAAE,CAAC,mBAC3G,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,EACvC,CAAC"}
@@ -1,6 +1,11 @@
1
1
  import { Version } from '@voiceflow/base-types';
2
2
  import { Prompt } from "../types";
3
+ interface MessageDelay {
4
+ durationMilliseconds: number;
5
+ }
3
6
  export interface ChatVersionSettings extends Version.BaseVersionSettings<Prompt> {
4
7
  session: Version.RestartSession | Version.ResumeSession<Prompt>;
8
+ messageDelay?: MessageDelay;
5
9
  }
6
- export declare const defaultChatVersionSettings: ({ error, ...baseSettings }?: Partial<ChatVersionSettings>) => ChatVersionSettings;
10
+ export declare const defaultChatVersionSettings: ({ error, messageDelay, ...baseSettings }?: Partial<ChatVersionSettings>) => ChatVersionSettings;
11
+ export {};
@@ -11,8 +11,9 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { Version } from '@voiceflow/base-types';
13
13
  import { defaultPrompt } from "../utils";
14
+ const defaultMessageDelay = ({ durationMilliseconds = 1000 } = {}) => ({ durationMilliseconds });
14
15
  export const defaultChatVersionSettings = (_a = {}) => {
15
- var { error } = _a, baseSettings = __rest(_a, ["error"]);
16
- return (Object.assign(Object.assign({}, Version.defaultBaseVersionSettings(baseSettings)), { error: defaultPrompt(error) }));
16
+ var { error, messageDelay } = _a, baseSettings = __rest(_a, ["error", "messageDelay"]);
17
+ return (Object.assign(Object.assign({}, Version.defaultBaseVersionSettings(baseSettings)), { error: defaultPrompt(error), messageDelay: defaultMessageDelay(messageDelay) }));
17
18
  };
18
19
  //# sourceMappingURL=settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/version/settings.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,iBAAgB;AAMxC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,KAA2D,EAAE,EAAuB,EAAE;QAAtF,EAAE,KAAK,OAAsD,EAAjD,YAAY,cAAxB,SAA0B,CAAF;IAA+D,OAAA,iCAC7H,OAAO,CAAC,0BAA0B,CAAS,YAAY,CAAC,KAC3D,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,IAC3B,CAAA;CAAA,CAAC"}
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/version/settings.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,iBAAgB;AAWxC,MAAM,mBAAmB,GAAG,CAAC,EAAE,oBAAoB,GAAG,IAAI,KAA4B,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,CAAC;AAExH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,KAAyE,EAAE,EAAuB,EAAE;QAApG,EAAE,KAAK,EAAE,YAAY,OAAsD,EAAjD,YAAY,cAAtC,yBAAwC,CAAF;IAA+D,OAAA,iCAC3I,OAAO,CAAC,0BAA0B,CAAS,YAAY,CAAC,KAC3D,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,EAC3B,YAAY,EAAE,mBAAmB,CAAC,YAAY,CAAC,IAC/C,CAAA;CAAA,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.14",
4
+ "version": "2.1.18",
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.7.0"
10
+ "@voiceflow/base-types": "^2.7.3"
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": "2ff736b947e01815458a1bee39e31fb25d1b594b"
42
+ "gitHead": "b8a1fb7a352847720b9a43f2739a2b25a781dd8a"
43
43
  }