@catalisa/wpp-sdk 0.2.2 → 0.3.0

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.
@@ -0,0 +1,1197 @@
1
+ /**
2
+ * Mock events for testing webhook filters
3
+ * Contains both Baileys and Cloud API message formats
4
+ */
5
+ /**
6
+ * Baileys text message (conversation)
7
+ */
8
+ export declare const baileysTextMessage: {
9
+ eventType: string;
10
+ data: {
11
+ messages: {
12
+ key: {
13
+ remoteJid: string;
14
+ fromMe: boolean;
15
+ id: string;
16
+ };
17
+ message: {
18
+ conversation: string;
19
+ };
20
+ messageTimestamp: number;
21
+ }[];
22
+ };
23
+ };
24
+ /**
25
+ * Baileys extended text message (with mentions)
26
+ */
27
+ export declare const baileysExtendedTextMessage: {
28
+ eventType: string;
29
+ data: {
30
+ messages: {
31
+ key: {
32
+ remoteJid: string;
33
+ fromMe: boolean;
34
+ id: string;
35
+ };
36
+ message: {
37
+ extendedTextMessage: {
38
+ text: string;
39
+ contextInfo: {
40
+ mentionedJid: string[];
41
+ };
42
+ };
43
+ };
44
+ messageTimestamp: number;
45
+ }[];
46
+ };
47
+ };
48
+ /**
49
+ * Baileys image message
50
+ */
51
+ export declare const baileysImageMessage: {
52
+ eventType: string;
53
+ data: {
54
+ messages: {
55
+ key: {
56
+ remoteJid: string;
57
+ fromMe: boolean;
58
+ id: string;
59
+ };
60
+ message: {
61
+ imageMessage: {
62
+ url: string;
63
+ mimetype: string;
64
+ caption: string;
65
+ fileSha256: string;
66
+ fileLength: number;
67
+ };
68
+ };
69
+ messageTimestamp: number;
70
+ }[];
71
+ };
72
+ };
73
+ /**
74
+ * Baileys video message
75
+ */
76
+ export declare const baileysVideoMessage: {
77
+ eventType: string;
78
+ data: {
79
+ messages: {
80
+ key: {
81
+ remoteJid: string;
82
+ fromMe: boolean;
83
+ id: string;
84
+ };
85
+ message: {
86
+ videoMessage: {
87
+ url: string;
88
+ mimetype: string;
89
+ caption: string;
90
+ seconds: number;
91
+ };
92
+ };
93
+ messageTimestamp: number;
94
+ }[];
95
+ };
96
+ };
97
+ /**
98
+ * Baileys audio message
99
+ */
100
+ export declare const baileysAudioMessage: {
101
+ eventType: string;
102
+ data: {
103
+ messages: {
104
+ key: {
105
+ remoteJid: string;
106
+ fromMe: boolean;
107
+ id: string;
108
+ };
109
+ message: {
110
+ audioMessage: {
111
+ url: string;
112
+ mimetype: string;
113
+ seconds: number;
114
+ ptt: boolean;
115
+ };
116
+ };
117
+ messageTimestamp: number;
118
+ }[];
119
+ };
120
+ };
121
+ /**
122
+ * Baileys document message
123
+ */
124
+ export declare const baileysDocumentMessage: {
125
+ eventType: string;
126
+ data: {
127
+ messages: {
128
+ key: {
129
+ remoteJid: string;
130
+ fromMe: boolean;
131
+ id: string;
132
+ };
133
+ message: {
134
+ documentMessage: {
135
+ url: string;
136
+ mimetype: string;
137
+ fileName: string;
138
+ fileLength: number;
139
+ };
140
+ };
141
+ messageTimestamp: number;
142
+ }[];
143
+ };
144
+ };
145
+ /**
146
+ * Baileys sticker message
147
+ */
148
+ export declare const baileysStickerMessage: {
149
+ eventType: string;
150
+ data: {
151
+ messages: {
152
+ key: {
153
+ remoteJid: string;
154
+ fromMe: boolean;
155
+ id: string;
156
+ };
157
+ message: {
158
+ stickerMessage: {
159
+ url: string;
160
+ mimetype: string;
161
+ isAnimated: boolean;
162
+ };
163
+ };
164
+ messageTimestamp: number;
165
+ }[];
166
+ };
167
+ };
168
+ /**
169
+ * Baileys contact message
170
+ */
171
+ export declare const baileysContactMessage: {
172
+ eventType: string;
173
+ data: {
174
+ messages: {
175
+ key: {
176
+ remoteJid: string;
177
+ fromMe: boolean;
178
+ id: string;
179
+ };
180
+ message: {
181
+ contactMessage: {
182
+ displayName: string;
183
+ vcard: string;
184
+ };
185
+ };
186
+ messageTimestamp: number;
187
+ }[];
188
+ };
189
+ };
190
+ /**
191
+ * Baileys location message
192
+ */
193
+ export declare const baileysLocationMessage: {
194
+ eventType: string;
195
+ data: {
196
+ messages: {
197
+ key: {
198
+ remoteJid: string;
199
+ fromMe: boolean;
200
+ id: string;
201
+ };
202
+ message: {
203
+ locationMessage: {
204
+ degreesLatitude: number;
205
+ degreesLongitude: number;
206
+ name: string;
207
+ address: string;
208
+ };
209
+ };
210
+ messageTimestamp: number;
211
+ }[];
212
+ };
213
+ };
214
+ /**
215
+ * Baileys reaction message
216
+ */
217
+ export declare const baileysReactionMessage: {
218
+ eventType: string;
219
+ data: {
220
+ messages: {
221
+ key: {
222
+ remoteJid: string;
223
+ fromMe: boolean;
224
+ id: string;
225
+ };
226
+ message: {
227
+ reactionMessage: {
228
+ key: {
229
+ remoteJid: string;
230
+ fromMe: boolean;
231
+ id: string;
232
+ };
233
+ text: string;
234
+ };
235
+ };
236
+ messageTimestamp: number;
237
+ }[];
238
+ };
239
+ };
240
+ /**
241
+ * Baileys poll creation message
242
+ */
243
+ export declare const baileysPollMessage: {
244
+ eventType: string;
245
+ data: {
246
+ messages: {
247
+ key: {
248
+ remoteJid: string;
249
+ fromMe: boolean;
250
+ id: string;
251
+ };
252
+ message: {
253
+ pollCreationMessage: {
254
+ name: string;
255
+ options: {
256
+ optionName: string;
257
+ }[];
258
+ selectableOptionsCount: number;
259
+ };
260
+ };
261
+ messageTimestamp: number;
262
+ }[];
263
+ };
264
+ };
265
+ /**
266
+ * Baileys buttons message
267
+ */
268
+ export declare const baileysButtonsMessage: {
269
+ eventType: string;
270
+ data: {
271
+ messages: {
272
+ key: {
273
+ remoteJid: string;
274
+ fromMe: boolean;
275
+ id: string;
276
+ };
277
+ message: {
278
+ buttonsMessage: {
279
+ contentText: string;
280
+ buttons: {
281
+ buttonId: string;
282
+ buttonText: {
283
+ displayText: string;
284
+ };
285
+ }[];
286
+ };
287
+ };
288
+ messageTimestamp: number;
289
+ }[];
290
+ };
291
+ };
292
+ /**
293
+ * Baileys list message
294
+ */
295
+ export declare const baileysListMessage: {
296
+ eventType: string;
297
+ data: {
298
+ messages: {
299
+ key: {
300
+ remoteJid: string;
301
+ fromMe: boolean;
302
+ id: string;
303
+ };
304
+ message: {
305
+ listMessage: {
306
+ title: string;
307
+ description: string;
308
+ buttonText: string;
309
+ listType: string;
310
+ sections: {
311
+ title: string;
312
+ rows: {
313
+ title: string;
314
+ rowId: string;
315
+ }[];
316
+ }[];
317
+ };
318
+ };
319
+ messageTimestamp: number;
320
+ }[];
321
+ };
322
+ };
323
+ /**
324
+ * Baileys template message
325
+ */
326
+ export declare const baileysTemplateMessage: {
327
+ eventType: string;
328
+ data: {
329
+ messages: {
330
+ key: {
331
+ remoteJid: string;
332
+ fromMe: boolean;
333
+ id: string;
334
+ };
335
+ message: {
336
+ templateMessage: {
337
+ hydratedTemplate: {
338
+ hydratedContentText: string;
339
+ hydratedButtons: {
340
+ quickReplyButton: {
341
+ displayText: string;
342
+ };
343
+ }[];
344
+ };
345
+ };
346
+ };
347
+ messageTimestamp: number;
348
+ }[];
349
+ };
350
+ };
351
+ /**
352
+ * Baileys product message
353
+ */
354
+ export declare const baileysProductMessage: {
355
+ eventType: string;
356
+ data: {
357
+ messages: {
358
+ key: {
359
+ remoteJid: string;
360
+ fromMe: boolean;
361
+ id: string;
362
+ };
363
+ message: {
364
+ productMessage: {
365
+ product: {
366
+ productId: string;
367
+ title: string;
368
+ currencyCode: string;
369
+ priceAmount1000: number;
370
+ };
371
+ };
372
+ };
373
+ messageTimestamp: number;
374
+ }[];
375
+ };
376
+ };
377
+ /**
378
+ * Baileys order message
379
+ */
380
+ export declare const baileysOrderMessage: {
381
+ eventType: string;
382
+ data: {
383
+ messages: {
384
+ key: {
385
+ remoteJid: string;
386
+ fromMe: boolean;
387
+ id: string;
388
+ };
389
+ message: {
390
+ orderMessage: {
391
+ orderId: string;
392
+ itemCount: number;
393
+ status: string;
394
+ totalAmount1000: number;
395
+ totalCurrencyCode: string;
396
+ };
397
+ };
398
+ messageTimestamp: number;
399
+ }[];
400
+ };
401
+ };
402
+ /**
403
+ * Baileys viewOnce message
404
+ */
405
+ export declare const baileysViewOnceMessage: {
406
+ eventType: string;
407
+ data: {
408
+ messages: {
409
+ key: {
410
+ remoteJid: string;
411
+ fromMe: boolean;
412
+ id: string;
413
+ };
414
+ message: {
415
+ viewOnceMessage: {
416
+ message: {
417
+ imageMessage: {
418
+ url: string;
419
+ mimetype: string;
420
+ };
421
+ };
422
+ };
423
+ };
424
+ messageTimestamp: number;
425
+ }[];
426
+ };
427
+ };
428
+ /**
429
+ * Cloud API text message
430
+ */
431
+ export declare const cloudApiTextMessage: {
432
+ eventType: string;
433
+ data: {
434
+ messages: {
435
+ from: string;
436
+ id: string;
437
+ timestamp: string;
438
+ type: string;
439
+ text: {
440
+ body: string;
441
+ };
442
+ }[];
443
+ };
444
+ };
445
+ /**
446
+ * Cloud API image message
447
+ */
448
+ export declare const cloudApiImageMessage: {
449
+ eventType: string;
450
+ data: {
451
+ messages: {
452
+ from: string;
453
+ id: string;
454
+ timestamp: string;
455
+ type: string;
456
+ image: {
457
+ caption: string;
458
+ mime_type: string;
459
+ sha256: string;
460
+ id: string;
461
+ };
462
+ }[];
463
+ };
464
+ };
465
+ /**
466
+ * Cloud API video message
467
+ */
468
+ export declare const cloudApiVideoMessage: {
469
+ eventType: string;
470
+ data: {
471
+ messages: {
472
+ from: string;
473
+ id: string;
474
+ timestamp: string;
475
+ type: string;
476
+ video: {
477
+ caption: string;
478
+ mime_type: string;
479
+ id: string;
480
+ };
481
+ }[];
482
+ };
483
+ };
484
+ /**
485
+ * Cloud API audio message
486
+ */
487
+ export declare const cloudApiAudioMessage: {
488
+ eventType: string;
489
+ data: {
490
+ messages: {
491
+ from: string;
492
+ id: string;
493
+ timestamp: string;
494
+ type: string;
495
+ audio: {
496
+ mime_type: string;
497
+ id: string;
498
+ };
499
+ }[];
500
+ };
501
+ };
502
+ /**
503
+ * Cloud API document message
504
+ */
505
+ export declare const cloudApiDocumentMessage: {
506
+ eventType: string;
507
+ data: {
508
+ messages: {
509
+ from: string;
510
+ id: string;
511
+ timestamp: string;
512
+ type: string;
513
+ document: {
514
+ caption: string;
515
+ filename: string;
516
+ mime_type: string;
517
+ id: string;
518
+ };
519
+ }[];
520
+ };
521
+ };
522
+ /**
523
+ * Cloud API sticker message
524
+ */
525
+ export declare const cloudApiStickerMessage: {
526
+ eventType: string;
527
+ data: {
528
+ messages: {
529
+ from: string;
530
+ id: string;
531
+ timestamp: string;
532
+ type: string;
533
+ sticker: {
534
+ mime_type: string;
535
+ id: string;
536
+ };
537
+ }[];
538
+ };
539
+ };
540
+ /**
541
+ * Cloud API contacts message
542
+ */
543
+ export declare const cloudApiContactsMessage: {
544
+ eventType: string;
545
+ data: {
546
+ messages: {
547
+ from: string;
548
+ id: string;
549
+ timestamp: string;
550
+ type: string;
551
+ contacts: {
552
+ name: {
553
+ formatted_name: string;
554
+ };
555
+ phones: {
556
+ phone: string;
557
+ }[];
558
+ }[];
559
+ }[];
560
+ };
561
+ };
562
+ /**
563
+ * Cloud API location message
564
+ */
565
+ export declare const cloudApiLocationMessage: {
566
+ eventType: string;
567
+ data: {
568
+ messages: {
569
+ from: string;
570
+ id: string;
571
+ timestamp: string;
572
+ type: string;
573
+ location: {
574
+ latitude: number;
575
+ longitude: number;
576
+ name: string;
577
+ address: string;
578
+ };
579
+ }[];
580
+ };
581
+ };
582
+ /**
583
+ * Cloud API reaction message
584
+ */
585
+ export declare const cloudApiReactionMessage: {
586
+ eventType: string;
587
+ data: {
588
+ messages: {
589
+ from: string;
590
+ id: string;
591
+ timestamp: string;
592
+ type: string;
593
+ reaction: {
594
+ message_id: string;
595
+ emoji: string;
596
+ };
597
+ }[];
598
+ };
599
+ };
600
+ /**
601
+ * Cloud API interactive message (list/button reply)
602
+ */
603
+ export declare const cloudApiInteractiveMessage: {
604
+ eventType: string;
605
+ data: {
606
+ messages: {
607
+ from: string;
608
+ id: string;
609
+ timestamp: string;
610
+ type: string;
611
+ interactive: {
612
+ type: string;
613
+ list_reply: {
614
+ id: string;
615
+ title: string;
616
+ };
617
+ };
618
+ }[];
619
+ };
620
+ };
621
+ /**
622
+ * Cloud API template message
623
+ */
624
+ export declare const cloudApiTemplateMessage: {
625
+ eventType: string;
626
+ data: {
627
+ messages: {
628
+ from: string;
629
+ id: string;
630
+ timestamp: string;
631
+ type: string;
632
+ template: {
633
+ name: string;
634
+ language: {
635
+ code: string;
636
+ };
637
+ };
638
+ }[];
639
+ };
640
+ };
641
+ export declare const baileysEvents: {
642
+ text: {
643
+ eventType: string;
644
+ data: {
645
+ messages: {
646
+ key: {
647
+ remoteJid: string;
648
+ fromMe: boolean;
649
+ id: string;
650
+ };
651
+ message: {
652
+ conversation: string;
653
+ };
654
+ messageTimestamp: number;
655
+ }[];
656
+ };
657
+ };
658
+ extendedText: {
659
+ eventType: string;
660
+ data: {
661
+ messages: {
662
+ key: {
663
+ remoteJid: string;
664
+ fromMe: boolean;
665
+ id: string;
666
+ };
667
+ message: {
668
+ extendedTextMessage: {
669
+ text: string;
670
+ contextInfo: {
671
+ mentionedJid: string[];
672
+ };
673
+ };
674
+ };
675
+ messageTimestamp: number;
676
+ }[];
677
+ };
678
+ };
679
+ image: {
680
+ eventType: string;
681
+ data: {
682
+ messages: {
683
+ key: {
684
+ remoteJid: string;
685
+ fromMe: boolean;
686
+ id: string;
687
+ };
688
+ message: {
689
+ imageMessage: {
690
+ url: string;
691
+ mimetype: string;
692
+ caption: string;
693
+ fileSha256: string;
694
+ fileLength: number;
695
+ };
696
+ };
697
+ messageTimestamp: number;
698
+ }[];
699
+ };
700
+ };
701
+ video: {
702
+ eventType: string;
703
+ data: {
704
+ messages: {
705
+ key: {
706
+ remoteJid: string;
707
+ fromMe: boolean;
708
+ id: string;
709
+ };
710
+ message: {
711
+ videoMessage: {
712
+ url: string;
713
+ mimetype: string;
714
+ caption: string;
715
+ seconds: number;
716
+ };
717
+ };
718
+ messageTimestamp: number;
719
+ }[];
720
+ };
721
+ };
722
+ audio: {
723
+ eventType: string;
724
+ data: {
725
+ messages: {
726
+ key: {
727
+ remoteJid: string;
728
+ fromMe: boolean;
729
+ id: string;
730
+ };
731
+ message: {
732
+ audioMessage: {
733
+ url: string;
734
+ mimetype: string;
735
+ seconds: number;
736
+ ptt: boolean;
737
+ };
738
+ };
739
+ messageTimestamp: number;
740
+ }[];
741
+ };
742
+ };
743
+ document: {
744
+ eventType: string;
745
+ data: {
746
+ messages: {
747
+ key: {
748
+ remoteJid: string;
749
+ fromMe: boolean;
750
+ id: string;
751
+ };
752
+ message: {
753
+ documentMessage: {
754
+ url: string;
755
+ mimetype: string;
756
+ fileName: string;
757
+ fileLength: number;
758
+ };
759
+ };
760
+ messageTimestamp: number;
761
+ }[];
762
+ };
763
+ };
764
+ sticker: {
765
+ eventType: string;
766
+ data: {
767
+ messages: {
768
+ key: {
769
+ remoteJid: string;
770
+ fromMe: boolean;
771
+ id: string;
772
+ };
773
+ message: {
774
+ stickerMessage: {
775
+ url: string;
776
+ mimetype: string;
777
+ isAnimated: boolean;
778
+ };
779
+ };
780
+ messageTimestamp: number;
781
+ }[];
782
+ };
783
+ };
784
+ contact: {
785
+ eventType: string;
786
+ data: {
787
+ messages: {
788
+ key: {
789
+ remoteJid: string;
790
+ fromMe: boolean;
791
+ id: string;
792
+ };
793
+ message: {
794
+ contactMessage: {
795
+ displayName: string;
796
+ vcard: string;
797
+ };
798
+ };
799
+ messageTimestamp: number;
800
+ }[];
801
+ };
802
+ };
803
+ location: {
804
+ eventType: string;
805
+ data: {
806
+ messages: {
807
+ key: {
808
+ remoteJid: string;
809
+ fromMe: boolean;
810
+ id: string;
811
+ };
812
+ message: {
813
+ locationMessage: {
814
+ degreesLatitude: number;
815
+ degreesLongitude: number;
816
+ name: string;
817
+ address: string;
818
+ };
819
+ };
820
+ messageTimestamp: number;
821
+ }[];
822
+ };
823
+ };
824
+ reaction: {
825
+ eventType: string;
826
+ data: {
827
+ messages: {
828
+ key: {
829
+ remoteJid: string;
830
+ fromMe: boolean;
831
+ id: string;
832
+ };
833
+ message: {
834
+ reactionMessage: {
835
+ key: {
836
+ remoteJid: string;
837
+ fromMe: boolean;
838
+ id: string;
839
+ };
840
+ text: string;
841
+ };
842
+ };
843
+ messageTimestamp: number;
844
+ }[];
845
+ };
846
+ };
847
+ poll: {
848
+ eventType: string;
849
+ data: {
850
+ messages: {
851
+ key: {
852
+ remoteJid: string;
853
+ fromMe: boolean;
854
+ id: string;
855
+ };
856
+ message: {
857
+ pollCreationMessage: {
858
+ name: string;
859
+ options: {
860
+ optionName: string;
861
+ }[];
862
+ selectableOptionsCount: number;
863
+ };
864
+ };
865
+ messageTimestamp: number;
866
+ }[];
867
+ };
868
+ };
869
+ buttons: {
870
+ eventType: string;
871
+ data: {
872
+ messages: {
873
+ key: {
874
+ remoteJid: string;
875
+ fromMe: boolean;
876
+ id: string;
877
+ };
878
+ message: {
879
+ buttonsMessage: {
880
+ contentText: string;
881
+ buttons: {
882
+ buttonId: string;
883
+ buttonText: {
884
+ displayText: string;
885
+ };
886
+ }[];
887
+ };
888
+ };
889
+ messageTimestamp: number;
890
+ }[];
891
+ };
892
+ };
893
+ list: {
894
+ eventType: string;
895
+ data: {
896
+ messages: {
897
+ key: {
898
+ remoteJid: string;
899
+ fromMe: boolean;
900
+ id: string;
901
+ };
902
+ message: {
903
+ listMessage: {
904
+ title: string;
905
+ description: string;
906
+ buttonText: string;
907
+ listType: string;
908
+ sections: {
909
+ title: string;
910
+ rows: {
911
+ title: string;
912
+ rowId: string;
913
+ }[];
914
+ }[];
915
+ };
916
+ };
917
+ messageTimestamp: number;
918
+ }[];
919
+ };
920
+ };
921
+ template: {
922
+ eventType: string;
923
+ data: {
924
+ messages: {
925
+ key: {
926
+ remoteJid: string;
927
+ fromMe: boolean;
928
+ id: string;
929
+ };
930
+ message: {
931
+ templateMessage: {
932
+ hydratedTemplate: {
933
+ hydratedContentText: string;
934
+ hydratedButtons: {
935
+ quickReplyButton: {
936
+ displayText: string;
937
+ };
938
+ }[];
939
+ };
940
+ };
941
+ };
942
+ messageTimestamp: number;
943
+ }[];
944
+ };
945
+ };
946
+ product: {
947
+ eventType: string;
948
+ data: {
949
+ messages: {
950
+ key: {
951
+ remoteJid: string;
952
+ fromMe: boolean;
953
+ id: string;
954
+ };
955
+ message: {
956
+ productMessage: {
957
+ product: {
958
+ productId: string;
959
+ title: string;
960
+ currencyCode: string;
961
+ priceAmount1000: number;
962
+ };
963
+ };
964
+ };
965
+ messageTimestamp: number;
966
+ }[];
967
+ };
968
+ };
969
+ order: {
970
+ eventType: string;
971
+ data: {
972
+ messages: {
973
+ key: {
974
+ remoteJid: string;
975
+ fromMe: boolean;
976
+ id: string;
977
+ };
978
+ message: {
979
+ orderMessage: {
980
+ orderId: string;
981
+ itemCount: number;
982
+ status: string;
983
+ totalAmount1000: number;
984
+ totalCurrencyCode: string;
985
+ };
986
+ };
987
+ messageTimestamp: number;
988
+ }[];
989
+ };
990
+ };
991
+ viewOnce: {
992
+ eventType: string;
993
+ data: {
994
+ messages: {
995
+ key: {
996
+ remoteJid: string;
997
+ fromMe: boolean;
998
+ id: string;
999
+ };
1000
+ message: {
1001
+ viewOnceMessage: {
1002
+ message: {
1003
+ imageMessage: {
1004
+ url: string;
1005
+ mimetype: string;
1006
+ };
1007
+ };
1008
+ };
1009
+ };
1010
+ messageTimestamp: number;
1011
+ }[];
1012
+ };
1013
+ };
1014
+ };
1015
+ export declare const cloudApiEvents: {
1016
+ text: {
1017
+ eventType: string;
1018
+ data: {
1019
+ messages: {
1020
+ from: string;
1021
+ id: string;
1022
+ timestamp: string;
1023
+ type: string;
1024
+ text: {
1025
+ body: string;
1026
+ };
1027
+ }[];
1028
+ };
1029
+ };
1030
+ image: {
1031
+ eventType: string;
1032
+ data: {
1033
+ messages: {
1034
+ from: string;
1035
+ id: string;
1036
+ timestamp: string;
1037
+ type: string;
1038
+ image: {
1039
+ caption: string;
1040
+ mime_type: string;
1041
+ sha256: string;
1042
+ id: string;
1043
+ };
1044
+ }[];
1045
+ };
1046
+ };
1047
+ video: {
1048
+ eventType: string;
1049
+ data: {
1050
+ messages: {
1051
+ from: string;
1052
+ id: string;
1053
+ timestamp: string;
1054
+ type: string;
1055
+ video: {
1056
+ caption: string;
1057
+ mime_type: string;
1058
+ id: string;
1059
+ };
1060
+ }[];
1061
+ };
1062
+ };
1063
+ audio: {
1064
+ eventType: string;
1065
+ data: {
1066
+ messages: {
1067
+ from: string;
1068
+ id: string;
1069
+ timestamp: string;
1070
+ type: string;
1071
+ audio: {
1072
+ mime_type: string;
1073
+ id: string;
1074
+ };
1075
+ }[];
1076
+ };
1077
+ };
1078
+ document: {
1079
+ eventType: string;
1080
+ data: {
1081
+ messages: {
1082
+ from: string;
1083
+ id: string;
1084
+ timestamp: string;
1085
+ type: string;
1086
+ document: {
1087
+ caption: string;
1088
+ filename: string;
1089
+ mime_type: string;
1090
+ id: string;
1091
+ };
1092
+ }[];
1093
+ };
1094
+ };
1095
+ sticker: {
1096
+ eventType: string;
1097
+ data: {
1098
+ messages: {
1099
+ from: string;
1100
+ id: string;
1101
+ timestamp: string;
1102
+ type: string;
1103
+ sticker: {
1104
+ mime_type: string;
1105
+ id: string;
1106
+ };
1107
+ }[];
1108
+ };
1109
+ };
1110
+ contact: {
1111
+ eventType: string;
1112
+ data: {
1113
+ messages: {
1114
+ from: string;
1115
+ id: string;
1116
+ timestamp: string;
1117
+ type: string;
1118
+ contacts: {
1119
+ name: {
1120
+ formatted_name: string;
1121
+ };
1122
+ phones: {
1123
+ phone: string;
1124
+ }[];
1125
+ }[];
1126
+ }[];
1127
+ };
1128
+ };
1129
+ location: {
1130
+ eventType: string;
1131
+ data: {
1132
+ messages: {
1133
+ from: string;
1134
+ id: string;
1135
+ timestamp: string;
1136
+ type: string;
1137
+ location: {
1138
+ latitude: number;
1139
+ longitude: number;
1140
+ name: string;
1141
+ address: string;
1142
+ };
1143
+ }[];
1144
+ };
1145
+ };
1146
+ reaction: {
1147
+ eventType: string;
1148
+ data: {
1149
+ messages: {
1150
+ from: string;
1151
+ id: string;
1152
+ timestamp: string;
1153
+ type: string;
1154
+ reaction: {
1155
+ message_id: string;
1156
+ emoji: string;
1157
+ };
1158
+ }[];
1159
+ };
1160
+ };
1161
+ interactive: {
1162
+ eventType: string;
1163
+ data: {
1164
+ messages: {
1165
+ from: string;
1166
+ id: string;
1167
+ timestamp: string;
1168
+ type: string;
1169
+ interactive: {
1170
+ type: string;
1171
+ list_reply: {
1172
+ id: string;
1173
+ title: string;
1174
+ };
1175
+ };
1176
+ }[];
1177
+ };
1178
+ };
1179
+ template: {
1180
+ eventType: string;
1181
+ data: {
1182
+ messages: {
1183
+ from: string;
1184
+ id: string;
1185
+ timestamp: string;
1186
+ type: string;
1187
+ template: {
1188
+ name: string;
1189
+ language: {
1190
+ code: string;
1191
+ };
1192
+ };
1193
+ }[];
1194
+ };
1195
+ };
1196
+ };
1197
+ //# sourceMappingURL=webhook-events.d.ts.map