@voiceflow/chat-types 1.4.30 → 2.0.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.
@@ -1,5 +1,4 @@
1
- import { BasePlatformData } from '@voiceflow/api-sdk';
2
- import { Project } from '@voiceflow/base-types';
1
+ import { Models, Project } from '@voiceflow/base-types';
3
2
  export interface ChatProject extends Project.BaseProject {
4
3
  }
5
- export declare const defaultChatProjectData: (data?: Partial<BasePlatformData>) => BasePlatformData;
4
+ export declare const defaultChatProjectData: (data?: Partial<Models.BasePlatformData>) => Models.BasePlatformData;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/project/index.ts"],"names":[],"mappings":";AAAA,0DAA0D;;;AAG1D,sDAAgD;AAIzC,MAAM,sBAAsB,GAAG,CAAC,OAAkC,EAAE,EAAoB,EAAE,CAAC,mBAC7F,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,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"}
package/build/types.d.ts CHANGED
@@ -1,15 +1,14 @@
1
- import type * as ApiSDK from '@voiceflow/api-sdk';
2
- import { Node as BaseNode, Text } from '@voiceflow/base-types';
1
+ import { Models, Node as BaseNode, Text } from '@voiceflow/base-types';
3
2
  export interface Prompt extends BaseNode.Utils.DataID {
4
3
  content: Text.SlateTextValue;
5
4
  }
6
- export interface IntentSlotDialog extends ApiSDK.IntentSlotDialog {
5
+ export interface IntentSlotDialog extends Models.IntentSlotDialog {
7
6
  prompt: Prompt[];
8
7
  confirm: Prompt[];
9
8
  }
10
- export interface IntentSlot extends ApiSDK.IntentSlot {
9
+ export interface IntentSlot extends Models.IntentSlot {
11
10
  dialog: IntentSlotDialog;
12
11
  }
13
- export interface Intent extends ApiSDK.Intent {
12
+ export interface Intent extends Models.Intent {
14
13
  slots?: IntentSlot[];
15
14
  }
package/build/utils.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Nullable } from '@voiceflow/api-sdk';
1
+ import { Nullable } from '@voiceflow/base-types';
2
2
  import { Prompt } from "./types";
3
3
  export declare const defaultPrompt: (prompt: Nullable<Prompt> | undefined) => Nullable<Prompt>;
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@voiceflow/chat-types",
3
3
  "description": "Voiceflow chat project types",
4
- "version": "1.4.30",
4
+ "version": "2.0.1",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@voiceflow/api-sdk": "^2.0.1",
11
- "@voiceflow/base-types": "^1.12.1"
10
+ "@voiceflow/base-types": "^2.1.0"
12
11
  },
13
12
  "files": [
14
13
  "build"
@@ -37,5 +36,5 @@
37
36
  "test:integration": "exit 0",
38
37
  "test:unit": "exit 0"
39
38
  },
40
- "gitHead": "568715b436d99bcbc89a6e7c456e03ee05fec56c"
39
+ "gitHead": "692daa5801e120af0f01d326bc952f46ee8dd09b"
41
40
  }