@aws-sdk/client-polly 3.118.0 → 3.121.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.119.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.1...v3.119.0) (2022-06-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **client-polly:** Add 4 new neural voices - Pedro (es-US), Liam (fr-CA), Daniel (de-DE) and Arthur (en-GB). ([6fbb85a](https://github.com/aws/aws-sdk-js-v3/commit/6fbb85a5eab8425275ff1fe467cab747a35607ef))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-polly
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-polly
|
|
@@ -273,8 +273,7 @@ const deserializeAws_restJson1DeleteLexiconCommandError = async (output, context
|
|
|
273
273
|
body: await parseBody(output.body, context),
|
|
274
274
|
};
|
|
275
275
|
let response;
|
|
276
|
-
|
|
277
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
276
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
278
277
|
switch (errorCode) {
|
|
279
278
|
case "LexiconNotFoundException":
|
|
280
279
|
case "com.amazonaws.polly#LexiconNotFoundException":
|
|
@@ -284,10 +283,12 @@ const deserializeAws_restJson1DeleteLexiconCommandError = async (output, context
|
|
|
284
283
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
285
284
|
default:
|
|
286
285
|
const parsedBody = parsedOutput.body;
|
|
286
|
+
const $metadata = deserializeMetadata(output);
|
|
287
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
287
288
|
response = new PollyServiceException_1.PollyServiceException({
|
|
288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
289
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
289
290
|
$fault: "client",
|
|
290
|
-
$metadata
|
|
291
|
+
$metadata,
|
|
291
292
|
});
|
|
292
293
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
293
294
|
}
|
|
@@ -317,8 +318,7 @@ const deserializeAws_restJson1DescribeVoicesCommandError = async (output, contex
|
|
|
317
318
|
body: await parseBody(output.body, context),
|
|
318
319
|
};
|
|
319
320
|
let response;
|
|
320
|
-
|
|
321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
322
322
|
switch (errorCode) {
|
|
323
323
|
case "InvalidNextTokenException":
|
|
324
324
|
case "com.amazonaws.polly#InvalidNextTokenException":
|
|
@@ -328,10 +328,12 @@ const deserializeAws_restJson1DescribeVoicesCommandError = async (output, contex
|
|
|
328
328
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
329
329
|
default:
|
|
330
330
|
const parsedBody = parsedOutput.body;
|
|
331
|
+
const $metadata = deserializeMetadata(output);
|
|
332
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
331
333
|
response = new PollyServiceException_1.PollyServiceException({
|
|
332
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
334
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
333
335
|
$fault: "client",
|
|
334
|
-
$metadata
|
|
336
|
+
$metadata,
|
|
335
337
|
});
|
|
336
338
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
337
339
|
}
|
|
@@ -361,8 +363,7 @@ const deserializeAws_restJson1GetLexiconCommandError = async (output, context) =
|
|
|
361
363
|
body: await parseBody(output.body, context),
|
|
362
364
|
};
|
|
363
365
|
let response;
|
|
364
|
-
|
|
365
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
367
|
switch (errorCode) {
|
|
367
368
|
case "LexiconNotFoundException":
|
|
368
369
|
case "com.amazonaws.polly#LexiconNotFoundException":
|
|
@@ -372,10 +373,12 @@ const deserializeAws_restJson1GetLexiconCommandError = async (output, context) =
|
|
|
372
373
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
373
374
|
default:
|
|
374
375
|
const parsedBody = parsedOutput.body;
|
|
376
|
+
const $metadata = deserializeMetadata(output);
|
|
377
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
375
378
|
response = new PollyServiceException_1.PollyServiceException({
|
|
376
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
379
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
377
380
|
$fault: "client",
|
|
378
|
-
$metadata
|
|
381
|
+
$metadata,
|
|
379
382
|
});
|
|
380
383
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
381
384
|
}
|
|
@@ -401,8 +404,7 @@ const deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = async (output
|
|
|
401
404
|
body: await parseBody(output.body, context),
|
|
402
405
|
};
|
|
403
406
|
let response;
|
|
404
|
-
|
|
405
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
406
408
|
switch (errorCode) {
|
|
407
409
|
case "InvalidTaskIdException":
|
|
408
410
|
case "com.amazonaws.polly#InvalidTaskIdException":
|
|
@@ -415,10 +417,12 @@ const deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = async (output
|
|
|
415
417
|
throw await deserializeAws_restJson1SynthesisTaskNotFoundExceptionResponse(parsedOutput, context);
|
|
416
418
|
default:
|
|
417
419
|
const parsedBody = parsedOutput.body;
|
|
420
|
+
const $metadata = deserializeMetadata(output);
|
|
421
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
418
422
|
response = new PollyServiceException_1.PollyServiceException({
|
|
419
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
420
424
|
$fault: "client",
|
|
421
|
-
$metadata
|
|
425
|
+
$metadata,
|
|
422
426
|
});
|
|
423
427
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
424
428
|
}
|
|
@@ -448,8 +452,7 @@ const deserializeAws_restJson1ListLexiconsCommandError = async (output, context)
|
|
|
448
452
|
body: await parseBody(output.body, context),
|
|
449
453
|
};
|
|
450
454
|
let response;
|
|
451
|
-
|
|
452
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
456
|
switch (errorCode) {
|
|
454
457
|
case "InvalidNextTokenException":
|
|
455
458
|
case "com.amazonaws.polly#InvalidNextTokenException":
|
|
@@ -459,10 +462,12 @@ const deserializeAws_restJson1ListLexiconsCommandError = async (output, context)
|
|
|
459
462
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
460
463
|
default:
|
|
461
464
|
const parsedBody = parsedOutput.body;
|
|
465
|
+
const $metadata = deserializeMetadata(output);
|
|
466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
462
467
|
response = new PollyServiceException_1.PollyServiceException({
|
|
463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
464
469
|
$fault: "client",
|
|
465
|
-
$metadata
|
|
470
|
+
$metadata,
|
|
466
471
|
});
|
|
467
472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
468
473
|
}
|
|
@@ -492,8 +497,7 @@ const deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = async (outp
|
|
|
492
497
|
body: await parseBody(output.body, context),
|
|
493
498
|
};
|
|
494
499
|
let response;
|
|
495
|
-
|
|
496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
501
|
switch (errorCode) {
|
|
498
502
|
case "InvalidNextTokenException":
|
|
499
503
|
case "com.amazonaws.polly#InvalidNextTokenException":
|
|
@@ -503,10 +507,12 @@ const deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = async (outp
|
|
|
503
507
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
504
508
|
default:
|
|
505
509
|
const parsedBody = parsedOutput.body;
|
|
510
|
+
const $metadata = deserializeMetadata(output);
|
|
511
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
506
512
|
response = new PollyServiceException_1.PollyServiceException({
|
|
507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
513
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
508
514
|
$fault: "client",
|
|
509
|
-
$metadata
|
|
515
|
+
$metadata,
|
|
510
516
|
});
|
|
511
517
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
512
518
|
}
|
|
@@ -528,8 +534,7 @@ const deserializeAws_restJson1PutLexiconCommandError = async (output, context) =
|
|
|
528
534
|
body: await parseBody(output.body, context),
|
|
529
535
|
};
|
|
530
536
|
let response;
|
|
531
|
-
|
|
532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
538
|
switch (errorCode) {
|
|
534
539
|
case "InvalidLexiconException":
|
|
535
540
|
case "com.amazonaws.polly#InvalidLexiconException":
|
|
@@ -554,10 +559,12 @@ const deserializeAws_restJson1PutLexiconCommandError = async (output, context) =
|
|
|
554
559
|
throw await deserializeAws_restJson1UnsupportedPlsLanguageExceptionResponse(parsedOutput, context);
|
|
555
560
|
default:
|
|
556
561
|
const parsedBody = parsedOutput.body;
|
|
562
|
+
const $metadata = deserializeMetadata(output);
|
|
563
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
557
564
|
response = new PollyServiceException_1.PollyServiceException({
|
|
558
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
559
566
|
$fault: "client",
|
|
560
|
-
$metadata
|
|
567
|
+
$metadata,
|
|
561
568
|
});
|
|
562
569
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
570
|
}
|
|
@@ -583,8 +590,7 @@ const deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = async (outp
|
|
|
583
590
|
body: await parseBody(output.body, context),
|
|
584
591
|
};
|
|
585
592
|
let response;
|
|
586
|
-
|
|
587
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
594
|
switch (errorCode) {
|
|
589
595
|
case "EngineNotSupportedException":
|
|
590
596
|
case "com.amazonaws.polly#EngineNotSupportedException":
|
|
@@ -624,10 +630,12 @@ const deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = async (outp
|
|
|
624
630
|
throw await deserializeAws_restJson1TextLengthExceededExceptionResponse(parsedOutput, context);
|
|
625
631
|
default:
|
|
626
632
|
const parsedBody = parsedOutput.body;
|
|
633
|
+
const $metadata = deserializeMetadata(output);
|
|
634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
627
635
|
response = new PollyServiceException_1.PollyServiceException({
|
|
628
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
629
637
|
$fault: "client",
|
|
630
|
-
$metadata
|
|
638
|
+
$metadata,
|
|
631
639
|
});
|
|
632
640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
641
|
}
|
|
@@ -659,8 +667,7 @@ const deserializeAws_restJson1SynthesizeSpeechCommandError = async (output, cont
|
|
|
659
667
|
body: await parseBody(output.body, context),
|
|
660
668
|
};
|
|
661
669
|
let response;
|
|
662
|
-
|
|
663
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
671
|
switch (errorCode) {
|
|
665
672
|
case "EngineNotSupportedException":
|
|
666
673
|
case "com.amazonaws.polly#EngineNotSupportedException":
|
|
@@ -691,10 +698,12 @@ const deserializeAws_restJson1SynthesizeSpeechCommandError = async (output, cont
|
|
|
691
698
|
throw await deserializeAws_restJson1TextLengthExceededExceptionResponse(parsedOutput, context);
|
|
692
699
|
default:
|
|
693
700
|
const parsedBody = parsedOutput.body;
|
|
701
|
+
const $metadata = deserializeMetadata(output);
|
|
702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
694
703
|
response = new PollyServiceException_1.PollyServiceException({
|
|
695
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
696
705
|
$fault: "client",
|
|
697
|
-
$metadata
|
|
706
|
+
$metadata,
|
|
698
707
|
});
|
|
699
708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
700
709
|
}
|
|
@@ -1163,5 +1172,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1163
1172
|
if (data["__type"] !== undefined) {
|
|
1164
1173
|
return sanitizeErrorCode(data["__type"]);
|
|
1165
1174
|
}
|
|
1166
|
-
return "";
|
|
1167
1175
|
};
|
|
@@ -282,7 +282,7 @@ export var deserializeAws_restJson1DeleteLexiconCommand = function (output, cont
|
|
|
282
282
|
});
|
|
283
283
|
}); };
|
|
284
284
|
var deserializeAws_restJson1DeleteLexiconCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
285
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
285
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
286
286
|
var _c;
|
|
287
287
|
return __generator(this, function (_d) {
|
|
288
288
|
switch (_d.label) {
|
|
@@ -292,7 +292,6 @@ var deserializeAws_restJson1DeleteLexiconCommandError = function (output, contex
|
|
|
292
292
|
return [4, parseBody(output.body, context)];
|
|
293
293
|
case 1:
|
|
294
294
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
295
|
-
errorCode = "UnknownError";
|
|
296
295
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
297
296
|
_b = errorCode;
|
|
298
297
|
switch (_b) {
|
|
@@ -308,10 +307,12 @@ var deserializeAws_restJson1DeleteLexiconCommandError = function (output, contex
|
|
|
308
307
|
case 5: throw _d.sent();
|
|
309
308
|
case 6:
|
|
310
309
|
parsedBody = parsedOutput.body;
|
|
310
|
+
$metadata = deserializeMetadata(output);
|
|
311
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
311
312
|
response = new __BaseException({
|
|
312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
313
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
313
314
|
$fault: "client",
|
|
314
|
-
$metadata:
|
|
315
|
+
$metadata: $metadata,
|
|
315
316
|
});
|
|
316
317
|
throw __decorateServiceException(response, parsedBody);
|
|
317
318
|
}
|
|
@@ -346,7 +347,7 @@ export var deserializeAws_restJson1DescribeVoicesCommand = function (output, con
|
|
|
346
347
|
});
|
|
347
348
|
}); };
|
|
348
349
|
var deserializeAws_restJson1DescribeVoicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
349
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
350
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
350
351
|
var _c;
|
|
351
352
|
return __generator(this, function (_d) {
|
|
352
353
|
switch (_d.label) {
|
|
@@ -356,7 +357,6 @@ var deserializeAws_restJson1DescribeVoicesCommandError = function (output, conte
|
|
|
356
357
|
return [4, parseBody(output.body, context)];
|
|
357
358
|
case 1:
|
|
358
359
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
359
|
-
errorCode = "UnknownError";
|
|
360
360
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
361
361
|
_b = errorCode;
|
|
362
362
|
switch (_b) {
|
|
@@ -372,10 +372,12 @@ var deserializeAws_restJson1DescribeVoicesCommandError = function (output, conte
|
|
|
372
372
|
case 5: throw _d.sent();
|
|
373
373
|
case 6:
|
|
374
374
|
parsedBody = parsedOutput.body;
|
|
375
|
+
$metadata = deserializeMetadata(output);
|
|
376
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
375
377
|
response = new __BaseException({
|
|
376
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
377
379
|
$fault: "client",
|
|
378
|
-
$metadata:
|
|
380
|
+
$metadata: $metadata,
|
|
379
381
|
});
|
|
380
382
|
throw __decorateServiceException(response, parsedBody);
|
|
381
383
|
}
|
|
@@ -410,7 +412,7 @@ export var deserializeAws_restJson1GetLexiconCommand = function (output, context
|
|
|
410
412
|
});
|
|
411
413
|
}); };
|
|
412
414
|
var deserializeAws_restJson1GetLexiconCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
413
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
415
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
414
416
|
var _c;
|
|
415
417
|
return __generator(this, function (_d) {
|
|
416
418
|
switch (_d.label) {
|
|
@@ -420,7 +422,6 @@ var deserializeAws_restJson1GetLexiconCommandError = function (output, context)
|
|
|
420
422
|
return [4, parseBody(output.body, context)];
|
|
421
423
|
case 1:
|
|
422
424
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
423
|
-
errorCode = "UnknownError";
|
|
424
425
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
426
|
_b = errorCode;
|
|
426
427
|
switch (_b) {
|
|
@@ -436,10 +437,12 @@ var deserializeAws_restJson1GetLexiconCommandError = function (output, context)
|
|
|
436
437
|
case 5: throw _d.sent();
|
|
437
438
|
case 6:
|
|
438
439
|
parsedBody = parsedOutput.body;
|
|
440
|
+
$metadata = deserializeMetadata(output);
|
|
441
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
439
442
|
response = new __BaseException({
|
|
440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
443
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
441
444
|
$fault: "client",
|
|
442
|
-
$metadata:
|
|
445
|
+
$metadata: $metadata,
|
|
443
446
|
});
|
|
444
447
|
throw __decorateServiceException(response, parsedBody);
|
|
445
448
|
}
|
|
@@ -470,7 +473,7 @@ export var deserializeAws_restJson1GetSpeechSynthesisTaskCommand = function (out
|
|
|
470
473
|
});
|
|
471
474
|
}); };
|
|
472
475
|
var deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
473
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
476
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
474
477
|
var _c;
|
|
475
478
|
return __generator(this, function (_d) {
|
|
476
479
|
switch (_d.label) {
|
|
@@ -480,7 +483,6 @@ var deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = function (outpu
|
|
|
480
483
|
return [4, parseBody(output.body, context)];
|
|
481
484
|
case 1:
|
|
482
485
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
483
|
-
errorCode = "UnknownError";
|
|
484
486
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
487
|
_b = errorCode;
|
|
486
488
|
switch (_b) {
|
|
@@ -500,10 +502,12 @@ var deserializeAws_restJson1GetSpeechSynthesisTaskCommandError = function (outpu
|
|
|
500
502
|
case 7: throw _d.sent();
|
|
501
503
|
case 8:
|
|
502
504
|
parsedBody = parsedOutput.body;
|
|
505
|
+
$metadata = deserializeMetadata(output);
|
|
506
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
503
507
|
response = new __BaseException({
|
|
504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
505
509
|
$fault: "client",
|
|
506
|
-
$metadata:
|
|
510
|
+
$metadata: $metadata,
|
|
507
511
|
});
|
|
508
512
|
throw __decorateServiceException(response, parsedBody);
|
|
509
513
|
}
|
|
@@ -538,7 +542,7 @@ export var deserializeAws_restJson1ListLexiconsCommand = function (output, conte
|
|
|
538
542
|
});
|
|
539
543
|
}); };
|
|
540
544
|
var deserializeAws_restJson1ListLexiconsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
541
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
545
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
542
546
|
var _c;
|
|
543
547
|
return __generator(this, function (_d) {
|
|
544
548
|
switch (_d.label) {
|
|
@@ -548,7 +552,6 @@ var deserializeAws_restJson1ListLexiconsCommandError = function (output, context
|
|
|
548
552
|
return [4, parseBody(output.body, context)];
|
|
549
553
|
case 1:
|
|
550
554
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
551
|
-
errorCode = "UnknownError";
|
|
552
555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
556
|
_b = errorCode;
|
|
554
557
|
switch (_b) {
|
|
@@ -564,10 +567,12 @@ var deserializeAws_restJson1ListLexiconsCommandError = function (output, context
|
|
|
564
567
|
case 5: throw _d.sent();
|
|
565
568
|
case 6:
|
|
566
569
|
parsedBody = parsedOutput.body;
|
|
570
|
+
$metadata = deserializeMetadata(output);
|
|
571
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
567
572
|
response = new __BaseException({
|
|
568
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
573
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
569
574
|
$fault: "client",
|
|
570
|
-
$metadata:
|
|
575
|
+
$metadata: $metadata,
|
|
571
576
|
});
|
|
572
577
|
throw __decorateServiceException(response, parsedBody);
|
|
573
578
|
}
|
|
@@ -602,7 +607,7 @@ export var deserializeAws_restJson1ListSpeechSynthesisTasksCommand = function (o
|
|
|
602
607
|
});
|
|
603
608
|
}); };
|
|
604
609
|
var deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
605
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
610
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
606
611
|
var _c;
|
|
607
612
|
return __generator(this, function (_d) {
|
|
608
613
|
switch (_d.label) {
|
|
@@ -612,7 +617,6 @@ var deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = function (out
|
|
|
612
617
|
return [4, parseBody(output.body, context)];
|
|
613
618
|
case 1:
|
|
614
619
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
615
|
-
errorCode = "UnknownError";
|
|
616
620
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
621
|
_b = errorCode;
|
|
618
622
|
switch (_b) {
|
|
@@ -628,10 +632,12 @@ var deserializeAws_restJson1ListSpeechSynthesisTasksCommandError = function (out
|
|
|
628
632
|
case 5: throw _d.sent();
|
|
629
633
|
case 6:
|
|
630
634
|
parsedBody = parsedOutput.body;
|
|
635
|
+
$metadata = deserializeMetadata(output);
|
|
636
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
631
637
|
response = new __BaseException({
|
|
632
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
638
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
633
639
|
$fault: "client",
|
|
634
|
-
$metadata:
|
|
640
|
+
$metadata: $metadata,
|
|
635
641
|
});
|
|
636
642
|
throw __decorateServiceException(response, parsedBody);
|
|
637
643
|
}
|
|
@@ -656,7 +662,7 @@ export var deserializeAws_restJson1PutLexiconCommand = function (output, context
|
|
|
656
662
|
});
|
|
657
663
|
}); };
|
|
658
664
|
var deserializeAws_restJson1PutLexiconCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
659
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
665
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
660
666
|
var _c;
|
|
661
667
|
return __generator(this, function (_d) {
|
|
662
668
|
switch (_d.label) {
|
|
@@ -666,7 +672,6 @@ var deserializeAws_restJson1PutLexiconCommandError = function (output, context)
|
|
|
666
672
|
return [4, parseBody(output.body, context)];
|
|
667
673
|
case 1:
|
|
668
674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
669
|
-
errorCode = "UnknownError";
|
|
670
675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
676
|
_b = errorCode;
|
|
672
677
|
switch (_b) {
|
|
@@ -702,10 +707,12 @@ var deserializeAws_restJson1PutLexiconCommandError = function (output, context)
|
|
|
702
707
|
case 15: throw _d.sent();
|
|
703
708
|
case 16:
|
|
704
709
|
parsedBody = parsedOutput.body;
|
|
710
|
+
$metadata = deserializeMetadata(output);
|
|
711
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
705
712
|
response = new __BaseException({
|
|
706
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
713
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
707
714
|
$fault: "client",
|
|
708
|
-
$metadata:
|
|
715
|
+
$metadata: $metadata,
|
|
709
716
|
});
|
|
710
717
|
throw __decorateServiceException(response, parsedBody);
|
|
711
718
|
}
|
|
@@ -736,7 +743,7 @@ export var deserializeAws_restJson1StartSpeechSynthesisTaskCommand = function (o
|
|
|
736
743
|
});
|
|
737
744
|
}); };
|
|
738
745
|
var deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
739
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
746
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
740
747
|
var _c;
|
|
741
748
|
return __generator(this, function (_d) {
|
|
742
749
|
switch (_d.label) {
|
|
@@ -746,7 +753,6 @@ var deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = function (out
|
|
|
746
753
|
return [4, parseBody(output.body, context)];
|
|
747
754
|
case 1:
|
|
748
755
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
749
|
-
errorCode = "UnknownError";
|
|
750
756
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
757
|
_b = errorCode;
|
|
752
758
|
switch (_b) {
|
|
@@ -802,10 +808,12 @@ var deserializeAws_restJson1StartSpeechSynthesisTaskCommandError = function (out
|
|
|
802
808
|
case 25: throw _d.sent();
|
|
803
809
|
case 26:
|
|
804
810
|
parsedBody = parsedOutput.body;
|
|
811
|
+
$metadata = deserializeMetadata(output);
|
|
812
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
805
813
|
response = new __BaseException({
|
|
806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
814
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
807
815
|
$fault: "client",
|
|
808
|
-
$metadata:
|
|
816
|
+
$metadata: $metadata,
|
|
809
817
|
});
|
|
810
818
|
throw __decorateServiceException(response, parsedBody);
|
|
811
819
|
}
|
|
@@ -835,7 +843,7 @@ export var deserializeAws_restJson1SynthesizeSpeechCommand = function (output, c
|
|
|
835
843
|
});
|
|
836
844
|
}); };
|
|
837
845
|
var deserializeAws_restJson1SynthesizeSpeechCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
838
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
846
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
839
847
|
var _c;
|
|
840
848
|
return __generator(this, function (_d) {
|
|
841
849
|
switch (_d.label) {
|
|
@@ -845,7 +853,6 @@ var deserializeAws_restJson1SynthesizeSpeechCommandError = function (output, con
|
|
|
845
853
|
return [4, parseBody(output.body, context)];
|
|
846
854
|
case 1:
|
|
847
855
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
848
|
-
errorCode = "UnknownError";
|
|
849
856
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
857
|
_b = errorCode;
|
|
851
858
|
switch (_b) {
|
|
@@ -889,10 +896,12 @@ var deserializeAws_restJson1SynthesizeSpeechCommandError = function (output, con
|
|
|
889
896
|
case 19: throw _d.sent();
|
|
890
897
|
case 20:
|
|
891
898
|
parsedBody = parsedOutput.body;
|
|
899
|
+
$metadata = deserializeMetadata(output);
|
|
900
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
892
901
|
response = new __BaseException({
|
|
893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
902
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
894
903
|
$fault: "client",
|
|
895
|
-
$metadata:
|
|
904
|
+
$metadata: $metadata,
|
|
896
905
|
});
|
|
897
906
|
throw __decorateServiceException(response, parsedBody);
|
|
898
907
|
}
|
|
@@ -1369,5 +1378,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1369
1378
|
if (data["__type"] !== undefined) {
|
|
1370
1379
|
return sanitizeErrorCode(data["__type"]);
|
|
1371
1380
|
}
|
|
1372
|
-
return "";
|
|
1373
1381
|
};
|
|
@@ -90,7 +90,7 @@ export declare namespace DescribeVoicesInput {
|
|
|
90
90
|
const filterSensitiveLog: (obj: DescribeVoicesInput) => any;
|
|
91
91
|
}
|
|
92
92
|
export declare type Gender = "Female" | "Male";
|
|
93
|
-
export declare type VoiceId = "Aditi" | "Amy" | "Aria" | "Arlet" | "Astrid" | "Ayanda" | "Bianca" | "Brian" | "Camila" | "Carla" | "Carmen" | "Celine" | "Chantal" | "Conchita" | "Cristiano" | "Dora" | "Emma" | "Enrique" | "Ewa" | "Filiz" | "Gabrielle" | "Geraint" | "Giorgio" | "Gwyneth" | "Hannah" | "Hans" | "Ines" | "Ivy" | "Jacek" | "Jan" | "Joanna" | "Joey" | "Justin" | "Karl" | "Kendra" | "Kevin" | "Kimberly" | "Lea" | "Liv" | "Lotte" | "Lucia" | "Lupe" | "Mads" | "Maja" | "Marlene" | "Mathieu" | "Matthew" | "Maxim" | "Mia" | "Miguel" | "Mizuki" | "Naja" | "Nicole" | "Olivia" | "Penelope" | "Raveena" | "Ricardo" | "Ruben" | "Russell" | "Salli" | "Seoyeon" | "Takumi" | "Tatyana" | "Vicki" | "Vitoria" | "Zeina" | "Zhiyu";
|
|
93
|
+
export declare type VoiceId = "Aditi" | "Amy" | "Aria" | "Arlet" | "Arthur" | "Astrid" | "Ayanda" | "Bianca" | "Brian" | "Camila" | "Carla" | "Carmen" | "Celine" | "Chantal" | "Conchita" | "Cristiano" | "Daniel" | "Dora" | "Emma" | "Enrique" | "Ewa" | "Filiz" | "Gabrielle" | "Geraint" | "Giorgio" | "Gwyneth" | "Hannah" | "Hans" | "Ines" | "Ivy" | "Jacek" | "Jan" | "Joanna" | "Joey" | "Justin" | "Karl" | "Kendra" | "Kevin" | "Kimberly" | "Lea" | "Liam" | "Liv" | "Lotte" | "Lucia" | "Lupe" | "Mads" | "Maja" | "Marlene" | "Mathieu" | "Matthew" | "Maxim" | "Mia" | "Miguel" | "Mizuki" | "Naja" | "Nicole" | "Olivia" | "Pedro" | "Penelope" | "Raveena" | "Ricardo" | "Ruben" | "Russell" | "Salli" | "Seoyeon" | "Takumi" | "Tatyana" | "Vicki" | "Vitoria" | "Zeina" | "Zhiyu";
|
|
94
94
|
/**
|
|
95
95
|
* <p>Description of the voice.</p>
|
|
96
96
|
*/
|
|
@@ -50,7 +50,7 @@ export declare namespace DescribeVoicesInput {
|
|
|
50
50
|
const filterSensitiveLog: (obj: DescribeVoicesInput) => any;
|
|
51
51
|
}
|
|
52
52
|
export declare type Gender = "Female" | "Male";
|
|
53
|
-
export declare type VoiceId = "Aditi" | "Amy" | "Aria" | "Arlet" | "Astrid" | "Ayanda" | "Bianca" | "Brian" | "Camila" | "Carla" | "Carmen" | "Celine" | "Chantal" | "Conchita" | "Cristiano" | "Dora" | "Emma" | "Enrique" | "Ewa" | "Filiz" | "Gabrielle" | "Geraint" | "Giorgio" | "Gwyneth" | "Hannah" | "Hans" | "Ines" | "Ivy" | "Jacek" | "Jan" | "Joanna" | "Joey" | "Justin" | "Karl" | "Kendra" | "Kevin" | "Kimberly" | "Lea" | "Liv" | "Lotte" | "Lucia" | "Lupe" | "Mads" | "Maja" | "Marlene" | "Mathieu" | "Matthew" | "Maxim" | "Mia" | "Miguel" | "Mizuki" | "Naja" | "Nicole" | "Olivia" | "Penelope" | "Raveena" | "Ricardo" | "Ruben" | "Russell" | "Salli" | "Seoyeon" | "Takumi" | "Tatyana" | "Vicki" | "Vitoria" | "Zeina" | "Zhiyu";
|
|
53
|
+
export declare type VoiceId = "Aditi" | "Amy" | "Aria" | "Arlet" | "Arthur" | "Astrid" | "Ayanda" | "Bianca" | "Brian" | "Camila" | "Carla" | "Carmen" | "Celine" | "Chantal" | "Conchita" | "Cristiano" | "Daniel" | "Dora" | "Emma" | "Enrique" | "Ewa" | "Filiz" | "Gabrielle" | "Geraint" | "Giorgio" | "Gwyneth" | "Hannah" | "Hans" | "Ines" | "Ivy" | "Jacek" | "Jan" | "Joanna" | "Joey" | "Justin" | "Karl" | "Kendra" | "Kevin" | "Kimberly" | "Lea" | "Liam" | "Liv" | "Lotte" | "Lucia" | "Lupe" | "Mads" | "Maja" | "Marlene" | "Mathieu" | "Matthew" | "Maxim" | "Mia" | "Miguel" | "Mizuki" | "Naja" | "Nicole" | "Olivia" | "Pedro" | "Penelope" | "Raveena" | "Ricardo" | "Ruben" | "Russell" | "Salli" | "Seoyeon" | "Takumi" | "Tatyana" | "Vicki" | "Vitoria" | "Zeina" | "Zhiyu";
|
|
54
54
|
|
|
55
55
|
export interface Voice {
|
|
56
56
|
|
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.
|
|
4
|
+
"version": "3.121.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.121.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.110.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.121.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.110.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.110.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.110.0",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.110.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.110.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.110.0",
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.118.1",
|
|
32
32
|
"@aws-sdk/middleware-serde": "3.110.0",
|
|
33
33
|
"@aws-sdk/middleware-signing": "3.110.0",
|
|
34
34
|
"@aws-sdk/middleware-stack": "3.110.0",
|
|
35
35
|
"@aws-sdk/middleware-user-agent": "3.110.0",
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.110.0",
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.118.1",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.110.0",
|
|
39
39
|
"@aws-sdk/smithy-client": "3.110.0",
|
|
40
40
|
"@aws-sdk/types": "3.110.0",
|