@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.
Files changed (67) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/SocialMessaging.js +16 -0
  3. package/dist-cjs/commands/CreateWhatsAppMessageTemplateCommand.js +26 -0
  4. package/dist-cjs/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +26 -0
  5. package/dist-cjs/commands/CreateWhatsAppMessageTemplateMediaCommand.js +27 -0
  6. package/dist-cjs/commands/DeleteWhatsAppMessageTemplateCommand.js +26 -0
  7. package/dist-cjs/commands/GetWhatsAppMessageTemplateCommand.js +26 -0
  8. package/dist-cjs/commands/ListWhatsAppMessageTemplatesCommand.js +26 -0
  9. package/dist-cjs/commands/ListWhatsAppTemplateLibraryCommand.js +26 -0
  10. package/dist-cjs/commands/UpdateWhatsAppMessageTemplateCommand.js +26 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/models/models_0.js +19 -1
  13. package/dist-cjs/pagination/ListWhatsAppMessageTemplatesPaginator.js +7 -0
  14. package/dist-cjs/pagination/ListWhatsAppTemplateLibraryPaginator.js +7 -0
  15. package/dist-cjs/pagination/index.js +2 -0
  16. package/dist-cjs/protocols/Aws_restJson1.js +265 -4
  17. package/dist-es/SocialMessaging.js +16 -0
  18. package/dist-es/commands/CreateWhatsAppMessageTemplateCommand.js +22 -0
  19. package/dist-es/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +22 -0
  20. package/dist-es/commands/CreateWhatsAppMessageTemplateMediaCommand.js +23 -0
  21. package/dist-es/commands/DeleteWhatsAppMessageTemplateCommand.js +22 -0
  22. package/dist-es/commands/GetWhatsAppMessageTemplateCommand.js +22 -0
  23. package/dist-es/commands/ListWhatsAppMessageTemplatesCommand.js +22 -0
  24. package/dist-es/commands/ListWhatsAppTemplateLibraryCommand.js +22 -0
  25. package/dist-es/commands/UpdateWhatsAppMessageTemplateCommand.js +22 -0
  26. package/dist-es/commands/index.js +8 -0
  27. package/dist-es/models/models_0.js +16 -0
  28. package/dist-es/pagination/ListWhatsAppMessageTemplatesPaginator.js +4 -0
  29. package/dist-es/pagination/ListWhatsAppTemplateLibraryPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +2 -0
  31. package/dist-es/protocols/Aws_restJson1.js +249 -4
  32. package/dist-types/SocialMessaging.d.ts +56 -0
  33. package/dist-types/SocialMessagingClient.d.ts +10 -2
  34. package/dist-types/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +5 -0
  35. package/dist-types/commands/CreateWhatsAppMessageTemplateCommand.d.ts +97 -0
  36. package/dist-types/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +125 -0
  37. package/dist-types/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +98 -0
  38. package/dist-types/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +95 -0
  39. package/dist-types/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +1 -0
  40. package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +1 -0
  41. package/dist-types/commands/GetWhatsAppMessageTemplateCommand.d.ts +95 -0
  42. package/dist-types/commands/ListWhatsAppMessageTemplatesCommand.d.ts +106 -0
  43. package/dist-types/commands/ListWhatsAppTemplateLibraryCommand.d.ts +129 -0
  44. package/dist-types/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +95 -0
  45. package/dist-types/commands/index.d.ts +8 -0
  46. package/dist-types/models/models_0.d.ts +550 -28
  47. package/dist-types/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +7 -0
  48. package/dist-types/pagination/ListWhatsAppTemplateLibraryPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +2 -0
  50. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  51. package/dist-types/ts3.4/SocialMessaging.d.ts +148 -0
  52. package/dist-types/ts3.4/SocialMessagingClient.d.ts +50 -2
  53. package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateCommand.d.ts +51 -0
  54. package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/GetWhatsAppMessageTemplateCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/ListWhatsAppMessageTemplatesCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/ListWhatsAppTemplateLibraryCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +139 -9
  63. package/dist-types/ts3.4/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListWhatsAppTemplateLibraryPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  67. package/package.json +5 -5
@@ -0,0 +1,129 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListWhatsAppTemplateLibraryInput, ListWhatsAppTemplateLibraryOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListWhatsAppTemplateLibraryCommand}.
14
+ */
15
+ export interface ListWhatsAppTemplateLibraryCommandInput extends ListWhatsAppTemplateLibraryInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListWhatsAppTemplateLibraryCommand}.
21
+ */
22
+ export interface ListWhatsAppTemplateLibraryCommandOutput extends ListWhatsAppTemplateLibraryOutput, __MetadataBearer {
23
+ }
24
+ declare const ListWhatsAppTemplateLibraryCommand_base: {
25
+ new (input: ListWhatsAppTemplateLibraryCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListWhatsAppTemplateLibraryCommandInput): import("@smithy/smithy-client").CommandImpl<ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists templates available in Meta's template library for WhatsApp messaging.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SocialMessagingClient, ListWhatsAppTemplateLibraryCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
35
+ * // const { SocialMessagingClient, ListWhatsAppTemplateLibraryCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
36
+ * const client = new SocialMessagingClient(config);
37
+ * const input = { // ListWhatsAppTemplateLibraryInput
38
+ * nextToken: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * id: "STRING_VALUE", // required
41
+ * filters: { // Filter
42
+ * "<keys>": "STRING_VALUE",
43
+ * },
44
+ * };
45
+ * const command = new ListWhatsAppTemplateLibraryCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListWhatsAppTemplateLibraryOutput
48
+ * // metaLibraryTemplates: [ // MetaLibraryTemplatesList
49
+ * // { // MetaLibraryTemplateDefinition
50
+ * // templateName: "STRING_VALUE",
51
+ * // templateLanguage: "STRING_VALUE",
52
+ * // templateCategory: "STRING_VALUE",
53
+ * // templateTopic: "STRING_VALUE",
54
+ * // templateUseCase: "STRING_VALUE",
55
+ * // templateIndustry: [ // MetaIndustries
56
+ * // "STRING_VALUE",
57
+ * // ],
58
+ * // templateHeader: "STRING_VALUE",
59
+ * // templateBody: "STRING_VALUE",
60
+ * // templateButtons: [ // MetaLibraryTemplateButtonList
61
+ * // { // LibraryTemplateButtonList
62
+ * // type: "STRING_VALUE",
63
+ * // text: "STRING_VALUE",
64
+ * // phoneNumber: "STRING_VALUE",
65
+ * // url: "STRING_VALUE",
66
+ * // otpType: "STRING_VALUE",
67
+ * // zeroTapTermsAccepted: true || false,
68
+ * // supportedApps: [ // SupportedApps
69
+ * // { // SupportedApp
70
+ * // "<keys>": "STRING_VALUE",
71
+ * // },
72
+ * // ],
73
+ * // },
74
+ * // ],
75
+ * // templateId: "STRING_VALUE",
76
+ * // },
77
+ * // ],
78
+ * // nextToken: "STRING_VALUE",
79
+ * // };
80
+ *
81
+ * ```
82
+ *
83
+ * @param ListWhatsAppTemplateLibraryCommandInput - {@link ListWhatsAppTemplateLibraryCommandInput}
84
+ * @returns {@link ListWhatsAppTemplateLibraryCommandOutput}
85
+ * @see {@link ListWhatsAppTemplateLibraryCommandInput} for command's `input` shape.
86
+ * @see {@link ListWhatsAppTemplateLibraryCommandOutput} for command's `response` shape.
87
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
88
+ *
89
+ * @throws {@link DependencyException} (server fault)
90
+ * <p>Thrown when performing an action because a dependency would be broken.</p>
91
+ *
92
+ * @throws {@link InternalServiceException} (server fault)
93
+ * <p>The request processing has failed because of an unknown error, exception, or
94
+ * failure.</p>
95
+ *
96
+ * @throws {@link InvalidParametersException} (client fault)
97
+ * <p>One or more parameters provided to the action are not valid.</p>
98
+ *
99
+ * @throws {@link ResourceNotFoundException} (client fault)
100
+ * <p>The resource was not found.</p>
101
+ *
102
+ * @throws {@link ThrottledRequestException} (client fault)
103
+ * <p>The request was denied due to request throttling.</p>
104
+ *
105
+ * @throws {@link AccessDeniedException} (client fault)
106
+ * <p>You do not have sufficient access to perform this action.</p>
107
+ *
108
+ * @throws {@link ValidationException} (client fault)
109
+ * <p>The request contains an invalid parameter value. </p>
110
+ *
111
+ * @throws {@link SocialMessagingServiceException}
112
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
113
+ *
114
+ *
115
+ * @public
116
+ */
117
+ export declare class ListWhatsAppTemplateLibraryCommand extends ListWhatsAppTemplateLibraryCommand_base {
118
+ /** @internal type navigation helper, not in runtime. */
119
+ protected static __types: {
120
+ api: {
121
+ input: ListWhatsAppTemplateLibraryInput;
122
+ output: ListWhatsAppTemplateLibraryOutput;
123
+ };
124
+ sdk: {
125
+ input: ListWhatsAppTemplateLibraryCommandInput;
126
+ output: ListWhatsAppTemplateLibraryCommandOutput;
127
+ };
128
+ };
129
+ }
@@ -0,0 +1,95 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateWhatsAppMessageTemplateInput, UpdateWhatsAppMessageTemplateOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SocialMessagingClientResolvedConfig } from "../SocialMessagingClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateWhatsAppMessageTemplateCommand}.
14
+ */
15
+ export interface UpdateWhatsAppMessageTemplateCommandInput extends UpdateWhatsAppMessageTemplateInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateWhatsAppMessageTemplateCommand}.
21
+ */
22
+ export interface UpdateWhatsAppMessageTemplateCommandOutput extends UpdateWhatsAppMessageTemplateOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateWhatsAppMessageTemplateCommand_base: {
25
+ new (input: UpdateWhatsAppMessageTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWhatsAppMessageTemplateCommandInput, UpdateWhatsAppMessageTemplateCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateWhatsAppMessageTemplateCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWhatsAppMessageTemplateCommandInput, UpdateWhatsAppMessageTemplateCommandOutput, SocialMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing WhatsApp message template.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SocialMessagingClient, UpdateWhatsAppMessageTemplateCommand } from "@aws-sdk/client-socialmessaging"; // ES Modules import
35
+ * // const { SocialMessagingClient, UpdateWhatsAppMessageTemplateCommand } = require("@aws-sdk/client-socialmessaging"); // CommonJS import
36
+ * const client = new SocialMessagingClient(config);
37
+ * const input = { // UpdateWhatsAppMessageTemplateInput
38
+ * id: "STRING_VALUE", // required
39
+ * metaTemplateId: "STRING_VALUE", // required
40
+ * templateCategory: "STRING_VALUE",
41
+ * templateComponents: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
42
+ * };
43
+ * const command = new UpdateWhatsAppMessageTemplateCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param UpdateWhatsAppMessageTemplateCommandInput - {@link UpdateWhatsAppMessageTemplateCommandInput}
50
+ * @returns {@link UpdateWhatsAppMessageTemplateCommandOutput}
51
+ * @see {@link UpdateWhatsAppMessageTemplateCommandInput} for command's `input` shape.
52
+ * @see {@link UpdateWhatsAppMessageTemplateCommandOutput} for command's `response` shape.
53
+ * @see {@link SocialMessagingClientResolvedConfig | config} for SocialMessagingClient's `config` shape.
54
+ *
55
+ * @throws {@link DependencyException} (server fault)
56
+ * <p>Thrown when performing an action because a dependency would be broken.</p>
57
+ *
58
+ * @throws {@link InternalServiceException} (server fault)
59
+ * <p>The request processing has failed because of an unknown error, exception, or
60
+ * failure.</p>
61
+ *
62
+ * @throws {@link InvalidParametersException} (client fault)
63
+ * <p>One or more parameters provided to the action are not valid.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>The resource was not found.</p>
67
+ *
68
+ * @throws {@link ThrottledRequestException} (client fault)
69
+ * <p>The request was denied due to request throttling.</p>
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You do not have sufficient access to perform this action.</p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>The request contains an invalid parameter value. </p>
76
+ *
77
+ * @throws {@link SocialMessagingServiceException}
78
+ * <p>Base exception class for all service exceptions from SocialMessaging service.</p>
79
+ *
80
+ *
81
+ * @public
82
+ */
83
+ export declare class UpdateWhatsAppMessageTemplateCommand extends UpdateWhatsAppMessageTemplateCommand_base {
84
+ /** @internal type navigation helper, not in runtime. */
85
+ protected static __types: {
86
+ api: {
87
+ input: UpdateWhatsAppMessageTemplateInput;
88
+ output: {};
89
+ };
90
+ sdk: {
91
+ input: UpdateWhatsAppMessageTemplateCommandInput;
92
+ output: UpdateWhatsAppMessageTemplateCommandOutput;
93
+ };
94
+ };
95
+ }
@@ -1,13 +1,21 @@
1
1
  export * from "./AssociateWhatsAppBusinessAccountCommand";
2
+ export * from "./CreateWhatsAppMessageTemplateCommand";
3
+ export * from "./CreateWhatsAppMessageTemplateFromLibraryCommand";
4
+ export * from "./CreateWhatsAppMessageTemplateMediaCommand";
2
5
  export * from "./DeleteWhatsAppMessageMediaCommand";
6
+ export * from "./DeleteWhatsAppMessageTemplateCommand";
3
7
  export * from "./DisassociateWhatsAppBusinessAccountCommand";
4
8
  export * from "./GetLinkedWhatsAppBusinessAccountCommand";
5
9
  export * from "./GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
6
10
  export * from "./GetWhatsAppMessageMediaCommand";
11
+ export * from "./GetWhatsAppMessageTemplateCommand";
7
12
  export * from "./ListLinkedWhatsAppBusinessAccountsCommand";
8
13
  export * from "./ListTagsForResourceCommand";
14
+ export * from "./ListWhatsAppMessageTemplatesCommand";
15
+ export * from "./ListWhatsAppTemplateLibraryCommand";
9
16
  export * from "./PostWhatsAppMessageMediaCommand";
10
17
  export * from "./PutWhatsAppBusinessAccountEventDestinationsCommand";
11
18
  export * from "./SendWhatsAppMessageCommand";
12
19
  export * from "./TagResourceCommand";
13
20
  export * from "./UntagResourceCommand";
21
+ export * from "./UpdateWhatsAppMessageTemplateCommand";