@aws-sdk/client-socialmessaging 3.927.0 → 3.929.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 (45) hide show
  1. package/dist-cjs/index.js +1106 -1014
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SocialMessagingClient.js +2 -0
  4. package/dist-es/commands/AssociateWhatsAppBusinessAccountCommand.js +3 -10
  5. package/dist-es/commands/CreateWhatsAppMessageTemplateCommand.js +3 -9
  6. package/dist-es/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +3 -9
  7. package/dist-es/commands/CreateWhatsAppMessageTemplateMediaCommand.js +3 -10
  8. package/dist-es/commands/DeleteWhatsAppMessageMediaCommand.js +3 -9
  9. package/dist-es/commands/DeleteWhatsAppMessageTemplateCommand.js +3 -9
  10. package/dist-es/commands/DisassociateWhatsAppBusinessAccountCommand.js +3 -9
  11. package/dist-es/commands/GetLinkedWhatsAppBusinessAccountCommand.js +3 -9
  12. package/dist-es/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.js +3 -9
  13. package/dist-es/commands/GetWhatsAppMessageMediaCommand.js +3 -10
  14. package/dist-es/commands/GetWhatsAppMessageTemplateCommand.js +3 -9
  15. package/dist-es/commands/ListLinkedWhatsAppBusinessAccountsCommand.js +3 -9
  16. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  17. package/dist-es/commands/ListWhatsAppMessageTemplatesCommand.js +3 -9
  18. package/dist-es/commands/ListWhatsAppTemplateLibraryCommand.js +3 -9
  19. package/dist-es/commands/PostWhatsAppMessageMediaCommand.js +3 -10
  20. package/dist-es/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.js +3 -9
  21. package/dist-es/commands/SendWhatsAppMessageCommand.js +3 -10
  22. package/dist-es/commands/TagResourceCommand.js +3 -9
  23. package/dist-es/commands/UntagResourceCommand.js +3 -9
  24. package/dist-es/commands/UpdateWhatsAppMessageTemplateCommand.js +3 -9
  25. package/dist-es/models/models_0.js +0 -52
  26. package/dist-es/runtimeConfig.shared.js +2 -0
  27. package/dist-es/schemas/schemas_0.js +1053 -0
  28. package/dist-types/SocialMessagingClient.d.ts +10 -1
  29. package/dist-types/models/models_0.d.ts +0 -44
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  31. package/dist-types/runtimeConfig.d.ts +1 -0
  32. package/dist-types/runtimeConfig.native.d.ts +1 -0
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/schemas/schemas_0.d.ts +116 -0
  35. package/dist-types/ts3.4/SocialMessagingClient.d.ts +4 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  37. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  39. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  40. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  41. package/dist-types/ts3.4/schemas/schemas_0.d.ts +123 -0
  42. package/package.json +5 -5
  43. package/dist-es/protocols/Aws_restJson1.js +0 -789
  44. package/dist-types/protocols/Aws_restJson1.d.ts +0 -191
  45. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -257
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class SocialMessagingClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class SocialMessagingClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class SocialMessagingServiceException extends smithyClient.ServiceException {
113
+ let SocialMessagingServiceException$1 = class SocialMessagingServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, SocialMessagingServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedByMetaException extends SocialMessagingServiceException {
120
+ let AccessDeniedByMetaException$1 = class AccessDeniedByMetaException extends SocialMessagingServiceException$1 {
121
121
  name = "AccessDeniedByMetaException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,8 +128,8 @@ class AccessDeniedByMetaException extends SocialMessagingServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, AccessDeniedByMetaException.prototype);
130
130
  }
131
- }
132
- class AccessDeniedException extends SocialMessagingServiceException {
131
+ };
132
+ let AccessDeniedException$1 = class AccessDeniedException extends SocialMessagingServiceException$1 {
133
133
  name = "AccessDeniedException";
134
134
  $fault = "client";
135
135
  constructor(opts) {
@@ -140,12 +140,12 @@ class AccessDeniedException extends SocialMessagingServiceException {
140
140
  });
141
141
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
142
142
  }
143
- }
143
+ };
144
144
  const RegistrationStatus = {
145
145
  COMPLETE: "COMPLETE",
146
146
  INCOMPLETE: "INCOMPLETE",
147
147
  };
148
- class DependencyException extends SocialMessagingServiceException {
148
+ let DependencyException$1 = class DependencyException extends SocialMessagingServiceException$1 {
149
149
  name = "DependencyException";
150
150
  $fault = "server";
151
151
  $retryable = {};
@@ -157,8 +157,8 @@ class DependencyException extends SocialMessagingServiceException {
157
157
  });
158
158
  Object.setPrototypeOf(this, DependencyException.prototype);
159
159
  }
160
- }
161
- class InvalidParametersException extends SocialMessagingServiceException {
160
+ };
161
+ let InvalidParametersException$1 = class InvalidParametersException extends SocialMessagingServiceException$1 {
162
162
  name = "InvalidParametersException";
163
163
  $fault = "client";
164
164
  constructor(opts) {
@@ -169,8 +169,8 @@ class InvalidParametersException extends SocialMessagingServiceException {
169
169
  });
170
170
  Object.setPrototypeOf(this, InvalidParametersException.prototype);
171
171
  }
172
- }
173
- class LimitExceededException extends SocialMessagingServiceException {
172
+ };
173
+ let LimitExceededException$1 = class LimitExceededException extends SocialMessagingServiceException$1 {
174
174
  name = "LimitExceededException";
175
175
  $fault = "client";
176
176
  constructor(opts) {
@@ -181,8 +181,8 @@ class LimitExceededException extends SocialMessagingServiceException {
181
181
  });
182
182
  Object.setPrototypeOf(this, LimitExceededException.prototype);
183
183
  }
184
- }
185
- class ThrottledRequestException extends SocialMessagingServiceException {
184
+ };
185
+ let ThrottledRequestException$1 = class ThrottledRequestException extends SocialMessagingServiceException$1 {
186
186
  name = "ThrottledRequestException";
187
187
  $fault = "client";
188
188
  $retryable = {};
@@ -194,8 +194,8 @@ class ThrottledRequestException extends SocialMessagingServiceException {
194
194
  });
195
195
  Object.setPrototypeOf(this, ThrottledRequestException.prototype);
196
196
  }
197
- }
198
- class ValidationException extends SocialMessagingServiceException {
197
+ };
198
+ let ValidationException$1 = class ValidationException extends SocialMessagingServiceException$1 {
199
199
  name = "ValidationException";
200
200
  $fault = "client";
201
201
  constructor(opts) {
@@ -206,8 +206,8 @@ class ValidationException extends SocialMessagingServiceException {
206
206
  });
207
207
  Object.setPrototypeOf(this, ValidationException.prototype);
208
208
  }
209
- }
210
- class InternalServiceException extends SocialMessagingServiceException {
209
+ };
210
+ let InternalServiceException$1 = class InternalServiceException extends SocialMessagingServiceException$1 {
211
211
  name = "InternalServiceException";
212
212
  $fault = "server";
213
213
  $retryable = {};
@@ -219,8 +219,8 @@ class InternalServiceException extends SocialMessagingServiceException {
219
219
  });
220
220
  Object.setPrototypeOf(this, InternalServiceException.prototype);
221
221
  }
222
- }
223
- class ResourceNotFoundException extends SocialMessagingServiceException {
222
+ };
223
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SocialMessagingServiceException$1 {
224
224
  name = "ResourceNotFoundException";
225
225
  $fault = "client";
226
226
  constructor(opts) {
@@ -231,857 +231,1060 @@ class ResourceNotFoundException extends SocialMessagingServiceException {
231
231
  });
232
232
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
233
233
  }
234
- }
235
- const WabaPhoneNumberSetupFinalizationFilterSensitiveLog = (obj) => ({
236
- ...obj,
237
- ...(obj.twoFactorPin && { twoFactorPin: smithyClient.SENSITIVE_STRING }),
238
- });
239
- const WhatsAppSetupFinalizationFilterSensitiveLog = (obj) => ({
240
- ...obj,
241
- ...(obj.associateInProgressToken && { associateInProgressToken: smithyClient.SENSITIVE_STRING }),
242
- ...(obj.phoneNumbers && {
243
- phoneNumbers: obj.phoneNumbers.map((item) => WabaPhoneNumberSetupFinalizationFilterSensitiveLog(item)),
244
- }),
245
- });
246
- const AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = (obj) => ({
247
- ...obj,
248
- ...(obj.setupFinalization && {
249
- setupFinalization: WhatsAppSetupFinalizationFilterSensitiveLog(obj.setupFinalization),
250
- }),
251
- });
252
- const WhatsAppSignupCallbackResultFilterSensitiveLog = (obj) => ({
253
- ...obj,
254
- ...(obj.associateInProgressToken && { associateInProgressToken: smithyClient.SENSITIVE_STRING }),
255
- });
256
- const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = (obj) => ({
257
- ...obj,
258
- ...(obj.signupCallbackResult && {
259
- signupCallbackResult: WhatsAppSignupCallbackResultFilterSensitiveLog(obj.signupCallbackResult),
260
- }),
261
- });
262
- const S3FileFilterSensitiveLog = (obj) => ({
263
- ...obj,
264
- });
265
- const CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = (obj) => ({
266
- ...obj,
267
- ...(obj.sourceS3File && { sourceS3File: smithyClient.SENSITIVE_STRING }),
268
- });
269
- const S3PresignedUrlFilterSensitiveLog = (obj) => ({
270
- ...obj,
271
- });
272
- const GetWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
273
- ...obj,
274
- ...(obj.destinationS3PresignedUrl && { destinationS3PresignedUrl: smithyClient.SENSITIVE_STRING }),
275
- ...(obj.destinationS3File && { destinationS3File: smithyClient.SENSITIVE_STRING }),
276
- });
277
- const PostWhatsAppMessageMediaInputFilterSensitiveLog = (obj) => ({
278
- ...obj,
279
- ...(obj.sourceS3PresignedUrl && { sourceS3PresignedUrl: smithyClient.SENSITIVE_STRING }),
280
- ...(obj.sourceS3File && { sourceS3File: smithyClient.SENSITIVE_STRING }),
281
- });
282
- const SendWhatsAppMessageInputFilterSensitiveLog = (obj) => ({
283
- ...obj,
284
- ...(obj.message && { message: smithyClient.SENSITIVE_STRING }),
285
- });
286
-
287
- const se_AssociateWhatsAppBusinessAccountCommand = async (input, context) => {
288
- const b = core.requestBuilder(input, context);
289
- const headers = {
290
- "content-type": "application/json",
291
- };
292
- b.bp("/v1/whatsapp/signup");
293
- let body;
294
- body = JSON.stringify(smithyClient.take(input, {
295
- setupFinalization: (_) => smithyClient._json(_),
296
- signupCallback: (_) => smithyClient._json(_),
297
- }));
298
- b.m("POST").h(headers).b(body);
299
- return b.build();
300
- };
301
- const se_CreateWhatsAppMessageTemplateCommand = async (input, context) => {
302
- const b = core.requestBuilder(input, context);
303
- const headers = {
304
- "content-type": "application/json",
305
- };
306
- b.bp("/v1/whatsapp/template/put");
307
- let body;
308
- body = JSON.stringify(smithyClient.take(input, {
309
- id: [],
310
- templateDefinition: (_) => context.base64Encoder(_),
311
- }));
312
- b.m("POST").h(headers).b(body);
313
- return b.build();
314
- };
315
- const se_CreateWhatsAppMessageTemplateFromLibraryCommand = async (input, context) => {
316
- const b = core.requestBuilder(input, context);
317
- const headers = {
318
- "content-type": "application/json",
319
- };
320
- b.bp("/v1/whatsapp/template/create");
321
- let body;
322
- body = JSON.stringify(smithyClient.take(input, {
323
- id: [],
324
- metaLibraryTemplate: (_) => smithyClient._json(_),
325
- }));
326
- b.m("POST").h(headers).b(body);
327
- return b.build();
328
- };
329
- const se_CreateWhatsAppMessageTemplateMediaCommand = async (input, context) => {
330
- const b = core.requestBuilder(input, context);
331
- const headers = {
332
- "content-type": "application/json",
333
- };
334
- b.bp("/v1/whatsapp/template/media");
335
- let body;
336
- body = JSON.stringify(smithyClient.take(input, {
337
- id: [],
338
- sourceS3File: (_) => smithyClient._json(_),
339
- }));
340
- b.m("POST").h(headers).b(body);
341
- return b.build();
342
- };
343
- const se_DeleteWhatsAppMessageMediaCommand = async (input, context) => {
344
- const b = core.requestBuilder(input, context);
345
- const headers = {};
346
- b.bp("/v1/whatsapp/media");
347
- const query = smithyClient.map({
348
- [_mI]: [, smithyClient.expectNonNull(input[_mI], `mediaId`)],
349
- [_oPNI]: [, smithyClient.expectNonNull(input[_oPNI], `originationPhoneNumberId`)],
350
- });
351
- let body;
352
- b.m("DELETE").h(headers).q(query).b(body);
353
- return b.build();
354
- };
355
- const se_DeleteWhatsAppMessageTemplateCommand = async (input, context) => {
356
- const b = core.requestBuilder(input, context);
357
- const headers = {};
358
- b.bp("/v1/whatsapp/template");
359
- const query = smithyClient.map({
360
- [_mTI]: [, input[_mTI]],
361
- [_dAT]: [() => input.deleteAllLanguages !== void 0, () => input[_dAL].toString()],
362
- [_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
363
- [_tN]: [, smithyClient.expectNonNull(input[_tN], `templateName`)],
364
- });
365
- let body;
366
- b.m("DELETE").h(headers).q(query).b(body);
367
- return b.build();
368
- };
369
- const se_DisassociateWhatsAppBusinessAccountCommand = async (input, context) => {
370
- const b = core.requestBuilder(input, context);
371
- const headers = {};
372
- b.bp("/v1/whatsapp/waba/disassociate");
373
- const query = smithyClient.map({
374
- [_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
375
- });
376
- let body;
377
- b.m("DELETE").h(headers).q(query).b(body);
378
- return b.build();
379
- };
380
- const se_GetLinkedWhatsAppBusinessAccountCommand = async (input, context) => {
381
- const b = core.requestBuilder(input, context);
382
- const headers = {};
383
- b.bp("/v1/whatsapp/waba/details");
384
- const query = smithyClient.map({
385
- [_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
386
- });
387
- let body;
388
- b.m("GET").h(headers).q(query).b(body);
389
- return b.build();
390
- };
391
- const se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = async (input, context) => {
392
- const b = core.requestBuilder(input, context);
393
- const headers = {};
394
- b.bp("/v1/whatsapp/waba/phone/details");
395
- const query = smithyClient.map({
396
- [_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
397
- });
398
- let body;
399
- b.m("GET").h(headers).q(query).b(body);
400
- return b.build();
401
- };
402
- const se_GetWhatsAppMessageMediaCommand = async (input, context) => {
403
- const b = core.requestBuilder(input, context);
404
- const headers = {
405
- "content-type": "application/json",
406
- };
407
- b.bp("/v1/whatsapp/media/get");
408
- let body;
409
- body = JSON.stringify(smithyClient.take(input, {
410
- destinationS3File: (_) => smithyClient._json(_),
411
- destinationS3PresignedUrl: (_) => smithyClient._json(_),
412
- mediaId: [],
413
- metadataOnly: [],
414
- originationPhoneNumberId: [],
415
- }));
416
- b.m("POST").h(headers).b(body);
417
- return b.build();
418
- };
419
- const se_GetWhatsAppMessageTemplateCommand = async (input, context) => {
420
- const b = core.requestBuilder(input, context);
421
- const headers = {};
422
- b.bp("/v1/whatsapp/template");
423
- const query = smithyClient.map({
424
- [_mTI]: [, smithyClient.expectNonNull(input[_mTI], `metaTemplateId`)],
425
- [_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
426
- });
427
- let body;
428
- b.m("GET").h(headers).q(query).b(body);
429
- return b.build();
430
- };
431
- const se_ListLinkedWhatsAppBusinessAccountsCommand = async (input, context) => {
432
- const b = core.requestBuilder(input, context);
433
- const headers = {};
434
- b.bp("/v1/whatsapp/waba/list");
435
- const query = smithyClient.map({
436
- [_nT]: [, input[_nT]],
437
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
438
- });
439
- let body;
440
- b.m("GET").h(headers).q(query).b(body);
441
- return b.build();
442
- };
443
- const se_ListTagsForResourceCommand = async (input, context) => {
444
- const b = core.requestBuilder(input, context);
445
- const headers = {};
446
- b.bp("/v1/tags/list");
447
- const query = smithyClient.map({
448
- [_rA]: [, smithyClient.expectNonNull(input[_rA], `resourceArn`)],
449
- });
450
- let body;
451
- b.m("GET").h(headers).q(query).b(body);
452
- return b.build();
453
- };
454
- const se_ListWhatsAppMessageTemplatesCommand = async (input, context) => {
455
- const b = core.requestBuilder(input, context);
456
- const headers = {};
457
- b.bp("/v1/whatsapp/template/list");
458
- const query = smithyClient.map({
459
- [_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
460
- [_nT]: [, input[_nT]],
461
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
462
- });
463
- let body;
464
- b.m("GET").h(headers).q(query).b(body);
465
- return b.build();
466
- };
467
- const se_ListWhatsAppTemplateLibraryCommand = async (input, context) => {
468
- const b = core.requestBuilder(input, context);
469
- const headers = {
470
- "content-type": "application/json",
471
- };
472
- b.bp("/v1/whatsapp/template/library");
473
- const query = smithyClient.map({
474
- [_i]: [, smithyClient.expectNonNull(input[_i], `id`)],
475
- });
476
- let body;
477
- body = JSON.stringify(smithyClient.take(input, {
478
- filters: (_) => smithyClient._json(_),
479
- maxResults: [],
480
- nextToken: [],
481
- }));
482
- b.m("POST").h(headers).q(query).b(body);
483
- return b.build();
484
- };
485
- const se_PostWhatsAppMessageMediaCommand = async (input, context) => {
486
- const b = core.requestBuilder(input, context);
487
- const headers = {
488
- "content-type": "application/json",
489
- };
490
- b.bp("/v1/whatsapp/media");
491
- let body;
492
- body = JSON.stringify(smithyClient.take(input, {
493
- originationPhoneNumberId: [],
494
- sourceS3File: (_) => smithyClient._json(_),
495
- sourceS3PresignedUrl: (_) => smithyClient._json(_),
496
- }));
497
- b.m("POST").h(headers).b(body);
498
- return b.build();
499
- };
500
- const se_PutWhatsAppBusinessAccountEventDestinationsCommand = async (input, context) => {
501
- const b = core.requestBuilder(input, context);
502
- const headers = {
503
- "content-type": "application/json",
504
- };
505
- b.bp("/v1/whatsapp/waba/eventdestinations");
506
- let body;
507
- body = JSON.stringify(smithyClient.take(input, {
508
- eventDestinations: (_) => smithyClient._json(_),
509
- id: [],
510
- }));
511
- b.m("PUT").h(headers).b(body);
512
- return b.build();
513
- };
514
- const se_SendWhatsAppMessageCommand = async (input, context) => {
515
- const b = core.requestBuilder(input, context);
516
- const headers = {
517
- "content-type": "application/json",
518
- };
519
- b.bp("/v1/whatsapp/send");
520
- let body;
521
- body = JSON.stringify(smithyClient.take(input, {
522
- message: (_) => context.base64Encoder(_),
523
- metaApiVersion: [],
524
- originationPhoneNumberId: [],
525
- }));
526
- b.m("POST").h(headers).b(body);
527
- return b.build();
528
- };
529
- const se_TagResourceCommand = async (input, context) => {
530
- const b = core.requestBuilder(input, context);
531
- const headers = {
532
- "content-type": "application/json",
533
- };
534
- b.bp("/v1/tags/tag-resource");
535
- let body;
536
- body = JSON.stringify(smithyClient.take(input, {
537
- resourceArn: [],
538
- tags: (_) => smithyClient._json(_),
539
- }));
540
- b.m("POST").h(headers).b(body);
541
- return b.build();
542
- };
543
- const se_UntagResourceCommand = async (input, context) => {
544
- const b = core.requestBuilder(input, context);
545
- const headers = {
546
- "content-type": "application/json",
547
- };
548
- b.bp("/v1/tags/untag-resource");
549
- let body;
550
- body = JSON.stringify(smithyClient.take(input, {
551
- resourceArn: [],
552
- tagKeys: (_) => smithyClient._json(_),
553
- }));
554
- b.m("POST").h(headers).b(body);
555
- return b.build();
556
- };
557
- const se_UpdateWhatsAppMessageTemplateCommand = async (input, context) => {
558
- const b = core.requestBuilder(input, context);
559
- const headers = {
560
- "content-type": "application/json",
561
- };
562
- b.bp("/v1/whatsapp/template");
563
- let body;
564
- body = JSON.stringify(smithyClient.take(input, {
565
- id: [],
566
- metaTemplateId: [],
567
- templateCategory: [],
568
- templateComponents: (_) => context.base64Encoder(_),
569
- }));
570
- b.m("POST").h(headers).b(body);
571
- return b.build();
572
- };
573
- const de_AssociateWhatsAppBusinessAccountCommand = async (output, context) => {
574
- if (output.statusCode !== 200 && output.statusCode >= 300) {
575
- return de_CommandError(output, context);
576
- }
577
- const contents = smithyClient.map({
578
- $metadata: deserializeMetadata(output),
579
- });
580
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
581
- const doc = smithyClient.take(data, {
582
- signupCallbackResult: smithyClient._json,
583
- statusCode: smithyClient.expectInt32,
584
- });
585
- Object.assign(contents, doc);
586
- return contents;
587
- };
588
- const de_CreateWhatsAppMessageTemplateCommand = async (output, context) => {
589
- if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const contents = smithyClient.map({
593
- $metadata: deserializeMetadata(output),
594
- });
595
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
596
- const doc = smithyClient.take(data, {
597
- category: smithyClient.expectString,
598
- metaTemplateId: smithyClient.expectString,
599
- templateStatus: smithyClient.expectString,
600
- });
601
- Object.assign(contents, doc);
602
- return contents;
603
- };
604
- const de_CreateWhatsAppMessageTemplateFromLibraryCommand = async (output, context) => {
605
- if (output.statusCode !== 200 && output.statusCode >= 300) {
606
- return de_CommandError(output, context);
607
- }
608
- const contents = smithyClient.map({
609
- $metadata: deserializeMetadata(output),
610
- });
611
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
612
- const doc = smithyClient.take(data, {
613
- category: smithyClient.expectString,
614
- metaTemplateId: smithyClient.expectString,
615
- templateStatus: smithyClient.expectString,
616
- });
617
- Object.assign(contents, doc);
618
- return contents;
619
- };
620
- const de_CreateWhatsAppMessageTemplateMediaCommand = async (output, context) => {
621
- if (output.statusCode !== 200 && output.statusCode >= 300) {
622
- return de_CommandError(output, context);
623
- }
624
- const contents = smithyClient.map({
625
- $metadata: deserializeMetadata(output),
626
- });
627
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
628
- const doc = smithyClient.take(data, {
629
- metaHeaderHandle: smithyClient.expectString,
630
- });
631
- Object.assign(contents, doc);
632
- return contents;
633
- };
634
- const de_DeleteWhatsAppMessageMediaCommand = async (output, context) => {
635
- if (output.statusCode !== 200 && output.statusCode >= 300) {
636
- return de_CommandError(output, context);
637
- }
638
- const contents = smithyClient.map({
639
- $metadata: deserializeMetadata(output),
640
- });
641
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
642
- const doc = smithyClient.take(data, {
643
- success: smithyClient.expectBoolean,
644
- });
645
- Object.assign(contents, doc);
646
- return contents;
647
- };
648
- const de_DeleteWhatsAppMessageTemplateCommand = async (output, context) => {
649
- if (output.statusCode !== 200 && output.statusCode >= 300) {
650
- return de_CommandError(output, context);
651
- }
652
- const contents = smithyClient.map({
653
- $metadata: deserializeMetadata(output),
654
- });
655
- await smithyClient.collectBody(output.body, context);
656
- return contents;
657
234
  };
658
- const de_DisassociateWhatsAppBusinessAccountCommand = async (output, context) => {
659
- if (output.statusCode !== 200 && output.statusCode >= 300) {
660
- return de_CommandError(output, context);
661
- }
662
- const contents = smithyClient.map({
663
- $metadata: deserializeMetadata(output),
664
- });
665
- await smithyClient.collectBody(output.body, context);
666
- return contents;
667
- };
668
- const de_GetLinkedWhatsAppBusinessAccountCommand = async (output, context) => {
669
- if (output.statusCode !== 200 && output.statusCode >= 300) {
670
- return de_CommandError(output, context);
671
- }
672
- const contents = smithyClient.map({
673
- $metadata: deserializeMetadata(output),
674
- });
675
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
676
- const doc = smithyClient.take(data, {
677
- account: (_) => de_LinkedWhatsAppBusinessAccount(_),
678
- });
679
- Object.assign(contents, doc);
680
- return contents;
681
- };
682
- const de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = async (output, context) => {
683
- if (output.statusCode !== 200 && output.statusCode >= 300) {
684
- return de_CommandError(output, context);
685
- }
686
- const contents = smithyClient.map({
687
- $metadata: deserializeMetadata(output),
688
- });
689
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
690
- const doc = smithyClient.take(data, {
691
- linkedWhatsAppBusinessAccountId: smithyClient.expectString,
692
- phoneNumber: smithyClient._json,
693
- });
694
- Object.assign(contents, doc);
695
- return contents;
696
- };
697
- const de_GetWhatsAppMessageMediaCommand = async (output, context) => {
698
- if (output.statusCode !== 200 && output.statusCode >= 300) {
699
- return de_CommandError(output, context);
700
- }
701
- const contents = smithyClient.map({
702
- $metadata: deserializeMetadata(output),
703
- });
704
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
705
- const doc = smithyClient.take(data, {
706
- fileSize: smithyClient.expectLong,
707
- mimeType: smithyClient.expectString,
708
- });
709
- Object.assign(contents, doc);
710
- return contents;
711
- };
712
- const de_GetWhatsAppMessageTemplateCommand = async (output, context) => {
713
- if (output.statusCode !== 200 && output.statusCode >= 300) {
714
- return de_CommandError(output, context);
715
- }
716
- const contents = smithyClient.map({
717
- $metadata: deserializeMetadata(output),
718
- });
719
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
720
- const doc = smithyClient.take(data, {
721
- template: smithyClient.expectString,
722
- });
723
- Object.assign(contents, doc);
724
- return contents;
725
- };
726
- const de_ListLinkedWhatsAppBusinessAccountsCommand = async (output, context) => {
727
- if (output.statusCode !== 200 && output.statusCode >= 300) {
728
- return de_CommandError(output, context);
729
- }
730
- const contents = smithyClient.map({
731
- $metadata: deserializeMetadata(output),
732
- });
733
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
734
- const doc = smithyClient.take(data, {
735
- linkedAccounts: (_) => de_LinkedWhatsAppBusinessAccountSummaryList(_),
736
- nextToken: smithyClient.expectString,
737
- });
738
- Object.assign(contents, doc);
739
- return contents;
740
- };
741
- const de_ListTagsForResourceCommand = async (output, context) => {
742
- if (output.statusCode !== 200 && output.statusCode >= 300) {
743
- return de_CommandError(output, context);
744
- }
745
- const contents = smithyClient.map({
746
- $metadata: deserializeMetadata(output),
747
- });
748
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
749
- const doc = smithyClient.take(data, {
750
- statusCode: smithyClient.expectInt32,
751
- tags: smithyClient._json,
752
- });
753
- Object.assign(contents, doc);
754
- return contents;
755
- };
756
- const de_ListWhatsAppMessageTemplatesCommand = async (output, context) => {
757
- if (output.statusCode !== 200 && output.statusCode >= 300) {
758
- return de_CommandError(output, context);
759
- }
760
- const contents = smithyClient.map({
761
- $metadata: deserializeMetadata(output),
762
- });
763
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
764
- const doc = smithyClient.take(data, {
765
- nextToken: smithyClient.expectString,
766
- templates: smithyClient._json,
767
- });
768
- Object.assign(contents, doc);
769
- return contents;
770
- };
771
- const de_ListWhatsAppTemplateLibraryCommand = async (output, context) => {
772
- if (output.statusCode !== 200 && output.statusCode >= 300) {
773
- return de_CommandError(output, context);
774
- }
775
- const contents = smithyClient.map({
776
- $metadata: deserializeMetadata(output),
777
- });
778
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
779
- const doc = smithyClient.take(data, {
780
- metaLibraryTemplates: smithyClient._json,
781
- nextToken: smithyClient.expectString,
782
- });
783
- Object.assign(contents, doc);
784
- return contents;
785
- };
786
- const de_PostWhatsAppMessageMediaCommand = async (output, context) => {
787
- if (output.statusCode !== 200 && output.statusCode >= 300) {
788
- return de_CommandError(output, context);
789
- }
790
- const contents = smithyClient.map({
791
- $metadata: deserializeMetadata(output),
792
- });
793
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
794
- const doc = smithyClient.take(data, {
795
- mediaId: smithyClient.expectString,
796
- });
797
- Object.assign(contents, doc);
798
- return contents;
799
- };
800
- const de_PutWhatsAppBusinessAccountEventDestinationsCommand = async (output, context) => {
801
- if (output.statusCode !== 200 && output.statusCode >= 300) {
802
- return de_CommandError(output, context);
803
- }
804
- const contents = smithyClient.map({
805
- $metadata: deserializeMetadata(output),
806
- });
807
- await smithyClient.collectBody(output.body, context);
808
- return contents;
809
- };
810
- const de_SendWhatsAppMessageCommand = async (output, context) => {
811
- if (output.statusCode !== 200 && output.statusCode >= 300) {
812
- return de_CommandError(output, context);
813
- }
814
- const contents = smithyClient.map({
815
- $metadata: deserializeMetadata(output),
816
- });
817
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
818
- const doc = smithyClient.take(data, {
819
- messageId: smithyClient.expectString,
820
- });
821
- Object.assign(contents, doc);
822
- return contents;
823
- };
824
- const de_TagResourceCommand = async (output, context) => {
825
- if (output.statusCode !== 200 && output.statusCode >= 300) {
826
- return de_CommandError(output, context);
827
- }
828
- const contents = smithyClient.map({
829
- $metadata: deserializeMetadata(output),
830
- });
831
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
832
- const doc = smithyClient.take(data, {
833
- statusCode: smithyClient.expectInt32,
834
- });
835
- Object.assign(contents, doc);
836
- return contents;
837
- };
838
- const de_UntagResourceCommand = async (output, context) => {
839
- if (output.statusCode !== 200 && output.statusCode >= 300) {
840
- return de_CommandError(output, context);
841
- }
842
- const contents = smithyClient.map({
843
- $metadata: deserializeMetadata(output),
844
- });
845
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
846
- const doc = smithyClient.take(data, {
847
- statusCode: smithyClient.expectInt32,
848
- });
849
- Object.assign(contents, doc);
850
- return contents;
851
- };
852
- const de_UpdateWhatsAppMessageTemplateCommand = async (output, context) => {
853
- if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_CommandError(output, context);
855
- }
856
- const contents = smithyClient.map({
857
- $metadata: deserializeMetadata(output),
858
- });
859
- await smithyClient.collectBody(output.body, context);
860
- return contents;
861
- };
862
- const de_CommandError = async (output, context) => {
863
- const parsedOutput = {
864
- ...output,
865
- body: await core$1.parseJsonErrorBody(output.body, context),
866
- };
867
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
868
- switch (errorCode) {
869
- case "AccessDeniedException":
870
- case "com.amazonaws.socialmessaging#AccessDeniedException":
871
- throw await de_AccessDeniedExceptionRes(parsedOutput);
872
- case "DependencyException":
873
- case "com.amazonaws.socialmessaging#DependencyException":
874
- throw await de_DependencyExceptionRes(parsedOutput);
875
- case "InvalidParametersException":
876
- case "com.amazonaws.socialmessaging#InvalidParametersException":
877
- throw await de_InvalidParametersExceptionRes(parsedOutput);
878
- case "LimitExceededException":
879
- case "com.amazonaws.socialmessaging#LimitExceededException":
880
- throw await de_LimitExceededExceptionRes(parsedOutput);
881
- case "ThrottledRequestException":
882
- case "com.amazonaws.socialmessaging#ThrottledRequestException":
883
- throw await de_ThrottledRequestExceptionRes(parsedOutput);
884
- case "ValidationException":
885
- case "com.amazonaws.socialmessaging#ValidationException":
886
- throw await de_ValidationExceptionRes(parsedOutput);
887
- case "InternalServiceException":
888
- case "com.amazonaws.socialmessaging#InternalServiceException":
889
- throw await de_InternalServiceExceptionRes(parsedOutput);
890
- case "ResourceNotFoundException":
891
- case "com.amazonaws.socialmessaging#ResourceNotFoundException":
892
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
893
- case "AccessDeniedByMetaException":
894
- case "com.amazonaws.socialmessaging#AccessDeniedByMetaException":
895
- throw await de_AccessDeniedByMetaExceptionRes(parsedOutput);
896
- default:
897
- const parsedBody = parsedOutput.body;
898
- return throwDefaultError({
899
- output,
900
- parsedBody,
901
- errorCode,
902
- });
903
- }
904
- };
905
- const throwDefaultError = smithyClient.withBaseException(SocialMessagingServiceException);
906
- const de_AccessDeniedByMetaExceptionRes = async (parsedOutput, context) => {
907
- const contents = smithyClient.map({});
908
- const data = parsedOutput.body;
909
- const doc = smithyClient.take(data, {
910
- message: smithyClient.expectString,
911
- });
912
- Object.assign(contents, doc);
913
- const exception = new AccessDeniedByMetaException({
914
- $metadata: deserializeMetadata(parsedOutput),
915
- ...contents,
916
- });
917
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
918
- };
919
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
920
- const contents = smithyClient.map({});
921
- const data = parsedOutput.body;
922
- const doc = smithyClient.take(data, {
923
- message: smithyClient.expectString,
924
- });
925
- Object.assign(contents, doc);
926
- const exception = new AccessDeniedException({
927
- $metadata: deserializeMetadata(parsedOutput),
928
- ...contents,
929
- });
930
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
931
- };
932
- const de_DependencyExceptionRes = async (parsedOutput, context) => {
933
- const contents = smithyClient.map({});
934
- const data = parsedOutput.body;
935
- const doc = smithyClient.take(data, {
936
- message: smithyClient.expectString,
937
- });
938
- Object.assign(contents, doc);
939
- const exception = new DependencyException({
940
- $metadata: deserializeMetadata(parsedOutput),
941
- ...contents,
942
- });
943
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
944
- };
945
- const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
946
- const contents = smithyClient.map({});
947
- const data = parsedOutput.body;
948
- const doc = smithyClient.take(data, {
949
- message: smithyClient.expectString,
950
- });
951
- Object.assign(contents, doc);
952
- const exception = new InternalServiceException({
953
- $metadata: deserializeMetadata(parsedOutput),
954
- ...contents,
955
- });
956
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
957
- };
958
- const de_InvalidParametersExceptionRes = async (parsedOutput, context) => {
959
- const contents = smithyClient.map({});
960
- const data = parsedOutput.body;
961
- const doc = smithyClient.take(data, {
962
- message: smithyClient.expectString,
963
- });
964
- Object.assign(contents, doc);
965
- const exception = new InvalidParametersException({
966
- $metadata: deserializeMetadata(parsedOutput),
967
- ...contents,
968
- });
969
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
970
- };
971
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
972
- const contents = smithyClient.map({});
973
- const data = parsedOutput.body;
974
- const doc = smithyClient.take(data, {
975
- message: smithyClient.expectString,
976
- });
977
- Object.assign(contents, doc);
978
- const exception = new LimitExceededException({
979
- $metadata: deserializeMetadata(parsedOutput),
980
- ...contents,
981
- });
982
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
983
- };
984
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
985
- const contents = smithyClient.map({});
986
- const data = parsedOutput.body;
987
- const doc = smithyClient.take(data, {
988
- message: smithyClient.expectString,
989
- });
990
- Object.assign(contents, doc);
991
- const exception = new ResourceNotFoundException({
992
- $metadata: deserializeMetadata(parsedOutput),
993
- ...contents,
994
- });
995
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
996
- };
997
- const de_ThrottledRequestExceptionRes = async (parsedOutput, context) => {
998
- const contents = smithyClient.map({});
999
- const data = parsedOutput.body;
1000
- const doc = smithyClient.take(data, {
1001
- message: smithyClient.expectString,
1002
- });
1003
- Object.assign(contents, doc);
1004
- const exception = new ThrottledRequestException({
1005
- $metadata: deserializeMetadata(parsedOutput),
1006
- ...contents,
1007
- });
1008
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1009
- };
1010
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1011
- const contents = smithyClient.map({});
1012
- const data = parsedOutput.body;
1013
- const doc = smithyClient.take(data, {
1014
- message: smithyClient.expectString,
1015
- });
1016
- Object.assign(contents, doc);
1017
- const exception = new ValidationException({
1018
- $metadata: deserializeMetadata(parsedOutput),
1019
- ...contents,
1020
- });
1021
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1022
- };
1023
- const de_LinkedWhatsAppBusinessAccount = (output, context) => {
1024
- return smithyClient.take(output, {
1025
- arn: smithyClient.expectString,
1026
- eventDestinations: smithyClient._json,
1027
- id: smithyClient.expectString,
1028
- linkDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1029
- phoneNumbers: smithyClient._json,
1030
- registrationStatus: smithyClient.expectString,
1031
- wabaId: smithyClient.expectString,
1032
- wabaName: smithyClient.expectString,
1033
- });
1034
- };
1035
- const de_LinkedWhatsAppBusinessAccountSummary = (output, context) => {
1036
- return smithyClient.take(output, {
1037
- arn: smithyClient.expectString,
1038
- eventDestinations: smithyClient._json,
1039
- id: smithyClient.expectString,
1040
- linkDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1041
- registrationStatus: smithyClient.expectString,
1042
- wabaId: smithyClient.expectString,
1043
- wabaName: smithyClient.expectString,
1044
- });
1045
- };
1046
- const de_LinkedWhatsAppBusinessAccountSummaryList = (output, context) => {
1047
- const retVal = (output || [])
1048
- .filter((e) => e != null)
1049
- .map((entry) => {
1050
- return de_LinkedWhatsAppBusinessAccountSummary(entry);
1051
- });
1052
- return retVal;
1053
- };
1054
- const deserializeMetadata = (output) => ({
1055
- httpStatusCode: output.statusCode,
1056
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1057
- extendedRequestId: output.headers["x-amz-id-2"],
1058
- cfId: output.headers["x-amz-cf-id"],
1059
- });
235
+
236
+ const _ADBME = "AccessDeniedByMetaException";
237
+ const _ADE = "AccessDeniedException";
238
+ const _AIPT = "AssociateInProgressToken";
239
+ const _AWABA = "AssociateWhatsAppBusinessAccount";
240
+ const _AWABAI = "AssociateWhatsAppBusinessAccountInput";
241
+ const _AWABAO = "AssociateWhatsAppBusinessAccountOutput";
242
+ const _CWAMT = "CreateWhatsAppMessageTemplate";
243
+ const _CWAMTFL = "CreateWhatsAppMessageTemplateFromLibrary";
244
+ const _CWAMTFLI = "CreateWhatsAppMessageTemplateFromLibraryInput";
245
+ const _CWAMTFLO = "CreateWhatsAppMessageTemplateFromLibraryOutput";
246
+ const _CWAMTI = "CreateWhatsAppMessageTemplateInput";
247
+ const _CWAMTM = "CreateWhatsAppMessageTemplateMedia";
248
+ const _CWAMTMI = "CreateWhatsAppMessageTemplateMediaInput";
249
+ const _CWAMTMO = "CreateWhatsAppMessageTemplateMediaOutput";
250
+ const _CWAMTO = "CreateWhatsAppMessageTemplateOutput";
251
+ const _DE = "DependencyException";
252
+ const _DWABA = "DisassociateWhatsAppBusinessAccount";
253
+ const _DWABAI = "DisassociateWhatsAppBusinessAccountInput";
254
+ const _DWABAO = "DisassociateWhatsAppBusinessAccountOutput";
255
+ const _DWAMM = "DeleteWhatsAppMessageMedia";
256
+ const _DWAMMI = "DeleteWhatsAppMessageMediaInput";
257
+ const _DWAMMO = "DeleteWhatsAppMessageMediaOutput";
258
+ const _DWAMT = "DeleteWhatsAppMessageTemplate";
259
+ const _DWAMTI = "DeleteWhatsAppMessageTemplateInput";
260
+ const _DWAMTO = "DeleteWhatsAppMessageTemplateOutput";
261
+ const _GLWABA = "GetLinkedWhatsAppBusinessAccount";
262
+ const _GLWABAI = "GetLinkedWhatsAppBusinessAccountInput";
263
+ const _GLWABAO = "GetLinkedWhatsAppBusinessAccountOutput";
264
+ const _GLWABAPN = "GetLinkedWhatsAppBusinessAccountPhoneNumber";
265
+ const _GLWABAPNI = "GetLinkedWhatsAppBusinessAccountPhoneNumberInput";
266
+ const _GLWABAPNO = "GetLinkedWhatsAppBusinessAccountPhoneNumberOutput";
267
+ const _GWAMM = "GetWhatsAppMessageMedia";
268
+ const _GWAMMI = "GetWhatsAppMessageMediaInput";
269
+ const _GWAMMO = "GetWhatsAppMessageMediaOutput";
270
+ const _GWAMT = "GetWhatsAppMessageTemplate";
271
+ const _GWAMTI = "GetWhatsAppMessageTemplateInput";
272
+ const _GWAMTO = "GetWhatsAppMessageTemplateOutput";
273
+ const _IPE = "InvalidParametersException";
274
+ const _ISE = "InternalServiceException";
275
+ const _LAWIS = "LinkedAccountWithIncompleteSetup";
276
+ const _LEE = "LimitExceededException";
277
+ const _LLWABA = "ListLinkedWhatsAppBusinessAccounts";
278
+ const _LLWABAI = "ListLinkedWhatsAppBusinessAccountsInput";
279
+ const _LLWABAO = "ListLinkedWhatsAppBusinessAccountsOutput";
280
+ const _LTBI = "LibraryTemplateBodyInputs";
281
+ const _LTBIi = "LibraryTemplateButtonInput";
282
+ const _LTBL = "LibraryTemplateButtonList";
283
+ const _LTFR = "ListTagsForResource";
284
+ const _LTFRI = "ListTagsForResourceInput";
285
+ const _LTFRO = "ListTagsForResourceOutput";
286
+ const _LWABA = "LinkedWhatsAppBusinessAccount";
287
+ const _LWABAIMD = "LinkedWhatsAppBusinessAccountIdMetaData";
288
+ const _LWABAS = "LinkedWhatsAppBusinessAccountSummary";
289
+ const _LWABASL = "LinkedWhatsAppBusinessAccountSummaryList";
290
+ const _LWAMT = "ListWhatsAppMessageTemplates";
291
+ const _LWAMTI = "ListWhatsAppMessageTemplatesInput";
292
+ const _LWAMTO = "ListWhatsAppMessageTemplatesOutput";
293
+ const _LWATL = "ListWhatsAppTemplateLibrary";
294
+ const _LWATLI = "ListWhatsAppTemplateLibraryInput";
295
+ const _LWATLO = "ListWhatsAppTemplateLibraryOutput";
296
+ const _MLT = "MetaLibraryTemplate";
297
+ const _MLTBI = "MetaLibraryTemplateButtonInputs";
298
+ const _MLTBL = "MetaLibraryTemplateButtonList";
299
+ const _MLTD = "MetaLibraryTemplateDefinition";
300
+ const _MLTL = "MetaLibraryTemplatesList";
301
+ const _PWABAED = "PutWhatsAppBusinessAccountEventDestinations";
302
+ const _PWABAEDI = "PutWhatsAppBusinessAccountEventDestinationsInput";
303
+ const _PWABAEDO = "PutWhatsAppBusinessAccountEventDestinationsOutput";
304
+ const _PWAMM = "PostWhatsAppMessageMedia";
305
+ const _PWAMMI = "PostWhatsAppMessageMediaInput";
306
+ const _PWAMMO = "PostWhatsAppMessageMediaOutput";
307
+ const _RNFE = "ResourceNotFoundException";
308
+ const _SA = "SupportedApps";
309
+ const _SF = "S3File";
310
+ const _SPU = "S3PresignedUrl";
311
+ const _SWAM = "SendWhatsAppMessage";
312
+ const _SWAMI = "SendWhatsAppMessageInput";
313
+ const _SWAMO = "SendWhatsAppMessageOutput";
314
+ const _T = "Tag";
315
+ const _TFP = "TwoFactorPin";
316
+ const _TL = "TagList";
317
+ const _TR = "TagResource";
318
+ const _TRE = "ThrottledRequestException";
319
+ const _TRI = "TagResourceInput";
320
+ const _TRO = "TagResourceOutput";
321
+ const _TS = "TemplateSummary";
322
+ const _TSL = "TemplateSummaryList";
323
+ const _UR = "UntagResource";
324
+ const _URI = "UntagResourceInput";
325
+ const _URO = "UntagResourceOutput";
326
+ const _UWAMT = "UpdateWhatsAppMessageTemplate";
327
+ const _UWAMTI = "UpdateWhatsAppMessageTemplateInput";
328
+ const _UWAMTO = "UpdateWhatsAppMessageTemplateOutput";
329
+ const _VE = "ValidationException";
330
+ const _WABAED = "WhatsAppBusinessAccountEventDestination";
331
+ const _WABAEDh = "WhatsAppBusinessAccountEventDestinations";
332
+ const _WAMB = "WhatsAppMessageBlob";
333
+ const _WAPND = "WhatsAppPhoneNumberDetail";
334
+ const _WAPNDL = "WhatsAppPhoneNumberDetailList";
335
+ const _WAPNS = "WhatsAppPhoneNumberSummary";
336
+ const _WAPNSL = "WhatsAppPhoneNumberSummaryList";
337
+ const _WASC = "WhatsAppSignupCallback";
338
+ const _WASCR = "WhatsAppSignupCallbackResult";
339
+ const _WASF = "WhatsAppSetupFinalization";
340
+ const _WPNSF = "WabaPhoneNumberSetupFinalization";
341
+ const _WPNSFL = "WabaPhoneNumberSetupFinalizationList";
342
+ const _WSF = "WabaSetupFinalization";
343
+ const _a = "account";
344
+ const _aCN = "addContactNumber";
345
+ const _aIPT = "associateInProgressToken";
346
+ const _aLML = "addLearnMoreLink";
347
+ const _aN = "accountName";
348
+ const _aSR = "addSecurityRecommendation";
349
+ const _aT = "accessToken";
350
+ const _aTPL = "addTrackPackageLink";
351
+ const _ar = "arn";
352
+ const _bN = "bucketName";
353
+ const _c = "client";
354
+ const _cEM = "codeExpirationMinutes";
355
+ const _cU = "callbackUrl";
356
+ const _ca = "category";
1060
357
  const _dAL = "deleteAllLanguages";
1061
358
  const _dAT = "deleteAllTemplates";
359
+ const _dLR = "dataLocalizationRegion";
360
+ const _dPN = "displayPhoneNumber";
361
+ const _dPNN = "displayPhoneNumberName";
362
+ const _dSF = "destinationS3File";
363
+ const _dSPU = "destinationS3PresignedUrl";
364
+ const _e = "error";
365
+ const _eD = "eventDestinations";
366
+ const _eDA = "eventDestinationArn";
367
+ const _f = "filters";
368
+ const _fS = "fileSize";
369
+ const _h = "headers";
370
+ const _hE = "httpError";
371
+ const _hQ = "httpQuery";
372
+ const _ht = "http";
1062
373
  const _i = "id";
374
+ const _k = "key";
375
+ const _lA = "linkedAccounts";
376
+ const _lAWIS = "linkedAccountsWithIncompleteSetup";
377
+ const _lD = "linkDate";
378
+ const _lTBI = "libraryTemplateButtonInputs";
379
+ const _lTBIi = "libraryTemplateBodyInputs";
380
+ const _lTN = "libraryTemplateName";
381
+ const _lWABAI = "linkedWhatsAppBusinessAccountId";
382
+ const _m = "message";
383
+ const _mAV = "metaApiVersion";
384
+ const _mHH = "metaHeaderHandle";
1063
385
  const _mI = "mediaId";
386
+ const _mIe = "messageId";
387
+ const _mLT = "metaLibraryTemplate";
388
+ const _mLTe = "metaLibraryTemplates";
389
+ const _mO = "metadataOnly";
390
+ const _mPNI = "metaPhoneNumberId";
1064
391
  const _mR = "maxResults";
392
+ const _mT = "mimeType";
1065
393
  const _mTI = "metaTemplateId";
1066
394
  const _nT = "nextToken";
1067
395
  const _oPNI = "originationPhoneNumberId";
396
+ const _oT = "otpType";
397
+ const _pN = "phoneNumber";
398
+ const _pNI = "phoneNumberId";
399
+ const _pNP = "phoneNumberParent";
400
+ const _pNh = "phoneNumbers";
401
+ const _qR = "qualityRating";
1068
402
  const _rA = "resourceArn";
403
+ const _rAo = "roleArn";
404
+ const _rS = "registrationStatus";
405
+ const _s = "success";
406
+ const _sA = "supportedApps";
407
+ const _sC = "signupCallback";
408
+ const _sCR = "signupCallbackResult";
409
+ const _sCt = "statusCode";
410
+ const _sF = "setupFinalization";
411
+ const _sSF = "sourceS3File";
412
+ const _sSPU = "sourceS3PresignedUrl";
413
+ const _se = "server";
414
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.socialmessaging";
415
+ const _t = "template";
416
+ const _tB = "templateBody";
417
+ const _tBe = "templateButtons";
418
+ const _tC = "templateCategory";
419
+ const _tCe = "templateComponents";
420
+ const _tD = "templateDefinition";
421
+ const _tFP = "twoFactorPin";
422
+ const _tH = "templateHeader";
423
+ const _tI = "templateIndustry";
424
+ const _tIe = "templateId";
425
+ const _tK = "tagKeys";
426
+ const _tL = "templateLanguage";
1069
427
  const _tN = "templateName";
428
+ const _tQS = "templateQualityScore";
429
+ const _tS = "templateStatus";
430
+ const _tT = "templateTopic";
431
+ const _tUC = "templateUseCase";
432
+ const _ta = "tags";
433
+ const _te = "text";
434
+ const _tem = "templates";
435
+ const _ty = "type";
436
+ const _u = "url";
437
+ const _uWAPN = "unregisteredWhatsAppPhoneNumbers";
438
+ const _v = "value";
439
+ const _w = "waba";
440
+ const _wI = "wabaId";
441
+ const _wN = "wabaName";
442
+ const _zTTA = "zeroTapTermsAccepted";
443
+ const n0 = "com.amazonaws.socialmessaging";
444
+ var AssociateInProgressToken = [0, n0, _AIPT, 8, 0];
445
+ var TwoFactorPin = [0, n0, _TFP, 8, 0];
446
+ var WhatsAppMessageBlob = [0, n0, _WAMB, 8, 21];
447
+ var AccessDeniedByMetaException = [
448
+ -3,
449
+ n0,
450
+ _ADBME,
451
+ {
452
+ [_e]: _c,
453
+ [_hE]: 403,
454
+ },
455
+ [_m],
456
+ [0],
457
+ ];
458
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedByMetaException, AccessDeniedByMetaException$1);
459
+ var AccessDeniedException = [
460
+ -3,
461
+ n0,
462
+ _ADE,
463
+ {
464
+ [_e]: _c,
465
+ [_hE]: 403,
466
+ },
467
+ [_m],
468
+ [0],
469
+ ];
470
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
471
+ var AssociateWhatsAppBusinessAccountInput = [
472
+ 3,
473
+ n0,
474
+ _AWABAI,
475
+ 0,
476
+ [_sC, _sF],
477
+ [() => WhatsAppSignupCallback, [() => WhatsAppSetupFinalization, 0]],
478
+ ];
479
+ var AssociateWhatsAppBusinessAccountOutput = [
480
+ 3,
481
+ n0,
482
+ _AWABAO,
483
+ 0,
484
+ [_sCR, _sCt],
485
+ [[() => WhatsAppSignupCallbackResult, 0], 1],
486
+ ];
487
+ var CreateWhatsAppMessageTemplateFromLibraryInput = [
488
+ 3,
489
+ n0,
490
+ _CWAMTFLI,
491
+ 0,
492
+ [_mLT, _i],
493
+ [() => MetaLibraryTemplate, 0],
494
+ ];
495
+ var CreateWhatsAppMessageTemplateFromLibraryOutput = [
496
+ 3,
497
+ n0,
498
+ _CWAMTFLO,
499
+ 0,
500
+ [_mTI, _tS, _ca],
501
+ [0, 0, 0],
502
+ ];
503
+ var CreateWhatsAppMessageTemplateInput = [3, n0, _CWAMTI, 0, [_tD, _i], [21, 0]];
504
+ var CreateWhatsAppMessageTemplateMediaInput = [
505
+ 3,
506
+ n0,
507
+ _CWAMTMI,
508
+ 0,
509
+ [_i, _sSF],
510
+ [0, [() => S3File, 0]],
511
+ ];
512
+ var CreateWhatsAppMessageTemplateMediaOutput = [3, n0, _CWAMTMO, 0, [_mHH], [0]];
513
+ var CreateWhatsAppMessageTemplateOutput = [
514
+ 3,
515
+ n0,
516
+ _CWAMTO,
517
+ 0,
518
+ [_mTI, _tS, _ca],
519
+ [0, 0, 0],
520
+ ];
521
+ var DeleteWhatsAppMessageMediaInput = [
522
+ 3,
523
+ n0,
524
+ _DWAMMI,
525
+ 0,
526
+ [_mI, _oPNI],
527
+ [
528
+ [
529
+ 0,
530
+ {
531
+ [_hQ]: _mI,
532
+ },
533
+ ],
534
+ [
535
+ 0,
536
+ {
537
+ [_hQ]: _oPNI,
538
+ },
539
+ ],
540
+ ],
541
+ ];
542
+ var DeleteWhatsAppMessageMediaOutput = [3, n0, _DWAMMO, 0, [_s], [2]];
543
+ var DeleteWhatsAppMessageTemplateInput = [
544
+ 3,
545
+ n0,
546
+ _DWAMTI,
547
+ 0,
548
+ [_mTI, _dAL, _i, _tN],
549
+ [
550
+ [
551
+ 0,
552
+ {
553
+ [_hQ]: _mTI,
554
+ },
555
+ ],
556
+ [
557
+ 2,
558
+ {
559
+ [_hQ]: _dAT,
560
+ },
561
+ ],
562
+ [
563
+ 0,
564
+ {
565
+ [_hQ]: _i,
566
+ },
567
+ ],
568
+ [
569
+ 0,
570
+ {
571
+ [_hQ]: _tN,
572
+ },
573
+ ],
574
+ ],
575
+ ];
576
+ var DeleteWhatsAppMessageTemplateOutput = [3, n0, _DWAMTO, 0, [], []];
577
+ var DependencyException = [
578
+ -3,
579
+ n0,
580
+ _DE,
581
+ {
582
+ [_e]: _se,
583
+ [_hE]: 502,
584
+ },
585
+ [_m],
586
+ [0],
587
+ ];
588
+ schema.TypeRegistry.for(n0).registerError(DependencyException, DependencyException$1);
589
+ var DisassociateWhatsAppBusinessAccountInput = [
590
+ 3,
591
+ n0,
592
+ _DWABAI,
593
+ 0,
594
+ [_i],
595
+ [
596
+ [
597
+ 0,
598
+ {
599
+ [_hQ]: _i,
600
+ },
601
+ ],
602
+ ],
603
+ ];
604
+ var DisassociateWhatsAppBusinessAccountOutput = [3, n0, _DWABAO, 0, [], []];
605
+ var GetLinkedWhatsAppBusinessAccountInput = [
606
+ 3,
607
+ n0,
608
+ _GLWABAI,
609
+ 0,
610
+ [_i],
611
+ [
612
+ [
613
+ 0,
614
+ {
615
+ [_hQ]: _i,
616
+ },
617
+ ],
618
+ ],
619
+ ];
620
+ var GetLinkedWhatsAppBusinessAccountOutput = [
621
+ 3,
622
+ n0,
623
+ _GLWABAO,
624
+ 0,
625
+ [_a],
626
+ [() => LinkedWhatsAppBusinessAccount],
627
+ ];
628
+ var GetLinkedWhatsAppBusinessAccountPhoneNumberInput = [
629
+ 3,
630
+ n0,
631
+ _GLWABAPNI,
632
+ 0,
633
+ [_i],
634
+ [
635
+ [
636
+ 0,
637
+ {
638
+ [_hQ]: _i,
639
+ },
640
+ ],
641
+ ],
642
+ ];
643
+ var GetLinkedWhatsAppBusinessAccountPhoneNumberOutput = [
644
+ 3,
645
+ n0,
646
+ _GLWABAPNO,
647
+ 0,
648
+ [_pN, _lWABAI],
649
+ [() => WhatsAppPhoneNumberDetail, 0],
650
+ ];
651
+ var GetWhatsAppMessageMediaInput = [
652
+ 3,
653
+ n0,
654
+ _GWAMMI,
655
+ 0,
656
+ [_mI, _oPNI, _mO, _dSPU, _dSF],
657
+ [0, 0, 2, [() => S3PresignedUrl, 0], [() => S3File, 0]],
658
+ ];
659
+ var GetWhatsAppMessageMediaOutput = [3, n0, _GWAMMO, 0, [_mT, _fS], [0, 1]];
660
+ var GetWhatsAppMessageTemplateInput = [
661
+ 3,
662
+ n0,
663
+ _GWAMTI,
664
+ 0,
665
+ [_mTI, _i],
666
+ [
667
+ [
668
+ 0,
669
+ {
670
+ [_hQ]: _mTI,
671
+ },
672
+ ],
673
+ [
674
+ 0,
675
+ {
676
+ [_hQ]: _i,
677
+ },
678
+ ],
679
+ ],
680
+ ];
681
+ var GetWhatsAppMessageTemplateOutput = [3, n0, _GWAMTO, 0, [_t], [0]];
682
+ var InternalServiceException = [
683
+ -3,
684
+ n0,
685
+ _ISE,
686
+ {
687
+ [_e]: _se,
688
+ [_hE]: 500,
689
+ },
690
+ [_m],
691
+ [0],
692
+ ];
693
+ schema.TypeRegistry.for(n0).registerError(InternalServiceException, InternalServiceException$1);
694
+ var InvalidParametersException = [
695
+ -3,
696
+ n0,
697
+ _IPE,
698
+ {
699
+ [_e]: _c,
700
+ [_hE]: 400,
701
+ },
702
+ [_m],
703
+ [0],
704
+ ];
705
+ schema.TypeRegistry.for(n0).registerError(InvalidParametersException, InvalidParametersException$1);
706
+ var LibraryTemplateBodyInputs = [
707
+ 3,
708
+ n0,
709
+ _LTBI,
710
+ 0,
711
+ [_aCN, _aLML, _aSR, _aTPL, _cEM],
712
+ [2, 2, 2, 2, 1],
713
+ ];
714
+ var LibraryTemplateButtonInput = [
715
+ 3,
716
+ n0,
717
+ _LTBIi,
718
+ 0,
719
+ [_ty, _pN, _u, _oT, _zTTA, _sA],
720
+ [0, 0, 128 | 0, 0, 2, [1, n0, _SA, 0, 128 | 0]],
721
+ ];
722
+ var LibraryTemplateButtonList = [
723
+ 3,
724
+ n0,
725
+ _LTBL,
726
+ 0,
727
+ [_ty, _te, _pN, _u, _oT, _zTTA, _sA],
728
+ [0, 0, 0, 0, 0, 2, [1, n0, _SA, 0, 128 | 0]],
729
+ ];
730
+ var LimitExceededException = [
731
+ -3,
732
+ n0,
733
+ _LEE,
734
+ {
735
+ [_e]: _c,
736
+ [_hE]: 400,
737
+ },
738
+ [_m],
739
+ [0],
740
+ ];
741
+ schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
742
+ var LinkedWhatsAppBusinessAccount = [
743
+ 3,
744
+ n0,
745
+ _LWABA,
746
+ 0,
747
+ [_ar, _i, _wI, _rS, _lD, _wN, _eD, _pNh],
748
+ [0, 0, 0, 0, 4, 0, () => WhatsAppBusinessAccountEventDestinations, () => WhatsAppPhoneNumberSummaryList],
749
+ ];
750
+ var LinkedWhatsAppBusinessAccountIdMetaData = [
751
+ 3,
752
+ n0,
753
+ _LWABAIMD,
754
+ 0,
755
+ [_aN, _rS, _uWAPN, _wI],
756
+ [0, 0, () => WhatsAppPhoneNumberDetailList, 0],
757
+ ];
758
+ var LinkedWhatsAppBusinessAccountSummary = [
759
+ 3,
760
+ n0,
761
+ _LWABAS,
762
+ 0,
763
+ [_ar, _i, _wI, _rS, _lD, _wN, _eD],
764
+ [0, 0, 0, 0, 4, 0, () => WhatsAppBusinessAccountEventDestinations],
765
+ ];
766
+ var ListLinkedWhatsAppBusinessAccountsInput = [
767
+ 3,
768
+ n0,
769
+ _LLWABAI,
770
+ 0,
771
+ [_nT, _mR],
772
+ [
773
+ [
774
+ 0,
775
+ {
776
+ [_hQ]: _nT,
777
+ },
778
+ ],
779
+ [
780
+ 1,
781
+ {
782
+ [_hQ]: _mR,
783
+ },
784
+ ],
785
+ ],
786
+ ];
787
+ var ListLinkedWhatsAppBusinessAccountsOutput = [
788
+ 3,
789
+ n0,
790
+ _LLWABAO,
791
+ 0,
792
+ [_lA, _nT],
793
+ [() => LinkedWhatsAppBusinessAccountSummaryList, 0],
794
+ ];
795
+ var ListTagsForResourceInput = [
796
+ 3,
797
+ n0,
798
+ _LTFRI,
799
+ 0,
800
+ [_rA],
801
+ [
802
+ [
803
+ 0,
804
+ {
805
+ [_hQ]: _rA,
806
+ },
807
+ ],
808
+ ],
809
+ ];
810
+ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_sCt, _ta], [1, () => TagList]];
811
+ var ListWhatsAppMessageTemplatesInput = [
812
+ 3,
813
+ n0,
814
+ _LWAMTI,
815
+ 0,
816
+ [_i, _nT, _mR],
817
+ [
818
+ [
819
+ 0,
820
+ {
821
+ [_hQ]: _i,
822
+ },
823
+ ],
824
+ [
825
+ 0,
826
+ {
827
+ [_hQ]: _nT,
828
+ },
829
+ ],
830
+ [
831
+ 1,
832
+ {
833
+ [_hQ]: _mR,
834
+ },
835
+ ],
836
+ ],
837
+ ];
838
+ var ListWhatsAppMessageTemplatesOutput = [
839
+ 3,
840
+ n0,
841
+ _LWAMTO,
842
+ 0,
843
+ [_tem, _nT],
844
+ [() => TemplateSummaryList, 0],
845
+ ];
846
+ var ListWhatsAppTemplateLibraryInput = [
847
+ 3,
848
+ n0,
849
+ _LWATLI,
850
+ 0,
851
+ [_nT, _mR, _i, _f],
852
+ [
853
+ 0,
854
+ 1,
855
+ [
856
+ 0,
857
+ {
858
+ [_hQ]: _i,
859
+ },
860
+ ],
861
+ 128 | 0,
862
+ ],
863
+ ];
864
+ var ListWhatsAppTemplateLibraryOutput = [
865
+ 3,
866
+ n0,
867
+ _LWATLO,
868
+ 0,
869
+ [_mLTe, _nT],
870
+ [() => MetaLibraryTemplatesList, 0],
871
+ ];
872
+ var MetaLibraryTemplate = [
873
+ 3,
874
+ n0,
875
+ _MLT,
876
+ 0,
877
+ [_tN, _lTN, _tC, _tL, _lTBI, _lTBIi],
878
+ [0, 0, 0, 0, () => MetaLibraryTemplateButtonInputs, () => LibraryTemplateBodyInputs],
879
+ ];
880
+ var MetaLibraryTemplateDefinition = [
881
+ 3,
882
+ n0,
883
+ _MLTD,
884
+ 0,
885
+ [_tN, _tL, _tC, _tT, _tUC, _tI, _tH, _tB, _tBe, _tIe],
886
+ [0, 0, 0, 0, 0, 64 | 0, 0, 0, () => MetaLibraryTemplateButtonList, 0],
887
+ ];
888
+ var PostWhatsAppMessageMediaInput = [
889
+ 3,
890
+ n0,
891
+ _PWAMMI,
892
+ 0,
893
+ [_oPNI, _sSPU, _sSF],
894
+ [0, [() => S3PresignedUrl, 0], [() => S3File, 0]],
895
+ ];
896
+ var PostWhatsAppMessageMediaOutput = [3, n0, _PWAMMO, 0, [_mI], [0]];
897
+ var PutWhatsAppBusinessAccountEventDestinationsInput = [
898
+ 3,
899
+ n0,
900
+ _PWABAEDI,
901
+ 0,
902
+ [_i, _eD],
903
+ [0, () => WhatsAppBusinessAccountEventDestinations],
904
+ ];
905
+ var PutWhatsAppBusinessAccountEventDestinationsOutput = [3, n0, _PWABAEDO, 0, [], []];
906
+ var ResourceNotFoundException = [
907
+ -3,
908
+ n0,
909
+ _RNFE,
910
+ {
911
+ [_e]: _c,
912
+ [_hE]: 404,
913
+ },
914
+ [_m],
915
+ [0],
916
+ ];
917
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
918
+ var S3File = [3, n0, _SF, 8, [_bN, _k], [0, 0]];
919
+ var S3PresignedUrl = [3, n0, _SPU, 8, [_u, _h], [0, 128 | 0]];
920
+ var SendWhatsAppMessageInput = [
921
+ 3,
922
+ n0,
923
+ _SWAMI,
924
+ 0,
925
+ [_oPNI, _m, _mAV],
926
+ [0, [() => WhatsAppMessageBlob, 0], 0],
927
+ ];
928
+ var SendWhatsAppMessageOutput = [3, n0, _SWAMO, 0, [_mIe], [0]];
929
+ var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
930
+ var TagResourceInput = [3, n0, _TRI, 0, [_rA, _ta], [0, () => TagList]];
931
+ var TagResourceOutput = [3, n0, _TRO, 0, [_sCt], [1]];
932
+ var TemplateSummary = [
933
+ 3,
934
+ n0,
935
+ _TS,
936
+ 0,
937
+ [_tN, _mTI, _tS, _tQS, _tL, _tC],
938
+ [0, 0, 0, 0, 0, 0],
939
+ ];
940
+ var ThrottledRequestException = [
941
+ -3,
942
+ n0,
943
+ _TRE,
944
+ {
945
+ [_e]: _c,
946
+ [_hE]: 429,
947
+ },
948
+ [_m],
949
+ [0],
950
+ ];
951
+ schema.TypeRegistry.for(n0).registerError(ThrottledRequestException, ThrottledRequestException$1);
952
+ var UntagResourceInput = [3, n0, _URI, 0, [_rA, _tK], [0, 64 | 0]];
953
+ var UntagResourceOutput = [3, n0, _URO, 0, [_sCt], [1]];
954
+ var UpdateWhatsAppMessageTemplateInput = [
955
+ 3,
956
+ n0,
957
+ _UWAMTI,
958
+ 0,
959
+ [_i, _mTI, _tC, _tCe],
960
+ [0, 0, 0, 21],
961
+ ];
962
+ var UpdateWhatsAppMessageTemplateOutput = [3, n0, _UWAMTO, 0, [], []];
963
+ var ValidationException = [
964
+ -3,
965
+ n0,
966
+ _VE,
967
+ {
968
+ [_e]: _c,
969
+ [_hE]: 400,
970
+ },
971
+ [_m],
972
+ [0],
973
+ ];
974
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
975
+ var WabaPhoneNumberSetupFinalization = [
976
+ 3,
977
+ n0,
978
+ _WPNSF,
979
+ 0,
980
+ [_i, _tFP, _dLR, _ta],
981
+ [0, [() => TwoFactorPin, 0], 0, () => TagList],
982
+ ];
983
+ var WabaSetupFinalization = [
984
+ 3,
985
+ n0,
986
+ _WSF,
987
+ 0,
988
+ [_i, _eD, _ta],
989
+ [0, () => WhatsAppBusinessAccountEventDestinations, () => TagList],
990
+ ];
991
+ var WhatsAppBusinessAccountEventDestination = [3, n0, _WABAED, 0, [_eDA, _rAo], [0, 0]];
992
+ var WhatsAppPhoneNumberDetail = [
993
+ 3,
994
+ n0,
995
+ _WAPND,
996
+ 0,
997
+ [_ar, _pN, _pNI, _mPNI, _dPNN, _dPN, _qR, _dLR],
998
+ [0, 0, 0, 0, 0, 0, 0, 0],
999
+ ];
1000
+ var WhatsAppPhoneNumberSummary = [
1001
+ 3,
1002
+ n0,
1003
+ _WAPNS,
1004
+ 0,
1005
+ [_ar, _pN, _pNI, _mPNI, _dPNN, _dPN, _qR, _dLR],
1006
+ [0, 0, 0, 0, 0, 0, 0, 0],
1007
+ ];
1008
+ var WhatsAppSetupFinalization = [
1009
+ 3,
1010
+ n0,
1011
+ _WASF,
1012
+ 0,
1013
+ [_aIPT, _pNh, _pNP, _w],
1014
+ [
1015
+ [() => AssociateInProgressToken, 0],
1016
+ [() => WabaPhoneNumberSetupFinalizationList, 0],
1017
+ 0,
1018
+ () => WabaSetupFinalization,
1019
+ ],
1020
+ ];
1021
+ var WhatsAppSignupCallback = [3, n0, _WASC, 0, [_aT, _cU], [0, 0]];
1022
+ var WhatsAppSignupCallbackResult = [
1023
+ 3,
1024
+ n0,
1025
+ _WASCR,
1026
+ 0,
1027
+ [_aIPT, _lAWIS],
1028
+ [[() => AssociateInProgressToken, 0], () => LinkedAccountWithIncompleteSetup],
1029
+ ];
1030
+ var SocialMessagingServiceException = [-3, _sm, "SocialMessagingServiceException", 0, [], []];
1031
+ schema.TypeRegistry.for(_sm).registerError(SocialMessagingServiceException, SocialMessagingServiceException$1);
1032
+ var LinkedWhatsAppBusinessAccountSummaryList = [
1033
+ 1,
1034
+ n0,
1035
+ _LWABASL,
1036
+ 0,
1037
+ () => LinkedWhatsAppBusinessAccountSummary,
1038
+ ];
1039
+ var MetaLibraryTemplateButtonInputs = [1, n0, _MLTBI, 0, () => LibraryTemplateButtonInput];
1040
+ var MetaLibraryTemplateButtonList = [1, n0, _MLTBL, 0, () => LibraryTemplateButtonList];
1041
+ var MetaLibraryTemplatesList = [1, n0, _MLTL, 0, () => MetaLibraryTemplateDefinition];
1042
+ var TagList = [1, n0, _TL, 0, () => Tag];
1043
+ var TemplateSummaryList = [1, n0, _TSL, 0, () => TemplateSummary];
1044
+ var WabaPhoneNumberSetupFinalizationList = [
1045
+ 1,
1046
+ n0,
1047
+ _WPNSFL,
1048
+ 0,
1049
+ [() => WabaPhoneNumberSetupFinalization, 0],
1050
+ ];
1051
+ var WhatsAppBusinessAccountEventDestinations = [
1052
+ 1,
1053
+ n0,
1054
+ _WABAEDh,
1055
+ 0,
1056
+ () => WhatsAppBusinessAccountEventDestination,
1057
+ ];
1058
+ var WhatsAppPhoneNumberDetailList = [1, n0, _WAPNDL, 0, () => WhatsAppPhoneNumberDetail];
1059
+ var WhatsAppPhoneNumberSummaryList = [1, n0, _WAPNSL, 0, () => WhatsAppPhoneNumberSummary];
1060
+ var LinkedAccountWithIncompleteSetup = [
1061
+ 2,
1062
+ n0,
1063
+ _LAWIS,
1064
+ 0,
1065
+ 0,
1066
+ () => LinkedWhatsAppBusinessAccountIdMetaData,
1067
+ ];
1068
+ var AssociateWhatsAppBusinessAccount = [
1069
+ 9,
1070
+ n0,
1071
+ _AWABA,
1072
+ {
1073
+ [_ht]: ["POST", "/v1/whatsapp/signup", 200],
1074
+ },
1075
+ () => AssociateWhatsAppBusinessAccountInput,
1076
+ () => AssociateWhatsAppBusinessAccountOutput,
1077
+ ];
1078
+ var CreateWhatsAppMessageTemplate = [
1079
+ 9,
1080
+ n0,
1081
+ _CWAMT,
1082
+ {
1083
+ [_ht]: ["POST", "/v1/whatsapp/template/put", 200],
1084
+ },
1085
+ () => CreateWhatsAppMessageTemplateInput,
1086
+ () => CreateWhatsAppMessageTemplateOutput,
1087
+ ];
1088
+ var CreateWhatsAppMessageTemplateFromLibrary = [
1089
+ 9,
1090
+ n0,
1091
+ _CWAMTFL,
1092
+ {
1093
+ [_ht]: ["POST", "/v1/whatsapp/template/create", 200],
1094
+ },
1095
+ () => CreateWhatsAppMessageTemplateFromLibraryInput,
1096
+ () => CreateWhatsAppMessageTemplateFromLibraryOutput,
1097
+ ];
1098
+ var CreateWhatsAppMessageTemplateMedia = [
1099
+ 9,
1100
+ n0,
1101
+ _CWAMTM,
1102
+ {
1103
+ [_ht]: ["POST", "/v1/whatsapp/template/media", 200],
1104
+ },
1105
+ () => CreateWhatsAppMessageTemplateMediaInput,
1106
+ () => CreateWhatsAppMessageTemplateMediaOutput,
1107
+ ];
1108
+ var DeleteWhatsAppMessageMedia = [
1109
+ 9,
1110
+ n0,
1111
+ _DWAMM,
1112
+ {
1113
+ [_ht]: ["DELETE", "/v1/whatsapp/media", 200],
1114
+ },
1115
+ () => DeleteWhatsAppMessageMediaInput,
1116
+ () => DeleteWhatsAppMessageMediaOutput,
1117
+ ];
1118
+ var DeleteWhatsAppMessageTemplate = [
1119
+ 9,
1120
+ n0,
1121
+ _DWAMT,
1122
+ {
1123
+ [_ht]: ["DELETE", "/v1/whatsapp/template", 200],
1124
+ },
1125
+ () => DeleteWhatsAppMessageTemplateInput,
1126
+ () => DeleteWhatsAppMessageTemplateOutput,
1127
+ ];
1128
+ var DisassociateWhatsAppBusinessAccount = [
1129
+ 9,
1130
+ n0,
1131
+ _DWABA,
1132
+ {
1133
+ [_ht]: ["DELETE", "/v1/whatsapp/waba/disassociate", 200],
1134
+ },
1135
+ () => DisassociateWhatsAppBusinessAccountInput,
1136
+ () => DisassociateWhatsAppBusinessAccountOutput,
1137
+ ];
1138
+ var GetLinkedWhatsAppBusinessAccount = [
1139
+ 9,
1140
+ n0,
1141
+ _GLWABA,
1142
+ {
1143
+ [_ht]: ["GET", "/v1/whatsapp/waba/details", 200],
1144
+ },
1145
+ () => GetLinkedWhatsAppBusinessAccountInput,
1146
+ () => GetLinkedWhatsAppBusinessAccountOutput,
1147
+ ];
1148
+ var GetLinkedWhatsAppBusinessAccountPhoneNumber = [
1149
+ 9,
1150
+ n0,
1151
+ _GLWABAPN,
1152
+ {
1153
+ [_ht]: ["GET", "/v1/whatsapp/waba/phone/details", 200],
1154
+ },
1155
+ () => GetLinkedWhatsAppBusinessAccountPhoneNumberInput,
1156
+ () => GetLinkedWhatsAppBusinessAccountPhoneNumberOutput,
1157
+ ];
1158
+ var GetWhatsAppMessageMedia = [
1159
+ 9,
1160
+ n0,
1161
+ _GWAMM,
1162
+ {
1163
+ [_ht]: ["POST", "/v1/whatsapp/media/get", 200],
1164
+ },
1165
+ () => GetWhatsAppMessageMediaInput,
1166
+ () => GetWhatsAppMessageMediaOutput,
1167
+ ];
1168
+ var GetWhatsAppMessageTemplate = [
1169
+ 9,
1170
+ n0,
1171
+ _GWAMT,
1172
+ {
1173
+ [_ht]: ["GET", "/v1/whatsapp/template", 200],
1174
+ },
1175
+ () => GetWhatsAppMessageTemplateInput,
1176
+ () => GetWhatsAppMessageTemplateOutput,
1177
+ ];
1178
+ var ListLinkedWhatsAppBusinessAccounts = [
1179
+ 9,
1180
+ n0,
1181
+ _LLWABA,
1182
+ {
1183
+ [_ht]: ["GET", "/v1/whatsapp/waba/list", 200],
1184
+ },
1185
+ () => ListLinkedWhatsAppBusinessAccountsInput,
1186
+ () => ListLinkedWhatsAppBusinessAccountsOutput,
1187
+ ];
1188
+ var ListTagsForResource = [
1189
+ 9,
1190
+ n0,
1191
+ _LTFR,
1192
+ {
1193
+ [_ht]: ["GET", "/v1/tags/list", 200],
1194
+ },
1195
+ () => ListTagsForResourceInput,
1196
+ () => ListTagsForResourceOutput,
1197
+ ];
1198
+ var ListWhatsAppMessageTemplates = [
1199
+ 9,
1200
+ n0,
1201
+ _LWAMT,
1202
+ {
1203
+ [_ht]: ["GET", "/v1/whatsapp/template/list", 200],
1204
+ },
1205
+ () => ListWhatsAppMessageTemplatesInput,
1206
+ () => ListWhatsAppMessageTemplatesOutput,
1207
+ ];
1208
+ var ListWhatsAppTemplateLibrary = [
1209
+ 9,
1210
+ n0,
1211
+ _LWATL,
1212
+ {
1213
+ [_ht]: ["POST", "/v1/whatsapp/template/library", 200],
1214
+ },
1215
+ () => ListWhatsAppTemplateLibraryInput,
1216
+ () => ListWhatsAppTemplateLibraryOutput,
1217
+ ];
1218
+ var PostWhatsAppMessageMedia = [
1219
+ 9,
1220
+ n0,
1221
+ _PWAMM,
1222
+ {
1223
+ [_ht]: ["POST", "/v1/whatsapp/media", 200],
1224
+ },
1225
+ () => PostWhatsAppMessageMediaInput,
1226
+ () => PostWhatsAppMessageMediaOutput,
1227
+ ];
1228
+ var PutWhatsAppBusinessAccountEventDestinations = [
1229
+ 9,
1230
+ n0,
1231
+ _PWABAED,
1232
+ {
1233
+ [_ht]: ["PUT", "/v1/whatsapp/waba/eventdestinations", 200],
1234
+ },
1235
+ () => PutWhatsAppBusinessAccountEventDestinationsInput,
1236
+ () => PutWhatsAppBusinessAccountEventDestinationsOutput,
1237
+ ];
1238
+ var SendWhatsAppMessage = [
1239
+ 9,
1240
+ n0,
1241
+ _SWAM,
1242
+ {
1243
+ [_ht]: ["POST", "/v1/whatsapp/send", 200],
1244
+ },
1245
+ () => SendWhatsAppMessageInput,
1246
+ () => SendWhatsAppMessageOutput,
1247
+ ];
1248
+ var TagResource = [
1249
+ 9,
1250
+ n0,
1251
+ _TR,
1252
+ {
1253
+ [_ht]: ["POST", "/v1/tags/tag-resource", 200],
1254
+ },
1255
+ () => TagResourceInput,
1256
+ () => TagResourceOutput,
1257
+ ];
1258
+ var UntagResource = [
1259
+ 9,
1260
+ n0,
1261
+ _UR,
1262
+ {
1263
+ [_ht]: ["POST", "/v1/tags/untag-resource", 200],
1264
+ },
1265
+ () => UntagResourceInput,
1266
+ () => UntagResourceOutput,
1267
+ ];
1268
+ var UpdateWhatsAppMessageTemplate = [
1269
+ 9,
1270
+ n0,
1271
+ _UWAMT,
1272
+ {
1273
+ [_ht]: ["POST", "/v1/whatsapp/template", 200],
1274
+ },
1275
+ () => UpdateWhatsAppMessageTemplateInput,
1276
+ () => UpdateWhatsAppMessageTemplateOutput,
1277
+ ];
1070
1278
 
1071
1279
  class AssociateWhatsAppBusinessAccountCommand extends smithyClient.Command
1072
1280
  .classBuilder()
1073
1281
  .ep(commonParams)
1074
1282
  .m(function (Command, cs, config, o) {
1075
- return [
1076
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1077
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1078
- ];
1283
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1079
1284
  })
1080
1285
  .s("SocialMessaging", "AssociateWhatsAppBusinessAccount", {})
1081
1286
  .n("SocialMessagingClient", "AssociateWhatsAppBusinessAccountCommand")
1082
- .f(AssociateWhatsAppBusinessAccountInputFilterSensitiveLog, AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog)
1083
- .ser(se_AssociateWhatsAppBusinessAccountCommand)
1084
- .de(de_AssociateWhatsAppBusinessAccountCommand)
1287
+ .sc(AssociateWhatsAppBusinessAccount)
1085
1288
  .build() {
1086
1289
  }
1087
1290
 
@@ -1089,16 +1292,11 @@ class CreateWhatsAppMessageTemplateCommand extends smithyClient.Command
1089
1292
  .classBuilder()
1090
1293
  .ep(commonParams)
1091
1294
  .m(function (Command, cs, config, o) {
1092
- return [
1093
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1094
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1095
- ];
1295
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1096
1296
  })
1097
1297
  .s("SocialMessaging", "CreateWhatsAppMessageTemplate", {})
1098
1298
  .n("SocialMessagingClient", "CreateWhatsAppMessageTemplateCommand")
1099
- .f(void 0, void 0)
1100
- .ser(se_CreateWhatsAppMessageTemplateCommand)
1101
- .de(de_CreateWhatsAppMessageTemplateCommand)
1299
+ .sc(CreateWhatsAppMessageTemplate)
1102
1300
  .build() {
1103
1301
  }
1104
1302
 
@@ -1106,16 +1304,11 @@ class CreateWhatsAppMessageTemplateFromLibraryCommand extends smithyClient.Comma
1106
1304
  .classBuilder()
1107
1305
  .ep(commonParams)
1108
1306
  .m(function (Command, cs, config, o) {
1109
- return [
1110
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1111
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1112
- ];
1307
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1113
1308
  })
1114
1309
  .s("SocialMessaging", "CreateWhatsAppMessageTemplateFromLibrary", {})
1115
1310
  .n("SocialMessagingClient", "CreateWhatsAppMessageTemplateFromLibraryCommand")
1116
- .f(void 0, void 0)
1117
- .ser(se_CreateWhatsAppMessageTemplateFromLibraryCommand)
1118
- .de(de_CreateWhatsAppMessageTemplateFromLibraryCommand)
1311
+ .sc(CreateWhatsAppMessageTemplateFromLibrary)
1119
1312
  .build() {
1120
1313
  }
1121
1314
 
@@ -1123,16 +1316,11 @@ class CreateWhatsAppMessageTemplateMediaCommand extends smithyClient.Command
1123
1316
  .classBuilder()
1124
1317
  .ep(commonParams)
1125
1318
  .m(function (Command, cs, config, o) {
1126
- return [
1127
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1128
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1129
- ];
1319
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1130
1320
  })
1131
1321
  .s("SocialMessaging", "CreateWhatsAppMessageTemplateMedia", {})
1132
1322
  .n("SocialMessagingClient", "CreateWhatsAppMessageTemplateMediaCommand")
1133
- .f(CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog, void 0)
1134
- .ser(se_CreateWhatsAppMessageTemplateMediaCommand)
1135
- .de(de_CreateWhatsAppMessageTemplateMediaCommand)
1323
+ .sc(CreateWhatsAppMessageTemplateMedia)
1136
1324
  .build() {
1137
1325
  }
1138
1326
 
@@ -1140,16 +1328,11 @@ class DeleteWhatsAppMessageMediaCommand extends smithyClient.Command
1140
1328
  .classBuilder()
1141
1329
  .ep(commonParams)
1142
1330
  .m(function (Command, cs, config, o) {
1143
- return [
1144
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1145
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1146
- ];
1331
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1147
1332
  })
1148
1333
  .s("SocialMessaging", "DeleteWhatsAppMessageMedia", {})
1149
1334
  .n("SocialMessagingClient", "DeleteWhatsAppMessageMediaCommand")
1150
- .f(void 0, void 0)
1151
- .ser(se_DeleteWhatsAppMessageMediaCommand)
1152
- .de(de_DeleteWhatsAppMessageMediaCommand)
1335
+ .sc(DeleteWhatsAppMessageMedia)
1153
1336
  .build() {
1154
1337
  }
1155
1338
 
@@ -1157,16 +1340,11 @@ class DeleteWhatsAppMessageTemplateCommand extends smithyClient.Command
1157
1340
  .classBuilder()
1158
1341
  .ep(commonParams)
1159
1342
  .m(function (Command, cs, config, o) {
1160
- return [
1161
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1162
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1163
- ];
1343
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1164
1344
  })
1165
1345
  .s("SocialMessaging", "DeleteWhatsAppMessageTemplate", {})
1166
1346
  .n("SocialMessagingClient", "DeleteWhatsAppMessageTemplateCommand")
1167
- .f(void 0, void 0)
1168
- .ser(se_DeleteWhatsAppMessageTemplateCommand)
1169
- .de(de_DeleteWhatsAppMessageTemplateCommand)
1347
+ .sc(DeleteWhatsAppMessageTemplate)
1170
1348
  .build() {
1171
1349
  }
1172
1350
 
@@ -1174,16 +1352,11 @@ class DisassociateWhatsAppBusinessAccountCommand extends smithyClient.Command
1174
1352
  .classBuilder()
1175
1353
  .ep(commonParams)
1176
1354
  .m(function (Command, cs, config, o) {
1177
- return [
1178
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1179
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1180
- ];
1355
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1181
1356
  })
1182
1357
  .s("SocialMessaging", "DisassociateWhatsAppBusinessAccount", {})
1183
1358
  .n("SocialMessagingClient", "DisassociateWhatsAppBusinessAccountCommand")
1184
- .f(void 0, void 0)
1185
- .ser(se_DisassociateWhatsAppBusinessAccountCommand)
1186
- .de(de_DisassociateWhatsAppBusinessAccountCommand)
1359
+ .sc(DisassociateWhatsAppBusinessAccount)
1187
1360
  .build() {
1188
1361
  }
1189
1362
 
@@ -1191,16 +1364,11 @@ class GetLinkedWhatsAppBusinessAccountCommand extends smithyClient.Command
1191
1364
  .classBuilder()
1192
1365
  .ep(commonParams)
1193
1366
  .m(function (Command, cs, config, o) {
1194
- return [
1195
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1196
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1197
- ];
1367
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1198
1368
  })
1199
1369
  .s("SocialMessaging", "GetLinkedWhatsAppBusinessAccount", {})
1200
1370
  .n("SocialMessagingClient", "GetLinkedWhatsAppBusinessAccountCommand")
1201
- .f(void 0, void 0)
1202
- .ser(se_GetLinkedWhatsAppBusinessAccountCommand)
1203
- .de(de_GetLinkedWhatsAppBusinessAccountCommand)
1371
+ .sc(GetLinkedWhatsAppBusinessAccount)
1204
1372
  .build() {
1205
1373
  }
1206
1374
 
@@ -1208,16 +1376,11 @@ class GetLinkedWhatsAppBusinessAccountPhoneNumberCommand extends smithyClient.Co
1208
1376
  .classBuilder()
1209
1377
  .ep(commonParams)
1210
1378
  .m(function (Command, cs, config, o) {
1211
- return [
1212
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1213
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1214
- ];
1379
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1215
1380
  })
1216
1381
  .s("SocialMessaging", "GetLinkedWhatsAppBusinessAccountPhoneNumber", {})
1217
1382
  .n("SocialMessagingClient", "GetLinkedWhatsAppBusinessAccountPhoneNumberCommand")
1218
- .f(void 0, void 0)
1219
- .ser(se_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand)
1220
- .de(de_GetLinkedWhatsAppBusinessAccountPhoneNumberCommand)
1383
+ .sc(GetLinkedWhatsAppBusinessAccountPhoneNumber)
1221
1384
  .build() {
1222
1385
  }
1223
1386
 
@@ -1225,16 +1388,11 @@ class GetWhatsAppMessageMediaCommand extends smithyClient.Command
1225
1388
  .classBuilder()
1226
1389
  .ep(commonParams)
1227
1390
  .m(function (Command, cs, config, o) {
1228
- return [
1229
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1230
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1231
- ];
1391
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1232
1392
  })
1233
1393
  .s("SocialMessaging", "GetWhatsAppMessageMedia", {})
1234
1394
  .n("SocialMessagingClient", "GetWhatsAppMessageMediaCommand")
1235
- .f(GetWhatsAppMessageMediaInputFilterSensitiveLog, void 0)
1236
- .ser(se_GetWhatsAppMessageMediaCommand)
1237
- .de(de_GetWhatsAppMessageMediaCommand)
1395
+ .sc(GetWhatsAppMessageMedia)
1238
1396
  .build() {
1239
1397
  }
1240
1398
 
@@ -1242,16 +1400,11 @@ class GetWhatsAppMessageTemplateCommand extends smithyClient.Command
1242
1400
  .classBuilder()
1243
1401
  .ep(commonParams)
1244
1402
  .m(function (Command, cs, config, o) {
1245
- return [
1246
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1247
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1248
- ];
1403
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1249
1404
  })
1250
1405
  .s("SocialMessaging", "GetWhatsAppMessageTemplate", {})
1251
1406
  .n("SocialMessagingClient", "GetWhatsAppMessageTemplateCommand")
1252
- .f(void 0, void 0)
1253
- .ser(se_GetWhatsAppMessageTemplateCommand)
1254
- .de(de_GetWhatsAppMessageTemplateCommand)
1407
+ .sc(GetWhatsAppMessageTemplate)
1255
1408
  .build() {
1256
1409
  }
1257
1410
 
@@ -1259,16 +1412,11 @@ class ListLinkedWhatsAppBusinessAccountsCommand extends smithyClient.Command
1259
1412
  .classBuilder()
1260
1413
  .ep(commonParams)
1261
1414
  .m(function (Command, cs, config, o) {
1262
- return [
1263
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1264
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1265
- ];
1415
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1266
1416
  })
1267
1417
  .s("SocialMessaging", "ListLinkedWhatsAppBusinessAccounts", {})
1268
1418
  .n("SocialMessagingClient", "ListLinkedWhatsAppBusinessAccountsCommand")
1269
- .f(void 0, void 0)
1270
- .ser(se_ListLinkedWhatsAppBusinessAccountsCommand)
1271
- .de(de_ListLinkedWhatsAppBusinessAccountsCommand)
1419
+ .sc(ListLinkedWhatsAppBusinessAccounts)
1272
1420
  .build() {
1273
1421
  }
1274
1422
 
@@ -1276,16 +1424,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1276
1424
  .classBuilder()
1277
1425
  .ep(commonParams)
1278
1426
  .m(function (Command, cs, config, o) {
1279
- return [
1280
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1281
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1282
- ];
1427
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1283
1428
  })
1284
1429
  .s("SocialMessaging", "ListTagsForResource", {})
1285
1430
  .n("SocialMessagingClient", "ListTagsForResourceCommand")
1286
- .f(void 0, void 0)
1287
- .ser(se_ListTagsForResourceCommand)
1288
- .de(de_ListTagsForResourceCommand)
1431
+ .sc(ListTagsForResource)
1289
1432
  .build() {
1290
1433
  }
1291
1434
 
@@ -1293,16 +1436,11 @@ class ListWhatsAppMessageTemplatesCommand extends smithyClient.Command
1293
1436
  .classBuilder()
1294
1437
  .ep(commonParams)
1295
1438
  .m(function (Command, cs, config, o) {
1296
- return [
1297
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1298
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1299
- ];
1439
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1300
1440
  })
1301
1441
  .s("SocialMessaging", "ListWhatsAppMessageTemplates", {})
1302
1442
  .n("SocialMessagingClient", "ListWhatsAppMessageTemplatesCommand")
1303
- .f(void 0, void 0)
1304
- .ser(se_ListWhatsAppMessageTemplatesCommand)
1305
- .de(de_ListWhatsAppMessageTemplatesCommand)
1443
+ .sc(ListWhatsAppMessageTemplates)
1306
1444
  .build() {
1307
1445
  }
1308
1446
 
@@ -1310,16 +1448,11 @@ class ListWhatsAppTemplateLibraryCommand extends smithyClient.Command
1310
1448
  .classBuilder()
1311
1449
  .ep(commonParams)
1312
1450
  .m(function (Command, cs, config, o) {
1313
- return [
1314
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1315
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1316
- ];
1451
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1317
1452
  })
1318
1453
  .s("SocialMessaging", "ListWhatsAppTemplateLibrary", {})
1319
1454
  .n("SocialMessagingClient", "ListWhatsAppTemplateLibraryCommand")
1320
- .f(void 0, void 0)
1321
- .ser(se_ListWhatsAppTemplateLibraryCommand)
1322
- .de(de_ListWhatsAppTemplateLibraryCommand)
1455
+ .sc(ListWhatsAppTemplateLibrary)
1323
1456
  .build() {
1324
1457
  }
1325
1458
 
@@ -1327,16 +1460,11 @@ class PostWhatsAppMessageMediaCommand extends smithyClient.Command
1327
1460
  .classBuilder()
1328
1461
  .ep(commonParams)
1329
1462
  .m(function (Command, cs, config, o) {
1330
- return [
1331
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1332
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1333
- ];
1463
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1334
1464
  })
1335
1465
  .s("SocialMessaging", "PostWhatsAppMessageMedia", {})
1336
1466
  .n("SocialMessagingClient", "PostWhatsAppMessageMediaCommand")
1337
- .f(PostWhatsAppMessageMediaInputFilterSensitiveLog, void 0)
1338
- .ser(se_PostWhatsAppMessageMediaCommand)
1339
- .de(de_PostWhatsAppMessageMediaCommand)
1467
+ .sc(PostWhatsAppMessageMedia)
1340
1468
  .build() {
1341
1469
  }
1342
1470
 
@@ -1344,16 +1472,11 @@ class PutWhatsAppBusinessAccountEventDestinationsCommand extends smithyClient.Co
1344
1472
  .classBuilder()
1345
1473
  .ep(commonParams)
1346
1474
  .m(function (Command, cs, config, o) {
1347
- return [
1348
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1349
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1350
- ];
1475
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1351
1476
  })
1352
1477
  .s("SocialMessaging", "PutWhatsAppBusinessAccountEventDestinations", {})
1353
1478
  .n("SocialMessagingClient", "PutWhatsAppBusinessAccountEventDestinationsCommand")
1354
- .f(void 0, void 0)
1355
- .ser(se_PutWhatsAppBusinessAccountEventDestinationsCommand)
1356
- .de(de_PutWhatsAppBusinessAccountEventDestinationsCommand)
1479
+ .sc(PutWhatsAppBusinessAccountEventDestinations)
1357
1480
  .build() {
1358
1481
  }
1359
1482
 
@@ -1361,16 +1484,11 @@ class SendWhatsAppMessageCommand extends smithyClient.Command
1361
1484
  .classBuilder()
1362
1485
  .ep(commonParams)
1363
1486
  .m(function (Command, cs, config, o) {
1364
- return [
1365
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1366
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1367
- ];
1487
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1368
1488
  })
1369
1489
  .s("SocialMessaging", "SendWhatsAppMessage", {})
1370
1490
  .n("SocialMessagingClient", "SendWhatsAppMessageCommand")
1371
- .f(SendWhatsAppMessageInputFilterSensitiveLog, void 0)
1372
- .ser(se_SendWhatsAppMessageCommand)
1373
- .de(de_SendWhatsAppMessageCommand)
1491
+ .sc(SendWhatsAppMessage)
1374
1492
  .build() {
1375
1493
  }
1376
1494
 
@@ -1378,16 +1496,11 @@ class TagResourceCommand extends smithyClient.Command
1378
1496
  .classBuilder()
1379
1497
  .ep(commonParams)
1380
1498
  .m(function (Command, cs, config, o) {
1381
- return [
1382
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1383
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1384
- ];
1499
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1385
1500
  })
1386
1501
  .s("SocialMessaging", "TagResource", {})
1387
1502
  .n("SocialMessagingClient", "TagResourceCommand")
1388
- .f(void 0, void 0)
1389
- .ser(se_TagResourceCommand)
1390
- .de(de_TagResourceCommand)
1503
+ .sc(TagResource)
1391
1504
  .build() {
1392
1505
  }
1393
1506
 
@@ -1395,16 +1508,11 @@ class UntagResourceCommand extends smithyClient.Command
1395
1508
  .classBuilder()
1396
1509
  .ep(commonParams)
1397
1510
  .m(function (Command, cs, config, o) {
1398
- return [
1399
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1400
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1401
- ];
1511
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1402
1512
  })
1403
1513
  .s("SocialMessaging", "UntagResource", {})
1404
1514
  .n("SocialMessagingClient", "UntagResourceCommand")
1405
- .f(void 0, void 0)
1406
- .ser(se_UntagResourceCommand)
1407
- .de(de_UntagResourceCommand)
1515
+ .sc(UntagResource)
1408
1516
  .build() {
1409
1517
  }
1410
1518
 
@@ -1412,16 +1520,11 @@ class UpdateWhatsAppMessageTemplateCommand extends smithyClient.Command
1412
1520
  .classBuilder()
1413
1521
  .ep(commonParams)
1414
1522
  .m(function (Command, cs, config, o) {
1415
- return [
1416
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1417
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1418
- ];
1523
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1419
1524
  })
1420
1525
  .s("SocialMessaging", "UpdateWhatsAppMessageTemplate", {})
1421
1526
  .n("SocialMessagingClient", "UpdateWhatsAppMessageTemplateCommand")
1422
- .f(void 0, void 0)
1423
- .ser(se_UpdateWhatsAppMessageTemplateCommand)
1424
- .de(de_UpdateWhatsAppMessageTemplateCommand)
1527
+ .sc(UpdateWhatsAppMessageTemplate)
1425
1528
  .build() {
1426
1529
  }
1427
1530
 
@@ -1466,51 +1569,40 @@ Object.defineProperty(exports, "__Client", {
1466
1569
  enumerable: true,
1467
1570
  get: function () { return smithyClient.Client; }
1468
1571
  });
1469
- exports.AccessDeniedByMetaException = AccessDeniedByMetaException;
1470
- exports.AccessDeniedException = AccessDeniedException;
1572
+ exports.AccessDeniedByMetaException = AccessDeniedByMetaException$1;
1573
+ exports.AccessDeniedException = AccessDeniedException$1;
1471
1574
  exports.AssociateWhatsAppBusinessAccountCommand = AssociateWhatsAppBusinessAccountCommand;
1472
- exports.AssociateWhatsAppBusinessAccountInputFilterSensitiveLog = AssociateWhatsAppBusinessAccountInputFilterSensitiveLog;
1473
- exports.AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog;
1474
1575
  exports.CreateWhatsAppMessageTemplateCommand = CreateWhatsAppMessageTemplateCommand;
1475
1576
  exports.CreateWhatsAppMessageTemplateFromLibraryCommand = CreateWhatsAppMessageTemplateFromLibraryCommand;
1476
1577
  exports.CreateWhatsAppMessageTemplateMediaCommand = CreateWhatsAppMessageTemplateMediaCommand;
1477
- exports.CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog;
1478
1578
  exports.DeleteWhatsAppMessageMediaCommand = DeleteWhatsAppMessageMediaCommand;
1479
1579
  exports.DeleteWhatsAppMessageTemplateCommand = DeleteWhatsAppMessageTemplateCommand;
1480
- exports.DependencyException = DependencyException;
1580
+ exports.DependencyException = DependencyException$1;
1481
1581
  exports.DisassociateWhatsAppBusinessAccountCommand = DisassociateWhatsAppBusinessAccountCommand;
1482
1582
  exports.GetLinkedWhatsAppBusinessAccountCommand = GetLinkedWhatsAppBusinessAccountCommand;
1483
1583
  exports.GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = GetLinkedWhatsAppBusinessAccountPhoneNumberCommand;
1484
1584
  exports.GetWhatsAppMessageMediaCommand = GetWhatsAppMessageMediaCommand;
1485
- exports.GetWhatsAppMessageMediaInputFilterSensitiveLog = GetWhatsAppMessageMediaInputFilterSensitiveLog;
1486
1585
  exports.GetWhatsAppMessageTemplateCommand = GetWhatsAppMessageTemplateCommand;
1487
- exports.InternalServiceException = InternalServiceException;
1488
- exports.InvalidParametersException = InvalidParametersException;
1489
- exports.LimitExceededException = LimitExceededException;
1586
+ exports.InternalServiceException = InternalServiceException$1;
1587
+ exports.InvalidParametersException = InvalidParametersException$1;
1588
+ exports.LimitExceededException = LimitExceededException$1;
1490
1589
  exports.ListLinkedWhatsAppBusinessAccountsCommand = ListLinkedWhatsAppBusinessAccountsCommand;
1491
1590
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1492
1591
  exports.ListWhatsAppMessageTemplatesCommand = ListWhatsAppMessageTemplatesCommand;
1493
1592
  exports.ListWhatsAppTemplateLibraryCommand = ListWhatsAppTemplateLibraryCommand;
1494
1593
  exports.PostWhatsAppMessageMediaCommand = PostWhatsAppMessageMediaCommand;
1495
- exports.PostWhatsAppMessageMediaInputFilterSensitiveLog = PostWhatsAppMessageMediaInputFilterSensitiveLog;
1496
1594
  exports.PutWhatsAppBusinessAccountEventDestinationsCommand = PutWhatsAppBusinessAccountEventDestinationsCommand;
1497
1595
  exports.RegistrationStatus = RegistrationStatus;
1498
- exports.ResourceNotFoundException = ResourceNotFoundException;
1499
- exports.S3FileFilterSensitiveLog = S3FileFilterSensitiveLog;
1500
- exports.S3PresignedUrlFilterSensitiveLog = S3PresignedUrlFilterSensitiveLog;
1596
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1501
1597
  exports.SendWhatsAppMessageCommand = SendWhatsAppMessageCommand;
1502
- exports.SendWhatsAppMessageInputFilterSensitiveLog = SendWhatsAppMessageInputFilterSensitiveLog;
1503
1598
  exports.SocialMessaging = SocialMessaging;
1504
1599
  exports.SocialMessagingClient = SocialMessagingClient;
1505
- exports.SocialMessagingServiceException = SocialMessagingServiceException;
1600
+ exports.SocialMessagingServiceException = SocialMessagingServiceException$1;
1506
1601
  exports.TagResourceCommand = TagResourceCommand;
1507
- exports.ThrottledRequestException = ThrottledRequestException;
1602
+ exports.ThrottledRequestException = ThrottledRequestException$1;
1508
1603
  exports.UntagResourceCommand = UntagResourceCommand;
1509
1604
  exports.UpdateWhatsAppMessageTemplateCommand = UpdateWhatsAppMessageTemplateCommand;
1510
- exports.ValidationException = ValidationException;
1511
- exports.WabaPhoneNumberSetupFinalizationFilterSensitiveLog = WabaPhoneNumberSetupFinalizationFilterSensitiveLog;
1512
- exports.WhatsAppSetupFinalizationFilterSensitiveLog = WhatsAppSetupFinalizationFilterSensitiveLog;
1513
- exports.WhatsAppSignupCallbackResultFilterSensitiveLog = WhatsAppSignupCallbackResultFilterSensitiveLog;
1605
+ exports.ValidationException = ValidationException$1;
1514
1606
  exports.paginateListLinkedWhatsAppBusinessAccounts = paginateListLinkedWhatsAppBusinessAccounts;
1515
1607
  exports.paginateListWhatsAppMessageTemplates = paginateListWhatsAppMessageTemplates;
1516
1608
  exports.paginateListWhatsAppTemplateLibrary = paginateListWhatsAppTemplateLibrary;