@voiceflow/base-types 2.109.0 → 2.110.0

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.
@@ -25,47 +25,56 @@ export interface Entity {
25
25
  name: string;
26
26
  value: string;
27
27
  query?: string;
28
+ /**
29
+ * @deprecated This value is no longer generated. Please remove all code relying on
30
+ * LUIS NLU to produce `verboseValue`
31
+ */
28
32
  verboseValue?: VerboseValue[];
29
33
  }
30
34
  export interface LabelRequestPayload {
31
35
  label?: string;
32
36
  }
33
- export interface BaseRequest<Payload = unknown> {
37
+ export interface BaseRequest {
34
38
  type: string;
35
- payload: Payload;
39
+ payload?: unknown;
36
40
  diagramID?: string;
37
41
  }
38
42
  export interface LaunchRequestPayload {
39
43
  persona?: string;
40
44
  }
41
- export interface LaunchRequest extends BaseRequest<LaunchRequestPayload | undefined> {
45
+ export interface LaunchRequest extends BaseRequest {
42
46
  type: RequestType.LAUNCH;
47
+ payload?: LaunchRequestPayload;
43
48
  }
44
- export interface NoReplyRequest extends BaseRequest<undefined> {
49
+ export interface NoReplyRequest extends Omit<BaseRequest, 'payload'> {
45
50
  type: RequestType.NO_REPLY;
46
51
  }
47
- export interface TextRequest extends BaseRequest<string> {
52
+ export interface TextRequest extends BaseRequest {
48
53
  type: RequestType.TEXT;
54
+ payload: string;
49
55
  }
50
56
  interface ActionAndLabelRequestPayload extends ActionPayload, LabelRequestPayload {
51
57
  }
52
58
  export interface IntentRequestPayload extends ActionAndLabelRequestPayload {
53
- query: string;
54
59
  intent: {
55
60
  name: string;
56
61
  };
57
62
  entities: Entity[];
63
+ query: string;
58
64
  confidence?: number;
59
65
  data?: Record<string, unknown>;
60
66
  }
61
- export interface IntentRequest extends BaseRequest<IntentRequestPayload> {
67
+ export interface IntentRequest extends BaseRequest {
62
68
  type: RequestType.INTENT;
69
+ payload: IntentRequestPayload;
63
70
  }
64
- export interface GeneralRequest extends BaseRequest<ActionAndLabelRequestPayload> {
71
+ export interface GeneralRequest extends BaseRequest {
65
72
  type: string;
73
+ payload?: ActionAndLabelRequestPayload;
66
74
  }
67
- export interface ActionRequest extends BaseRequest<ActionAndLabelRequestPayload> {
75
+ export interface ActionRequest extends BaseRequest {
68
76
  type: RequestType.ACTION;
77
+ payload?: ActionAndLabelRequestPayload;
69
78
  }
70
79
  export interface BaseRequestButton<T extends BaseRequest = BaseRequest> {
71
80
  name: string;
@@ -87,10 +96,40 @@ export interface NodeButton {
87
96
  chips?: Chip[];
88
97
  buttons?: AnyRequestButton[];
89
98
  }
99
+ /**
100
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
101
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
102
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
103
+ */
90
104
  export declare const isTextRequest: (request: BaseRequest) => request is TextRequest;
105
+ /**
106
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
107
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
108
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
109
+ */
91
110
  export declare const isActionRequest: (request: BaseRequest) => request is ActionRequest;
111
+ /**
112
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
113
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
114
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
115
+ */
92
116
  export declare const isLaunchRequest: (request: BaseRequest) => request is LaunchRequest;
117
+ /**
118
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
119
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
120
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
121
+ */
93
122
  export declare const isNoReplyRequest: (request: BaseRequest) => request is NoReplyRequest;
123
+ /**
124
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
125
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
126
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
127
+ */
94
128
  export declare const isIntentRequest: (request: BaseRequest) => request is IntentRequest;
129
+ /**
130
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
131
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
132
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
133
+ */
95
134
  export declare const isGeneralRequest: (request: BaseRequest) => request is GeneralRequest;
96
135
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CA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;;;;GAIG;AACH,eAAO,MAAM,aAAa,YAAa,WAAW,2BAA8D,CAAC;AAEjH;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,6BAAkE,CAAC;AAEvH;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,6BAAkE,CAAC;AAEvH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAAa,WAAW,8BACd,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,6BAAkE,CAAC;AAIvH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAAa,WAAW,8BACV,CAAC"}
@@ -33,16 +33,46 @@ var RequestType;
33
33
  RequestType["LAUNCH"] = "launch";
34
34
  RequestType["NO_REPLY"] = "no-reply";
35
35
  })(RequestType || (exports.RequestType = RequestType = {}));
36
+ /**
37
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
38
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
39
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
40
+ */
36
41
  const isTextRequest = (request) => request.type === RequestType.TEXT;
37
42
  exports.isTextRequest = isTextRequest;
43
+ /**
44
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
45
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
46
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
47
+ */
38
48
  const isActionRequest = (request) => request.type === RequestType.ACTION;
39
49
  exports.isActionRequest = isActionRequest;
50
+ /**
51
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
52
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
53
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
54
+ */
40
55
  const isLaunchRequest = (request) => request.type === RequestType.LAUNCH;
41
56
  exports.isLaunchRequest = isLaunchRequest;
57
+ /**
58
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
59
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
60
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
61
+ */
42
62
  const isNoReplyRequest = (request) => request.type === RequestType.NO_REPLY;
43
63
  exports.isNoReplyRequest = isNoReplyRequest;
64
+ /**
65
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
66
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
67
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
68
+ */
44
69
  const isIntentRequest = (request) => request.type === RequestType.INTENT;
45
70
  exports.isIntentRequest = isIntentRequest;
46
71
  const ALL_REQUEST_TYPES = Object.values(RequestType);
72
+ /**
73
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
74
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
75
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
76
+ */
47
77
  const isGeneralRequest = (request) => !ALL_REQUEST_TYPES.includes(request.type);
48
78
  exports.isGeneralRequest = isGeneralRequest;
@@ -25,47 +25,56 @@ export interface Entity {
25
25
  name: string;
26
26
  value: string;
27
27
  query?: string;
28
+ /**
29
+ * @deprecated This value is no longer generated. Please remove all code relying on
30
+ * LUIS NLU to produce `verboseValue`
31
+ */
28
32
  verboseValue?: VerboseValue[];
29
33
  }
30
34
  export interface LabelRequestPayload {
31
35
  label?: string;
32
36
  }
33
- export interface BaseRequest<Payload = unknown> {
37
+ export interface BaseRequest {
34
38
  type: string;
35
- payload: Payload;
39
+ payload?: unknown;
36
40
  diagramID?: string;
37
41
  }
38
42
  export interface LaunchRequestPayload {
39
43
  persona?: string;
40
44
  }
41
- export interface LaunchRequest extends BaseRequest<LaunchRequestPayload | undefined> {
45
+ export interface LaunchRequest extends BaseRequest {
42
46
  type: RequestType.LAUNCH;
47
+ payload?: LaunchRequestPayload;
43
48
  }
44
- export interface NoReplyRequest extends BaseRequest<undefined> {
49
+ export interface NoReplyRequest extends Omit<BaseRequest, 'payload'> {
45
50
  type: RequestType.NO_REPLY;
46
51
  }
47
- export interface TextRequest extends BaseRequest<string> {
52
+ export interface TextRequest extends BaseRequest {
48
53
  type: RequestType.TEXT;
54
+ payload: string;
49
55
  }
50
56
  interface ActionAndLabelRequestPayload extends ActionPayload, LabelRequestPayload {
51
57
  }
52
58
  export interface IntentRequestPayload extends ActionAndLabelRequestPayload {
53
- query: string;
54
59
  intent: {
55
60
  name: string;
56
61
  };
57
62
  entities: Entity[];
63
+ query: string;
58
64
  confidence?: number;
59
65
  data?: Record<string, unknown>;
60
66
  }
61
- export interface IntentRequest extends BaseRequest<IntentRequestPayload> {
67
+ export interface IntentRequest extends BaseRequest {
62
68
  type: RequestType.INTENT;
69
+ payload: IntentRequestPayload;
63
70
  }
64
- export interface GeneralRequest extends BaseRequest<ActionAndLabelRequestPayload> {
71
+ export interface GeneralRequest extends BaseRequest {
65
72
  type: string;
73
+ payload?: ActionAndLabelRequestPayload;
66
74
  }
67
- export interface ActionRequest extends BaseRequest<ActionAndLabelRequestPayload> {
75
+ export interface ActionRequest extends BaseRequest {
68
76
  type: RequestType.ACTION;
77
+ payload?: ActionAndLabelRequestPayload;
69
78
  }
70
79
  export interface BaseRequestButton<T extends BaseRequest = BaseRequest> {
71
80
  name: string;
@@ -87,10 +96,40 @@ export interface NodeButton {
87
96
  chips?: Chip[];
88
97
  buttons?: AnyRequestButton[];
89
98
  }
99
+ /**
100
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
101
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
102
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
103
+ */
90
104
  export declare const isTextRequest: (request: BaseRequest) => request is TextRequest;
105
+ /**
106
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
107
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
108
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
109
+ */
91
110
  export declare const isActionRequest: (request: BaseRequest) => request is ActionRequest;
111
+ /**
112
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
113
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
114
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
115
+ */
92
116
  export declare const isLaunchRequest: (request: BaseRequest) => request is LaunchRequest;
117
+ /**
118
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
119
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
120
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
121
+ */
93
122
  export declare const isNoReplyRequest: (request: BaseRequest) => request is NoReplyRequest;
123
+ /**
124
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
125
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
126
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
127
+ */
94
128
  export declare const isIntentRequest: (request: BaseRequest) => request is IntentRequest;
129
+ /**
130
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
131
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
132
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
133
+ */
95
134
  export declare const isGeneralRequest: (request: BaseRequest) => request is GeneralRequest;
96
135
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAA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AO,EAAE,CAAC,CAAC;CACZ;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,WAAW,CAAC;CAAG;AAE5E,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB,CAAC,aAAa,CAAC;CAAG;AAEhF,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB,CAAC,aAAa,CAAC;CAAG;AAEhF,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB,CAAC,cAAc,CAAC;CAAG;AAElF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;AAEpH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IAEf,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,YAAa,WAAW,2BAA8D,CAAC;AAEjH;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,6BAAkE,CAAC;AAEvH;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,6BAAkE,CAAC;AAEvH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAAa,WAAW,8BACd,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,eAAe,YAAa,WAAW,6BAAkE,CAAC;AAIvH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAAa,WAAW,8BACV,CAAC"}
@@ -7,10 +7,40 @@ export var RequestType;
7
7
  RequestType["LAUNCH"] = "launch";
8
8
  RequestType["NO_REPLY"] = "no-reply";
9
9
  })(RequestType || (RequestType = {}));
10
+ /**
11
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
12
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
13
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
14
+ */
10
15
  export const isTextRequest = (request) => request.type === RequestType.TEXT;
16
+ /**
17
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
18
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
19
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
20
+ */
11
21
  export const isActionRequest = (request) => request.type === RequestType.ACTION;
22
+ /**
23
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
24
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
25
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
26
+ */
12
27
  export const isLaunchRequest = (request) => request.type === RequestType.LAUNCH;
28
+ /**
29
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
30
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
31
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
32
+ */
13
33
  export const isNoReplyRequest = (request) => request.type === RequestType.NO_REPLY;
34
+ /**
35
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
36
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
37
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
38
+ */
14
39
  export const isIntentRequest = (request) => request.type === RequestType.INTENT;
15
40
  const ALL_REQUEST_TYPES = Object.values(RequestType);
41
+ /**
42
+ * @deprecated This type guard is no longer an effective check if `request` is the specified type. The actual
43
+ * data being sent does not match the original type definition. This type guard will not be updated with a fix.
44
+ * Please use the type guards and equivalent DTOs in `@voiceflow/dtos` instead.
45
+ */
16
46
  export const isGeneralRequest = (request) => !ALL_REQUEST_TYPES.includes(request.type);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/base-types",
3
- "version": "2.109.0",
3
+ "version": "2.110.0",
4
4
  "description": "Voiceflow base project types",
5
5
  "keywords": [
6
6
  "voiceflow",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "b4419c26fa81c57bae790d38663a140e860acc1a"
49
+ "gitHead": "93ad4f98575b54ab5dfec641ad016463c45c4ed3"
50
50
  }