@voiceflow/utils-designer 1.38.6 → 1.38.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.
@@ -83,7 +83,7 @@ export declare const startNodeFactory: ({ data, coords, ...rest }?: NodeFactoryO
83
83
  color?: string | undefined;
84
84
  steps?: string[] | undefined;
85
85
  triggers?: {
86
- type: "intent";
86
+ type: "intent" | "event";
87
87
  id: string;
88
88
  resourceID: string | null;
89
89
  settings: {
@@ -188,7 +188,7 @@ export declare const blockNodeFactory: ({ data, ...rest }: NodeFactoryOptions<Bl
188
188
  export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOptions<TriggerNode>) => {
189
189
  data: {
190
190
  items: {
191
- type: "intent";
191
+ type: "intent" | "event";
192
192
  id: string;
193
193
  resourceID: string | null;
194
194
  settings: {
@@ -10,265 +10,67 @@ export declare const isActionRequest: (request: unknown) => request is import("z
10
10
  actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
11
11
  type: import("zod").ZodString;
12
12
  payload: import("zod").ZodUnknown;
13
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
14
- type: import("zod").ZodString;
15
- payload: import("zod").ZodUnknown;
16
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
17
- type: import("zod").ZodString;
18
- payload: import("zod").ZodUnknown;
19
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ type: string;
15
+ payload?: unknown;
16
+ }, {
17
+ type: string;
18
+ payload?: unknown;
19
+ }>, "many">>;
20
20
  label: import("zod").ZodOptional<import("zod").ZodString>;
21
21
  }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
22
22
  actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
23
23
  type: import("zod").ZodString;
24
24
  payload: import("zod").ZodUnknown;
25
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
26
- type: import("zod").ZodString;
27
- payload: import("zod").ZodUnknown;
28
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
29
- type: import("zod").ZodString;
30
- payload: import("zod").ZodUnknown;
31
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ type: string;
27
+ payload?: unknown;
28
+ }, {
29
+ type: string;
30
+ payload?: unknown;
31
+ }>, "many">>;
32
32
  label: import("zod").ZodOptional<import("zod").ZodString>;
33
33
  }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
34
34
  actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
35
35
  type: import("zod").ZodString;
36
36
  payload: import("zod").ZodUnknown;
37
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
38
- type: import("zod").ZodString;
39
- payload: import("zod").ZodUnknown;
40
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
41
- type: import("zod").ZodString;
42
- payload: import("zod").ZodUnknown;
43
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
37
+ }, "strip", import("zod").ZodTypeAny, {
38
+ type: string;
39
+ payload?: unknown;
40
+ }, {
41
+ type: string;
42
+ payload?: unknown;
43
+ }>, "many">>;
44
44
  label: import("zod").ZodOptional<import("zod").ZodString>;
45
45
  }, import("zod").ZodTypeAny, "passthrough">>>;
46
46
  }, import("zod").ZodTypeAny, "passthrough">;
47
- export declare const isIntentRequest: (request: unknown) => request is import("zod").objectOutputType<{
48
- diagramID: import("zod").ZodOptional<import("zod").ZodString>;
49
- type: import("zod").ZodLiteral<"intent">;
50
- payload: import("zod").ZodObject<{
51
- actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
52
- type: import("zod").ZodString;
53
- payload: import("zod").ZodUnknown;
54
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
55
- type: import("zod").ZodString;
56
- payload: import("zod").ZodUnknown;
57
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
58
- type: import("zod").ZodString;
59
- payload: import("zod").ZodUnknown;
60
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
61
- label: import("zod").ZodOptional<import("zod").ZodString>;
62
- data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
63
- query: import("zod").ZodDefault<import("zod").ZodString>;
64
- entities: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
65
- name: import("zod").ZodString;
66
- value: import("zod").ZodString;
67
- query: import("zod").ZodOptional<import("zod").ZodString>;
68
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
69
- rawText: import("zod").ZodString;
70
- canonicalText: import("zod").ZodString;
71
- startIndex: import("zod").ZodNumber;
72
- }, "strip", import("zod").ZodTypeAny, {
73
- rawText: string;
74
- canonicalText: string;
75
- startIndex: number;
76
- }, {
77
- rawText: string;
78
- canonicalText: string;
79
- startIndex: number;
80
- }>, "many">>;
81
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
82
- name: import("zod").ZodString;
83
- value: import("zod").ZodString;
84
- query: import("zod").ZodOptional<import("zod").ZodString>;
85
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
86
- rawText: import("zod").ZodString;
87
- canonicalText: import("zod").ZodString;
88
- startIndex: import("zod").ZodNumber;
89
- }, "strip", import("zod").ZodTypeAny, {
90
- rawText: string;
91
- canonicalText: string;
92
- startIndex: number;
93
- }, {
94
- rawText: string;
95
- canonicalText: string;
96
- startIndex: number;
97
- }>, "many">>;
98
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
99
- name: import("zod").ZodString;
100
- value: import("zod").ZodString;
101
- query: import("zod").ZodOptional<import("zod").ZodString>;
102
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
103
- rawText: import("zod").ZodString;
104
- canonicalText: import("zod").ZodString;
105
- startIndex: import("zod").ZodNumber;
106
- }, "strip", import("zod").ZodTypeAny, {
107
- rawText: string;
108
- canonicalText: string;
109
- startIndex: number;
110
- }, {
111
- rawText: string;
112
- canonicalText: string;
113
- startIndex: number;
114
- }>, "many">>;
115
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
116
- intent: import("zod").ZodObject<{
117
- name: import("zod").ZodString;
118
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
119
- name: import("zod").ZodString;
120
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
121
- name: import("zod").ZodString;
122
- }, import("zod").ZodTypeAny, "passthrough">>;
123
- confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
124
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
125
- actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
126
- type: import("zod").ZodString;
127
- payload: import("zod").ZodUnknown;
128
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
129
- type: import("zod").ZodString;
130
- payload: import("zod").ZodUnknown;
131
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
132
- type: import("zod").ZodString;
133
- payload: import("zod").ZodUnknown;
134
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
135
- label: import("zod").ZodOptional<import("zod").ZodString>;
136
- data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
137
- query: import("zod").ZodDefault<import("zod").ZodString>;
138
- entities: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
139
- name: import("zod").ZodString;
140
- value: import("zod").ZodString;
141
- query: import("zod").ZodOptional<import("zod").ZodString>;
142
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
143
- rawText: import("zod").ZodString;
144
- canonicalText: import("zod").ZodString;
145
- startIndex: import("zod").ZodNumber;
146
- }, "strip", import("zod").ZodTypeAny, {
147
- rawText: string;
148
- canonicalText: string;
149
- startIndex: number;
150
- }, {
151
- rawText: string;
152
- canonicalText: string;
153
- startIndex: number;
154
- }>, "many">>;
155
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
156
- name: import("zod").ZodString;
157
- value: import("zod").ZodString;
158
- query: import("zod").ZodOptional<import("zod").ZodString>;
159
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
160
- rawText: import("zod").ZodString;
161
- canonicalText: import("zod").ZodString;
162
- startIndex: import("zod").ZodNumber;
163
- }, "strip", import("zod").ZodTypeAny, {
164
- rawText: string;
165
- canonicalText: string;
166
- startIndex: number;
167
- }, {
168
- rawText: string;
169
- canonicalText: string;
170
- startIndex: number;
171
- }>, "many">>;
172
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
173
- name: import("zod").ZodString;
174
- value: import("zod").ZodString;
175
- query: import("zod").ZodOptional<import("zod").ZodString>;
176
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
177
- rawText: import("zod").ZodString;
178
- canonicalText: import("zod").ZodString;
179
- startIndex: import("zod").ZodNumber;
180
- }, "strip", import("zod").ZodTypeAny, {
181
- rawText: string;
182
- canonicalText: string;
183
- startIndex: number;
184
- }, {
185
- rawText: string;
186
- canonicalText: string;
187
- startIndex: number;
188
- }>, "many">>;
189
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
190
- intent: import("zod").ZodObject<{
191
- name: import("zod").ZodString;
192
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
193
- name: import("zod").ZodString;
194
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
195
- name: import("zod").ZodString;
196
- }, import("zod").ZodTypeAny, "passthrough">>;
197
- confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
198
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
199
- actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
200
- type: import("zod").ZodString;
201
- payload: import("zod").ZodUnknown;
202
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
203
- type: import("zod").ZodString;
204
- payload: import("zod").ZodUnknown;
205
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
206
- type: import("zod").ZodString;
207
- payload: import("zod").ZodUnknown;
208
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
209
- label: import("zod").ZodOptional<import("zod").ZodString>;
210
- data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
211
- query: import("zod").ZodDefault<import("zod").ZodString>;
212
- entities: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
213
- name: import("zod").ZodString;
214
- value: import("zod").ZodString;
215
- query: import("zod").ZodOptional<import("zod").ZodString>;
216
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
217
- rawText: import("zod").ZodString;
218
- canonicalText: import("zod").ZodString;
219
- startIndex: import("zod").ZodNumber;
220
- }, "strip", import("zod").ZodTypeAny, {
221
- rawText: string;
222
- canonicalText: string;
223
- startIndex: number;
224
- }, {
225
- rawText: string;
226
- canonicalText: string;
227
- startIndex: number;
228
- }>, "many">>;
229
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
230
- name: import("zod").ZodString;
231
- value: import("zod").ZodString;
232
- query: import("zod").ZodOptional<import("zod").ZodString>;
233
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
234
- rawText: import("zod").ZodString;
235
- canonicalText: import("zod").ZodString;
236
- startIndex: import("zod").ZodNumber;
237
- }, "strip", import("zod").ZodTypeAny, {
238
- rawText: string;
239
- canonicalText: string;
240
- startIndex: number;
241
- }, {
242
- rawText: string;
243
- canonicalText: string;
244
- startIndex: number;
245
- }>, "many">>;
246
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
247
- name: import("zod").ZodString;
248
- value: import("zod").ZodString;
249
- query: import("zod").ZodOptional<import("zod").ZodString>;
250
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
251
- rawText: import("zod").ZodString;
252
- canonicalText: import("zod").ZodString;
253
- startIndex: import("zod").ZodNumber;
254
- }, "strip", import("zod").ZodTypeAny, {
255
- rawText: string;
256
- canonicalText: string;
257
- startIndex: number;
258
- }, {
259
- rawText: string;
260
- canonicalText: string;
261
- startIndex: number;
262
- }>, "many">>;
263
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
264
- intent: import("zod").ZodObject<{
265
- name: import("zod").ZodString;
266
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
267
- name: import("zod").ZodString;
268
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
269
- name: import("zod").ZodString;
270
- }, import("zod").ZodTypeAny, "passthrough">>;
271
- confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
272
- }, import("zod").ZodTypeAny, "passthrough">>;
273
- }, import("zod").ZodTypeAny, "passthrough">;
47
+ export declare const isIntentRequest: (request: unknown) => request is {
48
+ type: "intent";
49
+ payload: {
50
+ intent: {
51
+ name: string;
52
+ } & {
53
+ [k: string]: unknown;
54
+ };
55
+ query: string;
56
+ entities: {
57
+ value: string;
58
+ name: string;
59
+ query?: string | undefined;
60
+ verboseValue?: {
61
+ rawText: string;
62
+ canonicalText: string;
63
+ startIndex: number;
64
+ }[] | undefined;
65
+ }[];
66
+ actions?: {
67
+ type: string;
68
+ payload?: unknown;
69
+ }[] | undefined;
70
+ label?: string | undefined;
71
+ data?: Record<string, any> | undefined;
72
+ confidence?: number | undefined;
73
+ };
74
+ diagramID?: string | undefined;
75
+ };
274
76
  //# sourceMappingURL=request.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.util.d.ts","sourceRoot":"","sources":["../../src/request.util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,YAAa,OAAO;;;;2CAAsE,CAAC;AAErH,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CACH,CAAC;AAE9C,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CACH,CAAC"}
1
+ {"version":3,"file":"request.util.d.ts","sourceRoot":"","sources":["../../src/request.util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,YAAa,OAAO;;;;2CAAsE,CAAC;AAErH,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CACH,CAAC;AAE9C,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACH,CAAC"}
@@ -83,7 +83,7 @@ export declare const startNodeFactory: ({ data, coords, ...rest }?: NodeFactoryO
83
83
  color?: string | undefined;
84
84
  steps?: string[] | undefined;
85
85
  triggers?: {
86
- type: "intent";
86
+ type: "intent" | "event";
87
87
  id: string;
88
88
  resourceID: string | null;
89
89
  settings: {
@@ -188,7 +188,7 @@ export declare const blockNodeFactory: ({ data, ...rest }: NodeFactoryOptions<Bl
188
188
  export declare const triggerNodeFactory: ({ data, ...reset }?: NodeFactoryOptions<TriggerNode>) => {
189
189
  data: {
190
190
  items: {
191
- type: "intent";
191
+ type: "intent" | "event";
192
192
  id: string;
193
193
  resourceID: string | null;
194
194
  settings: {
@@ -10,265 +10,67 @@ export declare const isActionRequest: (request: unknown) => request is import("z
10
10
  actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
11
11
  type: import("zod").ZodString;
12
12
  payload: import("zod").ZodUnknown;
13
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
14
- type: import("zod").ZodString;
15
- payload: import("zod").ZodUnknown;
16
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
17
- type: import("zod").ZodString;
18
- payload: import("zod").ZodUnknown;
19
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ type: string;
15
+ payload?: unknown;
16
+ }, {
17
+ type: string;
18
+ payload?: unknown;
19
+ }>, "many">>;
20
20
  label: import("zod").ZodOptional<import("zod").ZodString>;
21
21
  }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
22
22
  actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
23
23
  type: import("zod").ZodString;
24
24
  payload: import("zod").ZodUnknown;
25
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
26
- type: import("zod").ZodString;
27
- payload: import("zod").ZodUnknown;
28
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
29
- type: import("zod").ZodString;
30
- payload: import("zod").ZodUnknown;
31
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ type: string;
27
+ payload?: unknown;
28
+ }, {
29
+ type: string;
30
+ payload?: unknown;
31
+ }>, "many">>;
32
32
  label: import("zod").ZodOptional<import("zod").ZodString>;
33
33
  }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
34
34
  actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
35
35
  type: import("zod").ZodString;
36
36
  payload: import("zod").ZodUnknown;
37
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
38
- type: import("zod").ZodString;
39
- payload: import("zod").ZodUnknown;
40
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
41
- type: import("zod").ZodString;
42
- payload: import("zod").ZodUnknown;
43
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
37
+ }, "strip", import("zod").ZodTypeAny, {
38
+ type: string;
39
+ payload?: unknown;
40
+ }, {
41
+ type: string;
42
+ payload?: unknown;
43
+ }>, "many">>;
44
44
  label: import("zod").ZodOptional<import("zod").ZodString>;
45
45
  }, import("zod").ZodTypeAny, "passthrough">>>;
46
46
  }, import("zod").ZodTypeAny, "passthrough">;
47
- export declare const isIntentRequest: (request: unknown) => request is import("zod").objectOutputType<{
48
- diagramID: import("zod").ZodOptional<import("zod").ZodString>;
49
- type: import("zod").ZodLiteral<"intent">;
50
- payload: import("zod").ZodObject<{
51
- actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
52
- type: import("zod").ZodString;
53
- payload: import("zod").ZodUnknown;
54
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
55
- type: import("zod").ZodString;
56
- payload: import("zod").ZodUnknown;
57
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
58
- type: import("zod").ZodString;
59
- payload: import("zod").ZodUnknown;
60
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
61
- label: import("zod").ZodOptional<import("zod").ZodString>;
62
- data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
63
- query: import("zod").ZodDefault<import("zod").ZodString>;
64
- entities: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
65
- name: import("zod").ZodString;
66
- value: import("zod").ZodString;
67
- query: import("zod").ZodOptional<import("zod").ZodString>;
68
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
69
- rawText: import("zod").ZodString;
70
- canonicalText: import("zod").ZodString;
71
- startIndex: import("zod").ZodNumber;
72
- }, "strip", import("zod").ZodTypeAny, {
73
- rawText: string;
74
- canonicalText: string;
75
- startIndex: number;
76
- }, {
77
- rawText: string;
78
- canonicalText: string;
79
- startIndex: number;
80
- }>, "many">>;
81
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
82
- name: import("zod").ZodString;
83
- value: import("zod").ZodString;
84
- query: import("zod").ZodOptional<import("zod").ZodString>;
85
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
86
- rawText: import("zod").ZodString;
87
- canonicalText: import("zod").ZodString;
88
- startIndex: import("zod").ZodNumber;
89
- }, "strip", import("zod").ZodTypeAny, {
90
- rawText: string;
91
- canonicalText: string;
92
- startIndex: number;
93
- }, {
94
- rawText: string;
95
- canonicalText: string;
96
- startIndex: number;
97
- }>, "many">>;
98
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
99
- name: import("zod").ZodString;
100
- value: import("zod").ZodString;
101
- query: import("zod").ZodOptional<import("zod").ZodString>;
102
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
103
- rawText: import("zod").ZodString;
104
- canonicalText: import("zod").ZodString;
105
- startIndex: import("zod").ZodNumber;
106
- }, "strip", import("zod").ZodTypeAny, {
107
- rawText: string;
108
- canonicalText: string;
109
- startIndex: number;
110
- }, {
111
- rawText: string;
112
- canonicalText: string;
113
- startIndex: number;
114
- }>, "many">>;
115
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
116
- intent: import("zod").ZodObject<{
117
- name: import("zod").ZodString;
118
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
119
- name: import("zod").ZodString;
120
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
121
- name: import("zod").ZodString;
122
- }, import("zod").ZodTypeAny, "passthrough">>;
123
- confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
124
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
125
- actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
126
- type: import("zod").ZodString;
127
- payload: import("zod").ZodUnknown;
128
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
129
- type: import("zod").ZodString;
130
- payload: import("zod").ZodUnknown;
131
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
132
- type: import("zod").ZodString;
133
- payload: import("zod").ZodUnknown;
134
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
135
- label: import("zod").ZodOptional<import("zod").ZodString>;
136
- data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
137
- query: import("zod").ZodDefault<import("zod").ZodString>;
138
- entities: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
139
- name: import("zod").ZodString;
140
- value: import("zod").ZodString;
141
- query: import("zod").ZodOptional<import("zod").ZodString>;
142
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
143
- rawText: import("zod").ZodString;
144
- canonicalText: import("zod").ZodString;
145
- startIndex: import("zod").ZodNumber;
146
- }, "strip", import("zod").ZodTypeAny, {
147
- rawText: string;
148
- canonicalText: string;
149
- startIndex: number;
150
- }, {
151
- rawText: string;
152
- canonicalText: string;
153
- startIndex: number;
154
- }>, "many">>;
155
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
156
- name: import("zod").ZodString;
157
- value: import("zod").ZodString;
158
- query: import("zod").ZodOptional<import("zod").ZodString>;
159
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
160
- rawText: import("zod").ZodString;
161
- canonicalText: import("zod").ZodString;
162
- startIndex: import("zod").ZodNumber;
163
- }, "strip", import("zod").ZodTypeAny, {
164
- rawText: string;
165
- canonicalText: string;
166
- startIndex: number;
167
- }, {
168
- rawText: string;
169
- canonicalText: string;
170
- startIndex: number;
171
- }>, "many">>;
172
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
173
- name: import("zod").ZodString;
174
- value: import("zod").ZodString;
175
- query: import("zod").ZodOptional<import("zod").ZodString>;
176
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
177
- rawText: import("zod").ZodString;
178
- canonicalText: import("zod").ZodString;
179
- startIndex: import("zod").ZodNumber;
180
- }, "strip", import("zod").ZodTypeAny, {
181
- rawText: string;
182
- canonicalText: string;
183
- startIndex: number;
184
- }, {
185
- rawText: string;
186
- canonicalText: string;
187
- startIndex: number;
188
- }>, "many">>;
189
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
190
- intent: import("zod").ZodObject<{
191
- name: import("zod").ZodString;
192
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
193
- name: import("zod").ZodString;
194
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
195
- name: import("zod").ZodString;
196
- }, import("zod").ZodTypeAny, "passthrough">>;
197
- confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
198
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
199
- actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
200
- type: import("zod").ZodString;
201
- payload: import("zod").ZodUnknown;
202
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
203
- type: import("zod").ZodString;
204
- payload: import("zod").ZodUnknown;
205
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
206
- type: import("zod").ZodString;
207
- payload: import("zod").ZodUnknown;
208
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
209
- label: import("zod").ZodOptional<import("zod").ZodString>;
210
- data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
211
- query: import("zod").ZodDefault<import("zod").ZodString>;
212
- entities: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
213
- name: import("zod").ZodString;
214
- value: import("zod").ZodString;
215
- query: import("zod").ZodOptional<import("zod").ZodString>;
216
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
217
- rawText: import("zod").ZodString;
218
- canonicalText: import("zod").ZodString;
219
- startIndex: import("zod").ZodNumber;
220
- }, "strip", import("zod").ZodTypeAny, {
221
- rawText: string;
222
- canonicalText: string;
223
- startIndex: number;
224
- }, {
225
- rawText: string;
226
- canonicalText: string;
227
- startIndex: number;
228
- }>, "many">>;
229
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
230
- name: import("zod").ZodString;
231
- value: import("zod").ZodString;
232
- query: import("zod").ZodOptional<import("zod").ZodString>;
233
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
234
- rawText: import("zod").ZodString;
235
- canonicalText: import("zod").ZodString;
236
- startIndex: import("zod").ZodNumber;
237
- }, "strip", import("zod").ZodTypeAny, {
238
- rawText: string;
239
- canonicalText: string;
240
- startIndex: number;
241
- }, {
242
- rawText: string;
243
- canonicalText: string;
244
- startIndex: number;
245
- }>, "many">>;
246
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
247
- name: import("zod").ZodString;
248
- value: import("zod").ZodString;
249
- query: import("zod").ZodOptional<import("zod").ZodString>;
250
- verboseValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
251
- rawText: import("zod").ZodString;
252
- canonicalText: import("zod").ZodString;
253
- startIndex: import("zod").ZodNumber;
254
- }, "strip", import("zod").ZodTypeAny, {
255
- rawText: string;
256
- canonicalText: string;
257
- startIndex: number;
258
- }, {
259
- rawText: string;
260
- canonicalText: string;
261
- startIndex: number;
262
- }>, "many">>;
263
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
264
- intent: import("zod").ZodObject<{
265
- name: import("zod").ZodString;
266
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
267
- name: import("zod").ZodString;
268
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
269
- name: import("zod").ZodString;
270
- }, import("zod").ZodTypeAny, "passthrough">>;
271
- confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
272
- }, import("zod").ZodTypeAny, "passthrough">>;
273
- }, import("zod").ZodTypeAny, "passthrough">;
47
+ export declare const isIntentRequest: (request: unknown) => request is {
48
+ type: "intent";
49
+ payload: {
50
+ intent: {
51
+ name: string;
52
+ } & {
53
+ [k: string]: unknown;
54
+ };
55
+ query: string;
56
+ entities: {
57
+ value: string;
58
+ name: string;
59
+ query?: string | undefined;
60
+ verboseValue?: {
61
+ rawText: string;
62
+ canonicalText: string;
63
+ startIndex: number;
64
+ }[] | undefined;
65
+ }[];
66
+ actions?: {
67
+ type: string;
68
+ payload?: unknown;
69
+ }[] | undefined;
70
+ label?: string | undefined;
71
+ data?: Record<string, any> | undefined;
72
+ confidence?: number | undefined;
73
+ };
74
+ diagramID?: string | undefined;
75
+ };
274
76
  //# sourceMappingURL=request.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.util.d.ts","sourceRoot":"","sources":["../../src/request.util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,YAAa,OAAO;;;;2CAAsE,CAAC;AAErH,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CACH,CAAC;AAE9C,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CACH,CAAC"}
1
+ {"version":3,"file":"request.util.d.ts","sourceRoot":"","sources":["../../src/request.util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,YAAa,OAAO;;;;2CAAsE,CAAC;AAErH,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CACH,CAAC;AAE9C,eAAO,MAAM,eAAe,YAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/utils-designer",
3
- "version": "1.38.6",
3
+ "version": "1.38.8",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./build/cjs/main.d.ts",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@voiceflow/common": "8.3.1",
34
- "@voiceflow/dtos": "1.171.0",
34
+ "@voiceflow/dtos": "1.171.2",
35
35
  "bidirectional-adapter": "1.2.1",
36
36
  "slate": "^0.103.0",
37
37
  "zod": "3.22.4"
@@ -42,5 +42,5 @@
42
42
  "volta": {
43
43
  "extends": "../../package.json"
44
44
  },
45
- "gitHead": "72da0d1418722115fc9856c8d38e0c6e99b9c01e"
45
+ "gitHead": "5bd650af0e02910d7ab70dd350774b67a1143e08"
46
46
  }