@whitewall/blip-sdk 0.0.173 → 0.0.175

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 (131) hide show
  1. package/README.md +13 -6
  2. package/dist/cjs/client.js +3 -0
  3. package/dist/cjs/client.js.map +1 -1
  4. package/dist/cjs/index.js +3 -0
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/namespaces/account.js +23 -11
  7. package/dist/cjs/namespaces/account.js.map +1 -1
  8. package/dist/cjs/namespaces/analytics.js +54 -0
  9. package/dist/cjs/namespaces/analytics.js.map +1 -1
  10. package/dist/cjs/namespaces/desk.js +264 -45
  11. package/dist/cjs/namespaces/desk.js.map +1 -1
  12. package/dist/cjs/namespaces/plugins.js +1 -0
  13. package/dist/cjs/namespaces/plugins.js.map +1 -1
  14. package/dist/cjs/namespaces/portal.js +45 -0
  15. package/dist/cjs/namespaces/portal.js.map +1 -1
  16. package/dist/cjs/namespaces/tunnel.js +46 -0
  17. package/dist/cjs/namespaces/tunnel.js.map +1 -0
  18. package/dist/cjs/namespaces/whatsapp.js +2 -23
  19. package/dist/cjs/namespaces/whatsapp.js.map +1 -1
  20. package/dist/cjs/sender/multi/multisender.js +28 -9
  21. package/dist/cjs/sender/multi/multisender.js.map +1 -1
  22. package/dist/cjs/sender/sessionnegotiator.js +1 -1
  23. package/dist/cjs/sender/sessionnegotiator.js.map +1 -1
  24. package/dist/cjs/sender/tcp/tcpsender.js +35 -2
  25. package/dist/cjs/sender/tcp/tcpsender.js.map +1 -1
  26. package/dist/cjs/sender/websocket/websocketsender.js +1 -1
  27. package/dist/cjs/sender/websocket/websocketsender.js.map +1 -1
  28. package/dist/cjs/types/desk.js.map +1 -1
  29. package/dist/cjs/types/flow.js +344 -0
  30. package/dist/cjs/types/flow.js.map +1 -1
  31. package/dist/cjs/utils/desk.js +65 -0
  32. package/dist/cjs/utils/desk.js.map +1 -0
  33. package/dist/cjs/utils/thread.js +84 -0
  34. package/dist/cjs/utils/thread.js.map +1 -0
  35. package/dist/cjs/utils/whatsapp.js +268 -0
  36. package/dist/cjs/utils/whatsapp.js.map +1 -0
  37. package/dist/esm/client.js +3 -0
  38. package/dist/esm/client.js.map +1 -1
  39. package/dist/esm/index.js +3 -0
  40. package/dist/esm/index.js.map +1 -1
  41. package/dist/esm/namespaces/account.js +19 -10
  42. package/dist/esm/namespaces/account.js.map +1 -1
  43. package/dist/esm/namespaces/analytics.js +54 -0
  44. package/dist/esm/namespaces/analytics.js.map +1 -1
  45. package/dist/esm/namespaces/desk.js +264 -45
  46. package/dist/esm/namespaces/desk.js.map +1 -1
  47. package/dist/esm/namespaces/plugins.js +1 -0
  48. package/dist/esm/namespaces/plugins.js.map +1 -1
  49. package/dist/esm/namespaces/portal.js +45 -0
  50. package/dist/esm/namespaces/portal.js.map +1 -1
  51. package/dist/esm/namespaces/tunnel.js +42 -0
  52. package/dist/esm/namespaces/tunnel.js.map +1 -0
  53. package/dist/esm/namespaces/whatsapp.js +2 -23
  54. package/dist/esm/namespaces/whatsapp.js.map +1 -1
  55. package/dist/esm/sender/multi/multisender.js +28 -9
  56. package/dist/esm/sender/multi/multisender.js.map +1 -1
  57. package/dist/esm/sender/sessionnegotiator.js +1 -1
  58. package/dist/esm/sender/sessionnegotiator.js.map +1 -1
  59. package/dist/esm/sender/tcp/tcpsender.js +1 -1
  60. package/dist/esm/sender/tcp/tcpsender.js.map +1 -1
  61. package/dist/esm/sender/websocket/websocketsender.js +1 -1
  62. package/dist/esm/sender/websocket/websocketsender.js.map +1 -1
  63. package/dist/esm/types/desk.js.map +1 -1
  64. package/dist/esm/types/flow.js +343 -1
  65. package/dist/esm/types/flow.js.map +1 -1
  66. package/dist/esm/utils/desk.js +59 -0
  67. package/dist/esm/utils/desk.js.map +1 -0
  68. package/dist/esm/utils/thread.js +80 -0
  69. package/dist/esm/utils/thread.js.map +1 -0
  70. package/dist/esm/utils/whatsapp.js +263 -0
  71. package/dist/esm/utils/whatsapp.js.map +1 -0
  72. package/dist/types/client.d.ts +2 -0
  73. package/dist/types/client.d.ts.map +1 -1
  74. package/dist/types/index.d.ts +3 -0
  75. package/dist/types/index.d.ts.map +1 -1
  76. package/dist/types/namespaces/account.d.ts +1791 -3
  77. package/dist/types/namespaces/account.d.ts.map +1 -1
  78. package/dist/types/namespaces/analytics.d.ts +60 -0
  79. package/dist/types/namespaces/analytics.d.ts.map +1 -1
  80. package/dist/types/namespaces/desk.d.ts +124 -4
  81. package/dist/types/namespaces/desk.d.ts.map +1 -1
  82. package/dist/types/namespaces/plugins.d.ts +1 -0
  83. package/dist/types/namespaces/plugins.d.ts.map +1 -1
  84. package/dist/types/namespaces/portal.d.ts +45 -0
  85. package/dist/types/namespaces/portal.d.ts.map +1 -1
  86. package/dist/types/namespaces/tunnel.d.ts +28 -0
  87. package/dist/types/namespaces/tunnel.d.ts.map +1 -0
  88. package/dist/types/namespaces/whatsapp.d.ts +3 -2
  89. package/dist/types/namespaces/whatsapp.d.ts.map +1 -1
  90. package/dist/types/schemas/webhook.d.ts +2 -2
  91. package/dist/types/sender/gateway/customgatewaysender.d.ts +1 -1
  92. package/dist/types/sender/http/httpsender.d.ts +1 -1
  93. package/dist/types/sender/multi/multisender.d.ts +1 -0
  94. package/dist/types/sender/multi/multisender.d.ts.map +1 -1
  95. package/dist/types/sender/sender.d.ts +1 -1
  96. package/dist/types/sender/tcp/tcpsender.d.ts +1 -1
  97. package/dist/types/sender/websocket/websocketsender.d.ts +1 -1
  98. package/dist/types/types/desk.d.ts +57 -1
  99. package/dist/types/types/desk.d.ts.map +1 -1
  100. package/dist/types/types/flow.d.ts +3269 -142
  101. package/dist/types/types/flow.d.ts.map +1 -1
  102. package/dist/types/types/message.d.ts +1 -1
  103. package/dist/types/types/whatsapp.d.ts +10 -2
  104. package/dist/types/types/whatsapp.d.ts.map +1 -1
  105. package/dist/types/utils/desk.d.ts +6 -0
  106. package/dist/types/utils/desk.d.ts.map +1 -0
  107. package/dist/types/utils/thread.d.ts +4 -0
  108. package/dist/types/utils/thread.d.ts.map +1 -0
  109. package/dist/types/utils/whatsapp.d.ts +103 -0
  110. package/dist/types/utils/whatsapp.d.ts.map +1 -0
  111. package/package.json +8 -11
  112. package/src/client.ts +3 -0
  113. package/src/index.ts +3 -0
  114. package/src/namespaces/account.ts +27 -13
  115. package/src/namespaces/analytics.ts +154 -0
  116. package/src/namespaces/desk.ts +428 -77
  117. package/src/namespaces/plugins.ts +2 -0
  118. package/src/namespaces/portal.ts +110 -0
  119. package/src/namespaces/tunnel.ts +58 -0
  120. package/src/namespaces/whatsapp.ts +4 -39
  121. package/src/sender/multi/multisender.ts +38 -14
  122. package/src/sender/sessionnegotiator.ts +1 -1
  123. package/src/sender/tcp/tcpsender.ts +1 -1
  124. package/src/sender/websocket/websocketsender.ts +1 -1
  125. package/src/types/desk.ts +66 -1
  126. package/src/types/flow.ts +387 -246
  127. package/src/types/message.ts +1 -1
  128. package/src/types/whatsapp.ts +11 -2
  129. package/src/utils/desk.ts +78 -0
  130. package/src/utils/thread.ts +119 -0
  131. package/src/utils/whatsapp.ts +530 -0
@@ -34,7 +34,7 @@ export declare class AccountNamespace extends Namespace {
34
34
  }, opts?: ConsumeOptions): AsyncIterable<Contact>;
35
35
  streamContactsInTimeframe(startDate: Date | string, endDate: Date | string, opts?: Omit<ConsumeOptions, 'skip'>): AsyncIterable<Contact>;
36
36
  getContactComments(contact: Identity, opts?: ConsumeOptions): Promise<Array<Comment>>;
37
- addContactComment(contact: Identity, content: string, opts?: ConsumeOptions): Promise<void>;
37
+ addContactComment(contact: Identity, content: string, commenter?: Identity, opts?: ConsumeOptions): Promise<void>;
38
38
  deleteContactComment(contact: Identity, commentId: string, opts?: ConsumeOptions): Promise<void>;
39
39
  getContact(contact: Identity, opts?: ConsumeOptions): Promise<Contact | undefined>;
40
40
  setContact(contact: Contact, opts?: ConsumeOptions): Promise<void>;
@@ -81,8 +81,1796 @@ export declare class AccountNamespace extends Namespace {
81
81
  fullName: string;
82
82
  service: string;
83
83
  }>>;
84
- getBuilderFlow(state: 'published' | 'working', opts?: ConsumeOptions): Promise<BuilderFlow | undefined>;
85
- getBuilderGlobalActions(state: 'published' | 'working', opts?: ConsumeOptions): Promise<State | undefined>;
84
+ getBuilderFlow(state: 'published' | 'working', opts?: ConsumeOptions): Promise<Record<string, {
85
+ $contentActions: {
86
+ action?: ({
87
+ $id: string;
88
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
89
+ $title?: string | undefined;
90
+ $invalid?: boolean | undefined;
91
+ conditions?: {
92
+ source: "context" | "input";
93
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
94
+ values: string[];
95
+ variable?: string | null | undefined;
96
+ operator?: "or" | "and" | undefined;
97
+ }[] | undefined;
98
+ $cardContent?: {
99
+ editable: boolean;
100
+ deletable: boolean;
101
+ position: "left";
102
+ document: {
103
+ id: string;
104
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
105
+ content: string | {
106
+ state: string;
107
+ interval?: string | number | undefined;
108
+ } | {
109
+ text: string;
110
+ uri: string;
111
+ title?: string | null | undefined;
112
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
113
+ } | {
114
+ text: string;
115
+ options: string[] | {
116
+ text: string;
117
+ }[];
118
+ scope?: "immediate" | "persistent" | null | undefined;
119
+ } | {
120
+ type: string;
121
+ uri: string;
122
+ title?: string | undefined;
123
+ text?: string | undefined;
124
+ };
125
+ textContent?: string | undefined;
126
+ };
127
+ } | null | undefined;
128
+ continueOnError?: boolean | undefined;
129
+ } & ({
130
+ type: "SendMessage";
131
+ settings: {
132
+ content: string | {
133
+ state: string;
134
+ interval?: string | number | undefined;
135
+ } | {
136
+ text: string;
137
+ uri: string;
138
+ title?: string | null | undefined;
139
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
140
+ } | {
141
+ text: string;
142
+ options: string[] | {
143
+ text: string;
144
+ }[];
145
+ scope?: "immediate" | "persistent" | null | undefined;
146
+ } | {
147
+ type: string;
148
+ uri: string;
149
+ title?: string | undefined;
150
+ text?: string | undefined;
151
+ };
152
+ $invalid?: boolean | undefined;
153
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
154
+ id?: string | undefined;
155
+ metadata?: Record<string, string> | undefined;
156
+ };
157
+ } | {
158
+ type: "SendRawMessage";
159
+ settings: {
160
+ rawContent: string;
161
+ $invalid?: boolean | undefined;
162
+ type?: "application/json" | undefined;
163
+ };
164
+ } | {
165
+ type: "TrackEvent";
166
+ settings: {
167
+ category: string;
168
+ action: string;
169
+ $invalid?: boolean | undefined;
170
+ extras?: Record<string, string> | null | undefined;
171
+ };
172
+ } | {
173
+ type: "ProcessHttp";
174
+ settings: {
175
+ method: "POST" | "GET" | "PUT" | "DELETE";
176
+ uri: string;
177
+ body: string;
178
+ responseBodyVariable: string;
179
+ responseStatusVariable: string;
180
+ $invalid?: boolean | undefined;
181
+ headers?: Record<string, string> | null | undefined;
182
+ };
183
+ } | {
184
+ type: "MergeContact";
185
+ settings: {
186
+ $invalid?: boolean | undefined;
187
+ name?: string | null | undefined;
188
+ email?: string | null | undefined;
189
+ city?: string | null | undefined;
190
+ extras?: Record<string, string> | null | undefined;
191
+ };
192
+ } | {
193
+ type: "ExecuteScript";
194
+ settings: {
195
+ source: string;
196
+ inputVariables: string[];
197
+ outputVariable: string;
198
+ $invalid?: boolean | undefined;
199
+ function?: "run" | undefined;
200
+ };
201
+ } | {
202
+ type: "ExecuteScriptV2";
203
+ settings: {
204
+ source: string;
205
+ inputVariables: string[];
206
+ outputVariable: string;
207
+ $invalid?: boolean | undefined;
208
+ function?: "run" | undefined;
209
+ };
210
+ } | {
211
+ type: "SetVariable";
212
+ settings: {
213
+ variable: string;
214
+ $invalid?: boolean | undefined;
215
+ value?: string | number | undefined;
216
+ expiration?: number | null | undefined;
217
+ };
218
+ } | {
219
+ type: "ProcessCommand";
220
+ settings: {
221
+ to: string;
222
+ method: "get" | "set" | "merge" | "delete";
223
+ uri: string;
224
+ variable: string;
225
+ $invalid?: boolean | undefined;
226
+ from?: string | undefined;
227
+ };
228
+ } | {
229
+ type: "ForwardToDesk";
230
+ settings: {
231
+ $invalid?: boolean | undefined;
232
+ };
233
+ } | {
234
+ type: "LeavingFromDesk";
235
+ settings: {
236
+ $invalid?: boolean | undefined;
237
+ };
238
+ } | {
239
+ type: "Redirect";
240
+ settings: {
241
+ address: string;
242
+ context: {
243
+ type: "text/plain";
244
+ value: string;
245
+ };
246
+ $invalid?: boolean | undefined;
247
+ };
248
+ })) | undefined;
249
+ input?: {
250
+ $cardContent: {
251
+ document: {
252
+ id: string;
253
+ type: "text/plain";
254
+ content?: string | undefined;
255
+ textContent?: string | undefined;
256
+ };
257
+ editable: boolean;
258
+ editing: boolean;
259
+ deletable: boolean;
260
+ position: "right";
261
+ };
262
+ $invalid: boolean;
263
+ bypass: boolean;
264
+ validation?: {
265
+ rule: "number" | "type" | "text" | "date" | "regex";
266
+ error: string;
267
+ regex?: string | null | undefined;
268
+ type?: string | null | undefined;
269
+ } | null | undefined;
270
+ expiration?: string | null | undefined;
271
+ variable?: string | null | undefined;
272
+ conditions?: {
273
+ source: "context" | "input";
274
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
275
+ values: string[];
276
+ variable?: string | null | undefined;
277
+ operator?: "or" | "and" | undefined;
278
+ }[] | undefined;
279
+ } | undefined;
280
+ $invalid?: boolean | undefined;
281
+ }[];
282
+ $conditionOutputs: {
283
+ stateId: string;
284
+ conditions: {
285
+ source: "context" | "input";
286
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
287
+ values: string[];
288
+ variable?: string | null | undefined;
289
+ operator?: "or" | "and" | undefined;
290
+ }[];
291
+ typeOfStateId?: "state" | "variable" | undefined;
292
+ $id?: string | undefined;
293
+ $invalid?: boolean | undefined;
294
+ $connId?: string | undefined;
295
+ $contentId?: string | undefined;
296
+ $isDeskOutput?: boolean | undefined;
297
+ $isDeskCustomOutput?: boolean | undefined;
298
+ $isDeskDefaultOutput?: boolean | undefined;
299
+ }[];
300
+ $enteringCustomActions: ({
301
+ $id: string;
302
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
303
+ $title?: string | undefined;
304
+ $invalid?: boolean | undefined;
305
+ conditions?: {
306
+ source: "context" | "input";
307
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
308
+ values: string[];
309
+ variable?: string | null | undefined;
310
+ operator?: "or" | "and" | undefined;
311
+ }[] | undefined;
312
+ $cardContent?: {
313
+ editable: boolean;
314
+ deletable: boolean;
315
+ position: "left";
316
+ document: {
317
+ id: string;
318
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
319
+ content: string | {
320
+ state: string;
321
+ interval?: string | number | undefined;
322
+ } | {
323
+ text: string;
324
+ uri: string;
325
+ title?: string | null | undefined;
326
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
327
+ } | {
328
+ text: string;
329
+ options: string[] | {
330
+ text: string;
331
+ }[];
332
+ scope?: "immediate" | "persistent" | null | undefined;
333
+ } | {
334
+ type: string;
335
+ uri: string;
336
+ title?: string | undefined;
337
+ text?: string | undefined;
338
+ };
339
+ textContent?: string | undefined;
340
+ };
341
+ } | null | undefined;
342
+ continueOnError?: boolean | undefined;
343
+ } & ({
344
+ type: "SendMessage";
345
+ settings: {
346
+ content: string | {
347
+ state: string;
348
+ interval?: string | number | undefined;
349
+ } | {
350
+ text: string;
351
+ uri: string;
352
+ title?: string | null | undefined;
353
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
354
+ } | {
355
+ text: string;
356
+ options: string[] | {
357
+ text: string;
358
+ }[];
359
+ scope?: "immediate" | "persistent" | null | undefined;
360
+ } | {
361
+ type: string;
362
+ uri: string;
363
+ title?: string | undefined;
364
+ text?: string | undefined;
365
+ };
366
+ $invalid?: boolean | undefined;
367
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
368
+ id?: string | undefined;
369
+ metadata?: Record<string, string> | undefined;
370
+ };
371
+ } | {
372
+ type: "SendRawMessage";
373
+ settings: {
374
+ rawContent: string;
375
+ $invalid?: boolean | undefined;
376
+ type?: "application/json" | undefined;
377
+ };
378
+ } | {
379
+ type: "TrackEvent";
380
+ settings: {
381
+ category: string;
382
+ action: string;
383
+ $invalid?: boolean | undefined;
384
+ extras?: Record<string, string> | null | undefined;
385
+ };
386
+ } | {
387
+ type: "ProcessHttp";
388
+ settings: {
389
+ method: "POST" | "GET" | "PUT" | "DELETE";
390
+ uri: string;
391
+ body: string;
392
+ responseBodyVariable: string;
393
+ responseStatusVariable: string;
394
+ $invalid?: boolean | undefined;
395
+ headers?: Record<string, string> | null | undefined;
396
+ };
397
+ } | {
398
+ type: "MergeContact";
399
+ settings: {
400
+ $invalid?: boolean | undefined;
401
+ name?: string | null | undefined;
402
+ email?: string | null | undefined;
403
+ city?: string | null | undefined;
404
+ extras?: Record<string, string> | null | undefined;
405
+ };
406
+ } | {
407
+ type: "ExecuteScript";
408
+ settings: {
409
+ source: string;
410
+ inputVariables: string[];
411
+ outputVariable: string;
412
+ $invalid?: boolean | undefined;
413
+ function?: "run" | undefined;
414
+ };
415
+ } | {
416
+ type: "ExecuteScriptV2";
417
+ settings: {
418
+ source: string;
419
+ inputVariables: string[];
420
+ outputVariable: string;
421
+ $invalid?: boolean | undefined;
422
+ function?: "run" | undefined;
423
+ };
424
+ } | {
425
+ type: "SetVariable";
426
+ settings: {
427
+ variable: string;
428
+ $invalid?: boolean | undefined;
429
+ value?: string | number | undefined;
430
+ expiration?: number | null | undefined;
431
+ };
432
+ } | {
433
+ type: "ProcessCommand";
434
+ settings: {
435
+ to: string;
436
+ method: "get" | "set" | "merge" | "delete";
437
+ uri: string;
438
+ variable: string;
439
+ $invalid?: boolean | undefined;
440
+ from?: string | undefined;
441
+ };
442
+ } | {
443
+ type: "ForwardToDesk";
444
+ settings: {
445
+ $invalid?: boolean | undefined;
446
+ };
447
+ } | {
448
+ type: "LeavingFromDesk";
449
+ settings: {
450
+ $invalid?: boolean | undefined;
451
+ };
452
+ } | {
453
+ type: "Redirect";
454
+ settings: {
455
+ address: string;
456
+ context: {
457
+ type: "text/plain";
458
+ value: string;
459
+ };
460
+ $invalid?: boolean | undefined;
461
+ };
462
+ }))[];
463
+ $leavingCustomActions: ({
464
+ $id: string;
465
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
466
+ $title?: string | undefined;
467
+ $invalid?: boolean | undefined;
468
+ conditions?: {
469
+ source: "context" | "input";
470
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
471
+ values: string[];
472
+ variable?: string | null | undefined;
473
+ operator?: "or" | "and" | undefined;
474
+ }[] | undefined;
475
+ $cardContent?: {
476
+ editable: boolean;
477
+ deletable: boolean;
478
+ position: "left";
479
+ document: {
480
+ id: string;
481
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
482
+ content: string | {
483
+ state: string;
484
+ interval?: string | number | undefined;
485
+ } | {
486
+ text: string;
487
+ uri: string;
488
+ title?: string | null | undefined;
489
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
490
+ } | {
491
+ text: string;
492
+ options: string[] | {
493
+ text: string;
494
+ }[];
495
+ scope?: "immediate" | "persistent" | null | undefined;
496
+ } | {
497
+ type: string;
498
+ uri: string;
499
+ title?: string | undefined;
500
+ text?: string | undefined;
501
+ };
502
+ textContent?: string | undefined;
503
+ };
504
+ } | null | undefined;
505
+ continueOnError?: boolean | undefined;
506
+ } & ({
507
+ type: "SendMessage";
508
+ settings: {
509
+ content: string | {
510
+ state: string;
511
+ interval?: string | number | undefined;
512
+ } | {
513
+ text: string;
514
+ uri: string;
515
+ title?: string | null | undefined;
516
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
517
+ } | {
518
+ text: string;
519
+ options: string[] | {
520
+ text: string;
521
+ }[];
522
+ scope?: "immediate" | "persistent" | null | undefined;
523
+ } | {
524
+ type: string;
525
+ uri: string;
526
+ title?: string | undefined;
527
+ text?: string | undefined;
528
+ };
529
+ $invalid?: boolean | undefined;
530
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
531
+ id?: string | undefined;
532
+ metadata?: Record<string, string> | undefined;
533
+ };
534
+ } | {
535
+ type: "SendRawMessage";
536
+ settings: {
537
+ rawContent: string;
538
+ $invalid?: boolean | undefined;
539
+ type?: "application/json" | undefined;
540
+ };
541
+ } | {
542
+ type: "TrackEvent";
543
+ settings: {
544
+ category: string;
545
+ action: string;
546
+ $invalid?: boolean | undefined;
547
+ extras?: Record<string, string> | null | undefined;
548
+ };
549
+ } | {
550
+ type: "ProcessHttp";
551
+ settings: {
552
+ method: "POST" | "GET" | "PUT" | "DELETE";
553
+ uri: string;
554
+ body: string;
555
+ responseBodyVariable: string;
556
+ responseStatusVariable: string;
557
+ $invalid?: boolean | undefined;
558
+ headers?: Record<string, string> | null | undefined;
559
+ };
560
+ } | {
561
+ type: "MergeContact";
562
+ settings: {
563
+ $invalid?: boolean | undefined;
564
+ name?: string | null | undefined;
565
+ email?: string | null | undefined;
566
+ city?: string | null | undefined;
567
+ extras?: Record<string, string> | null | undefined;
568
+ };
569
+ } | {
570
+ type: "ExecuteScript";
571
+ settings: {
572
+ source: string;
573
+ inputVariables: string[];
574
+ outputVariable: string;
575
+ $invalid?: boolean | undefined;
576
+ function?: "run" | undefined;
577
+ };
578
+ } | {
579
+ type: "ExecuteScriptV2";
580
+ settings: {
581
+ source: string;
582
+ inputVariables: string[];
583
+ outputVariable: string;
584
+ $invalid?: boolean | undefined;
585
+ function?: "run" | undefined;
586
+ };
587
+ } | {
588
+ type: "SetVariable";
589
+ settings: {
590
+ variable: string;
591
+ $invalid?: boolean | undefined;
592
+ value?: string | number | undefined;
593
+ expiration?: number | null | undefined;
594
+ };
595
+ } | {
596
+ type: "ProcessCommand";
597
+ settings: {
598
+ to: string;
599
+ method: "get" | "set" | "merge" | "delete";
600
+ uri: string;
601
+ variable: string;
602
+ $invalid?: boolean | undefined;
603
+ from?: string | undefined;
604
+ };
605
+ } | {
606
+ type: "ForwardToDesk";
607
+ settings: {
608
+ $invalid?: boolean | undefined;
609
+ };
610
+ } | {
611
+ type: "LeavingFromDesk";
612
+ settings: {
613
+ $invalid?: boolean | undefined;
614
+ };
615
+ } | {
616
+ type: "Redirect";
617
+ settings: {
618
+ address: string;
619
+ context: {
620
+ type: "text/plain";
621
+ value: string;
622
+ };
623
+ $invalid?: boolean | undefined;
624
+ };
625
+ }))[];
626
+ $inputSuggestions: string[];
627
+ $defaultOutput: {
628
+ stateId: string;
629
+ typeOfStateId?: "state" | "variable" | undefined;
630
+ $invalid?: boolean | undefined;
631
+ };
632
+ $tags: {
633
+ id: string;
634
+ label: string;
635
+ background: string;
636
+ canChangeBackground: boolean;
637
+ }[];
638
+ $title: string;
639
+ $invalidContentActions: boolean;
640
+ $invalidOutputs: boolean;
641
+ $invalidCustomActions: boolean;
642
+ $localCustomActions?: ({
643
+ $id: string;
644
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
645
+ $title?: string | undefined;
646
+ $invalid?: boolean | undefined;
647
+ conditions?: {
648
+ source: "context" | "input";
649
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
650
+ values: string[];
651
+ variable?: string | null | undefined;
652
+ operator?: "or" | "and" | undefined;
653
+ }[] | undefined;
654
+ $cardContent?: {
655
+ editable: boolean;
656
+ deletable: boolean;
657
+ position: "left";
658
+ document: {
659
+ id: string;
660
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
661
+ content: string | {
662
+ state: string;
663
+ interval?: string | number | undefined;
664
+ } | {
665
+ text: string;
666
+ uri: string;
667
+ title?: string | null | undefined;
668
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
669
+ } | {
670
+ text: string;
671
+ options: string[] | {
672
+ text: string;
673
+ }[];
674
+ scope?: "immediate" | "persistent" | null | undefined;
675
+ } | {
676
+ type: string;
677
+ uri: string;
678
+ title?: string | undefined;
679
+ text?: string | undefined;
680
+ };
681
+ textContent?: string | undefined;
682
+ };
683
+ } | null | undefined;
684
+ continueOnError?: boolean | undefined;
685
+ } & ({
686
+ type: "SendMessage";
687
+ settings: {
688
+ content: string | {
689
+ state: string;
690
+ interval?: string | number | undefined;
691
+ } | {
692
+ text: string;
693
+ uri: string;
694
+ title?: string | null | undefined;
695
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
696
+ } | {
697
+ text: string;
698
+ options: string[] | {
699
+ text: string;
700
+ }[];
701
+ scope?: "immediate" | "persistent" | null | undefined;
702
+ } | {
703
+ type: string;
704
+ uri: string;
705
+ title?: string | undefined;
706
+ text?: string | undefined;
707
+ };
708
+ $invalid?: boolean | undefined;
709
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
710
+ id?: string | undefined;
711
+ metadata?: Record<string, string> | undefined;
712
+ };
713
+ } | {
714
+ type: "SendRawMessage";
715
+ settings: {
716
+ rawContent: string;
717
+ $invalid?: boolean | undefined;
718
+ type?: "application/json" | undefined;
719
+ };
720
+ } | {
721
+ type: "TrackEvent";
722
+ settings: {
723
+ category: string;
724
+ action: string;
725
+ $invalid?: boolean | undefined;
726
+ extras?: Record<string, string> | null | undefined;
727
+ };
728
+ } | {
729
+ type: "ProcessHttp";
730
+ settings: {
731
+ method: "POST" | "GET" | "PUT" | "DELETE";
732
+ uri: string;
733
+ body: string;
734
+ responseBodyVariable: string;
735
+ responseStatusVariable: string;
736
+ $invalid?: boolean | undefined;
737
+ headers?: Record<string, string> | null | undefined;
738
+ };
739
+ } | {
740
+ type: "MergeContact";
741
+ settings: {
742
+ $invalid?: boolean | undefined;
743
+ name?: string | null | undefined;
744
+ email?: string | null | undefined;
745
+ city?: string | null | undefined;
746
+ extras?: Record<string, string> | null | undefined;
747
+ };
748
+ } | {
749
+ type: "ExecuteScript";
750
+ settings: {
751
+ source: string;
752
+ inputVariables: string[];
753
+ outputVariable: string;
754
+ $invalid?: boolean | undefined;
755
+ function?: "run" | undefined;
756
+ };
757
+ } | {
758
+ type: "ExecuteScriptV2";
759
+ settings: {
760
+ source: string;
761
+ inputVariables: string[];
762
+ outputVariable: string;
763
+ $invalid?: boolean | undefined;
764
+ function?: "run" | undefined;
765
+ };
766
+ } | {
767
+ type: "SetVariable";
768
+ settings: {
769
+ variable: string;
770
+ $invalid?: boolean | undefined;
771
+ value?: string | number | undefined;
772
+ expiration?: number | null | undefined;
773
+ };
774
+ } | {
775
+ type: "ProcessCommand";
776
+ settings: {
777
+ to: string;
778
+ method: "get" | "set" | "merge" | "delete";
779
+ uri: string;
780
+ variable: string;
781
+ $invalid?: boolean | undefined;
782
+ from?: string | undefined;
783
+ };
784
+ } | {
785
+ type: "ForwardToDesk";
786
+ settings: {
787
+ $invalid?: boolean | undefined;
788
+ };
789
+ } | {
790
+ type: "LeavingFromDesk";
791
+ settings: {
792
+ $invalid?: boolean | undefined;
793
+ };
794
+ } | {
795
+ type: "Redirect";
796
+ settings: {
797
+ address: string;
798
+ context: {
799
+ type: "text/plain";
800
+ value: string;
801
+ };
802
+ $invalid?: boolean | undefined;
803
+ };
804
+ }))[] | undefined;
805
+ isAiGenerated?: boolean | undefined;
806
+ deskStateVersion?: string | undefined;
807
+ $afterStateChangedActions?: ({
808
+ $id: string;
809
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
810
+ $title?: string | undefined;
811
+ $invalid?: boolean | undefined;
812
+ conditions?: {
813
+ source: "context" | "input";
814
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
815
+ values: string[];
816
+ variable?: string | null | undefined;
817
+ operator?: "or" | "and" | undefined;
818
+ }[] | undefined;
819
+ $cardContent?: {
820
+ editable: boolean;
821
+ deletable: boolean;
822
+ position: "left";
823
+ document: {
824
+ id: string;
825
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
826
+ content: string | {
827
+ state: string;
828
+ interval?: string | number | undefined;
829
+ } | {
830
+ text: string;
831
+ uri: string;
832
+ title?: string | null | undefined;
833
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
834
+ } | {
835
+ text: string;
836
+ options: string[] | {
837
+ text: string;
838
+ }[];
839
+ scope?: "immediate" | "persistent" | null | undefined;
840
+ } | {
841
+ type: string;
842
+ uri: string;
843
+ title?: string | undefined;
844
+ text?: string | undefined;
845
+ };
846
+ textContent?: string | undefined;
847
+ };
848
+ } | null | undefined;
849
+ continueOnError?: boolean | undefined;
850
+ } & ({
851
+ type: "SendMessage";
852
+ settings: {
853
+ content: string | {
854
+ state: string;
855
+ interval?: string | number | undefined;
856
+ } | {
857
+ text: string;
858
+ uri: string;
859
+ title?: string | null | undefined;
860
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
861
+ } | {
862
+ text: string;
863
+ options: string[] | {
864
+ text: string;
865
+ }[];
866
+ scope?: "immediate" | "persistent" | null | undefined;
867
+ } | {
868
+ type: string;
869
+ uri: string;
870
+ title?: string | undefined;
871
+ text?: string | undefined;
872
+ };
873
+ $invalid?: boolean | undefined;
874
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
875
+ id?: string | undefined;
876
+ metadata?: Record<string, string> | undefined;
877
+ };
878
+ } | {
879
+ type: "SendRawMessage";
880
+ settings: {
881
+ rawContent: string;
882
+ $invalid?: boolean | undefined;
883
+ type?: "application/json" | undefined;
884
+ };
885
+ } | {
886
+ type: "TrackEvent";
887
+ settings: {
888
+ category: string;
889
+ action: string;
890
+ $invalid?: boolean | undefined;
891
+ extras?: Record<string, string> | null | undefined;
892
+ };
893
+ } | {
894
+ type: "ProcessHttp";
895
+ settings: {
896
+ method: "POST" | "GET" | "PUT" | "DELETE";
897
+ uri: string;
898
+ body: string;
899
+ responseBodyVariable: string;
900
+ responseStatusVariable: string;
901
+ $invalid?: boolean | undefined;
902
+ headers?: Record<string, string> | null | undefined;
903
+ };
904
+ } | {
905
+ type: "MergeContact";
906
+ settings: {
907
+ $invalid?: boolean | undefined;
908
+ name?: string | null | undefined;
909
+ email?: string | null | undefined;
910
+ city?: string | null | undefined;
911
+ extras?: Record<string, string> | null | undefined;
912
+ };
913
+ } | {
914
+ type: "ExecuteScript";
915
+ settings: {
916
+ source: string;
917
+ inputVariables: string[];
918
+ outputVariable: string;
919
+ $invalid?: boolean | undefined;
920
+ function?: "run" | undefined;
921
+ };
922
+ } | {
923
+ type: "ExecuteScriptV2";
924
+ settings: {
925
+ source: string;
926
+ inputVariables: string[];
927
+ outputVariable: string;
928
+ $invalid?: boolean | undefined;
929
+ function?: "run" | undefined;
930
+ };
931
+ } | {
932
+ type: "SetVariable";
933
+ settings: {
934
+ variable: string;
935
+ $invalid?: boolean | undefined;
936
+ value?: string | number | undefined;
937
+ expiration?: number | null | undefined;
938
+ };
939
+ } | {
940
+ type: "ProcessCommand";
941
+ settings: {
942
+ to: string;
943
+ method: "get" | "set" | "merge" | "delete";
944
+ uri: string;
945
+ variable: string;
946
+ $invalid?: boolean | undefined;
947
+ from?: string | undefined;
948
+ };
949
+ } | {
950
+ type: "ForwardToDesk";
951
+ settings: {
952
+ $invalid?: boolean | undefined;
953
+ };
954
+ } | {
955
+ type: "LeavingFromDesk";
956
+ settings: {
957
+ $invalid?: boolean | undefined;
958
+ };
959
+ } | {
960
+ type: "Redirect";
961
+ settings: {
962
+ address: string;
963
+ context: {
964
+ type: "text/plain";
965
+ value: string;
966
+ };
967
+ $invalid?: boolean | undefined;
968
+ };
969
+ }))[] | undefined;
970
+ id?: string | undefined;
971
+ root?: boolean | undefined;
972
+ $position?: {
973
+ top: string;
974
+ left: string;
975
+ } | undefined;
976
+ $invalid?: boolean | undefined;
977
+ $whiteWallIntegration?: unknown;
978
+ }> | undefined>;
979
+ getBuilderGlobalActions(state: 'published' | 'working', opts?: ConsumeOptions): Promise<{
980
+ $contentActions: {
981
+ action?: ({
982
+ $id: string;
983
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
984
+ $title?: string | undefined;
985
+ $invalid?: boolean | undefined;
986
+ conditions?: {
987
+ source: "context" | "input";
988
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
989
+ values: string[];
990
+ variable?: string | null | undefined;
991
+ operator?: "or" | "and" | undefined;
992
+ }[] | undefined;
993
+ $cardContent?: {
994
+ editable: boolean;
995
+ deletable: boolean;
996
+ position: "left";
997
+ document: {
998
+ id: string;
999
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
1000
+ content: string | {
1001
+ state: string;
1002
+ interval?: string | number | undefined;
1003
+ } | {
1004
+ text: string;
1005
+ uri: string;
1006
+ title?: string | null | undefined;
1007
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1008
+ } | {
1009
+ text: string;
1010
+ options: string[] | {
1011
+ text: string;
1012
+ }[];
1013
+ scope?: "immediate" | "persistent" | null | undefined;
1014
+ } | {
1015
+ type: string;
1016
+ uri: string;
1017
+ title?: string | undefined;
1018
+ text?: string | undefined;
1019
+ };
1020
+ textContent?: string | undefined;
1021
+ };
1022
+ } | null | undefined;
1023
+ continueOnError?: boolean | undefined;
1024
+ } & ({
1025
+ type: "SendMessage";
1026
+ settings: {
1027
+ content: string | {
1028
+ state: string;
1029
+ interval?: string | number | undefined;
1030
+ } | {
1031
+ text: string;
1032
+ uri: string;
1033
+ title?: string | null | undefined;
1034
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1035
+ } | {
1036
+ text: string;
1037
+ options: string[] | {
1038
+ text: string;
1039
+ }[];
1040
+ scope?: "immediate" | "persistent" | null | undefined;
1041
+ } | {
1042
+ type: string;
1043
+ uri: string;
1044
+ title?: string | undefined;
1045
+ text?: string | undefined;
1046
+ };
1047
+ $invalid?: boolean | undefined;
1048
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
1049
+ id?: string | undefined;
1050
+ metadata?: Record<string, string> | undefined;
1051
+ };
1052
+ } | {
1053
+ type: "SendRawMessage";
1054
+ settings: {
1055
+ rawContent: string;
1056
+ $invalid?: boolean | undefined;
1057
+ type?: "application/json" | undefined;
1058
+ };
1059
+ } | {
1060
+ type: "TrackEvent";
1061
+ settings: {
1062
+ category: string;
1063
+ action: string;
1064
+ $invalid?: boolean | undefined;
1065
+ extras?: Record<string, string> | null | undefined;
1066
+ };
1067
+ } | {
1068
+ type: "ProcessHttp";
1069
+ settings: {
1070
+ method: "POST" | "GET" | "PUT" | "DELETE";
1071
+ uri: string;
1072
+ body: string;
1073
+ responseBodyVariable: string;
1074
+ responseStatusVariable: string;
1075
+ $invalid?: boolean | undefined;
1076
+ headers?: Record<string, string> | null | undefined;
1077
+ };
1078
+ } | {
1079
+ type: "MergeContact";
1080
+ settings: {
1081
+ $invalid?: boolean | undefined;
1082
+ name?: string | null | undefined;
1083
+ email?: string | null | undefined;
1084
+ city?: string | null | undefined;
1085
+ extras?: Record<string, string> | null | undefined;
1086
+ };
1087
+ } | {
1088
+ type: "ExecuteScript";
1089
+ settings: {
1090
+ source: string;
1091
+ inputVariables: string[];
1092
+ outputVariable: string;
1093
+ $invalid?: boolean | undefined;
1094
+ function?: "run" | undefined;
1095
+ };
1096
+ } | {
1097
+ type: "ExecuteScriptV2";
1098
+ settings: {
1099
+ source: string;
1100
+ inputVariables: string[];
1101
+ outputVariable: string;
1102
+ $invalid?: boolean | undefined;
1103
+ function?: "run" | undefined;
1104
+ };
1105
+ } | {
1106
+ type: "SetVariable";
1107
+ settings: {
1108
+ variable: string;
1109
+ $invalid?: boolean | undefined;
1110
+ value?: string | number | undefined;
1111
+ expiration?: number | null | undefined;
1112
+ };
1113
+ } | {
1114
+ type: "ProcessCommand";
1115
+ settings: {
1116
+ to: string;
1117
+ method: "get" | "set" | "merge" | "delete";
1118
+ uri: string;
1119
+ variable: string;
1120
+ $invalid?: boolean | undefined;
1121
+ from?: string | undefined;
1122
+ };
1123
+ } | {
1124
+ type: "ForwardToDesk";
1125
+ settings: {
1126
+ $invalid?: boolean | undefined;
1127
+ };
1128
+ } | {
1129
+ type: "LeavingFromDesk";
1130
+ settings: {
1131
+ $invalid?: boolean | undefined;
1132
+ };
1133
+ } | {
1134
+ type: "Redirect";
1135
+ settings: {
1136
+ address: string;
1137
+ context: {
1138
+ type: "text/plain";
1139
+ value: string;
1140
+ };
1141
+ $invalid?: boolean | undefined;
1142
+ };
1143
+ })) | undefined;
1144
+ input?: {
1145
+ $cardContent: {
1146
+ document: {
1147
+ id: string;
1148
+ type: "text/plain";
1149
+ content?: string | undefined;
1150
+ textContent?: string | undefined;
1151
+ };
1152
+ editable: boolean;
1153
+ editing: boolean;
1154
+ deletable: boolean;
1155
+ position: "right";
1156
+ };
1157
+ $invalid: boolean;
1158
+ bypass: boolean;
1159
+ validation?: {
1160
+ rule: "number" | "type" | "text" | "date" | "regex";
1161
+ error: string;
1162
+ regex?: string | null | undefined;
1163
+ type?: string | null | undefined;
1164
+ } | null | undefined;
1165
+ expiration?: string | null | undefined;
1166
+ variable?: string | null | undefined;
1167
+ conditions?: {
1168
+ source: "context" | "input";
1169
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
1170
+ values: string[];
1171
+ variable?: string | null | undefined;
1172
+ operator?: "or" | "and" | undefined;
1173
+ }[] | undefined;
1174
+ } | undefined;
1175
+ $invalid?: boolean | undefined;
1176
+ }[];
1177
+ $conditionOutputs: {
1178
+ stateId: string;
1179
+ conditions: {
1180
+ source: "context" | "input";
1181
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
1182
+ values: string[];
1183
+ variable?: string | null | undefined;
1184
+ operator?: "or" | "and" | undefined;
1185
+ }[];
1186
+ typeOfStateId?: "state" | "variable" | undefined;
1187
+ $id?: string | undefined;
1188
+ $invalid?: boolean | undefined;
1189
+ $connId?: string | undefined;
1190
+ $contentId?: string | undefined;
1191
+ $isDeskOutput?: boolean | undefined;
1192
+ $isDeskCustomOutput?: boolean | undefined;
1193
+ $isDeskDefaultOutput?: boolean | undefined;
1194
+ }[];
1195
+ $enteringCustomActions: ({
1196
+ $id: string;
1197
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
1198
+ $title?: string | undefined;
1199
+ $invalid?: boolean | undefined;
1200
+ conditions?: {
1201
+ source: "context" | "input";
1202
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
1203
+ values: string[];
1204
+ variable?: string | null | undefined;
1205
+ operator?: "or" | "and" | undefined;
1206
+ }[] | undefined;
1207
+ $cardContent?: {
1208
+ editable: boolean;
1209
+ deletable: boolean;
1210
+ position: "left";
1211
+ document: {
1212
+ id: string;
1213
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
1214
+ content: string | {
1215
+ state: string;
1216
+ interval?: string | number | undefined;
1217
+ } | {
1218
+ text: string;
1219
+ uri: string;
1220
+ title?: string | null | undefined;
1221
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1222
+ } | {
1223
+ text: string;
1224
+ options: string[] | {
1225
+ text: string;
1226
+ }[];
1227
+ scope?: "immediate" | "persistent" | null | undefined;
1228
+ } | {
1229
+ type: string;
1230
+ uri: string;
1231
+ title?: string | undefined;
1232
+ text?: string | undefined;
1233
+ };
1234
+ textContent?: string | undefined;
1235
+ };
1236
+ } | null | undefined;
1237
+ continueOnError?: boolean | undefined;
1238
+ } & ({
1239
+ type: "SendMessage";
1240
+ settings: {
1241
+ content: string | {
1242
+ state: string;
1243
+ interval?: string | number | undefined;
1244
+ } | {
1245
+ text: string;
1246
+ uri: string;
1247
+ title?: string | null | undefined;
1248
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1249
+ } | {
1250
+ text: string;
1251
+ options: string[] | {
1252
+ text: string;
1253
+ }[];
1254
+ scope?: "immediate" | "persistent" | null | undefined;
1255
+ } | {
1256
+ type: string;
1257
+ uri: string;
1258
+ title?: string | undefined;
1259
+ text?: string | undefined;
1260
+ };
1261
+ $invalid?: boolean | undefined;
1262
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
1263
+ id?: string | undefined;
1264
+ metadata?: Record<string, string> | undefined;
1265
+ };
1266
+ } | {
1267
+ type: "SendRawMessage";
1268
+ settings: {
1269
+ rawContent: string;
1270
+ $invalid?: boolean | undefined;
1271
+ type?: "application/json" | undefined;
1272
+ };
1273
+ } | {
1274
+ type: "TrackEvent";
1275
+ settings: {
1276
+ category: string;
1277
+ action: string;
1278
+ $invalid?: boolean | undefined;
1279
+ extras?: Record<string, string> | null | undefined;
1280
+ };
1281
+ } | {
1282
+ type: "ProcessHttp";
1283
+ settings: {
1284
+ method: "POST" | "GET" | "PUT" | "DELETE";
1285
+ uri: string;
1286
+ body: string;
1287
+ responseBodyVariable: string;
1288
+ responseStatusVariable: string;
1289
+ $invalid?: boolean | undefined;
1290
+ headers?: Record<string, string> | null | undefined;
1291
+ };
1292
+ } | {
1293
+ type: "MergeContact";
1294
+ settings: {
1295
+ $invalid?: boolean | undefined;
1296
+ name?: string | null | undefined;
1297
+ email?: string | null | undefined;
1298
+ city?: string | null | undefined;
1299
+ extras?: Record<string, string> | null | undefined;
1300
+ };
1301
+ } | {
1302
+ type: "ExecuteScript";
1303
+ settings: {
1304
+ source: string;
1305
+ inputVariables: string[];
1306
+ outputVariable: string;
1307
+ $invalid?: boolean | undefined;
1308
+ function?: "run" | undefined;
1309
+ };
1310
+ } | {
1311
+ type: "ExecuteScriptV2";
1312
+ settings: {
1313
+ source: string;
1314
+ inputVariables: string[];
1315
+ outputVariable: string;
1316
+ $invalid?: boolean | undefined;
1317
+ function?: "run" | undefined;
1318
+ };
1319
+ } | {
1320
+ type: "SetVariable";
1321
+ settings: {
1322
+ variable: string;
1323
+ $invalid?: boolean | undefined;
1324
+ value?: string | number | undefined;
1325
+ expiration?: number | null | undefined;
1326
+ };
1327
+ } | {
1328
+ type: "ProcessCommand";
1329
+ settings: {
1330
+ to: string;
1331
+ method: "get" | "set" | "merge" | "delete";
1332
+ uri: string;
1333
+ variable: string;
1334
+ $invalid?: boolean | undefined;
1335
+ from?: string | undefined;
1336
+ };
1337
+ } | {
1338
+ type: "ForwardToDesk";
1339
+ settings: {
1340
+ $invalid?: boolean | undefined;
1341
+ };
1342
+ } | {
1343
+ type: "LeavingFromDesk";
1344
+ settings: {
1345
+ $invalid?: boolean | undefined;
1346
+ };
1347
+ } | {
1348
+ type: "Redirect";
1349
+ settings: {
1350
+ address: string;
1351
+ context: {
1352
+ type: "text/plain";
1353
+ value: string;
1354
+ };
1355
+ $invalid?: boolean | undefined;
1356
+ };
1357
+ }))[];
1358
+ $leavingCustomActions: ({
1359
+ $id: string;
1360
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
1361
+ $title?: string | undefined;
1362
+ $invalid?: boolean | undefined;
1363
+ conditions?: {
1364
+ source: "context" | "input";
1365
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
1366
+ values: string[];
1367
+ variable?: string | null | undefined;
1368
+ operator?: "or" | "and" | undefined;
1369
+ }[] | undefined;
1370
+ $cardContent?: {
1371
+ editable: boolean;
1372
+ deletable: boolean;
1373
+ position: "left";
1374
+ document: {
1375
+ id: string;
1376
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
1377
+ content: string | {
1378
+ state: string;
1379
+ interval?: string | number | undefined;
1380
+ } | {
1381
+ text: string;
1382
+ uri: string;
1383
+ title?: string | null | undefined;
1384
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1385
+ } | {
1386
+ text: string;
1387
+ options: string[] | {
1388
+ text: string;
1389
+ }[];
1390
+ scope?: "immediate" | "persistent" | null | undefined;
1391
+ } | {
1392
+ type: string;
1393
+ uri: string;
1394
+ title?: string | undefined;
1395
+ text?: string | undefined;
1396
+ };
1397
+ textContent?: string | undefined;
1398
+ };
1399
+ } | null | undefined;
1400
+ continueOnError?: boolean | undefined;
1401
+ } & ({
1402
+ type: "SendMessage";
1403
+ settings: {
1404
+ content: string | {
1405
+ state: string;
1406
+ interval?: string | number | undefined;
1407
+ } | {
1408
+ text: string;
1409
+ uri: string;
1410
+ title?: string | null | undefined;
1411
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1412
+ } | {
1413
+ text: string;
1414
+ options: string[] | {
1415
+ text: string;
1416
+ }[];
1417
+ scope?: "immediate" | "persistent" | null | undefined;
1418
+ } | {
1419
+ type: string;
1420
+ uri: string;
1421
+ title?: string | undefined;
1422
+ text?: string | undefined;
1423
+ };
1424
+ $invalid?: boolean | undefined;
1425
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
1426
+ id?: string | undefined;
1427
+ metadata?: Record<string, string> | undefined;
1428
+ };
1429
+ } | {
1430
+ type: "SendRawMessage";
1431
+ settings: {
1432
+ rawContent: string;
1433
+ $invalid?: boolean | undefined;
1434
+ type?: "application/json" | undefined;
1435
+ };
1436
+ } | {
1437
+ type: "TrackEvent";
1438
+ settings: {
1439
+ category: string;
1440
+ action: string;
1441
+ $invalid?: boolean | undefined;
1442
+ extras?: Record<string, string> | null | undefined;
1443
+ };
1444
+ } | {
1445
+ type: "ProcessHttp";
1446
+ settings: {
1447
+ method: "POST" | "GET" | "PUT" | "DELETE";
1448
+ uri: string;
1449
+ body: string;
1450
+ responseBodyVariable: string;
1451
+ responseStatusVariable: string;
1452
+ $invalid?: boolean | undefined;
1453
+ headers?: Record<string, string> | null | undefined;
1454
+ };
1455
+ } | {
1456
+ type: "MergeContact";
1457
+ settings: {
1458
+ $invalid?: boolean | undefined;
1459
+ name?: string | null | undefined;
1460
+ email?: string | null | undefined;
1461
+ city?: string | null | undefined;
1462
+ extras?: Record<string, string> | null | undefined;
1463
+ };
1464
+ } | {
1465
+ type: "ExecuteScript";
1466
+ settings: {
1467
+ source: string;
1468
+ inputVariables: string[];
1469
+ outputVariable: string;
1470
+ $invalid?: boolean | undefined;
1471
+ function?: "run" | undefined;
1472
+ };
1473
+ } | {
1474
+ type: "ExecuteScriptV2";
1475
+ settings: {
1476
+ source: string;
1477
+ inputVariables: string[];
1478
+ outputVariable: string;
1479
+ $invalid?: boolean | undefined;
1480
+ function?: "run" | undefined;
1481
+ };
1482
+ } | {
1483
+ type: "SetVariable";
1484
+ settings: {
1485
+ variable: string;
1486
+ $invalid?: boolean | undefined;
1487
+ value?: string | number | undefined;
1488
+ expiration?: number | null | undefined;
1489
+ };
1490
+ } | {
1491
+ type: "ProcessCommand";
1492
+ settings: {
1493
+ to: string;
1494
+ method: "get" | "set" | "merge" | "delete";
1495
+ uri: string;
1496
+ variable: string;
1497
+ $invalid?: boolean | undefined;
1498
+ from?: string | undefined;
1499
+ };
1500
+ } | {
1501
+ type: "ForwardToDesk";
1502
+ settings: {
1503
+ $invalid?: boolean | undefined;
1504
+ };
1505
+ } | {
1506
+ type: "LeavingFromDesk";
1507
+ settings: {
1508
+ $invalid?: boolean | undefined;
1509
+ };
1510
+ } | {
1511
+ type: "Redirect";
1512
+ settings: {
1513
+ address: string;
1514
+ context: {
1515
+ type: "text/plain";
1516
+ value: string;
1517
+ };
1518
+ $invalid?: boolean | undefined;
1519
+ };
1520
+ }))[];
1521
+ $inputSuggestions: string[];
1522
+ $defaultOutput: {
1523
+ stateId: string;
1524
+ typeOfStateId?: "state" | "variable" | undefined;
1525
+ $invalid?: boolean | undefined;
1526
+ };
1527
+ $tags: {
1528
+ id: string;
1529
+ label: string;
1530
+ background: string;
1531
+ canChangeBackground: boolean;
1532
+ }[];
1533
+ $title: string;
1534
+ $invalidContentActions: boolean;
1535
+ $invalidOutputs: boolean;
1536
+ $invalidCustomActions: boolean;
1537
+ $localCustomActions?: ({
1538
+ $id: string;
1539
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
1540
+ $title?: string | undefined;
1541
+ $invalid?: boolean | undefined;
1542
+ conditions?: {
1543
+ source: "context" | "input";
1544
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
1545
+ values: string[];
1546
+ variable?: string | null | undefined;
1547
+ operator?: "or" | "and" | undefined;
1548
+ }[] | undefined;
1549
+ $cardContent?: {
1550
+ editable: boolean;
1551
+ deletable: boolean;
1552
+ position: "left";
1553
+ document: {
1554
+ id: string;
1555
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
1556
+ content: string | {
1557
+ state: string;
1558
+ interval?: string | number | undefined;
1559
+ } | {
1560
+ text: string;
1561
+ uri: string;
1562
+ title?: string | null | undefined;
1563
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1564
+ } | {
1565
+ text: string;
1566
+ options: string[] | {
1567
+ text: string;
1568
+ }[];
1569
+ scope?: "immediate" | "persistent" | null | undefined;
1570
+ } | {
1571
+ type: string;
1572
+ uri: string;
1573
+ title?: string | undefined;
1574
+ text?: string | undefined;
1575
+ };
1576
+ textContent?: string | undefined;
1577
+ };
1578
+ } | null | undefined;
1579
+ continueOnError?: boolean | undefined;
1580
+ } & ({
1581
+ type: "SendMessage";
1582
+ settings: {
1583
+ content: string | {
1584
+ state: string;
1585
+ interval?: string | number | undefined;
1586
+ } | {
1587
+ text: string;
1588
+ uri: string;
1589
+ title?: string | null | undefined;
1590
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1591
+ } | {
1592
+ text: string;
1593
+ options: string[] | {
1594
+ text: string;
1595
+ }[];
1596
+ scope?: "immediate" | "persistent" | null | undefined;
1597
+ } | {
1598
+ type: string;
1599
+ uri: string;
1600
+ title?: string | undefined;
1601
+ text?: string | undefined;
1602
+ };
1603
+ $invalid?: boolean | undefined;
1604
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
1605
+ id?: string | undefined;
1606
+ metadata?: Record<string, string> | undefined;
1607
+ };
1608
+ } | {
1609
+ type: "SendRawMessage";
1610
+ settings: {
1611
+ rawContent: string;
1612
+ $invalid?: boolean | undefined;
1613
+ type?: "application/json" | undefined;
1614
+ };
1615
+ } | {
1616
+ type: "TrackEvent";
1617
+ settings: {
1618
+ category: string;
1619
+ action: string;
1620
+ $invalid?: boolean | undefined;
1621
+ extras?: Record<string, string> | null | undefined;
1622
+ };
1623
+ } | {
1624
+ type: "ProcessHttp";
1625
+ settings: {
1626
+ method: "POST" | "GET" | "PUT" | "DELETE";
1627
+ uri: string;
1628
+ body: string;
1629
+ responseBodyVariable: string;
1630
+ responseStatusVariable: string;
1631
+ $invalid?: boolean | undefined;
1632
+ headers?: Record<string, string> | null | undefined;
1633
+ };
1634
+ } | {
1635
+ type: "MergeContact";
1636
+ settings: {
1637
+ $invalid?: boolean | undefined;
1638
+ name?: string | null | undefined;
1639
+ email?: string | null | undefined;
1640
+ city?: string | null | undefined;
1641
+ extras?: Record<string, string> | null | undefined;
1642
+ };
1643
+ } | {
1644
+ type: "ExecuteScript";
1645
+ settings: {
1646
+ source: string;
1647
+ inputVariables: string[];
1648
+ outputVariable: string;
1649
+ $invalid?: boolean | undefined;
1650
+ function?: "run" | undefined;
1651
+ };
1652
+ } | {
1653
+ type: "ExecuteScriptV2";
1654
+ settings: {
1655
+ source: string;
1656
+ inputVariables: string[];
1657
+ outputVariable: string;
1658
+ $invalid?: boolean | undefined;
1659
+ function?: "run" | undefined;
1660
+ };
1661
+ } | {
1662
+ type: "SetVariable";
1663
+ settings: {
1664
+ variable: string;
1665
+ $invalid?: boolean | undefined;
1666
+ value?: string | number | undefined;
1667
+ expiration?: number | null | undefined;
1668
+ };
1669
+ } | {
1670
+ type: "ProcessCommand";
1671
+ settings: {
1672
+ to: string;
1673
+ method: "get" | "set" | "merge" | "delete";
1674
+ uri: string;
1675
+ variable: string;
1676
+ $invalid?: boolean | undefined;
1677
+ from?: string | undefined;
1678
+ };
1679
+ } | {
1680
+ type: "ForwardToDesk";
1681
+ settings: {
1682
+ $invalid?: boolean | undefined;
1683
+ };
1684
+ } | {
1685
+ type: "LeavingFromDesk";
1686
+ settings: {
1687
+ $invalid?: boolean | undefined;
1688
+ };
1689
+ } | {
1690
+ type: "Redirect";
1691
+ settings: {
1692
+ address: string;
1693
+ context: {
1694
+ type: "text/plain";
1695
+ value: string;
1696
+ };
1697
+ $invalid?: boolean | undefined;
1698
+ };
1699
+ }))[] | undefined;
1700
+ isAiGenerated?: boolean | undefined;
1701
+ deskStateVersion?: string | undefined;
1702
+ $afterStateChangedActions?: ({
1703
+ $id: string;
1704
+ $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined;
1705
+ $title?: string | undefined;
1706
+ $invalid?: boolean | undefined;
1707
+ conditions?: {
1708
+ source: "context" | "input";
1709
+ comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists";
1710
+ values: string[];
1711
+ variable?: string | null | undefined;
1712
+ operator?: "or" | "and" | undefined;
1713
+ }[] | undefined;
1714
+ $cardContent?: {
1715
+ editable: boolean;
1716
+ deletable: boolean;
1717
+ position: "left";
1718
+ document: {
1719
+ id: string;
1720
+ type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json";
1721
+ content: string | {
1722
+ state: string;
1723
+ interval?: string | number | undefined;
1724
+ } | {
1725
+ text: string;
1726
+ uri: string;
1727
+ title?: string | null | undefined;
1728
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1729
+ } | {
1730
+ text: string;
1731
+ options: string[] | {
1732
+ text: string;
1733
+ }[];
1734
+ scope?: "immediate" | "persistent" | null | undefined;
1735
+ } | {
1736
+ type: string;
1737
+ uri: string;
1738
+ title?: string | undefined;
1739
+ text?: string | undefined;
1740
+ };
1741
+ textContent?: string | undefined;
1742
+ };
1743
+ } | null | undefined;
1744
+ continueOnError?: boolean | undefined;
1745
+ } & ({
1746
+ type: "SendMessage";
1747
+ settings: {
1748
+ content: string | {
1749
+ state: string;
1750
+ interval?: string | number | undefined;
1751
+ } | {
1752
+ text: string;
1753
+ uri: string;
1754
+ title?: string | null | undefined;
1755
+ target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined;
1756
+ } | {
1757
+ text: string;
1758
+ options: string[] | {
1759
+ text: string;
1760
+ }[];
1761
+ scope?: "immediate" | "persistent" | null | undefined;
1762
+ } | {
1763
+ type: string;
1764
+ uri: string;
1765
+ title?: string | undefined;
1766
+ text?: string | undefined;
1767
+ };
1768
+ $invalid?: boolean | undefined;
1769
+ type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined;
1770
+ id?: string | undefined;
1771
+ metadata?: Record<string, string> | undefined;
1772
+ };
1773
+ } | {
1774
+ type: "SendRawMessage";
1775
+ settings: {
1776
+ rawContent: string;
1777
+ $invalid?: boolean | undefined;
1778
+ type?: "application/json" | undefined;
1779
+ };
1780
+ } | {
1781
+ type: "TrackEvent";
1782
+ settings: {
1783
+ category: string;
1784
+ action: string;
1785
+ $invalid?: boolean | undefined;
1786
+ extras?: Record<string, string> | null | undefined;
1787
+ };
1788
+ } | {
1789
+ type: "ProcessHttp";
1790
+ settings: {
1791
+ method: "POST" | "GET" | "PUT" | "DELETE";
1792
+ uri: string;
1793
+ body: string;
1794
+ responseBodyVariable: string;
1795
+ responseStatusVariable: string;
1796
+ $invalid?: boolean | undefined;
1797
+ headers?: Record<string, string> | null | undefined;
1798
+ };
1799
+ } | {
1800
+ type: "MergeContact";
1801
+ settings: {
1802
+ $invalid?: boolean | undefined;
1803
+ name?: string | null | undefined;
1804
+ email?: string | null | undefined;
1805
+ city?: string | null | undefined;
1806
+ extras?: Record<string, string> | null | undefined;
1807
+ };
1808
+ } | {
1809
+ type: "ExecuteScript";
1810
+ settings: {
1811
+ source: string;
1812
+ inputVariables: string[];
1813
+ outputVariable: string;
1814
+ $invalid?: boolean | undefined;
1815
+ function?: "run" | undefined;
1816
+ };
1817
+ } | {
1818
+ type: "ExecuteScriptV2";
1819
+ settings: {
1820
+ source: string;
1821
+ inputVariables: string[];
1822
+ outputVariable: string;
1823
+ $invalid?: boolean | undefined;
1824
+ function?: "run" | undefined;
1825
+ };
1826
+ } | {
1827
+ type: "SetVariable";
1828
+ settings: {
1829
+ variable: string;
1830
+ $invalid?: boolean | undefined;
1831
+ value?: string | number | undefined;
1832
+ expiration?: number | null | undefined;
1833
+ };
1834
+ } | {
1835
+ type: "ProcessCommand";
1836
+ settings: {
1837
+ to: string;
1838
+ method: "get" | "set" | "merge" | "delete";
1839
+ uri: string;
1840
+ variable: string;
1841
+ $invalid?: boolean | undefined;
1842
+ from?: string | undefined;
1843
+ };
1844
+ } | {
1845
+ type: "ForwardToDesk";
1846
+ settings: {
1847
+ $invalid?: boolean | undefined;
1848
+ };
1849
+ } | {
1850
+ type: "LeavingFromDesk";
1851
+ settings: {
1852
+ $invalid?: boolean | undefined;
1853
+ };
1854
+ } | {
1855
+ type: "Redirect";
1856
+ settings: {
1857
+ address: string;
1858
+ context: {
1859
+ type: "text/plain";
1860
+ value: string;
1861
+ };
1862
+ $invalid?: boolean | undefined;
1863
+ };
1864
+ }))[] | undefined;
1865
+ id?: string | undefined;
1866
+ root?: boolean | undefined;
1867
+ $position?: {
1868
+ top: string;
1869
+ left: string;
1870
+ } | undefined;
1871
+ $invalid?: boolean | undefined;
1872
+ $whiteWallIntegration?: unknown;
1873
+ } | undefined>;
86
1874
  getBuilderConfiguration(state: 'published' | 'working', opts?: ConsumeOptions): Promise<BuilderConfiguration | undefined>;
87
1875
  setBuilderFlow(state: 'published' | 'working', value: BuilderFlow, opts?: ConsumeOptions): Promise<void>;
88
1876
  setBuilderGlobalActions(state: 'published' | 'working', value: State, opts?: ConsumeOptions): Promise<void>;