@aws-sdk/client-polly 3.986.0 → 3.988.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
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var PollyServiceException = require('./models/PollyServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,657 +113,6 @@ class PollyClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class PollyServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, PollyServiceException.prototype);
117
- }
118
- }
119
-
120
- class LexiconNotFoundException extends PollyServiceException {
121
- name = "LexiconNotFoundException";
122
- $fault = "client";
123
- constructor(opts) {
124
- super({
125
- name: "LexiconNotFoundException",
126
- $fault: "client",
127
- ...opts,
128
- });
129
- Object.setPrototypeOf(this, LexiconNotFoundException.prototype);
130
- }
131
- }
132
- class ServiceFailureException extends PollyServiceException {
133
- name = "ServiceFailureException";
134
- $fault = "server";
135
- constructor(opts) {
136
- super({
137
- name: "ServiceFailureException",
138
- $fault: "server",
139
- ...opts,
140
- });
141
- Object.setPrototypeOf(this, ServiceFailureException.prototype);
142
- }
143
- }
144
- class InvalidNextTokenException extends PollyServiceException {
145
- name = "InvalidNextTokenException";
146
- $fault = "client";
147
- constructor(opts) {
148
- super({
149
- name: "InvalidNextTokenException",
150
- $fault: "client",
151
- ...opts,
152
- });
153
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
154
- }
155
- }
156
- class EngineNotSupportedException extends PollyServiceException {
157
- name = "EngineNotSupportedException";
158
- $fault = "client";
159
- constructor(opts) {
160
- super({
161
- name: "EngineNotSupportedException",
162
- $fault: "client",
163
- ...opts,
164
- });
165
- Object.setPrototypeOf(this, EngineNotSupportedException.prototype);
166
- }
167
- }
168
- class InvalidTaskIdException extends PollyServiceException {
169
- name = "InvalidTaskIdException";
170
- $fault = "client";
171
- constructor(opts) {
172
- super({
173
- name: "InvalidTaskIdException",
174
- $fault: "client",
175
- ...opts,
176
- });
177
- Object.setPrototypeOf(this, InvalidTaskIdException.prototype);
178
- }
179
- }
180
- class SynthesisTaskNotFoundException extends PollyServiceException {
181
- name = "SynthesisTaskNotFoundException";
182
- $fault = "client";
183
- constructor(opts) {
184
- super({
185
- name: "SynthesisTaskNotFoundException",
186
- $fault: "client",
187
- ...opts,
188
- });
189
- Object.setPrototypeOf(this, SynthesisTaskNotFoundException.prototype);
190
- }
191
- }
192
- class InvalidLexiconException extends PollyServiceException {
193
- name = "InvalidLexiconException";
194
- $fault = "client";
195
- constructor(opts) {
196
- super({
197
- name: "InvalidLexiconException",
198
- $fault: "client",
199
- ...opts,
200
- });
201
- Object.setPrototypeOf(this, InvalidLexiconException.prototype);
202
- }
203
- }
204
- class InvalidS3BucketException extends PollyServiceException {
205
- name = "InvalidS3BucketException";
206
- $fault = "client";
207
- constructor(opts) {
208
- super({
209
- name: "InvalidS3BucketException",
210
- $fault: "client",
211
- ...opts,
212
- });
213
- Object.setPrototypeOf(this, InvalidS3BucketException.prototype);
214
- }
215
- }
216
- class InvalidS3KeyException extends PollyServiceException {
217
- name = "InvalidS3KeyException";
218
- $fault = "client";
219
- constructor(opts) {
220
- super({
221
- name: "InvalidS3KeyException",
222
- $fault: "client",
223
- ...opts,
224
- });
225
- Object.setPrototypeOf(this, InvalidS3KeyException.prototype);
226
- }
227
- }
228
- class InvalidSampleRateException extends PollyServiceException {
229
- name = "InvalidSampleRateException";
230
- $fault = "client";
231
- constructor(opts) {
232
- super({
233
- name: "InvalidSampleRateException",
234
- $fault: "client",
235
- ...opts,
236
- });
237
- Object.setPrototypeOf(this, InvalidSampleRateException.prototype);
238
- }
239
- }
240
- class InvalidSnsTopicArnException extends PollyServiceException {
241
- name = "InvalidSnsTopicArnException";
242
- $fault = "client";
243
- constructor(opts) {
244
- super({
245
- name: "InvalidSnsTopicArnException",
246
- $fault: "client",
247
- ...opts,
248
- });
249
- Object.setPrototypeOf(this, InvalidSnsTopicArnException.prototype);
250
- }
251
- }
252
- class InvalidSsmlException extends PollyServiceException {
253
- name = "InvalidSsmlException";
254
- $fault = "client";
255
- constructor(opts) {
256
- super({
257
- name: "InvalidSsmlException",
258
- $fault: "client",
259
- ...opts,
260
- });
261
- Object.setPrototypeOf(this, InvalidSsmlException.prototype);
262
- }
263
- }
264
- class LanguageNotSupportedException extends PollyServiceException {
265
- name = "LanguageNotSupportedException";
266
- $fault = "client";
267
- constructor(opts) {
268
- super({
269
- name: "LanguageNotSupportedException",
270
- $fault: "client",
271
- ...opts,
272
- });
273
- Object.setPrototypeOf(this, LanguageNotSupportedException.prototype);
274
- }
275
- }
276
- class LexiconSizeExceededException extends PollyServiceException {
277
- name = "LexiconSizeExceededException";
278
- $fault = "client";
279
- constructor(opts) {
280
- super({
281
- name: "LexiconSizeExceededException",
282
- $fault: "client",
283
- ...opts,
284
- });
285
- Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
286
- }
287
- }
288
- class MarksNotSupportedForFormatException extends PollyServiceException {
289
- name = "MarksNotSupportedForFormatException";
290
- $fault = "client";
291
- constructor(opts) {
292
- super({
293
- name: "MarksNotSupportedForFormatException",
294
- $fault: "client",
295
- ...opts,
296
- });
297
- Object.setPrototypeOf(this, MarksNotSupportedForFormatException.prototype);
298
- }
299
- }
300
- class MaxLexemeLengthExceededException extends PollyServiceException {
301
- name = "MaxLexemeLengthExceededException";
302
- $fault = "client";
303
- constructor(opts) {
304
- super({
305
- name: "MaxLexemeLengthExceededException",
306
- $fault: "client",
307
- ...opts,
308
- });
309
- Object.setPrototypeOf(this, MaxLexemeLengthExceededException.prototype);
310
- }
311
- }
312
- class MaxLexiconsNumberExceededException extends PollyServiceException {
313
- name = "MaxLexiconsNumberExceededException";
314
- $fault = "client";
315
- constructor(opts) {
316
- super({
317
- name: "MaxLexiconsNumberExceededException",
318
- $fault: "client",
319
- ...opts,
320
- });
321
- Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
322
- }
323
- }
324
- class UnsupportedPlsAlphabetException extends PollyServiceException {
325
- name = "UnsupportedPlsAlphabetException";
326
- $fault = "client";
327
- constructor(opts) {
328
- super({
329
- name: "UnsupportedPlsAlphabetException",
330
- $fault: "client",
331
- ...opts,
332
- });
333
- Object.setPrototypeOf(this, UnsupportedPlsAlphabetException.prototype);
334
- }
335
- }
336
- class UnsupportedPlsLanguageException extends PollyServiceException {
337
- name = "UnsupportedPlsLanguageException";
338
- $fault = "client";
339
- constructor(opts) {
340
- super({
341
- name: "UnsupportedPlsLanguageException",
342
- $fault: "client",
343
- ...opts,
344
- });
345
- Object.setPrototypeOf(this, UnsupportedPlsLanguageException.prototype);
346
- }
347
- }
348
- class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
349
- name = "SsmlMarksNotSupportedForTextTypeException";
350
- $fault = "client";
351
- constructor(opts) {
352
- super({
353
- name: "SsmlMarksNotSupportedForTextTypeException",
354
- $fault: "client",
355
- ...opts,
356
- });
357
- Object.setPrototypeOf(this, SsmlMarksNotSupportedForTextTypeException.prototype);
358
- }
359
- }
360
- class TextLengthExceededException extends PollyServiceException {
361
- name = "TextLengthExceededException";
362
- $fault = "client";
363
- constructor(opts) {
364
- super({
365
- name: "TextLengthExceededException",
366
- $fault: "client",
367
- ...opts,
368
- });
369
- Object.setPrototypeOf(this, TextLengthExceededException.prototype);
370
- }
371
- }
372
-
373
- const _A = "Alphabet";
374
- const _ALC = "AdditionalLanguageCodes";
375
- const _AS = "AudioStream";
376
- const _At = "Attributes";
377
- const _C = "Content";
378
- const _CT = "CreationTime";
379
- const _CT_ = "Content-Type";
380
- const _CTo = "ContentType";
381
- const _DL = "DeleteLexicon";
382
- const _DLI = "DeleteLexiconInput";
383
- const _DLO = "DeleteLexiconOutput";
384
- const _DV = "DescribeVoices";
385
- const _DVI = "DescribeVoicesInput";
386
- const _DVO = "DescribeVoicesOutput";
387
- const _E = "Engine";
388
- const _ENSE = "EngineNotSupportedException";
389
- const _G = "Gender";
390
- const _GL = "GetLexicon";
391
- const _GLI = "GetLexiconInput";
392
- const _GLO = "GetLexiconOutput";
393
- const _GSST = "GetSpeechSynthesisTask";
394
- const _GSSTI = "GetSpeechSynthesisTaskInput";
395
- const _GSSTO = "GetSpeechSynthesisTaskOutput";
396
- const _I = "Id";
397
- const _IALC = "IncludeAdditionalLanguageCodes";
398
- const _ILE = "InvalidLexiconException";
399
- const _INTE = "InvalidNextTokenException";
400
- const _ISBE = "InvalidS3BucketException";
401
- const _ISE = "InvalidSsmlException";
402
- const _ISKE = "InvalidS3KeyException";
403
- const _ISRE = "InvalidSampleRateException";
404
- const _ISTAE = "InvalidSnsTopicArnException";
405
- const _ITIE = "InvalidTaskIdException";
406
- const _L = "Lexicon";
407
- const _LA = "LexiconAttributes";
408
- const _LAe = "LexiconArn";
409
- const _LC = "LexiconContent";
410
- const _LCa = "LanguageCode";
411
- const _LCe = "LexemesCount";
412
- const _LD = "LexiconDescription";
413
- const _LDL = "LexiconDescriptionList";
414
- const _LL = "ListLexicons";
415
- const _LLI = "ListLexiconsInput";
416
- const _LLO = "ListLexiconsOutput";
417
- const _LM = "LastModified";
418
- const _LN = "LexiconNames";
419
- const _LNFE = "LexiconNotFoundException";
420
- const _LNSE = "LanguageNotSupportedException";
421
- const _LNa = "LanguageName";
422
- const _LSEE = "LexiconSizeExceededException";
423
- const _LSST = "ListSpeechSynthesisTasks";
424
- const _LSSTI = "ListSpeechSynthesisTasksInput";
425
- const _LSSTO = "ListSpeechSynthesisTasksOutput";
426
- const _Le = "Lexicons";
427
- const _MLLEE = "MaxLexemeLengthExceededException";
428
- const _MLNEE = "MaxLexiconsNumberExceededException";
429
- const _MNSFFE = "MarksNotSupportedForFormatException";
430
- const _MR = "MaxResults";
431
- const _N = "Name";
432
- const _NT = "NextToken";
433
- const _OF = "OutputFormat";
434
- const _OSBN = "OutputS3BucketName";
435
- const _OSKP = "OutputS3KeyPrefix";
436
- const _OU = "OutputUri";
437
- const _PL = "PutLexicon";
438
- const _PLI = "PutLexiconInput";
439
- const _PLO = "PutLexiconOutput";
440
- const _RC = "RequestCharacters";
441
- const _S = "Size";
442
- const _SE = "SupportedEngines";
443
- const _SFE = "ServiceFailureException";
444
- const _SMNSFTTE = "SsmlMarksNotSupportedForTextTypeException";
445
- const _SMT = "SpeechMarkTypes";
446
- const _SR = "SampleRate";
447
- const _SS = "SynthesizeSpeech";
448
- const _SSI = "SynthesizeSpeechInput";
449
- const _SSO = "SynthesizeSpeechOutput";
450
- const _SSST = "StartSpeechSynthesisTask";
451
- const _SSSTI = "StartSpeechSynthesisTaskInput";
452
- const _SSSTO = "StartSpeechSynthesisTaskOutput";
453
- const _ST = "SynthesisTask";
454
- const _STA = "SnsTopicArn";
455
- const _STNFE = "SynthesisTaskNotFoundException";
456
- const _STy = "SynthesisTasks";
457
- const _St = "Status";
458
- const _T = "Text";
459
- const _TI = "TaskId";
460
- const _TLEE = "TextLengthExceededException";
461
- const _TS = "TaskStatus";
462
- const _TSR = "TaskStatusReason";
463
- const _TT = "TextType";
464
- const _UPAE = "UnsupportedPlsAlphabetException";
465
- const _UPLE = "UnsupportedPlsLanguageException";
466
- const _V = "Voices";
467
- const _VI = "VoiceId";
468
- const _VL = "VoiceList";
469
- const _Vo = "Voice";
470
- const _c = "client";
471
- const _e = "error";
472
- const _h = "http";
473
- const _hE = "httpError";
474
- const _hH = "httpHeader";
475
- const _hQ = "httpQuery";
476
- const _m = "message";
477
- const _s = "streaming";
478
- const _se = "server";
479
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
480
- const _xaR = "x-amzn-RequestCharacters";
481
- const n0 = "com.amazonaws.polly";
482
- var AudioStream = [0, n0, _AS, { [_s]: 1 }, 42];
483
- var LexiconContent = [0, n0, _LC, 8, 0];
484
- var DeleteLexiconInput$ = [3, n0, _DLI,
485
- 0,
486
- [_N],
487
- [[0, 1]], 1
488
- ];
489
- var DeleteLexiconOutput$ = [3, n0, _DLO,
490
- 0,
491
- [],
492
- []
493
- ];
494
- var DescribeVoicesInput$ = [3, n0, _DVI,
495
- 0,
496
- [_E, _LCa, _IALC, _NT],
497
- [[0, { [_hQ]: _E }], [0, { [_hQ]: _LCa }], [2, { [_hQ]: _IALC }], [0, { [_hQ]: _NT }]]
498
- ];
499
- var DescribeVoicesOutput$ = [3, n0, _DVO,
500
- 0,
501
- [_V, _NT],
502
- [() => VoiceList, 0]
503
- ];
504
- var EngineNotSupportedException$ = [-3, n0, _ENSE,
505
- { [_e]: _c, [_hE]: 400 },
506
- [_m],
507
- [0]
508
- ];
509
- schema.TypeRegistry.for(n0).registerError(EngineNotSupportedException$, EngineNotSupportedException);
510
- var GetLexiconInput$ = [3, n0, _GLI,
511
- 0,
512
- [_N],
513
- [[0, 1]], 1
514
- ];
515
- var GetLexiconOutput$ = [3, n0, _GLO,
516
- 0,
517
- [_L, _LA],
518
- [[() => Lexicon$, 0], () => LexiconAttributes$]
519
- ];
520
- var GetSpeechSynthesisTaskInput$ = [3, n0, _GSSTI,
521
- 0,
522
- [_TI],
523
- [[0, 1]], 1
524
- ];
525
- var GetSpeechSynthesisTaskOutput$ = [3, n0, _GSSTO,
526
- 0,
527
- [_ST],
528
- [() => SynthesisTask$]
529
- ];
530
- var InvalidLexiconException$ = [-3, n0, _ILE,
531
- { [_e]: _c, [_hE]: 400 },
532
- [_m],
533
- [0]
534
- ];
535
- schema.TypeRegistry.for(n0).registerError(InvalidLexiconException$, InvalidLexiconException);
536
- var InvalidNextTokenException$ = [-3, n0, _INTE,
537
- { [_e]: _c, [_hE]: 400 },
538
- [_m],
539
- [0]
540
- ];
541
- schema.TypeRegistry.for(n0).registerError(InvalidNextTokenException$, InvalidNextTokenException);
542
- var InvalidS3BucketException$ = [-3, n0, _ISBE,
543
- { [_e]: _c, [_hE]: 400 },
544
- [_m],
545
- [0]
546
- ];
547
- schema.TypeRegistry.for(n0).registerError(InvalidS3BucketException$, InvalidS3BucketException);
548
- var InvalidS3KeyException$ = [-3, n0, _ISKE,
549
- { [_e]: _c, [_hE]: 400 },
550
- [_m],
551
- [0]
552
- ];
553
- schema.TypeRegistry.for(n0).registerError(InvalidS3KeyException$, InvalidS3KeyException);
554
- var InvalidSampleRateException$ = [-3, n0, _ISRE,
555
- { [_e]: _c, [_hE]: 400 },
556
- [_m],
557
- [0]
558
- ];
559
- schema.TypeRegistry.for(n0).registerError(InvalidSampleRateException$, InvalidSampleRateException);
560
- var InvalidSnsTopicArnException$ = [-3, n0, _ISTAE,
561
- { [_e]: _c, [_hE]: 400 },
562
- [_m],
563
- [0]
564
- ];
565
- schema.TypeRegistry.for(n0).registerError(InvalidSnsTopicArnException$, InvalidSnsTopicArnException);
566
- var InvalidSsmlException$ = [-3, n0, _ISE,
567
- { [_e]: _c, [_hE]: 400 },
568
- [_m],
569
- [0]
570
- ];
571
- schema.TypeRegistry.for(n0).registerError(InvalidSsmlException$, InvalidSsmlException);
572
- var InvalidTaskIdException$ = [-3, n0, _ITIE,
573
- { [_e]: _c, [_hE]: 400 },
574
- [_m],
575
- [0]
576
- ];
577
- schema.TypeRegistry.for(n0).registerError(InvalidTaskIdException$, InvalidTaskIdException);
578
- var LanguageNotSupportedException$ = [-3, n0, _LNSE,
579
- { [_e]: _c, [_hE]: 400 },
580
- [_m],
581
- [0]
582
- ];
583
- schema.TypeRegistry.for(n0).registerError(LanguageNotSupportedException$, LanguageNotSupportedException);
584
- var Lexicon$ = [3, n0, _L,
585
- 0,
586
- [_C, _N],
587
- [[() => LexiconContent, 0], 0]
588
- ];
589
- var LexiconAttributes$ = [3, n0, _LA,
590
- 0,
591
- [_A, _LCa, _LM, _LAe, _LCe, _S],
592
- [0, 0, 4, 0, 1, 1]
593
- ];
594
- var LexiconDescription$ = [3, n0, _LD,
595
- 0,
596
- [_N, _At],
597
- [0, () => LexiconAttributes$]
598
- ];
599
- var LexiconNotFoundException$ = [-3, n0, _LNFE,
600
- { [_e]: _c, [_hE]: 404 },
601
- [_m],
602
- [0]
603
- ];
604
- schema.TypeRegistry.for(n0).registerError(LexiconNotFoundException$, LexiconNotFoundException);
605
- var LexiconSizeExceededException$ = [-3, n0, _LSEE,
606
- { [_e]: _c, [_hE]: 400 },
607
- [_m],
608
- [0]
609
- ];
610
- schema.TypeRegistry.for(n0).registerError(LexiconSizeExceededException$, LexiconSizeExceededException);
611
- var ListLexiconsInput$ = [3, n0, _LLI,
612
- 0,
613
- [_NT],
614
- [[0, { [_hQ]: _NT }]]
615
- ];
616
- var ListLexiconsOutput$ = [3, n0, _LLO,
617
- 0,
618
- [_Le, _NT],
619
- [() => LexiconDescriptionList, 0]
620
- ];
621
- var ListSpeechSynthesisTasksInput$ = [3, n0, _LSSTI,
622
- 0,
623
- [_MR, _NT, _St],
624
- [[1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }], [0, { [_hQ]: _St }]]
625
- ];
626
- var ListSpeechSynthesisTasksOutput$ = [3, n0, _LSSTO,
627
- 0,
628
- [_NT, _STy],
629
- [0, () => SynthesisTasks]
630
- ];
631
- var MarksNotSupportedForFormatException$ = [-3, n0, _MNSFFE,
632
- { [_e]: _c, [_hE]: 400 },
633
- [_m],
634
- [0]
635
- ];
636
- schema.TypeRegistry.for(n0).registerError(MarksNotSupportedForFormatException$, MarksNotSupportedForFormatException);
637
- var MaxLexemeLengthExceededException$ = [-3, n0, _MLLEE,
638
- { [_e]: _c, [_hE]: 400 },
639
- [_m],
640
- [0]
641
- ];
642
- schema.TypeRegistry.for(n0).registerError(MaxLexemeLengthExceededException$, MaxLexemeLengthExceededException);
643
- var MaxLexiconsNumberExceededException$ = [-3, n0, _MLNEE,
644
- { [_e]: _c, [_hE]: 400 },
645
- [_m],
646
- [0]
647
- ];
648
- schema.TypeRegistry.for(n0).registerError(MaxLexiconsNumberExceededException$, MaxLexiconsNumberExceededException);
649
- var PutLexiconInput$ = [3, n0, _PLI,
650
- 0,
651
- [_N, _C],
652
- [[0, 1], [() => LexiconContent, 0]], 2
653
- ];
654
- var PutLexiconOutput$ = [3, n0, _PLO,
655
- 0,
656
- [],
657
- []
658
- ];
659
- var ServiceFailureException$ = [-3, n0, _SFE,
660
- { [_e]: _se, [_hE]: 500 },
661
- [_m],
662
- [0]
663
- ];
664
- schema.TypeRegistry.for(n0).registerError(ServiceFailureException$, ServiceFailureException);
665
- var SsmlMarksNotSupportedForTextTypeException$ = [-3, n0, _SMNSFTTE,
666
- { [_e]: _c, [_hE]: 400 },
667
- [_m],
668
- [0]
669
- ];
670
- schema.TypeRegistry.for(n0).registerError(SsmlMarksNotSupportedForTextTypeException$, SsmlMarksNotSupportedForTextTypeException);
671
- var StartSpeechSynthesisTaskInput$ = [3, n0, _SSSTI,
672
- 0,
673
- [_OF, _OSBN, _T, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],
674
- [0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 64 | 0, 0], 4
675
- ];
676
- var StartSpeechSynthesisTaskOutput$ = [3, n0, _SSSTO,
677
- 0,
678
- [_ST],
679
- [() => SynthesisTask$]
680
- ];
681
- var SynthesisTask$ = [3, n0, _ST,
682
- 0,
683
- [_E, _TI, _TS, _TSR, _OU, _CT, _RC, _STA, _LN, _OF, _SR, _SMT, _TT, _VI, _LCa],
684
- [0, 0, 0, 0, 0, 4, 1, 0, 64 | 0, 0, 0, 64 | 0, 0, 0, 0]
685
- ];
686
- var SynthesisTaskNotFoundException$ = [-3, n0, _STNFE,
687
- { [_e]: _c, [_hE]: 400 },
688
- [_m],
689
- [0]
690
- ];
691
- schema.TypeRegistry.for(n0).registerError(SynthesisTaskNotFoundException$, SynthesisTaskNotFoundException);
692
- var SynthesizeSpeechInput$ = [3, n0, _SSI,
693
- 0,
694
- [_OF, _T, _VI, _E, _LCa, _LN, _SR, _SMT, _TT],
695
- [0, 0, 0, 0, 0, 64 | 0, 0, 64 | 0, 0], 3
696
- ];
697
- var SynthesizeSpeechOutput$ = [3, n0, _SSO,
698
- 0,
699
- [_AS, _CTo, _RC],
700
- [[() => AudioStream, 16], [0, { [_hH]: _CT_ }], [1, { [_hH]: _xaR }]]
701
- ];
702
- var TextLengthExceededException$ = [-3, n0, _TLEE,
703
- { [_e]: _c, [_hE]: 400 },
704
- [_m],
705
- [0]
706
- ];
707
- schema.TypeRegistry.for(n0).registerError(TextLengthExceededException$, TextLengthExceededException);
708
- var UnsupportedPlsAlphabetException$ = [-3, n0, _UPAE,
709
- { [_e]: _c, [_hE]: 400 },
710
- [_m],
711
- [0]
712
- ];
713
- schema.TypeRegistry.for(n0).registerError(UnsupportedPlsAlphabetException$, UnsupportedPlsAlphabetException);
714
- var UnsupportedPlsLanguageException$ = [-3, n0, _UPLE,
715
- { [_e]: _c, [_hE]: 400 },
716
- [_m],
717
- [0]
718
- ];
719
- schema.TypeRegistry.for(n0).registerError(UnsupportedPlsLanguageException$, UnsupportedPlsLanguageException);
720
- var Voice$ = [3, n0, _Vo,
721
- 0,
722
- [_G, _I, _LCa, _LNa, _N, _ALC, _SE],
723
- [0, 0, 0, 0, 0, 64 | 0, 64 | 0]
724
- ];
725
- var PollyServiceException$ = [-3, _sm, "PollyServiceException", 0, [], []];
726
- schema.TypeRegistry.for(_sm).registerError(PollyServiceException$, PollyServiceException);
727
- var LexiconDescriptionList = [1, n0, _LDL,
728
- 0, () => LexiconDescription$
729
- ];
730
- var SynthesisTasks = [1, n0, _STy,
731
- 0, () => SynthesisTask$
732
- ];
733
- var VoiceList = [1, n0, _VL,
734
- 0, () => Voice$
735
- ];
736
- var DeleteLexicon$ = [9, n0, _DL,
737
- { [_h]: ["DELETE", "/v1/lexicons/{Name}", 200] }, () => DeleteLexiconInput$, () => DeleteLexiconOutput$
738
- ];
739
- var DescribeVoices$ = [9, n0, _DV,
740
- { [_h]: ["GET", "/v1/voices", 200] }, () => DescribeVoicesInput$, () => DescribeVoicesOutput$
741
- ];
742
- var GetLexicon$ = [9, n0, _GL,
743
- { [_h]: ["GET", "/v1/lexicons/{Name}", 200] }, () => GetLexiconInput$, () => GetLexiconOutput$
744
- ];
745
- var GetSpeechSynthesisTask$ = [9, n0, _GSST,
746
- { [_h]: ["GET", "/v1/synthesisTasks/{TaskId}", 200] }, () => GetSpeechSynthesisTaskInput$, () => GetSpeechSynthesisTaskOutput$
747
- ];
748
- var ListLexicons$ = [9, n0, _LL,
749
- { [_h]: ["GET", "/v1/lexicons", 200] }, () => ListLexiconsInput$, () => ListLexiconsOutput$
750
- ];
751
- var ListSpeechSynthesisTasks$ = [9, n0, _LSST,
752
- { [_h]: ["GET", "/v1/synthesisTasks", 200] }, () => ListSpeechSynthesisTasksInput$, () => ListSpeechSynthesisTasksOutput$
753
- ];
754
- var PutLexicon$ = [9, n0, _PL,
755
- { [_h]: ["PUT", "/v1/lexicons/{Name}", 200] }, () => PutLexiconInput$, () => PutLexiconOutput$
756
- ];
757
- var StartSpeechSynthesisTask$ = [9, n0, _SSST,
758
- { [_h]: ["POST", "/v1/synthesisTasks", 200] }, () => StartSpeechSynthesisTaskInput$, () => StartSpeechSynthesisTaskOutput$
759
- ];
760
- var SynthesizeSpeech$ = [9, n0, _SS,
761
- { [_h]: ["POST", "/v1/speech", 200] }, () => SynthesizeSpeechInput$, () => SynthesizeSpeechOutput$
762
- ];
763
-
764
116
  class DeleteLexiconCommand extends smithyClient.Command
765
117
  .classBuilder()
766
118
  .ep(commonParams)
@@ -769,7 +121,7 @@ class DeleteLexiconCommand extends smithyClient.Command
769
121
  })
770
122
  .s("Parrot_v1", "DeleteLexicon", {})
771
123
  .n("PollyClient", "DeleteLexiconCommand")
772
- .sc(DeleteLexicon$)
124
+ .sc(schemas_0.DeleteLexicon$)
773
125
  .build() {
774
126
  }
775
127
 
@@ -781,7 +133,7 @@ class DescribeVoicesCommand extends smithyClient.Command
781
133
  })
782
134
  .s("Parrot_v1", "DescribeVoices", {})
783
135
  .n("PollyClient", "DescribeVoicesCommand")
784
- .sc(DescribeVoices$)
136
+ .sc(schemas_0.DescribeVoices$)
785
137
  .build() {
786
138
  }
787
139
 
@@ -793,7 +145,7 @@ class GetLexiconCommand extends smithyClient.Command
793
145
  })
794
146
  .s("Parrot_v1", "GetLexicon", {})
795
147
  .n("PollyClient", "GetLexiconCommand")
796
- .sc(GetLexicon$)
148
+ .sc(schemas_0.GetLexicon$)
797
149
  .build() {
798
150
  }
799
151
 
@@ -805,7 +157,7 @@ class GetSpeechSynthesisTaskCommand extends smithyClient.Command
805
157
  })
806
158
  .s("Parrot_v1", "GetSpeechSynthesisTask", {})
807
159
  .n("PollyClient", "GetSpeechSynthesisTaskCommand")
808
- .sc(GetSpeechSynthesisTask$)
160
+ .sc(schemas_0.GetSpeechSynthesisTask$)
809
161
  .build() {
810
162
  }
811
163
 
@@ -817,7 +169,7 @@ class ListLexiconsCommand extends smithyClient.Command
817
169
  })
818
170
  .s("Parrot_v1", "ListLexicons", {})
819
171
  .n("PollyClient", "ListLexiconsCommand")
820
- .sc(ListLexicons$)
172
+ .sc(schemas_0.ListLexicons$)
821
173
  .build() {
822
174
  }
823
175
 
@@ -829,7 +181,7 @@ class ListSpeechSynthesisTasksCommand extends smithyClient.Command
829
181
  })
830
182
  .s("Parrot_v1", "ListSpeechSynthesisTasks", {})
831
183
  .n("PollyClient", "ListSpeechSynthesisTasksCommand")
832
- .sc(ListSpeechSynthesisTasks$)
184
+ .sc(schemas_0.ListSpeechSynthesisTasks$)
833
185
  .build() {
834
186
  }
835
187
 
@@ -841,7 +193,7 @@ class PutLexiconCommand extends smithyClient.Command
841
193
  })
842
194
  .s("Parrot_v1", "PutLexicon", {})
843
195
  .n("PollyClient", "PutLexiconCommand")
844
- .sc(PutLexicon$)
196
+ .sc(schemas_0.PutLexicon$)
845
197
  .build() {
846
198
  }
847
199
 
@@ -853,7 +205,7 @@ class StartSpeechSynthesisTaskCommand extends smithyClient.Command
853
205
  })
854
206
  .s("Parrot_v1", "StartSpeechSynthesisTask", {})
855
207
  .n("PollyClient", "StartSpeechSynthesisTaskCommand")
856
- .sc(StartSpeechSynthesisTask$)
208
+ .sc(schemas_0.StartSpeechSynthesisTask$)
857
209
  .build() {
858
210
  }
859
211
 
@@ -865,7 +217,7 @@ class SynthesizeSpeechCommand extends smithyClient.Command
865
217
  })
866
218
  .s("Parrot_v1", "SynthesizeSpeech", {})
867
219
  .n("PollyClient", "SynthesizeSpeechCommand")
868
- .sc(SynthesizeSpeech$)
220
+ .sc(schemas_0.SynthesizeSpeech$)
869
221
  .build() {
870
222
  }
871
223
 
@@ -1077,99 +429,39 @@ Object.defineProperty(exports, "__Client", {
1077
429
  enumerable: true,
1078
430
  get: function () { return smithyClient.Client; }
1079
431
  });
1080
- exports.DeleteLexicon$ = DeleteLexicon$;
432
+ Object.defineProperty(exports, "PollyServiceException", {
433
+ enumerable: true,
434
+ get: function () { return PollyServiceException.PollyServiceException; }
435
+ });
1081
436
  exports.DeleteLexiconCommand = DeleteLexiconCommand;
1082
- exports.DeleteLexiconInput$ = DeleteLexiconInput$;
1083
- exports.DeleteLexiconOutput$ = DeleteLexiconOutput$;
1084
- exports.DescribeVoices$ = DescribeVoices$;
1085
437
  exports.DescribeVoicesCommand = DescribeVoicesCommand;
1086
- exports.DescribeVoicesInput$ = DescribeVoicesInput$;
1087
- exports.DescribeVoicesOutput$ = DescribeVoicesOutput$;
1088
438
  exports.Engine = Engine;
1089
- exports.EngineNotSupportedException = EngineNotSupportedException;
1090
- exports.EngineNotSupportedException$ = EngineNotSupportedException$;
1091
439
  exports.Gender = Gender;
1092
- exports.GetLexicon$ = GetLexicon$;
1093
440
  exports.GetLexiconCommand = GetLexiconCommand;
1094
- exports.GetLexiconInput$ = GetLexiconInput$;
1095
- exports.GetLexiconOutput$ = GetLexiconOutput$;
1096
- exports.GetSpeechSynthesisTask$ = GetSpeechSynthesisTask$;
1097
441
  exports.GetSpeechSynthesisTaskCommand = GetSpeechSynthesisTaskCommand;
1098
- exports.GetSpeechSynthesisTaskInput$ = GetSpeechSynthesisTaskInput$;
1099
- exports.GetSpeechSynthesisTaskOutput$ = GetSpeechSynthesisTaskOutput$;
1100
- exports.InvalidLexiconException = InvalidLexiconException;
1101
- exports.InvalidLexiconException$ = InvalidLexiconException$;
1102
- exports.InvalidNextTokenException = InvalidNextTokenException;
1103
- exports.InvalidNextTokenException$ = InvalidNextTokenException$;
1104
- exports.InvalidS3BucketException = InvalidS3BucketException;
1105
- exports.InvalidS3BucketException$ = InvalidS3BucketException$;
1106
- exports.InvalidS3KeyException = InvalidS3KeyException;
1107
- exports.InvalidS3KeyException$ = InvalidS3KeyException$;
1108
- exports.InvalidSampleRateException = InvalidSampleRateException;
1109
- exports.InvalidSampleRateException$ = InvalidSampleRateException$;
1110
- exports.InvalidSnsTopicArnException = InvalidSnsTopicArnException;
1111
- exports.InvalidSnsTopicArnException$ = InvalidSnsTopicArnException$;
1112
- exports.InvalidSsmlException = InvalidSsmlException;
1113
- exports.InvalidSsmlException$ = InvalidSsmlException$;
1114
- exports.InvalidTaskIdException = InvalidTaskIdException;
1115
- exports.InvalidTaskIdException$ = InvalidTaskIdException$;
1116
442
  exports.LanguageCode = LanguageCode;
1117
- exports.LanguageNotSupportedException = LanguageNotSupportedException;
1118
- exports.LanguageNotSupportedException$ = LanguageNotSupportedException$;
1119
- exports.Lexicon$ = Lexicon$;
1120
- exports.LexiconAttributes$ = LexiconAttributes$;
1121
- exports.LexiconDescription$ = LexiconDescription$;
1122
- exports.LexiconNotFoundException = LexiconNotFoundException;
1123
- exports.LexiconNotFoundException$ = LexiconNotFoundException$;
1124
- exports.LexiconSizeExceededException = LexiconSizeExceededException;
1125
- exports.LexiconSizeExceededException$ = LexiconSizeExceededException$;
1126
- exports.ListLexicons$ = ListLexicons$;
1127
443
  exports.ListLexiconsCommand = ListLexiconsCommand;
1128
- exports.ListLexiconsInput$ = ListLexiconsInput$;
1129
- exports.ListLexiconsOutput$ = ListLexiconsOutput$;
1130
- exports.ListSpeechSynthesisTasks$ = ListSpeechSynthesisTasks$;
1131
444
  exports.ListSpeechSynthesisTasksCommand = ListSpeechSynthesisTasksCommand;
1132
- exports.ListSpeechSynthesisTasksInput$ = ListSpeechSynthesisTasksInput$;
1133
- exports.ListSpeechSynthesisTasksOutput$ = ListSpeechSynthesisTasksOutput$;
1134
- exports.MarksNotSupportedForFormatException = MarksNotSupportedForFormatException;
1135
- exports.MarksNotSupportedForFormatException$ = MarksNotSupportedForFormatException$;
1136
- exports.MaxLexemeLengthExceededException = MaxLexemeLengthExceededException;
1137
- exports.MaxLexemeLengthExceededException$ = MaxLexemeLengthExceededException$;
1138
- exports.MaxLexiconsNumberExceededException = MaxLexiconsNumberExceededException;
1139
- exports.MaxLexiconsNumberExceededException$ = MaxLexiconsNumberExceededException$;
1140
445
  exports.OutputFormat = OutputFormat;
1141
446
  exports.Polly = Polly;
1142
447
  exports.PollyClient = PollyClient;
1143
- exports.PollyServiceException = PollyServiceException;
1144
- exports.PollyServiceException$ = PollyServiceException$;
1145
- exports.PutLexicon$ = PutLexicon$;
1146
448
  exports.PutLexiconCommand = PutLexiconCommand;
1147
- exports.PutLexiconInput$ = PutLexiconInput$;
1148
- exports.PutLexiconOutput$ = PutLexiconOutput$;
1149
- exports.ServiceFailureException = ServiceFailureException;
1150
- exports.ServiceFailureException$ = ServiceFailureException$;
1151
449
  exports.SpeechMarkType = SpeechMarkType;
1152
- exports.SsmlMarksNotSupportedForTextTypeException = SsmlMarksNotSupportedForTextTypeException;
1153
- exports.SsmlMarksNotSupportedForTextTypeException$ = SsmlMarksNotSupportedForTextTypeException$;
1154
- exports.StartSpeechSynthesisTask$ = StartSpeechSynthesisTask$;
1155
450
  exports.StartSpeechSynthesisTaskCommand = StartSpeechSynthesisTaskCommand;
1156
- exports.StartSpeechSynthesisTaskInput$ = StartSpeechSynthesisTaskInput$;
1157
- exports.StartSpeechSynthesisTaskOutput$ = StartSpeechSynthesisTaskOutput$;
1158
- exports.SynthesisTask$ = SynthesisTask$;
1159
- exports.SynthesisTaskNotFoundException = SynthesisTaskNotFoundException;
1160
- exports.SynthesisTaskNotFoundException$ = SynthesisTaskNotFoundException$;
1161
- exports.SynthesizeSpeech$ = SynthesizeSpeech$;
1162
451
  exports.SynthesizeSpeechCommand = SynthesizeSpeechCommand;
1163
- exports.SynthesizeSpeechInput$ = SynthesizeSpeechInput$;
1164
- exports.SynthesizeSpeechOutput$ = SynthesizeSpeechOutput$;
1165
452
  exports.TaskStatus = TaskStatus;
1166
- exports.TextLengthExceededException = TextLengthExceededException;
1167
- exports.TextLengthExceededException$ = TextLengthExceededException$;
1168
453
  exports.TextType = TextType;
1169
- exports.UnsupportedPlsAlphabetException = UnsupportedPlsAlphabetException;
1170
- exports.UnsupportedPlsAlphabetException$ = UnsupportedPlsAlphabetException$;
1171
- exports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException;
1172
- exports.UnsupportedPlsLanguageException$ = UnsupportedPlsLanguageException$;
1173
- exports.Voice$ = Voice$;
1174
454
  exports.VoiceId = VoiceId;
1175
455
  exports.paginateListSpeechSynthesisTasks = paginateListSpeechSynthesisTasks;
456
+ Object.keys(schemas_0).forEach(function (k) {
457
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
458
+ enumerable: true,
459
+ get: function () { return schemas_0[k]; }
460
+ });
461
+ });
462
+ Object.keys(errors).forEach(function (k) {
463
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
464
+ enumerable: true,
465
+ get: function () { return errors[k]; }
466
+ });
467
+ });