samva 0.46.1 → 0.48.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 (79) hide show
  1. package/AGENTS.md +13 -7
  2. package/README.md +106 -8
  3. package/dist/agent/index.d.ts +57 -0
  4. package/dist/agent/index.js +53 -0
  5. package/dist/agent/runtime.d.ts +3 -0
  6. package/dist/agent/runtime.js +95 -0
  7. package/dist/agent/test.d.ts +31 -0
  8. package/dist/agent/test.js +66 -0
  9. package/dist/agent/types.d.ts +150 -0
  10. package/dist/client/sdk.gen.d.ts +50 -165
  11. package/dist/client/sdk.gen.js +1339 -1614
  12. package/dist/client/types.gen.d.ts +461 -989
  13. package/dist/effect/agents.d.ts +340 -8
  14. package/dist/effect/agents.js +4 -2
  15. package/dist/effect/api-keys.d.ts +2 -0
  16. package/dist/effect/campaigns.d.ts +160 -160
  17. package/dist/effect/contacts.d.ts +8 -0
  18. package/dist/effect/contacts.js +5 -1
  19. package/dist/effect/descriptors/agents.d.ts +12 -2
  20. package/dist/effect/descriptors/agents.js +12 -2
  21. package/dist/effect/descriptors/contacts.d.ts +20 -0
  22. package/dist/effect/descriptors/contacts.js +20 -0
  23. package/dist/effect/generated/accounts.d.ts +10 -0
  24. package/dist/effect/generated/accounts.js +1 -0
  25. package/dist/effect/generated/agents.d.ts +2967 -690
  26. package/dist/effect/generated/agents.js +54 -13
  27. package/dist/effect/generated/api-keys.d.ts +15 -0
  28. package/dist/effect/generated/api-keys.js +2 -0
  29. package/dist/effect/generated/contacts.d.ts +859 -1
  30. package/dist/effect/generated/contacts.js +62 -3
  31. package/dist/effect/generated/index.d.ts +1 -5
  32. package/dist/effect/generated/journeys.d.ts +351 -111
  33. package/dist/effect/generated/journeys.js +3 -1
  34. package/dist/effect/generated/mailboxes.d.ts +93 -95
  35. package/dist/effect/generated/mailboxes.js +21 -25
  36. package/dist/effect/generated/shared.d.ts +459 -139
  37. package/dist/effect/generated/shared.js +84 -39
  38. package/dist/effect/generated/template-registrations.d.ts +19 -4
  39. package/dist/effect/generated/template-registrations.js +8 -7
  40. package/dist/effect/generated/templates.d.ts +76 -11
  41. package/dist/effect/generated/templates.js +25 -12
  42. package/dist/effect/generated-metadata.d.ts +18 -84
  43. package/dist/effect/generated-metadata.js +362 -415
  44. package/dist/effect/index.d.ts +0 -2
  45. package/dist/effect/index.js +1 -3
  46. package/dist/effect/internal/client.js +1 -1
  47. package/dist/effect/internal/operation.js +4 -1
  48. package/dist/effect/journeys.d.ts +26 -2
  49. package/dist/effect/mailboxes.d.ts +41 -41
  50. package/dist/effect/scheduled-messages.d.ts +350 -350
  51. package/dist/effect/templates.d.ts +9 -0
  52. package/dist/effect/topics.d.ts +2 -2
  53. package/dist/package.js +1 -1
  54. package/dist/promises/client.d.ts +1 -5
  55. package/dist/promises/client.js +3 -7
  56. package/dist/promises/types.gen.d.ts +1 -1
  57. package/dist/service-map.d.ts +18 -75
  58. package/package.json +10 -22
  59. package/dist/effect/descriptors/extension-installations.d.ts +0 -90
  60. package/dist/effect/descriptors/extension-installations.js +0 -90
  61. package/dist/effect/descriptors/extensions.d.ts +0 -50
  62. package/dist/effect/descriptors/extensions.js +0 -50
  63. package/dist/effect/extension-installations.d.ts +0 -132
  64. package/dist/effect/extension-installations.js +0 -29
  65. package/dist/effect/extensions.d.ts +0 -102
  66. package/dist/effect/extensions.js +0 -21
  67. package/dist/effect/generated/extension-installations.d.ts +0 -2761
  68. package/dist/effect/generated/extension-installations.js +0 -405
  69. package/dist/effect/generated/extensions.d.ts +0 -1037
  70. package/dist/effect/generated/extensions.js +0 -214
  71. package/dist/mailbox/dispatch.d.ts +0 -10
  72. package/dist/mailbox/dispatch.js +0 -66
  73. package/dist/mailbox/index.d.ts +0 -17
  74. package/dist/mailbox/index.js +0 -30
  75. package/dist/mailbox/test.d.ts +0 -25
  76. package/dist/mailbox/test.js +0 -181
  77. package/dist/mailbox/types.d.ts +0 -221
  78. package/dist/mailbox/webhook.d.ts +0 -10
  79. package/dist/mailbox/webhook.js +0 -41
@@ -281,138 +281,79 @@ 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
- };
335
284
  } | {
336
285
  readonly media: {
337
286
  readonly type: "image";
338
287
  readonly caption?: string | undefined;
339
288
  readonly url: string;
340
289
  } | {
341
- readonly type: "video";
290
+ readonly type: "image";
342
291
  readonly caption?: string | undefined;
343
- readonly url: string;
344
- } | {
345
- readonly type: "audio";
346
- readonly url: string;
292
+ readonly mediaId: string;
347
293
  } | {
348
- readonly type: "document";
294
+ readonly type: "video";
349
295
  readonly caption?: string | undefined;
350
- readonly filename?: string | undefined;
351
- readonly url: string;
352
- } | {
353
- readonly type: "sticker";
354
296
  readonly url: string;
355
- } | {
356
- readonly type: "image";
357
- readonly caption?: string | undefined;
358
- readonly mediaId: string;
359
297
  } | {
360
298
  readonly type: "video";
361
299
  readonly caption?: string | undefined;
362
300
  readonly mediaId: string;
301
+ } | {
302
+ readonly type: "audio";
303
+ readonly url: string;
363
304
  } | {
364
305
  readonly type: "audio";
365
306
  readonly mediaId: string;
307
+ } | {
308
+ readonly type: "document";
309
+ readonly caption?: string | undefined;
310
+ readonly filename?: string | undefined;
311
+ readonly url: string;
366
312
  } | {
367
313
  readonly type: "document";
368
314
  readonly caption?: string | undefined;
369
315
  readonly filename?: string | undefined;
370
316
  readonly mediaId: string;
317
+ } | {
318
+ readonly type: "sticker";
319
+ readonly url: string;
371
320
  } | {
372
321
  readonly type: "sticker";
373
322
  readonly mediaId: string;
374
323
  };
375
324
  } | {
376
325
  readonly interactive: {
377
- readonly type: "flow";
326
+ readonly type: "buttons";
378
327
  readonly header?: {
379
328
  readonly type: "text";
380
329
  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;
381
350
  } | undefined;
382
351
  readonly body: string;
383
352
  readonly footer?: string | undefined;
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;
353
+ readonly buttons: readonly {
354
+ readonly id: string;
355
+ readonly title: string;
356
+ }[];
416
357
  } | {
417
358
  readonly type: "list";
418
359
  readonly header?: {
@@ -431,58 +372,26 @@ export declare const create: (input: {
431
372
  }[];
432
373
  }[];
433
374
  } | {
434
- readonly type: "buttons";
375
+ readonly type: "cta_url";
435
376
  readonly header?: {
436
377
  readonly type: "text";
437
378
  readonly text: string;
438
379
  } | {
439
380
  readonly type: "image";
440
381
  readonly url: string;
441
- } | {
442
- readonly type: "video";
443
- readonly url: string;
444
- } | {
445
- readonly type: "document";
446
- readonly filename?: string | undefined;
447
- readonly url: string;
448
382
  } | {
449
383
  readonly type: "image";
450
384
  readonly mediaId: string;
451
385
  } | {
452
386
  readonly type: "video";
453
- readonly mediaId: string;
454
- } | {
455
- readonly type: "document";
456
- readonly filename?: string | undefined;
457
- readonly mediaId: string;
458
- } | undefined;
459
- readonly body: string;
460
- readonly footer?: string | undefined;
461
- readonly buttons: readonly {
462
- readonly id: string;
463
- readonly title: string;
464
- }[];
465
- } | {
466
- readonly type: "cta_url";
467
- readonly header?: {
468
- readonly type: "text";
469
- readonly text: string;
470
- } | {
471
- readonly type: "image";
472
387
  readonly url: string;
473
388
  } | {
474
389
  readonly type: "video";
475
- readonly url: string;
390
+ readonly mediaId: string;
476
391
  } | {
477
392
  readonly type: "document";
478
393
  readonly filename?: string | undefined;
479
394
  readonly url: string;
480
- } | {
481
- readonly type: "image";
482
- readonly mediaId: string;
483
- } | {
484
- readonly type: "video";
485
- readonly mediaId: string;
486
395
  } | {
487
396
  readonly type: "document";
488
397
  readonly filename?: string | undefined;
@@ -492,7 +401,98 @@ export declare const create: (input: {
492
401
  readonly footer?: string | undefined;
493
402
  readonly displayText: string;
494
403
  readonly url: string;
404
+ } | {
405
+ readonly type: "flow";
406
+ readonly header?: {
407
+ readonly type: "text";
408
+ readonly text: string;
409
+ } | undefined;
410
+ readonly body: string;
411
+ 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;
495
456
  };
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,114 +630,79 @@ export declare const list: ((input?: {
630
630
  readonly [x: string]: import("./generated/index.js").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
- };
684
633
  } | {
685
634
  readonly media: {
686
635
  readonly type: "image";
687
636
  readonly caption?: string;
688
637
  readonly url: string;
689
638
  } | {
690
- readonly type: "video";
639
+ readonly type: "image";
691
640
  readonly caption?: string;
692
- readonly url: string;
693
- } | {
694
- readonly type: "audio";
695
- readonly url: string;
641
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
696
642
  } | {
697
- readonly type: "document";
643
+ readonly type: "video";
698
644
  readonly caption?: string;
699
- readonly filename?: string;
700
645
  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
646
  } | {
709
647
  readonly type: "video";
710
648
  readonly caption?: string;
711
649
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
650
+ } | {
651
+ readonly type: "audio";
652
+ readonly url: string;
712
653
  } | {
713
654
  readonly type: "audio";
714
655
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
656
+ } | {
657
+ readonly type: "document";
658
+ readonly caption?: string;
659
+ readonly filename?: string;
660
+ readonly url: string;
715
661
  } | {
716
662
  readonly type: "document";
717
663
  readonly caption?: string;
718
664
  readonly filename?: string;
719
665
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
666
+ } | {
667
+ readonly type: "sticker";
668
+ readonly url: string;
720
669
  } | {
721
670
  readonly type: "sticker";
722
671
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
723
672
  };
724
673
  } | {
725
674
  readonly interactive: {
726
- readonly type: "flow";
675
+ readonly type: "buttons";
727
676
  readonly header?: {
728
677
  readonly type: "text";
729
678
  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">;
730
699
  };
731
700
  readonly body: string;
732
701
  readonly footer?: string;
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/index.js").JsonValue;
740
- };
702
+ readonly buttons: readonly {
703
+ readonly id: string;
704
+ readonly title: string;
705
+ }[];
741
706
  } | {
742
707
  readonly type: "list";
743
708
  readonly header?: {
@@ -756,26 +721,26 @@ export declare const list: ((input?: {
756
721
  }[];
757
722
  }[];
758
723
  } | {
759
- readonly type: "buttons";
724
+ readonly type: "cta_url";
760
725
  readonly header?: {
761
726
  readonly type: "text";
762
727
  readonly text: string;
763
728
  } | {
764
729
  readonly type: "image";
765
730
  readonly url: string;
731
+ } | {
732
+ readonly type: "image";
733
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
766
734
  } | {
767
735
  readonly type: "video";
768
736
  readonly url: string;
737
+ } | {
738
+ readonly type: "video";
739
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
769
740
  } | {
770
741
  readonly type: "document";
771
742
  readonly filename?: string;
772
743
  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">;
779
744
  } | {
780
745
  readonly type: "document";
781
746
  readonly filename?: string;
@@ -783,41 +748,76 @@ export declare const list: ((input?: {
783
748
  };
784
749
  readonly body: string;
785
750
  readonly footer?: string;
786
- readonly buttons: readonly {
787
- readonly id: string;
788
- readonly title: string;
789
- }[];
751
+ readonly displayText: string;
752
+ readonly url: string;
790
753
  } | {
791
- readonly type: "cta_url";
754
+ readonly type: "flow";
792
755
  readonly header?: {
793
756
  readonly type: "text";
794
757
  readonly text: string;
795
- } | {
796
- readonly type: "image";
797
- readonly url: string;
798
- } | {
799
- readonly type: "video";
800
- readonly url: string;
801
- } | {
802
- readonly type: "document";
803
- readonly filename?: 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/index.js").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 {
804
802
  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">;
803
+ readonly type?: string;
804
+ }[];
805
+ readonly org?: {
806
+ readonly company?: string;
807
+ readonly department?: string;
808
+ readonly title?: string;
815
809
  };
816
- readonly body: string;
817
- readonly footer?: string;
818
- readonly displayText: string;
819
- readonly url: string;
820
- };
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
+ }[];
821
821
  };
822
822
  };
823
823
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
@@ -957,114 +957,79 @@ export declare const list: ((input?: {
957
957
  readonly [x: string]: import("./generated/index.js").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
- };
1011
960
  } | {
1012
961
  readonly media: {
1013
962
  readonly type: "image";
1014
963
  readonly caption?: string;
1015
964
  readonly url: string;
1016
965
  } | {
1017
- readonly type: "video";
966
+ readonly type: "image";
1018
967
  readonly caption?: string;
1019
- readonly url: string;
1020
- } | {
1021
- readonly type: "audio";
1022
- readonly url: string;
968
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1023
969
  } | {
1024
- readonly type: "document";
970
+ readonly type: "video";
1025
971
  readonly caption?: string;
1026
- readonly filename?: string;
1027
- readonly url: string;
1028
- } | {
1029
- readonly type: "sticker";
1030
972
  readonly url: string;
1031
- } | {
1032
- readonly type: "image";
1033
- readonly caption?: string;
1034
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1035
973
  } | {
1036
974
  readonly type: "video";
1037
975
  readonly caption?: string;
1038
976
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
977
+ } | {
978
+ readonly type: "audio";
979
+ readonly url: string;
1039
980
  } | {
1040
981
  readonly type: "audio";
1041
982
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
983
+ } | {
984
+ readonly type: "document";
985
+ readonly caption?: string;
986
+ readonly filename?: string;
987
+ readonly url: string;
1042
988
  } | {
1043
989
  readonly type: "document";
1044
990
  readonly caption?: string;
1045
991
  readonly filename?: string;
1046
992
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
993
+ } | {
994
+ readonly type: "sticker";
995
+ readonly url: string;
1047
996
  } | {
1048
997
  readonly type: "sticker";
1049
998
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1050
999
  };
1051
1000
  } | {
1052
1001
  readonly interactive: {
1053
- readonly type: "flow";
1002
+ readonly type: "buttons";
1054
1003
  readonly header?: {
1055
1004
  readonly type: "text";
1056
1005
  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">;
1057
1026
  };
1058
1027
  readonly body: string;
1059
1028
  readonly footer?: string;
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/index.js").JsonValue;
1067
- };
1029
+ readonly buttons: readonly {
1030
+ readonly id: string;
1031
+ readonly title: string;
1032
+ }[];
1068
1033
  } | {
1069
1034
  readonly type: "list";
1070
1035
  readonly header?: {
@@ -1083,58 +1048,26 @@ export declare const list: ((input?: {
1083
1048
  }[];
1084
1049
  }[];
1085
1050
  } | {
1086
- readonly type: "buttons";
1051
+ readonly type: "cta_url";
1087
1052
  readonly header?: {
1088
1053
  readonly type: "text";
1089
1054
  readonly text: string;
1090
1055
  } | {
1091
1056
  readonly type: "image";
1092
1057
  readonly url: string;
1093
- } | {
1094
- readonly type: "video";
1095
- readonly url: string;
1096
- } | {
1097
- readonly type: "document";
1098
- readonly filename?: string;
1099
- readonly url: string;
1100
1058
  } | {
1101
1059
  readonly type: "image";
1102
1060
  readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1103
1061
  } | {
1104
1062
  readonly type: "video";
1105
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1106
- } | {
1107
- readonly type: "document";
1108
- readonly filename?: string;
1109
- readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1110
- };
1111
- readonly body: string;
1112
- readonly footer?: string;
1113
- readonly buttons: readonly {
1114
- readonly id: string;
1115
- readonly title: string;
1116
- }[];
1117
- } | {
1118
- readonly type: "cta_url";
1119
- readonly header?: {
1120
- readonly type: "text";
1121
- readonly text: string;
1122
- } | {
1123
- readonly type: "image";
1124
1063
  readonly url: string;
1125
1064
  } | {
1126
1065
  readonly type: "video";
1127
- readonly url: string;
1066
+ readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
1128
1067
  } | {
1129
1068
  readonly type: "document";
1130
1069
  readonly filename?: string;
1131
1070
  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
1071
  } | {
1139
1072
  readonly type: "document";
1140
1073
  readonly filename?: string;
@@ -1144,7 +1077,74 @@ export declare const list: ((input?: {
1144
1077
  readonly footer?: string;
1145
1078
  readonly displayText: string;
1146
1079
  readonly url: string;
1080
+ } | {
1081
+ readonly type: "flow";
1082
+ readonly header?: {
1083
+ readonly type: "text";
1084
+ readonly text: string;
1085
+ };
1086
+ readonly body: string;
1087
+ 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/index.js").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;
1147
1108
  };
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;