@aws-sdk/client-socialmessaging 3.893.0 → 3.895.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 (39) hide show
  1. package/dist-cjs/index.js +1682 -10
  2. package/package.json +7 -7
  3. package/dist-cjs/SocialMessaging.js +0 -53
  4. package/dist-cjs/SocialMessagingClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/AssociateWhatsAppBusinessAccountCommand.js +0 -27
  7. package/dist-cjs/commands/CreateWhatsAppMessageTemplateCommand.js +0 -26
  8. package/dist-cjs/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +0 -26
  9. package/dist-cjs/commands/CreateWhatsAppMessageTemplateMediaCommand.js +0 -27
  10. package/dist-cjs/commands/DeleteWhatsAppMessageMediaCommand.js +0 -26
  11. package/dist-cjs/commands/DeleteWhatsAppMessageTemplateCommand.js +0 -26
  12. package/dist-cjs/commands/DisassociateWhatsAppBusinessAccountCommand.js +0 -26
  13. package/dist-cjs/commands/GetLinkedWhatsAppBusinessAccountCommand.js +0 -26
  14. package/dist-cjs/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +0 -26
  15. package/dist-cjs/commands/GetWhatsAppMessageMediaCommand.js +0 -27
  16. package/dist-cjs/commands/GetWhatsAppMessageTemplateCommand.js +0 -26
  17. package/dist-cjs/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +0 -26
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  19. package/dist-cjs/commands/ListWhatsAppMessageTemplatesCommand.js +0 -26
  20. package/dist-cjs/commands/ListWhatsAppTemplateLibraryCommand.js +0 -26
  21. package/dist-cjs/commands/PostWhatsAppMessageMediaCommand.js +0 -27
  22. package/dist-cjs/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +0 -26
  23. package/dist-cjs/commands/SendWhatsAppMessageCommand.js +0 -27
  24. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  25. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  26. package/dist-cjs/commands/UpdateWhatsAppMessageTemplateCommand.js +0 -26
  27. package/dist-cjs/commands/index.js +0 -24
  28. package/dist-cjs/endpoint/EndpointParameters.js +0 -17
  29. package/dist-cjs/extensionConfiguration.js +0 -2
  30. package/dist-cjs/models/SocialMessagingServiceException.js +0 -12
  31. package/dist-cjs/models/index.js +0 -4
  32. package/dist-cjs/models/models_0.js +0 -191
  33. package/dist-cjs/pagination/Interfaces.js +0 -2
  34. package/dist-cjs/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.js +0 -7
  35. package/dist-cjs/pagination/ListWhatsAppMessageTemplatesPaginator.js +0 -7
  36. package/dist-cjs/pagination/ListWhatsAppTemplateLibraryPaginator.js +0 -7
  37. package/dist-cjs/pagination/index.js +0 -7
  38. package/dist-cjs/protocols/Aws_restJson1.js +0 -834
  39. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1683 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SocialMessagingServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./SocialMessagingClient"), exports);
6
- tslib_1.__exportStar(require("./SocialMessaging"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var SocialMessagingServiceException_1 = require("./models/SocialMessagingServiceException");
11
- Object.defineProperty(exports, "SocialMessagingServiceException", { enumerable: true, get: function () { return SocialMessagingServiceException_1.SocialMessagingServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedByMetaException: () => AccessDeniedByMetaException,
25
+ AccessDeniedException: () => AccessDeniedException,
26
+ AssociateWhatsAppBusinessAccountCommand: () => AssociateWhatsAppBusinessAccountCommand,
27
+ AssociateWhatsAppBusinessAccountInputFilterSensitiveLog: () => AssociateWhatsAppBusinessAccountInputFilterSensitiveLog,
28
+ AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog: () => AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog,
29
+ CreateWhatsAppMessageTemplateCommand: () => CreateWhatsAppMessageTemplateCommand,
30
+ CreateWhatsAppMessageTemplateFromLibraryCommand: () => CreateWhatsAppMessageTemplateFromLibraryCommand,
31
+ CreateWhatsAppMessageTemplateMediaCommand: () => CreateWhatsAppMessageTemplateMediaCommand,
32
+ CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog: () => CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog,
33
+ DeleteWhatsAppMessageMediaCommand: () => DeleteWhatsAppMessageMediaCommand,
34
+ DeleteWhatsAppMessageTemplateCommand: () => DeleteWhatsAppMessageTemplateCommand,
35
+ DependencyException: () => DependencyException,
36
+ DisassociateWhatsAppBusinessAccountCommand: () => DisassociateWhatsAppBusinessAccountCommand,
37
+ GetLinkedWhatsAppBusinessAccountCommand: () => GetLinkedWhatsAppBusinessAccountCommand,
38
+ GetLinkedWhatsAppBusinessAccountPhoneNumberCommand: () => GetLinkedWhatsAppBusinessAccountPhoneNumberCommand,
39
+ GetWhatsAppMessageMediaCommand: () => GetWhatsAppMessageMediaCommand,
40
+ GetWhatsAppMessageMediaInputFilterSensitiveLog: () => GetWhatsAppMessageMediaInputFilterSensitiveLog,
41
+ GetWhatsAppMessageTemplateCommand: () => GetWhatsAppMessageTemplateCommand,
42
+ InternalServiceException: () => InternalServiceException,
43
+ InvalidParametersException: () => InvalidParametersException,
44
+ LimitExceededException: () => LimitExceededException,
45
+ ListLinkedWhatsAppBusinessAccountsCommand: () => ListLinkedWhatsAppBusinessAccountsCommand,
46
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
47
+ ListWhatsAppMessageTemplatesCommand: () => ListWhatsAppMessageTemplatesCommand,
48
+ ListWhatsAppTemplateLibraryCommand: () => ListWhatsAppTemplateLibraryCommand,
49
+ PostWhatsAppMessageMediaCommand: () => PostWhatsAppMessageMediaCommand,
50
+ PostWhatsAppMessageMediaInputFilterSensitiveLog: () => PostWhatsAppMessageMediaInputFilterSensitiveLog,
51
+ PutWhatsAppBusinessAccountEventDestinationsCommand: () => PutWhatsAppBusinessAccountEventDestinationsCommand,
52
+ RegistrationStatus: () => RegistrationStatus,
53
+ ResourceNotFoundException: () => ResourceNotFoundException,
54
+ S3FileFilterSensitiveLog: () => S3FileFilterSensitiveLog,
55
+ S3PresignedUrlFilterSensitiveLog: () => S3PresignedUrlFilterSensitiveLog,
56
+ SendWhatsAppMessageCommand: () => SendWhatsAppMessageCommand,
57
+ SendWhatsAppMessageInputFilterSensitiveLog: () => SendWhatsAppMessageInputFilterSensitiveLog,
58
+ SocialMessaging: () => SocialMessaging,
59
+ SocialMessagingClient: () => SocialMessagingClient,
60
+ SocialMessagingServiceException: () => SocialMessagingServiceException,
61
+ TagResourceCommand: () => TagResourceCommand,
62
+ ThrottledRequestException: () => ThrottledRequestException,
63
+ UntagResourceCommand: () => UntagResourceCommand,
64
+ UpdateWhatsAppMessageTemplateCommand: () => UpdateWhatsAppMessageTemplateCommand,
65
+ ValidationException: () => ValidationException,
66
+ WabaPhoneNumberSetupFinalizationFilterSensitiveLog: () => WabaPhoneNumberSetupFinalizationFilterSensitiveLog,
67
+ WhatsAppSetupFinalizationFilterSensitiveLog: () => WhatsAppSetupFinalizationFilterSensitiveLog,
68
+ WhatsAppSignupCallbackResultFilterSensitiveLog: () => WhatsAppSignupCallbackResultFilterSensitiveLog,
69
+ __Client: () => import_smithy_client.Client,
70
+ paginateListLinkedWhatsAppBusinessAccounts: () => paginateListLinkedWhatsAppBusinessAccounts,
71
+ paginateListWhatsAppMessageTemplates: () => paginateListWhatsAppMessageTemplates,
72
+ paginateListWhatsAppTemplateLibrary: () => paginateListWhatsAppTemplateLibrary
73
+ });
74
+ module.exports = __toCommonJS(index_exports);
75
+
76
+ // src/SocialMessagingClient.ts
77
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
78
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
79
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
80
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
81
+ var import_config_resolver = require("@smithy/config-resolver");
82
+ var import_core = require("@smithy/core");
83
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
84
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
85
+ var import_middleware_retry = require("@smithy/middleware-retry");
86
+
87
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
88
+
89
+ // src/endpoint/EndpointParameters.ts
90
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
91
+ return Object.assign(options, {
92
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
93
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
94
+ defaultSigningName: "social-messaging"
95
+ });
96
+ }, "resolveClientEndpointParameters");
97
+ var commonParams = {
98
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
99
+ Endpoint: { type: "builtInParams", name: "endpoint" },
100
+ Region: { type: "builtInParams", name: "region" },
101
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
102
+ };
103
+
104
+ // src/SocialMessagingClient.ts
105
+ var import_runtimeConfig = require("././runtimeConfig");
106
+
107
+ // src/runtimeExtensions.ts
108
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
109
+ var import_protocol_http = require("@smithy/protocol-http");
110
+ var import_smithy_client = require("@smithy/smithy-client");
111
+
112
+ // src/auth/httpAuthExtensionConfiguration.ts
113
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
114
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
115
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
116
+ let _credentials = runtimeConfig.credentials;
117
+ return {
118
+ setHttpAuthScheme(httpAuthScheme) {
119
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
120
+ if (index === -1) {
121
+ _httpAuthSchemes.push(httpAuthScheme);
122
+ } else {
123
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
124
+ }
125
+ },
126
+ httpAuthSchemes() {
127
+ return _httpAuthSchemes;
128
+ },
129
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
130
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
131
+ },
132
+ httpAuthSchemeProvider() {
133
+ return _httpAuthSchemeProvider;
134
+ },
135
+ setCredentials(credentials) {
136
+ _credentials = credentials;
137
+ },
138
+ credentials() {
139
+ return _credentials;
140
+ }
141
+ };
142
+ }, "getHttpAuthExtensionConfiguration");
143
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
144
+ return {
145
+ httpAuthSchemes: config.httpAuthSchemes(),
146
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
147
+ credentials: config.credentials()
148
+ };
149
+ }, "resolveHttpAuthRuntimeConfig");
150
+
151
+ // src/runtimeExtensions.ts
152
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
153
+ const extensionConfiguration = Object.assign(
154
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
155
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
156
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
157
+ getHttpAuthExtensionConfiguration(runtimeConfig)
158
+ );
159
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
160
+ return Object.assign(
161
+ runtimeConfig,
162
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
163
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
164
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
165
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
166
+ );
167
+ }, "resolveRuntimeExtensions");
168
+
169
+ // src/SocialMessagingClient.ts
170
+ var SocialMessagingClient = class extends import_smithy_client.Client {
171
+ static {
172
+ __name(this, "SocialMessagingClient");
173
+ }
174
+ /**
175
+ * The resolved configuration of SocialMessagingClient class. This is resolved and normalized from the {@link SocialMessagingClientConfig | constructor configuration interface}.
176
+ */
177
+ config;
178
+ constructor(...[configuration]) {
179
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
180
+ super(_config_0);
181
+ this.initConfig = _config_0;
182
+ const _config_1 = resolveClientEndpointParameters(_config_0);
183
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
184
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
185
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
186
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
187
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
188
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
189
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
190
+ this.config = _config_8;
191
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
192
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
193
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
194
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
195
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
196
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
197
+ this.middlewareStack.use(
198
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
199
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSocialMessagingHttpAuthSchemeParametersProvider,
200
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
201
+ "aws.auth#sigv4": config.credentials
202
+ }), "identityProviderConfigProvider")
203
+ })
204
+ );
205
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
206
+ }
207
+ /**
208
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
209
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
210
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
211
+ */
212
+ destroy() {
213
+ super.destroy();
214
+ }
215
+ };
216
+
217
+ // src/SocialMessaging.ts
218
+
219
+
220
+ // src/commands/AssociateWhatsAppBusinessAccountCommand.ts
221
+
222
+ var import_middleware_serde = require("@smithy/middleware-serde");
223
+
224
+
225
+ // src/models/models_0.ts
226
+
227
+
228
+ // src/models/SocialMessagingServiceException.ts
229
+
230
+ var SocialMessagingServiceException = class _SocialMessagingServiceException extends import_smithy_client.ServiceException {
231
+ static {
232
+ __name(this, "SocialMessagingServiceException");
233
+ }
234
+ /**
235
+ * @internal
236
+ */
237
+ constructor(options) {
238
+ super(options);
239
+ Object.setPrototypeOf(this, _SocialMessagingServiceException.prototype);
240
+ }
241
+ };
242
+
243
+ // src/models/models_0.ts
244
+ var AccessDeniedByMetaException = class _AccessDeniedByMetaException extends SocialMessagingServiceException {
245
+ static {
246
+ __name(this, "AccessDeniedByMetaException");
247
+ }
248
+ name = "AccessDeniedByMetaException";
249
+ $fault = "client";
250
+ /**
251
+ * @internal
252
+ */
253
+ constructor(opts) {
254
+ super({
255
+ name: "AccessDeniedByMetaException",
256
+ $fault: "client",
257
+ ...opts
258
+ });
259
+ Object.setPrototypeOf(this, _AccessDeniedByMetaException.prototype);
260
+ }
261
+ };
262
+ var AccessDeniedException = class _AccessDeniedException extends SocialMessagingServiceException {
263
+ static {
264
+ __name(this, "AccessDeniedException");
265
+ }
266
+ name = "AccessDeniedException";
267
+ $fault = "client";
268
+ /**
269
+ * @internal
270
+ */
271
+ constructor(opts) {
272
+ super({
273
+ name: "AccessDeniedException",
274
+ $fault: "client",
275
+ ...opts
276
+ });
277
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
278
+ }
279
+ };
280
+ var RegistrationStatus = {
281
+ COMPLETE: "COMPLETE",
282
+ INCOMPLETE: "INCOMPLETE"
283
+ };
284
+ var DependencyException = class _DependencyException extends SocialMessagingServiceException {
285
+ static {
286
+ __name(this, "DependencyException");
287
+ }
288
+ name = "DependencyException";
289
+ $fault = "server";
290
+ $retryable = {};
291
+ /**
292
+ * @internal
293
+ */
294
+ constructor(opts) {
295
+ super({
296
+ name: "DependencyException",
297
+ $fault: "server",
298
+ ...opts
299
+ });
300
+ Object.setPrototypeOf(this, _DependencyException.prototype);
301
+ }
302
+ };
303
+ var InvalidParametersException = class _InvalidParametersException extends SocialMessagingServiceException {
304
+ static {
305
+ __name(this, "InvalidParametersException");
306
+ }
307
+ name = "InvalidParametersException";
308
+ $fault = "client";
309
+ /**
310
+ * @internal
311
+ */
312
+ constructor(opts) {
313
+ super({
314
+ name: "InvalidParametersException",
315
+ $fault: "client",
316
+ ...opts
317
+ });
318
+ Object.setPrototypeOf(this, _InvalidParametersException.prototype);
319
+ }
320
+ };
321
+ var LimitExceededException = class _LimitExceededException extends SocialMessagingServiceException {
322
+ static {
323
+ __name(this, "LimitExceededException");
324
+ }
325
+ name = "LimitExceededException";
326
+ $fault = "client";
327
+ /**
328
+ * @internal
329
+ */
330
+ constructor(opts) {
331
+ super({
332
+ name: "LimitExceededException",
333
+ $fault: "client",
334
+ ...opts
335
+ });
336
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
337
+ }
338
+ };
339
+ var ThrottledRequestException = class _ThrottledRequestException extends SocialMessagingServiceException {
340
+ static {
341
+ __name(this, "ThrottledRequestException");
342
+ }
343
+ name = "ThrottledRequestException";
344
+ $fault = "client";
345
+ $retryable = {};
346
+ /**
347
+ * @internal
348
+ */
349
+ constructor(opts) {
350
+ super({
351
+ name: "ThrottledRequestException",
352
+ $fault: "client",
353
+ ...opts
354
+ });
355
+ Object.setPrototypeOf(this, _ThrottledRequestException.prototype);
356
+ }
357
+ };
358
+ var ValidationException = class _ValidationException extends SocialMessagingServiceException {
359
+ static {
360
+ __name(this, "ValidationException");
361
+ }
362
+ name = "ValidationException";
363
+ $fault = "client";
364
+ /**
365
+ * @internal
366
+ */
367
+ constructor(opts) {
368
+ super({
369
+ name: "ValidationException",
370
+ $fault: "client",
371
+ ...opts
372
+ });
373
+ Object.setPrototypeOf(this, _ValidationException.prototype);
374
+ }
375
+ };
376
+ var InternalServiceException = class _InternalServiceException extends SocialMessagingServiceException {
377
+ static {
378
+ __name(this, "InternalServiceException");
379
+ }
380
+ name = "InternalServiceException";
381
+ $fault = "server";
382
+ $retryable = {};
383
+ /**
384
+ * @internal
385
+ */
386
+ constructor(opts) {
387
+ super({
388
+ name: "InternalServiceException",
389
+ $fault: "server",
390
+ ...opts
391
+ });
392
+ Object.setPrototypeOf(this, _InternalServiceException.prototype);
393
+ }
394
+ };
395
+ var ResourceNotFoundException = class _ResourceNotFoundException extends SocialMessagingServiceException {
396
+ static {
397
+ __name(this, "ResourceNotFoundException");
398
+ }
399
+ name = "ResourceNotFoundException";
400
+ $fault = "client";
401
+ /**
402
+ * @internal
403
+ */
404
+ constructor(opts) {
405
+ super({
406
+ name: "ResourceNotFoundException",
407
+ $fault: "client",
408
+ ...opts
409
+ });
410
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
411
+ }
412
+ };
413
+ var WabaPhoneNumberSetupFinalizationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
414
+ ...obj,
415
+ ...obj.twoFactorPin && { twoFactorPin: import_smithy_client.SENSITIVE_STRING }
416
+ }), "WabaPhoneNumberSetupFinalizationFilterSensitiveLog");
417
+ var WhatsAppSetupFinalizationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
418
+ ...obj,
419
+ ...obj.associateInProgressToken && { associateInProgressToken: import_smithy_client.SENSITIVE_STRING },
420
+ ...obj.phoneNumbers && {
421
+ phoneNumbers: obj.phoneNumbers.map((item) => WabaPhoneNumberSetupFinalizationFilterSensitiveLog(item))
422
+ }
423
+ }), "WhatsAppSetupFinalizationFilterSensitiveLog");
424
+ var AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
425
+ ...obj,
426
+ ...obj.setupFinalization && {
427
+ setupFinalization: WhatsAppSetupFinalizationFilterSensitiveLog(obj.setupFinalization)
428
+ }
429
+ }), "AssociateWhatsAppBusinessAccountInputFilterSensitiveLog");
430
+ var WhatsAppSignupCallbackResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
431
+ ...obj,
432
+ ...obj.associateInProgressToken && { associateInProgressToken: import_smithy_client.SENSITIVE_STRING }
433
+ }), "WhatsAppSignupCallbackResultFilterSensitiveLog");
434
+ var AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
435
+ ...obj,
436
+ ...obj.signupCallbackResult && {
437
+ signupCallbackResult: WhatsAppSignupCallbackResultFilterSensitiveLog(obj.signupCallbackResult)
438
+ }
439
+ }), "AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog");
440
+ var S3FileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
441
+ ...obj
442
+ }), "S3FileFilterSensitiveLog");
443
+ var CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
444
+ ...obj,
445
+ ...obj.sourceS3File && { sourceS3File: import_smithy_client.SENSITIVE_STRING }
446
+ }), "CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog");
447
+ var S3PresignedUrlFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
448
+ ...obj
449
+ }), "S3PresignedUrlFilterSensitiveLog");
450
+ var GetWhatsAppMessageMediaInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
451
+ ...obj,
452
+ ...obj.destinationS3PresignedUrl && { destinationS3PresignedUrl: import_smithy_client.SENSITIVE_STRING },
453
+ ...obj.destinationS3File && { destinationS3File: import_smithy_client.SENSITIVE_STRING }
454
+ }), "GetWhatsAppMessageMediaInputFilterSensitiveLog");
455
+ var PostWhatsAppMessageMediaInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
456
+ ...obj,
457
+ ...obj.sourceS3PresignedUrl && { sourceS3PresignedUrl: import_smithy_client.SENSITIVE_STRING },
458
+ ...obj.sourceS3File && { sourceS3File: import_smithy_client.SENSITIVE_STRING }
459
+ }), "PostWhatsAppMessageMediaInputFilterSensitiveLog");
460
+ var SendWhatsAppMessageInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
461
+ ...obj,
462
+ ...obj.message && { message: import_smithy_client.SENSITIVE_STRING }
463
+ }), "SendWhatsAppMessageInputFilterSensitiveLog");
464
+
465
+ // src/protocols/Aws_restJson1.ts
466
+ var import_core2 = require("@aws-sdk/core");
467
+
468
+
469
+ var se_AssociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
470
+ const b = (0, import_core.requestBuilder)(input, context);
471
+ const headers = {
472
+ "content-type": "application/json"
473
+ };
474
+ b.bp("/v1/whatsapp/signup");
475
+ let body;
476
+ body = JSON.stringify(
477
+ (0, import_smithy_client.take)(input, {
478
+ setupFinalization: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "setupFinalization"),
479
+ signupCallback: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "signupCallback")
480
+ })
481
+ );
482
+ b.m("POST").h(headers).b(body);
483
+ return b.build();
484
+ }, "se_AssociateWhatsAppBusinessAccountCommand");
485
+ var se_CreateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
486
+ const b = (0, import_core.requestBuilder)(input, context);
487
+ const headers = {
488
+ "content-type": "application/json"
489
+ };
490
+ b.bp("/v1/whatsapp/template/put");
491
+ let body;
492
+ body = JSON.stringify(
493
+ (0, import_smithy_client.take)(input, {
494
+ id: [],
495
+ templateDefinition: /* @__PURE__ */ __name((_) => context.base64Encoder(_), "templateDefinition")
496
+ })
497
+ );
498
+ b.m("POST").h(headers).b(body);
499
+ return b.build();
500
+ }, "se_CreateWhatsAppMessageTemplateCommand");
501
+ var se_CreateWhatsAppMessageTemplateFromLibraryCommand = /* @__PURE__ */ __name(async (input, context) => {
502
+ const b = (0, import_core.requestBuilder)(input, context);
503
+ const headers = {
504
+ "content-type": "application/json"
505
+ };
506
+ b.bp("/v1/whatsapp/template/create");
507
+ let body;
508
+ body = JSON.stringify(
509
+ (0, import_smithy_client.take)(input, {
510
+ id: [],
511
+ metaLibraryTemplate: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "metaLibraryTemplate")
512
+ })
513
+ );
514
+ b.m("POST").h(headers).b(body);
515
+ return b.build();
516
+ }, "se_CreateWhatsAppMessageTemplateFromLibraryCommand");
517
+ var se_CreateWhatsAppMessageTemplateMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
518
+ const b = (0, import_core.requestBuilder)(input, context);
519
+ const headers = {
520
+ "content-type": "application/json"
521
+ };
522
+ b.bp("/v1/whatsapp/template/media");
523
+ let body;
524
+ body = JSON.stringify(
525
+ (0, import_smithy_client.take)(input, {
526
+ id: [],
527
+ sourceS3File: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sourceS3File")
528
+ })
529
+ );
530
+ b.m("POST").h(headers).b(body);
531
+ return b.build();
532
+ }, "se_CreateWhatsAppMessageTemplateMediaCommand");
533
+ var se_DeleteWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
534
+ const b = (0, import_core.requestBuilder)(input, context);
535
+ const headers = {};
536
+ b.bp("/v1/whatsapp/media");
537
+ const query = (0, import_smithy_client.map)({
538
+ [_mI]: [, (0, import_smithy_client.expectNonNull)(input[_mI], `mediaId`)],
539
+ [_oPNI]: [, (0, import_smithy_client.expectNonNull)(input[_oPNI], `originationPhoneNumberId`)]
540
+ });
541
+ let body;
542
+ b.m("DELETE").h(headers).q(query).b(body);
543
+ return b.build();
544
+ }, "se_DeleteWhatsAppMessageMediaCommand");
545
+ var se_DeleteWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
546
+ const b = (0, import_core.requestBuilder)(input, context);
547
+ const headers = {};
548
+ b.bp("/v1/whatsapp/template");
549
+ const query = (0, import_smithy_client.map)({
550
+ [_mTI]: [, input[_mTI]],
551
+ [_dAT]: [() => input.deleteAllLanguages !== void 0, () => input[_dAL].toString()],
552
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)],
553
+ [_tN]: [, (0, import_smithy_client.expectNonNull)(input[_tN], `templateName`)]
554
+ });
555
+ let body;
556
+ b.m("DELETE").h(headers).q(query).b(body);
557
+ return b.build();
558
+ }, "se_DeleteWhatsAppMessageTemplateCommand");
559
+ var se_DisassociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
560
+ const b = (0, import_core.requestBuilder)(input, context);
561
+ const headers = {};
562
+ b.bp("/v1/whatsapp/waba/disassociate");
563
+ const query = (0, import_smithy_client.map)({
564
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
565
+ });
566
+ let body;
567
+ b.m("DELETE").h(headers).q(query).b(body);
568
+ return b.build();
569
+ }, "se_DisassociateWhatsAppBusinessAccountCommand");
570
+ var se_GetLinkedWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
571
+ const b = (0, import_core.requestBuilder)(input, context);
572
+ const headers = {};
573
+ b.bp("/v1/whatsapp/waba/details");
574
+ const query = (0, import_smithy_client.map)({
575
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
576
+ });
577
+ let body;
578
+ b.m("GET").h(headers).q(query).b(body);
579
+ return b.build();
580
+ }, "se_GetLinkedWhatsAppBusinessAccountCommand");
581
+ var se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = /* @__PURE__ */ __name(async (input, context) => {
582
+ const b = (0, import_core.requestBuilder)(input, context);
583
+ const headers = {};
584
+ b.bp("/v1/whatsapp/waba/phone/details");
585
+ const query = (0, import_smithy_client.map)({
586
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
587
+ });
588
+ let body;
589
+ b.m("GET").h(headers).q(query).b(body);
590
+ return b.build();
591
+ }, "se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand");
592
+ var se_GetWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
593
+ const b = (0, import_core.requestBuilder)(input, context);
594
+ const headers = {
595
+ "content-type": "application/json"
596
+ };
597
+ b.bp("/v1/whatsapp/media/get");
598
+ let body;
599
+ body = JSON.stringify(
600
+ (0, import_smithy_client.take)(input, {
601
+ destinationS3File: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationS3File"),
602
+ destinationS3PresignedUrl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationS3PresignedUrl"),
603
+ mediaId: [],
604
+ metadataOnly: [],
605
+ originationPhoneNumberId: []
606
+ })
607
+ );
608
+ b.m("POST").h(headers).b(body);
609
+ return b.build();
610
+ }, "se_GetWhatsAppMessageMediaCommand");
611
+ var se_GetWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
612
+ const b = (0, import_core.requestBuilder)(input, context);
613
+ const headers = {};
614
+ b.bp("/v1/whatsapp/template");
615
+ const query = (0, import_smithy_client.map)({
616
+ [_mTI]: [, (0, import_smithy_client.expectNonNull)(input[_mTI], `metaTemplateId`)],
617
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
618
+ });
619
+ let body;
620
+ b.m("GET").h(headers).q(query).b(body);
621
+ return b.build();
622
+ }, "se_GetWhatsAppMessageTemplateCommand");
623
+ var se_ListLinkedWhatsAppBusinessAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
624
+ const b = (0, import_core.requestBuilder)(input, context);
625
+ const headers = {};
626
+ b.bp("/v1/whatsapp/waba/list");
627
+ const query = (0, import_smithy_client.map)({
628
+ [_nT]: [, input[_nT]],
629
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
630
+ });
631
+ let body;
632
+ b.m("GET").h(headers).q(query).b(body);
633
+ return b.build();
634
+ }, "se_ListLinkedWhatsAppBusinessAccountsCommand");
635
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
636
+ const b = (0, import_core.requestBuilder)(input, context);
637
+ const headers = {};
638
+ b.bp("/v1/tags/list");
639
+ const query = (0, import_smithy_client.map)({
640
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
641
+ });
642
+ let body;
643
+ b.m("GET").h(headers).q(query).b(body);
644
+ return b.build();
645
+ }, "se_ListTagsForResourceCommand");
646
+ var se_ListWhatsAppMessageTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
647
+ const b = (0, import_core.requestBuilder)(input, context);
648
+ const headers = {};
649
+ b.bp("/v1/whatsapp/template/list");
650
+ const query = (0, import_smithy_client.map)({
651
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)],
652
+ [_nT]: [, input[_nT]],
653
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
654
+ });
655
+ let body;
656
+ b.m("GET").h(headers).q(query).b(body);
657
+ return b.build();
658
+ }, "se_ListWhatsAppMessageTemplatesCommand");
659
+ var se_ListWhatsAppTemplateLibraryCommand = /* @__PURE__ */ __name(async (input, context) => {
660
+ const b = (0, import_core.requestBuilder)(input, context);
661
+ const headers = {
662
+ "content-type": "application/json"
663
+ };
664
+ b.bp("/v1/whatsapp/template/library");
665
+ const query = (0, import_smithy_client.map)({
666
+ [_i]: [, (0, import_smithy_client.expectNonNull)(input[_i], `id`)]
667
+ });
668
+ let body;
669
+ body = JSON.stringify(
670
+ (0, import_smithy_client.take)(input, {
671
+ filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filters"),
672
+ maxResults: [],
673
+ nextToken: []
674
+ })
675
+ );
676
+ b.m("POST").h(headers).q(query).b(body);
677
+ return b.build();
678
+ }, "se_ListWhatsAppTemplateLibraryCommand");
679
+ var se_PostWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (input, context) => {
680
+ const b = (0, import_core.requestBuilder)(input, context);
681
+ const headers = {
682
+ "content-type": "application/json"
683
+ };
684
+ b.bp("/v1/whatsapp/media");
685
+ let body;
686
+ body = JSON.stringify(
687
+ (0, import_smithy_client.take)(input, {
688
+ originationPhoneNumberId: [],
689
+ sourceS3File: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sourceS3File"),
690
+ sourceS3PresignedUrl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sourceS3PresignedUrl")
691
+ })
692
+ );
693
+ b.m("POST").h(headers).b(body);
694
+ return b.build();
695
+ }, "se_PostWhatsAppMessageMediaCommand");
696
+ var se_PutWhatsAppBusinessAccountEventDestinationsCommand = /* @__PURE__ */ __name(async (input, context) => {
697
+ const b = (0, import_core.requestBuilder)(input, context);
698
+ const headers = {
699
+ "content-type": "application/json"
700
+ };
701
+ b.bp("/v1/whatsapp/waba/eventdestinations");
702
+ let body;
703
+ body = JSON.stringify(
704
+ (0, import_smithy_client.take)(input, {
705
+ eventDestinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "eventDestinations"),
706
+ id: []
707
+ })
708
+ );
709
+ b.m("PUT").h(headers).b(body);
710
+ return b.build();
711
+ }, "se_PutWhatsAppBusinessAccountEventDestinationsCommand");
712
+ var se_SendWhatsAppMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
713
+ const b = (0, import_core.requestBuilder)(input, context);
714
+ const headers = {
715
+ "content-type": "application/json"
716
+ };
717
+ b.bp("/v1/whatsapp/send");
718
+ let body;
719
+ body = JSON.stringify(
720
+ (0, import_smithy_client.take)(input, {
721
+ message: /* @__PURE__ */ __name((_) => context.base64Encoder(_), "message"),
722
+ metaApiVersion: [],
723
+ originationPhoneNumberId: []
724
+ })
725
+ );
726
+ b.m("POST").h(headers).b(body);
727
+ return b.build();
728
+ }, "se_SendWhatsAppMessageCommand");
729
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const b = (0, import_core.requestBuilder)(input, context);
731
+ const headers = {
732
+ "content-type": "application/json"
733
+ };
734
+ b.bp("/v1/tags/tag-resource");
735
+ let body;
736
+ body = JSON.stringify(
737
+ (0, import_smithy_client.take)(input, {
738
+ resourceArn: [],
739
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
740
+ })
741
+ );
742
+ b.m("POST").h(headers).b(body);
743
+ return b.build();
744
+ }, "se_TagResourceCommand");
745
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
746
+ const b = (0, import_core.requestBuilder)(input, context);
747
+ const headers = {
748
+ "content-type": "application/json"
749
+ };
750
+ b.bp("/v1/tags/untag-resource");
751
+ let body;
752
+ body = JSON.stringify(
753
+ (0, import_smithy_client.take)(input, {
754
+ resourceArn: [],
755
+ tagKeys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagKeys")
756
+ })
757
+ );
758
+ b.m("POST").h(headers).b(body);
759
+ return b.build();
760
+ }, "se_UntagResourceCommand");
761
+ var se_UpdateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
762
+ const b = (0, import_core.requestBuilder)(input, context);
763
+ const headers = {
764
+ "content-type": "application/json"
765
+ };
766
+ b.bp("/v1/whatsapp/template");
767
+ let body;
768
+ body = JSON.stringify(
769
+ (0, import_smithy_client.take)(input, {
770
+ id: [],
771
+ metaTemplateId: [],
772
+ templateCategory: [],
773
+ templateComponents: /* @__PURE__ */ __name((_) => context.base64Encoder(_), "templateComponents")
774
+ })
775
+ );
776
+ b.m("POST").h(headers).b(body);
777
+ return b.build();
778
+ }, "se_UpdateWhatsAppMessageTemplateCommand");
779
+ var de_AssociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
780
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
781
+ return de_CommandError(output, context);
782
+ }
783
+ const contents = (0, import_smithy_client.map)({
784
+ $metadata: deserializeMetadata(output)
785
+ });
786
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
787
+ const doc = (0, import_smithy_client.take)(data, {
788
+ signupCallbackResult: import_smithy_client._json,
789
+ statusCode: import_smithy_client.expectInt32
790
+ });
791
+ Object.assign(contents, doc);
792
+ return contents;
793
+ }, "de_AssociateWhatsAppBusinessAccountCommand");
794
+ var de_CreateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
795
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
796
+ return de_CommandError(output, context);
797
+ }
798
+ const contents = (0, import_smithy_client.map)({
799
+ $metadata: deserializeMetadata(output)
800
+ });
801
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
802
+ const doc = (0, import_smithy_client.take)(data, {
803
+ category: import_smithy_client.expectString,
804
+ metaTemplateId: import_smithy_client.expectString,
805
+ templateStatus: import_smithy_client.expectString
806
+ });
807
+ Object.assign(contents, doc);
808
+ return contents;
809
+ }, "de_CreateWhatsAppMessageTemplateCommand");
810
+ var de_CreateWhatsAppMessageTemplateFromLibraryCommand = /* @__PURE__ */ __name(async (output, context) => {
811
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
812
+ return de_CommandError(output, context);
813
+ }
814
+ const contents = (0, import_smithy_client.map)({
815
+ $metadata: deserializeMetadata(output)
816
+ });
817
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
818
+ const doc = (0, import_smithy_client.take)(data, {
819
+ category: import_smithy_client.expectString,
820
+ metaTemplateId: import_smithy_client.expectString,
821
+ templateStatus: import_smithy_client.expectString
822
+ });
823
+ Object.assign(contents, doc);
824
+ return contents;
825
+ }, "de_CreateWhatsAppMessageTemplateFromLibraryCommand");
826
+ var de_CreateWhatsAppMessageTemplateMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
827
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
828
+ return de_CommandError(output, context);
829
+ }
830
+ const contents = (0, import_smithy_client.map)({
831
+ $metadata: deserializeMetadata(output)
832
+ });
833
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
834
+ const doc = (0, import_smithy_client.take)(data, {
835
+ metaHeaderHandle: import_smithy_client.expectString
836
+ });
837
+ Object.assign(contents, doc);
838
+ return contents;
839
+ }, "de_CreateWhatsAppMessageTemplateMediaCommand");
840
+ var de_DeleteWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
841
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
842
+ return de_CommandError(output, context);
843
+ }
844
+ const contents = (0, import_smithy_client.map)({
845
+ $metadata: deserializeMetadata(output)
846
+ });
847
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
848
+ const doc = (0, import_smithy_client.take)(data, {
849
+ success: import_smithy_client.expectBoolean
850
+ });
851
+ Object.assign(contents, doc);
852
+ return contents;
853
+ }, "de_DeleteWhatsAppMessageMediaCommand");
854
+ var de_DeleteWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
855
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
856
+ return de_CommandError(output, context);
857
+ }
858
+ const contents = (0, import_smithy_client.map)({
859
+ $metadata: deserializeMetadata(output)
860
+ });
861
+ await (0, import_smithy_client.collectBody)(output.body, context);
862
+ return contents;
863
+ }, "de_DeleteWhatsAppMessageTemplateCommand");
864
+ var de_DisassociateWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
865
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
866
+ return de_CommandError(output, context);
867
+ }
868
+ const contents = (0, import_smithy_client.map)({
869
+ $metadata: deserializeMetadata(output)
870
+ });
871
+ await (0, import_smithy_client.collectBody)(output.body, context);
872
+ return contents;
873
+ }, "de_DisassociateWhatsAppBusinessAccountCommand");
874
+ var de_GetLinkedWhatsAppBusinessAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
875
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
876
+ return de_CommandError(output, context);
877
+ }
878
+ const contents = (0, import_smithy_client.map)({
879
+ $metadata: deserializeMetadata(output)
880
+ });
881
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
882
+ const doc = (0, import_smithy_client.take)(data, {
883
+ account: /* @__PURE__ */ __name((_) => de_LinkedWhatsAppBusinessAccount(_, context), "account")
884
+ });
885
+ Object.assign(contents, doc);
886
+ return contents;
887
+ }, "de_GetLinkedWhatsAppBusinessAccountCommand");
888
+ var de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = /* @__PURE__ */ __name(async (output, context) => {
889
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
890
+ return de_CommandError(output, context);
891
+ }
892
+ const contents = (0, import_smithy_client.map)({
893
+ $metadata: deserializeMetadata(output)
894
+ });
895
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
896
+ const doc = (0, import_smithy_client.take)(data, {
897
+ linkedWhatsAppBusinessAccountId: import_smithy_client.expectString,
898
+ phoneNumber: import_smithy_client._json
899
+ });
900
+ Object.assign(contents, doc);
901
+ return contents;
902
+ }, "de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand");
903
+ var de_GetWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
904
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
905
+ return de_CommandError(output, context);
906
+ }
907
+ const contents = (0, import_smithy_client.map)({
908
+ $metadata: deserializeMetadata(output)
909
+ });
910
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
911
+ const doc = (0, import_smithy_client.take)(data, {
912
+ fileSize: import_smithy_client.expectLong,
913
+ mimeType: import_smithy_client.expectString
914
+ });
915
+ Object.assign(contents, doc);
916
+ return contents;
917
+ }, "de_GetWhatsAppMessageMediaCommand");
918
+ var de_GetWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
919
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
920
+ return de_CommandError(output, context);
921
+ }
922
+ const contents = (0, import_smithy_client.map)({
923
+ $metadata: deserializeMetadata(output)
924
+ });
925
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
926
+ const doc = (0, import_smithy_client.take)(data, {
927
+ template: import_smithy_client.expectString
928
+ });
929
+ Object.assign(contents, doc);
930
+ return contents;
931
+ }, "de_GetWhatsAppMessageTemplateCommand");
932
+ var de_ListLinkedWhatsAppBusinessAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
933
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
934
+ return de_CommandError(output, context);
935
+ }
936
+ const contents = (0, import_smithy_client.map)({
937
+ $metadata: deserializeMetadata(output)
938
+ });
939
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
940
+ const doc = (0, import_smithy_client.take)(data, {
941
+ linkedAccounts: /* @__PURE__ */ __name((_) => de_LinkedWhatsAppBusinessAccountSummaryList(_, context), "linkedAccounts"),
942
+ nextToken: import_smithy_client.expectString
943
+ });
944
+ Object.assign(contents, doc);
945
+ return contents;
946
+ }, "de_ListLinkedWhatsAppBusinessAccountsCommand");
947
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
948
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
949
+ return de_CommandError(output, context);
950
+ }
951
+ const contents = (0, import_smithy_client.map)({
952
+ $metadata: deserializeMetadata(output)
953
+ });
954
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
955
+ const doc = (0, import_smithy_client.take)(data, {
956
+ statusCode: import_smithy_client.expectInt32,
957
+ tags: import_smithy_client._json
958
+ });
959
+ Object.assign(contents, doc);
960
+ return contents;
961
+ }, "de_ListTagsForResourceCommand");
962
+ var de_ListWhatsAppMessageTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
963
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
964
+ return de_CommandError(output, context);
965
+ }
966
+ const contents = (0, import_smithy_client.map)({
967
+ $metadata: deserializeMetadata(output)
968
+ });
969
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
970
+ const doc = (0, import_smithy_client.take)(data, {
971
+ nextToken: import_smithy_client.expectString,
972
+ templates: import_smithy_client._json
973
+ });
974
+ Object.assign(contents, doc);
975
+ return contents;
976
+ }, "de_ListWhatsAppMessageTemplatesCommand");
977
+ var de_ListWhatsAppTemplateLibraryCommand = /* @__PURE__ */ __name(async (output, context) => {
978
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
979
+ return de_CommandError(output, context);
980
+ }
981
+ const contents = (0, import_smithy_client.map)({
982
+ $metadata: deserializeMetadata(output)
983
+ });
984
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
985
+ const doc = (0, import_smithy_client.take)(data, {
986
+ metaLibraryTemplates: import_smithy_client._json,
987
+ nextToken: import_smithy_client.expectString
988
+ });
989
+ Object.assign(contents, doc);
990
+ return contents;
991
+ }, "de_ListWhatsAppTemplateLibraryCommand");
992
+ var de_PostWhatsAppMessageMediaCommand = /* @__PURE__ */ __name(async (output, context) => {
993
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
994
+ return de_CommandError(output, context);
995
+ }
996
+ const contents = (0, import_smithy_client.map)({
997
+ $metadata: deserializeMetadata(output)
998
+ });
999
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1000
+ const doc = (0, import_smithy_client.take)(data, {
1001
+ mediaId: import_smithy_client.expectString
1002
+ });
1003
+ Object.assign(contents, doc);
1004
+ return contents;
1005
+ }, "de_PostWhatsAppMessageMediaCommand");
1006
+ var de_PutWhatsAppBusinessAccountEventDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1007
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1008
+ return de_CommandError(output, context);
1009
+ }
1010
+ const contents = (0, import_smithy_client.map)({
1011
+ $metadata: deserializeMetadata(output)
1012
+ });
1013
+ await (0, import_smithy_client.collectBody)(output.body, context);
1014
+ return contents;
1015
+ }, "de_PutWhatsAppBusinessAccountEventDestinationsCommand");
1016
+ var de_SendWhatsAppMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
1017
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1018
+ return de_CommandError(output, context);
1019
+ }
1020
+ const contents = (0, import_smithy_client.map)({
1021
+ $metadata: deserializeMetadata(output)
1022
+ });
1023
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1024
+ const doc = (0, import_smithy_client.take)(data, {
1025
+ messageId: import_smithy_client.expectString
1026
+ });
1027
+ Object.assign(contents, doc);
1028
+ return contents;
1029
+ }, "de_SendWhatsAppMessageCommand");
1030
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1031
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1032
+ return de_CommandError(output, context);
1033
+ }
1034
+ const contents = (0, import_smithy_client.map)({
1035
+ $metadata: deserializeMetadata(output)
1036
+ });
1037
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1038
+ const doc = (0, import_smithy_client.take)(data, {
1039
+ statusCode: import_smithy_client.expectInt32
1040
+ });
1041
+ Object.assign(contents, doc);
1042
+ return contents;
1043
+ }, "de_TagResourceCommand");
1044
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1045
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1046
+ return de_CommandError(output, context);
1047
+ }
1048
+ const contents = (0, import_smithy_client.map)({
1049
+ $metadata: deserializeMetadata(output)
1050
+ });
1051
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1052
+ const doc = (0, import_smithy_client.take)(data, {
1053
+ statusCode: import_smithy_client.expectInt32
1054
+ });
1055
+ Object.assign(contents, doc);
1056
+ return contents;
1057
+ }, "de_UntagResourceCommand");
1058
+ var de_UpdateWhatsAppMessageTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1059
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1060
+ return de_CommandError(output, context);
1061
+ }
1062
+ const contents = (0, import_smithy_client.map)({
1063
+ $metadata: deserializeMetadata(output)
1064
+ });
1065
+ await (0, import_smithy_client.collectBody)(output.body, context);
1066
+ return contents;
1067
+ }, "de_UpdateWhatsAppMessageTemplateCommand");
1068
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1069
+ const parsedOutput = {
1070
+ ...output,
1071
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1072
+ };
1073
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1074
+ switch (errorCode) {
1075
+ case "AccessDeniedException":
1076
+ case "com.amazonaws.socialmessaging#AccessDeniedException":
1077
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1078
+ case "DependencyException":
1079
+ case "com.amazonaws.socialmessaging#DependencyException":
1080
+ throw await de_DependencyExceptionRes(parsedOutput, context);
1081
+ case "InvalidParametersException":
1082
+ case "com.amazonaws.socialmessaging#InvalidParametersException":
1083
+ throw await de_InvalidParametersExceptionRes(parsedOutput, context);
1084
+ case "LimitExceededException":
1085
+ case "com.amazonaws.socialmessaging#LimitExceededException":
1086
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1087
+ case "ThrottledRequestException":
1088
+ case "com.amazonaws.socialmessaging#ThrottledRequestException":
1089
+ throw await de_ThrottledRequestExceptionRes(parsedOutput, context);
1090
+ case "ValidationException":
1091
+ case "com.amazonaws.socialmessaging#ValidationException":
1092
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1093
+ case "InternalServiceException":
1094
+ case "com.amazonaws.socialmessaging#InternalServiceException":
1095
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1096
+ case "ResourceNotFoundException":
1097
+ case "com.amazonaws.socialmessaging#ResourceNotFoundException":
1098
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1099
+ case "AccessDeniedByMetaException":
1100
+ case "com.amazonaws.socialmessaging#AccessDeniedByMetaException":
1101
+ throw await de_AccessDeniedByMetaExceptionRes(parsedOutput, context);
1102
+ default:
1103
+ const parsedBody = parsedOutput.body;
1104
+ return throwDefaultError({
1105
+ output,
1106
+ parsedBody,
1107
+ errorCode
1108
+ });
1109
+ }
1110
+ }, "de_CommandError");
1111
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(SocialMessagingServiceException);
1112
+ var de_AccessDeniedByMetaExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1113
+ const contents = (0, import_smithy_client.map)({});
1114
+ const data = parsedOutput.body;
1115
+ const doc = (0, import_smithy_client.take)(data, {
1116
+ message: import_smithy_client.expectString
1117
+ });
1118
+ Object.assign(contents, doc);
1119
+ const exception = new AccessDeniedByMetaException({
1120
+ $metadata: deserializeMetadata(parsedOutput),
1121
+ ...contents
1122
+ });
1123
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1124
+ }, "de_AccessDeniedByMetaExceptionRes");
1125
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1126
+ const contents = (0, import_smithy_client.map)({});
1127
+ const data = parsedOutput.body;
1128
+ const doc = (0, import_smithy_client.take)(data, {
1129
+ message: import_smithy_client.expectString
1130
+ });
1131
+ Object.assign(contents, doc);
1132
+ const exception = new AccessDeniedException({
1133
+ $metadata: deserializeMetadata(parsedOutput),
1134
+ ...contents
1135
+ });
1136
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1137
+ }, "de_AccessDeniedExceptionRes");
1138
+ var de_DependencyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1139
+ const contents = (0, import_smithy_client.map)({});
1140
+ const data = parsedOutput.body;
1141
+ const doc = (0, import_smithy_client.take)(data, {
1142
+ message: import_smithy_client.expectString
1143
+ });
1144
+ Object.assign(contents, doc);
1145
+ const exception = new DependencyException({
1146
+ $metadata: deserializeMetadata(parsedOutput),
1147
+ ...contents
1148
+ });
1149
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1150
+ }, "de_DependencyExceptionRes");
1151
+ var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1152
+ const contents = (0, import_smithy_client.map)({});
1153
+ const data = parsedOutput.body;
1154
+ const doc = (0, import_smithy_client.take)(data, {
1155
+ message: import_smithy_client.expectString
1156
+ });
1157
+ Object.assign(contents, doc);
1158
+ const exception = new InternalServiceException({
1159
+ $metadata: deserializeMetadata(parsedOutput),
1160
+ ...contents
1161
+ });
1162
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1163
+ }, "de_InternalServiceExceptionRes");
1164
+ var de_InvalidParametersExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1165
+ const contents = (0, import_smithy_client.map)({});
1166
+ const data = parsedOutput.body;
1167
+ const doc = (0, import_smithy_client.take)(data, {
1168
+ message: import_smithy_client.expectString
1169
+ });
1170
+ Object.assign(contents, doc);
1171
+ const exception = new InvalidParametersException({
1172
+ $metadata: deserializeMetadata(parsedOutput),
1173
+ ...contents
1174
+ });
1175
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1176
+ }, "de_InvalidParametersExceptionRes");
1177
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1178
+ const contents = (0, import_smithy_client.map)({});
1179
+ const data = parsedOutput.body;
1180
+ const doc = (0, import_smithy_client.take)(data, {
1181
+ message: import_smithy_client.expectString
1182
+ });
1183
+ Object.assign(contents, doc);
1184
+ const exception = new LimitExceededException({
1185
+ $metadata: deserializeMetadata(parsedOutput),
1186
+ ...contents
1187
+ });
1188
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1189
+ }, "de_LimitExceededExceptionRes");
1190
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1191
+ const contents = (0, import_smithy_client.map)({});
1192
+ const data = parsedOutput.body;
1193
+ const doc = (0, import_smithy_client.take)(data, {
1194
+ message: import_smithy_client.expectString
1195
+ });
1196
+ Object.assign(contents, doc);
1197
+ const exception = new ResourceNotFoundException({
1198
+ $metadata: deserializeMetadata(parsedOutput),
1199
+ ...contents
1200
+ });
1201
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1202
+ }, "de_ResourceNotFoundExceptionRes");
1203
+ var de_ThrottledRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1204
+ const contents = (0, import_smithy_client.map)({});
1205
+ const data = parsedOutput.body;
1206
+ const doc = (0, import_smithy_client.take)(data, {
1207
+ message: import_smithy_client.expectString
1208
+ });
1209
+ Object.assign(contents, doc);
1210
+ const exception = new ThrottledRequestException({
1211
+ $metadata: deserializeMetadata(parsedOutput),
1212
+ ...contents
1213
+ });
1214
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1215
+ }, "de_ThrottledRequestExceptionRes");
1216
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1217
+ const contents = (0, import_smithy_client.map)({});
1218
+ const data = parsedOutput.body;
1219
+ const doc = (0, import_smithy_client.take)(data, {
1220
+ message: import_smithy_client.expectString
1221
+ });
1222
+ Object.assign(contents, doc);
1223
+ const exception = new ValidationException({
1224
+ $metadata: deserializeMetadata(parsedOutput),
1225
+ ...contents
1226
+ });
1227
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1228
+ }, "de_ValidationExceptionRes");
1229
+ var de_LinkedWhatsAppBusinessAccount = /* @__PURE__ */ __name((output, context) => {
1230
+ return (0, import_smithy_client.take)(output, {
1231
+ arn: import_smithy_client.expectString,
1232
+ eventDestinations: import_smithy_client._json,
1233
+ id: import_smithy_client.expectString,
1234
+ linkDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "linkDate"),
1235
+ phoneNumbers: import_smithy_client._json,
1236
+ registrationStatus: import_smithy_client.expectString,
1237
+ wabaId: import_smithy_client.expectString,
1238
+ wabaName: import_smithy_client.expectString
1239
+ });
1240
+ }, "de_LinkedWhatsAppBusinessAccount");
1241
+ var de_LinkedWhatsAppBusinessAccountSummary = /* @__PURE__ */ __name((output, context) => {
1242
+ return (0, import_smithy_client.take)(output, {
1243
+ arn: import_smithy_client.expectString,
1244
+ eventDestinations: import_smithy_client._json,
1245
+ id: import_smithy_client.expectString,
1246
+ linkDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "linkDate"),
1247
+ registrationStatus: import_smithy_client.expectString,
1248
+ wabaId: import_smithy_client.expectString,
1249
+ wabaName: import_smithy_client.expectString
1250
+ });
1251
+ }, "de_LinkedWhatsAppBusinessAccountSummary");
1252
+ var de_LinkedWhatsAppBusinessAccountSummaryList = /* @__PURE__ */ __name((output, context) => {
1253
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1254
+ return de_LinkedWhatsAppBusinessAccountSummary(entry, context);
1255
+ });
1256
+ return retVal;
1257
+ }, "de_LinkedWhatsAppBusinessAccountSummaryList");
1258
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1259
+ httpStatusCode: output.statusCode,
1260
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1261
+ extendedRequestId: output.headers["x-amz-id-2"],
1262
+ cfId: output.headers["x-amz-cf-id"]
1263
+ }), "deserializeMetadata");
1264
+ var _dAL = "deleteAllLanguages";
1265
+ var _dAT = "deleteAllTemplates";
1266
+ var _i = "id";
1267
+ var _mI = "mediaId";
1268
+ var _mR = "maxResults";
1269
+ var _mTI = "metaTemplateId";
1270
+ var _nT = "nextToken";
1271
+ var _oPNI = "originationPhoneNumberId";
1272
+ var _rA = "resourceArn";
1273
+ var _tN = "templateName";
1274
+
1275
+ // src/commands/AssociateWhatsAppBusinessAccountCommand.ts
1276
+ var AssociateWhatsAppBusinessAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1277
+ return [
1278
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1279
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1280
+ ];
1281
+ }).s("SocialMessaging", "AssociateWhatsAppBusinessAccount", {}).n("SocialMessagingClient", "AssociateWhatsAppBusinessAccountCommand").f(AssociateWhatsAppBusinessAccountInputFilterSensitiveLog, AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog).ser(se_AssociateWhatsAppBusinessAccountCommand).de(de_AssociateWhatsAppBusinessAccountCommand).build() {
1282
+ static {
1283
+ __name(this, "AssociateWhatsAppBusinessAccountCommand");
1284
+ }
1285
+ };
1286
+
1287
+ // src/commands/CreateWhatsAppMessageTemplateCommand.ts
1288
+
1289
+
1290
+
1291
+ var CreateWhatsAppMessageTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1292
+ return [
1293
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1294
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1295
+ ];
1296
+ }).s("SocialMessaging", "CreateWhatsAppMessageTemplate", {}).n("SocialMessagingClient", "CreateWhatsAppMessageTemplateCommand").f(void 0, void 0).ser(se_CreateWhatsAppMessageTemplateCommand).de(de_CreateWhatsAppMessageTemplateCommand).build() {
1297
+ static {
1298
+ __name(this, "CreateWhatsAppMessageTemplateCommand");
1299
+ }
1300
+ };
1301
+
1302
+ // src/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.ts
1303
+
1304
+
1305
+
1306
+ var CreateWhatsAppMessageTemplateFromLibraryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1307
+ return [
1308
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1309
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1310
+ ];
1311
+ }).s("SocialMessaging", "CreateWhatsAppMessageTemplateFromLibrary", {}).n("SocialMessagingClient", "CreateWhatsAppMessageTemplateFromLibraryCommand").f(void 0, void 0).ser(se_CreateWhatsAppMessageTemplateFromLibraryCommand).de(de_CreateWhatsAppMessageTemplateFromLibraryCommand).build() {
1312
+ static {
1313
+ __name(this, "CreateWhatsAppMessageTemplateFromLibraryCommand");
1314
+ }
1315
+ };
1316
+
1317
+ // src/commands/CreateWhatsAppMessageTemplateMediaCommand.ts
1318
+
1319
+
1320
+
1321
+ var CreateWhatsAppMessageTemplateMediaCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1322
+ return [
1323
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1324
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1325
+ ];
1326
+ }).s("SocialMessaging", "CreateWhatsAppMessageTemplateMedia", {}).n("SocialMessagingClient", "CreateWhatsAppMessageTemplateMediaCommand").f(CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog, void 0).ser(se_CreateWhatsAppMessageTemplateMediaCommand).de(de_CreateWhatsAppMessageTemplateMediaCommand).build() {
1327
+ static {
1328
+ __name(this, "CreateWhatsAppMessageTemplateMediaCommand");
1329
+ }
1330
+ };
1331
+
1332
+ // src/commands/DeleteWhatsAppMessageMediaCommand.ts
1333
+
1334
+
1335
+
1336
+ var DeleteWhatsAppMessageMediaCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1337
+ return [
1338
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1339
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1340
+ ];
1341
+ }).s("SocialMessaging", "DeleteWhatsAppMessageMedia", {}).n("SocialMessagingClient", "DeleteWhatsAppMessageMediaCommand").f(void 0, void 0).ser(se_DeleteWhatsAppMessageMediaCommand).de(de_DeleteWhatsAppMessageMediaCommand).build() {
1342
+ static {
1343
+ __name(this, "DeleteWhatsAppMessageMediaCommand");
1344
+ }
1345
+ };
1346
+
1347
+ // src/commands/DeleteWhatsAppMessageTemplateCommand.ts
1348
+
1349
+
1350
+
1351
+ var DeleteWhatsAppMessageTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1352
+ return [
1353
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1354
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1355
+ ];
1356
+ }).s("SocialMessaging", "DeleteWhatsAppMessageTemplate", {}).n("SocialMessagingClient", "DeleteWhatsAppMessageTemplateCommand").f(void 0, void 0).ser(se_DeleteWhatsAppMessageTemplateCommand).de(de_DeleteWhatsAppMessageTemplateCommand).build() {
1357
+ static {
1358
+ __name(this, "DeleteWhatsAppMessageTemplateCommand");
1359
+ }
1360
+ };
1361
+
1362
+ // src/commands/DisassociateWhatsAppBusinessAccountCommand.ts
1363
+
1364
+
1365
+
1366
+ var DisassociateWhatsAppBusinessAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1367
+ return [
1368
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1369
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1370
+ ];
1371
+ }).s("SocialMessaging", "DisassociateWhatsAppBusinessAccount", {}).n("SocialMessagingClient", "DisassociateWhatsAppBusinessAccountCommand").f(void 0, void 0).ser(se_DisassociateWhatsAppBusinessAccountCommand).de(de_DisassociateWhatsAppBusinessAccountCommand).build() {
1372
+ static {
1373
+ __name(this, "DisassociateWhatsAppBusinessAccountCommand");
1374
+ }
1375
+ };
1376
+
1377
+ // src/commands/GetLinkedWhatsAppBusinessAccountCommand.ts
1378
+
1379
+
1380
+
1381
+ var GetLinkedWhatsAppBusinessAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1382
+ return [
1383
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1384
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1385
+ ];
1386
+ }).s("SocialMessaging", "GetLinkedWhatsAppBusinessAccount", {}).n("SocialMessagingClient", "GetLinkedWhatsAppBusinessAccountCommand").f(void 0, void 0).ser(se_GetLinkedWhatsAppBusinessAccountCommand).de(de_GetLinkedWhatsAppBusinessAccountCommand).build() {
1387
+ static {
1388
+ __name(this, "GetLinkedWhatsAppBusinessAccountCommand");
1389
+ }
1390
+ };
1391
+
1392
+ // src/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.ts
1393
+
1394
+
1395
+
1396
+ var GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1397
+ return [
1398
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1399
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1400
+ ];
1401
+ }).s("SocialMessaging", "GetLinkedWhatsAppBusinessAccountPhoneNumber", {}).n("SocialMessagingClient", "GetLinkedWhatsAppBusinessAccountPhoneNumberCommand").f(void 0, void 0).ser(se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand).de(de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand).build() {
1402
+ static {
1403
+ __name(this, "GetLinkedWhatsAppBusinessAccountPhoneNumberCommand");
1404
+ }
1405
+ };
1406
+
1407
+ // src/commands/GetWhatsAppMessageMediaCommand.ts
1408
+
1409
+
1410
+
1411
+ var GetWhatsAppMessageMediaCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1412
+ return [
1413
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1414
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1415
+ ];
1416
+ }).s("SocialMessaging", "GetWhatsAppMessageMedia", {}).n("SocialMessagingClient", "GetWhatsAppMessageMediaCommand").f(GetWhatsAppMessageMediaInputFilterSensitiveLog, void 0).ser(se_GetWhatsAppMessageMediaCommand).de(de_GetWhatsAppMessageMediaCommand).build() {
1417
+ static {
1418
+ __name(this, "GetWhatsAppMessageMediaCommand");
1419
+ }
1420
+ };
1421
+
1422
+ // src/commands/GetWhatsAppMessageTemplateCommand.ts
1423
+
1424
+
1425
+
1426
+ var GetWhatsAppMessageTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1427
+ return [
1428
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1429
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1430
+ ];
1431
+ }).s("SocialMessaging", "GetWhatsAppMessageTemplate", {}).n("SocialMessagingClient", "GetWhatsAppMessageTemplateCommand").f(void 0, void 0).ser(se_GetWhatsAppMessageTemplateCommand).de(de_GetWhatsAppMessageTemplateCommand).build() {
1432
+ static {
1433
+ __name(this, "GetWhatsAppMessageTemplateCommand");
1434
+ }
1435
+ };
1436
+
1437
+ // src/commands/ListLinkedWhatsAppBusinessAccountsCommand.ts
1438
+
1439
+
1440
+
1441
+ var ListLinkedWhatsAppBusinessAccountsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1442
+ return [
1443
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1444
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1445
+ ];
1446
+ }).s("SocialMessaging", "ListLinkedWhatsAppBusinessAccounts", {}).n("SocialMessagingClient", "ListLinkedWhatsAppBusinessAccountsCommand").f(void 0, void 0).ser(se_ListLinkedWhatsAppBusinessAccountsCommand).de(de_ListLinkedWhatsAppBusinessAccountsCommand).build() {
1447
+ static {
1448
+ __name(this, "ListLinkedWhatsAppBusinessAccountsCommand");
1449
+ }
1450
+ };
1451
+
1452
+ // src/commands/ListTagsForResourceCommand.ts
1453
+
1454
+
1455
+
1456
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1457
+ return [
1458
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1459
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1460
+ ];
1461
+ }).s("SocialMessaging", "ListTagsForResource", {}).n("SocialMessagingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1462
+ static {
1463
+ __name(this, "ListTagsForResourceCommand");
1464
+ }
1465
+ };
1466
+
1467
+ // src/commands/ListWhatsAppMessageTemplatesCommand.ts
1468
+
1469
+
1470
+
1471
+ var ListWhatsAppMessageTemplatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1472
+ return [
1473
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1474
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1475
+ ];
1476
+ }).s("SocialMessaging", "ListWhatsAppMessageTemplates", {}).n("SocialMessagingClient", "ListWhatsAppMessageTemplatesCommand").f(void 0, void 0).ser(se_ListWhatsAppMessageTemplatesCommand).de(de_ListWhatsAppMessageTemplatesCommand).build() {
1477
+ static {
1478
+ __name(this, "ListWhatsAppMessageTemplatesCommand");
1479
+ }
1480
+ };
1481
+
1482
+ // src/commands/ListWhatsAppTemplateLibraryCommand.ts
1483
+
1484
+
1485
+
1486
+ var ListWhatsAppTemplateLibraryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1487
+ return [
1488
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1489
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1490
+ ];
1491
+ }).s("SocialMessaging", "ListWhatsAppTemplateLibrary", {}).n("SocialMessagingClient", "ListWhatsAppTemplateLibraryCommand").f(void 0, void 0).ser(se_ListWhatsAppTemplateLibraryCommand).de(de_ListWhatsAppTemplateLibraryCommand).build() {
1492
+ static {
1493
+ __name(this, "ListWhatsAppTemplateLibraryCommand");
1494
+ }
1495
+ };
1496
+
1497
+ // src/commands/PostWhatsAppMessageMediaCommand.ts
1498
+
1499
+
1500
+
1501
+ var PostWhatsAppMessageMediaCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1502
+ return [
1503
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1504
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1505
+ ];
1506
+ }).s("SocialMessaging", "PostWhatsAppMessageMedia", {}).n("SocialMessagingClient", "PostWhatsAppMessageMediaCommand").f(PostWhatsAppMessageMediaInputFilterSensitiveLog, void 0).ser(se_PostWhatsAppMessageMediaCommand).de(de_PostWhatsAppMessageMediaCommand).build() {
1507
+ static {
1508
+ __name(this, "PostWhatsAppMessageMediaCommand");
1509
+ }
1510
+ };
1511
+
1512
+ // src/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.ts
1513
+
1514
+
1515
+
1516
+ var PutWhatsAppBusinessAccountEventDestinationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1517
+ return [
1518
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1519
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1520
+ ];
1521
+ }).s("SocialMessaging", "PutWhatsAppBusinessAccountEventDestinations", {}).n("SocialMessagingClient", "PutWhatsAppBusinessAccountEventDestinationsCommand").f(void 0, void 0).ser(se_PutWhatsAppBusinessAccountEventDestinationsCommand).de(de_PutWhatsAppBusinessAccountEventDestinationsCommand).build() {
1522
+ static {
1523
+ __name(this, "PutWhatsAppBusinessAccountEventDestinationsCommand");
1524
+ }
1525
+ };
1526
+
1527
+ // src/commands/SendWhatsAppMessageCommand.ts
1528
+
1529
+
1530
+
1531
+ var SendWhatsAppMessageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1532
+ return [
1533
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1534
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1535
+ ];
1536
+ }).s("SocialMessaging", "SendWhatsAppMessage", {}).n("SocialMessagingClient", "SendWhatsAppMessageCommand").f(SendWhatsAppMessageInputFilterSensitiveLog, void 0).ser(se_SendWhatsAppMessageCommand).de(de_SendWhatsAppMessageCommand).build() {
1537
+ static {
1538
+ __name(this, "SendWhatsAppMessageCommand");
1539
+ }
1540
+ };
1541
+
1542
+ // src/commands/TagResourceCommand.ts
1543
+
1544
+
1545
+
1546
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1547
+ return [
1548
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1549
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1550
+ ];
1551
+ }).s("SocialMessaging", "TagResource", {}).n("SocialMessagingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1552
+ static {
1553
+ __name(this, "TagResourceCommand");
1554
+ }
1555
+ };
1556
+
1557
+ // src/commands/UntagResourceCommand.ts
1558
+
1559
+
1560
+
1561
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1562
+ return [
1563
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1564
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1565
+ ];
1566
+ }).s("SocialMessaging", "UntagResource", {}).n("SocialMessagingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1567
+ static {
1568
+ __name(this, "UntagResourceCommand");
1569
+ }
1570
+ };
1571
+
1572
+ // src/commands/UpdateWhatsAppMessageTemplateCommand.ts
1573
+
1574
+
1575
+
1576
+ var UpdateWhatsAppMessageTemplateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1577
+ return [
1578
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1579
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1580
+ ];
1581
+ }).s("SocialMessaging", "UpdateWhatsAppMessageTemplate", {}).n("SocialMessagingClient", "UpdateWhatsAppMessageTemplateCommand").f(void 0, void 0).ser(se_UpdateWhatsAppMessageTemplateCommand).de(de_UpdateWhatsAppMessageTemplateCommand).build() {
1582
+ static {
1583
+ __name(this, "UpdateWhatsAppMessageTemplateCommand");
1584
+ }
1585
+ };
1586
+
1587
+ // src/SocialMessaging.ts
1588
+ var commands = {
1589
+ AssociateWhatsAppBusinessAccountCommand,
1590
+ CreateWhatsAppMessageTemplateCommand,
1591
+ CreateWhatsAppMessageTemplateFromLibraryCommand,
1592
+ CreateWhatsAppMessageTemplateMediaCommand,
1593
+ DeleteWhatsAppMessageMediaCommand,
1594
+ DeleteWhatsAppMessageTemplateCommand,
1595
+ DisassociateWhatsAppBusinessAccountCommand,
1596
+ GetLinkedWhatsAppBusinessAccountCommand,
1597
+ GetLinkedWhatsAppBusinessAccountPhoneNumberCommand,
1598
+ GetWhatsAppMessageMediaCommand,
1599
+ GetWhatsAppMessageTemplateCommand,
1600
+ ListLinkedWhatsAppBusinessAccountsCommand,
1601
+ ListTagsForResourceCommand,
1602
+ ListWhatsAppMessageTemplatesCommand,
1603
+ ListWhatsAppTemplateLibraryCommand,
1604
+ PostWhatsAppMessageMediaCommand,
1605
+ PutWhatsAppBusinessAccountEventDestinationsCommand,
1606
+ SendWhatsAppMessageCommand,
1607
+ TagResourceCommand,
1608
+ UntagResourceCommand,
1609
+ UpdateWhatsAppMessageTemplateCommand
1610
+ };
1611
+ var SocialMessaging = class extends SocialMessagingClient {
1612
+ static {
1613
+ __name(this, "SocialMessaging");
1614
+ }
1615
+ };
1616
+ (0, import_smithy_client.createAggregatedClient)(commands, SocialMessaging);
1617
+
1618
+ // src/pagination/ListLinkedWhatsAppBusinessAccountsPaginator.ts
1619
+
1620
+ var paginateListLinkedWhatsAppBusinessAccounts = (0, import_core.createPaginator)(SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand, "nextToken", "nextToken", "maxResults");
1621
+
1622
+ // src/pagination/ListWhatsAppMessageTemplatesPaginator.ts
1623
+
1624
+ var paginateListWhatsAppMessageTemplates = (0, import_core.createPaginator)(SocialMessagingClient, ListWhatsAppMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
1625
+
1626
+ // src/pagination/ListWhatsAppTemplateLibraryPaginator.ts
1627
+
1628
+ var paginateListWhatsAppTemplateLibrary = (0, import_core.createPaginator)(SocialMessagingClient, ListWhatsAppTemplateLibraryCommand, "nextToken", "nextToken", "maxResults");
1629
+ // Annotate the CommonJS export names for ESM import in node:
1630
+
1631
+ 0 && (module.exports = {
1632
+ SocialMessagingServiceException,
1633
+ __Client,
1634
+ SocialMessagingClient,
1635
+ SocialMessaging,
1636
+ $Command,
1637
+ AssociateWhatsAppBusinessAccountCommand,
1638
+ CreateWhatsAppMessageTemplateCommand,
1639
+ CreateWhatsAppMessageTemplateFromLibraryCommand,
1640
+ CreateWhatsAppMessageTemplateMediaCommand,
1641
+ DeleteWhatsAppMessageMediaCommand,
1642
+ DeleteWhatsAppMessageTemplateCommand,
1643
+ DisassociateWhatsAppBusinessAccountCommand,
1644
+ GetLinkedWhatsAppBusinessAccountCommand,
1645
+ GetLinkedWhatsAppBusinessAccountPhoneNumberCommand,
1646
+ GetWhatsAppMessageMediaCommand,
1647
+ GetWhatsAppMessageTemplateCommand,
1648
+ ListLinkedWhatsAppBusinessAccountsCommand,
1649
+ ListTagsForResourceCommand,
1650
+ ListWhatsAppMessageTemplatesCommand,
1651
+ ListWhatsAppTemplateLibraryCommand,
1652
+ PostWhatsAppMessageMediaCommand,
1653
+ PutWhatsAppBusinessAccountEventDestinationsCommand,
1654
+ SendWhatsAppMessageCommand,
1655
+ TagResourceCommand,
1656
+ UntagResourceCommand,
1657
+ UpdateWhatsAppMessageTemplateCommand,
1658
+ paginateListLinkedWhatsAppBusinessAccounts,
1659
+ paginateListWhatsAppMessageTemplates,
1660
+ paginateListWhatsAppTemplateLibrary,
1661
+ AccessDeniedByMetaException,
1662
+ AccessDeniedException,
1663
+ RegistrationStatus,
1664
+ DependencyException,
1665
+ InvalidParametersException,
1666
+ LimitExceededException,
1667
+ ThrottledRequestException,
1668
+ ValidationException,
1669
+ InternalServiceException,
1670
+ ResourceNotFoundException,
1671
+ WabaPhoneNumberSetupFinalizationFilterSensitiveLog,
1672
+ WhatsAppSetupFinalizationFilterSensitiveLog,
1673
+ AssociateWhatsAppBusinessAccountInputFilterSensitiveLog,
1674
+ WhatsAppSignupCallbackResultFilterSensitiveLog,
1675
+ AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog,
1676
+ S3FileFilterSensitiveLog,
1677
+ CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog,
1678
+ S3PresignedUrlFilterSensitiveLog,
1679
+ GetWhatsAppMessageMediaInputFilterSensitiveLog,
1680
+ PostWhatsAppMessageMediaInputFilterSensitiveLog,
1681
+ SendWhatsAppMessageInputFilterSensitiveLog
1682
+ });
1683
+