@aws-sdk/client-polly 3.716.0 → 3.723.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.
package/dist-cjs/index.js CHANGED
@@ -167,7 +167,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
167
167
  }, "resolveRuntimeExtensions");
168
168
 
169
169
  // src/PollyClient.ts
170
- var _PollyClient = class _PollyClient extends import_smithy_client.Client {
170
+ var PollyClient = class extends import_smithy_client.Client {
171
+ static {
172
+ __name(this, "PollyClient");
173
+ }
174
+ /**
175
+ * The resolved configuration of PollyClient class. This is resolved and normalized from the {@link PollyClientConfig | constructor configuration interface}.
176
+ */
177
+ config;
171
178
  constructor(...[configuration]) {
172
179
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
173
180
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -177,7 +184,7 @@ var _PollyClient = class _PollyClient extends import_smithy_client.Client {
177
184
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
178
185
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
179
186
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
180
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
187
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
181
188
  super(_config_8);
182
189
  this.config = _config_8;
183
190
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -205,8 +212,6 @@ var _PollyClient = class _PollyClient extends import_smithy_client.Client {
205
212
  super.destroy();
206
213
  }
207
214
  };
208
- __name(_PollyClient, "PollyClient");
209
- var PollyClient = _PollyClient;
210
215
 
211
216
  // src/Polly.ts
212
217
 
@@ -226,7 +231,10 @@ var import_core2 = require("@aws-sdk/core");
226
231
 
227
232
  // src/models/PollyServiceException.ts
228
233
 
229
- var _PollyServiceException = class _PollyServiceException extends import_smithy_client.ServiceException {
234
+ var PollyServiceException = class _PollyServiceException extends import_smithy_client.ServiceException {
235
+ static {
236
+ __name(this, "PollyServiceException");
237
+ }
230
238
  /**
231
239
  * @internal
232
240
  */
@@ -235,11 +243,14 @@ var _PollyServiceException = class _PollyServiceException extends import_smithy_
235
243
  Object.setPrototypeOf(this, _PollyServiceException.prototype);
236
244
  }
237
245
  };
238
- __name(_PollyServiceException, "PollyServiceException");
239
- var PollyServiceException = _PollyServiceException;
240
246
 
241
247
  // src/models/models_0.ts
242
- var _LexiconNotFoundException = class _LexiconNotFoundException extends PollyServiceException {
248
+ var LexiconNotFoundException = class _LexiconNotFoundException extends PollyServiceException {
249
+ static {
250
+ __name(this, "LexiconNotFoundException");
251
+ }
252
+ name = "LexiconNotFoundException";
253
+ $fault = "client";
243
254
  /**
244
255
  * @internal
245
256
  */
@@ -249,14 +260,15 @@ var _LexiconNotFoundException = class _LexiconNotFoundException extends PollySer
249
260
  $fault: "client",
250
261
  ...opts
251
262
  });
252
- this.name = "LexiconNotFoundException";
253
- this.$fault = "client";
254
263
  Object.setPrototypeOf(this, _LexiconNotFoundException.prototype);
255
264
  }
256
265
  };
257
- __name(_LexiconNotFoundException, "LexiconNotFoundException");
258
- var LexiconNotFoundException = _LexiconNotFoundException;
259
- var _ServiceFailureException = class _ServiceFailureException extends PollyServiceException {
266
+ var ServiceFailureException = class _ServiceFailureException extends PollyServiceException {
267
+ static {
268
+ __name(this, "ServiceFailureException");
269
+ }
270
+ name = "ServiceFailureException";
271
+ $fault = "server";
260
272
  /**
261
273
  * @internal
262
274
  */
@@ -266,13 +278,9 @@ var _ServiceFailureException = class _ServiceFailureException extends PollyServi
266
278
  $fault: "server",
267
279
  ...opts
268
280
  });
269
- this.name = "ServiceFailureException";
270
- this.$fault = "server";
271
281
  Object.setPrototypeOf(this, _ServiceFailureException.prototype);
272
282
  }
273
283
  };
274
- __name(_ServiceFailureException, "ServiceFailureException");
275
- var ServiceFailureException = _ServiceFailureException;
276
284
  var Engine = {
277
285
  GENERATIVE: "generative",
278
286
  LONG_FORM: "long-form",
@@ -426,7 +434,12 @@ var VoiceId = {
426
434
  Zeina: "Zeina",
427
435
  Zhiyu: "Zhiyu"
428
436
  };
429
- var _InvalidNextTokenException = class _InvalidNextTokenException extends PollyServiceException {
437
+ var InvalidNextTokenException = class _InvalidNextTokenException extends PollyServiceException {
438
+ static {
439
+ __name(this, "InvalidNextTokenException");
440
+ }
441
+ name = "InvalidNextTokenException";
442
+ $fault = "client";
430
443
  /**
431
444
  * @internal
432
445
  */
@@ -436,14 +449,15 @@ var _InvalidNextTokenException = class _InvalidNextTokenException extends PollyS
436
449
  $fault: "client",
437
450
  ...opts
438
451
  });
439
- this.name = "InvalidNextTokenException";
440
- this.$fault = "client";
441
452
  Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
442
453
  }
443
454
  };
444
- __name(_InvalidNextTokenException, "InvalidNextTokenException");
445
- var InvalidNextTokenException = _InvalidNextTokenException;
446
- var _EngineNotSupportedException = class _EngineNotSupportedException extends PollyServiceException {
455
+ var EngineNotSupportedException = class _EngineNotSupportedException extends PollyServiceException {
456
+ static {
457
+ __name(this, "EngineNotSupportedException");
458
+ }
459
+ name = "EngineNotSupportedException";
460
+ $fault = "client";
447
461
  /**
448
462
  * @internal
449
463
  */
@@ -453,13 +467,9 @@ var _EngineNotSupportedException = class _EngineNotSupportedException extends Po
453
467
  $fault: "client",
454
468
  ...opts
455
469
  });
456
- this.name = "EngineNotSupportedException";
457
- this.$fault = "client";
458
470
  Object.setPrototypeOf(this, _EngineNotSupportedException.prototype);
459
471
  }
460
472
  };
461
- __name(_EngineNotSupportedException, "EngineNotSupportedException");
462
- var EngineNotSupportedException = _EngineNotSupportedException;
463
473
  var OutputFormat = {
464
474
  JSON: "json",
465
475
  MP3: "mp3",
@@ -482,7 +492,12 @@ var TextType = {
482
492
  SSML: "ssml",
483
493
  TEXT: "text"
484
494
  };
485
- var _InvalidTaskIdException = class _InvalidTaskIdException extends PollyServiceException {
495
+ var InvalidTaskIdException = class _InvalidTaskIdException extends PollyServiceException {
496
+ static {
497
+ __name(this, "InvalidTaskIdException");
498
+ }
499
+ name = "InvalidTaskIdException";
500
+ $fault = "client";
486
501
  /**
487
502
  * @internal
488
503
  */
@@ -492,14 +507,15 @@ var _InvalidTaskIdException = class _InvalidTaskIdException extends PollyService
492
507
  $fault: "client",
493
508
  ...opts
494
509
  });
495
- this.name = "InvalidTaskIdException";
496
- this.$fault = "client";
497
510
  Object.setPrototypeOf(this, _InvalidTaskIdException.prototype);
498
511
  }
499
512
  };
500
- __name(_InvalidTaskIdException, "InvalidTaskIdException");
501
- var InvalidTaskIdException = _InvalidTaskIdException;
502
- var _SynthesisTaskNotFoundException = class _SynthesisTaskNotFoundException extends PollyServiceException {
513
+ var SynthesisTaskNotFoundException = class _SynthesisTaskNotFoundException extends PollyServiceException {
514
+ static {
515
+ __name(this, "SynthesisTaskNotFoundException");
516
+ }
517
+ name = "SynthesisTaskNotFoundException";
518
+ $fault = "client";
503
519
  /**
504
520
  * @internal
505
521
  */
@@ -509,14 +525,15 @@ var _SynthesisTaskNotFoundException = class _SynthesisTaskNotFoundException exte
509
525
  $fault: "client",
510
526
  ...opts
511
527
  });
512
- this.name = "SynthesisTaskNotFoundException";
513
- this.$fault = "client";
514
528
  Object.setPrototypeOf(this, _SynthesisTaskNotFoundException.prototype);
515
529
  }
516
530
  };
517
- __name(_SynthesisTaskNotFoundException, "SynthesisTaskNotFoundException");
518
- var SynthesisTaskNotFoundException = _SynthesisTaskNotFoundException;
519
- var _InvalidLexiconException = class _InvalidLexiconException extends PollyServiceException {
531
+ var InvalidLexiconException = class _InvalidLexiconException extends PollyServiceException {
532
+ static {
533
+ __name(this, "InvalidLexiconException");
534
+ }
535
+ name = "InvalidLexiconException";
536
+ $fault = "client";
520
537
  /**
521
538
  * @internal
522
539
  */
@@ -526,14 +543,15 @@ var _InvalidLexiconException = class _InvalidLexiconException extends PollyServi
526
543
  $fault: "client",
527
544
  ...opts
528
545
  });
529
- this.name = "InvalidLexiconException";
530
- this.$fault = "client";
531
546
  Object.setPrototypeOf(this, _InvalidLexiconException.prototype);
532
547
  }
533
548
  };
534
- __name(_InvalidLexiconException, "InvalidLexiconException");
535
- var InvalidLexiconException = _InvalidLexiconException;
536
- var _InvalidS3BucketException = class _InvalidS3BucketException extends PollyServiceException {
549
+ var InvalidS3BucketException = class _InvalidS3BucketException extends PollyServiceException {
550
+ static {
551
+ __name(this, "InvalidS3BucketException");
552
+ }
553
+ name = "InvalidS3BucketException";
554
+ $fault = "client";
537
555
  /**
538
556
  * @internal
539
557
  */
@@ -543,14 +561,15 @@ var _InvalidS3BucketException = class _InvalidS3BucketException extends PollySer
543
561
  $fault: "client",
544
562
  ...opts
545
563
  });
546
- this.name = "InvalidS3BucketException";
547
- this.$fault = "client";
548
564
  Object.setPrototypeOf(this, _InvalidS3BucketException.prototype);
549
565
  }
550
566
  };
551
- __name(_InvalidS3BucketException, "InvalidS3BucketException");
552
- var InvalidS3BucketException = _InvalidS3BucketException;
553
- var _InvalidS3KeyException = class _InvalidS3KeyException extends PollyServiceException {
567
+ var InvalidS3KeyException = class _InvalidS3KeyException extends PollyServiceException {
568
+ static {
569
+ __name(this, "InvalidS3KeyException");
570
+ }
571
+ name = "InvalidS3KeyException";
572
+ $fault = "client";
554
573
  /**
555
574
  * @internal
556
575
  */
@@ -560,14 +579,15 @@ var _InvalidS3KeyException = class _InvalidS3KeyException extends PollyServiceEx
560
579
  $fault: "client",
561
580
  ...opts
562
581
  });
563
- this.name = "InvalidS3KeyException";
564
- this.$fault = "client";
565
582
  Object.setPrototypeOf(this, _InvalidS3KeyException.prototype);
566
583
  }
567
584
  };
568
- __name(_InvalidS3KeyException, "InvalidS3KeyException");
569
- var InvalidS3KeyException = _InvalidS3KeyException;
570
- var _InvalidSampleRateException = class _InvalidSampleRateException extends PollyServiceException {
585
+ var InvalidSampleRateException = class _InvalidSampleRateException extends PollyServiceException {
586
+ static {
587
+ __name(this, "InvalidSampleRateException");
588
+ }
589
+ name = "InvalidSampleRateException";
590
+ $fault = "client";
571
591
  /**
572
592
  * @internal
573
593
  */
@@ -577,14 +597,15 @@ var _InvalidSampleRateException = class _InvalidSampleRateException extends Poll
577
597
  $fault: "client",
578
598
  ...opts
579
599
  });
580
- this.name = "InvalidSampleRateException";
581
- this.$fault = "client";
582
600
  Object.setPrototypeOf(this, _InvalidSampleRateException.prototype);
583
601
  }
584
602
  };
585
- __name(_InvalidSampleRateException, "InvalidSampleRateException");
586
- var InvalidSampleRateException = _InvalidSampleRateException;
587
- var _InvalidSnsTopicArnException = class _InvalidSnsTopicArnException extends PollyServiceException {
603
+ var InvalidSnsTopicArnException = class _InvalidSnsTopicArnException extends PollyServiceException {
604
+ static {
605
+ __name(this, "InvalidSnsTopicArnException");
606
+ }
607
+ name = "InvalidSnsTopicArnException";
608
+ $fault = "client";
588
609
  /**
589
610
  * @internal
590
611
  */
@@ -594,14 +615,15 @@ var _InvalidSnsTopicArnException = class _InvalidSnsTopicArnException extends Po
594
615
  $fault: "client",
595
616
  ...opts
596
617
  });
597
- this.name = "InvalidSnsTopicArnException";
598
- this.$fault = "client";
599
618
  Object.setPrototypeOf(this, _InvalidSnsTopicArnException.prototype);
600
619
  }
601
620
  };
602
- __name(_InvalidSnsTopicArnException, "InvalidSnsTopicArnException");
603
- var InvalidSnsTopicArnException = _InvalidSnsTopicArnException;
604
- var _InvalidSsmlException = class _InvalidSsmlException extends PollyServiceException {
621
+ var InvalidSsmlException = class _InvalidSsmlException extends PollyServiceException {
622
+ static {
623
+ __name(this, "InvalidSsmlException");
624
+ }
625
+ name = "InvalidSsmlException";
626
+ $fault = "client";
605
627
  /**
606
628
  * @internal
607
629
  */
@@ -611,14 +633,15 @@ var _InvalidSsmlException = class _InvalidSsmlException extends PollyServiceExce
611
633
  $fault: "client",
612
634
  ...opts
613
635
  });
614
- this.name = "InvalidSsmlException";
615
- this.$fault = "client";
616
636
  Object.setPrototypeOf(this, _InvalidSsmlException.prototype);
617
637
  }
618
638
  };
619
- __name(_InvalidSsmlException, "InvalidSsmlException");
620
- var InvalidSsmlException = _InvalidSsmlException;
621
- var _LanguageNotSupportedException = class _LanguageNotSupportedException extends PollyServiceException {
639
+ var LanguageNotSupportedException = class _LanguageNotSupportedException extends PollyServiceException {
640
+ static {
641
+ __name(this, "LanguageNotSupportedException");
642
+ }
643
+ name = "LanguageNotSupportedException";
644
+ $fault = "client";
622
645
  /**
623
646
  * @internal
624
647
  */
@@ -628,14 +651,15 @@ var _LanguageNotSupportedException = class _LanguageNotSupportedException extend
628
651
  $fault: "client",
629
652
  ...opts
630
653
  });
631
- this.name = "LanguageNotSupportedException";
632
- this.$fault = "client";
633
654
  Object.setPrototypeOf(this, _LanguageNotSupportedException.prototype);
634
655
  }
635
656
  };
636
- __name(_LanguageNotSupportedException, "LanguageNotSupportedException");
637
- var LanguageNotSupportedException = _LanguageNotSupportedException;
638
- var _LexiconSizeExceededException = class _LexiconSizeExceededException extends PollyServiceException {
657
+ var LexiconSizeExceededException = class _LexiconSizeExceededException extends PollyServiceException {
658
+ static {
659
+ __name(this, "LexiconSizeExceededException");
660
+ }
661
+ name = "LexiconSizeExceededException";
662
+ $fault = "client";
639
663
  /**
640
664
  * @internal
641
665
  */
@@ -645,14 +669,15 @@ var _LexiconSizeExceededException = class _LexiconSizeExceededException extends
645
669
  $fault: "client",
646
670
  ...opts
647
671
  });
648
- this.name = "LexiconSizeExceededException";
649
- this.$fault = "client";
650
672
  Object.setPrototypeOf(this, _LexiconSizeExceededException.prototype);
651
673
  }
652
674
  };
653
- __name(_LexiconSizeExceededException, "LexiconSizeExceededException");
654
- var LexiconSizeExceededException = _LexiconSizeExceededException;
655
- var _MarksNotSupportedForFormatException = class _MarksNotSupportedForFormatException extends PollyServiceException {
675
+ var MarksNotSupportedForFormatException = class _MarksNotSupportedForFormatException extends PollyServiceException {
676
+ static {
677
+ __name(this, "MarksNotSupportedForFormatException");
678
+ }
679
+ name = "MarksNotSupportedForFormatException";
680
+ $fault = "client";
656
681
  /**
657
682
  * @internal
658
683
  */
@@ -662,14 +687,15 @@ var _MarksNotSupportedForFormatException = class _MarksNotSupportedForFormatExce
662
687
  $fault: "client",
663
688
  ...opts
664
689
  });
665
- this.name = "MarksNotSupportedForFormatException";
666
- this.$fault = "client";
667
690
  Object.setPrototypeOf(this, _MarksNotSupportedForFormatException.prototype);
668
691
  }
669
692
  };
670
- __name(_MarksNotSupportedForFormatException, "MarksNotSupportedForFormatException");
671
- var MarksNotSupportedForFormatException = _MarksNotSupportedForFormatException;
672
- var _MaxLexemeLengthExceededException = class _MaxLexemeLengthExceededException extends PollyServiceException {
693
+ var MaxLexemeLengthExceededException = class _MaxLexemeLengthExceededException extends PollyServiceException {
694
+ static {
695
+ __name(this, "MaxLexemeLengthExceededException");
696
+ }
697
+ name = "MaxLexemeLengthExceededException";
698
+ $fault = "client";
673
699
  /**
674
700
  * @internal
675
701
  */
@@ -679,14 +705,15 @@ var _MaxLexemeLengthExceededException = class _MaxLexemeLengthExceededException
679
705
  $fault: "client",
680
706
  ...opts
681
707
  });
682
- this.name = "MaxLexemeLengthExceededException";
683
- this.$fault = "client";
684
708
  Object.setPrototypeOf(this, _MaxLexemeLengthExceededException.prototype);
685
709
  }
686
710
  };
687
- __name(_MaxLexemeLengthExceededException, "MaxLexemeLengthExceededException");
688
- var MaxLexemeLengthExceededException = _MaxLexemeLengthExceededException;
689
- var _MaxLexiconsNumberExceededException = class _MaxLexiconsNumberExceededException extends PollyServiceException {
711
+ var MaxLexiconsNumberExceededException = class _MaxLexiconsNumberExceededException extends PollyServiceException {
712
+ static {
713
+ __name(this, "MaxLexiconsNumberExceededException");
714
+ }
715
+ name = "MaxLexiconsNumberExceededException";
716
+ $fault = "client";
690
717
  /**
691
718
  * @internal
692
719
  */
@@ -696,14 +723,15 @@ var _MaxLexiconsNumberExceededException = class _MaxLexiconsNumberExceededExcept
696
723
  $fault: "client",
697
724
  ...opts
698
725
  });
699
- this.name = "MaxLexiconsNumberExceededException";
700
- this.$fault = "client";
701
726
  Object.setPrototypeOf(this, _MaxLexiconsNumberExceededException.prototype);
702
727
  }
703
728
  };
704
- __name(_MaxLexiconsNumberExceededException, "MaxLexiconsNumberExceededException");
705
- var MaxLexiconsNumberExceededException = _MaxLexiconsNumberExceededException;
706
- var _UnsupportedPlsAlphabetException = class _UnsupportedPlsAlphabetException extends PollyServiceException {
729
+ var UnsupportedPlsAlphabetException = class _UnsupportedPlsAlphabetException extends PollyServiceException {
730
+ static {
731
+ __name(this, "UnsupportedPlsAlphabetException");
732
+ }
733
+ name = "UnsupportedPlsAlphabetException";
734
+ $fault = "client";
707
735
  /**
708
736
  * @internal
709
737
  */
@@ -713,14 +741,15 @@ var _UnsupportedPlsAlphabetException = class _UnsupportedPlsAlphabetException ex
713
741
  $fault: "client",
714
742
  ...opts
715
743
  });
716
- this.name = "UnsupportedPlsAlphabetException";
717
- this.$fault = "client";
718
744
  Object.setPrototypeOf(this, _UnsupportedPlsAlphabetException.prototype);
719
745
  }
720
746
  };
721
- __name(_UnsupportedPlsAlphabetException, "UnsupportedPlsAlphabetException");
722
- var UnsupportedPlsAlphabetException = _UnsupportedPlsAlphabetException;
723
- var _UnsupportedPlsLanguageException = class _UnsupportedPlsLanguageException extends PollyServiceException {
747
+ var UnsupportedPlsLanguageException = class _UnsupportedPlsLanguageException extends PollyServiceException {
748
+ static {
749
+ __name(this, "UnsupportedPlsLanguageException");
750
+ }
751
+ name = "UnsupportedPlsLanguageException";
752
+ $fault = "client";
724
753
  /**
725
754
  * @internal
726
755
  */
@@ -730,14 +759,15 @@ var _UnsupportedPlsLanguageException = class _UnsupportedPlsLanguageException ex
730
759
  $fault: "client",
731
760
  ...opts
732
761
  });
733
- this.name = "UnsupportedPlsLanguageException";
734
- this.$fault = "client";
735
762
  Object.setPrototypeOf(this, _UnsupportedPlsLanguageException.prototype);
736
763
  }
737
764
  };
738
- __name(_UnsupportedPlsLanguageException, "UnsupportedPlsLanguageException");
739
- var UnsupportedPlsLanguageException = _UnsupportedPlsLanguageException;
740
- var _SsmlMarksNotSupportedForTextTypeException = class _SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
765
+ var SsmlMarksNotSupportedForTextTypeException = class _SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
766
+ static {
767
+ __name(this, "SsmlMarksNotSupportedForTextTypeException");
768
+ }
769
+ name = "SsmlMarksNotSupportedForTextTypeException";
770
+ $fault = "client";
741
771
  /**
742
772
  * @internal
743
773
  */
@@ -747,14 +777,15 @@ var _SsmlMarksNotSupportedForTextTypeException = class _SsmlMarksNotSupportedFor
747
777
  $fault: "client",
748
778
  ...opts
749
779
  });
750
- this.name = "SsmlMarksNotSupportedForTextTypeException";
751
- this.$fault = "client";
752
780
  Object.setPrototypeOf(this, _SsmlMarksNotSupportedForTextTypeException.prototype);
753
781
  }
754
782
  };
755
- __name(_SsmlMarksNotSupportedForTextTypeException, "SsmlMarksNotSupportedForTextTypeException");
756
- var SsmlMarksNotSupportedForTextTypeException = _SsmlMarksNotSupportedForTextTypeException;
757
- var _TextLengthExceededException = class _TextLengthExceededException extends PollyServiceException {
783
+ var TextLengthExceededException = class _TextLengthExceededException extends PollyServiceException {
784
+ static {
785
+ __name(this, "TextLengthExceededException");
786
+ }
787
+ name = "TextLengthExceededException";
788
+ $fault = "client";
758
789
  /**
759
790
  * @internal
760
791
  */
@@ -764,13 +795,9 @@ var _TextLengthExceededException = class _TextLengthExceededException extends Po
764
795
  $fault: "client",
765
796
  ...opts
766
797
  });
767
- this.name = "TextLengthExceededException";
768
- this.$fault = "client";
769
798
  Object.setPrototypeOf(this, _TextLengthExceededException.prototype);
770
799
  }
771
800
  };
772
- __name(_TextLengthExceededException, "TextLengthExceededException");
773
- var TextLengthExceededException = _TextLengthExceededException;
774
801
  var LexiconFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
775
802
  ...obj,
776
803
  ...obj.Content && { Content: import_smithy_client.SENSITIVE_STRING }
@@ -1458,127 +1485,136 @@ var _ct = "content-type";
1458
1485
  var _xar = "x-amzn-requestcharacters";
1459
1486
 
1460
1487
  // src/commands/DeleteLexiconCommand.ts
1461
- var _DeleteLexiconCommand = class _DeleteLexiconCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1488
+ var DeleteLexiconCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1462
1489
  return [
1463
1490
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1464
1491
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1465
1492
  ];
1466
1493
  }).s("Parrot_v1", "DeleteLexicon", {}).n("PollyClient", "DeleteLexiconCommand").f(void 0, void 0).ser(se_DeleteLexiconCommand).de(de_DeleteLexiconCommand).build() {
1494
+ static {
1495
+ __name(this, "DeleteLexiconCommand");
1496
+ }
1467
1497
  };
1468
- __name(_DeleteLexiconCommand, "DeleteLexiconCommand");
1469
- var DeleteLexiconCommand = _DeleteLexiconCommand;
1470
1498
 
1471
1499
  // src/commands/DescribeVoicesCommand.ts
1472
1500
 
1473
1501
 
1474
1502
 
1475
- var _DescribeVoicesCommand = class _DescribeVoicesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1503
+ var DescribeVoicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1476
1504
  return [
1477
1505
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1478
1506
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1479
1507
  ];
1480
1508
  }).s("Parrot_v1", "DescribeVoices", {}).n("PollyClient", "DescribeVoicesCommand").f(void 0, void 0).ser(se_DescribeVoicesCommand).de(de_DescribeVoicesCommand).build() {
1509
+ static {
1510
+ __name(this, "DescribeVoicesCommand");
1511
+ }
1481
1512
  };
1482
- __name(_DescribeVoicesCommand, "DescribeVoicesCommand");
1483
- var DescribeVoicesCommand = _DescribeVoicesCommand;
1484
1513
 
1485
1514
  // src/commands/GetLexiconCommand.ts
1486
1515
 
1487
1516
 
1488
1517
 
1489
- var _GetLexiconCommand = class _GetLexiconCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1518
+ var GetLexiconCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1490
1519
  return [
1491
1520
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1492
1521
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1493
1522
  ];
1494
1523
  }).s("Parrot_v1", "GetLexicon", {}).n("PollyClient", "GetLexiconCommand").f(void 0, GetLexiconOutputFilterSensitiveLog).ser(se_GetLexiconCommand).de(de_GetLexiconCommand).build() {
1524
+ static {
1525
+ __name(this, "GetLexiconCommand");
1526
+ }
1495
1527
  };
1496
- __name(_GetLexiconCommand, "GetLexiconCommand");
1497
- var GetLexiconCommand = _GetLexiconCommand;
1498
1528
 
1499
1529
  // src/commands/GetSpeechSynthesisTaskCommand.ts
1500
1530
 
1501
1531
 
1502
1532
 
1503
- var _GetSpeechSynthesisTaskCommand = class _GetSpeechSynthesisTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1533
+ var GetSpeechSynthesisTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1504
1534
  return [
1505
1535
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1506
1536
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1507
1537
  ];
1508
1538
  }).s("Parrot_v1", "GetSpeechSynthesisTask", {}).n("PollyClient", "GetSpeechSynthesisTaskCommand").f(void 0, void 0).ser(se_GetSpeechSynthesisTaskCommand).de(de_GetSpeechSynthesisTaskCommand).build() {
1539
+ static {
1540
+ __name(this, "GetSpeechSynthesisTaskCommand");
1541
+ }
1509
1542
  };
1510
- __name(_GetSpeechSynthesisTaskCommand, "GetSpeechSynthesisTaskCommand");
1511
- var GetSpeechSynthesisTaskCommand = _GetSpeechSynthesisTaskCommand;
1512
1543
 
1513
1544
  // src/commands/ListLexiconsCommand.ts
1514
1545
 
1515
1546
 
1516
1547
 
1517
- var _ListLexiconsCommand = class _ListLexiconsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1548
+ var ListLexiconsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1518
1549
  return [
1519
1550
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1520
1551
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1521
1552
  ];
1522
1553
  }).s("Parrot_v1", "ListLexicons", {}).n("PollyClient", "ListLexiconsCommand").f(void 0, void 0).ser(se_ListLexiconsCommand).de(de_ListLexiconsCommand).build() {
1554
+ static {
1555
+ __name(this, "ListLexiconsCommand");
1556
+ }
1523
1557
  };
1524
- __name(_ListLexiconsCommand, "ListLexiconsCommand");
1525
- var ListLexiconsCommand = _ListLexiconsCommand;
1526
1558
 
1527
1559
  // src/commands/ListSpeechSynthesisTasksCommand.ts
1528
1560
 
1529
1561
 
1530
1562
 
1531
- var _ListSpeechSynthesisTasksCommand = class _ListSpeechSynthesisTasksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1563
+ var ListSpeechSynthesisTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1532
1564
  return [
1533
1565
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1534
1566
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1535
1567
  ];
1536
1568
  }).s("Parrot_v1", "ListSpeechSynthesisTasks", {}).n("PollyClient", "ListSpeechSynthesisTasksCommand").f(void 0, void 0).ser(se_ListSpeechSynthesisTasksCommand).de(de_ListSpeechSynthesisTasksCommand).build() {
1569
+ static {
1570
+ __name(this, "ListSpeechSynthesisTasksCommand");
1571
+ }
1537
1572
  };
1538
- __name(_ListSpeechSynthesisTasksCommand, "ListSpeechSynthesisTasksCommand");
1539
- var ListSpeechSynthesisTasksCommand = _ListSpeechSynthesisTasksCommand;
1540
1573
 
1541
1574
  // src/commands/PutLexiconCommand.ts
1542
1575
 
1543
1576
 
1544
1577
 
1545
- var _PutLexiconCommand = class _PutLexiconCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1578
+ var PutLexiconCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1546
1579
  return [
1547
1580
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1548
1581
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1549
1582
  ];
1550
1583
  }).s("Parrot_v1", "PutLexicon", {}).n("PollyClient", "PutLexiconCommand").f(PutLexiconInputFilterSensitiveLog, void 0).ser(se_PutLexiconCommand).de(de_PutLexiconCommand).build() {
1584
+ static {
1585
+ __name(this, "PutLexiconCommand");
1586
+ }
1551
1587
  };
1552
- __name(_PutLexiconCommand, "PutLexiconCommand");
1553
- var PutLexiconCommand = _PutLexiconCommand;
1554
1588
 
1555
1589
  // src/commands/StartSpeechSynthesisTaskCommand.ts
1556
1590
 
1557
1591
 
1558
1592
 
1559
- var _StartSpeechSynthesisTaskCommand = class _StartSpeechSynthesisTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1593
+ var StartSpeechSynthesisTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1560
1594
  return [
1561
1595
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1562
1596
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1563
1597
  ];
1564
1598
  }).s("Parrot_v1", "StartSpeechSynthesisTask", {}).n("PollyClient", "StartSpeechSynthesisTaskCommand").f(void 0, void 0).ser(se_StartSpeechSynthesisTaskCommand).de(de_StartSpeechSynthesisTaskCommand).build() {
1599
+ static {
1600
+ __name(this, "StartSpeechSynthesisTaskCommand");
1601
+ }
1565
1602
  };
1566
- __name(_StartSpeechSynthesisTaskCommand, "StartSpeechSynthesisTaskCommand");
1567
- var StartSpeechSynthesisTaskCommand = _StartSpeechSynthesisTaskCommand;
1568
1603
 
1569
1604
  // src/commands/SynthesizeSpeechCommand.ts
1570
1605
 
1571
1606
 
1572
1607
 
1573
- var _SynthesizeSpeechCommand = class _SynthesizeSpeechCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1608
+ var SynthesizeSpeechCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1574
1609
  return [
1575
1610
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1576
1611
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1577
1612
  ];
1578
1613
  }).s("Parrot_v1", "SynthesizeSpeech", {}).n("PollyClient", "SynthesizeSpeechCommand").f(void 0, SynthesizeSpeechOutputFilterSensitiveLog).ser(se_SynthesizeSpeechCommand).de(de_SynthesizeSpeechCommand).build() {
1614
+ static {
1615
+ __name(this, "SynthesizeSpeechCommand");
1616
+ }
1579
1617
  };
1580
- __name(_SynthesizeSpeechCommand, "SynthesizeSpeechCommand");
1581
- var SynthesizeSpeechCommand = _SynthesizeSpeechCommand;
1582
1618
 
1583
1619
  // src/Polly.ts
1584
1620
  var commands = {
@@ -1592,10 +1628,11 @@ var commands = {
1592
1628
  StartSpeechSynthesisTaskCommand,
1593
1629
  SynthesizeSpeechCommand
1594
1630
  };
1595
- var _Polly = class _Polly extends PollyClient {
1631
+ var Polly = class extends PollyClient {
1632
+ static {
1633
+ __name(this, "Polly");
1634
+ }
1596
1635
  };
1597
- __name(_Polly, "Polly");
1598
- var Polly = _Polly;
1599
1636
  (0, import_smithy_client.createAggregatedClient)(commands, Polly);
1600
1637
 
1601
1638
  // src/pagination/ListSpeechSynthesisTasksPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class PollyClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,26 +1,26 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { PollyServiceException as __BaseException } from "./PollyServiceException";
3
3
  export class LexiconNotFoundException extends __BaseException {
4
+ name = "LexiconNotFoundException";
5
+ $fault = "client";
4
6
  constructor(opts) {
5
7
  super({
6
8
  name: "LexiconNotFoundException",
7
9
  $fault: "client",
8
10
  ...opts,
9
11
  });
10
- this.name = "LexiconNotFoundException";
11
- this.$fault = "client";
12
12
  Object.setPrototypeOf(this, LexiconNotFoundException.prototype);
13
13
  }
14
14
  }
15
15
  export class ServiceFailureException extends __BaseException {
16
+ name = "ServiceFailureException";
17
+ $fault = "server";
16
18
  constructor(opts) {
17
19
  super({
18
20
  name: "ServiceFailureException",
19
21
  $fault: "server",
20
22
  ...opts,
21
23
  });
22
- this.name = "ServiceFailureException";
23
- this.$fault = "server";
24
24
  Object.setPrototypeOf(this, ServiceFailureException.prototype);
25
25
  }
26
26
  }
@@ -178,26 +178,26 @@ export const VoiceId = {
178
178
  Zhiyu: "Zhiyu",
179
179
  };
180
180
  export class InvalidNextTokenException extends __BaseException {
181
+ name = "InvalidNextTokenException";
182
+ $fault = "client";
181
183
  constructor(opts) {
182
184
  super({
183
185
  name: "InvalidNextTokenException",
184
186
  $fault: "client",
185
187
  ...opts,
186
188
  });
187
- this.name = "InvalidNextTokenException";
188
- this.$fault = "client";
189
189
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
190
190
  }
191
191
  }
192
192
  export class EngineNotSupportedException extends __BaseException {
193
+ name = "EngineNotSupportedException";
194
+ $fault = "client";
193
195
  constructor(opts) {
194
196
  super({
195
197
  name: "EngineNotSupportedException",
196
198
  $fault: "client",
197
199
  ...opts,
198
200
  });
199
- this.name = "EngineNotSupportedException";
200
- this.$fault = "client";
201
201
  Object.setPrototypeOf(this, EngineNotSupportedException.prototype);
202
202
  }
203
203
  }
@@ -224,206 +224,206 @@ export const TextType = {
224
224
  TEXT: "text",
225
225
  };
226
226
  export class InvalidTaskIdException extends __BaseException {
227
+ name = "InvalidTaskIdException";
228
+ $fault = "client";
227
229
  constructor(opts) {
228
230
  super({
229
231
  name: "InvalidTaskIdException",
230
232
  $fault: "client",
231
233
  ...opts,
232
234
  });
233
- this.name = "InvalidTaskIdException";
234
- this.$fault = "client";
235
235
  Object.setPrototypeOf(this, InvalidTaskIdException.prototype);
236
236
  }
237
237
  }
238
238
  export class SynthesisTaskNotFoundException extends __BaseException {
239
+ name = "SynthesisTaskNotFoundException";
240
+ $fault = "client";
239
241
  constructor(opts) {
240
242
  super({
241
243
  name: "SynthesisTaskNotFoundException",
242
244
  $fault: "client",
243
245
  ...opts,
244
246
  });
245
- this.name = "SynthesisTaskNotFoundException";
246
- this.$fault = "client";
247
247
  Object.setPrototypeOf(this, SynthesisTaskNotFoundException.prototype);
248
248
  }
249
249
  }
250
250
  export class InvalidLexiconException extends __BaseException {
251
+ name = "InvalidLexiconException";
252
+ $fault = "client";
251
253
  constructor(opts) {
252
254
  super({
253
255
  name: "InvalidLexiconException",
254
256
  $fault: "client",
255
257
  ...opts,
256
258
  });
257
- this.name = "InvalidLexiconException";
258
- this.$fault = "client";
259
259
  Object.setPrototypeOf(this, InvalidLexiconException.prototype);
260
260
  }
261
261
  }
262
262
  export class InvalidS3BucketException extends __BaseException {
263
+ name = "InvalidS3BucketException";
264
+ $fault = "client";
263
265
  constructor(opts) {
264
266
  super({
265
267
  name: "InvalidS3BucketException",
266
268
  $fault: "client",
267
269
  ...opts,
268
270
  });
269
- this.name = "InvalidS3BucketException";
270
- this.$fault = "client";
271
271
  Object.setPrototypeOf(this, InvalidS3BucketException.prototype);
272
272
  }
273
273
  }
274
274
  export class InvalidS3KeyException extends __BaseException {
275
+ name = "InvalidS3KeyException";
276
+ $fault = "client";
275
277
  constructor(opts) {
276
278
  super({
277
279
  name: "InvalidS3KeyException",
278
280
  $fault: "client",
279
281
  ...opts,
280
282
  });
281
- this.name = "InvalidS3KeyException";
282
- this.$fault = "client";
283
283
  Object.setPrototypeOf(this, InvalidS3KeyException.prototype);
284
284
  }
285
285
  }
286
286
  export class InvalidSampleRateException extends __BaseException {
287
+ name = "InvalidSampleRateException";
288
+ $fault = "client";
287
289
  constructor(opts) {
288
290
  super({
289
291
  name: "InvalidSampleRateException",
290
292
  $fault: "client",
291
293
  ...opts,
292
294
  });
293
- this.name = "InvalidSampleRateException";
294
- this.$fault = "client";
295
295
  Object.setPrototypeOf(this, InvalidSampleRateException.prototype);
296
296
  }
297
297
  }
298
298
  export class InvalidSnsTopicArnException extends __BaseException {
299
+ name = "InvalidSnsTopicArnException";
300
+ $fault = "client";
299
301
  constructor(opts) {
300
302
  super({
301
303
  name: "InvalidSnsTopicArnException",
302
304
  $fault: "client",
303
305
  ...opts,
304
306
  });
305
- this.name = "InvalidSnsTopicArnException";
306
- this.$fault = "client";
307
307
  Object.setPrototypeOf(this, InvalidSnsTopicArnException.prototype);
308
308
  }
309
309
  }
310
310
  export class InvalidSsmlException extends __BaseException {
311
+ name = "InvalidSsmlException";
312
+ $fault = "client";
311
313
  constructor(opts) {
312
314
  super({
313
315
  name: "InvalidSsmlException",
314
316
  $fault: "client",
315
317
  ...opts,
316
318
  });
317
- this.name = "InvalidSsmlException";
318
- this.$fault = "client";
319
319
  Object.setPrototypeOf(this, InvalidSsmlException.prototype);
320
320
  }
321
321
  }
322
322
  export class LanguageNotSupportedException extends __BaseException {
323
+ name = "LanguageNotSupportedException";
324
+ $fault = "client";
323
325
  constructor(opts) {
324
326
  super({
325
327
  name: "LanguageNotSupportedException",
326
328
  $fault: "client",
327
329
  ...opts,
328
330
  });
329
- this.name = "LanguageNotSupportedException";
330
- this.$fault = "client";
331
331
  Object.setPrototypeOf(this, LanguageNotSupportedException.prototype);
332
332
  }
333
333
  }
334
334
  export class LexiconSizeExceededException extends __BaseException {
335
+ name = "LexiconSizeExceededException";
336
+ $fault = "client";
335
337
  constructor(opts) {
336
338
  super({
337
339
  name: "LexiconSizeExceededException",
338
340
  $fault: "client",
339
341
  ...opts,
340
342
  });
341
- this.name = "LexiconSizeExceededException";
342
- this.$fault = "client";
343
343
  Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
344
344
  }
345
345
  }
346
346
  export class MarksNotSupportedForFormatException extends __BaseException {
347
+ name = "MarksNotSupportedForFormatException";
348
+ $fault = "client";
347
349
  constructor(opts) {
348
350
  super({
349
351
  name: "MarksNotSupportedForFormatException",
350
352
  $fault: "client",
351
353
  ...opts,
352
354
  });
353
- this.name = "MarksNotSupportedForFormatException";
354
- this.$fault = "client";
355
355
  Object.setPrototypeOf(this, MarksNotSupportedForFormatException.prototype);
356
356
  }
357
357
  }
358
358
  export class MaxLexemeLengthExceededException extends __BaseException {
359
+ name = "MaxLexemeLengthExceededException";
360
+ $fault = "client";
359
361
  constructor(opts) {
360
362
  super({
361
363
  name: "MaxLexemeLengthExceededException",
362
364
  $fault: "client",
363
365
  ...opts,
364
366
  });
365
- this.name = "MaxLexemeLengthExceededException";
366
- this.$fault = "client";
367
367
  Object.setPrototypeOf(this, MaxLexemeLengthExceededException.prototype);
368
368
  }
369
369
  }
370
370
  export class MaxLexiconsNumberExceededException extends __BaseException {
371
+ name = "MaxLexiconsNumberExceededException";
372
+ $fault = "client";
371
373
  constructor(opts) {
372
374
  super({
373
375
  name: "MaxLexiconsNumberExceededException",
374
376
  $fault: "client",
375
377
  ...opts,
376
378
  });
377
- this.name = "MaxLexiconsNumberExceededException";
378
- this.$fault = "client";
379
379
  Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
380
380
  }
381
381
  }
382
382
  export class UnsupportedPlsAlphabetException extends __BaseException {
383
+ name = "UnsupportedPlsAlphabetException";
384
+ $fault = "client";
383
385
  constructor(opts) {
384
386
  super({
385
387
  name: "UnsupportedPlsAlphabetException",
386
388
  $fault: "client",
387
389
  ...opts,
388
390
  });
389
- this.name = "UnsupportedPlsAlphabetException";
390
- this.$fault = "client";
391
391
  Object.setPrototypeOf(this, UnsupportedPlsAlphabetException.prototype);
392
392
  }
393
393
  }
394
394
  export class UnsupportedPlsLanguageException extends __BaseException {
395
+ name = "UnsupportedPlsLanguageException";
396
+ $fault = "client";
395
397
  constructor(opts) {
396
398
  super({
397
399
  name: "UnsupportedPlsLanguageException",
398
400
  $fault: "client",
399
401
  ...opts,
400
402
  });
401
- this.name = "UnsupportedPlsLanguageException";
402
- this.$fault = "client";
403
403
  Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);
404
404
  }
405
405
  }
406
406
  export class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
407
+ name = "SsmlMarksNotSupportedForTextTypeException";
408
+ $fault = "client";
407
409
  constructor(opts) {
408
410
  super({
409
411
  name: "SsmlMarksNotSupportedForTextTypeException",
410
412
  $fault: "client",
411
413
  ...opts,
412
414
  });
413
- this.name = "SsmlMarksNotSupportedForTextTypeException";
414
- this.$fault = "client";
415
415
  Object.setPrototypeOf(this, SsmlMarksNotSupportedForTextTypeException.prototype);
416
416
  }
417
417
  }
418
418
  export class TextLengthExceededException extends __BaseException {
419
+ name = "TextLengthExceededException";
420
+ $fault = "client";
419
421
  constructor(opts) {
420
422
  super({
421
423
  name: "TextLengthExceededException",
422
424
  $fault: "client",
423
425
  ...opts,
424
426
  });
425
- this.name = "TextLengthExceededException";
426
- this.$fault = "client";
427
427
  Object.setPrototypeOf(this, TextLengthExceededException.prototype);
428
428
  }
429
429
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -32,7 +32,7 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
32
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
33
33
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
34
34
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
35
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
35
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
36
36
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
37
37
  logger?: import("@smithy/types").Logger | undefined;
38
38
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -51,11 +53,21 @@ export declare const getRuntimeConfig: (config: PollyClientConfig) => {
51
53
  | import("@smithy/types").RetryStrategyV2
52
54
  | undefined;
53
55
  endpoint?:
54
- | string
55
- | import("@smithy/types").Endpoint
56
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
57
- | import("@smithy/types").EndpointV2
58
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
56
+ | ((
57
+ | string
58
+ | import("@smithy/types").Endpoint
59
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
60
+ | import("@smithy/types").EndpointV2
61
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
62
+ ) &
63
+ (
64
+ | string
65
+ | import("@smithy/types").Provider<string>
66
+ | import("@smithy/types").Endpoint
67
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
68
+ | import("@smithy/types").EndpointV2
69
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
70
+ ))
59
71
  | undefined;
60
72
  endpointProvider: (
61
73
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-polly",
3
3
  "description": "AWS SDK for JavaScript Polly Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-polly",
@@ -20,57 +20,57 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-stream": "^3.3.2",
61
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-stream": "^4.0.0",
61
+ "@smithy/util-utf8": "^4.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@tsconfig/node16": "16.1.3",
66
- "@types/node": "^16.18.96",
65
+ "@tsconfig/node18": "18.2.4",
66
+ "@types/node": "^18.19.69",
67
67
  "concurrently": "7.0.0",
68
68
  "downlevel-dts": "0.10.1",
69
69
  "rimraf": "3.0.2",
70
- "typescript": "~4.9.5"
70
+ "typescript": "~5.2.2"
71
71
  },
72
72
  "engines": {
73
- "node": ">=16.0.0"
73
+ "node": ">=18.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {