@aws-sdk/client-socialmessaging 3.848.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 +1 -1
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ GetWhatsAppMessageTemplateInput,
5
+ GetWhatsAppMessageTemplateOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SocialMessagingClientResolvedConfig,
11
+ } from "../SocialMessagingClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetWhatsAppMessageTemplateCommandInput
15
+ extends GetWhatsAppMessageTemplateInput {}
16
+ export interface GetWhatsAppMessageTemplateCommandOutput
17
+ extends GetWhatsAppMessageTemplateOutput,
18
+ __MetadataBearer {}
19
+ declare const GetWhatsAppMessageTemplateCommand_base: {
20
+ new (
21
+ input: GetWhatsAppMessageTemplateCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ GetWhatsAppMessageTemplateCommandInput,
24
+ GetWhatsAppMessageTemplateCommandOutput,
25
+ SocialMessagingClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: GetWhatsAppMessageTemplateCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ GetWhatsAppMessageTemplateCommandInput,
33
+ GetWhatsAppMessageTemplateCommandOutput,
34
+ SocialMessagingClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class GetWhatsAppMessageTemplateCommand extends GetWhatsAppMessageTemplateCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: GetWhatsAppMessageTemplateInput;
44
+ output: GetWhatsAppMessageTemplateOutput;
45
+ };
46
+ sdk: {
47
+ input: GetWhatsAppMessageTemplateCommandInput;
48
+ output: GetWhatsAppMessageTemplateCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ListWhatsAppMessageTemplatesInput,
5
+ ListWhatsAppMessageTemplatesOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SocialMessagingClientResolvedConfig,
11
+ } from "../SocialMessagingClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListWhatsAppMessageTemplatesCommandInput
15
+ extends ListWhatsAppMessageTemplatesInput {}
16
+ export interface ListWhatsAppMessageTemplatesCommandOutput
17
+ extends ListWhatsAppMessageTemplatesOutput,
18
+ __MetadataBearer {}
19
+ declare const ListWhatsAppMessageTemplatesCommand_base: {
20
+ new (
21
+ input: ListWhatsAppMessageTemplatesCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ ListWhatsAppMessageTemplatesCommandInput,
24
+ ListWhatsAppMessageTemplatesCommandOutput,
25
+ SocialMessagingClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: ListWhatsAppMessageTemplatesCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ ListWhatsAppMessageTemplatesCommandInput,
33
+ ListWhatsAppMessageTemplatesCommandOutput,
34
+ SocialMessagingClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class ListWhatsAppMessageTemplatesCommand extends ListWhatsAppMessageTemplatesCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: ListWhatsAppMessageTemplatesInput;
44
+ output: ListWhatsAppMessageTemplatesOutput;
45
+ };
46
+ sdk: {
47
+ input: ListWhatsAppMessageTemplatesCommandInput;
48
+ output: ListWhatsAppMessageTemplatesCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ListWhatsAppTemplateLibraryInput,
5
+ ListWhatsAppTemplateLibraryOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SocialMessagingClientResolvedConfig,
11
+ } from "../SocialMessagingClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListWhatsAppTemplateLibraryCommandInput
15
+ extends ListWhatsAppTemplateLibraryInput {}
16
+ export interface ListWhatsAppTemplateLibraryCommandOutput
17
+ extends ListWhatsAppTemplateLibraryOutput,
18
+ __MetadataBearer {}
19
+ declare const ListWhatsAppTemplateLibraryCommand_base: {
20
+ new (
21
+ input: ListWhatsAppTemplateLibraryCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ ListWhatsAppTemplateLibraryCommandInput,
24
+ ListWhatsAppTemplateLibraryCommandOutput,
25
+ SocialMessagingClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: ListWhatsAppTemplateLibraryCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ ListWhatsAppTemplateLibraryCommandInput,
33
+ ListWhatsAppTemplateLibraryCommandOutput,
34
+ SocialMessagingClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class ListWhatsAppTemplateLibraryCommand extends ListWhatsAppTemplateLibraryCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: ListWhatsAppTemplateLibraryInput;
44
+ output: ListWhatsAppTemplateLibraryOutput;
45
+ };
46
+ sdk: {
47
+ input: ListWhatsAppTemplateLibraryCommandInput;
48
+ output: ListWhatsAppTemplateLibraryCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ UpdateWhatsAppMessageTemplateInput,
5
+ UpdateWhatsAppMessageTemplateOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ SocialMessagingClientResolvedConfig,
11
+ } from "../SocialMessagingClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface UpdateWhatsAppMessageTemplateCommandInput
15
+ extends UpdateWhatsAppMessageTemplateInput {}
16
+ export interface UpdateWhatsAppMessageTemplateCommandOutput
17
+ extends UpdateWhatsAppMessageTemplateOutput,
18
+ __MetadataBearer {}
19
+ declare const UpdateWhatsAppMessageTemplateCommand_base: {
20
+ new (
21
+ input: UpdateWhatsAppMessageTemplateCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ UpdateWhatsAppMessageTemplateCommandInput,
24
+ UpdateWhatsAppMessageTemplateCommandOutput,
25
+ SocialMessagingClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: UpdateWhatsAppMessageTemplateCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ UpdateWhatsAppMessageTemplateCommandInput,
33
+ UpdateWhatsAppMessageTemplateCommandOutput,
34
+ SocialMessagingClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class UpdateWhatsAppMessageTemplateCommand extends UpdateWhatsAppMessageTemplateCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: UpdateWhatsAppMessageTemplateInput;
44
+ output: {};
45
+ };
46
+ sdk: {
47
+ input: UpdateWhatsAppMessageTemplateCommandInput;
48
+ output: UpdateWhatsAppMessageTemplateCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -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";
@@ -41,6 +41,7 @@ export interface WhatsAppSetupFinalization {
41
41
  }
42
42
  export interface WhatsAppSignupCallback {
43
43
  accessToken: string | undefined;
44
+ callbackUrl?: string | undefined;
44
45
  }
45
46
  export interface AssociateWhatsAppBusinessAccountInput {
46
47
  signupCallback?: WhatsAppSignupCallback | undefined;
@@ -60,6 +61,7 @@ export interface WhatsAppPhoneNumberDetail {
60
61
  displayPhoneNumberName: string | undefined;
61
62
  displayPhoneNumber: string | undefined;
62
63
  qualityRating: string | undefined;
64
+ dataLocalizationRegion?: string | undefined;
63
65
  }
64
66
  export interface LinkedWhatsAppBusinessAccountIdMetaData {
65
67
  accountName?: string | undefined;
@@ -92,6 +94,13 @@ export declare class InvalidParametersException extends __BaseException {
92
94
  opts: __ExceptionOptionType<InvalidParametersException, __BaseException>
93
95
  );
94
96
  }
97
+ export declare class LimitExceededException extends __BaseException {
98
+ readonly name: "LimitExceededException";
99
+ readonly $fault: "client";
100
+ constructor(
101
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
102
+ );
103
+ }
95
104
  export declare class ThrottledRequestException extends __BaseException {
96
105
  readonly name: "ThrottledRequestException";
97
106
  readonly $fault: "client";
@@ -107,12 +116,14 @@ export declare class ValidationException extends __BaseException {
107
116
  opts: __ExceptionOptionType<ValidationException, __BaseException>
108
117
  );
109
118
  }
110
- export interface DeleteWhatsAppMessageMediaInput {
111
- mediaId: string | undefined;
112
- originationPhoneNumberId: string | undefined;
119
+ export interface CreateWhatsAppMessageTemplateInput {
120
+ templateDefinition: Uint8Array | undefined;
121
+ id: string | undefined;
113
122
  }
114
- export interface DeleteWhatsAppMessageMediaOutput {
115
- success?: boolean | undefined;
123
+ export interface CreateWhatsAppMessageTemplateOutput {
124
+ metaTemplateId?: string | undefined;
125
+ templateStatus?: string | undefined;
126
+ category?: string | undefined;
116
127
  }
117
128
  export declare class InternalServiceException extends __BaseException {
118
129
  readonly name: "InternalServiceException";
@@ -129,6 +140,63 @@ export declare class ResourceNotFoundException extends __BaseException {
129
140
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
130
141
  );
131
142
  }
143
+ export interface LibraryTemplateBodyInputs {
144
+ addContactNumber?: boolean | undefined;
145
+ addLearnMoreLink?: boolean | undefined;
146
+ addSecurityRecommendation?: boolean | undefined;
147
+ addTrackPackageLink?: boolean | undefined;
148
+ codeExpirationMinutes?: number | undefined;
149
+ }
150
+ export interface LibraryTemplateButtonInput {
151
+ type?: string | undefined;
152
+ phoneNumber?: string | undefined;
153
+ url?: Record<string, string> | undefined;
154
+ otpType?: string | undefined;
155
+ zeroTapTermsAccepted?: boolean | undefined;
156
+ supportedApps?: Record<string, string>[] | undefined;
157
+ }
158
+ export interface MetaLibraryTemplate {
159
+ templateName: string | undefined;
160
+ libraryTemplateName: string | undefined;
161
+ templateCategory: string | undefined;
162
+ templateLanguage: string | undefined;
163
+ libraryTemplateButtonInputs?: LibraryTemplateButtonInput[] | undefined;
164
+ libraryTemplateBodyInputs?: LibraryTemplateBodyInputs | undefined;
165
+ }
166
+ export interface CreateWhatsAppMessageTemplateFromLibraryInput {
167
+ metaLibraryTemplate: MetaLibraryTemplate | undefined;
168
+ id: string | undefined;
169
+ }
170
+ export interface CreateWhatsAppMessageTemplateFromLibraryOutput {
171
+ metaTemplateId?: string | undefined;
172
+ templateStatus?: string | undefined;
173
+ category?: string | undefined;
174
+ }
175
+ export interface S3File {
176
+ bucketName: string | undefined;
177
+ key: string | undefined;
178
+ }
179
+ export interface CreateWhatsAppMessageTemplateMediaInput {
180
+ id: string | undefined;
181
+ sourceS3File?: S3File | undefined;
182
+ }
183
+ export interface CreateWhatsAppMessageTemplateMediaOutput {
184
+ metaHeaderHandle?: string | undefined;
185
+ }
186
+ export interface DeleteWhatsAppMessageMediaInput {
187
+ mediaId: string | undefined;
188
+ originationPhoneNumberId: string | undefined;
189
+ }
190
+ export interface DeleteWhatsAppMessageMediaOutput {
191
+ success?: boolean | undefined;
192
+ }
193
+ export interface DeleteWhatsAppMessageTemplateInput {
194
+ metaTemplateId?: string | undefined;
195
+ deleteAllLanguages?: boolean | undefined;
196
+ id: string | undefined;
197
+ templateName: string | undefined;
198
+ }
199
+ export interface DeleteWhatsAppMessageTemplateOutput {}
132
200
  export interface DisassociateWhatsAppBusinessAccountInput {
133
201
  id: string | undefined;
134
202
  }
@@ -144,6 +212,7 @@ export interface WhatsAppPhoneNumberSummary {
144
212
  displayPhoneNumberName: string | undefined;
145
213
  displayPhoneNumber: string | undefined;
146
214
  qualityRating: string | undefined;
215
+ dataLocalizationRegion?: string | undefined;
147
216
  }
148
217
  export interface LinkedWhatsAppBusinessAccount {
149
218
  arn: string | undefined;
@@ -165,10 +234,6 @@ export interface GetLinkedWhatsAppBusinessAccountPhoneNumberOutput {
165
234
  phoneNumber?: WhatsAppPhoneNumberDetail | undefined;
166
235
  linkedWhatsAppBusinessAccountId?: string | undefined;
167
236
  }
168
- export interface S3File {
169
- bucketName: string | undefined;
170
- key: string | undefined;
171
- }
172
237
  export interface S3PresignedUrl {
173
238
  url: string | undefined;
174
239
  headers: Record<string, string> | undefined;
@@ -184,6 +249,22 @@ export interface GetWhatsAppMessageMediaOutput {
184
249
  mimeType?: string | undefined;
185
250
  fileSize?: number | undefined;
186
251
  }
252
+ export interface GetWhatsAppMessageTemplateInput {
253
+ metaTemplateId: string | undefined;
254
+ id: string | undefined;
255
+ }
256
+ export interface GetWhatsAppMessageTemplateOutput {
257
+ template?: string | undefined;
258
+ }
259
+ export interface LibraryTemplateButtonList {
260
+ type?: string | undefined;
261
+ text?: string | undefined;
262
+ phoneNumber?: string | undefined;
263
+ url?: string | undefined;
264
+ otpType?: string | undefined;
265
+ zeroTapTermsAccepted?: boolean | undefined;
266
+ supportedApps?: Record<string, string>[] | undefined;
267
+ }
187
268
  export interface ListLinkedWhatsAppBusinessAccountsInput {
188
269
  nextToken?: string | undefined;
189
270
  maxResults?: number | undefined;
@@ -229,6 +310,45 @@ export interface ListTagsForResourceOutput {
229
310
  statusCode?: number | undefined;
230
311
  tags?: Tag[] | undefined;
231
312
  }
313
+ export interface ListWhatsAppMessageTemplatesInput {
314
+ id: string | undefined;
315
+ nextToken?: string | undefined;
316
+ maxResults?: number | undefined;
317
+ }
318
+ export interface TemplateSummary {
319
+ templateName?: string | undefined;
320
+ metaTemplateId?: string | undefined;
321
+ templateStatus?: string | undefined;
322
+ templateQualityScore?: string | undefined;
323
+ templateLanguage?: string | undefined;
324
+ templateCategory?: string | undefined;
325
+ }
326
+ export interface ListWhatsAppMessageTemplatesOutput {
327
+ templates?: TemplateSummary[] | undefined;
328
+ nextToken?: string | undefined;
329
+ }
330
+ export interface ListWhatsAppTemplateLibraryInput {
331
+ nextToken?: string | undefined;
332
+ maxResults?: number | undefined;
333
+ id: string | undefined;
334
+ filters?: Record<string, string> | undefined;
335
+ }
336
+ export interface MetaLibraryTemplateDefinition {
337
+ templateName?: string | undefined;
338
+ templateLanguage?: string | undefined;
339
+ templateCategory?: string | undefined;
340
+ templateTopic?: string | undefined;
341
+ templateUseCase?: string | undefined;
342
+ templateIndustry?: string[] | undefined;
343
+ templateHeader?: string | undefined;
344
+ templateBody?: string | undefined;
345
+ templateButtons?: LibraryTemplateButtonList[] | undefined;
346
+ templateId?: string | undefined;
347
+ }
348
+ export interface ListWhatsAppTemplateLibraryOutput {
349
+ metaLibraryTemplates?: MetaLibraryTemplateDefinition[] | undefined;
350
+ nextToken?: string | undefined;
351
+ }
232
352
  export interface TagResourceInput {
233
353
  resourceArn: string | undefined;
234
354
  tags: Tag[] | undefined;
@@ -243,6 +363,13 @@ export interface UntagResourceInput {
243
363
  export interface UntagResourceOutput {
244
364
  statusCode?: number | undefined;
245
365
  }
366
+ export interface UpdateWhatsAppMessageTemplateInput {
367
+ id: string | undefined;
368
+ metaTemplateId: string | undefined;
369
+ templateCategory?: string | undefined;
370
+ templateComponents?: Uint8Array | undefined;
371
+ }
372
+ export interface UpdateWhatsAppMessageTemplateOutput {}
246
373
  export declare const WabaPhoneNumberSetupFinalizationFilterSensitiveLog: (
247
374
  obj: WabaPhoneNumberSetupFinalization
248
375
  ) => any;
@@ -259,6 +386,9 @@ export declare const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog: (
259
386
  obj: AssociateWhatsAppBusinessAccountOutput
260
387
  ) => any;
261
388
  export declare const S3FileFilterSensitiveLog: (obj: S3File) => any;
389
+ export declare const CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog: (
390
+ obj: CreateWhatsAppMessageTemplateMediaInput
391
+ ) => any;
262
392
  export declare const S3PresignedUrlFilterSensitiveLog: (
263
393
  obj: S3PresignedUrl
264
394
  ) => any;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListWhatsAppMessageTemplatesCommandInput,
4
+ ListWhatsAppMessageTemplatesCommandOutput,
5
+ } from "../commands/ListWhatsAppMessageTemplatesCommand";
6
+ import { SocialMessagingPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListWhatsAppMessageTemplates: (
8
+ config: SocialMessagingPaginationConfiguration,
9
+ input: ListWhatsAppMessageTemplatesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListWhatsAppMessageTemplatesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListWhatsAppTemplateLibraryCommandInput,
4
+ ListWhatsAppTemplateLibraryCommandOutput,
5
+ } from "../commands/ListWhatsAppTemplateLibraryCommand";
6
+ import { SocialMessagingPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListWhatsAppTemplateLibrary: (
8
+ config: SocialMessagingPaginationConfiguration,
9
+ input: ListWhatsAppTemplateLibraryCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListWhatsAppTemplateLibraryCommandOutput>;
@@ -1,2 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListLinkedWhatsAppBusinessAccountsPaginator";
3
+ export * from "./ListWhatsAppMessageTemplatesPaginator";
4
+ export * from "./ListWhatsAppTemplateLibraryPaginator";
@@ -7,10 +7,26 @@ import {
7
7
  AssociateWhatsAppBusinessAccountCommandInput,
8
8
  AssociateWhatsAppBusinessAccountCommandOutput,
9
9
  } from "../commands/AssociateWhatsAppBusinessAccountCommand";
10
+ import {
11
+ CreateWhatsAppMessageTemplateCommandInput,
12
+ CreateWhatsAppMessageTemplateCommandOutput,
13
+ } from "../commands/CreateWhatsAppMessageTemplateCommand";
14
+ import {
15
+ CreateWhatsAppMessageTemplateFromLibraryCommandInput,
16
+ CreateWhatsAppMessageTemplateFromLibraryCommandOutput,
17
+ } from "../commands/CreateWhatsAppMessageTemplateFromLibraryCommand";
18
+ import {
19
+ CreateWhatsAppMessageTemplateMediaCommandInput,
20
+ CreateWhatsAppMessageTemplateMediaCommandOutput,
21
+ } from "../commands/CreateWhatsAppMessageTemplateMediaCommand";
10
22
  import {
11
23
  DeleteWhatsAppMessageMediaCommandInput,
12
24
  DeleteWhatsAppMessageMediaCommandOutput,
13
25
  } from "../commands/DeleteWhatsAppMessageMediaCommand";
26
+ import {
27
+ DeleteWhatsAppMessageTemplateCommandInput,
28
+ DeleteWhatsAppMessageTemplateCommandOutput,
29
+ } from "../commands/DeleteWhatsAppMessageTemplateCommand";
14
30
  import {
15
31
  DisassociateWhatsAppBusinessAccountCommandInput,
16
32
  DisassociateWhatsAppBusinessAccountCommandOutput,
@@ -27,6 +43,10 @@ import {
27
43
  GetWhatsAppMessageMediaCommandInput,
28
44
  GetWhatsAppMessageMediaCommandOutput,
29
45
  } from "../commands/GetWhatsAppMessageMediaCommand";
46
+ import {
47
+ GetWhatsAppMessageTemplateCommandInput,
48
+ GetWhatsAppMessageTemplateCommandOutput,
49
+ } from "../commands/GetWhatsAppMessageTemplateCommand";
30
50
  import {
31
51
  ListLinkedWhatsAppBusinessAccountsCommandInput,
32
52
  ListLinkedWhatsAppBusinessAccountsCommandOutput,
@@ -35,6 +55,14 @@ import {
35
55
  ListTagsForResourceCommandInput,
36
56
  ListTagsForResourceCommandOutput,
37
57
  } from "../commands/ListTagsForResourceCommand";
58
+ import {
59
+ ListWhatsAppMessageTemplatesCommandInput,
60
+ ListWhatsAppMessageTemplatesCommandOutput,
61
+ } from "../commands/ListWhatsAppMessageTemplatesCommand";
62
+ import {
63
+ ListWhatsAppTemplateLibraryCommandInput,
64
+ ListWhatsAppTemplateLibraryCommandOutput,
65
+ } from "../commands/ListWhatsAppTemplateLibraryCommand";
38
66
  import {
39
67
  PostWhatsAppMessageMediaCommandInput,
40
68
  PostWhatsAppMessageMediaCommandOutput,
@@ -55,14 +83,34 @@ import {
55
83
  UntagResourceCommandInput,
56
84
  UntagResourceCommandOutput,
57
85
  } from "../commands/UntagResourceCommand";
86
+ import {
87
+ UpdateWhatsAppMessageTemplateCommandInput,
88
+ UpdateWhatsAppMessageTemplateCommandOutput,
89
+ } from "../commands/UpdateWhatsAppMessageTemplateCommand";
58
90
  export declare const se_AssociateWhatsAppBusinessAccountCommand: (
59
91
  input: AssociateWhatsAppBusinessAccountCommandInput,
60
92
  context: __SerdeContext
61
93
  ) => Promise<__HttpRequest>;
94
+ export declare const se_CreateWhatsAppMessageTemplateCommand: (
95
+ input: CreateWhatsAppMessageTemplateCommandInput,
96
+ context: __SerdeContext
97
+ ) => Promise<__HttpRequest>;
98
+ export declare const se_CreateWhatsAppMessageTemplateFromLibraryCommand: (
99
+ input: CreateWhatsAppMessageTemplateFromLibraryCommandInput,
100
+ context: __SerdeContext
101
+ ) => Promise<__HttpRequest>;
102
+ export declare const se_CreateWhatsAppMessageTemplateMediaCommand: (
103
+ input: CreateWhatsAppMessageTemplateMediaCommandInput,
104
+ context: __SerdeContext
105
+ ) => Promise<__HttpRequest>;
62
106
  export declare const se_DeleteWhatsAppMessageMediaCommand: (
63
107
  input: DeleteWhatsAppMessageMediaCommandInput,
64
108
  context: __SerdeContext
65
109
  ) => Promise<__HttpRequest>;
110
+ export declare const se_DeleteWhatsAppMessageTemplateCommand: (
111
+ input: DeleteWhatsAppMessageTemplateCommandInput,
112
+ context: __SerdeContext
113
+ ) => Promise<__HttpRequest>;
66
114
  export declare const se_DisassociateWhatsAppBusinessAccountCommand: (
67
115
  input: DisassociateWhatsAppBusinessAccountCommandInput,
68
116
  context: __SerdeContext
@@ -79,6 +127,10 @@ export declare const se_GetWhatsAppMessageMediaCommand: (
79
127
  input: GetWhatsAppMessageMediaCommandInput,
80
128
  context: __SerdeContext
81
129
  ) => Promise<__HttpRequest>;
130
+ export declare const se_GetWhatsAppMessageTemplateCommand: (
131
+ input: GetWhatsAppMessageTemplateCommandInput,
132
+ context: __SerdeContext
133
+ ) => Promise<__HttpRequest>;
82
134
  export declare const se_ListLinkedWhatsAppBusinessAccountsCommand: (
83
135
  input: ListLinkedWhatsAppBusinessAccountsCommandInput,
84
136
  context: __SerdeContext
@@ -87,6 +139,14 @@ export declare const se_ListTagsForResourceCommand: (
87
139
  input: ListTagsForResourceCommandInput,
88
140
  context: __SerdeContext
89
141
  ) => Promise<__HttpRequest>;
142
+ export declare const se_ListWhatsAppMessageTemplatesCommand: (
143
+ input: ListWhatsAppMessageTemplatesCommandInput,
144
+ context: __SerdeContext
145
+ ) => Promise<__HttpRequest>;
146
+ export declare const se_ListWhatsAppTemplateLibraryCommand: (
147
+ input: ListWhatsAppTemplateLibraryCommandInput,
148
+ context: __SerdeContext
149
+ ) => Promise<__HttpRequest>;
90
150
  export declare const se_PostWhatsAppMessageMediaCommand: (
91
151
  input: PostWhatsAppMessageMediaCommandInput,
92
152
  context: __SerdeContext
@@ -107,14 +167,34 @@ export declare const se_UntagResourceCommand: (
107
167
  input: UntagResourceCommandInput,
108
168
  context: __SerdeContext
109
169
  ) => Promise<__HttpRequest>;
170
+ export declare const se_UpdateWhatsAppMessageTemplateCommand: (
171
+ input: UpdateWhatsAppMessageTemplateCommandInput,
172
+ context: __SerdeContext
173
+ ) => Promise<__HttpRequest>;
110
174
  export declare const de_AssociateWhatsAppBusinessAccountCommand: (
111
175
  output: __HttpResponse,
112
176
  context: __SerdeContext
113
177
  ) => Promise<AssociateWhatsAppBusinessAccountCommandOutput>;
178
+ export declare const de_CreateWhatsAppMessageTemplateCommand: (
179
+ output: __HttpResponse,
180
+ context: __SerdeContext
181
+ ) => Promise<CreateWhatsAppMessageTemplateCommandOutput>;
182
+ export declare const de_CreateWhatsAppMessageTemplateFromLibraryCommand: (
183
+ output: __HttpResponse,
184
+ context: __SerdeContext
185
+ ) => Promise<CreateWhatsAppMessageTemplateFromLibraryCommandOutput>;
186
+ export declare const de_CreateWhatsAppMessageTemplateMediaCommand: (
187
+ output: __HttpResponse,
188
+ context: __SerdeContext
189
+ ) => Promise<CreateWhatsAppMessageTemplateMediaCommandOutput>;
114
190
  export declare const de_DeleteWhatsAppMessageMediaCommand: (
115
191
  output: __HttpResponse,
116
192
  context: __SerdeContext
117
193
  ) => Promise<DeleteWhatsAppMessageMediaCommandOutput>;
194
+ export declare const de_DeleteWhatsAppMessageTemplateCommand: (
195
+ output: __HttpResponse,
196
+ context: __SerdeContext
197
+ ) => Promise<DeleteWhatsAppMessageTemplateCommandOutput>;
118
198
  export declare const de_DisassociateWhatsAppBusinessAccountCommand: (
119
199
  output: __HttpResponse,
120
200
  context: __SerdeContext
@@ -131,6 +211,10 @@ export declare const de_GetWhatsAppMessageMediaCommand: (
131
211
  output: __HttpResponse,
132
212
  context: __SerdeContext
133
213
  ) => Promise<GetWhatsAppMessageMediaCommandOutput>;
214
+ export declare const de_GetWhatsAppMessageTemplateCommand: (
215
+ output: __HttpResponse,
216
+ context: __SerdeContext
217
+ ) => Promise<GetWhatsAppMessageTemplateCommandOutput>;
134
218
  export declare const de_ListLinkedWhatsAppBusinessAccountsCommand: (
135
219
  output: __HttpResponse,
136
220
  context: __SerdeContext
@@ -139,6 +223,14 @@ export declare const de_ListTagsForResourceCommand: (
139
223
  output: __HttpResponse,
140
224
  context: __SerdeContext
141
225
  ) => Promise<ListTagsForResourceCommandOutput>;
226
+ export declare const de_ListWhatsAppMessageTemplatesCommand: (
227
+ output: __HttpResponse,
228
+ context: __SerdeContext
229
+ ) => Promise<ListWhatsAppMessageTemplatesCommandOutput>;
230
+ export declare const de_ListWhatsAppTemplateLibraryCommand: (
231
+ output: __HttpResponse,
232
+ context: __SerdeContext
233
+ ) => Promise<ListWhatsAppTemplateLibraryCommandOutput>;
142
234
  export declare const de_PostWhatsAppMessageMediaCommand: (
143
235
  output: __HttpResponse,
144
236
  context: __SerdeContext
@@ -159,3 +251,7 @@ export declare const de_UntagResourceCommand: (
159
251
  output: __HttpResponse,
160
252
  context: __SerdeContext
161
253
  ) => Promise<UntagResourceCommandOutput>;
254
+ export declare const de_UpdateWhatsAppMessageTemplateCommand: (
255
+ output: __HttpResponse,
256
+ context: __SerdeContext
257
+ ) => Promise<UpdateWhatsAppMessageTemplateCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-socialmessaging",
3
3
  "description": "AWS SDK for JavaScript Socialmessaging Client for Node.js, Browser and React Native",
4
- "version": "3.848.0",
4
+ "version": "3.854.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",