@aws-sdk/client-socialmessaging 3.846.0 → 3.854.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.
- package/README.md +64 -0
- package/dist-cjs/SocialMessaging.js +16 -0
- package/dist-cjs/commands/CreateWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +26 -0
- package/dist-cjs/commands/CreateWhatsAppMessageTemplateMediaCommand.js +27 -0
- package/dist-cjs/commands/DeleteWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/GetWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/ListWhatsAppMessageTemplatesCommand.js +26 -0
- package/dist-cjs/commands/ListWhatsAppTemplateLibraryCommand.js +26 -0
- package/dist-cjs/commands/UpdateWhatsAppMessageTemplateCommand.js +26 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +19 -1
- package/dist-cjs/pagination/ListWhatsAppMessageTemplatesPaginator.js +7 -0
- package/dist-cjs/pagination/ListWhatsAppTemplateLibraryPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +265 -4
- package/dist-es/SocialMessaging.js +16 -0
- package/dist-es/commands/CreateWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +22 -0
- package/dist-es/commands/CreateWhatsAppMessageTemplateMediaCommand.js +23 -0
- package/dist-es/commands/DeleteWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/GetWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/ListWhatsAppMessageTemplatesCommand.js +22 -0
- package/dist-es/commands/ListWhatsAppTemplateLibraryCommand.js +22 -0
- package/dist-es/commands/UpdateWhatsAppMessageTemplateCommand.js +22 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/pagination/ListWhatsAppMessageTemplatesPaginator.js +4 -0
- package/dist-es/pagination/ListWhatsAppTemplateLibraryPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +249 -4
- package/dist-types/SocialMessaging.d.ts +56 -0
- package/dist-types/SocialMessagingClient.d.ts +10 -2
- package/dist-types/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +5 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateCommand.d.ts +97 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +125 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +98 -0
- package/dist-types/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +1 -0
- package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +1 -0
- package/dist-types/commands/GetWhatsAppMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/ListWhatsAppMessageTemplatesCommand.d.ts +106 -0
- package/dist-types/commands/ListWhatsAppTemplateLibraryCommand.d.ts +129 -0
- package/dist-types/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +550 -28
- package/dist-types/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWhatsAppTemplateLibraryPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/SocialMessaging.d.ts +148 -0
- package/dist-types/ts3.4/SocialMessagingClient.d.ts +50 -2
- package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWhatsAppMessageTemplatesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListWhatsAppTemplateLibraryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +139 -9
- package/dist-types/ts3.4/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWhatsAppTemplateLibraryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
- package/package.json +5 -5
|
@@ -227,6 +227,11 @@ export interface WhatsAppSignupCallback {
|
|
|
227
227
|
* @public
|
|
228
228
|
*/
|
|
229
229
|
accessToken: string | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* <p>The URL where WhatsApp will send callback notifications for this account.</p>
|
|
232
|
+
* @public
|
|
233
|
+
*/
|
|
234
|
+
callbackUrl?: string | undefined;
|
|
230
235
|
}
|
|
231
236
|
/**
|
|
232
237
|
* @public
|
|
@@ -295,6 +300,11 @@ export interface WhatsAppPhoneNumberDetail {
|
|
|
295
300
|
* @public
|
|
296
301
|
*/
|
|
297
302
|
qualityRating: string | undefined;
|
|
303
|
+
/**
|
|
304
|
+
* <p>The geographic region where the WhatsApp phone number's data is stored and processed.</p>
|
|
305
|
+
* @public
|
|
306
|
+
*/
|
|
307
|
+
dataLocalizationRegion?: string | undefined;
|
|
298
308
|
}
|
|
299
309
|
/**
|
|
300
310
|
* <p>Contains your WhatsApp registration status and details of any unregistered WhatsApp
|
|
@@ -379,6 +389,18 @@ export declare class InvalidParametersException extends __BaseException {
|
|
|
379
389
|
*/
|
|
380
390
|
constructor(opts: __ExceptionOptionType<InvalidParametersException, __BaseException>);
|
|
381
391
|
}
|
|
392
|
+
/**
|
|
393
|
+
* <p>The request was denied because it would exceed one or more service quotas or limits.</p>
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
396
|
+
export declare class LimitExceededException extends __BaseException {
|
|
397
|
+
readonly name: "LimitExceededException";
|
|
398
|
+
readonly $fault: "client";
|
|
399
|
+
/**
|
|
400
|
+
* @internal
|
|
401
|
+
*/
|
|
402
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
403
|
+
}
|
|
382
404
|
/**
|
|
383
405
|
* <p>The request was denied due to request throttling.</p>
|
|
384
406
|
* @public
|
|
@@ -407,31 +429,37 @@ export declare class ValidationException extends __BaseException {
|
|
|
407
429
|
/**
|
|
408
430
|
* @public
|
|
409
431
|
*/
|
|
410
|
-
export interface
|
|
432
|
+
export interface CreateWhatsAppMessageTemplateInput {
|
|
411
433
|
/**
|
|
412
|
-
* <p>The
|
|
434
|
+
* <p>The complete template definition as a JSON blob.</p>
|
|
413
435
|
* @public
|
|
414
436
|
*/
|
|
415
|
-
|
|
437
|
+
templateDefinition: Uint8Array | undefined;
|
|
416
438
|
/**
|
|
417
|
-
* <p>The
|
|
418
|
-
* number identifiers are formatted as
|
|
419
|
-
* <code>phone-number-id-01234567890123456789012345678901</code>. Use
|
|
420
|
-
* <a href="https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html">GetLinkedWhatsAppBusinessAccount</a> to find a phone number's
|
|
421
|
-
* id.</p>
|
|
439
|
+
* <p>The ID of the WhatsApp Business Account to associate with this template.</p>
|
|
422
440
|
* @public
|
|
423
441
|
*/
|
|
424
|
-
|
|
442
|
+
id: string | undefined;
|
|
425
443
|
}
|
|
426
444
|
/**
|
|
427
445
|
* @public
|
|
428
446
|
*/
|
|
429
|
-
export interface
|
|
447
|
+
export interface CreateWhatsAppMessageTemplateOutput {
|
|
430
448
|
/**
|
|
431
|
-
* <p>
|
|
449
|
+
* <p>The numeric ID assigned to the template by Meta.</p>
|
|
432
450
|
* @public
|
|
433
451
|
*/
|
|
434
|
-
|
|
452
|
+
metaTemplateId?: string | undefined;
|
|
453
|
+
/**
|
|
454
|
+
* <p>The status of the created template, such as PENDING or APPROVED..</p>
|
|
455
|
+
* @public
|
|
456
|
+
*/
|
|
457
|
+
templateStatus?: string | undefined;
|
|
458
|
+
/**
|
|
459
|
+
* <p>The category of the template, such as UTILITY or MARKETING.</p>
|
|
460
|
+
* @public
|
|
461
|
+
*/
|
|
462
|
+
category?: string | undefined;
|
|
435
463
|
}
|
|
436
464
|
/**
|
|
437
465
|
* <p>The request processing has failed because of an unknown error, exception, or
|
|
@@ -459,6 +487,244 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
459
487
|
*/
|
|
460
488
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
461
489
|
}
|
|
490
|
+
/**
|
|
491
|
+
* <p>Configuration options for customizing the body content of a template from Meta's library.</p>
|
|
492
|
+
* @public
|
|
493
|
+
*/
|
|
494
|
+
export interface LibraryTemplateBodyInputs {
|
|
495
|
+
/**
|
|
496
|
+
* <p>When true, includes a contact number in the template body.</p>
|
|
497
|
+
* @public
|
|
498
|
+
*/
|
|
499
|
+
addContactNumber?: boolean | undefined;
|
|
500
|
+
/**
|
|
501
|
+
* <p>When true, includes a "learn more" link in the template body.</p>
|
|
502
|
+
* @public
|
|
503
|
+
*/
|
|
504
|
+
addLearnMoreLink?: boolean | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* <p>When true, includes security recommendations in the template body.</p>
|
|
507
|
+
* @public
|
|
508
|
+
*/
|
|
509
|
+
addSecurityRecommendation?: boolean | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* <p>When true, includes a package tracking link in the template body.</p>
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
514
|
+
addTrackPackageLink?: boolean | undefined;
|
|
515
|
+
/**
|
|
516
|
+
* <p>The number of minutes until a verification code or OTP expires.</p>
|
|
517
|
+
* @public
|
|
518
|
+
*/
|
|
519
|
+
codeExpirationMinutes?: number | undefined;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* <p>Configuration options for customizing buttons in a template from Meta's library.</p>
|
|
523
|
+
* @public
|
|
524
|
+
*/
|
|
525
|
+
export interface LibraryTemplateButtonInput {
|
|
526
|
+
/**
|
|
527
|
+
* <p>The type of button (for example, QUICK_REPLY, CALL, or URL).</p>
|
|
528
|
+
* @public
|
|
529
|
+
*/
|
|
530
|
+
type?: string | undefined;
|
|
531
|
+
/**
|
|
532
|
+
* <p>The phone number in E.164 format for CALL-type buttons.</p>
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
phoneNumber?: string | undefined;
|
|
536
|
+
/**
|
|
537
|
+
* <p>The URL with dynamic parameters for URL-type buttons.</p>
|
|
538
|
+
* @public
|
|
539
|
+
*/
|
|
540
|
+
url?: Record<string, string> | undefined;
|
|
541
|
+
/**
|
|
542
|
+
* <p>The type of one-time password for OTP buttons.</p>
|
|
543
|
+
* @public
|
|
544
|
+
*/
|
|
545
|
+
otpType?: string | undefined;
|
|
546
|
+
/**
|
|
547
|
+
* <p>When true, indicates acceptance of zero-tap terms for the button.</p>
|
|
548
|
+
* @public
|
|
549
|
+
*/
|
|
550
|
+
zeroTapTermsAccepted?: boolean | undefined;
|
|
551
|
+
/**
|
|
552
|
+
* <p>List of supported applications for this button type.</p>
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
555
|
+
supportedApps?: Record<string, string>[] | undefined;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* <p>Represents a template from Meta's library with customization options.</p>
|
|
559
|
+
* @public
|
|
560
|
+
*/
|
|
561
|
+
export interface MetaLibraryTemplate {
|
|
562
|
+
/**
|
|
563
|
+
* <p>The name to assign to the template.</p>
|
|
564
|
+
* @public
|
|
565
|
+
*/
|
|
566
|
+
templateName: string | undefined;
|
|
567
|
+
/**
|
|
568
|
+
* <p>The name of the template in Meta's library.</p>
|
|
569
|
+
* @public
|
|
570
|
+
*/
|
|
571
|
+
libraryTemplateName: string | undefined;
|
|
572
|
+
/**
|
|
573
|
+
* <p>The category of the template (for example, UTILITY or MARKETING).</p>
|
|
574
|
+
* @public
|
|
575
|
+
*/
|
|
576
|
+
templateCategory: string | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* <p>The language code for the template (for example, en_US).</p>
|
|
579
|
+
* @public
|
|
580
|
+
*/
|
|
581
|
+
templateLanguage: string | undefined;
|
|
582
|
+
/**
|
|
583
|
+
* <p>Button customizations for the template.</p>
|
|
584
|
+
* @public
|
|
585
|
+
*/
|
|
586
|
+
libraryTemplateButtonInputs?: LibraryTemplateButtonInput[] | undefined;
|
|
587
|
+
/**
|
|
588
|
+
* <p>Body text customizations for the template.</p>
|
|
589
|
+
* @public
|
|
590
|
+
*/
|
|
591
|
+
libraryTemplateBodyInputs?: LibraryTemplateBodyInputs | undefined;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* @public
|
|
595
|
+
*/
|
|
596
|
+
export interface CreateWhatsAppMessageTemplateFromLibraryInput {
|
|
597
|
+
/**
|
|
598
|
+
* <p>The template configuration from Meta's library, including customizations for buttons and body text.</p>
|
|
599
|
+
* @public
|
|
600
|
+
*/
|
|
601
|
+
metaLibraryTemplate: MetaLibraryTemplate | undefined;
|
|
602
|
+
/**
|
|
603
|
+
* <p>The ID of the WhatsApp Business Account to associate with this template.</p>
|
|
604
|
+
* @public
|
|
605
|
+
*/
|
|
606
|
+
id: string | undefined;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* @public
|
|
610
|
+
*/
|
|
611
|
+
export interface CreateWhatsAppMessageTemplateFromLibraryOutput {
|
|
612
|
+
/**
|
|
613
|
+
* <p>The numeric ID assigned to the template by Meta.</p>
|
|
614
|
+
* @public
|
|
615
|
+
*/
|
|
616
|
+
metaTemplateId?: string | undefined;
|
|
617
|
+
/**
|
|
618
|
+
* <p>The status of the created template (for example, PENDING or APPROVED).</p>
|
|
619
|
+
* @public
|
|
620
|
+
*/
|
|
621
|
+
templateStatus?: string | undefined;
|
|
622
|
+
/**
|
|
623
|
+
* <p>The category of the template (for example, UTILITY or MARKETING).</p>
|
|
624
|
+
* @public
|
|
625
|
+
*/
|
|
626
|
+
category?: string | undefined;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* <p>Contains information for the S3 bucket that contains media files.</p>
|
|
630
|
+
* @public
|
|
631
|
+
*/
|
|
632
|
+
export interface S3File {
|
|
633
|
+
/**
|
|
634
|
+
* <p>The bucket name.</p>
|
|
635
|
+
* @public
|
|
636
|
+
*/
|
|
637
|
+
bucketName: string | undefined;
|
|
638
|
+
/**
|
|
639
|
+
* <p>The object key of the media file.</p>
|
|
640
|
+
* @public
|
|
641
|
+
*/
|
|
642
|
+
key: string | undefined;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* @public
|
|
646
|
+
*/
|
|
647
|
+
export interface CreateWhatsAppMessageTemplateMediaInput {
|
|
648
|
+
/**
|
|
649
|
+
* <p>The ID of the WhatsApp Business Account associated with this media upload.</p>
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
id: string | undefined;
|
|
653
|
+
/**
|
|
654
|
+
* <p>Contains information for the S3 bucket that contains media files.</p>
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
sourceS3File?: S3File | undefined;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* @public
|
|
661
|
+
*/
|
|
662
|
+
export interface CreateWhatsAppMessageTemplateMediaOutput {
|
|
663
|
+
/**
|
|
664
|
+
* <p>The handle assigned to the uploaded media by Meta, used to reference the media in templates.</p>
|
|
665
|
+
* @public
|
|
666
|
+
*/
|
|
667
|
+
metaHeaderHandle?: string | undefined;
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* @public
|
|
671
|
+
*/
|
|
672
|
+
export interface DeleteWhatsAppMessageMediaInput {
|
|
673
|
+
/**
|
|
674
|
+
* <p>The unique identifier of the media file to delete. Use the <code>mediaId</code> returned from <a href="https://console.aws.amazon.com/social-messaging/latest/APIReference/API_PostWhatsAppMessageMedia.html">PostWhatsAppMessageMedia</a>.</p>
|
|
675
|
+
* @public
|
|
676
|
+
*/
|
|
677
|
+
mediaId: string | undefined;
|
|
678
|
+
/**
|
|
679
|
+
* <p>The unique identifier of the originating phone number associated with the media. Phone
|
|
680
|
+
* number identifiers are formatted as
|
|
681
|
+
* <code>phone-number-id-01234567890123456789012345678901</code>. Use
|
|
682
|
+
* <a href="https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html">GetLinkedWhatsAppBusinessAccount</a> to find a phone number's
|
|
683
|
+
* id.</p>
|
|
684
|
+
* @public
|
|
685
|
+
*/
|
|
686
|
+
originationPhoneNumberId: string | undefined;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* @public
|
|
690
|
+
*/
|
|
691
|
+
export interface DeleteWhatsAppMessageMediaOutput {
|
|
692
|
+
/**
|
|
693
|
+
* <p>Success indicator for deleting the media file.</p>
|
|
694
|
+
* @public
|
|
695
|
+
*/
|
|
696
|
+
success?: boolean | undefined;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* @public
|
|
700
|
+
*/
|
|
701
|
+
export interface DeleteWhatsAppMessageTemplateInput {
|
|
702
|
+
/**
|
|
703
|
+
* <p>The numeric ID of the template assigned by Meta.</p>
|
|
704
|
+
* @public
|
|
705
|
+
*/
|
|
706
|
+
metaTemplateId?: string | undefined;
|
|
707
|
+
/**
|
|
708
|
+
* <p>If true, deletes all language versions of the template.</p>
|
|
709
|
+
* @public
|
|
710
|
+
*/
|
|
711
|
+
deleteAllLanguages?: boolean | undefined;
|
|
712
|
+
/**
|
|
713
|
+
* <p>The ID of the WhatsApp Business Account associated with this template.</p>
|
|
714
|
+
* @public
|
|
715
|
+
*/
|
|
716
|
+
id: string | undefined;
|
|
717
|
+
/**
|
|
718
|
+
* <p>The name of the template to delete.</p>
|
|
719
|
+
* @public
|
|
720
|
+
*/
|
|
721
|
+
templateName: string | undefined;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* @public
|
|
725
|
+
*/
|
|
726
|
+
export interface DeleteWhatsAppMessageTemplateOutput {
|
|
727
|
+
}
|
|
462
728
|
/**
|
|
463
729
|
* @public
|
|
464
730
|
*/
|
|
@@ -529,6 +795,11 @@ export interface WhatsAppPhoneNumberSummary {
|
|
|
529
795
|
* @public
|
|
530
796
|
*/
|
|
531
797
|
qualityRating: string | undefined;
|
|
798
|
+
/**
|
|
799
|
+
* <p>The geographic region where the WhatsApp phone number's data is stored and processed.</p>
|
|
800
|
+
* @public
|
|
801
|
+
*/
|
|
802
|
+
dataLocalizationRegion?: string | undefined;
|
|
532
803
|
}
|
|
533
804
|
/**
|
|
534
805
|
* <p>The details of your linked WhatsApp Business Account.</p>
|
|
@@ -615,22 +886,6 @@ export interface GetLinkedWhatsAppBusinessAccountPhoneNumberOutput {
|
|
|
615
886
|
*/
|
|
616
887
|
linkedWhatsAppBusinessAccountId?: string | undefined;
|
|
617
888
|
}
|
|
618
|
-
/**
|
|
619
|
-
* <p>Contains information for the S3 bucket that contains media files.</p>
|
|
620
|
-
* @public
|
|
621
|
-
*/
|
|
622
|
-
export interface S3File {
|
|
623
|
-
/**
|
|
624
|
-
* <p>The bucket name.</p>
|
|
625
|
-
* @public
|
|
626
|
-
*/
|
|
627
|
-
bucketName: string | undefined;
|
|
628
|
-
/**
|
|
629
|
-
* <p>The object key of the media file.</p>
|
|
630
|
-
* @public
|
|
631
|
-
*/
|
|
632
|
-
key: string | undefined;
|
|
633
|
-
}
|
|
634
889
|
/**
|
|
635
890
|
* <p>You can use presigned URLs to grant time-limited access to objects in Amazon S3 without updating your bucket policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html">Working with presigned URLs</a> in the <i>Amazon S3
|
|
636
891
|
* User Guide</i>.</p>
|
|
@@ -699,6 +954,72 @@ export interface GetWhatsAppMessageMediaOutput {
|
|
|
699
954
|
*/
|
|
700
955
|
fileSize?: number | undefined;
|
|
701
956
|
}
|
|
957
|
+
/**
|
|
958
|
+
* @public
|
|
959
|
+
*/
|
|
960
|
+
export interface GetWhatsAppMessageTemplateInput {
|
|
961
|
+
/**
|
|
962
|
+
* <p>The numeric ID of the template assigned by Meta.</p>
|
|
963
|
+
* @public
|
|
964
|
+
*/
|
|
965
|
+
metaTemplateId: string | undefined;
|
|
966
|
+
/**
|
|
967
|
+
* <p>The ID of the WhatsApp Business Account associated with this template.</p>
|
|
968
|
+
* @public
|
|
969
|
+
*/
|
|
970
|
+
id: string | undefined;
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* @public
|
|
974
|
+
*/
|
|
975
|
+
export interface GetWhatsAppMessageTemplateOutput {
|
|
976
|
+
/**
|
|
977
|
+
* <p>The complete template definition as a JSON string (maximum 6000 characters).</p>
|
|
978
|
+
* @public
|
|
979
|
+
*/
|
|
980
|
+
template?: string | undefined;
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* <p>Defines a button in a template from Meta's library.</p>
|
|
984
|
+
* @public
|
|
985
|
+
*/
|
|
986
|
+
export interface LibraryTemplateButtonList {
|
|
987
|
+
/**
|
|
988
|
+
* <p>The type of button (for example, QUICK_REPLY, CALL, or URL).</p>
|
|
989
|
+
* @public
|
|
990
|
+
*/
|
|
991
|
+
type?: string | undefined;
|
|
992
|
+
/**
|
|
993
|
+
* <p>The text displayed on the button (maximum 40 characters).</p>
|
|
994
|
+
* @public
|
|
995
|
+
*/
|
|
996
|
+
text?: string | undefined;
|
|
997
|
+
/**
|
|
998
|
+
* <p>The phone number in E.164 format for CALL-type buttons.</p>
|
|
999
|
+
* @public
|
|
1000
|
+
*/
|
|
1001
|
+
phoneNumber?: string | undefined;
|
|
1002
|
+
/**
|
|
1003
|
+
* <p>The URL for URL-type buttons.</p>
|
|
1004
|
+
* @public
|
|
1005
|
+
*/
|
|
1006
|
+
url?: string | undefined;
|
|
1007
|
+
/**
|
|
1008
|
+
* <p>The type of one-time password for OTP buttons.</p>
|
|
1009
|
+
* @public
|
|
1010
|
+
*/
|
|
1011
|
+
otpType?: string | undefined;
|
|
1012
|
+
/**
|
|
1013
|
+
* <p>When true, indicates acceptance of zero-tap terms for the button.</p>
|
|
1014
|
+
* @public
|
|
1015
|
+
*/
|
|
1016
|
+
zeroTapTermsAccepted?: boolean | undefined;
|
|
1017
|
+
/**
|
|
1018
|
+
* <p>List of supported applications for this button type.</p>
|
|
1019
|
+
* @public
|
|
1020
|
+
*/
|
|
1021
|
+
supportedApps?: Record<string, string>[] | undefined;
|
|
1022
|
+
}
|
|
702
1023
|
/**
|
|
703
1024
|
* @public
|
|
704
1025
|
*/
|
|
@@ -888,6 +1209,173 @@ export interface ListTagsForResourceOutput {
|
|
|
888
1209
|
*/
|
|
889
1210
|
tags?: Tag[] | undefined;
|
|
890
1211
|
}
|
|
1212
|
+
/**
|
|
1213
|
+
* @public
|
|
1214
|
+
*/
|
|
1215
|
+
export interface ListWhatsAppMessageTemplatesInput {
|
|
1216
|
+
/**
|
|
1217
|
+
* <p>The ID of the WhatsApp Business Account to list templates for.</p>
|
|
1218
|
+
* @public
|
|
1219
|
+
*/
|
|
1220
|
+
id: string | undefined;
|
|
1221
|
+
/**
|
|
1222
|
+
* <p>The token for the next page of results.</p>
|
|
1223
|
+
* @public
|
|
1224
|
+
*/
|
|
1225
|
+
nextToken?: string | undefined;
|
|
1226
|
+
/**
|
|
1227
|
+
* <p>The maximum number of results to return per page (1-100).</p>
|
|
1228
|
+
* @public
|
|
1229
|
+
*/
|
|
1230
|
+
maxResults?: number | undefined;
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* <p>Provides a summary of a WhatsApp message template's key attributes.</p>
|
|
1234
|
+
* @public
|
|
1235
|
+
*/
|
|
1236
|
+
export interface TemplateSummary {
|
|
1237
|
+
/**
|
|
1238
|
+
* <p>The name of the template.</p>
|
|
1239
|
+
* @public
|
|
1240
|
+
*/
|
|
1241
|
+
templateName?: string | undefined;
|
|
1242
|
+
/**
|
|
1243
|
+
* <p>The numeric ID assigned to the template by Meta.</p>
|
|
1244
|
+
* @public
|
|
1245
|
+
*/
|
|
1246
|
+
metaTemplateId?: string | undefined;
|
|
1247
|
+
/**
|
|
1248
|
+
* <p>The current status of the template (for example, APPROVED, PENDING, or REJECTED).</p>
|
|
1249
|
+
* @public
|
|
1250
|
+
*/
|
|
1251
|
+
templateStatus?: string | undefined;
|
|
1252
|
+
/**
|
|
1253
|
+
* <p>The quality score assigned to the template by Meta.</p>
|
|
1254
|
+
* @public
|
|
1255
|
+
*/
|
|
1256
|
+
templateQualityScore?: string | undefined;
|
|
1257
|
+
/**
|
|
1258
|
+
* <p>The language code of the template (for example, en_US).</p>
|
|
1259
|
+
* @public
|
|
1260
|
+
*/
|
|
1261
|
+
templateLanguage?: string | undefined;
|
|
1262
|
+
/**
|
|
1263
|
+
* <p>The category of the template (for example, UTILITY or MARKETING).</p>
|
|
1264
|
+
* @public
|
|
1265
|
+
*/
|
|
1266
|
+
templateCategory?: string | undefined;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* @public
|
|
1270
|
+
*/
|
|
1271
|
+
export interface ListWhatsAppMessageTemplatesOutput {
|
|
1272
|
+
/**
|
|
1273
|
+
* <p>A list of template summaries.</p>
|
|
1274
|
+
* @public
|
|
1275
|
+
*/
|
|
1276
|
+
templates?: TemplateSummary[] | undefined;
|
|
1277
|
+
/**
|
|
1278
|
+
* <p>The token to retrieve the next page of results, if any.</p>
|
|
1279
|
+
* @public
|
|
1280
|
+
*/
|
|
1281
|
+
nextToken?: string | undefined;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* @public
|
|
1285
|
+
*/
|
|
1286
|
+
export interface ListWhatsAppTemplateLibraryInput {
|
|
1287
|
+
/**
|
|
1288
|
+
* <p>The token for the next page of results.</p>
|
|
1289
|
+
* @public
|
|
1290
|
+
*/
|
|
1291
|
+
nextToken?: string | undefined;
|
|
1292
|
+
/**
|
|
1293
|
+
* <p>The maximum number of results to return per page (1-100).</p>
|
|
1294
|
+
* @public
|
|
1295
|
+
*/
|
|
1296
|
+
maxResults?: number | undefined;
|
|
1297
|
+
/**
|
|
1298
|
+
* <p>The ID of the WhatsApp Business Account to list library templates for.</p>
|
|
1299
|
+
* @public
|
|
1300
|
+
*/
|
|
1301
|
+
id: string | undefined;
|
|
1302
|
+
/**
|
|
1303
|
+
* <p>Map of filters to apply (searchKey, topic, usecase, industry, language).</p>
|
|
1304
|
+
* @public
|
|
1305
|
+
*/
|
|
1306
|
+
filters?: Record<string, string> | undefined;
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
* <p>Defines the complete structure and content of a template in Meta's library.</p>
|
|
1310
|
+
* @public
|
|
1311
|
+
*/
|
|
1312
|
+
export interface MetaLibraryTemplateDefinition {
|
|
1313
|
+
/**
|
|
1314
|
+
* <p>The name of the template.</p>
|
|
1315
|
+
* @public
|
|
1316
|
+
*/
|
|
1317
|
+
templateName?: string | undefined;
|
|
1318
|
+
/**
|
|
1319
|
+
* <p>The language code for the template (for example, en_US).</p>
|
|
1320
|
+
* @public
|
|
1321
|
+
*/
|
|
1322
|
+
templateLanguage?: string | undefined;
|
|
1323
|
+
/**
|
|
1324
|
+
* <p>The category of the template (for example, UTILITY or MARKETING).</p>
|
|
1325
|
+
* @public
|
|
1326
|
+
*/
|
|
1327
|
+
templateCategory?: string | undefined;
|
|
1328
|
+
/**
|
|
1329
|
+
* <p>The topic or subject matter of the template.</p>
|
|
1330
|
+
* @public
|
|
1331
|
+
*/
|
|
1332
|
+
templateTopic?: string | undefined;
|
|
1333
|
+
/**
|
|
1334
|
+
* <p>The intended use case for the template.</p>
|
|
1335
|
+
* @public
|
|
1336
|
+
*/
|
|
1337
|
+
templateUseCase?: string | undefined;
|
|
1338
|
+
/**
|
|
1339
|
+
* <p>The industries the template is designed for.</p>
|
|
1340
|
+
* @public
|
|
1341
|
+
*/
|
|
1342
|
+
templateIndustry?: string[] | undefined;
|
|
1343
|
+
/**
|
|
1344
|
+
* <p>The header text of the template.</p>
|
|
1345
|
+
* @public
|
|
1346
|
+
*/
|
|
1347
|
+
templateHeader?: string | undefined;
|
|
1348
|
+
/**
|
|
1349
|
+
* <p>The body text of the template.</p>
|
|
1350
|
+
* @public
|
|
1351
|
+
*/
|
|
1352
|
+
templateBody?: string | undefined;
|
|
1353
|
+
/**
|
|
1354
|
+
* <p>The buttons included in the template.</p>
|
|
1355
|
+
* @public
|
|
1356
|
+
*/
|
|
1357
|
+
templateButtons?: LibraryTemplateButtonList[] | undefined;
|
|
1358
|
+
/**
|
|
1359
|
+
* <p>The ID of the template in Meta's library.</p>
|
|
1360
|
+
* @public
|
|
1361
|
+
*/
|
|
1362
|
+
templateId?: string | undefined;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* @public
|
|
1366
|
+
*/
|
|
1367
|
+
export interface ListWhatsAppTemplateLibraryOutput {
|
|
1368
|
+
/**
|
|
1369
|
+
* <p>A list of templates from Meta's library.</p>
|
|
1370
|
+
* @public
|
|
1371
|
+
*/
|
|
1372
|
+
metaLibraryTemplates?: MetaLibraryTemplateDefinition[] | undefined;
|
|
1373
|
+
/**
|
|
1374
|
+
* <p>The token to retrieve the next page of results, if any.</p>
|
|
1375
|
+
* @public
|
|
1376
|
+
*/
|
|
1377
|
+
nextToken?: string | undefined;
|
|
1378
|
+
}
|
|
891
1379
|
/**
|
|
892
1380
|
* @public
|
|
893
1381
|
*/
|
|
@@ -938,6 +1426,36 @@ export interface UntagResourceOutput {
|
|
|
938
1426
|
*/
|
|
939
1427
|
statusCode?: number | undefined;
|
|
940
1428
|
}
|
|
1429
|
+
/**
|
|
1430
|
+
* @public
|
|
1431
|
+
*/
|
|
1432
|
+
export interface UpdateWhatsAppMessageTemplateInput {
|
|
1433
|
+
/**
|
|
1434
|
+
* <p>The ID of the WhatsApp Business Account associated with this template.</p>
|
|
1435
|
+
* @public
|
|
1436
|
+
*/
|
|
1437
|
+
id: string | undefined;
|
|
1438
|
+
/**
|
|
1439
|
+
* <p>The numeric ID of the template assigned by Meta.</p>
|
|
1440
|
+
* @public
|
|
1441
|
+
*/
|
|
1442
|
+
metaTemplateId: string | undefined;
|
|
1443
|
+
/**
|
|
1444
|
+
* <p>The new category for the template (for example, UTILITY or MARKETING).</p>
|
|
1445
|
+
* @public
|
|
1446
|
+
*/
|
|
1447
|
+
templateCategory?: string | undefined;
|
|
1448
|
+
/**
|
|
1449
|
+
* <p>The updated components of the template as a JSON blob (maximum 3000 characters).</p>
|
|
1450
|
+
* @public
|
|
1451
|
+
*/
|
|
1452
|
+
templateComponents?: Uint8Array | undefined;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* @public
|
|
1456
|
+
*/
|
|
1457
|
+
export interface UpdateWhatsAppMessageTemplateOutput {
|
|
1458
|
+
}
|
|
941
1459
|
/**
|
|
942
1460
|
* @internal
|
|
943
1461
|
*/
|
|
@@ -962,6 +1480,10 @@ export declare const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog: (
|
|
|
962
1480
|
* @internal
|
|
963
1481
|
*/
|
|
964
1482
|
export declare const S3FileFilterSensitiveLog: (obj: S3File) => any;
|
|
1483
|
+
/**
|
|
1484
|
+
* @internal
|
|
1485
|
+
*/
|
|
1486
|
+
export declare const CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog: (obj: CreateWhatsAppMessageTemplateMediaInput) => any;
|
|
965
1487
|
/**
|
|
966
1488
|
* @internal
|
|
967
1489
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListWhatsAppMessageTemplatesCommandInput, ListWhatsAppMessageTemplatesCommandOutput } from "../commands/ListWhatsAppMessageTemplatesCommand";
|
|
3
|
+
import { SocialMessagingPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListWhatsAppMessageTemplates: (config: SocialMessagingPaginationConfiguration, input: ListWhatsAppMessageTemplatesCommandInput, ...rest: any[]) => Paginator<ListWhatsAppMessageTemplatesCommandOutput>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput } from "../commands/ListWhatsAppTemplateLibraryCommand";
|
|
3
|
+
import { SocialMessagingPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListWhatsAppTemplateLibrary: (config: SocialMessagingPaginationConfiguration, input: ListWhatsAppTemplateLibraryCommandInput, ...rest: any[]) => Paginator<ListWhatsAppTemplateLibraryCommandOutput>;
|