samva 0.45.1 → 0.46.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.
Files changed (65) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +24 -0
  3. package/dist/client/sdk.gen.d.ts +438 -5
  4. package/dist/client/sdk.gen.js +1544 -229
  5. package/dist/client/types.gen.d.ts +8120 -5616
  6. package/dist/effect/accounts.d.ts +50 -0
  7. package/dist/effect/accounts.js +22 -0
  8. package/dist/effect/agents.d.ts +9 -0
  9. package/dist/effect/agents.js +1 -1
  10. package/dist/effect/approval-requests.d.ts +42 -0
  11. package/dist/effect/approval-requests.js +18 -0
  12. package/dist/effect/campaigns.d.ts +160 -160
  13. package/dist/effect/generated/accounts.d.ts +1002 -0
  14. package/dist/effect/generated/accounts.js +198 -0
  15. package/dist/effect/generated/agents.d.ts +84 -0
  16. package/dist/effect/generated/agents.js +1 -0
  17. package/dist/effect/generated/approval-requests.d.ts +777 -0
  18. package/dist/effect/generated/approval-requests.js +135 -0
  19. package/dist/effect/generated/campaigns.d.ts +17 -17
  20. package/dist/effect/generated/campaigns.js +6 -6
  21. package/dist/effect/generated/conversations.d.ts +20 -20
  22. package/dist/effect/generated/conversations.js +10 -10
  23. package/dist/effect/generated/events.js +1 -1
  24. package/dist/effect/generated/index.d.ts +11 -1
  25. package/dist/effect/generated/integrations-catalog.d.ts +671 -0
  26. package/dist/effect/generated/integrations-catalog.js +217 -0
  27. package/dist/effect/generated/integrations.d.ts +1401 -0
  28. package/dist/effect/generated/integrations.js +246 -0
  29. package/dist/effect/generated/mailboxes.d.ts +8157 -4241
  30. package/dist/effect/generated/mailboxes.js +677 -52
  31. package/dist/effect/generated/messages.d.ts +8 -8
  32. package/dist/effect/generated/messages.js +4 -4
  33. package/dist/effect/generated/scheduled-messages.d.ts +50 -50
  34. package/dist/effect/generated/scheduled-messages.js +17 -17
  35. package/dist/effect/generated/shared.d.ts +661 -511
  36. package/dist/effect/generated/shared.js +212 -179
  37. package/dist/effect/generated/template-share-links.d.ts +733 -0
  38. package/dist/effect/generated/template-share-links.js +165 -0
  39. package/dist/effect/generated/templates.d.ts +39 -22
  40. package/dist/effect/generated/templates.js +19 -16
  41. package/dist/effect/generated-metadata.d.ts +248 -0
  42. package/dist/effect/generated-metadata.js +705 -555
  43. package/dist/effect/index.d.ts +5 -0
  44. package/dist/effect/index.js +6 -1
  45. package/dist/effect/integrations-catalog.d.ts +38 -0
  46. package/dist/effect/integrations-catalog.js +16 -0
  47. package/dist/effect/integrations.d.ts +165 -0
  48. package/dist/effect/integrations.js +24 -0
  49. package/dist/effect/mailboxes.d.ts +373 -191
  50. package/dist/effect/mailboxes.js +31 -1
  51. package/dist/effect/scheduled-messages.d.ts +350 -350
  52. package/dist/effect/template-share-links.d.ts +18 -0
  53. package/dist/effect/template-share-links.js +20 -0
  54. package/dist/effect/templates.d.ts +4 -3
  55. package/dist/index.js +2 -2
  56. package/dist/package.js +1 -1
  57. package/dist/promises/client.d.ts +11 -1
  58. package/dist/promises/client.js +13 -3
  59. package/dist/promises/errors.gen.d.ts +22 -2
  60. package/dist/promises/errors.gen.js +54 -1
  61. package/dist/promises/index.js +2 -2
  62. package/dist/promises/types.gen.d.ts +1 -1
  63. package/dist/service-map.d.ts +203 -0
  64. package/dist/service-map.js +103 -0
  65. package/package.json +22 -2
@@ -281,79 +281,138 @@ export declare const create: (input: {
281
281
  } | null | undefined;
282
282
  } | undefined;
283
283
  readonly flowToken?: string | undefined;
284
+ } | {
285
+ readonly location: {
286
+ readonly latitude: number;
287
+ readonly longitude: number;
288
+ readonly name?: string | undefined;
289
+ readonly address?: string | undefined;
290
+ };
291
+ } | {
292
+ readonly contacts: readonly {
293
+ readonly name: {
294
+ readonly formattedName: string;
295
+ readonly firstName?: string | undefined;
296
+ readonly lastName?: string | undefined;
297
+ readonly middleName?: string | undefined;
298
+ readonly prefix?: string | undefined;
299
+ readonly suffix?: string | undefined;
300
+ };
301
+ readonly phones?: readonly {
302
+ readonly phone: string;
303
+ readonly type?: string | undefined;
304
+ readonly waId?: string | undefined;
305
+ }[] | undefined;
306
+ readonly emails?: readonly {
307
+ readonly email: string;
308
+ readonly type?: string | undefined;
309
+ }[] | undefined;
310
+ readonly urls?: readonly {
311
+ readonly url: string;
312
+ readonly type?: string | undefined;
313
+ }[] | undefined;
314
+ readonly org?: {
315
+ readonly company?: string | undefined;
316
+ readonly department?: string | undefined;
317
+ readonly title?: string | undefined;
318
+ } | undefined;
319
+ readonly addresses?: readonly {
320
+ readonly street?: string | undefined;
321
+ readonly city?: string | undefined;
322
+ readonly state?: string | undefined;
323
+ readonly zip?: string | undefined;
324
+ readonly country?: string | undefined;
325
+ readonly countryCode?: string | undefined;
326
+ readonly type?: string | undefined;
327
+ }[] | undefined;
328
+ readonly birthday?: string | undefined;
329
+ }[];
330
+ } | {
331
+ readonly reaction: {
332
+ readonly messageId: string;
333
+ readonly emoji: string;
334
+ };
284
335
  } | {
285
336
  readonly media: {
286
337
  readonly type: "image";
287
338
  readonly caption?: string | undefined;
288
339
  readonly url: string;
289
- } | {
290
- readonly type: "image";
291
- readonly caption?: string | undefined;
292
- readonly mediaId: string;
293
340
  } | {
294
341
  readonly type: "video";
295
342
  readonly caption?: string | undefined;
296
343
  readonly url: string;
297
- } | {
298
- readonly type: "video";
299
- readonly caption?: string | undefined;
300
- readonly mediaId: string;
301
344
  } | {
302
345
  readonly type: "audio";
303
346
  readonly url: string;
304
- } | {
305
- readonly type: "audio";
306
- readonly mediaId: string;
307
347
  } | {
308
348
  readonly type: "document";
309
349
  readonly caption?: string | undefined;
310
350
  readonly filename?: string | undefined;
311
351
  readonly url: string;
352
+ } | {
353
+ readonly type: "sticker";
354
+ readonly url: string;
355
+ } | {
356
+ readonly type: "image";
357
+ readonly caption?: string | undefined;
358
+ readonly mediaId: string;
359
+ } | {
360
+ readonly type: "video";
361
+ readonly caption?: string | undefined;
362
+ readonly mediaId: string;
363
+ } | {
364
+ readonly type: "audio";
365
+ readonly mediaId: string;
312
366
  } | {
313
367
  readonly type: "document";
314
368
  readonly caption?: string | undefined;
315
369
  readonly filename?: string | undefined;
316
370
  readonly mediaId: string;
317
- } | {
318
- readonly type: "sticker";
319
- readonly url: string;
320
371
  } | {
321
372
  readonly type: "sticker";
322
373
  readonly mediaId: string;
323
374
  };
324
375
  } | {
325
376
  readonly interactive: {
326
- readonly type: "buttons";
377
+ readonly type: "flow";
327
378
  readonly header?: {
328
379
  readonly type: "text";
329
380
  readonly text: string;
330
- } | {
331
- readonly type: "image";
332
- readonly url: string;
333
- } | {
334
- readonly type: "image";
335
- readonly mediaId: string;
336
- } | {
337
- readonly type: "video";
338
- readonly url: string;
339
- } | {
340
- readonly type: "video";
341
- readonly mediaId: string;
342
- } | {
343
- readonly type: "document";
344
- readonly filename?: string | undefined;
345
- readonly url: string;
346
- } | {
347
- readonly type: "document";
348
- readonly filename?: string | undefined;
349
- readonly mediaId: string;
350
381
  } | undefined;
351
382
  readonly body: string;
352
383
  readonly footer?: string | undefined;
353
- readonly buttons: readonly {
354
- readonly id: string;
355
- readonly title: string;
356
- }[];
384
+ readonly flowId: string;
385
+ readonly cta: string;
386
+ readonly token?: string | undefined;
387
+ readonly action?: "data_exchange" | "navigate" | undefined;
388
+ readonly screen?: string | undefined;
389
+ readonly data?: {
390
+ readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
391
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
392
+ } | null)[] | {
393
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
394
+ } | null)[] | {
395
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
396
+ } | null)[] | {
397
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
398
+ } | null)[] | {
399
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
400
+ } | null)[] | {
401
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
402
+ } | null)[] | {
403
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
404
+ } | null)[] | {
405
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
406
+ } | null)[] | {
407
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
408
+ } | null)[] | {
409
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
410
+ } | null)[] | {
411
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
412
+ } | null)[] | {
413
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
414
+ } | null | undefined;
415
+ } | undefined;
357
416
  } | {
358
417
  readonly type: "list";
359
418
  readonly header?: {
@@ -372,26 +431,26 @@ export declare const create: (input: {
372
431
  }[];
373
432
  }[];
374
433
  } | {
375
- readonly type: "cta_url";
434
+ readonly type: "buttons";
376
435
  readonly header?: {
377
436
  readonly type: "text";
378
437
  readonly text: string;
379
438
  } | {
380
439
  readonly type: "image";
381
440
  readonly url: string;
382
- } | {
383
- readonly type: "image";
384
- readonly mediaId: string;
385
441
  } | {
386
442
  readonly type: "video";
387
443
  readonly url: string;
388
- } | {
389
- readonly type: "video";
390
- readonly mediaId: string;
391
444
  } | {
392
445
  readonly type: "document";
393
446
  readonly filename?: string | undefined;
394
447
  readonly url: string;
448
+ } | {
449
+ readonly type: "image";
450
+ readonly mediaId: string;
451
+ } | {
452
+ readonly type: "video";
453
+ readonly mediaId: string;
395
454
  } | {
396
455
  readonly type: "document";
397
456
  readonly filename?: string | undefined;
@@ -399,100 +458,41 @@ export declare const create: (input: {
399
458
  } | undefined;
400
459
  readonly body: string;
401
460
  readonly footer?: string | undefined;
402
- readonly displayText: string;
403
- readonly url: string;
461
+ readonly buttons: readonly {
462
+ readonly id: string;
463
+ readonly title: string;
464
+ }[];
404
465
  } | {
405
- readonly type: "flow";
466
+ readonly type: "cta_url";
406
467
  readonly header?: {
407
468
  readonly type: "text";
408
469
  readonly text: string;
470
+ } | {
471
+ readonly type: "image";
472
+ readonly url: string;
473
+ } | {
474
+ readonly type: "video";
475
+ readonly url: string;
476
+ } | {
477
+ readonly type: "document";
478
+ readonly filename?: string | undefined;
479
+ readonly url: string;
480
+ } | {
481
+ readonly type: "image";
482
+ readonly mediaId: string;
483
+ } | {
484
+ readonly type: "video";
485
+ readonly mediaId: string;
486
+ } | {
487
+ readonly type: "document";
488
+ readonly filename?: string | undefined;
489
+ readonly mediaId: string;
409
490
  } | undefined;
410
491
  readonly body: string;
411
492
  readonly footer?: string | undefined;
412
- readonly flowId: string;
413
- readonly cta: string;
414
- readonly token?: string | undefined;
415
- readonly action?: "data_exchange" | "navigate" | undefined;
416
- readonly screen?: string | undefined;
417
- readonly data?: {
418
- readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
419
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
420
- } | null)[] | {
421
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
422
- } | null)[] | {
423
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
424
- } | null)[] | {
425
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
426
- } | null)[] | {
427
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
428
- } | null)[] | {
429
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
430
- } | null)[] | {
431
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
432
- } | null)[] | {
433
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
434
- } | null)[] | {
435
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
436
- } | null)[] | {
437
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
438
- } | null)[] | {
439
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
440
- } | null)[] | {
441
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
442
- } | null | undefined;
443
- } | undefined;
444
- };
445
- } | {
446
- readonly reaction: {
447
- readonly messageId: string;
448
- readonly emoji: string;
449
- };
450
- } | {
451
- readonly location: {
452
- readonly latitude: number;
453
- readonly longitude: number;
454
- readonly name?: string | undefined;
455
- readonly address?: string | undefined;
493
+ readonly displayText: string;
494
+ readonly url: string;
456
495
  };
457
- } | {
458
- readonly contacts: readonly {
459
- readonly name: {
460
- readonly formattedName: string;
461
- readonly firstName?: string | undefined;
462
- readonly lastName?: string | undefined;
463
- readonly middleName?: string | undefined;
464
- readonly prefix?: string | undefined;
465
- readonly suffix?: string | undefined;
466
- };
467
- readonly phones?: readonly {
468
- readonly phone: string;
469
- readonly type?: string | undefined;
470
- readonly waId?: string | undefined;
471
- }[] | undefined;
472
- readonly emails?: readonly {
473
- readonly email: string;
474
- readonly type?: string | undefined;
475
- }[] | undefined;
476
- readonly urls?: readonly {
477
- readonly url: string;
478
- readonly type?: string | undefined;
479
- }[] | undefined;
480
- readonly org?: {
481
- readonly company?: string | undefined;
482
- readonly department?: string | undefined;
483
- readonly title?: string | undefined;
484
- } | undefined;
485
- readonly addresses?: readonly {
486
- readonly street?: string | undefined;
487
- readonly city?: string | undefined;
488
- readonly state?: string | undefined;
489
- readonly zip?: string | undefined;
490
- readonly country?: string | undefined;
491
- readonly countryCode?: string | undefined;
492
- readonly type?: string | undefined;
493
- }[] | undefined;
494
- readonly birthday?: string | undefined;
495
- }[];
496
496
  };
497
497
  };
498
498
  readonly scheduledFor: Date;
@@ -630,79 +630,114 @@ export declare const list: ((input?: {
630
630
  readonly [x: string]: import("./generated").JsonValue;
631
631
  };
632
632
  readonly flowToken?: string;
633
+ } | {
634
+ readonly location: {
635
+ readonly latitude: number;
636
+ readonly longitude: number;
637
+ readonly name?: string;
638
+ readonly address?: string;
639
+ };
640
+ } | {
641
+ readonly contacts: readonly {
642
+ readonly name: {
643
+ readonly formattedName: string;
644
+ readonly firstName?: string;
645
+ readonly lastName?: string;
646
+ readonly middleName?: string;
647
+ readonly prefix?: string;
648
+ readonly suffix?: string;
649
+ };
650
+ readonly phones?: readonly {
651
+ readonly phone: string;
652
+ readonly type?: string;
653
+ readonly waId?: string;
654
+ }[];
655
+ readonly emails?: readonly {
656
+ readonly email: string;
657
+ readonly type?: string;
658
+ }[];
659
+ readonly urls?: readonly {
660
+ readonly url: string;
661
+ readonly type?: string;
662
+ }[];
663
+ readonly org?: {
664
+ readonly company?: string;
665
+ readonly department?: string;
666
+ readonly title?: string;
667
+ };
668
+ readonly addresses?: readonly {
669
+ readonly street?: string;
670
+ readonly city?: string;
671
+ readonly state?: string;
672
+ readonly zip?: string;
673
+ readonly country?: string;
674
+ readonly countryCode?: string;
675
+ readonly type?: string;
676
+ }[];
677
+ readonly birthday?: string;
678
+ }[];
679
+ } | {
680
+ readonly reaction: {
681
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
682
+ readonly emoji: string;
683
+ };
633
684
  } | {
634
685
  readonly media: {
635
686
  readonly type: "image";
636
687
  readonly caption?: string;
637
688
  readonly url: string;
638
- } | {
639
- readonly type: "image";
640
- readonly caption?: string;
641
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
642
689
  } | {
643
690
  readonly type: "video";
644
691
  readonly caption?: string;
645
692
  readonly url: string;
646
- } | {
647
- readonly type: "video";
648
- readonly caption?: string;
649
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
650
693
  } | {
651
694
  readonly type: "audio";
652
695
  readonly url: string;
653
- } | {
654
- readonly type: "audio";
655
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
656
696
  } | {
657
697
  readonly type: "document";
658
698
  readonly caption?: string;
659
699
  readonly filename?: string;
660
700
  readonly url: string;
701
+ } | {
702
+ readonly type: "sticker";
703
+ readonly url: string;
704
+ } | {
705
+ readonly type: "image";
706
+ readonly caption?: string;
707
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
708
+ } | {
709
+ readonly type: "video";
710
+ readonly caption?: string;
711
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
712
+ } | {
713
+ readonly type: "audio";
714
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
661
715
  } | {
662
716
  readonly type: "document";
663
717
  readonly caption?: string;
664
718
  readonly filename?: string;
665
719
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
666
- } | {
667
- readonly type: "sticker";
668
- readonly url: string;
669
720
  } | {
670
721
  readonly type: "sticker";
671
722
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
672
723
  };
673
724
  } | {
674
725
  readonly interactive: {
675
- readonly type: "buttons";
726
+ readonly type: "flow";
676
727
  readonly header?: {
677
728
  readonly type: "text";
678
729
  readonly text: string;
679
- } | {
680
- readonly type: "image";
681
- readonly url: string;
682
- } | {
683
- readonly type: "image";
684
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
685
- } | {
686
- readonly type: "video";
687
- readonly url: string;
688
- } | {
689
- readonly type: "video";
690
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
691
- } | {
692
- readonly type: "document";
693
- readonly filename?: string;
694
- readonly url: string;
695
- } | {
696
- readonly type: "document";
697
- readonly filename?: string;
698
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
699
730
  };
700
731
  readonly body: string;
701
732
  readonly footer?: string;
702
- readonly buttons: readonly {
703
- readonly id: string;
704
- readonly title: string;
705
- }[];
733
+ readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
734
+ readonly cta: string;
735
+ readonly token?: string;
736
+ readonly action?: "data_exchange" | "navigate";
737
+ readonly screen?: string;
738
+ readonly data?: {
739
+ readonly [x: string]: import("./generated").JsonValue;
740
+ };
706
741
  } | {
707
742
  readonly type: "list";
708
743
  readonly header?: {
@@ -721,26 +756,26 @@ export declare const list: ((input?: {
721
756
  }[];
722
757
  }[];
723
758
  } | {
724
- readonly type: "cta_url";
759
+ readonly type: "buttons";
725
760
  readonly header?: {
726
761
  readonly type: "text";
727
762
  readonly text: string;
728
763
  } | {
729
764
  readonly type: "image";
730
765
  readonly url: string;
731
- } | {
732
- readonly type: "image";
733
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
734
766
  } | {
735
767
  readonly type: "video";
736
768
  readonly url: string;
737
- } | {
738
- readonly type: "video";
739
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
740
769
  } | {
741
770
  readonly type: "document";
742
771
  readonly filename?: string;
743
772
  readonly url: string;
773
+ } | {
774
+ readonly type: "image";
775
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
776
+ } | {
777
+ readonly type: "video";
778
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
744
779
  } | {
745
780
  readonly type: "document";
746
781
  readonly filename?: string;
@@ -748,76 +783,41 @@ export declare const list: ((input?: {
748
783
  };
749
784
  readonly body: string;
750
785
  readonly footer?: string;
751
- readonly displayText: string;
752
- readonly url: string;
786
+ readonly buttons: readonly {
787
+ readonly id: string;
788
+ readonly title: string;
789
+ }[];
753
790
  } | {
754
- readonly type: "flow";
791
+ readonly type: "cta_url";
755
792
  readonly header?: {
756
793
  readonly type: "text";
757
794
  readonly text: string;
758
- };
759
- readonly body: string;
760
- readonly footer?: string;
761
- readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
762
- readonly cta: string;
763
- readonly token?: string;
764
- readonly action?: "data_exchange" | "navigate";
765
- readonly screen?: string;
766
- readonly data?: {
767
- readonly [x: string]: import("./generated").JsonValue;
768
- };
769
- };
770
- } | {
771
- readonly reaction: {
772
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
773
- readonly emoji: string;
774
- };
775
- } | {
776
- readonly location: {
777
- readonly latitude: number;
778
- readonly longitude: number;
779
- readonly name?: string;
780
- readonly address?: string;
781
- };
782
- } | {
783
- readonly contacts: readonly {
784
- readonly name: {
785
- readonly formattedName: string;
786
- readonly firstName?: string;
787
- readonly lastName?: string;
788
- readonly middleName?: string;
789
- readonly prefix?: string;
790
- readonly suffix?: string;
791
- };
792
- readonly phones?: readonly {
793
- readonly phone: string;
794
- readonly type?: string;
795
- readonly waId?: string;
796
- }[];
797
- readonly emails?: readonly {
798
- readonly email: string;
799
- readonly type?: string;
800
- }[];
801
- readonly urls?: readonly {
795
+ } | {
796
+ readonly type: "image";
802
797
  readonly url: string;
803
- readonly type?: string;
804
- }[];
805
- readonly org?: {
806
- readonly company?: string;
807
- readonly department?: string;
808
- readonly title?: string;
798
+ } | {
799
+ readonly type: "video";
800
+ readonly url: string;
801
+ } | {
802
+ readonly type: "document";
803
+ readonly filename?: string;
804
+ readonly url: string;
805
+ } | {
806
+ readonly type: "image";
807
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
808
+ } | {
809
+ readonly type: "video";
810
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
811
+ } | {
812
+ readonly type: "document";
813
+ readonly filename?: string;
814
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
809
815
  };
810
- readonly addresses?: readonly {
811
- readonly street?: string;
812
- readonly city?: string;
813
- readonly state?: string;
814
- readonly zip?: string;
815
- readonly country?: string;
816
- readonly countryCode?: string;
817
- readonly type?: string;
818
- }[];
819
- readonly birthday?: string;
820
- }[];
816
+ readonly body: string;
817
+ readonly footer?: string;
818
+ readonly displayText: string;
819
+ readonly url: string;
820
+ };
821
821
  };
822
822
  };
823
823
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
@@ -957,79 +957,114 @@ export declare const list: ((input?: {
957
957
  readonly [x: string]: import("./generated").JsonValue;
958
958
  };
959
959
  readonly flowToken?: string;
960
+ } | {
961
+ readonly location: {
962
+ readonly latitude: number;
963
+ readonly longitude: number;
964
+ readonly name?: string;
965
+ readonly address?: string;
966
+ };
967
+ } | {
968
+ readonly contacts: readonly {
969
+ readonly name: {
970
+ readonly formattedName: string;
971
+ readonly firstName?: string;
972
+ readonly lastName?: string;
973
+ readonly middleName?: string;
974
+ readonly prefix?: string;
975
+ readonly suffix?: string;
976
+ };
977
+ readonly phones?: readonly {
978
+ readonly phone: string;
979
+ readonly type?: string;
980
+ readonly waId?: string;
981
+ }[];
982
+ readonly emails?: readonly {
983
+ readonly email: string;
984
+ readonly type?: string;
985
+ }[];
986
+ readonly urls?: readonly {
987
+ readonly url: string;
988
+ readonly type?: string;
989
+ }[];
990
+ readonly org?: {
991
+ readonly company?: string;
992
+ readonly department?: string;
993
+ readonly title?: string;
994
+ };
995
+ readonly addresses?: readonly {
996
+ readonly street?: string;
997
+ readonly city?: string;
998
+ readonly state?: string;
999
+ readonly zip?: string;
1000
+ readonly country?: string;
1001
+ readonly countryCode?: string;
1002
+ readonly type?: string;
1003
+ }[];
1004
+ readonly birthday?: string;
1005
+ }[];
1006
+ } | {
1007
+ readonly reaction: {
1008
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1009
+ readonly emoji: string;
1010
+ };
960
1011
  } | {
961
1012
  readonly media: {
962
1013
  readonly type: "image";
963
1014
  readonly caption?: string;
964
1015
  readonly url: string;
965
- } | {
966
- readonly type: "image";
967
- readonly caption?: string;
968
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
969
1016
  } | {
970
1017
  readonly type: "video";
971
1018
  readonly caption?: string;
972
1019
  readonly url: string;
973
- } | {
974
- readonly type: "video";
975
- readonly caption?: string;
976
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
977
1020
  } | {
978
1021
  readonly type: "audio";
979
1022
  readonly url: string;
980
- } | {
981
- readonly type: "audio";
982
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
983
1023
  } | {
984
1024
  readonly type: "document";
985
1025
  readonly caption?: string;
986
1026
  readonly filename?: string;
987
1027
  readonly url: string;
1028
+ } | {
1029
+ readonly type: "sticker";
1030
+ readonly url: string;
1031
+ } | {
1032
+ readonly type: "image";
1033
+ readonly caption?: string;
1034
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1035
+ } | {
1036
+ readonly type: "video";
1037
+ readonly caption?: string;
1038
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1039
+ } | {
1040
+ readonly type: "audio";
1041
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
988
1042
  } | {
989
1043
  readonly type: "document";
990
1044
  readonly caption?: string;
991
1045
  readonly filename?: string;
992
1046
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
993
- } | {
994
- readonly type: "sticker";
995
- readonly url: string;
996
1047
  } | {
997
1048
  readonly type: "sticker";
998
1049
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
999
1050
  };
1000
1051
  } | {
1001
1052
  readonly interactive: {
1002
- readonly type: "buttons";
1053
+ readonly type: "flow";
1003
1054
  readonly header?: {
1004
1055
  readonly type: "text";
1005
1056
  readonly text: string;
1006
- } | {
1007
- readonly type: "image";
1008
- readonly url: string;
1009
- } | {
1010
- readonly type: "image";
1011
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1012
- } | {
1013
- readonly type: "video";
1014
- readonly url: string;
1015
- } | {
1016
- readonly type: "video";
1017
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1018
- } | {
1019
- readonly type: "document";
1020
- readonly filename?: string;
1021
- readonly url: string;
1022
- } | {
1023
- readonly type: "document";
1024
- readonly filename?: string;
1025
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1026
1057
  };
1027
1058
  readonly body: string;
1028
1059
  readonly footer?: string;
1029
- readonly buttons: readonly {
1030
- readonly id: string;
1031
- readonly title: string;
1032
- }[];
1060
+ readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
1061
+ readonly cta: string;
1062
+ readonly token?: string;
1063
+ readonly action?: "data_exchange" | "navigate";
1064
+ readonly screen?: string;
1065
+ readonly data?: {
1066
+ readonly [x: string]: import("./generated").JsonValue;
1067
+ };
1033
1068
  } | {
1034
1069
  readonly type: "list";
1035
1070
  readonly header?: {
@@ -1048,26 +1083,26 @@ export declare const list: ((input?: {
1048
1083
  }[];
1049
1084
  }[];
1050
1085
  } | {
1051
- readonly type: "cta_url";
1086
+ readonly type: "buttons";
1052
1087
  readonly header?: {
1053
1088
  readonly type: "text";
1054
1089
  readonly text: string;
1055
1090
  } | {
1056
1091
  readonly type: "image";
1057
1092
  readonly url: string;
1058
- } | {
1059
- readonly type: "image";
1060
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1061
1093
  } | {
1062
1094
  readonly type: "video";
1063
1095
  readonly url: string;
1064
- } | {
1065
- readonly type: "video";
1066
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1067
1096
  } | {
1068
1097
  readonly type: "document";
1069
1098
  readonly filename?: string;
1070
1099
  readonly url: string;
1100
+ } | {
1101
+ readonly type: "image";
1102
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1103
+ } | {
1104
+ readonly type: "video";
1105
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1071
1106
  } | {
1072
1107
  readonly type: "document";
1073
1108
  readonly filename?: string;
@@ -1075,76 +1110,41 @@ export declare const list: ((input?: {
1075
1110
  };
1076
1111
  readonly body: string;
1077
1112
  readonly footer?: string;
1078
- readonly displayText: string;
1079
- readonly url: string;
1113
+ readonly buttons: readonly {
1114
+ readonly id: string;
1115
+ readonly title: string;
1116
+ }[];
1080
1117
  } | {
1081
- readonly type: "flow";
1118
+ readonly type: "cta_url";
1082
1119
  readonly header?: {
1083
1120
  readonly type: "text";
1084
1121
  readonly text: string;
1122
+ } | {
1123
+ readonly type: "image";
1124
+ readonly url: string;
1125
+ } | {
1126
+ readonly type: "video";
1127
+ readonly url: string;
1128
+ } | {
1129
+ readonly type: "document";
1130
+ readonly filename?: string;
1131
+ readonly url: string;
1132
+ } | {
1133
+ readonly type: "image";
1134
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1135
+ } | {
1136
+ readonly type: "video";
1137
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1138
+ } | {
1139
+ readonly type: "document";
1140
+ readonly filename?: string;
1141
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1085
1142
  };
1086
1143
  readonly body: string;
1087
1144
  readonly footer?: string;
1088
- readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
1089
- readonly cta: string;
1090
- readonly token?: string;
1091
- readonly action?: "data_exchange" | "navigate";
1092
- readonly screen?: string;
1093
- readonly data?: {
1094
- readonly [x: string]: import("./generated").JsonValue;
1095
- };
1096
- };
1097
- } | {
1098
- readonly reaction: {
1099
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1100
- readonly emoji: string;
1101
- };
1102
- } | {
1103
- readonly location: {
1104
- readonly latitude: number;
1105
- readonly longitude: number;
1106
- readonly name?: string;
1107
- readonly address?: string;
1145
+ readonly displayText: string;
1146
+ readonly url: string;
1108
1147
  };
1109
- } | {
1110
- readonly contacts: readonly {
1111
- readonly name: {
1112
- readonly formattedName: string;
1113
- readonly firstName?: string;
1114
- readonly lastName?: string;
1115
- readonly middleName?: string;
1116
- readonly prefix?: string;
1117
- readonly suffix?: string;
1118
- };
1119
- readonly phones?: readonly {
1120
- readonly phone: string;
1121
- readonly type?: string;
1122
- readonly waId?: string;
1123
- }[];
1124
- readonly emails?: readonly {
1125
- readonly email: string;
1126
- readonly type?: string;
1127
- }[];
1128
- readonly urls?: readonly {
1129
- readonly url: string;
1130
- readonly type?: string;
1131
- }[];
1132
- readonly org?: {
1133
- readonly company?: string;
1134
- readonly department?: string;
1135
- readonly title?: string;
1136
- };
1137
- readonly addresses?: readonly {
1138
- readonly street?: string;
1139
- readonly city?: string;
1140
- readonly state?: string;
1141
- readonly zip?: string;
1142
- readonly country?: string;
1143
- readonly countryCode?: string;
1144
- readonly type?: string;
1145
- }[];
1146
- readonly birthday?: string;
1147
- }[];
1148
1148
  };
1149
1149
  };
1150
1150
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;