@adatechnology/meta-whatsapp-contracts 0.2.0-rc.1 → 0.2.0-rc.3

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.
package/dist/index.d.cts CHANGED
@@ -1,1680 +1,7 @@
1
+ import { b as WhatsAppMessage, f as WhatsAppStatus } from './webhook.types-PxhpmpzC.cjs';
2
+ export { W as WhatsAppInteractive, a as WhatsAppMedia, c as WhatsAppMessageEcho, d as WhatsAppMessageStatusValue, e as WhatsAppOrder, g as WhatsAppWebhookPayload, w as whatsAppInteractiveSchema, h as whatsAppMediaSchema, i as whatsAppMessageEchoSchema, j as whatsAppMessageSchema, k as whatsAppMessageStatusSchema, l as whatsAppOrderSchema, m as whatsAppStatusSchema, n as whatsAppWebhookPayloadSchema } from './webhook.types-PxhpmpzC.cjs';
1
3
  import { z } from 'zod';
2
4
 
3
- declare const whatsAppMediaSchema: z.ZodObject<{
4
- id: z.ZodString;
5
- mime_type: z.ZodString;
6
- sha256: z.ZodOptional<z.ZodString>;
7
- caption: z.ZodOptional<z.ZodString>;
8
- filename: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- id: string;
11
- mime_type: string;
12
- sha256?: string | undefined;
13
- caption?: string | undefined;
14
- filename?: string | undefined;
15
- }, {
16
- id: string;
17
- mime_type: string;
18
- sha256?: string | undefined;
19
- caption?: string | undefined;
20
- filename?: string | undefined;
21
- }>;
22
- type WhatsAppMedia = z.infer<typeof whatsAppMediaSchema>;
23
- declare const whatsAppInteractiveSchema: z.ZodObject<{
24
- type: z.ZodString;
25
- button_reply: z.ZodOptional<z.ZodObject<{
26
- id: z.ZodString;
27
- title: z.ZodString;
28
- }, "strip", z.ZodTypeAny, {
29
- id: string;
30
- title: string;
31
- }, {
32
- id: string;
33
- title: string;
34
- }>>;
35
- list_reply: z.ZodOptional<z.ZodObject<{
36
- id: z.ZodString;
37
- title: z.ZodString;
38
- }, "strip", z.ZodTypeAny, {
39
- id: string;
40
- title: string;
41
- }, {
42
- id: string;
43
- title: string;
44
- }>>;
45
- }, "strip", z.ZodTypeAny, {
46
- type: string;
47
- button_reply?: {
48
- id: string;
49
- title: string;
50
- } | undefined;
51
- list_reply?: {
52
- id: string;
53
- title: string;
54
- } | undefined;
55
- }, {
56
- type: string;
57
- button_reply?: {
58
- id: string;
59
- title: string;
60
- } | undefined;
61
- list_reply?: {
62
- id: string;
63
- title: string;
64
- } | undefined;
65
- }>;
66
- type WhatsAppInteractive = z.infer<typeof whatsAppInteractiveSchema>;
67
- declare const whatsAppOrderSchema: z.ZodObject<{
68
- catalog_id: z.ZodString;
69
- text: z.ZodOptional<z.ZodString>;
70
- product_items: z.ZodArray<z.ZodObject<{
71
- product_retailer_id: z.ZodString;
72
- quantity: z.ZodNumber;
73
- item_price: z.ZodNumber;
74
- currency: z.ZodString;
75
- }, "strip", z.ZodTypeAny, {
76
- product_retailer_id: string;
77
- quantity: number;
78
- item_price: number;
79
- currency: string;
80
- }, {
81
- product_retailer_id: string;
82
- quantity: number;
83
- item_price: number;
84
- currency: string;
85
- }>, "many">;
86
- }, "strip", z.ZodTypeAny, {
87
- catalog_id: string;
88
- product_items: {
89
- product_retailer_id: string;
90
- quantity: number;
91
- item_price: number;
92
- currency: string;
93
- }[];
94
- text?: string | undefined;
95
- }, {
96
- catalog_id: string;
97
- product_items: {
98
- product_retailer_id: string;
99
- quantity: number;
100
- item_price: number;
101
- currency: string;
102
- }[];
103
- text?: string | undefined;
104
- }>;
105
- type WhatsAppOrder = z.infer<typeof whatsAppOrderSchema>;
106
- declare const whatsAppMessageSchema: z.ZodObject<{
107
- id: z.ZodString;
108
- from: z.ZodString;
109
- type: z.ZodString;
110
- text: z.ZodOptional<z.ZodObject<{
111
- body: z.ZodString;
112
- }, "strip", z.ZodTypeAny, {
113
- body: string;
114
- }, {
115
- body: string;
116
- }>>;
117
- image: z.ZodOptional<z.ZodObject<{
118
- id: z.ZodString;
119
- mime_type: z.ZodString;
120
- sha256: z.ZodOptional<z.ZodString>;
121
- caption: z.ZodOptional<z.ZodString>;
122
- filename: z.ZodOptional<z.ZodString>;
123
- }, "strip", z.ZodTypeAny, {
124
- id: string;
125
- mime_type: string;
126
- sha256?: string | undefined;
127
- caption?: string | undefined;
128
- filename?: string | undefined;
129
- }, {
130
- id: string;
131
- mime_type: string;
132
- sha256?: string | undefined;
133
- caption?: string | undefined;
134
- filename?: string | undefined;
135
- }>>;
136
- audio: z.ZodOptional<z.ZodObject<{
137
- id: z.ZodString;
138
- mime_type: z.ZodString;
139
- sha256: z.ZodOptional<z.ZodString>;
140
- caption: z.ZodOptional<z.ZodString>;
141
- filename: z.ZodOptional<z.ZodString>;
142
- }, "strip", z.ZodTypeAny, {
143
- id: string;
144
- mime_type: string;
145
- sha256?: string | undefined;
146
- caption?: string | undefined;
147
- filename?: string | undefined;
148
- }, {
149
- id: string;
150
- mime_type: string;
151
- sha256?: string | undefined;
152
- caption?: string | undefined;
153
- filename?: string | undefined;
154
- }>>;
155
- video: z.ZodOptional<z.ZodObject<{
156
- id: z.ZodString;
157
- mime_type: z.ZodString;
158
- sha256: z.ZodOptional<z.ZodString>;
159
- caption: z.ZodOptional<z.ZodString>;
160
- filename: z.ZodOptional<z.ZodString>;
161
- }, "strip", z.ZodTypeAny, {
162
- id: string;
163
- mime_type: string;
164
- sha256?: string | undefined;
165
- caption?: string | undefined;
166
- filename?: string | undefined;
167
- }, {
168
- id: string;
169
- mime_type: string;
170
- sha256?: string | undefined;
171
- caption?: string | undefined;
172
- filename?: string | undefined;
173
- }>>;
174
- document: z.ZodOptional<z.ZodObject<{
175
- id: z.ZodString;
176
- mime_type: z.ZodString;
177
- sha256: z.ZodOptional<z.ZodString>;
178
- caption: z.ZodOptional<z.ZodString>;
179
- filename: z.ZodOptional<z.ZodString>;
180
- }, "strip", z.ZodTypeAny, {
181
- id: string;
182
- mime_type: string;
183
- sha256?: string | undefined;
184
- caption?: string | undefined;
185
- filename?: string | undefined;
186
- }, {
187
- id: string;
188
- mime_type: string;
189
- sha256?: string | undefined;
190
- caption?: string | undefined;
191
- filename?: string | undefined;
192
- }>>;
193
- sticker: z.ZodOptional<z.ZodObject<{
194
- id: z.ZodString;
195
- mime_type: z.ZodString;
196
- sha256: z.ZodOptional<z.ZodString>;
197
- caption: z.ZodOptional<z.ZodString>;
198
- filename: z.ZodOptional<z.ZodString>;
199
- }, "strip", z.ZodTypeAny, {
200
- id: string;
201
- mime_type: string;
202
- sha256?: string | undefined;
203
- caption?: string | undefined;
204
- filename?: string | undefined;
205
- }, {
206
- id: string;
207
- mime_type: string;
208
- sha256?: string | undefined;
209
- caption?: string | undefined;
210
- filename?: string | undefined;
211
- }>>;
212
- interactive: z.ZodOptional<z.ZodObject<{
213
- type: z.ZodString;
214
- button_reply: z.ZodOptional<z.ZodObject<{
215
- id: z.ZodString;
216
- title: z.ZodString;
217
- }, "strip", z.ZodTypeAny, {
218
- id: string;
219
- title: string;
220
- }, {
221
- id: string;
222
- title: string;
223
- }>>;
224
- list_reply: z.ZodOptional<z.ZodObject<{
225
- id: z.ZodString;
226
- title: z.ZodString;
227
- }, "strip", z.ZodTypeAny, {
228
- id: string;
229
- title: string;
230
- }, {
231
- id: string;
232
- title: string;
233
- }>>;
234
- }, "strip", z.ZodTypeAny, {
235
- type: string;
236
- button_reply?: {
237
- id: string;
238
- title: string;
239
- } | undefined;
240
- list_reply?: {
241
- id: string;
242
- title: string;
243
- } | undefined;
244
- }, {
245
- type: string;
246
- button_reply?: {
247
- id: string;
248
- title: string;
249
- } | undefined;
250
- list_reply?: {
251
- id: string;
252
- title: string;
253
- } | undefined;
254
- }>>;
255
- order: z.ZodOptional<z.ZodObject<{
256
- catalog_id: z.ZodString;
257
- text: z.ZodOptional<z.ZodString>;
258
- product_items: z.ZodArray<z.ZodObject<{
259
- product_retailer_id: z.ZodString;
260
- quantity: z.ZodNumber;
261
- item_price: z.ZodNumber;
262
- currency: z.ZodString;
263
- }, "strip", z.ZodTypeAny, {
264
- product_retailer_id: string;
265
- quantity: number;
266
- item_price: number;
267
- currency: string;
268
- }, {
269
- product_retailer_id: string;
270
- quantity: number;
271
- item_price: number;
272
- currency: string;
273
- }>, "many">;
274
- }, "strip", z.ZodTypeAny, {
275
- catalog_id: string;
276
- product_items: {
277
- product_retailer_id: string;
278
- quantity: number;
279
- item_price: number;
280
- currency: string;
281
- }[];
282
- text?: string | undefined;
283
- }, {
284
- catalog_id: string;
285
- product_items: {
286
- product_retailer_id: string;
287
- quantity: number;
288
- item_price: number;
289
- currency: string;
290
- }[];
291
- text?: string | undefined;
292
- }>>;
293
- context: z.ZodOptional<z.ZodObject<{
294
- from: z.ZodOptional<z.ZodString>;
295
- id: z.ZodOptional<z.ZodString>;
296
- referred_product: z.ZodOptional<z.ZodObject<{
297
- catalog_id: z.ZodString;
298
- product_retailer_id: z.ZodString;
299
- }, "strip", z.ZodTypeAny, {
300
- catalog_id: string;
301
- product_retailer_id: string;
302
- }, {
303
- catalog_id: string;
304
- product_retailer_id: string;
305
- }>>;
306
- }, "strip", z.ZodTypeAny, {
307
- id?: string | undefined;
308
- from?: string | undefined;
309
- referred_product?: {
310
- catalog_id: string;
311
- product_retailer_id: string;
312
- } | undefined;
313
- }, {
314
- id?: string | undefined;
315
- from?: string | undefined;
316
- referred_product?: {
317
- catalog_id: string;
318
- product_retailer_id: string;
319
- } | undefined;
320
- }>>;
321
- timestamp: z.ZodString;
322
- }, "strip", z.ZodTypeAny, {
323
- id: string;
324
- type: string;
325
- from: string;
326
- timestamp: string;
327
- text?: {
328
- body: string;
329
- } | undefined;
330
- image?: {
331
- id: string;
332
- mime_type: string;
333
- sha256?: string | undefined;
334
- caption?: string | undefined;
335
- filename?: string | undefined;
336
- } | undefined;
337
- audio?: {
338
- id: string;
339
- mime_type: string;
340
- sha256?: string | undefined;
341
- caption?: string | undefined;
342
- filename?: string | undefined;
343
- } | undefined;
344
- video?: {
345
- id: string;
346
- mime_type: string;
347
- sha256?: string | undefined;
348
- caption?: string | undefined;
349
- filename?: string | undefined;
350
- } | undefined;
351
- document?: {
352
- id: string;
353
- mime_type: string;
354
- sha256?: string | undefined;
355
- caption?: string | undefined;
356
- filename?: string | undefined;
357
- } | undefined;
358
- sticker?: {
359
- id: string;
360
- mime_type: string;
361
- sha256?: string | undefined;
362
- caption?: string | undefined;
363
- filename?: string | undefined;
364
- } | undefined;
365
- interactive?: {
366
- type: string;
367
- button_reply?: {
368
- id: string;
369
- title: string;
370
- } | undefined;
371
- list_reply?: {
372
- id: string;
373
- title: string;
374
- } | undefined;
375
- } | undefined;
376
- order?: {
377
- catalog_id: string;
378
- product_items: {
379
- product_retailer_id: string;
380
- quantity: number;
381
- item_price: number;
382
- currency: string;
383
- }[];
384
- text?: string | undefined;
385
- } | undefined;
386
- context?: {
387
- id?: string | undefined;
388
- from?: string | undefined;
389
- referred_product?: {
390
- catalog_id: string;
391
- product_retailer_id: string;
392
- } | undefined;
393
- } | undefined;
394
- }, {
395
- id: string;
396
- type: string;
397
- from: string;
398
- timestamp: string;
399
- text?: {
400
- body: string;
401
- } | undefined;
402
- image?: {
403
- id: string;
404
- mime_type: string;
405
- sha256?: string | undefined;
406
- caption?: string | undefined;
407
- filename?: string | undefined;
408
- } | undefined;
409
- audio?: {
410
- id: string;
411
- mime_type: string;
412
- sha256?: string | undefined;
413
- caption?: string | undefined;
414
- filename?: string | undefined;
415
- } | undefined;
416
- video?: {
417
- id: string;
418
- mime_type: string;
419
- sha256?: string | undefined;
420
- caption?: string | undefined;
421
- filename?: string | undefined;
422
- } | undefined;
423
- document?: {
424
- id: string;
425
- mime_type: string;
426
- sha256?: string | undefined;
427
- caption?: string | undefined;
428
- filename?: string | undefined;
429
- } | undefined;
430
- sticker?: {
431
- id: string;
432
- mime_type: string;
433
- sha256?: string | undefined;
434
- caption?: string | undefined;
435
- filename?: string | undefined;
436
- } | undefined;
437
- interactive?: {
438
- type: string;
439
- button_reply?: {
440
- id: string;
441
- title: string;
442
- } | undefined;
443
- list_reply?: {
444
- id: string;
445
- title: string;
446
- } | undefined;
447
- } | undefined;
448
- order?: {
449
- catalog_id: string;
450
- product_items: {
451
- product_retailer_id: string;
452
- quantity: number;
453
- item_price: number;
454
- currency: string;
455
- }[];
456
- text?: string | undefined;
457
- } | undefined;
458
- context?: {
459
- id?: string | undefined;
460
- from?: string | undefined;
461
- referred_product?: {
462
- catalog_id: string;
463
- product_retailer_id: string;
464
- } | undefined;
465
- } | undefined;
466
- }>;
467
- type WhatsAppMessage = z.infer<typeof whatsAppMessageSchema>;
468
- declare const whatsAppMessageEchoSchema: z.ZodObject<{
469
- id: z.ZodString;
470
- from: z.ZodString;
471
- timestamp: z.ZodString;
472
- type: z.ZodString;
473
- }, "strip", z.ZodTypeAny, {
474
- id: string;
475
- type: string;
476
- from: string;
477
- timestamp: string;
478
- }, {
479
- id: string;
480
- type: string;
481
- from: string;
482
- timestamp: string;
483
- }>;
484
- type WhatsAppMessageEcho = z.infer<typeof whatsAppMessageEchoSchema>;
485
- declare const whatsAppMessageStatusSchema: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
486
- type WhatsAppMessageStatusValue = z.infer<typeof whatsAppMessageStatusSchema>;
487
- declare const whatsAppStatusSchema: z.ZodObject<{
488
- id: z.ZodString;
489
- status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
490
- timestamp: z.ZodString;
491
- recipient_id: z.ZodOptional<z.ZodString>;
492
- }, "strip", z.ZodTypeAny, {
493
- id: string;
494
- status: "sent" | "delivered" | "read" | "failed";
495
- timestamp: string;
496
- recipient_id?: string | undefined;
497
- }, {
498
- id: string;
499
- status: "sent" | "delivered" | "read" | "failed";
500
- timestamp: string;
501
- recipient_id?: string | undefined;
502
- }>;
503
- type WhatsAppStatus = z.infer<typeof whatsAppStatusSchema>;
504
- declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
505
- object: z.ZodString;
506
- entry: z.ZodArray<z.ZodObject<{
507
- id: z.ZodString;
508
- changes: z.ZodArray<z.ZodObject<{
509
- value: z.ZodObject<{
510
- messaging_product: z.ZodString;
511
- messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
512
- id: z.ZodString;
513
- from: z.ZodString;
514
- type: z.ZodString;
515
- text: z.ZodOptional<z.ZodObject<{
516
- body: z.ZodString;
517
- }, "strip", z.ZodTypeAny, {
518
- body: string;
519
- }, {
520
- body: string;
521
- }>>;
522
- image: z.ZodOptional<z.ZodObject<{
523
- id: z.ZodString;
524
- mime_type: z.ZodString;
525
- sha256: z.ZodOptional<z.ZodString>;
526
- caption: z.ZodOptional<z.ZodString>;
527
- filename: z.ZodOptional<z.ZodString>;
528
- }, "strip", z.ZodTypeAny, {
529
- id: string;
530
- mime_type: string;
531
- sha256?: string | undefined;
532
- caption?: string | undefined;
533
- filename?: string | undefined;
534
- }, {
535
- id: string;
536
- mime_type: string;
537
- sha256?: string | undefined;
538
- caption?: string | undefined;
539
- filename?: string | undefined;
540
- }>>;
541
- audio: z.ZodOptional<z.ZodObject<{
542
- id: z.ZodString;
543
- mime_type: z.ZodString;
544
- sha256: z.ZodOptional<z.ZodString>;
545
- caption: z.ZodOptional<z.ZodString>;
546
- filename: z.ZodOptional<z.ZodString>;
547
- }, "strip", z.ZodTypeAny, {
548
- id: string;
549
- mime_type: string;
550
- sha256?: string | undefined;
551
- caption?: string | undefined;
552
- filename?: string | undefined;
553
- }, {
554
- id: string;
555
- mime_type: string;
556
- sha256?: string | undefined;
557
- caption?: string | undefined;
558
- filename?: string | undefined;
559
- }>>;
560
- video: z.ZodOptional<z.ZodObject<{
561
- id: z.ZodString;
562
- mime_type: z.ZodString;
563
- sha256: z.ZodOptional<z.ZodString>;
564
- caption: z.ZodOptional<z.ZodString>;
565
- filename: z.ZodOptional<z.ZodString>;
566
- }, "strip", z.ZodTypeAny, {
567
- id: string;
568
- mime_type: string;
569
- sha256?: string | undefined;
570
- caption?: string | undefined;
571
- filename?: string | undefined;
572
- }, {
573
- id: string;
574
- mime_type: string;
575
- sha256?: string | undefined;
576
- caption?: string | undefined;
577
- filename?: string | undefined;
578
- }>>;
579
- document: z.ZodOptional<z.ZodObject<{
580
- id: z.ZodString;
581
- mime_type: z.ZodString;
582
- sha256: z.ZodOptional<z.ZodString>;
583
- caption: z.ZodOptional<z.ZodString>;
584
- filename: z.ZodOptional<z.ZodString>;
585
- }, "strip", z.ZodTypeAny, {
586
- id: string;
587
- mime_type: string;
588
- sha256?: string | undefined;
589
- caption?: string | undefined;
590
- filename?: string | undefined;
591
- }, {
592
- id: string;
593
- mime_type: string;
594
- sha256?: string | undefined;
595
- caption?: string | undefined;
596
- filename?: string | undefined;
597
- }>>;
598
- sticker: z.ZodOptional<z.ZodObject<{
599
- id: z.ZodString;
600
- mime_type: z.ZodString;
601
- sha256: z.ZodOptional<z.ZodString>;
602
- caption: z.ZodOptional<z.ZodString>;
603
- filename: z.ZodOptional<z.ZodString>;
604
- }, "strip", z.ZodTypeAny, {
605
- id: string;
606
- mime_type: string;
607
- sha256?: string | undefined;
608
- caption?: string | undefined;
609
- filename?: string | undefined;
610
- }, {
611
- id: string;
612
- mime_type: string;
613
- sha256?: string | undefined;
614
- caption?: string | undefined;
615
- filename?: string | undefined;
616
- }>>;
617
- interactive: z.ZodOptional<z.ZodObject<{
618
- type: z.ZodString;
619
- button_reply: z.ZodOptional<z.ZodObject<{
620
- id: z.ZodString;
621
- title: z.ZodString;
622
- }, "strip", z.ZodTypeAny, {
623
- id: string;
624
- title: string;
625
- }, {
626
- id: string;
627
- title: string;
628
- }>>;
629
- list_reply: z.ZodOptional<z.ZodObject<{
630
- id: z.ZodString;
631
- title: z.ZodString;
632
- }, "strip", z.ZodTypeAny, {
633
- id: string;
634
- title: string;
635
- }, {
636
- id: string;
637
- title: string;
638
- }>>;
639
- }, "strip", z.ZodTypeAny, {
640
- type: string;
641
- button_reply?: {
642
- id: string;
643
- title: string;
644
- } | undefined;
645
- list_reply?: {
646
- id: string;
647
- title: string;
648
- } | undefined;
649
- }, {
650
- type: string;
651
- button_reply?: {
652
- id: string;
653
- title: string;
654
- } | undefined;
655
- list_reply?: {
656
- id: string;
657
- title: string;
658
- } | undefined;
659
- }>>;
660
- order: z.ZodOptional<z.ZodObject<{
661
- catalog_id: z.ZodString;
662
- text: z.ZodOptional<z.ZodString>;
663
- product_items: z.ZodArray<z.ZodObject<{
664
- product_retailer_id: z.ZodString;
665
- quantity: z.ZodNumber;
666
- item_price: z.ZodNumber;
667
- currency: z.ZodString;
668
- }, "strip", z.ZodTypeAny, {
669
- product_retailer_id: string;
670
- quantity: number;
671
- item_price: number;
672
- currency: string;
673
- }, {
674
- product_retailer_id: string;
675
- quantity: number;
676
- item_price: number;
677
- currency: string;
678
- }>, "many">;
679
- }, "strip", z.ZodTypeAny, {
680
- catalog_id: string;
681
- product_items: {
682
- product_retailer_id: string;
683
- quantity: number;
684
- item_price: number;
685
- currency: string;
686
- }[];
687
- text?: string | undefined;
688
- }, {
689
- catalog_id: string;
690
- product_items: {
691
- product_retailer_id: string;
692
- quantity: number;
693
- item_price: number;
694
- currency: string;
695
- }[];
696
- text?: string | undefined;
697
- }>>;
698
- context: z.ZodOptional<z.ZodObject<{
699
- from: z.ZodOptional<z.ZodString>;
700
- id: z.ZodOptional<z.ZodString>;
701
- referred_product: z.ZodOptional<z.ZodObject<{
702
- catalog_id: z.ZodString;
703
- product_retailer_id: z.ZodString;
704
- }, "strip", z.ZodTypeAny, {
705
- catalog_id: string;
706
- product_retailer_id: string;
707
- }, {
708
- catalog_id: string;
709
- product_retailer_id: string;
710
- }>>;
711
- }, "strip", z.ZodTypeAny, {
712
- id?: string | undefined;
713
- from?: string | undefined;
714
- referred_product?: {
715
- catalog_id: string;
716
- product_retailer_id: string;
717
- } | undefined;
718
- }, {
719
- id?: string | undefined;
720
- from?: string | undefined;
721
- referred_product?: {
722
- catalog_id: string;
723
- product_retailer_id: string;
724
- } | undefined;
725
- }>>;
726
- timestamp: z.ZodString;
727
- }, "strip", z.ZodTypeAny, {
728
- id: string;
729
- type: string;
730
- from: string;
731
- timestamp: string;
732
- text?: {
733
- body: string;
734
- } | undefined;
735
- image?: {
736
- id: string;
737
- mime_type: string;
738
- sha256?: string | undefined;
739
- caption?: string | undefined;
740
- filename?: string | undefined;
741
- } | undefined;
742
- audio?: {
743
- id: string;
744
- mime_type: string;
745
- sha256?: string | undefined;
746
- caption?: string | undefined;
747
- filename?: string | undefined;
748
- } | undefined;
749
- video?: {
750
- id: string;
751
- mime_type: string;
752
- sha256?: string | undefined;
753
- caption?: string | undefined;
754
- filename?: string | undefined;
755
- } | undefined;
756
- document?: {
757
- id: string;
758
- mime_type: string;
759
- sha256?: string | undefined;
760
- caption?: string | undefined;
761
- filename?: string | undefined;
762
- } | undefined;
763
- sticker?: {
764
- id: string;
765
- mime_type: string;
766
- sha256?: string | undefined;
767
- caption?: string | undefined;
768
- filename?: string | undefined;
769
- } | undefined;
770
- interactive?: {
771
- type: string;
772
- button_reply?: {
773
- id: string;
774
- title: string;
775
- } | undefined;
776
- list_reply?: {
777
- id: string;
778
- title: string;
779
- } | undefined;
780
- } | undefined;
781
- order?: {
782
- catalog_id: string;
783
- product_items: {
784
- product_retailer_id: string;
785
- quantity: number;
786
- item_price: number;
787
- currency: string;
788
- }[];
789
- text?: string | undefined;
790
- } | undefined;
791
- context?: {
792
- id?: string | undefined;
793
- from?: string | undefined;
794
- referred_product?: {
795
- catalog_id: string;
796
- product_retailer_id: string;
797
- } | undefined;
798
- } | undefined;
799
- }, {
800
- id: string;
801
- type: string;
802
- from: string;
803
- timestamp: string;
804
- text?: {
805
- body: string;
806
- } | undefined;
807
- image?: {
808
- id: string;
809
- mime_type: string;
810
- sha256?: string | undefined;
811
- caption?: string | undefined;
812
- filename?: string | undefined;
813
- } | undefined;
814
- audio?: {
815
- id: string;
816
- mime_type: string;
817
- sha256?: string | undefined;
818
- caption?: string | undefined;
819
- filename?: string | undefined;
820
- } | undefined;
821
- video?: {
822
- id: string;
823
- mime_type: string;
824
- sha256?: string | undefined;
825
- caption?: string | undefined;
826
- filename?: string | undefined;
827
- } | undefined;
828
- document?: {
829
- id: string;
830
- mime_type: string;
831
- sha256?: string | undefined;
832
- caption?: string | undefined;
833
- filename?: string | undefined;
834
- } | undefined;
835
- sticker?: {
836
- id: string;
837
- mime_type: string;
838
- sha256?: string | undefined;
839
- caption?: string | undefined;
840
- filename?: string | undefined;
841
- } | undefined;
842
- interactive?: {
843
- type: string;
844
- button_reply?: {
845
- id: string;
846
- title: string;
847
- } | undefined;
848
- list_reply?: {
849
- id: string;
850
- title: string;
851
- } | undefined;
852
- } | undefined;
853
- order?: {
854
- catalog_id: string;
855
- product_items: {
856
- product_retailer_id: string;
857
- quantity: number;
858
- item_price: number;
859
- currency: string;
860
- }[];
861
- text?: string | undefined;
862
- } | undefined;
863
- context?: {
864
- id?: string | undefined;
865
- from?: string | undefined;
866
- referred_product?: {
867
- catalog_id: string;
868
- product_retailer_id: string;
869
- } | undefined;
870
- } | undefined;
871
- }>, "many">>;
872
- message_echoes: z.ZodOptional<z.ZodArray<z.ZodObject<{
873
- id: z.ZodString;
874
- from: z.ZodString;
875
- timestamp: z.ZodString;
876
- type: z.ZodString;
877
- }, "strip", z.ZodTypeAny, {
878
- id: string;
879
- type: string;
880
- from: string;
881
- timestamp: string;
882
- }, {
883
- id: string;
884
- type: string;
885
- from: string;
886
- timestamp: string;
887
- }>, "many">>;
888
- statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
889
- id: z.ZodString;
890
- status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
891
- timestamp: z.ZodString;
892
- recipient_id: z.ZodOptional<z.ZodString>;
893
- }, "strip", z.ZodTypeAny, {
894
- id: string;
895
- status: "sent" | "delivered" | "read" | "failed";
896
- timestamp: string;
897
- recipient_id?: string | undefined;
898
- }, {
899
- id: string;
900
- status: "sent" | "delivered" | "read" | "failed";
901
- timestamp: string;
902
- recipient_id?: string | undefined;
903
- }>, "many">>;
904
- metadata: z.ZodOptional<z.ZodObject<{
905
- display_phone_number: z.ZodString;
906
- phone_number_id: z.ZodString;
907
- }, "strip", z.ZodTypeAny, {
908
- display_phone_number: string;
909
- phone_number_id: string;
910
- }, {
911
- display_phone_number: string;
912
- phone_number_id: string;
913
- }>>;
914
- }, "strip", z.ZodTypeAny, {
915
- messaging_product: string;
916
- messages?: {
917
- id: string;
918
- type: string;
919
- from: string;
920
- timestamp: string;
921
- text?: {
922
- body: string;
923
- } | undefined;
924
- image?: {
925
- id: string;
926
- mime_type: string;
927
- sha256?: string | undefined;
928
- caption?: string | undefined;
929
- filename?: string | undefined;
930
- } | undefined;
931
- audio?: {
932
- id: string;
933
- mime_type: string;
934
- sha256?: string | undefined;
935
- caption?: string | undefined;
936
- filename?: string | undefined;
937
- } | undefined;
938
- video?: {
939
- id: string;
940
- mime_type: string;
941
- sha256?: string | undefined;
942
- caption?: string | undefined;
943
- filename?: string | undefined;
944
- } | undefined;
945
- document?: {
946
- id: string;
947
- mime_type: string;
948
- sha256?: string | undefined;
949
- caption?: string | undefined;
950
- filename?: string | undefined;
951
- } | undefined;
952
- sticker?: {
953
- id: string;
954
- mime_type: string;
955
- sha256?: string | undefined;
956
- caption?: string | undefined;
957
- filename?: string | undefined;
958
- } | undefined;
959
- interactive?: {
960
- type: string;
961
- button_reply?: {
962
- id: string;
963
- title: string;
964
- } | undefined;
965
- list_reply?: {
966
- id: string;
967
- title: string;
968
- } | undefined;
969
- } | undefined;
970
- order?: {
971
- catalog_id: string;
972
- product_items: {
973
- product_retailer_id: string;
974
- quantity: number;
975
- item_price: number;
976
- currency: string;
977
- }[];
978
- text?: string | undefined;
979
- } | undefined;
980
- context?: {
981
- id?: string | undefined;
982
- from?: string | undefined;
983
- referred_product?: {
984
- catalog_id: string;
985
- product_retailer_id: string;
986
- } | undefined;
987
- } | undefined;
988
- }[] | undefined;
989
- message_echoes?: {
990
- id: string;
991
- type: string;
992
- from: string;
993
- timestamp: string;
994
- }[] | undefined;
995
- statuses?: {
996
- id: string;
997
- status: "sent" | "delivered" | "read" | "failed";
998
- timestamp: string;
999
- recipient_id?: string | undefined;
1000
- }[] | undefined;
1001
- metadata?: {
1002
- display_phone_number: string;
1003
- phone_number_id: string;
1004
- } | undefined;
1005
- }, {
1006
- messaging_product: string;
1007
- messages?: {
1008
- id: string;
1009
- type: string;
1010
- from: string;
1011
- timestamp: string;
1012
- text?: {
1013
- body: string;
1014
- } | undefined;
1015
- image?: {
1016
- id: string;
1017
- mime_type: string;
1018
- sha256?: string | undefined;
1019
- caption?: string | undefined;
1020
- filename?: string | undefined;
1021
- } | undefined;
1022
- audio?: {
1023
- id: string;
1024
- mime_type: string;
1025
- sha256?: string | undefined;
1026
- caption?: string | undefined;
1027
- filename?: string | undefined;
1028
- } | undefined;
1029
- video?: {
1030
- id: string;
1031
- mime_type: string;
1032
- sha256?: string | undefined;
1033
- caption?: string | undefined;
1034
- filename?: string | undefined;
1035
- } | undefined;
1036
- document?: {
1037
- id: string;
1038
- mime_type: string;
1039
- sha256?: string | undefined;
1040
- caption?: string | undefined;
1041
- filename?: string | undefined;
1042
- } | undefined;
1043
- sticker?: {
1044
- id: string;
1045
- mime_type: string;
1046
- sha256?: string | undefined;
1047
- caption?: string | undefined;
1048
- filename?: string | undefined;
1049
- } | undefined;
1050
- interactive?: {
1051
- type: string;
1052
- button_reply?: {
1053
- id: string;
1054
- title: string;
1055
- } | undefined;
1056
- list_reply?: {
1057
- id: string;
1058
- title: string;
1059
- } | undefined;
1060
- } | undefined;
1061
- order?: {
1062
- catalog_id: string;
1063
- product_items: {
1064
- product_retailer_id: string;
1065
- quantity: number;
1066
- item_price: number;
1067
- currency: string;
1068
- }[];
1069
- text?: string | undefined;
1070
- } | undefined;
1071
- context?: {
1072
- id?: string | undefined;
1073
- from?: string | undefined;
1074
- referred_product?: {
1075
- catalog_id: string;
1076
- product_retailer_id: string;
1077
- } | undefined;
1078
- } | undefined;
1079
- }[] | undefined;
1080
- message_echoes?: {
1081
- id: string;
1082
- type: string;
1083
- from: string;
1084
- timestamp: string;
1085
- }[] | undefined;
1086
- statuses?: {
1087
- id: string;
1088
- status: "sent" | "delivered" | "read" | "failed";
1089
- timestamp: string;
1090
- recipient_id?: string | undefined;
1091
- }[] | undefined;
1092
- metadata?: {
1093
- display_phone_number: string;
1094
- phone_number_id: string;
1095
- } | undefined;
1096
- }>;
1097
- }, "strip", z.ZodTypeAny, {
1098
- value: {
1099
- messaging_product: string;
1100
- messages?: {
1101
- id: string;
1102
- type: string;
1103
- from: string;
1104
- timestamp: string;
1105
- text?: {
1106
- body: string;
1107
- } | undefined;
1108
- image?: {
1109
- id: string;
1110
- mime_type: string;
1111
- sha256?: string | undefined;
1112
- caption?: string | undefined;
1113
- filename?: string | undefined;
1114
- } | undefined;
1115
- audio?: {
1116
- id: string;
1117
- mime_type: string;
1118
- sha256?: string | undefined;
1119
- caption?: string | undefined;
1120
- filename?: string | undefined;
1121
- } | undefined;
1122
- video?: {
1123
- id: string;
1124
- mime_type: string;
1125
- sha256?: string | undefined;
1126
- caption?: string | undefined;
1127
- filename?: string | undefined;
1128
- } | undefined;
1129
- document?: {
1130
- id: string;
1131
- mime_type: string;
1132
- sha256?: string | undefined;
1133
- caption?: string | undefined;
1134
- filename?: string | undefined;
1135
- } | undefined;
1136
- sticker?: {
1137
- id: string;
1138
- mime_type: string;
1139
- sha256?: string | undefined;
1140
- caption?: string | undefined;
1141
- filename?: string | undefined;
1142
- } | undefined;
1143
- interactive?: {
1144
- type: string;
1145
- button_reply?: {
1146
- id: string;
1147
- title: string;
1148
- } | undefined;
1149
- list_reply?: {
1150
- id: string;
1151
- title: string;
1152
- } | undefined;
1153
- } | undefined;
1154
- order?: {
1155
- catalog_id: string;
1156
- product_items: {
1157
- product_retailer_id: string;
1158
- quantity: number;
1159
- item_price: number;
1160
- currency: string;
1161
- }[];
1162
- text?: string | undefined;
1163
- } | undefined;
1164
- context?: {
1165
- id?: string | undefined;
1166
- from?: string | undefined;
1167
- referred_product?: {
1168
- catalog_id: string;
1169
- product_retailer_id: string;
1170
- } | undefined;
1171
- } | undefined;
1172
- }[] | undefined;
1173
- message_echoes?: {
1174
- id: string;
1175
- type: string;
1176
- from: string;
1177
- timestamp: string;
1178
- }[] | undefined;
1179
- statuses?: {
1180
- id: string;
1181
- status: "sent" | "delivered" | "read" | "failed";
1182
- timestamp: string;
1183
- recipient_id?: string | undefined;
1184
- }[] | undefined;
1185
- metadata?: {
1186
- display_phone_number: string;
1187
- phone_number_id: string;
1188
- } | undefined;
1189
- };
1190
- }, {
1191
- value: {
1192
- messaging_product: string;
1193
- messages?: {
1194
- id: string;
1195
- type: string;
1196
- from: string;
1197
- timestamp: string;
1198
- text?: {
1199
- body: string;
1200
- } | undefined;
1201
- image?: {
1202
- id: string;
1203
- mime_type: string;
1204
- sha256?: string | undefined;
1205
- caption?: string | undefined;
1206
- filename?: string | undefined;
1207
- } | undefined;
1208
- audio?: {
1209
- id: string;
1210
- mime_type: string;
1211
- sha256?: string | undefined;
1212
- caption?: string | undefined;
1213
- filename?: string | undefined;
1214
- } | undefined;
1215
- video?: {
1216
- id: string;
1217
- mime_type: string;
1218
- sha256?: string | undefined;
1219
- caption?: string | undefined;
1220
- filename?: string | undefined;
1221
- } | undefined;
1222
- document?: {
1223
- id: string;
1224
- mime_type: string;
1225
- sha256?: string | undefined;
1226
- caption?: string | undefined;
1227
- filename?: string | undefined;
1228
- } | undefined;
1229
- sticker?: {
1230
- id: string;
1231
- mime_type: string;
1232
- sha256?: string | undefined;
1233
- caption?: string | undefined;
1234
- filename?: string | undefined;
1235
- } | undefined;
1236
- interactive?: {
1237
- type: string;
1238
- button_reply?: {
1239
- id: string;
1240
- title: string;
1241
- } | undefined;
1242
- list_reply?: {
1243
- id: string;
1244
- title: string;
1245
- } | undefined;
1246
- } | undefined;
1247
- order?: {
1248
- catalog_id: string;
1249
- product_items: {
1250
- product_retailer_id: string;
1251
- quantity: number;
1252
- item_price: number;
1253
- currency: string;
1254
- }[];
1255
- text?: string | undefined;
1256
- } | undefined;
1257
- context?: {
1258
- id?: string | undefined;
1259
- from?: string | undefined;
1260
- referred_product?: {
1261
- catalog_id: string;
1262
- product_retailer_id: string;
1263
- } | undefined;
1264
- } | undefined;
1265
- }[] | undefined;
1266
- message_echoes?: {
1267
- id: string;
1268
- type: string;
1269
- from: string;
1270
- timestamp: string;
1271
- }[] | undefined;
1272
- statuses?: {
1273
- id: string;
1274
- status: "sent" | "delivered" | "read" | "failed";
1275
- timestamp: string;
1276
- recipient_id?: string | undefined;
1277
- }[] | undefined;
1278
- metadata?: {
1279
- display_phone_number: string;
1280
- phone_number_id: string;
1281
- } | undefined;
1282
- };
1283
- }>, "many">;
1284
- }, "strip", z.ZodTypeAny, {
1285
- id: string;
1286
- changes: {
1287
- value: {
1288
- messaging_product: string;
1289
- messages?: {
1290
- id: string;
1291
- type: string;
1292
- from: string;
1293
- timestamp: string;
1294
- text?: {
1295
- body: string;
1296
- } | undefined;
1297
- image?: {
1298
- id: string;
1299
- mime_type: string;
1300
- sha256?: string | undefined;
1301
- caption?: string | undefined;
1302
- filename?: string | undefined;
1303
- } | undefined;
1304
- audio?: {
1305
- id: string;
1306
- mime_type: string;
1307
- sha256?: string | undefined;
1308
- caption?: string | undefined;
1309
- filename?: string | undefined;
1310
- } | undefined;
1311
- video?: {
1312
- id: string;
1313
- mime_type: string;
1314
- sha256?: string | undefined;
1315
- caption?: string | undefined;
1316
- filename?: string | undefined;
1317
- } | undefined;
1318
- document?: {
1319
- id: string;
1320
- mime_type: string;
1321
- sha256?: string | undefined;
1322
- caption?: string | undefined;
1323
- filename?: string | undefined;
1324
- } | undefined;
1325
- sticker?: {
1326
- id: string;
1327
- mime_type: string;
1328
- sha256?: string | undefined;
1329
- caption?: string | undefined;
1330
- filename?: string | undefined;
1331
- } | undefined;
1332
- interactive?: {
1333
- type: string;
1334
- button_reply?: {
1335
- id: string;
1336
- title: string;
1337
- } | undefined;
1338
- list_reply?: {
1339
- id: string;
1340
- title: string;
1341
- } | undefined;
1342
- } | undefined;
1343
- order?: {
1344
- catalog_id: string;
1345
- product_items: {
1346
- product_retailer_id: string;
1347
- quantity: number;
1348
- item_price: number;
1349
- currency: string;
1350
- }[];
1351
- text?: string | undefined;
1352
- } | undefined;
1353
- context?: {
1354
- id?: string | undefined;
1355
- from?: string | undefined;
1356
- referred_product?: {
1357
- catalog_id: string;
1358
- product_retailer_id: string;
1359
- } | undefined;
1360
- } | undefined;
1361
- }[] | undefined;
1362
- message_echoes?: {
1363
- id: string;
1364
- type: string;
1365
- from: string;
1366
- timestamp: string;
1367
- }[] | undefined;
1368
- statuses?: {
1369
- id: string;
1370
- status: "sent" | "delivered" | "read" | "failed";
1371
- timestamp: string;
1372
- recipient_id?: string | undefined;
1373
- }[] | undefined;
1374
- metadata?: {
1375
- display_phone_number: string;
1376
- phone_number_id: string;
1377
- } | undefined;
1378
- };
1379
- }[];
1380
- }, {
1381
- id: string;
1382
- changes: {
1383
- value: {
1384
- messaging_product: string;
1385
- messages?: {
1386
- id: string;
1387
- type: string;
1388
- from: string;
1389
- timestamp: string;
1390
- text?: {
1391
- body: string;
1392
- } | undefined;
1393
- image?: {
1394
- id: string;
1395
- mime_type: string;
1396
- sha256?: string | undefined;
1397
- caption?: string | undefined;
1398
- filename?: string | undefined;
1399
- } | undefined;
1400
- audio?: {
1401
- id: string;
1402
- mime_type: string;
1403
- sha256?: string | undefined;
1404
- caption?: string | undefined;
1405
- filename?: string | undefined;
1406
- } | undefined;
1407
- video?: {
1408
- id: string;
1409
- mime_type: string;
1410
- sha256?: string | undefined;
1411
- caption?: string | undefined;
1412
- filename?: string | undefined;
1413
- } | undefined;
1414
- document?: {
1415
- id: string;
1416
- mime_type: string;
1417
- sha256?: string | undefined;
1418
- caption?: string | undefined;
1419
- filename?: string | undefined;
1420
- } | undefined;
1421
- sticker?: {
1422
- id: string;
1423
- mime_type: string;
1424
- sha256?: string | undefined;
1425
- caption?: string | undefined;
1426
- filename?: string | undefined;
1427
- } | undefined;
1428
- interactive?: {
1429
- type: string;
1430
- button_reply?: {
1431
- id: string;
1432
- title: string;
1433
- } | undefined;
1434
- list_reply?: {
1435
- id: string;
1436
- title: string;
1437
- } | undefined;
1438
- } | undefined;
1439
- order?: {
1440
- catalog_id: string;
1441
- product_items: {
1442
- product_retailer_id: string;
1443
- quantity: number;
1444
- item_price: number;
1445
- currency: string;
1446
- }[];
1447
- text?: string | undefined;
1448
- } | undefined;
1449
- context?: {
1450
- id?: string | undefined;
1451
- from?: string | undefined;
1452
- referred_product?: {
1453
- catalog_id: string;
1454
- product_retailer_id: string;
1455
- } | undefined;
1456
- } | undefined;
1457
- }[] | undefined;
1458
- message_echoes?: {
1459
- id: string;
1460
- type: string;
1461
- from: string;
1462
- timestamp: string;
1463
- }[] | undefined;
1464
- statuses?: {
1465
- id: string;
1466
- status: "sent" | "delivered" | "read" | "failed";
1467
- timestamp: string;
1468
- recipient_id?: string | undefined;
1469
- }[] | undefined;
1470
- metadata?: {
1471
- display_phone_number: string;
1472
- phone_number_id: string;
1473
- } | undefined;
1474
- };
1475
- }[];
1476
- }>, "many">;
1477
- }, "strip", z.ZodTypeAny, {
1478
- object: string;
1479
- entry: {
1480
- id: string;
1481
- changes: {
1482
- value: {
1483
- messaging_product: string;
1484
- messages?: {
1485
- id: string;
1486
- type: string;
1487
- from: string;
1488
- timestamp: string;
1489
- text?: {
1490
- body: string;
1491
- } | undefined;
1492
- image?: {
1493
- id: string;
1494
- mime_type: string;
1495
- sha256?: string | undefined;
1496
- caption?: string | undefined;
1497
- filename?: string | undefined;
1498
- } | undefined;
1499
- audio?: {
1500
- id: string;
1501
- mime_type: string;
1502
- sha256?: string | undefined;
1503
- caption?: string | undefined;
1504
- filename?: string | undefined;
1505
- } | undefined;
1506
- video?: {
1507
- id: string;
1508
- mime_type: string;
1509
- sha256?: string | undefined;
1510
- caption?: string | undefined;
1511
- filename?: string | undefined;
1512
- } | undefined;
1513
- document?: {
1514
- id: string;
1515
- mime_type: string;
1516
- sha256?: string | undefined;
1517
- caption?: string | undefined;
1518
- filename?: string | undefined;
1519
- } | undefined;
1520
- sticker?: {
1521
- id: string;
1522
- mime_type: string;
1523
- sha256?: string | undefined;
1524
- caption?: string | undefined;
1525
- filename?: string | undefined;
1526
- } | undefined;
1527
- interactive?: {
1528
- type: string;
1529
- button_reply?: {
1530
- id: string;
1531
- title: string;
1532
- } | undefined;
1533
- list_reply?: {
1534
- id: string;
1535
- title: string;
1536
- } | undefined;
1537
- } | undefined;
1538
- order?: {
1539
- catalog_id: string;
1540
- product_items: {
1541
- product_retailer_id: string;
1542
- quantity: number;
1543
- item_price: number;
1544
- currency: string;
1545
- }[];
1546
- text?: string | undefined;
1547
- } | undefined;
1548
- context?: {
1549
- id?: string | undefined;
1550
- from?: string | undefined;
1551
- referred_product?: {
1552
- catalog_id: string;
1553
- product_retailer_id: string;
1554
- } | undefined;
1555
- } | undefined;
1556
- }[] | undefined;
1557
- message_echoes?: {
1558
- id: string;
1559
- type: string;
1560
- from: string;
1561
- timestamp: string;
1562
- }[] | undefined;
1563
- statuses?: {
1564
- id: string;
1565
- status: "sent" | "delivered" | "read" | "failed";
1566
- timestamp: string;
1567
- recipient_id?: string | undefined;
1568
- }[] | undefined;
1569
- metadata?: {
1570
- display_phone_number: string;
1571
- phone_number_id: string;
1572
- } | undefined;
1573
- };
1574
- }[];
1575
- }[];
1576
- }, {
1577
- object: string;
1578
- entry: {
1579
- id: string;
1580
- changes: {
1581
- value: {
1582
- messaging_product: string;
1583
- messages?: {
1584
- id: string;
1585
- type: string;
1586
- from: string;
1587
- timestamp: string;
1588
- text?: {
1589
- body: string;
1590
- } | undefined;
1591
- image?: {
1592
- id: string;
1593
- mime_type: string;
1594
- sha256?: string | undefined;
1595
- caption?: string | undefined;
1596
- filename?: string | undefined;
1597
- } | undefined;
1598
- audio?: {
1599
- id: string;
1600
- mime_type: string;
1601
- sha256?: string | undefined;
1602
- caption?: string | undefined;
1603
- filename?: string | undefined;
1604
- } | undefined;
1605
- video?: {
1606
- id: string;
1607
- mime_type: string;
1608
- sha256?: string | undefined;
1609
- caption?: string | undefined;
1610
- filename?: string | undefined;
1611
- } | undefined;
1612
- document?: {
1613
- id: string;
1614
- mime_type: string;
1615
- sha256?: string | undefined;
1616
- caption?: string | undefined;
1617
- filename?: string | undefined;
1618
- } | undefined;
1619
- sticker?: {
1620
- id: string;
1621
- mime_type: string;
1622
- sha256?: string | undefined;
1623
- caption?: string | undefined;
1624
- filename?: string | undefined;
1625
- } | undefined;
1626
- interactive?: {
1627
- type: string;
1628
- button_reply?: {
1629
- id: string;
1630
- title: string;
1631
- } | undefined;
1632
- list_reply?: {
1633
- id: string;
1634
- title: string;
1635
- } | undefined;
1636
- } | undefined;
1637
- order?: {
1638
- catalog_id: string;
1639
- product_items: {
1640
- product_retailer_id: string;
1641
- quantity: number;
1642
- item_price: number;
1643
- currency: string;
1644
- }[];
1645
- text?: string | undefined;
1646
- } | undefined;
1647
- context?: {
1648
- id?: string | undefined;
1649
- from?: string | undefined;
1650
- referred_product?: {
1651
- catalog_id: string;
1652
- product_retailer_id: string;
1653
- } | undefined;
1654
- } | undefined;
1655
- }[] | undefined;
1656
- message_echoes?: {
1657
- id: string;
1658
- type: string;
1659
- from: string;
1660
- timestamp: string;
1661
- }[] | undefined;
1662
- statuses?: {
1663
- id: string;
1664
- status: "sent" | "delivered" | "read" | "failed";
1665
- timestamp: string;
1666
- recipient_id?: string | undefined;
1667
- }[] | undefined;
1668
- metadata?: {
1669
- display_phone_number: string;
1670
- phone_number_id: string;
1671
- } | undefined;
1672
- };
1673
- }[];
1674
- }[];
1675
- }>;
1676
- type WhatsAppWebhookPayload = z.infer<typeof whatsAppWebhookPayloadSchema>;
1677
-
1678
5
  type SessionState = string;
1679
6
  type SessionMode = 'bot' | 'human';
1680
7
  type MessageDirection = 'inbound' | 'outbound';
@@ -1685,6 +12,8 @@ interface ConversationSession {
1685
12
  companyId: string;
1686
13
  whatsappNumber: string;
1687
14
  currentState: SessionState;
15
+ flowKey: string | null;
16
+ currentNodeId: string | null;
1688
17
  context: Record<string, unknown>;
1689
18
  mode: SessionMode;
1690
19
  assignedUserId: string | null;
@@ -2174,4 +503,4 @@ declare class SessionNotFoundError extends MetaWhatsAppError {
2174
503
  constructor(whatsappNumber: string);
2175
504
  }
2176
505
 
2177
- export { CROSS_FLOW_PREFIX, type CatalogPort, type CatalogProduct, type ChannelAdapterInterface, ConfigMissingError, type ConversationMessage, type ConversationSession, type ConversationSummary, type CreateTemplateResult, DuplicateWebhookDeliveryError, type FlowActionHandler, type FlowActionKind, type FlowActionRegistry, type FlowActionResult, type FlowConditionOperator, type FlowGraphData, type FlowGraphSummary, type FlowNodeData, type FlowNodeNext, type FlowNodeType, type FlowQuestionType, InvalidWebhookSignatureError, type ListConversationsParams, type ListMessagesParams, type LiveFlowPosition, META_WHATSAPP_ERROR_CODES, type MessageDirection, type MessageHookOutcome, type MessageSender, type MessageStatus, MetaWhatsAppError, type MetaWhatsAppHooks, type ObjectStorageInterface, type RealtimeNotifierInterface, type SessionMode, SessionNotFoundError, type SessionState, type SubjectResolverInterface, type TemplateConfig, TemplateNotConfiguredError, type TemplateVariablesMap, type WhatsAppInteractive, type WhatsAppMedia, type WhatsAppMessage, type WhatsAppMessageEcho, type WhatsAppMessageStatusValue, type WhatsAppOrder, type WhatsAppSettings, type WhatsAppStatus, type WhatsAppTemplateSummary, type WhatsAppWebhookPayload, WindowExpiredError, crossFlowKey, flowGraphNodesSchema, flowNodeDataSchema, flowNodeNextSchema, isCrossFlowTarget, whatsAppInteractiveSchema, whatsAppMediaSchema, whatsAppMessageEchoSchema, whatsAppMessageSchema, whatsAppMessageStatusSchema, whatsAppOrderSchema, whatsAppStatusSchema, whatsAppWebhookPayloadSchema };
506
+ export { CROSS_FLOW_PREFIX, type CatalogPort, type CatalogProduct, type ChannelAdapterInterface, ConfigMissingError, type ConversationMessage, type ConversationSession, type ConversationSummary, type CreateTemplateResult, DuplicateWebhookDeliveryError, type FlowActionHandler, type FlowActionKind, type FlowActionRegistry, type FlowActionResult, type FlowConditionOperator, type FlowGraphData, type FlowGraphSummary, type FlowNodeData, type FlowNodeNext, type FlowNodeType, type FlowQuestionType, InvalidWebhookSignatureError, type ListConversationsParams, type ListMessagesParams, type LiveFlowPosition, META_WHATSAPP_ERROR_CODES, type MessageDirection, type MessageHookOutcome, type MessageSender, type MessageStatus, MetaWhatsAppError, type MetaWhatsAppHooks, type ObjectStorageInterface, type RealtimeNotifierInterface, type SessionMode, SessionNotFoundError, type SessionState, type SubjectResolverInterface, type TemplateConfig, TemplateNotConfiguredError, type TemplateVariablesMap, WhatsAppMessage, type WhatsAppSettings, WhatsAppStatus, type WhatsAppTemplateSummary, WindowExpiredError, crossFlowKey, flowGraphNodesSchema, flowNodeDataSchema, flowNodeNextSchema, isCrossFlowTarget };