@better-zap/fixtures 0.1.0 → 0.1.2

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,1410 @@
1
+ //#region src/account-offboarded.d.ts
2
+ declare const accountOffboardedFixture: {
3
+ object: "whatsapp_business_account";
4
+ entry: {
5
+ id: string;
6
+ changes: {
7
+ field: string;
8
+ value: {
9
+ messaging_product: "whatsapp";
10
+ metadata: {
11
+ display_phone_number: string;
12
+ phone_number_id: string;
13
+ };
14
+ event: string;
15
+ reason: string;
16
+ phone_number_id: string;
17
+ waba_info: {
18
+ waba_id: string;
19
+ owner_business_id: string;
20
+ };
21
+ };
22
+ }[];
23
+ }[];
24
+ };
25
+ //#endregion
26
+ //#region src/account-reconnected.d.ts
27
+ declare const accountReconnectedFixture: {
28
+ object: "whatsapp_business_account";
29
+ entry: {
30
+ id: string;
31
+ changes: {
32
+ field: string;
33
+ value: {
34
+ messaging_product: "whatsapp";
35
+ metadata: {
36
+ display_phone_number: string;
37
+ phone_number_id: string;
38
+ };
39
+ event: string;
40
+ reconnect_reason: string;
41
+ phone_number_id: string;
42
+ cloud_api_products: {
43
+ product_id: string;
44
+ product_name: string;
45
+ reconnected: boolean;
46
+ }[];
47
+ waba_info: {
48
+ waba_id: string;
49
+ owner_business_id: string;
50
+ };
51
+ };
52
+ }[];
53
+ }[];
54
+ };
55
+ //#endregion
56
+ //#region src/account-update-partner-removed.d.ts
57
+ declare const accountUpdatePartnerRemovedFixture: {
58
+ object: "whatsapp_business_account";
59
+ entry: {
60
+ id: string;
61
+ changes: {
62
+ field: string;
63
+ value: {
64
+ messaging_product: "whatsapp";
65
+ metadata: {
66
+ display_phone_number: string;
67
+ phone_number_id: string;
68
+ };
69
+ waba_id: string;
70
+ event: string;
71
+ waba_info: {
72
+ name: string;
73
+ owner_business_id: string;
74
+ };
75
+ };
76
+ }[];
77
+ }[];
78
+ };
79
+ //#endregion
80
+ //#region src/history-duplicate-chunk.d.ts
81
+ declare const historyDuplicateChunkFixture: {
82
+ object: "whatsapp_business_account";
83
+ entry: {
84
+ id: string;
85
+ changes: {
86
+ field: string;
87
+ value: {
88
+ messaging_product: "whatsapp";
89
+ metadata: {
90
+ display_phone_number: string;
91
+ phone_number_id: string;
92
+ };
93
+ request_id: string;
94
+ history: {
95
+ phase: number;
96
+ window: string;
97
+ messages: {
98
+ id: string;
99
+ from: string;
100
+ timestamp: string;
101
+ type: string;
102
+ text: {
103
+ body: string;
104
+ };
105
+ }[];
106
+ }[];
107
+ };
108
+ }[];
109
+ }[];
110
+ };
111
+ //#endregion
112
+ //#region src/history-group-excluded.d.ts
113
+ declare const historyGroupExcludedFixture: {
114
+ object: "whatsapp_business_account";
115
+ entry: {
116
+ id: string;
117
+ changes: {
118
+ field: string;
119
+ value: {
120
+ messaging_product: "whatsapp";
121
+ metadata: {
122
+ display_phone_number: string;
123
+ phone_number_id: string;
124
+ };
125
+ request_id: string;
126
+ history: {
127
+ phase: number;
128
+ excluded: {
129
+ group_chats: boolean;
130
+ };
131
+ messages: {
132
+ id: string;
133
+ from: string;
134
+ timestamp: string;
135
+ type: string;
136
+ text: {
137
+ body: string;
138
+ };
139
+ }[];
140
+ }[];
141
+ };
142
+ }[];
143
+ }[];
144
+ };
145
+ //#endregion
146
+ //#region src/history-media-missing-asset-id-after-day-14.d.ts
147
+ declare const historyMediaMissingAssetIdAfterDay14Fixture: {
148
+ object: "whatsapp_business_account";
149
+ entry: {
150
+ id: string;
151
+ changes: {
152
+ field: string;
153
+ value: {
154
+ messaging_product: "whatsapp";
155
+ metadata: {
156
+ display_phone_number: string;
157
+ phone_number_id: string;
158
+ };
159
+ request_id: string;
160
+ history: {
161
+ phase: number;
162
+ window: string;
163
+ messages: {
164
+ id: string;
165
+ from: string;
166
+ timestamp: string;
167
+ type: string;
168
+ image: {
169
+ mime_type: string;
170
+ sha256: string;
171
+ caption: string;
172
+ };
173
+ }[];
174
+ }[];
175
+ };
176
+ }[];
177
+ }[];
178
+ };
179
+ //#endregion
180
+ //#region src/history-media-with-asset-id.d.ts
181
+ declare const historyMediaWithAssetIdFixture: {
182
+ object: "whatsapp_business_account";
183
+ entry: {
184
+ id: string;
185
+ changes: {
186
+ field: string;
187
+ value: {
188
+ messaging_product: "whatsapp";
189
+ metadata: {
190
+ display_phone_number: string;
191
+ phone_number_id: string;
192
+ };
193
+ request_id: string;
194
+ history: {
195
+ phase: number;
196
+ window: string;
197
+ messages: {
198
+ id: string;
199
+ from: string;
200
+ timestamp: string;
201
+ type: string;
202
+ image: {
203
+ id: string;
204
+ mime_type: string;
205
+ sha256: string;
206
+ caption: string;
207
+ };
208
+ }[];
209
+ }[];
210
+ };
211
+ }[];
212
+ }[];
213
+ };
214
+ //#endregion
215
+ //#region src/history-other-error.d.ts
216
+ declare const historyOtherErrorFixture: {
217
+ object: "whatsapp_business_account";
218
+ entry: {
219
+ id: string;
220
+ changes: {
221
+ field: string;
222
+ value: {
223
+ messaging_product: "whatsapp";
224
+ metadata: {
225
+ display_phone_number: string;
226
+ phone_number_id: string;
227
+ };
228
+ request_id: string;
229
+ errors: {
230
+ code: number;
231
+ title: string;
232
+ message: string;
233
+ error_data: {
234
+ details: string;
235
+ };
236
+ }[];
237
+ history: never[];
238
+ };
239
+ }[];
240
+ }[];
241
+ };
242
+ //#endregion
243
+ //#region src/history-phase-1-day0-1.d.ts
244
+ declare const historyPhase1Day01Fixture: {
245
+ object: "whatsapp_business_account";
246
+ entry: {
247
+ id: string;
248
+ changes: {
249
+ field: string;
250
+ value: {
251
+ messaging_product: "whatsapp";
252
+ metadata: {
253
+ display_phone_number: string;
254
+ phone_number_id: string;
255
+ };
256
+ request_id: string;
257
+ history: {
258
+ phase: number;
259
+ window: string;
260
+ progress: {
261
+ current_phase: number;
262
+ total_phases: number;
263
+ started_at_day: number;
264
+ completed_through_day: number;
265
+ };
266
+ messages: {
267
+ id: string;
268
+ from: string;
269
+ timestamp: string;
270
+ type: string;
271
+ text: {
272
+ body: string;
273
+ };
274
+ }[];
275
+ }[];
276
+ };
277
+ }[];
278
+ }[];
279
+ };
280
+ //#endregion
281
+ //#region src/history-phase-2-day1-90.d.ts
282
+ declare const historyPhase2Day190Fixture: {
283
+ object: "whatsapp_business_account";
284
+ entry: {
285
+ id: string;
286
+ changes: {
287
+ field: string;
288
+ value: {
289
+ messaging_product: "whatsapp";
290
+ metadata: {
291
+ display_phone_number: string;
292
+ phone_number_id: string;
293
+ };
294
+ request_id: string;
295
+ history: {
296
+ phase: number;
297
+ window: string;
298
+ progress: {
299
+ current_phase: number;
300
+ total_phases: number;
301
+ started_at_day: number;
302
+ completed_through_day: number;
303
+ };
304
+ messages: {
305
+ id: string;
306
+ from: string;
307
+ timestamp: string;
308
+ type: string;
309
+ text: {
310
+ body: string;
311
+ };
312
+ }[];
313
+ }[];
314
+ };
315
+ }[];
316
+ }[];
317
+ };
318
+ //#endregion
319
+ //#region src/history-phase-3-day90-180.d.ts
320
+ declare const historyPhase3Day90180Fixture: {
321
+ object: "whatsapp_business_account";
322
+ entry: {
323
+ id: string;
324
+ changes: {
325
+ field: string;
326
+ value: {
327
+ messaging_product: "whatsapp";
328
+ metadata: {
329
+ display_phone_number: string;
330
+ phone_number_id: string;
331
+ };
332
+ request_id: string;
333
+ history: {
334
+ phase: number;
335
+ window: string;
336
+ progress: {
337
+ current_phase: number;
338
+ total_phases: number;
339
+ started_at_day: number;
340
+ completed_through_day: number;
341
+ complete: boolean;
342
+ };
343
+ messages: {
344
+ id: string;
345
+ from: string;
346
+ timestamp: string;
347
+ type: string;
348
+ text: {
349
+ body: string;
350
+ };
351
+ }[];
352
+ }[];
353
+ };
354
+ }[];
355
+ }[];
356
+ };
357
+ //#endregion
358
+ //#region src/history-status-only-chunk.d.ts
359
+ declare const historyStatusOnlyChunkFixture: {
360
+ object: "whatsapp_business_account";
361
+ entry: {
362
+ id: string;
363
+ changes: {
364
+ field: string;
365
+ value: {
366
+ messaging_product: "whatsapp";
367
+ metadata: {
368
+ display_phone_number: string;
369
+ phone_number_id: string;
370
+ };
371
+ request_id: string;
372
+ history: {
373
+ phase: number;
374
+ statuses: {
375
+ id: string;
376
+ status: string;
377
+ timestamp: string;
378
+ recipient_id: string;
379
+ }[];
380
+ }[];
381
+ };
382
+ }[];
383
+ }[];
384
+ };
385
+ //#endregion
386
+ //#region src/history-sync-error.d.ts
387
+ declare const historySyncErrorFixture: {
388
+ object: "whatsapp_business_account";
389
+ entry: {
390
+ id: string;
391
+ changes: {
392
+ field: string;
393
+ value: {
394
+ messaging_product: "whatsapp";
395
+ metadata: {
396
+ display_phone_number: string;
397
+ phone_number_id: string;
398
+ };
399
+ request_id: string;
400
+ errors: {
401
+ code: number;
402
+ title: string;
403
+ message: string;
404
+ error_data: {
405
+ reason: string;
406
+ };
407
+ }[];
408
+ history: never[];
409
+ };
410
+ }[];
411
+ }[];
412
+ };
413
+ //#endregion
414
+ //#region src/malformed-payload.d.ts
415
+ declare const malformedPayloadMissingPhoneNumberIdFixture: unknown;
416
+ declare const malformedPayloadEmptyEntryFixture: unknown;
417
+ declare const malformedPayloadUnknownFieldFixture: unknown;
418
+ declare const malformedPayloadMissingObjectFixture: unknown;
419
+ //#endregion
420
+ //#region src/message-edit.d.ts
421
+ declare const messageEditFixture: {
422
+ object: "whatsapp_business_account";
423
+ entry: {
424
+ id: string;
425
+ changes: {
426
+ field: string;
427
+ value: {
428
+ messaging_product: "whatsapp";
429
+ metadata: {
430
+ display_phone_number: string;
431
+ phone_number_id: string;
432
+ };
433
+ contacts: {
434
+ profile: {
435
+ name: string;
436
+ };
437
+ wa_id: string;
438
+ }[];
439
+ messages: {
440
+ from: string;
441
+ id: string;
442
+ timestamp: string;
443
+ type: string;
444
+ edited: boolean;
445
+ text: {
446
+ body: string;
447
+ };
448
+ context: {
449
+ from: string;
450
+ id: string;
451
+ };
452
+ }[];
453
+ };
454
+ }[];
455
+ }[];
456
+ };
457
+ //#endregion
458
+ //#region src/message-revoke.d.ts
459
+ declare const messageRevokeFixture: {
460
+ object: "whatsapp_business_account";
461
+ entry: {
462
+ id: string;
463
+ changes: {
464
+ field: string;
465
+ value: {
466
+ messaging_product: "whatsapp";
467
+ metadata: {
468
+ display_phone_number: string;
469
+ phone_number_id: string;
470
+ };
471
+ contacts: {
472
+ profile: {
473
+ name: string;
474
+ };
475
+ wa_id: string;
476
+ }[];
477
+ messages: {
478
+ from: string;
479
+ id: string;
480
+ timestamp: string;
481
+ type: string;
482
+ revoked: boolean;
483
+ context: {
484
+ from: string;
485
+ id: string;
486
+ };
487
+ }[];
488
+ };
489
+ }[];
490
+ }[];
491
+ };
492
+ //#endregion
493
+ //#region src/signature-test-payload.d.ts
494
+ declare const signatureTestPayloadFixture: {
495
+ object: "whatsapp_business_account";
496
+ entry: {
497
+ id: string;
498
+ changes: {
499
+ field: string;
500
+ value: {
501
+ messaging_product: "whatsapp";
502
+ metadata: {
503
+ display_phone_number: string;
504
+ phone_number_id: string;
505
+ };
506
+ messages: {
507
+ id: string;
508
+ from: string;
509
+ timestamp: string;
510
+ type: string;
511
+ text: {
512
+ body: string;
513
+ };
514
+ }[];
515
+ };
516
+ }[];
517
+ }[];
518
+ };
519
+ //#endregion
520
+ //#region src/smb-app-state-sync-contact-add.d.ts
521
+ declare const smbAppStateSyncContactAddFixture: {
522
+ object: "whatsapp_business_account";
523
+ entry: {
524
+ id: string;
525
+ changes: {
526
+ field: string;
527
+ value: {
528
+ messaging_product: "whatsapp";
529
+ metadata: {
530
+ display_phone_number: string;
531
+ phone_number_id: string;
532
+ };
533
+ request_id: string;
534
+ contacts: {
535
+ wa_id: string;
536
+ profile: {
537
+ name: string;
538
+ };
539
+ }[];
540
+ };
541
+ }[];
542
+ }[];
543
+ };
544
+ //#endregion
545
+ //#region src/smb-app-state-sync-contact-remove.d.ts
546
+ declare const smbAppStateSyncContactRemoveFixture: {
547
+ object: "whatsapp_business_account";
548
+ entry: {
549
+ id: string;
550
+ changes: {
551
+ field: string;
552
+ value: {
553
+ messaging_product: "whatsapp";
554
+ metadata: {
555
+ display_phone_number: string;
556
+ phone_number_id: string;
557
+ };
558
+ request_id: string;
559
+ contacts: {
560
+ wa_id: string;
561
+ removed: true;
562
+ }[];
563
+ };
564
+ }[];
565
+ }[];
566
+ };
567
+ //#endregion
568
+ //#region src/smb-app-state-sync-error.d.ts
569
+ declare const smbAppStateSyncErrorFixture: {
570
+ object: "whatsapp_business_account";
571
+ entry: {
572
+ id: string;
573
+ changes: {
574
+ field: string;
575
+ value: {
576
+ messaging_product: "whatsapp";
577
+ metadata: {
578
+ display_phone_number: string;
579
+ phone_number_id: string;
580
+ };
581
+ request_id: string;
582
+ sync_type: string;
583
+ errors: {
584
+ code: number;
585
+ title: string;
586
+ message: string;
587
+ error_data: {
588
+ details: string;
589
+ };
590
+ }[];
591
+ };
592
+ }[];
593
+ }[];
594
+ };
595
+ //#endregion
596
+ //#region src/smb-message-echo.d.ts
597
+ declare const smbMessageEchoFixture: {
598
+ object: "whatsapp_business_account";
599
+ entry: {
600
+ id: string;
601
+ changes: {
602
+ field: string;
603
+ value: {
604
+ messaging_product: "whatsapp";
605
+ metadata: {
606
+ display_phone_number: string;
607
+ phone_number_id: string;
608
+ };
609
+ messages: {
610
+ id: string;
611
+ from: string;
612
+ timestamp: string;
613
+ type: string;
614
+ text: {
615
+ body: string;
616
+ };
617
+ }[];
618
+ };
619
+ }[];
620
+ }[];
621
+ };
622
+ //#endregion
623
+ //#region src/unknown-phone-number.d.ts
624
+ declare const unknownPhoneNumberFixture: {
625
+ object: "whatsapp_business_account";
626
+ entry: {
627
+ id: string;
628
+ changes: {
629
+ field: string;
630
+ value: {
631
+ messaging_product: "whatsapp";
632
+ metadata: {
633
+ display_phone_number: string;
634
+ phone_number_id: string;
635
+ };
636
+ messages: {
637
+ id: string;
638
+ from: string;
639
+ timestamp: string;
640
+ type: string;
641
+ text: {
642
+ body: string;
643
+ };
644
+ }[];
645
+ };
646
+ }[];
647
+ }[];
648
+ };
649
+ //#endregion
650
+ //#region src/unsupported-message-type.d.ts
651
+ declare const unsupportedMessageTypeFixture: {
652
+ object: "whatsapp_business_account";
653
+ entry: {
654
+ id: string;
655
+ changes: {
656
+ field: string;
657
+ value: {
658
+ messaging_product: "whatsapp";
659
+ metadata: {
660
+ display_phone_number: string;
661
+ phone_number_id: string;
662
+ };
663
+ contacts: {
664
+ profile: {
665
+ name: string;
666
+ };
667
+ wa_id: string;
668
+ }[];
669
+ messages: {
670
+ from: string;
671
+ id: string;
672
+ timestamp: string;
673
+ type: string;
674
+ errors: {
675
+ code: number;
676
+ title: string;
677
+ message: string;
678
+ error_data: {
679
+ details: string;
680
+ };
681
+ }[];
682
+ }[];
683
+ };
684
+ }[];
685
+ }[];
686
+ };
687
+ //#endregion
688
+ //#region src/types.d.ts
689
+ type CoexistenceWebhookPayload = {
690
+ object: "whatsapp_business_account";
691
+ entry: CoexistenceWebhookEntry[];
692
+ };
693
+ type CoexistenceWebhookEntry = {
694
+ id: string;
695
+ changes: CoexistenceWebhookChange[];
696
+ };
697
+ type CoexistenceWebhookChange = {
698
+ field: string;
699
+ value: CoexistenceWebhookValue;
700
+ };
701
+ type CoexistenceWebhookValue = {
702
+ messaging_product: "whatsapp";
703
+ metadata: CoexistenceWebhookMetadata;
704
+ request_id?: string;
705
+ history?: CoexistenceHistoryChunk[];
706
+ contacts?: CoexistenceContact[];
707
+ messages?: CoexistenceMessage[];
708
+ statuses?: CoexistenceStatus[];
709
+ errors?: CoexistenceError[];
710
+ event?: string;
711
+ waba_id?: string;
712
+ waba_info?: Record<string, unknown>;
713
+ [key: string]: unknown;
714
+ };
715
+ type CoexistenceWebhookMetadata = {
716
+ display_phone_number: string;
717
+ phone_number_id: string;
718
+ };
719
+ type CoexistenceHistoryChunk = {
720
+ phase?: number;
721
+ progress?: Record<string, unknown>;
722
+ messages?: CoexistenceMessage[];
723
+ statuses?: CoexistenceStatus[];
724
+ errors?: CoexistenceError[];
725
+ [key: string]: unknown;
726
+ };
727
+ type CoexistenceMessage = {
728
+ id: string;
729
+ from: string;
730
+ timestamp: string;
731
+ type: string;
732
+ text?: {
733
+ body: string;
734
+ };
735
+ image?: {
736
+ id?: string;
737
+ mime_type?: string;
738
+ sha256?: string;
739
+ caption?: string;
740
+ };
741
+ [key: string]: unknown;
742
+ };
743
+ type CoexistenceStatus = {
744
+ id: string;
745
+ status: string;
746
+ timestamp: string;
747
+ recipient_id?: string;
748
+ [key: string]: unknown;
749
+ };
750
+ type CoexistenceContact = {
751
+ wa_id: string;
752
+ profile?: {
753
+ name?: string;
754
+ };
755
+ removed?: boolean;
756
+ [key: string]: unknown;
757
+ };
758
+ type CoexistenceError = {
759
+ code: number;
760
+ title: string;
761
+ message?: string;
762
+ error_data?: Record<string, unknown>;
763
+ };
764
+ //#endregion
765
+ //#region src/index.d.ts
766
+ declare const coexistenceWebhookFixtures: {
767
+ historyPhase1Day01Fixture: {
768
+ object: "whatsapp_business_account";
769
+ entry: {
770
+ id: string;
771
+ changes: {
772
+ field: string;
773
+ value: {
774
+ messaging_product: "whatsapp";
775
+ metadata: {
776
+ display_phone_number: string;
777
+ phone_number_id: string;
778
+ };
779
+ request_id: string;
780
+ history: {
781
+ phase: number;
782
+ window: string;
783
+ progress: {
784
+ current_phase: number;
785
+ total_phases: number;
786
+ started_at_day: number;
787
+ completed_through_day: number;
788
+ };
789
+ messages: {
790
+ id: string;
791
+ from: string;
792
+ timestamp: string;
793
+ type: string;
794
+ text: {
795
+ body: string;
796
+ };
797
+ }[];
798
+ }[];
799
+ };
800
+ }[];
801
+ }[];
802
+ };
803
+ historyPhase2Day190Fixture: {
804
+ object: "whatsapp_business_account";
805
+ entry: {
806
+ id: string;
807
+ changes: {
808
+ field: string;
809
+ value: {
810
+ messaging_product: "whatsapp";
811
+ metadata: {
812
+ display_phone_number: string;
813
+ phone_number_id: string;
814
+ };
815
+ request_id: string;
816
+ history: {
817
+ phase: number;
818
+ window: string;
819
+ progress: {
820
+ current_phase: number;
821
+ total_phases: number;
822
+ started_at_day: number;
823
+ completed_through_day: number;
824
+ };
825
+ messages: {
826
+ id: string;
827
+ from: string;
828
+ timestamp: string;
829
+ type: string;
830
+ text: {
831
+ body: string;
832
+ };
833
+ }[];
834
+ }[];
835
+ };
836
+ }[];
837
+ }[];
838
+ };
839
+ historyPhase3Day90180Fixture: {
840
+ object: "whatsapp_business_account";
841
+ entry: {
842
+ id: string;
843
+ changes: {
844
+ field: string;
845
+ value: {
846
+ messaging_product: "whatsapp";
847
+ metadata: {
848
+ display_phone_number: string;
849
+ phone_number_id: string;
850
+ };
851
+ request_id: string;
852
+ history: {
853
+ phase: number;
854
+ window: string;
855
+ progress: {
856
+ current_phase: number;
857
+ total_phases: number;
858
+ started_at_day: number;
859
+ completed_through_day: number;
860
+ complete: boolean;
861
+ };
862
+ messages: {
863
+ id: string;
864
+ from: string;
865
+ timestamp: string;
866
+ type: string;
867
+ text: {
868
+ body: string;
869
+ };
870
+ }[];
871
+ }[];
872
+ };
873
+ }[];
874
+ }[];
875
+ };
876
+ historyStatusOnlyChunkFixture: {
877
+ object: "whatsapp_business_account";
878
+ entry: {
879
+ id: string;
880
+ changes: {
881
+ field: string;
882
+ value: {
883
+ messaging_product: "whatsapp";
884
+ metadata: {
885
+ display_phone_number: string;
886
+ phone_number_id: string;
887
+ };
888
+ request_id: string;
889
+ history: {
890
+ phase: number;
891
+ statuses: {
892
+ id: string;
893
+ status: string;
894
+ timestamp: string;
895
+ recipient_id: string;
896
+ }[];
897
+ }[];
898
+ };
899
+ }[];
900
+ }[];
901
+ };
902
+ historySyncErrorFixture: {
903
+ object: "whatsapp_business_account";
904
+ entry: {
905
+ id: string;
906
+ changes: {
907
+ field: string;
908
+ value: {
909
+ messaging_product: "whatsapp";
910
+ metadata: {
911
+ display_phone_number: string;
912
+ phone_number_id: string;
913
+ };
914
+ request_id: string;
915
+ errors: {
916
+ code: number;
917
+ title: string;
918
+ message: string;
919
+ error_data: {
920
+ reason: string;
921
+ };
922
+ }[];
923
+ history: never[];
924
+ };
925
+ }[];
926
+ }[];
927
+ };
928
+ historyOtherErrorFixture: {
929
+ object: "whatsapp_business_account";
930
+ entry: {
931
+ id: string;
932
+ changes: {
933
+ field: string;
934
+ value: {
935
+ messaging_product: "whatsapp";
936
+ metadata: {
937
+ display_phone_number: string;
938
+ phone_number_id: string;
939
+ };
940
+ request_id: string;
941
+ errors: {
942
+ code: number;
943
+ title: string;
944
+ message: string;
945
+ error_data: {
946
+ details: string;
947
+ };
948
+ }[];
949
+ history: never[];
950
+ };
951
+ }[];
952
+ }[];
953
+ };
954
+ historyMediaWithAssetIdFixture: {
955
+ object: "whatsapp_business_account";
956
+ entry: {
957
+ id: string;
958
+ changes: {
959
+ field: string;
960
+ value: {
961
+ messaging_product: "whatsapp";
962
+ metadata: {
963
+ display_phone_number: string;
964
+ phone_number_id: string;
965
+ };
966
+ request_id: string;
967
+ history: {
968
+ phase: number;
969
+ window: string;
970
+ messages: {
971
+ id: string;
972
+ from: string;
973
+ timestamp: string;
974
+ type: string;
975
+ image: {
976
+ id: string;
977
+ mime_type: string;
978
+ sha256: string;
979
+ caption: string;
980
+ };
981
+ }[];
982
+ }[];
983
+ };
984
+ }[];
985
+ }[];
986
+ };
987
+ historyMediaMissingAssetIdAfterDay14Fixture: {
988
+ object: "whatsapp_business_account";
989
+ entry: {
990
+ id: string;
991
+ changes: {
992
+ field: string;
993
+ value: {
994
+ messaging_product: "whatsapp";
995
+ metadata: {
996
+ display_phone_number: string;
997
+ phone_number_id: string;
998
+ };
999
+ request_id: string;
1000
+ history: {
1001
+ phase: number;
1002
+ window: string;
1003
+ messages: {
1004
+ id: string;
1005
+ from: string;
1006
+ timestamp: string;
1007
+ type: string;
1008
+ image: {
1009
+ mime_type: string;
1010
+ sha256: string;
1011
+ caption: string;
1012
+ };
1013
+ }[];
1014
+ }[];
1015
+ };
1016
+ }[];
1017
+ }[];
1018
+ };
1019
+ historyDuplicateChunkFixture: {
1020
+ object: "whatsapp_business_account";
1021
+ entry: {
1022
+ id: string;
1023
+ changes: {
1024
+ field: string;
1025
+ value: {
1026
+ messaging_product: "whatsapp";
1027
+ metadata: {
1028
+ display_phone_number: string;
1029
+ phone_number_id: string;
1030
+ };
1031
+ request_id: string;
1032
+ history: {
1033
+ phase: number;
1034
+ window: string;
1035
+ messages: {
1036
+ id: string;
1037
+ from: string;
1038
+ timestamp: string;
1039
+ type: string;
1040
+ text: {
1041
+ body: string;
1042
+ };
1043
+ }[];
1044
+ }[];
1045
+ };
1046
+ }[];
1047
+ }[];
1048
+ };
1049
+ historyGroupExcludedFixture: {
1050
+ object: "whatsapp_business_account";
1051
+ entry: {
1052
+ id: string;
1053
+ changes: {
1054
+ field: string;
1055
+ value: {
1056
+ messaging_product: "whatsapp";
1057
+ metadata: {
1058
+ display_phone_number: string;
1059
+ phone_number_id: string;
1060
+ };
1061
+ request_id: string;
1062
+ history: {
1063
+ phase: number;
1064
+ excluded: {
1065
+ group_chats: boolean;
1066
+ };
1067
+ messages: {
1068
+ id: string;
1069
+ from: string;
1070
+ timestamp: string;
1071
+ type: string;
1072
+ text: {
1073
+ body: string;
1074
+ };
1075
+ }[];
1076
+ }[];
1077
+ };
1078
+ }[];
1079
+ }[];
1080
+ };
1081
+ smbAppStateSyncContactAddFixture: {
1082
+ object: "whatsapp_business_account";
1083
+ entry: {
1084
+ id: string;
1085
+ changes: {
1086
+ field: string;
1087
+ value: {
1088
+ messaging_product: "whatsapp";
1089
+ metadata: {
1090
+ display_phone_number: string;
1091
+ phone_number_id: string;
1092
+ };
1093
+ request_id: string;
1094
+ contacts: {
1095
+ wa_id: string;
1096
+ profile: {
1097
+ name: string;
1098
+ };
1099
+ }[];
1100
+ };
1101
+ }[];
1102
+ }[];
1103
+ };
1104
+ smbAppStateSyncContactRemoveFixture: {
1105
+ object: "whatsapp_business_account";
1106
+ entry: {
1107
+ id: string;
1108
+ changes: {
1109
+ field: string;
1110
+ value: {
1111
+ messaging_product: "whatsapp";
1112
+ metadata: {
1113
+ display_phone_number: string;
1114
+ phone_number_id: string;
1115
+ };
1116
+ request_id: string;
1117
+ contacts: {
1118
+ wa_id: string;
1119
+ removed: true;
1120
+ }[];
1121
+ };
1122
+ }[];
1123
+ }[];
1124
+ };
1125
+ smbAppStateSyncErrorFixture: {
1126
+ object: "whatsapp_business_account";
1127
+ entry: {
1128
+ id: string;
1129
+ changes: {
1130
+ field: string;
1131
+ value: {
1132
+ messaging_product: "whatsapp";
1133
+ metadata: {
1134
+ display_phone_number: string;
1135
+ phone_number_id: string;
1136
+ };
1137
+ request_id: string;
1138
+ sync_type: string;
1139
+ errors: {
1140
+ code: number;
1141
+ title: string;
1142
+ message: string;
1143
+ error_data: {
1144
+ details: string;
1145
+ };
1146
+ }[];
1147
+ };
1148
+ }[];
1149
+ }[];
1150
+ };
1151
+ smbMessageEchoFixture: {
1152
+ object: "whatsapp_business_account";
1153
+ entry: {
1154
+ id: string;
1155
+ changes: {
1156
+ field: string;
1157
+ value: {
1158
+ messaging_product: "whatsapp";
1159
+ metadata: {
1160
+ display_phone_number: string;
1161
+ phone_number_id: string;
1162
+ };
1163
+ messages: {
1164
+ id: string;
1165
+ from: string;
1166
+ timestamp: string;
1167
+ type: string;
1168
+ text: {
1169
+ body: string;
1170
+ };
1171
+ }[];
1172
+ };
1173
+ }[];
1174
+ }[];
1175
+ };
1176
+ accountUpdatePartnerRemovedFixture: {
1177
+ object: "whatsapp_business_account";
1178
+ entry: {
1179
+ id: string;
1180
+ changes: {
1181
+ field: string;
1182
+ value: {
1183
+ messaging_product: "whatsapp";
1184
+ metadata: {
1185
+ display_phone_number: string;
1186
+ phone_number_id: string;
1187
+ };
1188
+ waba_id: string;
1189
+ event: string;
1190
+ waba_info: {
1191
+ name: string;
1192
+ owner_business_id: string;
1193
+ };
1194
+ };
1195
+ }[];
1196
+ }[];
1197
+ };
1198
+ accountOffboardedFixture: {
1199
+ object: "whatsapp_business_account";
1200
+ entry: {
1201
+ id: string;
1202
+ changes: {
1203
+ field: string;
1204
+ value: {
1205
+ messaging_product: "whatsapp";
1206
+ metadata: {
1207
+ display_phone_number: string;
1208
+ phone_number_id: string;
1209
+ };
1210
+ event: string;
1211
+ reason: string;
1212
+ phone_number_id: string;
1213
+ waba_info: {
1214
+ waba_id: string;
1215
+ owner_business_id: string;
1216
+ };
1217
+ };
1218
+ }[];
1219
+ }[];
1220
+ };
1221
+ accountReconnectedFixture: {
1222
+ object: "whatsapp_business_account";
1223
+ entry: {
1224
+ id: string;
1225
+ changes: {
1226
+ field: string;
1227
+ value: {
1228
+ messaging_product: "whatsapp";
1229
+ metadata: {
1230
+ display_phone_number: string;
1231
+ phone_number_id: string;
1232
+ };
1233
+ event: string;
1234
+ reconnect_reason: string;
1235
+ phone_number_id: string;
1236
+ cloud_api_products: {
1237
+ product_id: string;
1238
+ product_name: string;
1239
+ reconnected: boolean;
1240
+ }[];
1241
+ waba_info: {
1242
+ waba_id: string;
1243
+ owner_business_id: string;
1244
+ };
1245
+ };
1246
+ }[];
1247
+ }[];
1248
+ };
1249
+ unsupportedMessageTypeFixture: {
1250
+ object: "whatsapp_business_account";
1251
+ entry: {
1252
+ id: string;
1253
+ changes: {
1254
+ field: string;
1255
+ value: {
1256
+ messaging_product: "whatsapp";
1257
+ metadata: {
1258
+ display_phone_number: string;
1259
+ phone_number_id: string;
1260
+ };
1261
+ contacts: {
1262
+ profile: {
1263
+ name: string;
1264
+ };
1265
+ wa_id: string;
1266
+ }[];
1267
+ messages: {
1268
+ from: string;
1269
+ id: string;
1270
+ timestamp: string;
1271
+ type: string;
1272
+ errors: {
1273
+ code: number;
1274
+ title: string;
1275
+ message: string;
1276
+ error_data: {
1277
+ details: string;
1278
+ };
1279
+ }[];
1280
+ }[];
1281
+ };
1282
+ }[];
1283
+ }[];
1284
+ };
1285
+ messageEditFixture: {
1286
+ object: "whatsapp_business_account";
1287
+ entry: {
1288
+ id: string;
1289
+ changes: {
1290
+ field: string;
1291
+ value: {
1292
+ messaging_product: "whatsapp";
1293
+ metadata: {
1294
+ display_phone_number: string;
1295
+ phone_number_id: string;
1296
+ };
1297
+ contacts: {
1298
+ profile: {
1299
+ name: string;
1300
+ };
1301
+ wa_id: string;
1302
+ }[];
1303
+ messages: {
1304
+ from: string;
1305
+ id: string;
1306
+ timestamp: string;
1307
+ type: string;
1308
+ edited: boolean;
1309
+ text: {
1310
+ body: string;
1311
+ };
1312
+ context: {
1313
+ from: string;
1314
+ id: string;
1315
+ };
1316
+ }[];
1317
+ };
1318
+ }[];
1319
+ }[];
1320
+ };
1321
+ messageRevokeFixture: {
1322
+ object: "whatsapp_business_account";
1323
+ entry: {
1324
+ id: string;
1325
+ changes: {
1326
+ field: string;
1327
+ value: {
1328
+ messaging_product: "whatsapp";
1329
+ metadata: {
1330
+ display_phone_number: string;
1331
+ phone_number_id: string;
1332
+ };
1333
+ contacts: {
1334
+ profile: {
1335
+ name: string;
1336
+ };
1337
+ wa_id: string;
1338
+ }[];
1339
+ messages: {
1340
+ from: string;
1341
+ id: string;
1342
+ timestamp: string;
1343
+ type: string;
1344
+ revoked: boolean;
1345
+ context: {
1346
+ from: string;
1347
+ id: string;
1348
+ };
1349
+ }[];
1350
+ };
1351
+ }[];
1352
+ }[];
1353
+ };
1354
+ malformedPayloadUnknownFieldFixture: unknown;
1355
+ malformedPayloadMissingPhoneNumberIdFixture: unknown;
1356
+ malformedPayloadEmptyEntryFixture: unknown;
1357
+ malformedPayloadMissingObjectFixture: unknown;
1358
+ unknownPhoneNumberFixture: {
1359
+ object: "whatsapp_business_account";
1360
+ entry: {
1361
+ id: string;
1362
+ changes: {
1363
+ field: string;
1364
+ value: {
1365
+ messaging_product: "whatsapp";
1366
+ metadata: {
1367
+ display_phone_number: string;
1368
+ phone_number_id: string;
1369
+ };
1370
+ messages: {
1371
+ id: string;
1372
+ from: string;
1373
+ timestamp: string;
1374
+ type: string;
1375
+ text: {
1376
+ body: string;
1377
+ };
1378
+ }[];
1379
+ };
1380
+ }[];
1381
+ }[];
1382
+ };
1383
+ signatureTestPayloadFixture: {
1384
+ object: "whatsapp_business_account";
1385
+ entry: {
1386
+ id: string;
1387
+ changes: {
1388
+ field: string;
1389
+ value: {
1390
+ messaging_product: "whatsapp";
1391
+ metadata: {
1392
+ display_phone_number: string;
1393
+ phone_number_id: string;
1394
+ };
1395
+ messages: {
1396
+ id: string;
1397
+ from: string;
1398
+ timestamp: string;
1399
+ type: string;
1400
+ text: {
1401
+ body: string;
1402
+ };
1403
+ }[];
1404
+ };
1405
+ }[];
1406
+ }[];
1407
+ };
1408
+ };
1409
+ //#endregion
1410
+ export { CoexistenceContact, CoexistenceError, CoexistenceHistoryChunk, CoexistenceMessage, CoexistenceStatus, CoexistenceWebhookChange, CoexistenceWebhookEntry, CoexistenceWebhookMetadata, CoexistenceWebhookPayload, CoexistenceWebhookValue, accountOffboardedFixture, accountReconnectedFixture, accountUpdatePartnerRemovedFixture, coexistenceWebhookFixtures, historyDuplicateChunkFixture, historyGroupExcludedFixture, historyMediaMissingAssetIdAfterDay14Fixture, historyMediaWithAssetIdFixture, historyOtherErrorFixture, historyPhase1Day01Fixture, historyPhase2Day190Fixture, historyPhase3Day90180Fixture, historyStatusOnlyChunkFixture, historySyncErrorFixture, malformedPayloadEmptyEntryFixture, malformedPayloadMissingObjectFixture, malformedPayloadMissingPhoneNumberIdFixture, malformedPayloadUnknownFieldFixture, messageEditFixture, messageRevokeFixture, signatureTestPayloadFixture, smbAppStateSyncContactAddFixture, smbAppStateSyncContactRemoveFixture, smbAppStateSyncErrorFixture, smbMessageEchoFixture, unknownPhoneNumberFixture, unsupportedMessageTypeFixture };