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