@whitewall/blip-sdk 0.0.191 → 0.0.193

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