@whitewall/blip-sdk 0.0.190 → 0.0.192

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 (42) hide show
  1. package/dist/cjs/client.js.map +1 -1
  2. package/dist/cjs/index.js +1 -0
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/flow.js +13 -8
  5. package/dist/cjs/types/flow.js.map +1 -1
  6. package/dist/cjs/utils/builder.js +40 -21
  7. package/dist/cjs/utils/builder.js.map +1 -1
  8. package/dist/cjs/utils/minifier.js +460 -0
  9. package/dist/cjs/utils/minifier.js.map +1 -0
  10. package/dist/cjs/utils/whatsapp.js +7 -0
  11. package/dist/cjs/utils/whatsapp.js.map +1 -1
  12. package/dist/esm/client.js.map +1 -1
  13. package/dist/esm/index.js +1 -0
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/types/flow.js +11 -6
  16. package/dist/esm/types/flow.js.map +1 -1
  17. package/dist/esm/utils/builder.js +38 -19
  18. package/dist/esm/utils/builder.js.map +1 -1
  19. package/dist/esm/utils/minifier.js +455 -0
  20. package/dist/esm/utils/minifier.js.map +1 -0
  21. package/dist/esm/utils/whatsapp.js +6 -0
  22. package/dist/esm/utils/whatsapp.js.map +1 -1
  23. package/dist/types/client.d.ts +2 -1
  24. package/dist/types/client.d.ts.map +1 -1
  25. package/dist/types/index.d.ts +1 -0
  26. package/dist/types/index.d.ts.map +1 -1
  27. package/dist/types/namespaces/account.d.ts +20 -20
  28. package/dist/types/types/flow.d.ts +253 -96
  29. package/dist/types/types/flow.d.ts.map +1 -1
  30. package/dist/types/utils/builder.d.ts +28 -16
  31. package/dist/types/utils/builder.d.ts.map +1 -1
  32. package/dist/types/utils/minifier.d.ts +2565 -0
  33. package/dist/types/utils/minifier.d.ts.map +1 -0
  34. package/dist/types/utils/whatsapp.d.ts +2 -0
  35. package/dist/types/utils/whatsapp.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/client.ts +2 -1
  38. package/src/index.ts +1 -0
  39. package/src/types/flow.ts +12 -6
  40. package/src/utils/builder.ts +62 -41
  41. package/src/utils/minifier.ts +554 -0
  42. package/src/utils/whatsapp.ts +7 -0
@@ -0,0 +1,2565 @@
1
+ /**
2
+ * Round-trippable projection of a builder flow.
3
+ *
4
+ * Unlike the digest in `./builder.ts`, this keeps the `$`-prefixed keys and maps
5
+ * 1:1 onto the builder document: `minifyFlow` strips only the metadata the
6
+ * builder regenerates on its own, and `expandMinifiedFlow` rebuilds it, so a
7
+ * minified flow can be edited by hand and pushed back.
8
+ */
9
+ import { z } from 'zod';
10
+ import { type Flow } from '../types/flow.ts';
11
+ /**
12
+ * `stateSchema` minus the metadata `minifyFlow` strips. It is strict on purpose:
13
+ * minified flows are edited by hand, so an unknown key is almost always a typo
14
+ * that would otherwise be silently dropped on push.
15
+ */
16
+ export declare const minifiedStateSchema: z.ZodObject<{
17
+ $inputSuggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ isAiGenerated: z.ZodOptional<z.ZodBoolean>;
19
+ deskStateVersion: z.ZodOptional<z.ZodString>;
20
+ $tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ id: z.ZodString;
22
+ label: z.ZodString;
23
+ background: z.ZodString;
24
+ canChangeBackground: z.ZodBoolean;
25
+ }, z.core.$strip>>>;
26
+ id: z.ZodOptional<z.ZodString>;
27
+ root: z.ZodOptional<z.ZodBoolean>;
28
+ $title: z.ZodString;
29
+ $position: z.ZodOptional<z.ZodObject<{
30
+ top: z.ZodString;
31
+ left: z.ZodString;
32
+ }, z.core.$strip>>;
33
+ $invalidContentActions: z.ZodOptional<z.ZodBoolean>;
34
+ $invalidOutputs: z.ZodOptional<z.ZodBoolean>;
35
+ $invalidCustomActions: z.ZodOptional<z.ZodBoolean>;
36
+ $invalid: z.ZodOptional<z.ZodBoolean>;
37
+ $whiteWallIntegration: z.ZodOptional<z.ZodUnknown>;
38
+ $enteringCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
39
+ $id: z.ZodOptional<z.ZodString>;
40
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
41
+ "": "";
42
+ text: "text";
43
+ "select-immediate": "select-immediate";
44
+ select: "select";
45
+ media: "media";
46
+ "media-audio": "media-audio";
47
+ "media-video": "media-video";
48
+ "media-document": "media-document";
49
+ "chat-state": "chat-state";
50
+ "web-link": "web-link";
51
+ "raw-content": "raw-content";
52
+ }>>;
53
+ $title: z.ZodOptional<z.ZodString>;
54
+ $invalid: z.ZodOptional<z.ZodBoolean>;
55
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
+ source: z.ZodEnum<{
57
+ context: "context";
58
+ input: "input";
59
+ }>;
60
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ comparison: z.ZodEnum<{
62
+ endsWith: "endsWith";
63
+ startsWith: "startsWith";
64
+ equals: "equals";
65
+ notEquals: "notEquals";
66
+ contains: "contains";
67
+ greaterThan: "greaterThan";
68
+ lessThan: "lessThan";
69
+ greaterThanOrEquals: "greaterThanOrEquals";
70
+ lessThanOrEquals: "lessThanOrEquals";
71
+ matches: "matches";
72
+ approximateTo: "approximateTo";
73
+ exists: "exists";
74
+ notExists: "notExists";
75
+ }>;
76
+ operator: z.ZodOptional<z.ZodEnum<{
77
+ or: "or";
78
+ and: "and";
79
+ }>>;
80
+ values: z.ZodArray<z.ZodString>;
81
+ }, z.core.$strip>>>;
82
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
+ editable: z.ZodBoolean;
84
+ deletable: z.ZodBoolean;
85
+ position: z.ZodLiteral<"left">;
86
+ document: z.ZodObject<{
87
+ id: z.ZodString;
88
+ type: z.ZodString;
89
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
90
+ title: z.ZodOptional<z.ZodString>;
91
+ text: z.ZodOptional<z.ZodString>;
92
+ type: z.ZodString;
93
+ uri: z.ZodString;
94
+ }, z.core.$strip>]>, z.ZodObject<{
95
+ text: z.ZodString;
96
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
97
+ immediate: "immediate";
98
+ persistent: "persistent";
99
+ }>>>;
100
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
101
+ text: z.ZodString;
102
+ }, z.core.$strip>>]>;
103
+ }, z.core.$strip>]>, z.ZodObject<{
104
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ text: z.ZodString;
106
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
107
+ blank: "blank";
108
+ self: "self";
109
+ selfCompact: "selfCompact";
110
+ selfTall: "selfTall";
111
+ }>>>;
112
+ uri: z.ZodString;
113
+ }, z.core.$strip>]>, z.ZodObject<{
114
+ state: z.ZodString;
115
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
116
+ }, z.core.$strip>]>, z.ZodString]>;
117
+ textContent: z.ZodOptional<z.ZodString>;
118
+ }, z.core.$strip>;
119
+ }, z.core.$strip>>>;
120
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
121
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
122
+ type: z.ZodLiteral<"SendMessage">;
123
+ settings: z.ZodObject<{
124
+ $invalid: z.ZodOptional<z.ZodBoolean>;
125
+ type: z.ZodOptional<z.ZodEnum<{
126
+ "text/plain": "text/plain";
127
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
128
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
129
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
130
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
131
+ }>>;
132
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
133
+ title: z.ZodOptional<z.ZodString>;
134
+ text: z.ZodOptional<z.ZodString>;
135
+ type: z.ZodString;
136
+ uri: z.ZodString;
137
+ }, z.core.$strip>]>, z.ZodObject<{
138
+ text: z.ZodString;
139
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
140
+ immediate: "immediate";
141
+ persistent: "persistent";
142
+ }>>>;
143
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
144
+ text: z.ZodString;
145
+ }, z.core.$strip>>]>;
146
+ }, z.core.$strip>]>, z.ZodObject<{
147
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ text: z.ZodString;
149
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
150
+ blank: "blank";
151
+ self: "self";
152
+ selfCompact: "selfCompact";
153
+ selfTall: "selfTall";
154
+ }>>>;
155
+ uri: z.ZodString;
156
+ }, z.core.$strip>]>, z.ZodObject<{
157
+ state: z.ZodString;
158
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
159
+ }, z.core.$strip>]>;
160
+ id: z.ZodOptional<z.ZodString>;
161
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
162
+ }, z.core.$strip>;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ type: z.ZodLiteral<"SendRawMessage">;
165
+ settings: z.ZodObject<{
166
+ $invalid: z.ZodOptional<z.ZodBoolean>;
167
+ type: z.ZodOptional<z.ZodString>;
168
+ rawContent: z.ZodString;
169
+ }, z.core.$strip>;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ type: z.ZodLiteral<"TrackEvent">;
172
+ settings: z.ZodObject<{
173
+ $invalid: z.ZodOptional<z.ZodBoolean>;
174
+ category: z.ZodString;
175
+ action: z.ZodString;
176
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
177
+ }, z.core.$strip>;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ type: z.ZodLiteral<"ProcessHttp">;
180
+ settings: z.ZodObject<{
181
+ $invalid: z.ZodOptional<z.ZodBoolean>;
182
+ method: z.ZodEnum<{
183
+ POST: "POST";
184
+ GET: "GET";
185
+ PUT: "PUT";
186
+ DELETE: "DELETE";
187
+ }>;
188
+ uri: z.ZodString;
189
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
190
+ body: z.ZodString;
191
+ responseBodyVariable: z.ZodString;
192
+ responseStatusVariable: z.ZodString;
193
+ }, z.core.$strip>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ type: z.ZodLiteral<"MergeContact">;
196
+ settings: z.ZodObject<{
197
+ $invalid: z.ZodOptional<z.ZodBoolean>;
198
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
202
+ }, z.core.$strip>;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ type: z.ZodLiteral<"ExecuteScript">;
205
+ settings: z.ZodObject<{
206
+ $invalid: z.ZodOptional<z.ZodBoolean>;
207
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
208
+ source: z.ZodString;
209
+ inputVariables: z.ZodArray<z.ZodString>;
210
+ outputVariable: z.ZodString;
211
+ }, z.core.$strip>;
212
+ }, z.core.$strip>, z.ZodObject<{
213
+ type: z.ZodLiteral<"ExecuteScriptV2">;
214
+ settings: z.ZodObject<{
215
+ $invalid: z.ZodOptional<z.ZodBoolean>;
216
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
217
+ source: z.ZodString;
218
+ inputVariables: z.ZodArray<z.ZodString>;
219
+ outputVariable: z.ZodString;
220
+ }, z.core.$strip>;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ type: z.ZodLiteral<"SetVariable">;
223
+ settings: z.ZodObject<{
224
+ $invalid: z.ZodOptional<z.ZodBoolean>;
225
+ variable: z.ZodString;
226
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
227
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
228
+ }, z.core.$strip>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ type: z.ZodLiteral<"ProcessCommand">;
231
+ settings: z.ZodObject<{
232
+ $invalid: z.ZodOptional<z.ZodBoolean>;
233
+ to: z.ZodString;
234
+ method: z.ZodEnum<{
235
+ get: "get";
236
+ set: "set";
237
+ merge: "merge";
238
+ delete: "delete";
239
+ }>;
240
+ uri: z.ZodString;
241
+ variable: z.ZodString;
242
+ from: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strip>;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ type: z.ZodLiteral<"ForwardToDesk">;
246
+ settings: z.ZodObject<{
247
+ $invalid: z.ZodOptional<z.ZodBoolean>;
248
+ }, z.core.$strip>;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<"LeavingFromDesk">;
251
+ settings: z.ZodObject<{
252
+ $invalid: z.ZodOptional<z.ZodBoolean>;
253
+ }, z.core.$strip>;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ type: z.ZodLiteral<"Redirect">;
256
+ settings: z.ZodObject<{
257
+ $invalid: z.ZodOptional<z.ZodBoolean>;
258
+ address: z.ZodString;
259
+ context: z.ZodObject<{
260
+ type: z.ZodLiteral<"text/plain">;
261
+ value: z.ZodString;
262
+ }, z.core.$strip>;
263
+ }, z.core.$strip>;
264
+ }, z.core.$strip>], "type">>>;
265
+ $leavingCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
266
+ $id: z.ZodOptional<z.ZodString>;
267
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
268
+ "": "";
269
+ text: "text";
270
+ "select-immediate": "select-immediate";
271
+ select: "select";
272
+ media: "media";
273
+ "media-audio": "media-audio";
274
+ "media-video": "media-video";
275
+ "media-document": "media-document";
276
+ "chat-state": "chat-state";
277
+ "web-link": "web-link";
278
+ "raw-content": "raw-content";
279
+ }>>;
280
+ $title: z.ZodOptional<z.ZodString>;
281
+ $invalid: z.ZodOptional<z.ZodBoolean>;
282
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
283
+ source: z.ZodEnum<{
284
+ context: "context";
285
+ input: "input";
286
+ }>;
287
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ comparison: z.ZodEnum<{
289
+ endsWith: "endsWith";
290
+ startsWith: "startsWith";
291
+ equals: "equals";
292
+ notEquals: "notEquals";
293
+ contains: "contains";
294
+ greaterThan: "greaterThan";
295
+ lessThan: "lessThan";
296
+ greaterThanOrEquals: "greaterThanOrEquals";
297
+ lessThanOrEquals: "lessThanOrEquals";
298
+ matches: "matches";
299
+ approximateTo: "approximateTo";
300
+ exists: "exists";
301
+ notExists: "notExists";
302
+ }>;
303
+ operator: z.ZodOptional<z.ZodEnum<{
304
+ or: "or";
305
+ and: "and";
306
+ }>>;
307
+ values: z.ZodArray<z.ZodString>;
308
+ }, z.core.$strip>>>;
309
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
310
+ editable: z.ZodBoolean;
311
+ deletable: z.ZodBoolean;
312
+ position: z.ZodLiteral<"left">;
313
+ document: z.ZodObject<{
314
+ id: z.ZodString;
315
+ type: z.ZodString;
316
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
317
+ title: z.ZodOptional<z.ZodString>;
318
+ text: z.ZodOptional<z.ZodString>;
319
+ type: z.ZodString;
320
+ uri: z.ZodString;
321
+ }, z.core.$strip>]>, z.ZodObject<{
322
+ text: z.ZodString;
323
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
324
+ immediate: "immediate";
325
+ persistent: "persistent";
326
+ }>>>;
327
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
328
+ text: z.ZodString;
329
+ }, z.core.$strip>>]>;
330
+ }, z.core.$strip>]>, z.ZodObject<{
331
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
+ text: z.ZodString;
333
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
334
+ blank: "blank";
335
+ self: "self";
336
+ selfCompact: "selfCompact";
337
+ selfTall: "selfTall";
338
+ }>>>;
339
+ uri: z.ZodString;
340
+ }, z.core.$strip>]>, z.ZodObject<{
341
+ state: z.ZodString;
342
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
343
+ }, z.core.$strip>]>, z.ZodString]>;
344
+ textContent: z.ZodOptional<z.ZodString>;
345
+ }, z.core.$strip>;
346
+ }, z.core.$strip>>>;
347
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
348
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
349
+ type: z.ZodLiteral<"SendMessage">;
350
+ settings: z.ZodObject<{
351
+ $invalid: z.ZodOptional<z.ZodBoolean>;
352
+ type: z.ZodOptional<z.ZodEnum<{
353
+ "text/plain": "text/plain";
354
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
355
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
356
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
357
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
358
+ }>>;
359
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
360
+ title: z.ZodOptional<z.ZodString>;
361
+ text: z.ZodOptional<z.ZodString>;
362
+ type: z.ZodString;
363
+ uri: z.ZodString;
364
+ }, z.core.$strip>]>, z.ZodObject<{
365
+ text: z.ZodString;
366
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
367
+ immediate: "immediate";
368
+ persistent: "persistent";
369
+ }>>>;
370
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
371
+ text: z.ZodString;
372
+ }, z.core.$strip>>]>;
373
+ }, z.core.$strip>]>, z.ZodObject<{
374
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ text: z.ZodString;
376
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
377
+ blank: "blank";
378
+ self: "self";
379
+ selfCompact: "selfCompact";
380
+ selfTall: "selfTall";
381
+ }>>>;
382
+ uri: z.ZodString;
383
+ }, z.core.$strip>]>, z.ZodObject<{
384
+ state: z.ZodString;
385
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
386
+ }, z.core.$strip>]>;
387
+ id: z.ZodOptional<z.ZodString>;
388
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
389
+ }, z.core.$strip>;
390
+ }, z.core.$strip>, z.ZodObject<{
391
+ type: z.ZodLiteral<"SendRawMessage">;
392
+ settings: z.ZodObject<{
393
+ $invalid: z.ZodOptional<z.ZodBoolean>;
394
+ type: z.ZodOptional<z.ZodString>;
395
+ rawContent: z.ZodString;
396
+ }, z.core.$strip>;
397
+ }, z.core.$strip>, z.ZodObject<{
398
+ type: z.ZodLiteral<"TrackEvent">;
399
+ settings: z.ZodObject<{
400
+ $invalid: z.ZodOptional<z.ZodBoolean>;
401
+ category: z.ZodString;
402
+ action: z.ZodString;
403
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
404
+ }, z.core.$strip>;
405
+ }, z.core.$strip>, z.ZodObject<{
406
+ type: z.ZodLiteral<"ProcessHttp">;
407
+ settings: z.ZodObject<{
408
+ $invalid: z.ZodOptional<z.ZodBoolean>;
409
+ method: z.ZodEnum<{
410
+ POST: "POST";
411
+ GET: "GET";
412
+ PUT: "PUT";
413
+ DELETE: "DELETE";
414
+ }>;
415
+ uri: z.ZodString;
416
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
417
+ body: z.ZodString;
418
+ responseBodyVariable: z.ZodString;
419
+ responseStatusVariable: z.ZodString;
420
+ }, z.core.$strip>;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ type: z.ZodLiteral<"MergeContact">;
423
+ settings: z.ZodObject<{
424
+ $invalid: z.ZodOptional<z.ZodBoolean>;
425
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
426
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
429
+ }, z.core.$strip>;
430
+ }, z.core.$strip>, z.ZodObject<{
431
+ type: z.ZodLiteral<"ExecuteScript">;
432
+ settings: z.ZodObject<{
433
+ $invalid: z.ZodOptional<z.ZodBoolean>;
434
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
435
+ source: z.ZodString;
436
+ inputVariables: z.ZodArray<z.ZodString>;
437
+ outputVariable: z.ZodString;
438
+ }, z.core.$strip>;
439
+ }, z.core.$strip>, z.ZodObject<{
440
+ type: z.ZodLiteral<"ExecuteScriptV2">;
441
+ settings: z.ZodObject<{
442
+ $invalid: z.ZodOptional<z.ZodBoolean>;
443
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
444
+ source: z.ZodString;
445
+ inputVariables: z.ZodArray<z.ZodString>;
446
+ outputVariable: z.ZodString;
447
+ }, z.core.$strip>;
448
+ }, z.core.$strip>, z.ZodObject<{
449
+ type: z.ZodLiteral<"SetVariable">;
450
+ settings: z.ZodObject<{
451
+ $invalid: z.ZodOptional<z.ZodBoolean>;
452
+ variable: z.ZodString;
453
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
454
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
455
+ }, z.core.$strip>;
456
+ }, z.core.$strip>, z.ZodObject<{
457
+ type: z.ZodLiteral<"ProcessCommand">;
458
+ settings: z.ZodObject<{
459
+ $invalid: z.ZodOptional<z.ZodBoolean>;
460
+ to: z.ZodString;
461
+ method: z.ZodEnum<{
462
+ get: "get";
463
+ set: "set";
464
+ merge: "merge";
465
+ delete: "delete";
466
+ }>;
467
+ uri: z.ZodString;
468
+ variable: z.ZodString;
469
+ from: z.ZodOptional<z.ZodString>;
470
+ }, z.core.$strip>;
471
+ }, z.core.$strip>, z.ZodObject<{
472
+ type: z.ZodLiteral<"ForwardToDesk">;
473
+ settings: z.ZodObject<{
474
+ $invalid: z.ZodOptional<z.ZodBoolean>;
475
+ }, z.core.$strip>;
476
+ }, z.core.$strip>, z.ZodObject<{
477
+ type: z.ZodLiteral<"LeavingFromDesk">;
478
+ settings: z.ZodObject<{
479
+ $invalid: z.ZodOptional<z.ZodBoolean>;
480
+ }, z.core.$strip>;
481
+ }, z.core.$strip>, z.ZodObject<{
482
+ type: z.ZodLiteral<"Redirect">;
483
+ settings: z.ZodObject<{
484
+ $invalid: z.ZodOptional<z.ZodBoolean>;
485
+ address: z.ZodString;
486
+ context: z.ZodObject<{
487
+ type: z.ZodLiteral<"text/plain">;
488
+ value: z.ZodString;
489
+ }, z.core.$strip>;
490
+ }, z.core.$strip>;
491
+ }, z.core.$strip>], "type">>>;
492
+ $localCustomActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
493
+ $id: z.ZodOptional<z.ZodString>;
494
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
495
+ "": "";
496
+ text: "text";
497
+ "select-immediate": "select-immediate";
498
+ select: "select";
499
+ media: "media";
500
+ "media-audio": "media-audio";
501
+ "media-video": "media-video";
502
+ "media-document": "media-document";
503
+ "chat-state": "chat-state";
504
+ "web-link": "web-link";
505
+ "raw-content": "raw-content";
506
+ }>>;
507
+ $title: z.ZodOptional<z.ZodString>;
508
+ $invalid: z.ZodOptional<z.ZodBoolean>;
509
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
510
+ source: z.ZodEnum<{
511
+ context: "context";
512
+ input: "input";
513
+ }>;
514
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
+ comparison: z.ZodEnum<{
516
+ endsWith: "endsWith";
517
+ startsWith: "startsWith";
518
+ equals: "equals";
519
+ notEquals: "notEquals";
520
+ contains: "contains";
521
+ greaterThan: "greaterThan";
522
+ lessThan: "lessThan";
523
+ greaterThanOrEquals: "greaterThanOrEquals";
524
+ lessThanOrEquals: "lessThanOrEquals";
525
+ matches: "matches";
526
+ approximateTo: "approximateTo";
527
+ exists: "exists";
528
+ notExists: "notExists";
529
+ }>;
530
+ operator: z.ZodOptional<z.ZodEnum<{
531
+ or: "or";
532
+ and: "and";
533
+ }>>;
534
+ values: z.ZodArray<z.ZodString>;
535
+ }, z.core.$strip>>>;
536
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
537
+ editable: z.ZodBoolean;
538
+ deletable: z.ZodBoolean;
539
+ position: z.ZodLiteral<"left">;
540
+ document: z.ZodObject<{
541
+ id: z.ZodString;
542
+ type: z.ZodString;
543
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
544
+ title: z.ZodOptional<z.ZodString>;
545
+ text: z.ZodOptional<z.ZodString>;
546
+ type: z.ZodString;
547
+ uri: z.ZodString;
548
+ }, z.core.$strip>]>, z.ZodObject<{
549
+ text: z.ZodString;
550
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
551
+ immediate: "immediate";
552
+ persistent: "persistent";
553
+ }>>>;
554
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
555
+ text: z.ZodString;
556
+ }, z.core.$strip>>]>;
557
+ }, z.core.$strip>]>, z.ZodObject<{
558
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
559
+ text: z.ZodString;
560
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
561
+ blank: "blank";
562
+ self: "self";
563
+ selfCompact: "selfCompact";
564
+ selfTall: "selfTall";
565
+ }>>>;
566
+ uri: z.ZodString;
567
+ }, z.core.$strip>]>, z.ZodObject<{
568
+ state: z.ZodString;
569
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
570
+ }, z.core.$strip>]>, z.ZodString]>;
571
+ textContent: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strip>;
573
+ }, z.core.$strip>>>;
574
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
575
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
576
+ type: z.ZodLiteral<"SendMessage">;
577
+ settings: z.ZodObject<{
578
+ $invalid: z.ZodOptional<z.ZodBoolean>;
579
+ type: z.ZodOptional<z.ZodEnum<{
580
+ "text/plain": "text/plain";
581
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
582
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
583
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
584
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
585
+ }>>;
586
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
587
+ title: z.ZodOptional<z.ZodString>;
588
+ text: z.ZodOptional<z.ZodString>;
589
+ type: z.ZodString;
590
+ uri: z.ZodString;
591
+ }, z.core.$strip>]>, z.ZodObject<{
592
+ text: z.ZodString;
593
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
594
+ immediate: "immediate";
595
+ persistent: "persistent";
596
+ }>>>;
597
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
598
+ text: z.ZodString;
599
+ }, z.core.$strip>>]>;
600
+ }, z.core.$strip>]>, z.ZodObject<{
601
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
+ text: z.ZodString;
603
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
604
+ blank: "blank";
605
+ self: "self";
606
+ selfCompact: "selfCompact";
607
+ selfTall: "selfTall";
608
+ }>>>;
609
+ uri: z.ZodString;
610
+ }, z.core.$strip>]>, z.ZodObject<{
611
+ state: z.ZodString;
612
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
613
+ }, z.core.$strip>]>;
614
+ id: z.ZodOptional<z.ZodString>;
615
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
616
+ }, z.core.$strip>;
617
+ }, z.core.$strip>, z.ZodObject<{
618
+ type: z.ZodLiteral<"SendRawMessage">;
619
+ settings: z.ZodObject<{
620
+ $invalid: z.ZodOptional<z.ZodBoolean>;
621
+ type: z.ZodOptional<z.ZodString>;
622
+ rawContent: z.ZodString;
623
+ }, z.core.$strip>;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ type: z.ZodLiteral<"TrackEvent">;
626
+ settings: z.ZodObject<{
627
+ $invalid: z.ZodOptional<z.ZodBoolean>;
628
+ category: z.ZodString;
629
+ action: z.ZodString;
630
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
631
+ }, z.core.$strip>;
632
+ }, z.core.$strip>, z.ZodObject<{
633
+ type: z.ZodLiteral<"ProcessHttp">;
634
+ settings: z.ZodObject<{
635
+ $invalid: z.ZodOptional<z.ZodBoolean>;
636
+ method: z.ZodEnum<{
637
+ POST: "POST";
638
+ GET: "GET";
639
+ PUT: "PUT";
640
+ DELETE: "DELETE";
641
+ }>;
642
+ uri: z.ZodString;
643
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
644
+ body: z.ZodString;
645
+ responseBodyVariable: z.ZodString;
646
+ responseStatusVariable: z.ZodString;
647
+ }, z.core.$strip>;
648
+ }, z.core.$strip>, z.ZodObject<{
649
+ type: z.ZodLiteral<"MergeContact">;
650
+ settings: z.ZodObject<{
651
+ $invalid: z.ZodOptional<z.ZodBoolean>;
652
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
656
+ }, z.core.$strip>;
657
+ }, z.core.$strip>, z.ZodObject<{
658
+ type: z.ZodLiteral<"ExecuteScript">;
659
+ settings: z.ZodObject<{
660
+ $invalid: z.ZodOptional<z.ZodBoolean>;
661
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
662
+ source: z.ZodString;
663
+ inputVariables: z.ZodArray<z.ZodString>;
664
+ outputVariable: z.ZodString;
665
+ }, z.core.$strip>;
666
+ }, z.core.$strip>, z.ZodObject<{
667
+ type: z.ZodLiteral<"ExecuteScriptV2">;
668
+ settings: z.ZodObject<{
669
+ $invalid: z.ZodOptional<z.ZodBoolean>;
670
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
671
+ source: z.ZodString;
672
+ inputVariables: z.ZodArray<z.ZodString>;
673
+ outputVariable: z.ZodString;
674
+ }, z.core.$strip>;
675
+ }, z.core.$strip>, z.ZodObject<{
676
+ type: z.ZodLiteral<"SetVariable">;
677
+ settings: z.ZodObject<{
678
+ $invalid: z.ZodOptional<z.ZodBoolean>;
679
+ variable: z.ZodString;
680
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
681
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
682
+ }, z.core.$strip>;
683
+ }, z.core.$strip>, z.ZodObject<{
684
+ type: z.ZodLiteral<"ProcessCommand">;
685
+ settings: z.ZodObject<{
686
+ $invalid: z.ZodOptional<z.ZodBoolean>;
687
+ to: z.ZodString;
688
+ method: z.ZodEnum<{
689
+ get: "get";
690
+ set: "set";
691
+ merge: "merge";
692
+ delete: "delete";
693
+ }>;
694
+ uri: z.ZodString;
695
+ variable: z.ZodString;
696
+ from: z.ZodOptional<z.ZodString>;
697
+ }, z.core.$strip>;
698
+ }, z.core.$strip>, z.ZodObject<{
699
+ type: z.ZodLiteral<"ForwardToDesk">;
700
+ settings: z.ZodObject<{
701
+ $invalid: z.ZodOptional<z.ZodBoolean>;
702
+ }, z.core.$strip>;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ type: z.ZodLiteral<"LeavingFromDesk">;
705
+ settings: z.ZodObject<{
706
+ $invalid: z.ZodOptional<z.ZodBoolean>;
707
+ }, z.core.$strip>;
708
+ }, z.core.$strip>, z.ZodObject<{
709
+ type: z.ZodLiteral<"Redirect">;
710
+ settings: z.ZodObject<{
711
+ $invalid: z.ZodOptional<z.ZodBoolean>;
712
+ address: z.ZodString;
713
+ context: z.ZodObject<{
714
+ type: z.ZodLiteral<"text/plain">;
715
+ value: z.ZodString;
716
+ }, z.core.$strip>;
717
+ }, z.core.$strip>;
718
+ }, z.core.$strip>], "type">>>>;
719
+ $afterStateChangedActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
720
+ $id: z.ZodOptional<z.ZodString>;
721
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
722
+ "": "";
723
+ text: "text";
724
+ "select-immediate": "select-immediate";
725
+ select: "select";
726
+ media: "media";
727
+ "media-audio": "media-audio";
728
+ "media-video": "media-video";
729
+ "media-document": "media-document";
730
+ "chat-state": "chat-state";
731
+ "web-link": "web-link";
732
+ "raw-content": "raw-content";
733
+ }>>;
734
+ $title: z.ZodOptional<z.ZodString>;
735
+ $invalid: z.ZodOptional<z.ZodBoolean>;
736
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
737
+ source: z.ZodEnum<{
738
+ context: "context";
739
+ input: "input";
740
+ }>;
741
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
742
+ comparison: z.ZodEnum<{
743
+ endsWith: "endsWith";
744
+ startsWith: "startsWith";
745
+ equals: "equals";
746
+ notEquals: "notEquals";
747
+ contains: "contains";
748
+ greaterThan: "greaterThan";
749
+ lessThan: "lessThan";
750
+ greaterThanOrEquals: "greaterThanOrEquals";
751
+ lessThanOrEquals: "lessThanOrEquals";
752
+ matches: "matches";
753
+ approximateTo: "approximateTo";
754
+ exists: "exists";
755
+ notExists: "notExists";
756
+ }>;
757
+ operator: z.ZodOptional<z.ZodEnum<{
758
+ or: "or";
759
+ and: "and";
760
+ }>>;
761
+ values: z.ZodArray<z.ZodString>;
762
+ }, z.core.$strip>>>;
763
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
764
+ editable: z.ZodBoolean;
765
+ deletable: z.ZodBoolean;
766
+ position: z.ZodLiteral<"left">;
767
+ document: z.ZodObject<{
768
+ id: z.ZodString;
769
+ type: z.ZodString;
770
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
771
+ title: z.ZodOptional<z.ZodString>;
772
+ text: z.ZodOptional<z.ZodString>;
773
+ type: z.ZodString;
774
+ uri: z.ZodString;
775
+ }, z.core.$strip>]>, z.ZodObject<{
776
+ text: z.ZodString;
777
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
778
+ immediate: "immediate";
779
+ persistent: "persistent";
780
+ }>>>;
781
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
782
+ text: z.ZodString;
783
+ }, z.core.$strip>>]>;
784
+ }, z.core.$strip>]>, z.ZodObject<{
785
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
+ text: z.ZodString;
787
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
788
+ blank: "blank";
789
+ self: "self";
790
+ selfCompact: "selfCompact";
791
+ selfTall: "selfTall";
792
+ }>>>;
793
+ uri: z.ZodString;
794
+ }, z.core.$strip>]>, z.ZodObject<{
795
+ state: z.ZodString;
796
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
797
+ }, z.core.$strip>]>, z.ZodString]>;
798
+ textContent: z.ZodOptional<z.ZodString>;
799
+ }, z.core.$strip>;
800
+ }, z.core.$strip>>>;
801
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
802
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
803
+ type: z.ZodLiteral<"SendMessage">;
804
+ settings: z.ZodObject<{
805
+ $invalid: z.ZodOptional<z.ZodBoolean>;
806
+ type: z.ZodOptional<z.ZodEnum<{
807
+ "text/plain": "text/plain";
808
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
809
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
810
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
811
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
812
+ }>>;
813
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
814
+ title: z.ZodOptional<z.ZodString>;
815
+ text: z.ZodOptional<z.ZodString>;
816
+ type: z.ZodString;
817
+ uri: z.ZodString;
818
+ }, z.core.$strip>]>, z.ZodObject<{
819
+ text: z.ZodString;
820
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
821
+ immediate: "immediate";
822
+ persistent: "persistent";
823
+ }>>>;
824
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
825
+ text: z.ZodString;
826
+ }, z.core.$strip>>]>;
827
+ }, z.core.$strip>]>, z.ZodObject<{
828
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
+ text: z.ZodString;
830
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
831
+ blank: "blank";
832
+ self: "self";
833
+ selfCompact: "selfCompact";
834
+ selfTall: "selfTall";
835
+ }>>>;
836
+ uri: z.ZodString;
837
+ }, z.core.$strip>]>, z.ZodObject<{
838
+ state: z.ZodString;
839
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
840
+ }, z.core.$strip>]>;
841
+ id: z.ZodOptional<z.ZodString>;
842
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
843
+ }, z.core.$strip>;
844
+ }, z.core.$strip>, z.ZodObject<{
845
+ type: z.ZodLiteral<"SendRawMessage">;
846
+ settings: z.ZodObject<{
847
+ $invalid: z.ZodOptional<z.ZodBoolean>;
848
+ type: z.ZodOptional<z.ZodString>;
849
+ rawContent: z.ZodString;
850
+ }, z.core.$strip>;
851
+ }, z.core.$strip>, z.ZodObject<{
852
+ type: z.ZodLiteral<"TrackEvent">;
853
+ settings: z.ZodObject<{
854
+ $invalid: z.ZodOptional<z.ZodBoolean>;
855
+ category: z.ZodString;
856
+ action: z.ZodString;
857
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
858
+ }, z.core.$strip>;
859
+ }, z.core.$strip>, z.ZodObject<{
860
+ type: z.ZodLiteral<"ProcessHttp">;
861
+ settings: z.ZodObject<{
862
+ $invalid: z.ZodOptional<z.ZodBoolean>;
863
+ method: z.ZodEnum<{
864
+ POST: "POST";
865
+ GET: "GET";
866
+ PUT: "PUT";
867
+ DELETE: "DELETE";
868
+ }>;
869
+ uri: z.ZodString;
870
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
871
+ body: z.ZodString;
872
+ responseBodyVariable: z.ZodString;
873
+ responseStatusVariable: z.ZodString;
874
+ }, z.core.$strip>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ type: z.ZodLiteral<"MergeContact">;
877
+ settings: z.ZodObject<{
878
+ $invalid: z.ZodOptional<z.ZodBoolean>;
879
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
881
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
882
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
883
+ }, z.core.$strip>;
884
+ }, z.core.$strip>, z.ZodObject<{
885
+ type: z.ZodLiteral<"ExecuteScript">;
886
+ settings: z.ZodObject<{
887
+ $invalid: z.ZodOptional<z.ZodBoolean>;
888
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
889
+ source: z.ZodString;
890
+ inputVariables: z.ZodArray<z.ZodString>;
891
+ outputVariable: z.ZodString;
892
+ }, z.core.$strip>;
893
+ }, z.core.$strip>, z.ZodObject<{
894
+ type: z.ZodLiteral<"ExecuteScriptV2">;
895
+ settings: z.ZodObject<{
896
+ $invalid: z.ZodOptional<z.ZodBoolean>;
897
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
898
+ source: z.ZodString;
899
+ inputVariables: z.ZodArray<z.ZodString>;
900
+ outputVariable: z.ZodString;
901
+ }, z.core.$strip>;
902
+ }, z.core.$strip>, z.ZodObject<{
903
+ type: z.ZodLiteral<"SetVariable">;
904
+ settings: z.ZodObject<{
905
+ $invalid: z.ZodOptional<z.ZodBoolean>;
906
+ variable: z.ZodString;
907
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
908
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
909
+ }, z.core.$strip>;
910
+ }, z.core.$strip>, z.ZodObject<{
911
+ type: z.ZodLiteral<"ProcessCommand">;
912
+ settings: z.ZodObject<{
913
+ $invalid: z.ZodOptional<z.ZodBoolean>;
914
+ to: z.ZodString;
915
+ method: z.ZodEnum<{
916
+ get: "get";
917
+ set: "set";
918
+ merge: "merge";
919
+ delete: "delete";
920
+ }>;
921
+ uri: z.ZodString;
922
+ variable: z.ZodString;
923
+ from: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strip>;
925
+ }, z.core.$strip>, z.ZodObject<{
926
+ type: z.ZodLiteral<"ForwardToDesk">;
927
+ settings: z.ZodObject<{
928
+ $invalid: z.ZodOptional<z.ZodBoolean>;
929
+ }, z.core.$strip>;
930
+ }, z.core.$strip>, z.ZodObject<{
931
+ type: z.ZodLiteral<"LeavingFromDesk">;
932
+ settings: z.ZodObject<{
933
+ $invalid: z.ZodOptional<z.ZodBoolean>;
934
+ }, z.core.$strip>;
935
+ }, z.core.$strip>, z.ZodObject<{
936
+ type: z.ZodLiteral<"Redirect">;
937
+ settings: z.ZodObject<{
938
+ $invalid: z.ZodOptional<z.ZodBoolean>;
939
+ address: z.ZodString;
940
+ context: z.ZodObject<{
941
+ type: z.ZodLiteral<"text/plain">;
942
+ value: z.ZodString;
943
+ }, z.core.$strip>;
944
+ }, z.core.$strip>;
945
+ }, z.core.$strip>], "type">>>>;
946
+ $contentActions: z.ZodArray<z.ZodObject<{
947
+ action: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
948
+ $id: z.ZodOptional<z.ZodString>;
949
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
950
+ "": "";
951
+ text: "text";
952
+ "select-immediate": "select-immediate";
953
+ select: "select";
954
+ media: "media";
955
+ "media-audio": "media-audio";
956
+ "media-video": "media-video";
957
+ "media-document": "media-document";
958
+ "chat-state": "chat-state";
959
+ "web-link": "web-link";
960
+ "raw-content": "raw-content";
961
+ }>>;
962
+ $title: z.ZodOptional<z.ZodString>;
963
+ $invalid: z.ZodOptional<z.ZodBoolean>;
964
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
965
+ source: z.ZodEnum<{
966
+ context: "context";
967
+ input: "input";
968
+ }>;
969
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ comparison: z.ZodEnum<{
971
+ endsWith: "endsWith";
972
+ startsWith: "startsWith";
973
+ equals: "equals";
974
+ notEquals: "notEquals";
975
+ contains: "contains";
976
+ greaterThan: "greaterThan";
977
+ lessThan: "lessThan";
978
+ greaterThanOrEquals: "greaterThanOrEquals";
979
+ lessThanOrEquals: "lessThanOrEquals";
980
+ matches: "matches";
981
+ approximateTo: "approximateTo";
982
+ exists: "exists";
983
+ notExists: "notExists";
984
+ }>;
985
+ operator: z.ZodOptional<z.ZodEnum<{
986
+ or: "or";
987
+ and: "and";
988
+ }>>;
989
+ values: z.ZodArray<z.ZodString>;
990
+ }, z.core.$strip>>>;
991
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
992
+ editable: z.ZodBoolean;
993
+ deletable: z.ZodBoolean;
994
+ position: z.ZodLiteral<"left">;
995
+ document: z.ZodObject<{
996
+ id: z.ZodString;
997
+ type: z.ZodString;
998
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
999
+ title: z.ZodOptional<z.ZodString>;
1000
+ text: z.ZodOptional<z.ZodString>;
1001
+ type: z.ZodString;
1002
+ uri: z.ZodString;
1003
+ }, z.core.$strip>]>, z.ZodObject<{
1004
+ text: z.ZodString;
1005
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1006
+ immediate: "immediate";
1007
+ persistent: "persistent";
1008
+ }>>>;
1009
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1010
+ text: z.ZodString;
1011
+ }, z.core.$strip>>]>;
1012
+ }, z.core.$strip>]>, z.ZodObject<{
1013
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1014
+ text: z.ZodString;
1015
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1016
+ blank: "blank";
1017
+ self: "self";
1018
+ selfCompact: "selfCompact";
1019
+ selfTall: "selfTall";
1020
+ }>>>;
1021
+ uri: z.ZodString;
1022
+ }, z.core.$strip>]>, z.ZodObject<{
1023
+ state: z.ZodString;
1024
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1025
+ }, z.core.$strip>]>, z.ZodString]>;
1026
+ textContent: z.ZodOptional<z.ZodString>;
1027
+ }, z.core.$strip>;
1028
+ }, z.core.$strip>>>;
1029
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1030
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1031
+ type: z.ZodLiteral<"SendMessage">;
1032
+ settings: z.ZodObject<{
1033
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1034
+ type: z.ZodOptional<z.ZodEnum<{
1035
+ "text/plain": "text/plain";
1036
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1037
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1038
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1039
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1040
+ }>>;
1041
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1042
+ title: z.ZodOptional<z.ZodString>;
1043
+ text: z.ZodOptional<z.ZodString>;
1044
+ type: z.ZodString;
1045
+ uri: z.ZodString;
1046
+ }, z.core.$strip>]>, z.ZodObject<{
1047
+ text: z.ZodString;
1048
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1049
+ immediate: "immediate";
1050
+ persistent: "persistent";
1051
+ }>>>;
1052
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1053
+ text: z.ZodString;
1054
+ }, z.core.$strip>>]>;
1055
+ }, z.core.$strip>]>, z.ZodObject<{
1056
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
+ text: z.ZodString;
1058
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1059
+ blank: "blank";
1060
+ self: "self";
1061
+ selfCompact: "selfCompact";
1062
+ selfTall: "selfTall";
1063
+ }>>>;
1064
+ uri: z.ZodString;
1065
+ }, z.core.$strip>]>, z.ZodObject<{
1066
+ state: z.ZodString;
1067
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1068
+ }, z.core.$strip>]>;
1069
+ id: z.ZodOptional<z.ZodString>;
1070
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1071
+ }, z.core.$strip>;
1072
+ }, z.core.$strip>, z.ZodObject<{
1073
+ type: z.ZodLiteral<"SendRawMessage">;
1074
+ settings: z.ZodObject<{
1075
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1076
+ type: z.ZodOptional<z.ZodString>;
1077
+ rawContent: z.ZodString;
1078
+ }, z.core.$strip>;
1079
+ }, z.core.$strip>, z.ZodObject<{
1080
+ type: z.ZodLiteral<"TrackEvent">;
1081
+ settings: z.ZodObject<{
1082
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1083
+ category: z.ZodString;
1084
+ action: z.ZodString;
1085
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1086
+ }, z.core.$strip>;
1087
+ }, z.core.$strip>, z.ZodObject<{
1088
+ type: z.ZodLiteral<"ProcessHttp">;
1089
+ settings: z.ZodObject<{
1090
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1091
+ method: z.ZodEnum<{
1092
+ POST: "POST";
1093
+ GET: "GET";
1094
+ PUT: "PUT";
1095
+ DELETE: "DELETE";
1096
+ }>;
1097
+ uri: z.ZodString;
1098
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1099
+ body: z.ZodString;
1100
+ responseBodyVariable: z.ZodString;
1101
+ responseStatusVariable: z.ZodString;
1102
+ }, z.core.$strip>;
1103
+ }, z.core.$strip>, z.ZodObject<{
1104
+ type: z.ZodLiteral<"MergeContact">;
1105
+ settings: z.ZodObject<{
1106
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1107
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1108
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1109
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1111
+ }, z.core.$strip>;
1112
+ }, z.core.$strip>, z.ZodObject<{
1113
+ type: z.ZodLiteral<"ExecuteScript">;
1114
+ settings: z.ZodObject<{
1115
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1116
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1117
+ source: z.ZodString;
1118
+ inputVariables: z.ZodArray<z.ZodString>;
1119
+ outputVariable: z.ZodString;
1120
+ }, z.core.$strip>;
1121
+ }, z.core.$strip>, z.ZodObject<{
1122
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1123
+ settings: z.ZodObject<{
1124
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1125
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1126
+ source: z.ZodString;
1127
+ inputVariables: z.ZodArray<z.ZodString>;
1128
+ outputVariable: z.ZodString;
1129
+ }, z.core.$strip>;
1130
+ }, z.core.$strip>, z.ZodObject<{
1131
+ type: z.ZodLiteral<"SetVariable">;
1132
+ settings: z.ZodObject<{
1133
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1134
+ variable: z.ZodString;
1135
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1136
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1137
+ }, z.core.$strip>;
1138
+ }, z.core.$strip>, z.ZodObject<{
1139
+ type: z.ZodLiteral<"ProcessCommand">;
1140
+ settings: z.ZodObject<{
1141
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1142
+ to: z.ZodString;
1143
+ method: z.ZodEnum<{
1144
+ get: "get";
1145
+ set: "set";
1146
+ merge: "merge";
1147
+ delete: "delete";
1148
+ }>;
1149
+ uri: z.ZodString;
1150
+ variable: z.ZodString;
1151
+ from: z.ZodOptional<z.ZodString>;
1152
+ }, z.core.$strip>;
1153
+ }, z.core.$strip>, z.ZodObject<{
1154
+ type: z.ZodLiteral<"ForwardToDesk">;
1155
+ settings: z.ZodObject<{
1156
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1157
+ }, z.core.$strip>;
1158
+ }, z.core.$strip>, z.ZodObject<{
1159
+ type: z.ZodLiteral<"LeavingFromDesk">;
1160
+ settings: z.ZodObject<{
1161
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1162
+ }, z.core.$strip>;
1163
+ }, z.core.$strip>, z.ZodObject<{
1164
+ type: z.ZodLiteral<"Redirect">;
1165
+ settings: z.ZodObject<{
1166
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1167
+ address: z.ZodString;
1168
+ context: z.ZodObject<{
1169
+ type: z.ZodLiteral<"text/plain">;
1170
+ value: z.ZodString;
1171
+ }, z.core.$strip>;
1172
+ }, z.core.$strip>;
1173
+ }, z.core.$strip>], "type">>>;
1174
+ input: z.ZodOptional<z.ZodObject<{
1175
+ $cardContent: z.ZodOptional<z.ZodObject<{
1176
+ document: z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ type: z.ZodLiteral<"text/plain">;
1179
+ content: z.ZodOptional<z.ZodString>;
1180
+ textContent: z.ZodOptional<z.ZodString>;
1181
+ }, z.core.$strip>;
1182
+ editable: z.ZodBoolean;
1183
+ editing: z.ZodBoolean;
1184
+ deletable: z.ZodBoolean;
1185
+ position: z.ZodLiteral<"right">;
1186
+ }, z.core.$strip>>;
1187
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1188
+ bypass: z.ZodBoolean;
1189
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1190
+ rule: z.ZodEnum<{
1191
+ number: "number";
1192
+ type: "type";
1193
+ text: "text";
1194
+ date: "date";
1195
+ regex: "regex";
1196
+ }>;
1197
+ regex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1198
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1199
+ error: z.ZodString;
1200
+ }, z.core.$strip>>>;
1201
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1202
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1204
+ source: z.ZodEnum<{
1205
+ context: "context";
1206
+ input: "input";
1207
+ }>;
1208
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
+ comparison: z.ZodEnum<{
1210
+ endsWith: "endsWith";
1211
+ startsWith: "startsWith";
1212
+ equals: "equals";
1213
+ notEquals: "notEquals";
1214
+ contains: "contains";
1215
+ greaterThan: "greaterThan";
1216
+ lessThan: "lessThan";
1217
+ greaterThanOrEquals: "greaterThanOrEquals";
1218
+ lessThanOrEquals: "lessThanOrEquals";
1219
+ matches: "matches";
1220
+ approximateTo: "approximateTo";
1221
+ exists: "exists";
1222
+ notExists: "notExists";
1223
+ }>;
1224
+ operator: z.ZodOptional<z.ZodEnum<{
1225
+ or: "or";
1226
+ and: "and";
1227
+ }>>;
1228
+ values: z.ZodArray<z.ZodString>;
1229
+ }, z.core.$strip>>>;
1230
+ }, z.core.$strict>>;
1231
+ }, z.core.$strict>>;
1232
+ $conditionOutputs: z.ZodArray<z.ZodObject<{
1233
+ stateId: z.ZodString;
1234
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
1235
+ state: "state";
1236
+ variable: "variable";
1237
+ }>>;
1238
+ $id: z.ZodOptional<z.ZodString>;
1239
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1240
+ $connId: z.ZodOptional<z.ZodString>;
1241
+ $contentId: z.ZodOptional<z.ZodString>;
1242
+ $isDeskOutput: z.ZodOptional<z.ZodBoolean>;
1243
+ $isDeskCustomOutput: z.ZodOptional<z.ZodBoolean>;
1244
+ $isDeskDefaultOutput: z.ZodOptional<z.ZodBoolean>;
1245
+ conditions: z.ZodArray<z.ZodObject<{
1246
+ source: z.ZodEnum<{
1247
+ context: "context";
1248
+ input: "input";
1249
+ }>;
1250
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1251
+ comparison: z.ZodEnum<{
1252
+ endsWith: "endsWith";
1253
+ startsWith: "startsWith";
1254
+ equals: "equals";
1255
+ notEquals: "notEquals";
1256
+ contains: "contains";
1257
+ greaterThan: "greaterThan";
1258
+ lessThan: "lessThan";
1259
+ greaterThanOrEquals: "greaterThanOrEquals";
1260
+ lessThanOrEquals: "lessThanOrEquals";
1261
+ matches: "matches";
1262
+ approximateTo: "approximateTo";
1263
+ exists: "exists";
1264
+ notExists: "notExists";
1265
+ }>;
1266
+ operator: z.ZodOptional<z.ZodEnum<{
1267
+ or: "or";
1268
+ and: "and";
1269
+ }>>;
1270
+ values: z.ZodArray<z.ZodString>;
1271
+ }, z.core.$strip>>;
1272
+ }, z.core.$strict>>;
1273
+ $defaultOutput: z.ZodObject<{
1274
+ stateId: z.ZodString;
1275
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
1276
+ state: "state";
1277
+ variable: "variable";
1278
+ }>>;
1279
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1280
+ }, z.core.$strict>;
1281
+ }, z.core.$strict>;
1282
+ /**
1283
+ * A push replaces the whole flow, so a dangling output and a title collision are
1284
+ * validation errors here instead of a broken canvas later.
1285
+ */
1286
+ export declare const minifiedFlowSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1287
+ $inputSuggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1288
+ isAiGenerated: z.ZodOptional<z.ZodBoolean>;
1289
+ deskStateVersion: z.ZodOptional<z.ZodString>;
1290
+ $tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1291
+ id: z.ZodString;
1292
+ label: z.ZodString;
1293
+ background: z.ZodString;
1294
+ canChangeBackground: z.ZodBoolean;
1295
+ }, z.core.$strip>>>;
1296
+ id: z.ZodOptional<z.ZodString>;
1297
+ root: z.ZodOptional<z.ZodBoolean>;
1298
+ $title: z.ZodString;
1299
+ $position: z.ZodOptional<z.ZodObject<{
1300
+ top: z.ZodString;
1301
+ left: z.ZodString;
1302
+ }, z.core.$strip>>;
1303
+ $invalidContentActions: z.ZodOptional<z.ZodBoolean>;
1304
+ $invalidOutputs: z.ZodOptional<z.ZodBoolean>;
1305
+ $invalidCustomActions: z.ZodOptional<z.ZodBoolean>;
1306
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1307
+ $whiteWallIntegration: z.ZodOptional<z.ZodUnknown>;
1308
+ $enteringCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1309
+ $id: z.ZodOptional<z.ZodString>;
1310
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1311
+ "": "";
1312
+ text: "text";
1313
+ "select-immediate": "select-immediate";
1314
+ select: "select";
1315
+ media: "media";
1316
+ "media-audio": "media-audio";
1317
+ "media-video": "media-video";
1318
+ "media-document": "media-document";
1319
+ "chat-state": "chat-state";
1320
+ "web-link": "web-link";
1321
+ "raw-content": "raw-content";
1322
+ }>>;
1323
+ $title: z.ZodOptional<z.ZodString>;
1324
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1325
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1326
+ source: z.ZodEnum<{
1327
+ context: "context";
1328
+ input: "input";
1329
+ }>;
1330
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1331
+ comparison: z.ZodEnum<{
1332
+ endsWith: "endsWith";
1333
+ startsWith: "startsWith";
1334
+ equals: "equals";
1335
+ notEquals: "notEquals";
1336
+ contains: "contains";
1337
+ greaterThan: "greaterThan";
1338
+ lessThan: "lessThan";
1339
+ greaterThanOrEquals: "greaterThanOrEquals";
1340
+ lessThanOrEquals: "lessThanOrEquals";
1341
+ matches: "matches";
1342
+ approximateTo: "approximateTo";
1343
+ exists: "exists";
1344
+ notExists: "notExists";
1345
+ }>;
1346
+ operator: z.ZodOptional<z.ZodEnum<{
1347
+ or: "or";
1348
+ and: "and";
1349
+ }>>;
1350
+ values: z.ZodArray<z.ZodString>;
1351
+ }, z.core.$strip>>>;
1352
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1353
+ editable: z.ZodBoolean;
1354
+ deletable: z.ZodBoolean;
1355
+ position: z.ZodLiteral<"left">;
1356
+ document: z.ZodObject<{
1357
+ id: z.ZodString;
1358
+ type: z.ZodString;
1359
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1360
+ title: z.ZodOptional<z.ZodString>;
1361
+ text: z.ZodOptional<z.ZodString>;
1362
+ type: z.ZodString;
1363
+ uri: z.ZodString;
1364
+ }, z.core.$strip>]>, z.ZodObject<{
1365
+ text: z.ZodString;
1366
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1367
+ immediate: "immediate";
1368
+ persistent: "persistent";
1369
+ }>>>;
1370
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1371
+ text: z.ZodString;
1372
+ }, z.core.$strip>>]>;
1373
+ }, z.core.$strip>]>, z.ZodObject<{
1374
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1375
+ text: z.ZodString;
1376
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1377
+ blank: "blank";
1378
+ self: "self";
1379
+ selfCompact: "selfCompact";
1380
+ selfTall: "selfTall";
1381
+ }>>>;
1382
+ uri: z.ZodString;
1383
+ }, z.core.$strip>]>, z.ZodObject<{
1384
+ state: z.ZodString;
1385
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1386
+ }, z.core.$strip>]>, z.ZodString]>;
1387
+ textContent: z.ZodOptional<z.ZodString>;
1388
+ }, z.core.$strip>;
1389
+ }, z.core.$strip>>>;
1390
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1391
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1392
+ type: z.ZodLiteral<"SendMessage">;
1393
+ settings: z.ZodObject<{
1394
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1395
+ type: z.ZodOptional<z.ZodEnum<{
1396
+ "text/plain": "text/plain";
1397
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1398
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1399
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1400
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1401
+ }>>;
1402
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1403
+ title: z.ZodOptional<z.ZodString>;
1404
+ text: z.ZodOptional<z.ZodString>;
1405
+ type: z.ZodString;
1406
+ uri: z.ZodString;
1407
+ }, z.core.$strip>]>, z.ZodObject<{
1408
+ text: z.ZodString;
1409
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1410
+ immediate: "immediate";
1411
+ persistent: "persistent";
1412
+ }>>>;
1413
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1414
+ text: z.ZodString;
1415
+ }, z.core.$strip>>]>;
1416
+ }, z.core.$strip>]>, z.ZodObject<{
1417
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1418
+ text: z.ZodString;
1419
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1420
+ blank: "blank";
1421
+ self: "self";
1422
+ selfCompact: "selfCompact";
1423
+ selfTall: "selfTall";
1424
+ }>>>;
1425
+ uri: z.ZodString;
1426
+ }, z.core.$strip>]>, z.ZodObject<{
1427
+ state: z.ZodString;
1428
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1429
+ }, z.core.$strip>]>;
1430
+ id: z.ZodOptional<z.ZodString>;
1431
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1432
+ }, z.core.$strip>;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ type: z.ZodLiteral<"SendRawMessage">;
1435
+ settings: z.ZodObject<{
1436
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1437
+ type: z.ZodOptional<z.ZodString>;
1438
+ rawContent: z.ZodString;
1439
+ }, z.core.$strip>;
1440
+ }, z.core.$strip>, z.ZodObject<{
1441
+ type: z.ZodLiteral<"TrackEvent">;
1442
+ settings: z.ZodObject<{
1443
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1444
+ category: z.ZodString;
1445
+ action: z.ZodString;
1446
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1447
+ }, z.core.$strip>;
1448
+ }, z.core.$strip>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"ProcessHttp">;
1450
+ settings: z.ZodObject<{
1451
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1452
+ method: z.ZodEnum<{
1453
+ POST: "POST";
1454
+ GET: "GET";
1455
+ PUT: "PUT";
1456
+ DELETE: "DELETE";
1457
+ }>;
1458
+ uri: z.ZodString;
1459
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1460
+ body: z.ZodString;
1461
+ responseBodyVariable: z.ZodString;
1462
+ responseStatusVariable: z.ZodString;
1463
+ }, z.core.$strip>;
1464
+ }, z.core.$strip>, z.ZodObject<{
1465
+ type: z.ZodLiteral<"MergeContact">;
1466
+ settings: z.ZodObject<{
1467
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1468
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1469
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1470
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1471
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1472
+ }, z.core.$strip>;
1473
+ }, z.core.$strip>, z.ZodObject<{
1474
+ type: z.ZodLiteral<"ExecuteScript">;
1475
+ settings: z.ZodObject<{
1476
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1477
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1478
+ source: z.ZodString;
1479
+ inputVariables: z.ZodArray<z.ZodString>;
1480
+ outputVariable: z.ZodString;
1481
+ }, z.core.$strip>;
1482
+ }, z.core.$strip>, z.ZodObject<{
1483
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1484
+ settings: z.ZodObject<{
1485
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1486
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1487
+ source: z.ZodString;
1488
+ inputVariables: z.ZodArray<z.ZodString>;
1489
+ outputVariable: z.ZodString;
1490
+ }, z.core.$strip>;
1491
+ }, z.core.$strip>, z.ZodObject<{
1492
+ type: z.ZodLiteral<"SetVariable">;
1493
+ settings: z.ZodObject<{
1494
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1495
+ variable: z.ZodString;
1496
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1497
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1498
+ }, z.core.$strip>;
1499
+ }, z.core.$strip>, z.ZodObject<{
1500
+ type: z.ZodLiteral<"ProcessCommand">;
1501
+ settings: z.ZodObject<{
1502
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1503
+ to: z.ZodString;
1504
+ method: z.ZodEnum<{
1505
+ get: "get";
1506
+ set: "set";
1507
+ merge: "merge";
1508
+ delete: "delete";
1509
+ }>;
1510
+ uri: z.ZodString;
1511
+ variable: z.ZodString;
1512
+ from: z.ZodOptional<z.ZodString>;
1513
+ }, z.core.$strip>;
1514
+ }, z.core.$strip>, z.ZodObject<{
1515
+ type: z.ZodLiteral<"ForwardToDesk">;
1516
+ settings: z.ZodObject<{
1517
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1518
+ }, z.core.$strip>;
1519
+ }, z.core.$strip>, z.ZodObject<{
1520
+ type: z.ZodLiteral<"LeavingFromDesk">;
1521
+ settings: z.ZodObject<{
1522
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1523
+ }, z.core.$strip>;
1524
+ }, z.core.$strip>, z.ZodObject<{
1525
+ type: z.ZodLiteral<"Redirect">;
1526
+ settings: z.ZodObject<{
1527
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1528
+ address: z.ZodString;
1529
+ context: z.ZodObject<{
1530
+ type: z.ZodLiteral<"text/plain">;
1531
+ value: z.ZodString;
1532
+ }, z.core.$strip>;
1533
+ }, z.core.$strip>;
1534
+ }, z.core.$strip>], "type">>>;
1535
+ $leavingCustomActions: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1536
+ $id: z.ZodOptional<z.ZodString>;
1537
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1538
+ "": "";
1539
+ text: "text";
1540
+ "select-immediate": "select-immediate";
1541
+ select: "select";
1542
+ media: "media";
1543
+ "media-audio": "media-audio";
1544
+ "media-video": "media-video";
1545
+ "media-document": "media-document";
1546
+ "chat-state": "chat-state";
1547
+ "web-link": "web-link";
1548
+ "raw-content": "raw-content";
1549
+ }>>;
1550
+ $title: z.ZodOptional<z.ZodString>;
1551
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1552
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1553
+ source: z.ZodEnum<{
1554
+ context: "context";
1555
+ input: "input";
1556
+ }>;
1557
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1558
+ comparison: z.ZodEnum<{
1559
+ endsWith: "endsWith";
1560
+ startsWith: "startsWith";
1561
+ equals: "equals";
1562
+ notEquals: "notEquals";
1563
+ contains: "contains";
1564
+ greaterThan: "greaterThan";
1565
+ lessThan: "lessThan";
1566
+ greaterThanOrEquals: "greaterThanOrEquals";
1567
+ lessThanOrEquals: "lessThanOrEquals";
1568
+ matches: "matches";
1569
+ approximateTo: "approximateTo";
1570
+ exists: "exists";
1571
+ notExists: "notExists";
1572
+ }>;
1573
+ operator: z.ZodOptional<z.ZodEnum<{
1574
+ or: "or";
1575
+ and: "and";
1576
+ }>>;
1577
+ values: z.ZodArray<z.ZodString>;
1578
+ }, z.core.$strip>>>;
1579
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1580
+ editable: z.ZodBoolean;
1581
+ deletable: z.ZodBoolean;
1582
+ position: z.ZodLiteral<"left">;
1583
+ document: z.ZodObject<{
1584
+ id: z.ZodString;
1585
+ type: z.ZodString;
1586
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1587
+ title: z.ZodOptional<z.ZodString>;
1588
+ text: z.ZodOptional<z.ZodString>;
1589
+ type: z.ZodString;
1590
+ uri: z.ZodString;
1591
+ }, z.core.$strip>]>, z.ZodObject<{
1592
+ text: z.ZodString;
1593
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1594
+ immediate: "immediate";
1595
+ persistent: "persistent";
1596
+ }>>>;
1597
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1598
+ text: z.ZodString;
1599
+ }, z.core.$strip>>]>;
1600
+ }, z.core.$strip>]>, z.ZodObject<{
1601
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1602
+ text: z.ZodString;
1603
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1604
+ blank: "blank";
1605
+ self: "self";
1606
+ selfCompact: "selfCompact";
1607
+ selfTall: "selfTall";
1608
+ }>>>;
1609
+ uri: z.ZodString;
1610
+ }, z.core.$strip>]>, z.ZodObject<{
1611
+ state: z.ZodString;
1612
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1613
+ }, z.core.$strip>]>, z.ZodString]>;
1614
+ textContent: z.ZodOptional<z.ZodString>;
1615
+ }, z.core.$strip>;
1616
+ }, z.core.$strip>>>;
1617
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1618
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1619
+ type: z.ZodLiteral<"SendMessage">;
1620
+ settings: z.ZodObject<{
1621
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1622
+ type: z.ZodOptional<z.ZodEnum<{
1623
+ "text/plain": "text/plain";
1624
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1625
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1626
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1627
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1628
+ }>>;
1629
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1630
+ title: z.ZodOptional<z.ZodString>;
1631
+ text: z.ZodOptional<z.ZodString>;
1632
+ type: z.ZodString;
1633
+ uri: z.ZodString;
1634
+ }, z.core.$strip>]>, z.ZodObject<{
1635
+ text: z.ZodString;
1636
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1637
+ immediate: "immediate";
1638
+ persistent: "persistent";
1639
+ }>>>;
1640
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1641
+ text: z.ZodString;
1642
+ }, z.core.$strip>>]>;
1643
+ }, z.core.$strip>]>, z.ZodObject<{
1644
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1645
+ text: z.ZodString;
1646
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1647
+ blank: "blank";
1648
+ self: "self";
1649
+ selfCompact: "selfCompact";
1650
+ selfTall: "selfTall";
1651
+ }>>>;
1652
+ uri: z.ZodString;
1653
+ }, z.core.$strip>]>, z.ZodObject<{
1654
+ state: z.ZodString;
1655
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1656
+ }, z.core.$strip>]>;
1657
+ id: z.ZodOptional<z.ZodString>;
1658
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1659
+ }, z.core.$strip>;
1660
+ }, z.core.$strip>, z.ZodObject<{
1661
+ type: z.ZodLiteral<"SendRawMessage">;
1662
+ settings: z.ZodObject<{
1663
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1664
+ type: z.ZodOptional<z.ZodString>;
1665
+ rawContent: z.ZodString;
1666
+ }, z.core.$strip>;
1667
+ }, z.core.$strip>, z.ZodObject<{
1668
+ type: z.ZodLiteral<"TrackEvent">;
1669
+ settings: z.ZodObject<{
1670
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1671
+ category: z.ZodString;
1672
+ action: z.ZodString;
1673
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1674
+ }, z.core.$strip>;
1675
+ }, z.core.$strip>, z.ZodObject<{
1676
+ type: z.ZodLiteral<"ProcessHttp">;
1677
+ settings: z.ZodObject<{
1678
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1679
+ method: z.ZodEnum<{
1680
+ POST: "POST";
1681
+ GET: "GET";
1682
+ PUT: "PUT";
1683
+ DELETE: "DELETE";
1684
+ }>;
1685
+ uri: z.ZodString;
1686
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1687
+ body: z.ZodString;
1688
+ responseBodyVariable: z.ZodString;
1689
+ responseStatusVariable: z.ZodString;
1690
+ }, z.core.$strip>;
1691
+ }, z.core.$strip>, z.ZodObject<{
1692
+ type: z.ZodLiteral<"MergeContact">;
1693
+ settings: z.ZodObject<{
1694
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1695
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1696
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1697
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1698
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1699
+ }, z.core.$strip>;
1700
+ }, z.core.$strip>, z.ZodObject<{
1701
+ type: z.ZodLiteral<"ExecuteScript">;
1702
+ settings: z.ZodObject<{
1703
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1704
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1705
+ source: z.ZodString;
1706
+ inputVariables: z.ZodArray<z.ZodString>;
1707
+ outputVariable: z.ZodString;
1708
+ }, z.core.$strip>;
1709
+ }, z.core.$strip>, z.ZodObject<{
1710
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1711
+ settings: z.ZodObject<{
1712
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1713
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1714
+ source: z.ZodString;
1715
+ inputVariables: z.ZodArray<z.ZodString>;
1716
+ outputVariable: z.ZodString;
1717
+ }, z.core.$strip>;
1718
+ }, z.core.$strip>, z.ZodObject<{
1719
+ type: z.ZodLiteral<"SetVariable">;
1720
+ settings: z.ZodObject<{
1721
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1722
+ variable: z.ZodString;
1723
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1724
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1725
+ }, z.core.$strip>;
1726
+ }, z.core.$strip>, z.ZodObject<{
1727
+ type: z.ZodLiteral<"ProcessCommand">;
1728
+ settings: z.ZodObject<{
1729
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1730
+ to: z.ZodString;
1731
+ method: z.ZodEnum<{
1732
+ get: "get";
1733
+ set: "set";
1734
+ merge: "merge";
1735
+ delete: "delete";
1736
+ }>;
1737
+ uri: z.ZodString;
1738
+ variable: z.ZodString;
1739
+ from: z.ZodOptional<z.ZodString>;
1740
+ }, z.core.$strip>;
1741
+ }, z.core.$strip>, z.ZodObject<{
1742
+ type: z.ZodLiteral<"ForwardToDesk">;
1743
+ settings: z.ZodObject<{
1744
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1745
+ }, z.core.$strip>;
1746
+ }, z.core.$strip>, z.ZodObject<{
1747
+ type: z.ZodLiteral<"LeavingFromDesk">;
1748
+ settings: z.ZodObject<{
1749
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1750
+ }, z.core.$strip>;
1751
+ }, z.core.$strip>, z.ZodObject<{
1752
+ type: z.ZodLiteral<"Redirect">;
1753
+ settings: z.ZodObject<{
1754
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1755
+ address: z.ZodString;
1756
+ context: z.ZodObject<{
1757
+ type: z.ZodLiteral<"text/plain">;
1758
+ value: z.ZodString;
1759
+ }, z.core.$strip>;
1760
+ }, z.core.$strip>;
1761
+ }, z.core.$strip>], "type">>>;
1762
+ $localCustomActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1763
+ $id: z.ZodOptional<z.ZodString>;
1764
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1765
+ "": "";
1766
+ text: "text";
1767
+ "select-immediate": "select-immediate";
1768
+ select: "select";
1769
+ media: "media";
1770
+ "media-audio": "media-audio";
1771
+ "media-video": "media-video";
1772
+ "media-document": "media-document";
1773
+ "chat-state": "chat-state";
1774
+ "web-link": "web-link";
1775
+ "raw-content": "raw-content";
1776
+ }>>;
1777
+ $title: z.ZodOptional<z.ZodString>;
1778
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1779
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1780
+ source: z.ZodEnum<{
1781
+ context: "context";
1782
+ input: "input";
1783
+ }>;
1784
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1785
+ comparison: z.ZodEnum<{
1786
+ endsWith: "endsWith";
1787
+ startsWith: "startsWith";
1788
+ equals: "equals";
1789
+ notEquals: "notEquals";
1790
+ contains: "contains";
1791
+ greaterThan: "greaterThan";
1792
+ lessThan: "lessThan";
1793
+ greaterThanOrEquals: "greaterThanOrEquals";
1794
+ lessThanOrEquals: "lessThanOrEquals";
1795
+ matches: "matches";
1796
+ approximateTo: "approximateTo";
1797
+ exists: "exists";
1798
+ notExists: "notExists";
1799
+ }>;
1800
+ operator: z.ZodOptional<z.ZodEnum<{
1801
+ or: "or";
1802
+ and: "and";
1803
+ }>>;
1804
+ values: z.ZodArray<z.ZodString>;
1805
+ }, z.core.$strip>>>;
1806
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1807
+ editable: z.ZodBoolean;
1808
+ deletable: z.ZodBoolean;
1809
+ position: z.ZodLiteral<"left">;
1810
+ document: z.ZodObject<{
1811
+ id: z.ZodString;
1812
+ type: z.ZodString;
1813
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1814
+ title: z.ZodOptional<z.ZodString>;
1815
+ text: z.ZodOptional<z.ZodString>;
1816
+ type: z.ZodString;
1817
+ uri: z.ZodString;
1818
+ }, z.core.$strip>]>, z.ZodObject<{
1819
+ text: z.ZodString;
1820
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1821
+ immediate: "immediate";
1822
+ persistent: "persistent";
1823
+ }>>>;
1824
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1825
+ text: z.ZodString;
1826
+ }, z.core.$strip>>]>;
1827
+ }, z.core.$strip>]>, z.ZodObject<{
1828
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1829
+ text: z.ZodString;
1830
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1831
+ blank: "blank";
1832
+ self: "self";
1833
+ selfCompact: "selfCompact";
1834
+ selfTall: "selfTall";
1835
+ }>>>;
1836
+ uri: z.ZodString;
1837
+ }, z.core.$strip>]>, z.ZodObject<{
1838
+ state: z.ZodString;
1839
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1840
+ }, z.core.$strip>]>, z.ZodString]>;
1841
+ textContent: z.ZodOptional<z.ZodString>;
1842
+ }, z.core.$strip>;
1843
+ }, z.core.$strip>>>;
1844
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
1845
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1846
+ type: z.ZodLiteral<"SendMessage">;
1847
+ settings: z.ZodObject<{
1848
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1849
+ type: z.ZodOptional<z.ZodEnum<{
1850
+ "text/plain": "text/plain";
1851
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
1852
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
1853
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
1854
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
1855
+ }>>;
1856
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1857
+ title: z.ZodOptional<z.ZodString>;
1858
+ text: z.ZodOptional<z.ZodString>;
1859
+ type: z.ZodString;
1860
+ uri: z.ZodString;
1861
+ }, z.core.$strip>]>, z.ZodObject<{
1862
+ text: z.ZodString;
1863
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1864
+ immediate: "immediate";
1865
+ persistent: "persistent";
1866
+ }>>>;
1867
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
1868
+ text: z.ZodString;
1869
+ }, z.core.$strip>>]>;
1870
+ }, z.core.$strip>]>, z.ZodObject<{
1871
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1872
+ text: z.ZodString;
1873
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1874
+ blank: "blank";
1875
+ self: "self";
1876
+ selfCompact: "selfCompact";
1877
+ selfTall: "selfTall";
1878
+ }>>>;
1879
+ uri: z.ZodString;
1880
+ }, z.core.$strip>]>, z.ZodObject<{
1881
+ state: z.ZodString;
1882
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1883
+ }, z.core.$strip>]>;
1884
+ id: z.ZodOptional<z.ZodString>;
1885
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1886
+ }, z.core.$strip>;
1887
+ }, z.core.$strip>, z.ZodObject<{
1888
+ type: z.ZodLiteral<"SendRawMessage">;
1889
+ settings: z.ZodObject<{
1890
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1891
+ type: z.ZodOptional<z.ZodString>;
1892
+ rawContent: z.ZodString;
1893
+ }, z.core.$strip>;
1894
+ }, z.core.$strip>, z.ZodObject<{
1895
+ type: z.ZodLiteral<"TrackEvent">;
1896
+ settings: z.ZodObject<{
1897
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1898
+ category: z.ZodString;
1899
+ action: z.ZodString;
1900
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1901
+ }, z.core.$strip>;
1902
+ }, z.core.$strip>, z.ZodObject<{
1903
+ type: z.ZodLiteral<"ProcessHttp">;
1904
+ settings: z.ZodObject<{
1905
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1906
+ method: z.ZodEnum<{
1907
+ POST: "POST";
1908
+ GET: "GET";
1909
+ PUT: "PUT";
1910
+ DELETE: "DELETE";
1911
+ }>;
1912
+ uri: z.ZodString;
1913
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1914
+ body: z.ZodString;
1915
+ responseBodyVariable: z.ZodString;
1916
+ responseStatusVariable: z.ZodString;
1917
+ }, z.core.$strip>;
1918
+ }, z.core.$strip>, z.ZodObject<{
1919
+ type: z.ZodLiteral<"MergeContact">;
1920
+ settings: z.ZodObject<{
1921
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1922
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1923
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1924
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1925
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1926
+ }, z.core.$strip>;
1927
+ }, z.core.$strip>, z.ZodObject<{
1928
+ type: z.ZodLiteral<"ExecuteScript">;
1929
+ settings: z.ZodObject<{
1930
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1931
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1932
+ source: z.ZodString;
1933
+ inputVariables: z.ZodArray<z.ZodString>;
1934
+ outputVariable: z.ZodString;
1935
+ }, z.core.$strip>;
1936
+ }, z.core.$strip>, z.ZodObject<{
1937
+ type: z.ZodLiteral<"ExecuteScriptV2">;
1938
+ settings: z.ZodObject<{
1939
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1940
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
1941
+ source: z.ZodString;
1942
+ inputVariables: z.ZodArray<z.ZodString>;
1943
+ outputVariable: z.ZodString;
1944
+ }, z.core.$strip>;
1945
+ }, z.core.$strip>, z.ZodObject<{
1946
+ type: z.ZodLiteral<"SetVariable">;
1947
+ settings: z.ZodObject<{
1948
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1949
+ variable: z.ZodString;
1950
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1951
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1952
+ }, z.core.$strip>;
1953
+ }, z.core.$strip>, z.ZodObject<{
1954
+ type: z.ZodLiteral<"ProcessCommand">;
1955
+ settings: z.ZodObject<{
1956
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1957
+ to: z.ZodString;
1958
+ method: z.ZodEnum<{
1959
+ get: "get";
1960
+ set: "set";
1961
+ merge: "merge";
1962
+ delete: "delete";
1963
+ }>;
1964
+ uri: z.ZodString;
1965
+ variable: z.ZodString;
1966
+ from: z.ZodOptional<z.ZodString>;
1967
+ }, z.core.$strip>;
1968
+ }, z.core.$strip>, z.ZodObject<{
1969
+ type: z.ZodLiteral<"ForwardToDesk">;
1970
+ settings: z.ZodObject<{
1971
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1972
+ }, z.core.$strip>;
1973
+ }, z.core.$strip>, z.ZodObject<{
1974
+ type: z.ZodLiteral<"LeavingFromDesk">;
1975
+ settings: z.ZodObject<{
1976
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1977
+ }, z.core.$strip>;
1978
+ }, z.core.$strip>, z.ZodObject<{
1979
+ type: z.ZodLiteral<"Redirect">;
1980
+ settings: z.ZodObject<{
1981
+ $invalid: z.ZodOptional<z.ZodBoolean>;
1982
+ address: z.ZodString;
1983
+ context: z.ZodObject<{
1984
+ type: z.ZodLiteral<"text/plain">;
1985
+ value: z.ZodString;
1986
+ }, z.core.$strip>;
1987
+ }, z.core.$strip>;
1988
+ }, z.core.$strip>], "type">>>>;
1989
+ $afterStateChangedActions: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1990
+ $id: z.ZodOptional<z.ZodString>;
1991
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
1992
+ "": "";
1993
+ text: "text";
1994
+ "select-immediate": "select-immediate";
1995
+ select: "select";
1996
+ media: "media";
1997
+ "media-audio": "media-audio";
1998
+ "media-video": "media-video";
1999
+ "media-document": "media-document";
2000
+ "chat-state": "chat-state";
2001
+ "web-link": "web-link";
2002
+ "raw-content": "raw-content";
2003
+ }>>;
2004
+ $title: z.ZodOptional<z.ZodString>;
2005
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2006
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2007
+ source: z.ZodEnum<{
2008
+ context: "context";
2009
+ input: "input";
2010
+ }>;
2011
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2012
+ comparison: z.ZodEnum<{
2013
+ endsWith: "endsWith";
2014
+ startsWith: "startsWith";
2015
+ equals: "equals";
2016
+ notEquals: "notEquals";
2017
+ contains: "contains";
2018
+ greaterThan: "greaterThan";
2019
+ lessThan: "lessThan";
2020
+ greaterThanOrEquals: "greaterThanOrEquals";
2021
+ lessThanOrEquals: "lessThanOrEquals";
2022
+ matches: "matches";
2023
+ approximateTo: "approximateTo";
2024
+ exists: "exists";
2025
+ notExists: "notExists";
2026
+ }>;
2027
+ operator: z.ZodOptional<z.ZodEnum<{
2028
+ or: "or";
2029
+ and: "and";
2030
+ }>>;
2031
+ values: z.ZodArray<z.ZodString>;
2032
+ }, z.core.$strip>>>;
2033
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2034
+ editable: z.ZodBoolean;
2035
+ deletable: z.ZodBoolean;
2036
+ position: z.ZodLiteral<"left">;
2037
+ document: z.ZodObject<{
2038
+ id: z.ZodString;
2039
+ type: z.ZodString;
2040
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2041
+ title: z.ZodOptional<z.ZodString>;
2042
+ text: z.ZodOptional<z.ZodString>;
2043
+ type: z.ZodString;
2044
+ uri: z.ZodString;
2045
+ }, z.core.$strip>]>, z.ZodObject<{
2046
+ text: z.ZodString;
2047
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2048
+ immediate: "immediate";
2049
+ persistent: "persistent";
2050
+ }>>>;
2051
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2052
+ text: z.ZodString;
2053
+ }, z.core.$strip>>]>;
2054
+ }, z.core.$strip>]>, z.ZodObject<{
2055
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2056
+ text: z.ZodString;
2057
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2058
+ blank: "blank";
2059
+ self: "self";
2060
+ selfCompact: "selfCompact";
2061
+ selfTall: "selfTall";
2062
+ }>>>;
2063
+ uri: z.ZodString;
2064
+ }, z.core.$strip>]>, z.ZodObject<{
2065
+ state: z.ZodString;
2066
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2067
+ }, z.core.$strip>]>, z.ZodString]>;
2068
+ textContent: z.ZodOptional<z.ZodString>;
2069
+ }, z.core.$strip>;
2070
+ }, z.core.$strip>>>;
2071
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
2072
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2073
+ type: z.ZodLiteral<"SendMessage">;
2074
+ settings: z.ZodObject<{
2075
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2076
+ type: z.ZodOptional<z.ZodEnum<{
2077
+ "text/plain": "text/plain";
2078
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2079
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2080
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2081
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2082
+ }>>;
2083
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2084
+ title: z.ZodOptional<z.ZodString>;
2085
+ text: z.ZodOptional<z.ZodString>;
2086
+ type: z.ZodString;
2087
+ uri: z.ZodString;
2088
+ }, z.core.$strip>]>, z.ZodObject<{
2089
+ text: z.ZodString;
2090
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2091
+ immediate: "immediate";
2092
+ persistent: "persistent";
2093
+ }>>>;
2094
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2095
+ text: z.ZodString;
2096
+ }, z.core.$strip>>]>;
2097
+ }, z.core.$strip>]>, z.ZodObject<{
2098
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2099
+ text: z.ZodString;
2100
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2101
+ blank: "blank";
2102
+ self: "self";
2103
+ selfCompact: "selfCompact";
2104
+ selfTall: "selfTall";
2105
+ }>>>;
2106
+ uri: z.ZodString;
2107
+ }, z.core.$strip>]>, z.ZodObject<{
2108
+ state: z.ZodString;
2109
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2110
+ }, z.core.$strip>]>;
2111
+ id: z.ZodOptional<z.ZodString>;
2112
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2113
+ }, z.core.$strip>;
2114
+ }, z.core.$strip>, z.ZodObject<{
2115
+ type: z.ZodLiteral<"SendRawMessage">;
2116
+ settings: z.ZodObject<{
2117
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2118
+ type: z.ZodOptional<z.ZodString>;
2119
+ rawContent: z.ZodString;
2120
+ }, z.core.$strip>;
2121
+ }, z.core.$strip>, z.ZodObject<{
2122
+ type: z.ZodLiteral<"TrackEvent">;
2123
+ settings: z.ZodObject<{
2124
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2125
+ category: z.ZodString;
2126
+ action: z.ZodString;
2127
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2128
+ }, z.core.$strip>;
2129
+ }, z.core.$strip>, z.ZodObject<{
2130
+ type: z.ZodLiteral<"ProcessHttp">;
2131
+ settings: z.ZodObject<{
2132
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2133
+ method: z.ZodEnum<{
2134
+ POST: "POST";
2135
+ GET: "GET";
2136
+ PUT: "PUT";
2137
+ DELETE: "DELETE";
2138
+ }>;
2139
+ uri: z.ZodString;
2140
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2141
+ body: z.ZodString;
2142
+ responseBodyVariable: z.ZodString;
2143
+ responseStatusVariable: z.ZodString;
2144
+ }, z.core.$strip>;
2145
+ }, z.core.$strip>, z.ZodObject<{
2146
+ type: z.ZodLiteral<"MergeContact">;
2147
+ settings: z.ZodObject<{
2148
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2149
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2150
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2151
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2152
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2153
+ }, z.core.$strip>;
2154
+ }, z.core.$strip>, z.ZodObject<{
2155
+ type: z.ZodLiteral<"ExecuteScript">;
2156
+ settings: z.ZodObject<{
2157
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2158
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2159
+ source: z.ZodString;
2160
+ inputVariables: z.ZodArray<z.ZodString>;
2161
+ outputVariable: z.ZodString;
2162
+ }, z.core.$strip>;
2163
+ }, z.core.$strip>, z.ZodObject<{
2164
+ type: z.ZodLiteral<"ExecuteScriptV2">;
2165
+ settings: z.ZodObject<{
2166
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2167
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2168
+ source: z.ZodString;
2169
+ inputVariables: z.ZodArray<z.ZodString>;
2170
+ outputVariable: z.ZodString;
2171
+ }, z.core.$strip>;
2172
+ }, z.core.$strip>, z.ZodObject<{
2173
+ type: z.ZodLiteral<"SetVariable">;
2174
+ settings: z.ZodObject<{
2175
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2176
+ variable: z.ZodString;
2177
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2178
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2179
+ }, z.core.$strip>;
2180
+ }, z.core.$strip>, z.ZodObject<{
2181
+ type: z.ZodLiteral<"ProcessCommand">;
2182
+ settings: z.ZodObject<{
2183
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2184
+ to: z.ZodString;
2185
+ method: z.ZodEnum<{
2186
+ get: "get";
2187
+ set: "set";
2188
+ merge: "merge";
2189
+ delete: "delete";
2190
+ }>;
2191
+ uri: z.ZodString;
2192
+ variable: z.ZodString;
2193
+ from: z.ZodOptional<z.ZodString>;
2194
+ }, z.core.$strip>;
2195
+ }, z.core.$strip>, z.ZodObject<{
2196
+ type: z.ZodLiteral<"ForwardToDesk">;
2197
+ settings: z.ZodObject<{
2198
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2199
+ }, z.core.$strip>;
2200
+ }, z.core.$strip>, z.ZodObject<{
2201
+ type: z.ZodLiteral<"LeavingFromDesk">;
2202
+ settings: z.ZodObject<{
2203
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2204
+ }, z.core.$strip>;
2205
+ }, z.core.$strip>, z.ZodObject<{
2206
+ type: z.ZodLiteral<"Redirect">;
2207
+ settings: z.ZodObject<{
2208
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2209
+ address: z.ZodString;
2210
+ context: z.ZodObject<{
2211
+ type: z.ZodLiteral<"text/plain">;
2212
+ value: z.ZodString;
2213
+ }, z.core.$strip>;
2214
+ }, z.core.$strip>;
2215
+ }, z.core.$strip>], "type">>>>;
2216
+ $contentActions: z.ZodArray<z.ZodObject<{
2217
+ action: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
2218
+ $id: z.ZodOptional<z.ZodString>;
2219
+ $typeOfContent: z.ZodOptional<z.ZodEnum<{
2220
+ "": "";
2221
+ text: "text";
2222
+ "select-immediate": "select-immediate";
2223
+ select: "select";
2224
+ media: "media";
2225
+ "media-audio": "media-audio";
2226
+ "media-video": "media-video";
2227
+ "media-document": "media-document";
2228
+ "chat-state": "chat-state";
2229
+ "web-link": "web-link";
2230
+ "raw-content": "raw-content";
2231
+ }>>;
2232
+ $title: z.ZodOptional<z.ZodString>;
2233
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2234
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2235
+ source: z.ZodEnum<{
2236
+ context: "context";
2237
+ input: "input";
2238
+ }>;
2239
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2240
+ comparison: z.ZodEnum<{
2241
+ endsWith: "endsWith";
2242
+ startsWith: "startsWith";
2243
+ equals: "equals";
2244
+ notEquals: "notEquals";
2245
+ contains: "contains";
2246
+ greaterThan: "greaterThan";
2247
+ lessThan: "lessThan";
2248
+ greaterThanOrEquals: "greaterThanOrEquals";
2249
+ lessThanOrEquals: "lessThanOrEquals";
2250
+ matches: "matches";
2251
+ approximateTo: "approximateTo";
2252
+ exists: "exists";
2253
+ notExists: "notExists";
2254
+ }>;
2255
+ operator: z.ZodOptional<z.ZodEnum<{
2256
+ or: "or";
2257
+ and: "and";
2258
+ }>>;
2259
+ values: z.ZodArray<z.ZodString>;
2260
+ }, z.core.$strip>>>;
2261
+ $cardContent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2262
+ editable: z.ZodBoolean;
2263
+ deletable: z.ZodBoolean;
2264
+ position: z.ZodLiteral<"left">;
2265
+ document: z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ type: z.ZodString;
2268
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2269
+ title: z.ZodOptional<z.ZodString>;
2270
+ text: z.ZodOptional<z.ZodString>;
2271
+ type: z.ZodString;
2272
+ uri: z.ZodString;
2273
+ }, z.core.$strip>]>, z.ZodObject<{
2274
+ text: z.ZodString;
2275
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2276
+ immediate: "immediate";
2277
+ persistent: "persistent";
2278
+ }>>>;
2279
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2280
+ text: z.ZodString;
2281
+ }, z.core.$strip>>]>;
2282
+ }, z.core.$strip>]>, z.ZodObject<{
2283
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2284
+ text: z.ZodString;
2285
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2286
+ blank: "blank";
2287
+ self: "self";
2288
+ selfCompact: "selfCompact";
2289
+ selfTall: "selfTall";
2290
+ }>>>;
2291
+ uri: z.ZodString;
2292
+ }, z.core.$strip>]>, z.ZodObject<{
2293
+ state: z.ZodString;
2294
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2295
+ }, z.core.$strip>]>, z.ZodString]>;
2296
+ textContent: z.ZodOptional<z.ZodString>;
2297
+ }, z.core.$strip>;
2298
+ }, z.core.$strip>>>;
2299
+ continueOnError: z.ZodOptional<z.ZodBoolean>;
2300
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2301
+ type: z.ZodLiteral<"SendMessage">;
2302
+ settings: z.ZodObject<{
2303
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2304
+ type: z.ZodOptional<z.ZodEnum<{
2305
+ "text/plain": "text/plain";
2306
+ "application/vnd.lime.media-link+json": "application/vnd.lime.media-link+json";
2307
+ "application/vnd.lime.select+json": "application/vnd.lime.select+json";
2308
+ "application/vnd.lime.chatstate+json": "application/vnd.lime.chatstate+json";
2309
+ "application/vnd.lime.web-link+json": "application/vnd.lime.web-link+json";
2310
+ }>>;
2311
+ content: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
2312
+ title: z.ZodOptional<z.ZodString>;
2313
+ text: z.ZodOptional<z.ZodString>;
2314
+ type: z.ZodString;
2315
+ uri: z.ZodString;
2316
+ }, z.core.$strip>]>, z.ZodObject<{
2317
+ text: z.ZodString;
2318
+ scope: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2319
+ immediate: "immediate";
2320
+ persistent: "persistent";
2321
+ }>>>;
2322
+ options: z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
2323
+ text: z.ZodString;
2324
+ }, z.core.$strip>>]>;
2325
+ }, z.core.$strip>]>, z.ZodObject<{
2326
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2327
+ text: z.ZodString;
2328
+ target: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2329
+ blank: "blank";
2330
+ self: "self";
2331
+ selfCompact: "selfCompact";
2332
+ selfTall: "selfTall";
2333
+ }>>>;
2334
+ uri: z.ZodString;
2335
+ }, z.core.$strip>]>, z.ZodObject<{
2336
+ state: z.ZodString;
2337
+ interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2338
+ }, z.core.$strip>]>;
2339
+ id: z.ZodOptional<z.ZodString>;
2340
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2341
+ }, z.core.$strip>;
2342
+ }, z.core.$strip>, z.ZodObject<{
2343
+ type: z.ZodLiteral<"SendRawMessage">;
2344
+ settings: z.ZodObject<{
2345
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2346
+ type: z.ZodOptional<z.ZodString>;
2347
+ rawContent: z.ZodString;
2348
+ }, z.core.$strip>;
2349
+ }, z.core.$strip>, z.ZodObject<{
2350
+ type: z.ZodLiteral<"TrackEvent">;
2351
+ settings: z.ZodObject<{
2352
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2353
+ category: z.ZodString;
2354
+ action: z.ZodString;
2355
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2356
+ }, z.core.$strip>;
2357
+ }, z.core.$strip>, z.ZodObject<{
2358
+ type: z.ZodLiteral<"ProcessHttp">;
2359
+ settings: z.ZodObject<{
2360
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2361
+ method: z.ZodEnum<{
2362
+ POST: "POST";
2363
+ GET: "GET";
2364
+ PUT: "PUT";
2365
+ DELETE: "DELETE";
2366
+ }>;
2367
+ uri: z.ZodString;
2368
+ headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2369
+ body: z.ZodString;
2370
+ responseBodyVariable: z.ZodString;
2371
+ responseStatusVariable: z.ZodString;
2372
+ }, z.core.$strip>;
2373
+ }, z.core.$strip>, z.ZodObject<{
2374
+ type: z.ZodLiteral<"MergeContact">;
2375
+ settings: z.ZodObject<{
2376
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2377
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2378
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2379
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2380
+ extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2381
+ }, z.core.$strip>;
2382
+ }, z.core.$strip>, z.ZodObject<{
2383
+ type: z.ZodLiteral<"ExecuteScript">;
2384
+ settings: z.ZodObject<{
2385
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2386
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2387
+ source: z.ZodString;
2388
+ inputVariables: z.ZodArray<z.ZodString>;
2389
+ outputVariable: z.ZodString;
2390
+ }, z.core.$strip>;
2391
+ }, z.core.$strip>, z.ZodObject<{
2392
+ type: z.ZodLiteral<"ExecuteScriptV2">;
2393
+ settings: z.ZodObject<{
2394
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2395
+ function: z.ZodOptional<z.ZodLiteral<"run">>;
2396
+ source: z.ZodString;
2397
+ inputVariables: z.ZodArray<z.ZodString>;
2398
+ outputVariable: z.ZodString;
2399
+ }, z.core.$strip>;
2400
+ }, z.core.$strip>, z.ZodObject<{
2401
+ type: z.ZodLiteral<"SetVariable">;
2402
+ settings: z.ZodObject<{
2403
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2404
+ variable: z.ZodString;
2405
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2406
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2407
+ }, z.core.$strip>;
2408
+ }, z.core.$strip>, z.ZodObject<{
2409
+ type: z.ZodLiteral<"ProcessCommand">;
2410
+ settings: z.ZodObject<{
2411
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2412
+ to: z.ZodString;
2413
+ method: z.ZodEnum<{
2414
+ get: "get";
2415
+ set: "set";
2416
+ merge: "merge";
2417
+ delete: "delete";
2418
+ }>;
2419
+ uri: z.ZodString;
2420
+ variable: z.ZodString;
2421
+ from: z.ZodOptional<z.ZodString>;
2422
+ }, z.core.$strip>;
2423
+ }, z.core.$strip>, z.ZodObject<{
2424
+ type: z.ZodLiteral<"ForwardToDesk">;
2425
+ settings: z.ZodObject<{
2426
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2427
+ }, z.core.$strip>;
2428
+ }, z.core.$strip>, z.ZodObject<{
2429
+ type: z.ZodLiteral<"LeavingFromDesk">;
2430
+ settings: z.ZodObject<{
2431
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2432
+ }, z.core.$strip>;
2433
+ }, z.core.$strip>, z.ZodObject<{
2434
+ type: z.ZodLiteral<"Redirect">;
2435
+ settings: z.ZodObject<{
2436
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2437
+ address: z.ZodString;
2438
+ context: z.ZodObject<{
2439
+ type: z.ZodLiteral<"text/plain">;
2440
+ value: z.ZodString;
2441
+ }, z.core.$strip>;
2442
+ }, z.core.$strip>;
2443
+ }, z.core.$strip>], "type">>>;
2444
+ input: z.ZodOptional<z.ZodObject<{
2445
+ $cardContent: z.ZodOptional<z.ZodObject<{
2446
+ document: z.ZodObject<{
2447
+ id: z.ZodString;
2448
+ type: z.ZodLiteral<"text/plain">;
2449
+ content: z.ZodOptional<z.ZodString>;
2450
+ textContent: z.ZodOptional<z.ZodString>;
2451
+ }, z.core.$strip>;
2452
+ editable: z.ZodBoolean;
2453
+ editing: z.ZodBoolean;
2454
+ deletable: z.ZodBoolean;
2455
+ position: z.ZodLiteral<"right">;
2456
+ }, z.core.$strip>>;
2457
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2458
+ bypass: z.ZodBoolean;
2459
+ validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2460
+ rule: z.ZodEnum<{
2461
+ number: "number";
2462
+ type: "type";
2463
+ text: "text";
2464
+ date: "date";
2465
+ regex: "regex";
2466
+ }>;
2467
+ regex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2468
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2469
+ error: z.ZodString;
2470
+ }, z.core.$strip>>>;
2471
+ expiration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2472
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2473
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2474
+ source: z.ZodEnum<{
2475
+ context: "context";
2476
+ input: "input";
2477
+ }>;
2478
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
+ comparison: z.ZodEnum<{
2480
+ endsWith: "endsWith";
2481
+ startsWith: "startsWith";
2482
+ equals: "equals";
2483
+ notEquals: "notEquals";
2484
+ contains: "contains";
2485
+ greaterThan: "greaterThan";
2486
+ lessThan: "lessThan";
2487
+ greaterThanOrEquals: "greaterThanOrEquals";
2488
+ lessThanOrEquals: "lessThanOrEquals";
2489
+ matches: "matches";
2490
+ approximateTo: "approximateTo";
2491
+ exists: "exists";
2492
+ notExists: "notExists";
2493
+ }>;
2494
+ operator: z.ZodOptional<z.ZodEnum<{
2495
+ or: "or";
2496
+ and: "and";
2497
+ }>>;
2498
+ values: z.ZodArray<z.ZodString>;
2499
+ }, z.core.$strip>>>;
2500
+ }, z.core.$strict>>;
2501
+ }, z.core.$strict>>;
2502
+ $conditionOutputs: z.ZodArray<z.ZodObject<{
2503
+ stateId: z.ZodString;
2504
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
2505
+ state: "state";
2506
+ variable: "variable";
2507
+ }>>;
2508
+ $id: z.ZodOptional<z.ZodString>;
2509
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2510
+ $connId: z.ZodOptional<z.ZodString>;
2511
+ $contentId: z.ZodOptional<z.ZodString>;
2512
+ $isDeskOutput: z.ZodOptional<z.ZodBoolean>;
2513
+ $isDeskCustomOutput: z.ZodOptional<z.ZodBoolean>;
2514
+ $isDeskDefaultOutput: z.ZodOptional<z.ZodBoolean>;
2515
+ conditions: z.ZodArray<z.ZodObject<{
2516
+ source: z.ZodEnum<{
2517
+ context: "context";
2518
+ input: "input";
2519
+ }>;
2520
+ variable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2521
+ comparison: z.ZodEnum<{
2522
+ endsWith: "endsWith";
2523
+ startsWith: "startsWith";
2524
+ equals: "equals";
2525
+ notEquals: "notEquals";
2526
+ contains: "contains";
2527
+ greaterThan: "greaterThan";
2528
+ lessThan: "lessThan";
2529
+ greaterThanOrEquals: "greaterThanOrEquals";
2530
+ lessThanOrEquals: "lessThanOrEquals";
2531
+ matches: "matches";
2532
+ approximateTo: "approximateTo";
2533
+ exists: "exists";
2534
+ notExists: "notExists";
2535
+ }>;
2536
+ operator: z.ZodOptional<z.ZodEnum<{
2537
+ or: "or";
2538
+ and: "and";
2539
+ }>>;
2540
+ values: z.ZodArray<z.ZodString>;
2541
+ }, z.core.$strip>>;
2542
+ }, z.core.$strict>>;
2543
+ $defaultOutput: z.ZodObject<{
2544
+ stateId: z.ZodString;
2545
+ typeOfStateId: z.ZodOptional<z.ZodEnum<{
2546
+ state: "state";
2547
+ variable: "variable";
2548
+ }>>;
2549
+ $invalid: z.ZodOptional<z.ZodBoolean>;
2550
+ }, z.core.$strict>;
2551
+ }, z.core.$strict>>;
2552
+ export type MinifiedState = z.infer<typeof minifiedStateSchema>;
2553
+ export type MinifiedFlow = z.infer<typeof minifiedFlowSchema>;
2554
+ /**
2555
+ * Strips everything the builder can regenerate, so what is left is the part of
2556
+ * the flow worth reading and editing.
2557
+ *
2558
+ * The result is round-trippable through `expandMinifiedFlow` with one
2559
+ * exception: typing indicators are discarded rather than preserved, so a custom
2560
+ * typing interval is replaced by the default on the way back. See
2561
+ * `createChatStateContentAction`.
2562
+ */
2563
+ export declare function minifyFlow(flow: Flow): MinifiedFlow;
2564
+ export declare function expandMinifiedFlow(minifiedFlow: MinifiedFlow, staleFlow?: Flow): Flow;
2565
+ //# sourceMappingURL=minifier.d.ts.map