@aws-sdk/client-polly 3.928.0 → 3.930.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 (33) hide show
  1. package/dist-cjs/index.js +722 -811
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/PollyClient.js +2 -0
  4. package/dist-es/commands/DeleteLexiconCommand.js +3 -9
  5. package/dist-es/commands/DescribeVoicesCommand.js +3 -9
  6. package/dist-es/commands/GetLexiconCommand.js +3 -10
  7. package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +3 -9
  8. package/dist-es/commands/ListLexiconsCommand.js +3 -9
  9. package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +3 -9
  10. package/dist-es/commands/PutLexiconCommand.js +3 -10
  11. package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +3 -9
  12. package/dist-es/commands/SynthesizeSpeechCommand.js +3 -10
  13. package/dist-es/models/models_0.js +0 -16
  14. package/dist-es/runtimeConfig.shared.js +2 -0
  15. package/dist-es/schemas/schemas_0.js +649 -0
  16. package/dist-types/PollyClient.d.ts +10 -1
  17. package/dist-types/models/models_0.d.ts +0 -16
  18. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  19. package/dist-types/runtimeConfig.d.ts +1 -0
  20. package/dist-types/runtimeConfig.native.d.ts +1 -0
  21. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  22. package/dist-types/schemas/schemas_0.d.ts +65 -0
  23. package/dist-types/ts3.4/PollyClient.d.ts +4 -0
  24. package/dist-types/ts3.4/models/models_0.d.ts +0 -10
  25. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  26. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  29. package/dist-types/ts3.4/schemas/schemas_0.d.ts +71 -0
  30. package/package.json +34 -34
  31. package/dist-es/protocols/Aws_restJson1.js +0 -672
  32. package/dist-types/protocols/Aws_restJson1.d.ts +0 -83
  33. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -116
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 PollyClient 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 PollyClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class PollyServiceException extends smithyClient.ServiceException {
113
+ let PollyServiceException$1 = class PollyServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, PollyServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class LexiconNotFoundException extends PollyServiceException {
120
+ let LexiconNotFoundException$1 = class LexiconNotFoundException extends PollyServiceException$1 {
121
121
  name = "LexiconNotFoundException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,8 +128,8 @@ class LexiconNotFoundException extends PollyServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, LexiconNotFoundException.prototype);
130
130
  }
131
- }
132
- class ServiceFailureException extends PollyServiceException {
131
+ };
132
+ let ServiceFailureException$1 = class ServiceFailureException extends PollyServiceException$1 {
133
133
  name = "ServiceFailureException";
134
134
  $fault = "server";
135
135
  constructor(opts) {
@@ -140,7 +140,7 @@ class ServiceFailureException extends PollyServiceException {
140
140
  });
141
141
  Object.setPrototypeOf(this, ServiceFailureException.prototype);
142
142
  }
143
- }
143
+ };
144
144
  const Engine = {
145
145
  GENERATIVE: "generative",
146
146
  LONG_FORM: "long-form",
@@ -297,7 +297,7 @@ const VoiceId = {
297
297
  Zeina: "Zeina",
298
298
  Zhiyu: "Zhiyu",
299
299
  };
300
- class InvalidNextTokenException extends PollyServiceException {
300
+ let InvalidNextTokenException$1 = class InvalidNextTokenException extends PollyServiceException$1 {
301
301
  name = "InvalidNextTokenException";
302
302
  $fault = "client";
303
303
  constructor(opts) {
@@ -308,8 +308,8 @@ class InvalidNextTokenException extends PollyServiceException {
308
308
  });
309
309
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
310
310
  }
311
- }
312
- class EngineNotSupportedException extends PollyServiceException {
311
+ };
312
+ let EngineNotSupportedException$1 = class EngineNotSupportedException extends PollyServiceException$1 {
313
313
  name = "EngineNotSupportedException";
314
314
  $fault = "client";
315
315
  constructor(opts) {
@@ -320,7 +320,7 @@ class EngineNotSupportedException extends PollyServiceException {
320
320
  });
321
321
  Object.setPrototypeOf(this, EngineNotSupportedException.prototype);
322
322
  }
323
- }
323
+ };
324
324
  const OutputFormat = {
325
325
  JSON: "json",
326
326
  MP3: "mp3",
@@ -344,7 +344,7 @@ const TextType = {
344
344
  SSML: "ssml",
345
345
  TEXT: "text",
346
346
  };
347
- class InvalidTaskIdException extends PollyServiceException {
347
+ let InvalidTaskIdException$1 = class InvalidTaskIdException extends PollyServiceException$1 {
348
348
  name = "InvalidTaskIdException";
349
349
  $fault = "client";
350
350
  constructor(opts) {
@@ -355,8 +355,8 @@ class InvalidTaskIdException extends PollyServiceException {
355
355
  });
356
356
  Object.setPrototypeOf(this, InvalidTaskIdException.prototype);
357
357
  }
358
- }
359
- class SynthesisTaskNotFoundException extends PollyServiceException {
358
+ };
359
+ let SynthesisTaskNotFoundException$1 = class SynthesisTaskNotFoundException extends PollyServiceException$1 {
360
360
  name = "SynthesisTaskNotFoundException";
361
361
  $fault = "client";
362
362
  constructor(opts) {
@@ -367,8 +367,8 @@ class SynthesisTaskNotFoundException extends PollyServiceException {
367
367
  });
368
368
  Object.setPrototypeOf(this, SynthesisTaskNotFoundException.prototype);
369
369
  }
370
- }
371
- class InvalidLexiconException extends PollyServiceException {
370
+ };
371
+ let InvalidLexiconException$1 = class InvalidLexiconException extends PollyServiceException$1 {
372
372
  name = "InvalidLexiconException";
373
373
  $fault = "client";
374
374
  constructor(opts) {
@@ -379,8 +379,8 @@ class InvalidLexiconException extends PollyServiceException {
379
379
  });
380
380
  Object.setPrototypeOf(this, InvalidLexiconException.prototype);
381
381
  }
382
- }
383
- class InvalidS3BucketException extends PollyServiceException {
382
+ };
383
+ let InvalidS3BucketException$1 = class InvalidS3BucketException extends PollyServiceException$1 {
384
384
  name = "InvalidS3BucketException";
385
385
  $fault = "client";
386
386
  constructor(opts) {
@@ -391,8 +391,8 @@ class InvalidS3BucketException extends PollyServiceException {
391
391
  });
392
392
  Object.setPrototypeOf(this, InvalidS3BucketException.prototype);
393
393
  }
394
- }
395
- class InvalidS3KeyException extends PollyServiceException {
394
+ };
395
+ let InvalidS3KeyException$1 = class InvalidS3KeyException extends PollyServiceException$1 {
396
396
  name = "InvalidS3KeyException";
397
397
  $fault = "client";
398
398
  constructor(opts) {
@@ -403,8 +403,8 @@ class InvalidS3KeyException extends PollyServiceException {
403
403
  });
404
404
  Object.setPrototypeOf(this, InvalidS3KeyException.prototype);
405
405
  }
406
- }
407
- class InvalidSampleRateException extends PollyServiceException {
406
+ };
407
+ let InvalidSampleRateException$1 = class InvalidSampleRateException extends PollyServiceException$1 {
408
408
  name = "InvalidSampleRateException";
409
409
  $fault = "client";
410
410
  constructor(opts) {
@@ -415,8 +415,8 @@ class InvalidSampleRateException extends PollyServiceException {
415
415
  });
416
416
  Object.setPrototypeOf(this, InvalidSampleRateException.prototype);
417
417
  }
418
- }
419
- class InvalidSnsTopicArnException extends PollyServiceException {
418
+ };
419
+ let InvalidSnsTopicArnException$1 = class InvalidSnsTopicArnException extends PollyServiceException$1 {
420
420
  name = "InvalidSnsTopicArnException";
421
421
  $fault = "client";
422
422
  constructor(opts) {
@@ -427,8 +427,8 @@ class InvalidSnsTopicArnException extends PollyServiceException {
427
427
  });
428
428
  Object.setPrototypeOf(this, InvalidSnsTopicArnException.prototype);
429
429
  }
430
- }
431
- class InvalidSsmlException extends PollyServiceException {
430
+ };
431
+ let InvalidSsmlException$1 = class InvalidSsmlException extends PollyServiceException$1 {
432
432
  name = "InvalidSsmlException";
433
433
  $fault = "client";
434
434
  constructor(opts) {
@@ -439,8 +439,8 @@ class InvalidSsmlException extends PollyServiceException {
439
439
  });
440
440
  Object.setPrototypeOf(this, InvalidSsmlException.prototype);
441
441
  }
442
- }
443
- class LanguageNotSupportedException extends PollyServiceException {
442
+ };
443
+ let LanguageNotSupportedException$1 = class LanguageNotSupportedException extends PollyServiceException$1 {
444
444
  name = "LanguageNotSupportedException";
445
445
  $fault = "client";
446
446
  constructor(opts) {
@@ -451,8 +451,8 @@ class LanguageNotSupportedException extends PollyServiceException {
451
451
  });
452
452
  Object.setPrototypeOf(this, LanguageNotSupportedException.prototype);
453
453
  }
454
- }
455
- class LexiconSizeExceededException extends PollyServiceException {
454
+ };
455
+ let LexiconSizeExceededException$1 = class LexiconSizeExceededException extends PollyServiceException$1 {
456
456
  name = "LexiconSizeExceededException";
457
457
  $fault = "client";
458
458
  constructor(opts) {
@@ -463,8 +463,8 @@ class LexiconSizeExceededException extends PollyServiceException {
463
463
  });
464
464
  Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
465
465
  }
466
- }
467
- class MarksNotSupportedForFormatException extends PollyServiceException {
466
+ };
467
+ let MarksNotSupportedForFormatException$1 = class MarksNotSupportedForFormatException extends PollyServiceException$1 {
468
468
  name = "MarksNotSupportedForFormatException";
469
469
  $fault = "client";
470
470
  constructor(opts) {
@@ -475,8 +475,8 @@ class MarksNotSupportedForFormatException extends PollyServiceException {
475
475
  });
476
476
  Object.setPrototypeOf(this, MarksNotSupportedForFormatException.prototype);
477
477
  }
478
- }
479
- class MaxLexemeLengthExceededException extends PollyServiceException {
478
+ };
479
+ let MaxLexemeLengthExceededException$1 = class MaxLexemeLengthExceededException extends PollyServiceException$1 {
480
480
  name = "MaxLexemeLengthExceededException";
481
481
  $fault = "client";
482
482
  constructor(opts) {
@@ -487,8 +487,8 @@ class MaxLexemeLengthExceededException extends PollyServiceException {
487
487
  });
488
488
  Object.setPrototypeOf(this, MaxLexemeLengthExceededException.prototype);
489
489
  }
490
- }
491
- class MaxLexiconsNumberExceededException extends PollyServiceException {
490
+ };
491
+ let MaxLexiconsNumberExceededException$1 = class MaxLexiconsNumberExceededException extends PollyServiceException$1 {
492
492
  name = "MaxLexiconsNumberExceededException";
493
493
  $fault = "client";
494
494
  constructor(opts) {
@@ -499,8 +499,8 @@ class MaxLexiconsNumberExceededException extends PollyServiceException {
499
499
  });
500
500
  Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
501
501
  }
502
- }
503
- class UnsupportedPlsAlphabetException extends PollyServiceException {
502
+ };
503
+ let UnsupportedPlsAlphabetException$1 = class UnsupportedPlsAlphabetException extends PollyServiceException$1 {
504
504
  name = "UnsupportedPlsAlphabetException";
505
505
  $fault = "client";
506
506
  constructor(opts) {
@@ -511,8 +511,8 @@ class UnsupportedPlsAlphabetException extends PollyServiceException {
511
511
  });
512
512
  Object.setPrototypeOf(this, UnsupportedPlsAlphabetException.prototype);
513
513
  }
514
- }
515
- class UnsupportedPlsLanguageException extends PollyServiceException {
514
+ };
515
+ let UnsupportedPlsLanguageException$1 = class UnsupportedPlsLanguageException extends PollyServiceException$1 {
516
516
  name = "UnsupportedPlsLanguageException";
517
517
  $fault = "client";
518
518
  constructor(opts) {
@@ -523,8 +523,8 @@ class UnsupportedPlsLanguageException extends PollyServiceException {
523
523
  });
524
524
  Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);
525
525
  }
526
- }
527
- class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
526
+ };
527
+ let SsmlMarksNotSupportedForTextTypeException$1 = class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException$1 {
528
528
  name = "SsmlMarksNotSupportedForTextTypeException";
529
529
  $fault = "client";
530
530
  constructor(opts) {
@@ -535,8 +535,8 @@ class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
535
535
  });
536
536
  Object.setPrototypeOf(this, SsmlMarksNotSupportedForTextTypeException.prototype);
537
537
  }
538
- }
539
- class TextLengthExceededException extends PollyServiceException {
538
+ };
539
+ let TextLengthExceededException$1 = class TextLengthExceededException extends PollyServiceException$1 {
540
540
  name = "TextLengthExceededException";
541
541
  $fault = "client";
542
542
  constructor(opts) {
@@ -547,704 +547,659 @@ class TextLengthExceededException extends PollyServiceException {
547
547
  });
548
548
  Object.setPrototypeOf(this, TextLengthExceededException.prototype);
549
549
  }
550
- }
551
- const LexiconFilterSensitiveLog = (obj) => ({
552
- ...obj,
553
- ...(obj.Content && { Content: smithyClient.SENSITIVE_STRING }),
554
- });
555
- const GetLexiconOutputFilterSensitiveLog = (obj) => ({
556
- ...obj,
557
- ...(obj.Lexicon && { Lexicon: LexiconFilterSensitiveLog(obj.Lexicon) }),
558
- });
559
- const PutLexiconInputFilterSensitiveLog = (obj) => ({
560
- ...obj,
561
- ...(obj.Content && { Content: smithyClient.SENSITIVE_STRING }),
562
- });
563
- const SynthesizeSpeechOutputFilterSensitiveLog = (obj) => ({
564
- ...obj,
565
- });
566
-
567
- const se_DeleteLexiconCommand = async (input, context) => {
568
- const b = core.requestBuilder(input, context);
569
- const headers = {};
570
- b.bp("/v1/lexicons/{Name}");
571
- b.p("Name", () => input.Name, "{Name}", false);
572
- let body;
573
- b.m("DELETE").h(headers).b(body);
574
- return b.build();
575
- };
576
- const se_DescribeVoicesCommand = async (input, context) => {
577
- const b = core.requestBuilder(input, context);
578
- const headers = {};
579
- b.bp("/v1/voices");
580
- const query = smithyClient.map({
581
- [_E]: [, input[_E]],
582
- [_LC]: [, input[_LC]],
583
- [_IALC]: [() => input.IncludeAdditionalLanguageCodes !== void 0, () => input[_IALC].toString()],
584
- [_NT]: [, input[_NT]],
585
- });
586
- let body;
587
- b.m("GET").h(headers).q(query).b(body);
588
- return b.build();
589
- };
590
- const se_GetLexiconCommand = async (input, context) => {
591
- const b = core.requestBuilder(input, context);
592
- const headers = {};
593
- b.bp("/v1/lexicons/{Name}");
594
- b.p("Name", () => input.Name, "{Name}", false);
595
- let body;
596
- b.m("GET").h(headers).b(body);
597
- return b.build();
598
- };
599
- const se_GetSpeechSynthesisTaskCommand = async (input, context) => {
600
- const b = core.requestBuilder(input, context);
601
- const headers = {};
602
- b.bp("/v1/synthesisTasks/{TaskId}");
603
- b.p("TaskId", () => input.TaskId, "{TaskId}", false);
604
- let body;
605
- b.m("GET").h(headers).b(body);
606
- return b.build();
607
- };
608
- const se_ListLexiconsCommand = async (input, context) => {
609
- const b = core.requestBuilder(input, context);
610
- const headers = {};
611
- b.bp("/v1/lexicons");
612
- const query = smithyClient.map({
613
- [_NT]: [, input[_NT]],
614
- });
615
- let body;
616
- b.m("GET").h(headers).q(query).b(body);
617
- return b.build();
618
- };
619
- const se_ListSpeechSynthesisTasksCommand = async (input, context) => {
620
- const b = core.requestBuilder(input, context);
621
- const headers = {};
622
- b.bp("/v1/synthesisTasks");
623
- const query = smithyClient.map({
624
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
625
- [_NT]: [, input[_NT]],
626
- [_S]: [, input[_S]],
627
- });
628
- let body;
629
- b.m("GET").h(headers).q(query).b(body);
630
- return b.build();
631
- };
632
- const se_PutLexiconCommand = async (input, context) => {
633
- const b = core.requestBuilder(input, context);
634
- const headers = {
635
- "content-type": "application/json",
636
- };
637
- b.bp("/v1/lexicons/{Name}");
638
- b.p("Name", () => input.Name, "{Name}", false);
639
- let body;
640
- body = JSON.stringify(smithyClient.take(input, {
641
- Content: [],
642
- }));
643
- b.m("PUT").h(headers).b(body);
644
- return b.build();
645
550
  };
646
- const se_StartSpeechSynthesisTaskCommand = async (input, context) => {
647
- const b = core.requestBuilder(input, context);
648
- const headers = {
649
- "content-type": "application/json",
650
- };
651
- b.bp("/v1/synthesisTasks");
652
- let body;
653
- body = JSON.stringify(smithyClient.take(input, {
654
- Engine: [],
655
- LanguageCode: [],
656
- LexiconNames: (_) => smithyClient._json(_),
657
- OutputFormat: [],
658
- OutputS3BucketName: [],
659
- OutputS3KeyPrefix: [],
660
- SampleRate: [],
661
- SnsTopicArn: [],
662
- SpeechMarkTypes: (_) => smithyClient._json(_),
663
- Text: [],
664
- TextType: [],
665
- VoiceId: [],
666
- }));
667
- b.m("POST").h(headers).b(body);
668
- return b.build();
669
- };
670
- const se_SynthesizeSpeechCommand = async (input, context) => {
671
- const b = core.requestBuilder(input, context);
672
- const headers = {
673
- "content-type": "application/json",
674
- };
675
- b.bp("/v1/speech");
676
- let body;
677
- body = JSON.stringify(smithyClient.take(input, {
678
- Engine: [],
679
- LanguageCode: [],
680
- LexiconNames: (_) => smithyClient._json(_),
681
- OutputFormat: [],
682
- SampleRate: [],
683
- SpeechMarkTypes: (_) => smithyClient._json(_),
684
- Text: [],
685
- TextType: [],
686
- VoiceId: [],
687
- }));
688
- b.m("POST").h(headers).b(body);
689
- return b.build();
690
- };
691
- const de_DeleteLexiconCommand = async (output, context) => {
692
- if (output.statusCode !== 200 && output.statusCode >= 300) {
693
- return de_CommandError(output, context);
694
- }
695
- const contents = smithyClient.map({
696
- $metadata: deserializeMetadata(output),
697
- });
698
- await smithyClient.collectBody(output.body, context);
699
- return contents;
700
- };
701
- const de_DescribeVoicesCommand = async (output, context) => {
702
- if (output.statusCode !== 200 && output.statusCode >= 300) {
703
- return de_CommandError(output, context);
704
- }
705
- const contents = smithyClient.map({
706
- $metadata: deserializeMetadata(output),
707
- });
708
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
709
- const doc = smithyClient.take(data, {
710
- NextToken: smithyClient.expectString,
711
- Voices: smithyClient._json,
712
- });
713
- Object.assign(contents, doc);
714
- return contents;
715
- };
716
- const de_GetLexiconCommand = async (output, context) => {
717
- if (output.statusCode !== 200 && output.statusCode >= 300) {
718
- return de_CommandError(output, context);
719
- }
720
- const contents = smithyClient.map({
721
- $metadata: deserializeMetadata(output),
722
- });
723
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
724
- const doc = smithyClient.take(data, {
725
- Lexicon: smithyClient._json,
726
- LexiconAttributes: (_) => de_LexiconAttributes(_),
727
- });
728
- Object.assign(contents, doc);
729
- return contents;
730
- };
731
- const de_GetSpeechSynthesisTaskCommand = async (output, context) => {
732
- if (output.statusCode !== 200 && output.statusCode >= 300) {
733
- return de_CommandError(output, context);
734
- }
735
- const contents = smithyClient.map({
736
- $metadata: deserializeMetadata(output),
737
- });
738
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
739
- const doc = smithyClient.take(data, {
740
- SynthesisTask: (_) => de_SynthesisTask(_),
741
- });
742
- Object.assign(contents, doc);
743
- return contents;
744
- };
745
- const de_ListLexiconsCommand = async (output, context) => {
746
- if (output.statusCode !== 200 && output.statusCode >= 300) {
747
- return de_CommandError(output, context);
748
- }
749
- const contents = smithyClient.map({
750
- $metadata: deserializeMetadata(output),
751
- });
752
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
753
- const doc = smithyClient.take(data, {
754
- Lexicons: (_) => de_LexiconDescriptionList(_),
755
- NextToken: smithyClient.expectString,
756
- });
757
- Object.assign(contents, doc);
758
- return contents;
759
- };
760
- const de_ListSpeechSynthesisTasksCommand = async (output, context) => {
761
- if (output.statusCode !== 200 && output.statusCode >= 300) {
762
- return de_CommandError(output, context);
763
- }
764
- const contents = smithyClient.map({
765
- $metadata: deserializeMetadata(output),
766
- });
767
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
768
- const doc = smithyClient.take(data, {
769
- NextToken: smithyClient.expectString,
770
- SynthesisTasks: (_) => de_SynthesisTasks(_),
771
- });
772
- Object.assign(contents, doc);
773
- return contents;
774
- };
775
- const de_PutLexiconCommand = async (output, context) => {
776
- if (output.statusCode !== 200 && output.statusCode >= 300) {
777
- return de_CommandError(output, context);
778
- }
779
- const contents = smithyClient.map({
780
- $metadata: deserializeMetadata(output),
781
- });
782
- await smithyClient.collectBody(output.body, context);
783
- return contents;
784
- };
785
- const de_StartSpeechSynthesisTaskCommand = async (output, context) => {
786
- if (output.statusCode !== 200 && output.statusCode >= 300) {
787
- return de_CommandError(output, context);
788
- }
789
- const contents = smithyClient.map({
790
- $metadata: deserializeMetadata(output),
791
- });
792
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
793
- const doc = smithyClient.take(data, {
794
- SynthesisTask: (_) => de_SynthesisTask(_),
795
- });
796
- Object.assign(contents, doc);
797
- return contents;
798
- };
799
- const de_SynthesizeSpeechCommand = async (output, context) => {
800
- if (output.statusCode !== 200 && output.statusCode >= 300) {
801
- return de_CommandError(output, context);
802
- }
803
- const contents = smithyClient.map({
804
- $metadata: deserializeMetadata(output),
805
- [_CT]: [, output.headers[_ct]],
806
- [_RC]: [() => void 0 !== output.headers[_xar], () => smithyClient.strictParseInt32(output.headers[_xar])],
807
- });
808
- const data = output.body;
809
- context.sdkStreamMixin(data);
810
- contents.AudioStream = data;
811
- return contents;
812
- };
813
- const de_CommandError = async (output, context) => {
814
- const parsedOutput = {
815
- ...output,
816
- body: await core$1.parseJsonErrorBody(output.body, context),
817
- };
818
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
819
- switch (errorCode) {
820
- case "LexiconNotFoundException":
821
- case "com.amazonaws.polly#LexiconNotFoundException":
822
- throw await de_LexiconNotFoundExceptionRes(parsedOutput);
823
- case "ServiceFailureException":
824
- case "com.amazonaws.polly#ServiceFailureException":
825
- throw await de_ServiceFailureExceptionRes(parsedOutput);
826
- case "InvalidNextTokenException":
827
- case "com.amazonaws.polly#InvalidNextTokenException":
828
- throw await de_InvalidNextTokenExceptionRes(parsedOutput);
829
- case "InvalidTaskIdException":
830
- case "com.amazonaws.polly#InvalidTaskIdException":
831
- throw await de_InvalidTaskIdExceptionRes(parsedOutput);
832
- case "SynthesisTaskNotFoundException":
833
- case "com.amazonaws.polly#SynthesisTaskNotFoundException":
834
- throw await de_SynthesisTaskNotFoundExceptionRes(parsedOutput);
835
- case "InvalidLexiconException":
836
- case "com.amazonaws.polly#InvalidLexiconException":
837
- throw await de_InvalidLexiconExceptionRes(parsedOutput);
838
- case "LexiconSizeExceededException":
839
- case "com.amazonaws.polly#LexiconSizeExceededException":
840
- throw await de_LexiconSizeExceededExceptionRes(parsedOutput);
841
- case "MaxLexemeLengthExceededException":
842
- case "com.amazonaws.polly#MaxLexemeLengthExceededException":
843
- throw await de_MaxLexemeLengthExceededExceptionRes(parsedOutput);
844
- case "MaxLexiconsNumberExceededException":
845
- case "com.amazonaws.polly#MaxLexiconsNumberExceededException":
846
- throw await de_MaxLexiconsNumberExceededExceptionRes(parsedOutput);
847
- case "UnsupportedPlsAlphabetException":
848
- case "com.amazonaws.polly#UnsupportedPlsAlphabetException":
849
- throw await de_UnsupportedPlsAlphabetExceptionRes(parsedOutput);
850
- case "UnsupportedPlsLanguageException":
851
- case "com.amazonaws.polly#UnsupportedPlsLanguageException":
852
- throw await de_UnsupportedPlsLanguageExceptionRes(parsedOutput);
853
- case "EngineNotSupportedException":
854
- case "com.amazonaws.polly#EngineNotSupportedException":
855
- throw await de_EngineNotSupportedExceptionRes(parsedOutput);
856
- case "InvalidS3BucketException":
857
- case "com.amazonaws.polly#InvalidS3BucketException":
858
- throw await de_InvalidS3BucketExceptionRes(parsedOutput);
859
- case "InvalidS3KeyException":
860
- case "com.amazonaws.polly#InvalidS3KeyException":
861
- throw await de_InvalidS3KeyExceptionRes(parsedOutput);
862
- case "InvalidSampleRateException":
863
- case "com.amazonaws.polly#InvalidSampleRateException":
864
- throw await de_InvalidSampleRateExceptionRes(parsedOutput);
865
- case "InvalidSnsTopicArnException":
866
- case "com.amazonaws.polly#InvalidSnsTopicArnException":
867
- throw await de_InvalidSnsTopicArnExceptionRes(parsedOutput);
868
- case "InvalidSsmlException":
869
- case "com.amazonaws.polly#InvalidSsmlException":
870
- throw await de_InvalidSsmlExceptionRes(parsedOutput);
871
- case "LanguageNotSupportedException":
872
- case "com.amazonaws.polly#LanguageNotSupportedException":
873
- throw await de_LanguageNotSupportedExceptionRes(parsedOutput);
874
- case "MarksNotSupportedForFormatException":
875
- case "com.amazonaws.polly#MarksNotSupportedForFormatException":
876
- throw await de_MarksNotSupportedForFormatExceptionRes(parsedOutput);
877
- case "SsmlMarksNotSupportedForTextTypeException":
878
- case "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException":
879
- throw await de_SsmlMarksNotSupportedForTextTypeExceptionRes(parsedOutput);
880
- case "TextLengthExceededException":
881
- case "com.amazonaws.polly#TextLengthExceededException":
882
- throw await de_TextLengthExceededExceptionRes(parsedOutput);
883
- default:
884
- const parsedBody = parsedOutput.body;
885
- return throwDefaultError({
886
- output,
887
- parsedBody,
888
- errorCode,
889
- });
890
- }
891
- };
892
- const throwDefaultError = smithyClient.withBaseException(PollyServiceException);
893
- const de_EngineNotSupportedExceptionRes = async (parsedOutput, context) => {
894
- const contents = smithyClient.map({});
895
- const data = parsedOutput.body;
896
- const doc = smithyClient.take(data, {
897
- message: smithyClient.expectString,
898
- });
899
- Object.assign(contents, doc);
900
- const exception = new EngineNotSupportedException({
901
- $metadata: deserializeMetadata(parsedOutput),
902
- ...contents,
903
- });
904
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
905
- };
906
- const de_InvalidLexiconExceptionRes = 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 InvalidLexiconException({
914
- $metadata: deserializeMetadata(parsedOutput),
915
- ...contents,
916
- });
917
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
918
- };
919
- const de_InvalidNextTokenExceptionRes = 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 InvalidNextTokenException({
927
- $metadata: deserializeMetadata(parsedOutput),
928
- ...contents,
929
- });
930
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
931
- };
932
- const de_InvalidS3BucketExceptionRes = 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 InvalidS3BucketException({
940
- $metadata: deserializeMetadata(parsedOutput),
941
- ...contents,
942
- });
943
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
944
- };
945
- const de_InvalidS3KeyExceptionRes = 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 InvalidS3KeyException({
953
- $metadata: deserializeMetadata(parsedOutput),
954
- ...contents,
955
- });
956
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
957
- };
958
- const de_InvalidSampleRateExceptionRes = 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 InvalidSampleRateException({
966
- $metadata: deserializeMetadata(parsedOutput),
967
- ...contents,
968
- });
969
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
970
- };
971
- const de_InvalidSnsTopicArnExceptionRes = 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 InvalidSnsTopicArnException({
979
- $metadata: deserializeMetadata(parsedOutput),
980
- ...contents,
981
- });
982
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
983
- };
984
- const de_InvalidSsmlExceptionRes = 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 InvalidSsmlException({
992
- $metadata: deserializeMetadata(parsedOutput),
993
- ...contents,
994
- });
995
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
996
- };
997
- const de_InvalidTaskIdExceptionRes = 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 InvalidTaskIdException({
1005
- $metadata: deserializeMetadata(parsedOutput),
1006
- ...contents,
1007
- });
1008
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1009
- };
1010
- const de_LanguageNotSupportedExceptionRes = 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 LanguageNotSupportedException({
1018
- $metadata: deserializeMetadata(parsedOutput),
1019
- ...contents,
1020
- });
1021
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1022
- };
1023
- const de_LexiconNotFoundExceptionRes = async (parsedOutput, context) => {
1024
- const contents = smithyClient.map({});
1025
- const data = parsedOutput.body;
1026
- const doc = smithyClient.take(data, {
1027
- message: smithyClient.expectString,
1028
- });
1029
- Object.assign(contents, doc);
1030
- const exception = new LexiconNotFoundException({
1031
- $metadata: deserializeMetadata(parsedOutput),
1032
- ...contents,
1033
- });
1034
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1035
- };
1036
- const de_LexiconSizeExceededExceptionRes = async (parsedOutput, context) => {
1037
- const contents = smithyClient.map({});
1038
- const data = parsedOutput.body;
1039
- const doc = smithyClient.take(data, {
1040
- message: smithyClient.expectString,
1041
- });
1042
- Object.assign(contents, doc);
1043
- const exception = new LexiconSizeExceededException({
1044
- $metadata: deserializeMetadata(parsedOutput),
1045
- ...contents,
1046
- });
1047
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1048
- };
1049
- const de_MarksNotSupportedForFormatExceptionRes = async (parsedOutput, context) => {
1050
- const contents = smithyClient.map({});
1051
- const data = parsedOutput.body;
1052
- const doc = smithyClient.take(data, {
1053
- message: smithyClient.expectString,
1054
- });
1055
- Object.assign(contents, doc);
1056
- const exception = new MarksNotSupportedForFormatException({
1057
- $metadata: deserializeMetadata(parsedOutput),
1058
- ...contents,
1059
- });
1060
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1061
- };
1062
- const de_MaxLexemeLengthExceededExceptionRes = async (parsedOutput, context) => {
1063
- const contents = smithyClient.map({});
1064
- const data = parsedOutput.body;
1065
- const doc = smithyClient.take(data, {
1066
- message: smithyClient.expectString,
1067
- });
1068
- Object.assign(contents, doc);
1069
- const exception = new MaxLexemeLengthExceededException({
1070
- $metadata: deserializeMetadata(parsedOutput),
1071
- ...contents,
1072
- });
1073
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1074
- };
1075
- const de_MaxLexiconsNumberExceededExceptionRes = async (parsedOutput, context) => {
1076
- const contents = smithyClient.map({});
1077
- const data = parsedOutput.body;
1078
- const doc = smithyClient.take(data, {
1079
- message: smithyClient.expectString,
1080
- });
1081
- Object.assign(contents, doc);
1082
- const exception = new MaxLexiconsNumberExceededException({
1083
- $metadata: deserializeMetadata(parsedOutput),
1084
- ...contents,
1085
- });
1086
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1087
- };
1088
- const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
1089
- const contents = smithyClient.map({});
1090
- const data = parsedOutput.body;
1091
- const doc = smithyClient.take(data, {
1092
- message: smithyClient.expectString,
1093
- });
1094
- Object.assign(contents, doc);
1095
- const exception = new ServiceFailureException({
1096
- $metadata: deserializeMetadata(parsedOutput),
1097
- ...contents,
1098
- });
1099
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1100
- };
1101
- const de_SsmlMarksNotSupportedForTextTypeExceptionRes = async (parsedOutput, context) => {
1102
- const contents = smithyClient.map({});
1103
- const data = parsedOutput.body;
1104
- const doc = smithyClient.take(data, {
1105
- message: smithyClient.expectString,
1106
- });
1107
- Object.assign(contents, doc);
1108
- const exception = new SsmlMarksNotSupportedForTextTypeException({
1109
- $metadata: deserializeMetadata(parsedOutput),
1110
- ...contents,
1111
- });
1112
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1113
- };
1114
- const de_SynthesisTaskNotFoundExceptionRes = async (parsedOutput, context) => {
1115
- const contents = smithyClient.map({});
1116
- const data = parsedOutput.body;
1117
- const doc = smithyClient.take(data, {
1118
- message: smithyClient.expectString,
1119
- });
1120
- Object.assign(contents, doc);
1121
- const exception = new SynthesisTaskNotFoundException({
1122
- $metadata: deserializeMetadata(parsedOutput),
1123
- ...contents,
1124
- });
1125
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1126
- };
1127
- const de_TextLengthExceededExceptionRes = async (parsedOutput, context) => {
1128
- const contents = smithyClient.map({});
1129
- const data = parsedOutput.body;
1130
- const doc = smithyClient.take(data, {
1131
- message: smithyClient.expectString,
1132
- });
1133
- Object.assign(contents, doc);
1134
- const exception = new TextLengthExceededException({
1135
- $metadata: deserializeMetadata(parsedOutput),
1136
- ...contents,
1137
- });
1138
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1139
- };
1140
- const de_UnsupportedPlsAlphabetExceptionRes = async (parsedOutput, context) => {
1141
- const contents = smithyClient.map({});
1142
- const data = parsedOutput.body;
1143
- const doc = smithyClient.take(data, {
1144
- message: smithyClient.expectString,
1145
- });
1146
- Object.assign(contents, doc);
1147
- const exception = new UnsupportedPlsAlphabetException({
1148
- $metadata: deserializeMetadata(parsedOutput),
1149
- ...contents,
1150
- });
1151
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1152
- };
1153
- const de_UnsupportedPlsLanguageExceptionRes = async (parsedOutput, context) => {
1154
- const contents = smithyClient.map({});
1155
- const data = parsedOutput.body;
1156
- const doc = smithyClient.take(data, {
1157
- message: smithyClient.expectString,
1158
- });
1159
- Object.assign(contents, doc);
1160
- const exception = new UnsupportedPlsLanguageException({
1161
- $metadata: deserializeMetadata(parsedOutput),
1162
- ...contents,
1163
- });
1164
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1165
- };
1166
- const de_LexiconAttributes = (output, context) => {
1167
- return smithyClient.take(output, {
1168
- Alphabet: smithyClient.expectString,
1169
- LanguageCode: smithyClient.expectString,
1170
- LastModified: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1171
- LexemesCount: smithyClient.expectInt32,
1172
- LexiconArn: smithyClient.expectString,
1173
- Size: smithyClient.expectInt32,
1174
- });
1175
- };
1176
- const de_LexiconDescription = (output, context) => {
1177
- return smithyClient.take(output, {
1178
- Attributes: (_) => de_LexiconAttributes(_),
1179
- Name: smithyClient.expectString,
1180
- });
1181
- };
1182
- const de_LexiconDescriptionList = (output, context) => {
1183
- const retVal = (output || [])
1184
- .filter((e) => e != null)
1185
- .map((entry) => {
1186
- return de_LexiconDescription(entry);
1187
- });
1188
- return retVal;
1189
- };
1190
- const de_SynthesisTask = (output, context) => {
1191
- return smithyClient.take(output, {
1192
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1193
- Engine: smithyClient.expectString,
1194
- LanguageCode: smithyClient.expectString,
1195
- LexiconNames: smithyClient._json,
1196
- OutputFormat: smithyClient.expectString,
1197
- OutputUri: smithyClient.expectString,
1198
- RequestCharacters: smithyClient.expectInt32,
1199
- SampleRate: smithyClient.expectString,
1200
- SnsTopicArn: smithyClient.expectString,
1201
- SpeechMarkTypes: smithyClient._json,
1202
- TaskId: smithyClient.expectString,
1203
- TaskStatus: smithyClient.expectString,
1204
- TaskStatusReason: smithyClient.expectString,
1205
- TextType: smithyClient.expectString,
1206
- VoiceId: smithyClient.expectString,
1207
- });
1208
- };
1209
- const de_SynthesisTasks = (output, context) => {
1210
- const retVal = (output || [])
1211
- .filter((e) => e != null)
1212
- .map((entry) => {
1213
- return de_SynthesisTask(entry);
1214
- });
1215
- return retVal;
1216
- };
1217
- const deserializeMetadata = (output) => ({
1218
- httpStatusCode: output.statusCode,
1219
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1220
- extendedRequestId: output.headers["x-amz-id-2"],
1221
- cfId: output.headers["x-amz-cf-id"],
1222
- });
1223
- const _CT = "ContentType";
551
+
552
+ const _A = "Alphabet";
553
+ const _ALC = "AdditionalLanguageCodes";
554
+ const _AS = "AudioStream";
555
+ const _At = "Attributes";
556
+ const _C = "Content";
557
+ const _CT = "CreationTime";
558
+ const _CT_ = "Content-Type";
559
+ const _CTo = "ContentType";
560
+ const _DL = "DeleteLexicon";
561
+ const _DLI = "DeleteLexiconInput";
562
+ const _DLO = "DeleteLexiconOutput";
563
+ const _DV = "DescribeVoices";
564
+ const _DVI = "DescribeVoicesInput";
565
+ const _DVO = "DescribeVoicesOutput";
1224
566
  const _E = "Engine";
567
+ const _ENSE = "EngineNotSupportedException";
568
+ const _G = "Gender";
569
+ const _GL = "GetLexicon";
570
+ const _GLI = "GetLexiconInput";
571
+ const _GLO = "GetLexiconOutput";
572
+ const _GSST = "GetSpeechSynthesisTask";
573
+ const _GSSTI = "GetSpeechSynthesisTaskInput";
574
+ const _GSSTO = "GetSpeechSynthesisTaskOutput";
575
+ const _I = "Id";
1225
576
  const _IALC = "IncludeAdditionalLanguageCodes";
1226
- const _LC = "LanguageCode";
577
+ const _ILE = "InvalidLexiconException";
578
+ const _INTE = "InvalidNextTokenException";
579
+ const _ISBE = "InvalidS3BucketException";
580
+ const _ISE = "InvalidSsmlException";
581
+ const _ISKE = "InvalidS3KeyException";
582
+ const _ISRE = "InvalidSampleRateException";
583
+ const _ISTAE = "InvalidSnsTopicArnException";
584
+ const _ITIE = "InvalidTaskIdException";
585
+ const _L = "Lexicon";
586
+ const _LA = "LexiconAttributes";
587
+ const _LAe = "LexiconArn";
588
+ const _LC = "LexiconContent";
589
+ const _LCa = "LanguageCode";
590
+ const _LCe = "LexemesCount";
591
+ const _LD = "LexiconDescription";
592
+ const _LDL = "LexiconDescriptionList";
593
+ const _LL = "ListLexicons";
594
+ const _LLI = "ListLexiconsInput";
595
+ const _LLO = "ListLexiconsOutput";
596
+ const _LM = "LastModified";
597
+ const _LN = "LexiconNames";
598
+ const _LNFE = "LexiconNotFoundException";
599
+ const _LNSE = "LanguageNotSupportedException";
600
+ const _LNa = "LanguageName";
601
+ const _LSEE = "LexiconSizeExceededException";
602
+ const _LSST = "ListSpeechSynthesisTasks";
603
+ const _LSSTI = "ListSpeechSynthesisTasksInput";
604
+ const _LSSTO = "ListSpeechSynthesisTasksOutput";
605
+ const _Le = "Lexicons";
606
+ const _MLLEE = "MaxLexemeLengthExceededException";
607
+ const _MLNEE = "MaxLexiconsNumberExceededException";
608
+ const _MNSFFE = "MarksNotSupportedForFormatException";
1227
609
  const _MR = "MaxResults";
610
+ const _N = "Name";
1228
611
  const _NT = "NextToken";
612
+ const _OF = "OutputFormat";
613
+ const _OSBN = "OutputS3BucketName";
614
+ const _OSKP = "OutputS3KeyPrefix";
615
+ const _OU = "OutputUri";
616
+ const _PL = "PutLexicon";
617
+ const _PLI = "PutLexiconInput";
618
+ const _PLO = "PutLexiconOutput";
1229
619
  const _RC = "RequestCharacters";
1230
- const _S = "Status";
1231
- const _ct = "content-type";
1232
- const _xar = "x-amzn-requestcharacters";
620
+ const _S = "Size";
621
+ const _SE = "SupportedEngines";
622
+ const _SFE = "ServiceFailureException";
623
+ const _SMNSFTTE = "SsmlMarksNotSupportedForTextTypeException";
624
+ const _SMT = "SpeechMarkTypes";
625
+ const _SR = "SampleRate";
626
+ const _SS = "SynthesizeSpeech";
627
+ const _SSI = "SynthesizeSpeechInput";
628
+ const _SSO = "SynthesizeSpeechOutput";
629
+ const _SSST = "StartSpeechSynthesisTask";
630
+ const _SSSTI = "StartSpeechSynthesisTaskInput";
631
+ const _SSSTO = "StartSpeechSynthesisTaskOutput";
632
+ const _ST = "SynthesisTask";
633
+ const _STA = "SnsTopicArn";
634
+ const _STNFE = "SynthesisTaskNotFoundException";
635
+ const _STy = "SynthesisTasks";
636
+ const _St = "Status";
637
+ const _T = "Text";
638
+ const _TI = "TaskId";
639
+ const _TLEE = "TextLengthExceededException";
640
+ const _TS = "TaskStatus";
641
+ const _TSR = "TaskStatusReason";
642
+ const _TT = "TextType";
643
+ const _UPAE = "UnsupportedPlsAlphabetException";
644
+ const _UPLE = "UnsupportedPlsLanguageException";
645
+ const _V = "Voices";
646
+ const _VI = "VoiceId";
647
+ const _VL = "VoiceList";
648
+ const _Vo = "Voice";
649
+ const _c = "client";
650
+ const _e = "error";
651
+ const _h = "http";
652
+ const _hE = "httpError";
653
+ const _hH = "httpHeader";
654
+ const _hQ = "httpQuery";
655
+ const _m = "message";
656
+ const _s = "streaming";
657
+ const _se = "server";
658
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
659
+ const _xaR = "x-amzn-RequestCharacters";
660
+ const n0 = "com.amazonaws.polly";
661
+ var AudioStream = [
662
+ 0,
663
+ n0,
664
+ _AS,
665
+ {
666
+ [_s]: 1,
667
+ },
668
+ 42,
669
+ ];
670
+ var LexiconContent = [0, n0, _LC, 8, 0];
671
+ var DeleteLexiconInput = [3, n0, _DLI, 0, [_N], [[0, 1]]];
672
+ var DeleteLexiconOutput = [3, n0, _DLO, 0, [], []];
673
+ var DescribeVoicesInput = [
674
+ 3,
675
+ n0,
676
+ _DVI,
677
+ 0,
678
+ [_E, _LCa, _IALC, _NT],
679
+ [
680
+ [
681
+ 0,
682
+ {
683
+ [_hQ]: _E,
684
+ },
685
+ ],
686
+ [
687
+ 0,
688
+ {
689
+ [_hQ]: _LCa,
690
+ },
691
+ ],
692
+ [
693
+ 2,
694
+ {
695
+ [_hQ]: _IALC,
696
+ },
697
+ ],
698
+ [
699
+ 0,
700
+ {
701
+ [_hQ]: _NT,
702
+ },
703
+ ],
704
+ ],
705
+ ];
706
+ var DescribeVoicesOutput = [3, n0, _DVO, 0, [_V, _NT], [() => VoiceList, 0]];
707
+ var EngineNotSupportedException = [
708
+ -3,
709
+ n0,
710
+ _ENSE,
711
+ {
712
+ [_e]: _c,
713
+ [_hE]: 400,
714
+ },
715
+ [_m],
716
+ [0],
717
+ ];
718
+ schema.TypeRegistry.for(n0).registerError(EngineNotSupportedException, EngineNotSupportedException$1);
719
+ var GetLexiconInput = [3, n0, _GLI, 0, [_N], [[0, 1]]];
720
+ var GetLexiconOutput = [
721
+ 3,
722
+ n0,
723
+ _GLO,
724
+ 0,
725
+ [_L, _LA],
726
+ [[() => Lexicon, 0], () => LexiconAttributes],
727
+ ];
728
+ var GetSpeechSynthesisTaskInput = [3, n0, _GSSTI, 0, [_TI], [[0, 1]]];
729
+ var GetSpeechSynthesisTaskOutput = [3, n0, _GSSTO, 0, [_ST], [() => SynthesisTask]];
730
+ var InvalidLexiconException = [
731
+ -3,
732
+ n0,
733
+ _ILE,
734
+ {
735
+ [_e]: _c,
736
+ [_hE]: 400,
737
+ },
738
+ [_m],
739
+ [0],
740
+ ];
741
+ schema.TypeRegistry.for(n0).registerError(InvalidLexiconException, InvalidLexiconException$1);
742
+ var InvalidNextTokenException = [
743
+ -3,
744
+ n0,
745
+ _INTE,
746
+ {
747
+ [_e]: _c,
748
+ [_hE]: 400,
749
+ },
750
+ [_m],
751
+ [0],
752
+ ];
753
+ schema.TypeRegistry.for(n0).registerError(InvalidNextTokenException, InvalidNextTokenException$1);
754
+ var InvalidS3BucketException = [
755
+ -3,
756
+ n0,
757
+ _ISBE,
758
+ {
759
+ [_e]: _c,
760
+ [_hE]: 400,
761
+ },
762
+ [_m],
763
+ [0],
764
+ ];
765
+ schema.TypeRegistry.for(n0).registerError(InvalidS3BucketException, InvalidS3BucketException$1);
766
+ var InvalidS3KeyException = [
767
+ -3,
768
+ n0,
769
+ _ISKE,
770
+ {
771
+ [_e]: _c,
772
+ [_hE]: 400,
773
+ },
774
+ [_m],
775
+ [0],
776
+ ];
777
+ schema.TypeRegistry.for(n0).registerError(InvalidS3KeyException, InvalidS3KeyException$1);
778
+ var InvalidSampleRateException = [
779
+ -3,
780
+ n0,
781
+ _ISRE,
782
+ {
783
+ [_e]: _c,
784
+ [_hE]: 400,
785
+ },
786
+ [_m],
787
+ [0],
788
+ ];
789
+ schema.TypeRegistry.for(n0).registerError(InvalidSampleRateException, InvalidSampleRateException$1);
790
+ var InvalidSnsTopicArnException = [
791
+ -3,
792
+ n0,
793
+ _ISTAE,
794
+ {
795
+ [_e]: _c,
796
+ [_hE]: 400,
797
+ },
798
+ [_m],
799
+ [0],
800
+ ];
801
+ schema.TypeRegistry.for(n0).registerError(InvalidSnsTopicArnException, InvalidSnsTopicArnException$1);
802
+ var InvalidSsmlException = [
803
+ -3,
804
+ n0,
805
+ _ISE,
806
+ {
807
+ [_e]: _c,
808
+ [_hE]: 400,
809
+ },
810
+ [_m],
811
+ [0],
812
+ ];
813
+ schema.TypeRegistry.for(n0).registerError(InvalidSsmlException, InvalidSsmlException$1);
814
+ var InvalidTaskIdException = [
815
+ -3,
816
+ n0,
817
+ _ITIE,
818
+ {
819
+ [_e]: _c,
820
+ [_hE]: 400,
821
+ },
822
+ [_m],
823
+ [0],
824
+ ];
825
+ schema.TypeRegistry.for(n0).registerError(InvalidTaskIdException, InvalidTaskIdException$1);
826
+ var LanguageNotSupportedException = [
827
+ -3,
828
+ n0,
829
+ _LNSE,
830
+ {
831
+ [_e]: _c,
832
+ [_hE]: 400,
833
+ },
834
+ [_m],
835
+ [0],
836
+ ];
837
+ schema.TypeRegistry.for(n0).registerError(LanguageNotSupportedException, LanguageNotSupportedException$1);
838
+ var Lexicon = [3, n0, _L, 0, [_C, _N], [[() => LexiconContent, 0], 0]];
839
+ var LexiconAttributes = [
840
+ 3,
841
+ n0,
842
+ _LA,
843
+ 0,
844
+ [_A, _LCa, _LM, _LAe, _LCe, _S],
845
+ [0, 0, 4, 0, 1, 1],
846
+ ];
847
+ var LexiconDescription = [3, n0, _LD, 0, [_N, _At], [0, () => LexiconAttributes]];
848
+ var LexiconNotFoundException = [
849
+ -3,
850
+ n0,
851
+ _LNFE,
852
+ {
853
+ [_e]: _c,
854
+ [_hE]: 404,
855
+ },
856
+ [_m],
857
+ [0],
858
+ ];
859
+ schema.TypeRegistry.for(n0).registerError(LexiconNotFoundException, LexiconNotFoundException$1);
860
+ var LexiconSizeExceededException = [
861
+ -3,
862
+ n0,
863
+ _LSEE,
864
+ {
865
+ [_e]: _c,
866
+ [_hE]: 400,
867
+ },
868
+ [_m],
869
+ [0],
870
+ ];
871
+ schema.TypeRegistry.for(n0).registerError(LexiconSizeExceededException, LexiconSizeExceededException$1);
872
+ var ListLexiconsInput = [
873
+ 3,
874
+ n0,
875
+ _LLI,
876
+ 0,
877
+ [_NT],
878
+ [
879
+ [
880
+ 0,
881
+ {
882
+ [_hQ]: _NT,
883
+ },
884
+ ],
885
+ ],
886
+ ];
887
+ var ListLexiconsOutput = [3, n0, _LLO, 0, [_Le, _NT], [() => LexiconDescriptionList, 0]];
888
+ var ListSpeechSynthesisTasksInput = [
889
+ 3,
890
+ n0,
891
+ _LSSTI,
892
+ 0,
893
+ [_MR, _NT, _St],
894
+ [
895
+ [
896
+ 1,
897
+ {
898
+ [_hQ]: _MR,
899
+ },
900
+ ],
901
+ [
902
+ 0,
903
+ {
904
+ [_hQ]: _NT,
905
+ },
906
+ ],
907
+ [
908
+ 0,
909
+ {
910
+ [_hQ]: _St,
911
+ },
912
+ ],
913
+ ],
914
+ ];
915
+ var ListSpeechSynthesisTasksOutput = [
916
+ 3,
917
+ n0,
918
+ _LSSTO,
919
+ 0,
920
+ [_NT, _STy],
921
+ [0, () => SynthesisTasks],
922
+ ];
923
+ var MarksNotSupportedForFormatException = [
924
+ -3,
925
+ n0,
926
+ _MNSFFE,
927
+ {
928
+ [_e]: _c,
929
+ [_hE]: 400,
930
+ },
931
+ [_m],
932
+ [0],
933
+ ];
934
+ schema.TypeRegistry.for(n0).registerError(MarksNotSupportedForFormatException, MarksNotSupportedForFormatException$1);
935
+ var MaxLexemeLengthExceededException = [
936
+ -3,
937
+ n0,
938
+ _MLLEE,
939
+ {
940
+ [_e]: _c,
941
+ [_hE]: 400,
942
+ },
943
+ [_m],
944
+ [0],
945
+ ];
946
+ schema.TypeRegistry.for(n0).registerError(MaxLexemeLengthExceededException, MaxLexemeLengthExceededException$1);
947
+ var MaxLexiconsNumberExceededException = [
948
+ -3,
949
+ n0,
950
+ _MLNEE,
951
+ {
952
+ [_e]: _c,
953
+ [_hE]: 400,
954
+ },
955
+ [_m],
956
+ [0],
957
+ ];
958
+ schema.TypeRegistry.for(n0).registerError(MaxLexiconsNumberExceededException, MaxLexiconsNumberExceededException$1);
959
+ var PutLexiconInput = [
960
+ 3,
961
+ n0,
962
+ _PLI,
963
+ 0,
964
+ [_N, _C],
965
+ [
966
+ [0, 1],
967
+ [() => LexiconContent, 0],
968
+ ],
969
+ ];
970
+ var PutLexiconOutput = [3, n0, _PLO, 0, [], []];
971
+ var ServiceFailureException = [
972
+ -3,
973
+ n0,
974
+ _SFE,
975
+ {
976
+ [_e]: _se,
977
+ [_hE]: 500,
978
+ },
979
+ [_m],
980
+ [0],
981
+ ];
982
+ schema.TypeRegistry.for(n0).registerError(ServiceFailureException, ServiceFailureException$1);
983
+ var SsmlMarksNotSupportedForTextTypeException = [
984
+ -3,
985
+ n0,
986
+ _SMNSFTTE,
987
+ {
988
+ [_e]: _c,
989
+ [_hE]: 400,
990
+ },
991
+ [_m],
992
+ [0],
993
+ ];
994
+ schema.TypeRegistry.for(n0).registerError(SsmlMarksNotSupportedForTextTypeException, SsmlMarksNotSupportedForTextTypeException$1);
995
+ var StartSpeechSynthesisTaskInput = [
996
+ 3,
997
+ n0,
998
+ _SSSTI,
999
+ 0,
1000
+ [_E, _LCa, _LN, _OF, _OSBN, _OSKP, _SR, _STA, _SMT, _T, _TT, _VI],
1001
+ [0, 0, 64 | 0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0],
1002
+ ];
1003
+ var StartSpeechSynthesisTaskOutput = [3, n0, _SSSTO, 0, [_ST], [() => SynthesisTask]];
1004
+ var SynthesisTask = [
1005
+ 3,
1006
+ n0,
1007
+ _ST,
1008
+ 0,
1009
+ [_E, _TI, _TS, _TSR, _OU, _CT, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],
1010
+ [0, 0, 0, 0, 0, 4, 1, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0],
1011
+ ];
1012
+ var SynthesisTaskNotFoundException = [
1013
+ -3,
1014
+ n0,
1015
+ _STNFE,
1016
+ {
1017
+ [_e]: _c,
1018
+ [_hE]: 400,
1019
+ },
1020
+ [_m],
1021
+ [0],
1022
+ ];
1023
+ schema.TypeRegistry.for(n0).registerError(SynthesisTaskNotFoundException, SynthesisTaskNotFoundException$1);
1024
+ var SynthesizeSpeechInput = [
1025
+ 3,
1026
+ n0,
1027
+ _SSI,
1028
+ 0,
1029
+ [_E, _LCa, _LN, _OF, _SR, _SMT, _T, _TT, _VI],
1030
+ [0, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0],
1031
+ ];
1032
+ var SynthesizeSpeechOutput = [
1033
+ 3,
1034
+ n0,
1035
+ _SSO,
1036
+ 0,
1037
+ [_AS, _CTo, _RC],
1038
+ [
1039
+ [() => AudioStream, 16],
1040
+ [
1041
+ 0,
1042
+ {
1043
+ [_hH]: _CT_,
1044
+ },
1045
+ ],
1046
+ [
1047
+ 1,
1048
+ {
1049
+ [_hH]: _xaR,
1050
+ },
1051
+ ],
1052
+ ],
1053
+ ];
1054
+ var TextLengthExceededException = [
1055
+ -3,
1056
+ n0,
1057
+ _TLEE,
1058
+ {
1059
+ [_e]: _c,
1060
+ [_hE]: 400,
1061
+ },
1062
+ [_m],
1063
+ [0],
1064
+ ];
1065
+ schema.TypeRegistry.for(n0).registerError(TextLengthExceededException, TextLengthExceededException$1);
1066
+ var UnsupportedPlsAlphabetException = [
1067
+ -3,
1068
+ n0,
1069
+ _UPAE,
1070
+ {
1071
+ [_e]: _c,
1072
+ [_hE]: 400,
1073
+ },
1074
+ [_m],
1075
+ [0],
1076
+ ];
1077
+ schema.TypeRegistry.for(n0).registerError(UnsupportedPlsAlphabetException, UnsupportedPlsAlphabetException$1);
1078
+ var UnsupportedPlsLanguageException = [
1079
+ -3,
1080
+ n0,
1081
+ _UPLE,
1082
+ {
1083
+ [_e]: _c,
1084
+ [_hE]: 400,
1085
+ },
1086
+ [_m],
1087
+ [0],
1088
+ ];
1089
+ schema.TypeRegistry.for(n0).registerError(UnsupportedPlsLanguageException, UnsupportedPlsLanguageException$1);
1090
+ var Voice = [
1091
+ 3,
1092
+ n0,
1093
+ _Vo,
1094
+ 0,
1095
+ [_G, _I, _LCa, _LNa, _N, _ALC, _SE],
1096
+ [0, 0, 0, 0, 0, 64 | 0, 64 | 0],
1097
+ ];
1098
+ var PollyServiceException = [-3, _sm, "PollyServiceException", 0, [], []];
1099
+ schema.TypeRegistry.for(_sm).registerError(PollyServiceException, PollyServiceException$1);
1100
+ var LexiconDescriptionList = [1, n0, _LDL, 0, () => LexiconDescription];
1101
+ var SynthesisTasks = [1, n0, _STy, 0, () => SynthesisTask];
1102
+ var VoiceList = [1, n0, _VL, 0, () => Voice];
1103
+ var DeleteLexicon = [
1104
+ 9,
1105
+ n0,
1106
+ _DL,
1107
+ {
1108
+ [_h]: ["DELETE", "/v1/lexicons/{Name}", 200],
1109
+ },
1110
+ () => DeleteLexiconInput,
1111
+ () => DeleteLexiconOutput,
1112
+ ];
1113
+ var DescribeVoices = [
1114
+ 9,
1115
+ n0,
1116
+ _DV,
1117
+ {
1118
+ [_h]: ["GET", "/v1/voices", 200],
1119
+ },
1120
+ () => DescribeVoicesInput,
1121
+ () => DescribeVoicesOutput,
1122
+ ];
1123
+ var GetLexicon = [
1124
+ 9,
1125
+ n0,
1126
+ _GL,
1127
+ {
1128
+ [_h]: ["GET", "/v1/lexicons/{Name}", 200],
1129
+ },
1130
+ () => GetLexiconInput,
1131
+ () => GetLexiconOutput,
1132
+ ];
1133
+ var GetSpeechSynthesisTask = [
1134
+ 9,
1135
+ n0,
1136
+ _GSST,
1137
+ {
1138
+ [_h]: ["GET", "/v1/synthesisTasks/{TaskId}", 200],
1139
+ },
1140
+ () => GetSpeechSynthesisTaskInput,
1141
+ () => GetSpeechSynthesisTaskOutput,
1142
+ ];
1143
+ var ListLexicons = [
1144
+ 9,
1145
+ n0,
1146
+ _LL,
1147
+ {
1148
+ [_h]: ["GET", "/v1/lexicons", 200],
1149
+ },
1150
+ () => ListLexiconsInput,
1151
+ () => ListLexiconsOutput,
1152
+ ];
1153
+ var ListSpeechSynthesisTasks = [
1154
+ 9,
1155
+ n0,
1156
+ _LSST,
1157
+ {
1158
+ [_h]: ["GET", "/v1/synthesisTasks", 200],
1159
+ },
1160
+ () => ListSpeechSynthesisTasksInput,
1161
+ () => ListSpeechSynthesisTasksOutput,
1162
+ ];
1163
+ var PutLexicon = [
1164
+ 9,
1165
+ n0,
1166
+ _PL,
1167
+ {
1168
+ [_h]: ["PUT", "/v1/lexicons/{Name}", 200],
1169
+ },
1170
+ () => PutLexiconInput,
1171
+ () => PutLexiconOutput,
1172
+ ];
1173
+ var StartSpeechSynthesisTask = [
1174
+ 9,
1175
+ n0,
1176
+ _SSST,
1177
+ {
1178
+ [_h]: ["POST", "/v1/synthesisTasks", 200],
1179
+ },
1180
+ () => StartSpeechSynthesisTaskInput,
1181
+ () => StartSpeechSynthesisTaskOutput,
1182
+ ];
1183
+ var SynthesizeSpeech = [
1184
+ 9,
1185
+ n0,
1186
+ _SS,
1187
+ {
1188
+ [_h]: ["POST", "/v1/speech", 200],
1189
+ },
1190
+ () => SynthesizeSpeechInput,
1191
+ () => SynthesizeSpeechOutput,
1192
+ ];
1233
1193
 
1234
1194
  class DeleteLexiconCommand extends smithyClient.Command
1235
1195
  .classBuilder()
1236
1196
  .ep(commonParams)
1237
1197
  .m(function (Command, cs, config, o) {
1238
- return [
1239
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1240
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1241
- ];
1198
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1242
1199
  })
1243
1200
  .s("Parrot_v1", "DeleteLexicon", {})
1244
1201
  .n("PollyClient", "DeleteLexiconCommand")
1245
- .f(void 0, void 0)
1246
- .ser(se_DeleteLexiconCommand)
1247
- .de(de_DeleteLexiconCommand)
1202
+ .sc(DeleteLexicon)
1248
1203
  .build() {
1249
1204
  }
1250
1205
 
@@ -1252,16 +1207,11 @@ class DescribeVoicesCommand extends smithyClient.Command
1252
1207
  .classBuilder()
1253
1208
  .ep(commonParams)
1254
1209
  .m(function (Command, cs, config, o) {
1255
- return [
1256
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1257
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1258
- ];
1210
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1259
1211
  })
1260
1212
  .s("Parrot_v1", "DescribeVoices", {})
1261
1213
  .n("PollyClient", "DescribeVoicesCommand")
1262
- .f(void 0, void 0)
1263
- .ser(se_DescribeVoicesCommand)
1264
- .de(de_DescribeVoicesCommand)
1214
+ .sc(DescribeVoices)
1265
1215
  .build() {
1266
1216
  }
1267
1217
 
@@ -1269,16 +1219,11 @@ class GetLexiconCommand extends smithyClient.Command
1269
1219
  .classBuilder()
1270
1220
  .ep(commonParams)
1271
1221
  .m(function (Command, cs, config, o) {
1272
- return [
1273
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1274
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1275
- ];
1222
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1276
1223
  })
1277
1224
  .s("Parrot_v1", "GetLexicon", {})
1278
1225
  .n("PollyClient", "GetLexiconCommand")
1279
- .f(void 0, GetLexiconOutputFilterSensitiveLog)
1280
- .ser(se_GetLexiconCommand)
1281
- .de(de_GetLexiconCommand)
1226
+ .sc(GetLexicon)
1282
1227
  .build() {
1283
1228
  }
1284
1229
 
@@ -1286,16 +1231,11 @@ class GetSpeechSynthesisTaskCommand extends smithyClient.Command
1286
1231
  .classBuilder()
1287
1232
  .ep(commonParams)
1288
1233
  .m(function (Command, cs, config, o) {
1289
- return [
1290
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1291
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1292
- ];
1234
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1293
1235
  })
1294
1236
  .s("Parrot_v1", "GetSpeechSynthesisTask", {})
1295
1237
  .n("PollyClient", "GetSpeechSynthesisTaskCommand")
1296
- .f(void 0, void 0)
1297
- .ser(se_GetSpeechSynthesisTaskCommand)
1298
- .de(de_GetSpeechSynthesisTaskCommand)
1238
+ .sc(GetSpeechSynthesisTask)
1299
1239
  .build() {
1300
1240
  }
1301
1241
 
@@ -1303,16 +1243,11 @@ class ListLexiconsCommand extends smithyClient.Command
1303
1243
  .classBuilder()
1304
1244
  .ep(commonParams)
1305
1245
  .m(function (Command, cs, config, o) {
1306
- return [
1307
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1308
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1309
- ];
1246
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1310
1247
  })
1311
1248
  .s("Parrot_v1", "ListLexicons", {})
1312
1249
  .n("PollyClient", "ListLexiconsCommand")
1313
- .f(void 0, void 0)
1314
- .ser(se_ListLexiconsCommand)
1315
- .de(de_ListLexiconsCommand)
1250
+ .sc(ListLexicons)
1316
1251
  .build() {
1317
1252
  }
1318
1253
 
@@ -1320,16 +1255,11 @@ class ListSpeechSynthesisTasksCommand extends smithyClient.Command
1320
1255
  .classBuilder()
1321
1256
  .ep(commonParams)
1322
1257
  .m(function (Command, cs, config, o) {
1323
- return [
1324
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1325
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1326
- ];
1258
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1327
1259
  })
1328
1260
  .s("Parrot_v1", "ListSpeechSynthesisTasks", {})
1329
1261
  .n("PollyClient", "ListSpeechSynthesisTasksCommand")
1330
- .f(void 0, void 0)
1331
- .ser(se_ListSpeechSynthesisTasksCommand)
1332
- .de(de_ListSpeechSynthesisTasksCommand)
1262
+ .sc(ListSpeechSynthesisTasks)
1333
1263
  .build() {
1334
1264
  }
1335
1265
 
@@ -1337,16 +1267,11 @@ class PutLexiconCommand extends smithyClient.Command
1337
1267
  .classBuilder()
1338
1268
  .ep(commonParams)
1339
1269
  .m(function (Command, cs, config, o) {
1340
- return [
1341
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1342
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1343
- ];
1270
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1344
1271
  })
1345
1272
  .s("Parrot_v1", "PutLexicon", {})
1346
1273
  .n("PollyClient", "PutLexiconCommand")
1347
- .f(PutLexiconInputFilterSensitiveLog, void 0)
1348
- .ser(se_PutLexiconCommand)
1349
- .de(de_PutLexiconCommand)
1274
+ .sc(PutLexicon)
1350
1275
  .build() {
1351
1276
  }
1352
1277
 
@@ -1354,16 +1279,11 @@ class StartSpeechSynthesisTaskCommand extends smithyClient.Command
1354
1279
  .classBuilder()
1355
1280
  .ep(commonParams)
1356
1281
  .m(function (Command, cs, config, o) {
1357
- return [
1358
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1359
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1360
- ];
1282
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1361
1283
  })
1362
1284
  .s("Parrot_v1", "StartSpeechSynthesisTask", {})
1363
1285
  .n("PollyClient", "StartSpeechSynthesisTaskCommand")
1364
- .f(void 0, void 0)
1365
- .ser(se_StartSpeechSynthesisTaskCommand)
1366
- .de(de_StartSpeechSynthesisTaskCommand)
1286
+ .sc(StartSpeechSynthesisTask)
1367
1287
  .build() {
1368
1288
  }
1369
1289
 
@@ -1371,16 +1291,11 @@ class SynthesizeSpeechCommand extends smithyClient.Command
1371
1291
  .classBuilder()
1372
1292
  .ep(commonParams)
1373
1293
  .m(function (Command, cs, config, o) {
1374
- return [
1375
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1376
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1377
- ];
1294
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1378
1295
  })
1379
1296
  .s("Parrot_v1", "SynthesizeSpeech", {})
1380
1297
  .n("PollyClient", "SynthesizeSpeechCommand")
1381
- .f(void 0, SynthesizeSpeechOutputFilterSensitiveLog)
1382
- .ser(se_SynthesizeSpeechCommand)
1383
- .de(de_SynthesizeSpeechCommand)
1298
+ .sc(SynthesizeSpeech)
1384
1299
  .build() {
1385
1300
  }
1386
1301
 
@@ -1412,46 +1327,42 @@ Object.defineProperty(exports, "__Client", {
1412
1327
  exports.DeleteLexiconCommand = DeleteLexiconCommand;
1413
1328
  exports.DescribeVoicesCommand = DescribeVoicesCommand;
1414
1329
  exports.Engine = Engine;
1415
- exports.EngineNotSupportedException = EngineNotSupportedException;
1330
+ exports.EngineNotSupportedException = EngineNotSupportedException$1;
1416
1331
  exports.Gender = Gender;
1417
1332
  exports.GetLexiconCommand = GetLexiconCommand;
1418
- exports.GetLexiconOutputFilterSensitiveLog = GetLexiconOutputFilterSensitiveLog;
1419
1333
  exports.GetSpeechSynthesisTaskCommand = GetSpeechSynthesisTaskCommand;
1420
- exports.InvalidLexiconException = InvalidLexiconException;
1421
- exports.InvalidNextTokenException = InvalidNextTokenException;
1422
- exports.InvalidS3BucketException = InvalidS3BucketException;
1423
- exports.InvalidS3KeyException = InvalidS3KeyException;
1424
- exports.InvalidSampleRateException = InvalidSampleRateException;
1425
- exports.InvalidSnsTopicArnException = InvalidSnsTopicArnException;
1426
- exports.InvalidSsmlException = InvalidSsmlException;
1427
- exports.InvalidTaskIdException = InvalidTaskIdException;
1334
+ exports.InvalidLexiconException = InvalidLexiconException$1;
1335
+ exports.InvalidNextTokenException = InvalidNextTokenException$1;
1336
+ exports.InvalidS3BucketException = InvalidS3BucketException$1;
1337
+ exports.InvalidS3KeyException = InvalidS3KeyException$1;
1338
+ exports.InvalidSampleRateException = InvalidSampleRateException$1;
1339
+ exports.InvalidSnsTopicArnException = InvalidSnsTopicArnException$1;
1340
+ exports.InvalidSsmlException = InvalidSsmlException$1;
1341
+ exports.InvalidTaskIdException = InvalidTaskIdException$1;
1428
1342
  exports.LanguageCode = LanguageCode;
1429
- exports.LanguageNotSupportedException = LanguageNotSupportedException;
1430
- exports.LexiconFilterSensitiveLog = LexiconFilterSensitiveLog;
1431
- exports.LexiconNotFoundException = LexiconNotFoundException;
1432
- exports.LexiconSizeExceededException = LexiconSizeExceededException;
1343
+ exports.LanguageNotSupportedException = LanguageNotSupportedException$1;
1344
+ exports.LexiconNotFoundException = LexiconNotFoundException$1;
1345
+ exports.LexiconSizeExceededException = LexiconSizeExceededException$1;
1433
1346
  exports.ListLexiconsCommand = ListLexiconsCommand;
1434
1347
  exports.ListSpeechSynthesisTasksCommand = ListSpeechSynthesisTasksCommand;
1435
- exports.MarksNotSupportedForFormatException = MarksNotSupportedForFormatException;
1436
- exports.MaxLexemeLengthExceededException = MaxLexemeLengthExceededException;
1437
- exports.MaxLexiconsNumberExceededException = MaxLexiconsNumberExceededException;
1348
+ exports.MarksNotSupportedForFormatException = MarksNotSupportedForFormatException$1;
1349
+ exports.MaxLexemeLengthExceededException = MaxLexemeLengthExceededException$1;
1350
+ exports.MaxLexiconsNumberExceededException = MaxLexiconsNumberExceededException$1;
1438
1351
  exports.OutputFormat = OutputFormat;
1439
1352
  exports.Polly = Polly;
1440
1353
  exports.PollyClient = PollyClient;
1441
- exports.PollyServiceException = PollyServiceException;
1354
+ exports.PollyServiceException = PollyServiceException$1;
1442
1355
  exports.PutLexiconCommand = PutLexiconCommand;
1443
- exports.PutLexiconInputFilterSensitiveLog = PutLexiconInputFilterSensitiveLog;
1444
- exports.ServiceFailureException = ServiceFailureException;
1356
+ exports.ServiceFailureException = ServiceFailureException$1;
1445
1357
  exports.SpeechMarkType = SpeechMarkType;
1446
- exports.SsmlMarksNotSupportedForTextTypeException = SsmlMarksNotSupportedForTextTypeException;
1358
+ exports.SsmlMarksNotSupportedForTextTypeException = SsmlMarksNotSupportedForTextTypeException$1;
1447
1359
  exports.StartSpeechSynthesisTaskCommand = StartSpeechSynthesisTaskCommand;
1448
- exports.SynthesisTaskNotFoundException = SynthesisTaskNotFoundException;
1360
+ exports.SynthesisTaskNotFoundException = SynthesisTaskNotFoundException$1;
1449
1361
  exports.SynthesizeSpeechCommand = SynthesizeSpeechCommand;
1450
- exports.SynthesizeSpeechOutputFilterSensitiveLog = SynthesizeSpeechOutputFilterSensitiveLog;
1451
1362
  exports.TaskStatus = TaskStatus;
1452
- exports.TextLengthExceededException = TextLengthExceededException;
1363
+ exports.TextLengthExceededException = TextLengthExceededException$1;
1453
1364
  exports.TextType = TextType;
1454
- exports.UnsupportedPlsAlphabetException = UnsupportedPlsAlphabetException;
1455
- exports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException;
1365
+ exports.UnsupportedPlsAlphabetException = UnsupportedPlsAlphabetException$1;
1366
+ exports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException$1;
1456
1367
  exports.VoiceId = VoiceId;
1457
1368
  exports.paginateListSpeechSynthesisTasks = paginateListSpeechSynthesisTasks;