@aws-sdk/client-transcribe 3.180.0 → 3.181.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 +12 -0
- package/dist-cjs/protocols/Aws_json1_1.js +45 -39
- package/dist-es/protocols/Aws_json1_1.js +52 -39
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-transcribe
|
|
@@ -413,7 +413,7 @@ exports.deserializeAws_json1_1CreateCallAnalyticsCategoryCommand = deserializeAw
|
|
|
413
413
|
const deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
414
414
|
const parsedOutput = {
|
|
415
415
|
...output,
|
|
416
|
-
body: await
|
|
416
|
+
body: await parseErrorBody(output.body, context),
|
|
417
417
|
};
|
|
418
418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
419
|
switch (errorCode) {
|
|
@@ -456,7 +456,7 @@ exports.deserializeAws_json1_1CreateLanguageModelCommand = deserializeAws_json1_
|
|
|
456
456
|
const deserializeAws_json1_1CreateLanguageModelCommandError = async (output, context) => {
|
|
457
457
|
const parsedOutput = {
|
|
458
458
|
...output,
|
|
459
|
-
body: await
|
|
459
|
+
body: await parseErrorBody(output.body, context),
|
|
460
460
|
};
|
|
461
461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
462
462
|
switch (errorCode) {
|
|
@@ -499,7 +499,7 @@ exports.deserializeAws_json1_1CreateMedicalVocabularyCommand = deserializeAws_js
|
|
|
499
499
|
const deserializeAws_json1_1CreateMedicalVocabularyCommandError = async (output, context) => {
|
|
500
500
|
const parsedOutput = {
|
|
501
501
|
...output,
|
|
502
|
-
body: await
|
|
502
|
+
body: await parseErrorBody(output.body, context),
|
|
503
503
|
};
|
|
504
504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
505
|
switch (errorCode) {
|
|
@@ -542,7 +542,7 @@ exports.deserializeAws_json1_1CreateVocabularyCommand = deserializeAws_json1_1Cr
|
|
|
542
542
|
const deserializeAws_json1_1CreateVocabularyCommandError = async (output, context) => {
|
|
543
543
|
const parsedOutput = {
|
|
544
544
|
...output,
|
|
545
|
-
body: await
|
|
545
|
+
body: await parseErrorBody(output.body, context),
|
|
546
546
|
};
|
|
547
547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
548
|
switch (errorCode) {
|
|
@@ -585,7 +585,7 @@ exports.deserializeAws_json1_1CreateVocabularyFilterCommand = deserializeAws_jso
|
|
|
585
585
|
const deserializeAws_json1_1CreateVocabularyFilterCommandError = async (output, context) => {
|
|
586
586
|
const parsedOutput = {
|
|
587
587
|
...output,
|
|
588
|
-
body: await
|
|
588
|
+
body: await parseErrorBody(output.body, context),
|
|
589
589
|
};
|
|
590
590
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
591
591
|
switch (errorCode) {
|
|
@@ -628,7 +628,7 @@ exports.deserializeAws_json1_1DeleteCallAnalyticsCategoryCommand = deserializeAw
|
|
|
628
628
|
const deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
629
629
|
const parsedOutput = {
|
|
630
630
|
...output,
|
|
631
|
-
body: await
|
|
631
|
+
body: await parseErrorBody(output.body, context),
|
|
632
632
|
};
|
|
633
633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
634
|
switch (errorCode) {
|
|
@@ -671,7 +671,7 @@ exports.deserializeAws_json1_1DeleteCallAnalyticsJobCommand = deserializeAws_jso
|
|
|
671
671
|
const deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = async (output, context) => {
|
|
672
672
|
const parsedOutput = {
|
|
673
673
|
...output,
|
|
674
|
-
body: await
|
|
674
|
+
body: await parseErrorBody(output.body, context),
|
|
675
675
|
};
|
|
676
676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
677
|
switch (errorCode) {
|
|
@@ -708,7 +708,7 @@ exports.deserializeAws_json1_1DeleteLanguageModelCommand = deserializeAws_json1_
|
|
|
708
708
|
const deserializeAws_json1_1DeleteLanguageModelCommandError = async (output, context) => {
|
|
709
709
|
const parsedOutput = {
|
|
710
710
|
...output,
|
|
711
|
-
body: await
|
|
711
|
+
body: await parseErrorBody(output.body, context),
|
|
712
712
|
};
|
|
713
713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
714
|
switch (errorCode) {
|
|
@@ -745,7 +745,7 @@ exports.deserializeAws_json1_1DeleteMedicalTranscriptionJobCommand = deserialize
|
|
|
745
745
|
const deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
746
746
|
const parsedOutput = {
|
|
747
747
|
...output,
|
|
748
|
-
body: await
|
|
748
|
+
body: await parseErrorBody(output.body, context),
|
|
749
749
|
};
|
|
750
750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
751
|
switch (errorCode) {
|
|
@@ -782,7 +782,7 @@ exports.deserializeAws_json1_1DeleteMedicalVocabularyCommand = deserializeAws_js
|
|
|
782
782
|
const deserializeAws_json1_1DeleteMedicalVocabularyCommandError = async (output, context) => {
|
|
783
783
|
const parsedOutput = {
|
|
784
784
|
...output,
|
|
785
|
-
body: await
|
|
785
|
+
body: await parseErrorBody(output.body, context),
|
|
786
786
|
};
|
|
787
787
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
788
|
switch (errorCode) {
|
|
@@ -822,7 +822,7 @@ exports.deserializeAws_json1_1DeleteTranscriptionJobCommand = deserializeAws_jso
|
|
|
822
822
|
const deserializeAws_json1_1DeleteTranscriptionJobCommandError = async (output, context) => {
|
|
823
823
|
const parsedOutput = {
|
|
824
824
|
...output,
|
|
825
|
-
body: await
|
|
825
|
+
body: await parseErrorBody(output.body, context),
|
|
826
826
|
};
|
|
827
827
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
828
|
switch (errorCode) {
|
|
@@ -859,7 +859,7 @@ exports.deserializeAws_json1_1DeleteVocabularyCommand = deserializeAws_json1_1De
|
|
|
859
859
|
const deserializeAws_json1_1DeleteVocabularyCommandError = async (output, context) => {
|
|
860
860
|
const parsedOutput = {
|
|
861
861
|
...output,
|
|
862
|
-
body: await
|
|
862
|
+
body: await parseErrorBody(output.body, context),
|
|
863
863
|
};
|
|
864
864
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
865
|
switch (errorCode) {
|
|
@@ -899,7 +899,7 @@ exports.deserializeAws_json1_1DeleteVocabularyFilterCommand = deserializeAws_jso
|
|
|
899
899
|
const deserializeAws_json1_1DeleteVocabularyFilterCommandError = async (output, context) => {
|
|
900
900
|
const parsedOutput = {
|
|
901
901
|
...output,
|
|
902
|
-
body: await
|
|
902
|
+
body: await parseErrorBody(output.body, context),
|
|
903
903
|
};
|
|
904
904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
905
|
switch (errorCode) {
|
|
@@ -942,7 +942,7 @@ exports.deserializeAws_json1_1DescribeLanguageModelCommand = deserializeAws_json
|
|
|
942
942
|
const deserializeAws_json1_1DescribeLanguageModelCommandError = async (output, context) => {
|
|
943
943
|
const parsedOutput = {
|
|
944
944
|
...output,
|
|
945
|
-
body: await
|
|
945
|
+
body: await parseErrorBody(output.body, context),
|
|
946
946
|
};
|
|
947
947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
948
|
switch (errorCode) {
|
|
@@ -985,7 +985,7 @@ exports.deserializeAws_json1_1GetCallAnalyticsCategoryCommand = deserializeAws_j
|
|
|
985
985
|
const deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
986
986
|
const parsedOutput = {
|
|
987
987
|
...output,
|
|
988
|
-
body: await
|
|
988
|
+
body: await parseErrorBody(output.body, context),
|
|
989
989
|
};
|
|
990
990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
991
|
switch (errorCode) {
|
|
@@ -1028,7 +1028,7 @@ exports.deserializeAws_json1_1GetCallAnalyticsJobCommand = deserializeAws_json1_
|
|
|
1028
1028
|
const deserializeAws_json1_1GetCallAnalyticsJobCommandError = async (output, context) => {
|
|
1029
1029
|
const parsedOutput = {
|
|
1030
1030
|
...output,
|
|
1031
|
-
body: await
|
|
1031
|
+
body: await parseErrorBody(output.body, context),
|
|
1032
1032
|
};
|
|
1033
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1034
|
switch (errorCode) {
|
|
@@ -1071,7 +1071,7 @@ exports.deserializeAws_json1_1GetMedicalTranscriptionJobCommand = deserializeAws
|
|
|
1071
1071
|
const deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
1072
1072
|
const parsedOutput = {
|
|
1073
1073
|
...output,
|
|
1074
|
-
body: await
|
|
1074
|
+
body: await parseErrorBody(output.body, context),
|
|
1075
1075
|
};
|
|
1076
1076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
1077
|
switch (errorCode) {
|
|
@@ -1114,7 +1114,7 @@ exports.deserializeAws_json1_1GetMedicalVocabularyCommand = deserializeAws_json1
|
|
|
1114
1114
|
const deserializeAws_json1_1GetMedicalVocabularyCommandError = async (output, context) => {
|
|
1115
1115
|
const parsedOutput = {
|
|
1116
1116
|
...output,
|
|
1117
|
-
body: await
|
|
1117
|
+
body: await parseErrorBody(output.body, context),
|
|
1118
1118
|
};
|
|
1119
1119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1120
|
switch (errorCode) {
|
|
@@ -1157,7 +1157,7 @@ exports.deserializeAws_json1_1GetTranscriptionJobCommand = deserializeAws_json1_
|
|
|
1157
1157
|
const deserializeAws_json1_1GetTranscriptionJobCommandError = async (output, context) => {
|
|
1158
1158
|
const parsedOutput = {
|
|
1159
1159
|
...output,
|
|
1160
|
-
body: await
|
|
1160
|
+
body: await parseErrorBody(output.body, context),
|
|
1161
1161
|
};
|
|
1162
1162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
1163
|
switch (errorCode) {
|
|
@@ -1200,7 +1200,7 @@ exports.deserializeAws_json1_1GetVocabularyCommand = deserializeAws_json1_1GetVo
|
|
|
1200
1200
|
const deserializeAws_json1_1GetVocabularyCommandError = async (output, context) => {
|
|
1201
1201
|
const parsedOutput = {
|
|
1202
1202
|
...output,
|
|
1203
|
-
body: await
|
|
1203
|
+
body: await parseErrorBody(output.body, context),
|
|
1204
1204
|
};
|
|
1205
1205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1206
|
switch (errorCode) {
|
|
@@ -1243,7 +1243,7 @@ exports.deserializeAws_json1_1GetVocabularyFilterCommand = deserializeAws_json1_
|
|
|
1243
1243
|
const deserializeAws_json1_1GetVocabularyFilterCommandError = async (output, context) => {
|
|
1244
1244
|
const parsedOutput = {
|
|
1245
1245
|
...output,
|
|
1246
|
-
body: await
|
|
1246
|
+
body: await parseErrorBody(output.body, context),
|
|
1247
1247
|
};
|
|
1248
1248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1249
|
switch (errorCode) {
|
|
@@ -1286,7 +1286,7 @@ exports.deserializeAws_json1_1ListCallAnalyticsCategoriesCommand = deserializeAw
|
|
|
1286
1286
|
const deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
|
-
body: await
|
|
1289
|
+
body: await parseErrorBody(output.body, context),
|
|
1290
1290
|
};
|
|
1291
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1292
|
switch (errorCode) {
|
|
@@ -1326,7 +1326,7 @@ exports.deserializeAws_json1_1ListCallAnalyticsJobsCommand = deserializeAws_json
|
|
|
1326
1326
|
const deserializeAws_json1_1ListCallAnalyticsJobsCommandError = async (output, context) => {
|
|
1327
1327
|
const parsedOutput = {
|
|
1328
1328
|
...output,
|
|
1329
|
-
body: await
|
|
1329
|
+
body: await parseErrorBody(output.body, context),
|
|
1330
1330
|
};
|
|
1331
1331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1332
|
switch (errorCode) {
|
|
@@ -1366,7 +1366,7 @@ exports.deserializeAws_json1_1ListLanguageModelsCommand = deserializeAws_json1_1
|
|
|
1366
1366
|
const deserializeAws_json1_1ListLanguageModelsCommandError = async (output, context) => {
|
|
1367
1367
|
const parsedOutput = {
|
|
1368
1368
|
...output,
|
|
1369
|
-
body: await
|
|
1369
|
+
body: await parseErrorBody(output.body, context),
|
|
1370
1370
|
};
|
|
1371
1371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1372
|
switch (errorCode) {
|
|
@@ -1406,7 +1406,7 @@ exports.deserializeAws_json1_1ListMedicalTranscriptionJobsCommand = deserializeA
|
|
|
1406
1406
|
const deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = async (output, context) => {
|
|
1407
1407
|
const parsedOutput = {
|
|
1408
1408
|
...output,
|
|
1409
|
-
body: await
|
|
1409
|
+
body: await parseErrorBody(output.body, context),
|
|
1410
1410
|
};
|
|
1411
1411
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
1412
|
switch (errorCode) {
|
|
@@ -1446,7 +1446,7 @@ exports.deserializeAws_json1_1ListMedicalVocabulariesCommand = deserializeAws_js
|
|
|
1446
1446
|
const deserializeAws_json1_1ListMedicalVocabulariesCommandError = async (output, context) => {
|
|
1447
1447
|
const parsedOutput = {
|
|
1448
1448
|
...output,
|
|
1449
|
-
body: await
|
|
1449
|
+
body: await parseErrorBody(output.body, context),
|
|
1450
1450
|
};
|
|
1451
1451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
1452
|
switch (errorCode) {
|
|
@@ -1486,7 +1486,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1486
1486
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1487
1487
|
const parsedOutput = {
|
|
1488
1488
|
...output,
|
|
1489
|
-
body: await
|
|
1489
|
+
body: await parseErrorBody(output.body, context),
|
|
1490
1490
|
};
|
|
1491
1491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1492
|
switch (errorCode) {
|
|
@@ -1529,7 +1529,7 @@ exports.deserializeAws_json1_1ListTranscriptionJobsCommand = deserializeAws_json
|
|
|
1529
1529
|
const deserializeAws_json1_1ListTranscriptionJobsCommandError = async (output, context) => {
|
|
1530
1530
|
const parsedOutput = {
|
|
1531
1531
|
...output,
|
|
1532
|
-
body: await
|
|
1532
|
+
body: await parseErrorBody(output.body, context),
|
|
1533
1533
|
};
|
|
1534
1534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
1535
|
switch (errorCode) {
|
|
@@ -1569,7 +1569,7 @@ exports.deserializeAws_json1_1ListVocabulariesCommand = deserializeAws_json1_1Li
|
|
|
1569
1569
|
const deserializeAws_json1_1ListVocabulariesCommandError = async (output, context) => {
|
|
1570
1570
|
const parsedOutput = {
|
|
1571
1571
|
...output,
|
|
1572
|
-
body: await
|
|
1572
|
+
body: await parseErrorBody(output.body, context),
|
|
1573
1573
|
};
|
|
1574
1574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
1575
|
switch (errorCode) {
|
|
@@ -1609,7 +1609,7 @@ exports.deserializeAws_json1_1ListVocabularyFiltersCommand = deserializeAws_json
|
|
|
1609
1609
|
const deserializeAws_json1_1ListVocabularyFiltersCommandError = async (output, context) => {
|
|
1610
1610
|
const parsedOutput = {
|
|
1611
1611
|
...output,
|
|
1612
|
-
body: await
|
|
1612
|
+
body: await parseErrorBody(output.body, context),
|
|
1613
1613
|
};
|
|
1614
1614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
1615
|
switch (errorCode) {
|
|
@@ -1649,7 +1649,7 @@ exports.deserializeAws_json1_1StartCallAnalyticsJobCommand = deserializeAws_json
|
|
|
1649
1649
|
const deserializeAws_json1_1StartCallAnalyticsJobCommandError = async (output, context) => {
|
|
1650
1650
|
const parsedOutput = {
|
|
1651
1651
|
...output,
|
|
1652
|
-
body: await
|
|
1652
|
+
body: await parseErrorBody(output.body, context),
|
|
1653
1653
|
};
|
|
1654
1654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
1655
|
switch (errorCode) {
|
|
@@ -1692,7 +1692,7 @@ exports.deserializeAws_json1_1StartMedicalTranscriptionJobCommand = deserializeA
|
|
|
1692
1692
|
const deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = async (output, context) => {
|
|
1693
1693
|
const parsedOutput = {
|
|
1694
1694
|
...output,
|
|
1695
|
-
body: await
|
|
1695
|
+
body: await parseErrorBody(output.body, context),
|
|
1696
1696
|
};
|
|
1697
1697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
1698
|
switch (errorCode) {
|
|
@@ -1735,7 +1735,7 @@ exports.deserializeAws_json1_1StartTranscriptionJobCommand = deserializeAws_json
|
|
|
1735
1735
|
const deserializeAws_json1_1StartTranscriptionJobCommandError = async (output, context) => {
|
|
1736
1736
|
const parsedOutput = {
|
|
1737
1737
|
...output,
|
|
1738
|
-
body: await
|
|
1738
|
+
body: await parseErrorBody(output.body, context),
|
|
1739
1739
|
};
|
|
1740
1740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
1741
|
switch (errorCode) {
|
|
@@ -1778,7 +1778,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1778
1778
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1779
1779
|
const parsedOutput = {
|
|
1780
1780
|
...output,
|
|
1781
|
-
body: await
|
|
1781
|
+
body: await parseErrorBody(output.body, context),
|
|
1782
1782
|
};
|
|
1783
1783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
1784
|
switch (errorCode) {
|
|
@@ -1824,7 +1824,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1824
1824
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1825
1825
|
const parsedOutput = {
|
|
1826
1826
|
...output,
|
|
1827
|
-
body: await
|
|
1827
|
+
body: await parseErrorBody(output.body, context),
|
|
1828
1828
|
};
|
|
1829
1829
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1830
1830
|
switch (errorCode) {
|
|
@@ -1870,7 +1870,7 @@ exports.deserializeAws_json1_1UpdateCallAnalyticsCategoryCommand = deserializeAw
|
|
|
1870
1870
|
const deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = async (output, context) => {
|
|
1871
1871
|
const parsedOutput = {
|
|
1872
1872
|
...output,
|
|
1873
|
-
body: await
|
|
1873
|
+
body: await parseErrorBody(output.body, context),
|
|
1874
1874
|
};
|
|
1875
1875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1876
1876
|
switch (errorCode) {
|
|
@@ -1916,7 +1916,7 @@ exports.deserializeAws_json1_1UpdateMedicalVocabularyCommand = deserializeAws_js
|
|
|
1916
1916
|
const deserializeAws_json1_1UpdateMedicalVocabularyCommandError = async (output, context) => {
|
|
1917
1917
|
const parsedOutput = {
|
|
1918
1918
|
...output,
|
|
1919
|
-
body: await
|
|
1919
|
+
body: await parseErrorBody(output.body, context),
|
|
1920
1920
|
};
|
|
1921
1921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
1922
|
switch (errorCode) {
|
|
@@ -1962,7 +1962,7 @@ exports.deserializeAws_json1_1UpdateVocabularyCommand = deserializeAws_json1_1Up
|
|
|
1962
1962
|
const deserializeAws_json1_1UpdateVocabularyCommandError = async (output, context) => {
|
|
1963
1963
|
const parsedOutput = {
|
|
1964
1964
|
...output,
|
|
1965
|
-
body: await
|
|
1965
|
+
body: await parseErrorBody(output.body, context),
|
|
1966
1966
|
};
|
|
1967
1967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
1968
|
switch (errorCode) {
|
|
@@ -2008,7 +2008,7 @@ exports.deserializeAws_json1_1UpdateVocabularyFilterCommand = deserializeAws_jso
|
|
|
2008
2008
|
const deserializeAws_json1_1UpdateVocabularyFilterCommandError = async (output, context) => {
|
|
2009
2009
|
const parsedOutput = {
|
|
2010
2010
|
...output,
|
|
2011
|
-
body: await
|
|
2011
|
+
body: await parseErrorBody(output.body, context),
|
|
2012
2012
|
};
|
|
2013
2013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
2014
|
switch (errorCode) {
|
|
@@ -3570,6 +3570,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3570
3570
|
}
|
|
3571
3571
|
return {};
|
|
3572
3572
|
});
|
|
3573
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3574
|
+
var _a;
|
|
3575
|
+
const value = await parseBody(errorBody, context);
|
|
3576
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3577
|
+
return value;
|
|
3578
|
+
};
|
|
3573
3579
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3574
3580
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3575
3581
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -458,7 +458,7 @@ var deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = function (ou
|
|
|
458
458
|
case 0:
|
|
459
459
|
_a = [__assign({}, output)];
|
|
460
460
|
_c = {};
|
|
461
|
-
return [4,
|
|
461
|
+
return [4, parseErrorBody(output.body, context)];
|
|
462
462
|
case 1:
|
|
463
463
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
464
464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -521,7 +521,7 @@ var deserializeAws_json1_1CreateLanguageModelCommandError = function (output, co
|
|
|
521
521
|
case 0:
|
|
522
522
|
_a = [__assign({}, output)];
|
|
523
523
|
_c = {};
|
|
524
|
-
return [4,
|
|
524
|
+
return [4, parseErrorBody(output.body, context)];
|
|
525
525
|
case 1:
|
|
526
526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
527
527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -584,7 +584,7 @@ var deserializeAws_json1_1CreateMedicalVocabularyCommandError = function (output
|
|
|
584
584
|
case 0:
|
|
585
585
|
_a = [__assign({}, output)];
|
|
586
586
|
_c = {};
|
|
587
|
-
return [4,
|
|
587
|
+
return [4, parseErrorBody(output.body, context)];
|
|
588
588
|
case 1:
|
|
589
589
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
590
590
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -647,7 +647,7 @@ var deserializeAws_json1_1CreateVocabularyCommandError = function (output, conte
|
|
|
647
647
|
case 0:
|
|
648
648
|
_a = [__assign({}, output)];
|
|
649
649
|
_c = {};
|
|
650
|
-
return [4,
|
|
650
|
+
return [4, parseErrorBody(output.body, context)];
|
|
651
651
|
case 1:
|
|
652
652
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
653
653
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -710,7 +710,7 @@ var deserializeAws_json1_1CreateVocabularyFilterCommandError = function (output,
|
|
|
710
710
|
case 0:
|
|
711
711
|
_a = [__assign({}, output)];
|
|
712
712
|
_c = {};
|
|
713
|
-
return [4,
|
|
713
|
+
return [4, parseErrorBody(output.body, context)];
|
|
714
714
|
case 1:
|
|
715
715
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
716
716
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -773,7 +773,7 @@ var deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = function (ou
|
|
|
773
773
|
case 0:
|
|
774
774
|
_a = [__assign({}, output)];
|
|
775
775
|
_c = {};
|
|
776
|
-
return [4,
|
|
776
|
+
return [4, parseErrorBody(output.body, context)];
|
|
777
777
|
case 1:
|
|
778
778
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
779
779
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -836,7 +836,7 @@ var deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = function (output,
|
|
|
836
836
|
case 0:
|
|
837
837
|
_a = [__assign({}, output)];
|
|
838
838
|
_c = {};
|
|
839
|
-
return [4,
|
|
839
|
+
return [4, parseErrorBody(output.body, context)];
|
|
840
840
|
case 1:
|
|
841
841
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
842
842
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -895,7 +895,7 @@ var deserializeAws_json1_1DeleteLanguageModelCommandError = function (output, co
|
|
|
895
895
|
case 0:
|
|
896
896
|
_a = [__assign({}, output)];
|
|
897
897
|
_c = {};
|
|
898
|
-
return [4,
|
|
898
|
+
return [4, parseErrorBody(output.body, context)];
|
|
899
899
|
case 1:
|
|
900
900
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
901
901
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -954,7 +954,7 @@ var deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = function (
|
|
|
954
954
|
case 0:
|
|
955
955
|
_a = [__assign({}, output)];
|
|
956
956
|
_c = {};
|
|
957
|
-
return [4,
|
|
957
|
+
return [4, parseErrorBody(output.body, context)];
|
|
958
958
|
case 1:
|
|
959
959
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
960
960
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1013,7 +1013,7 @@ var deserializeAws_json1_1DeleteMedicalVocabularyCommandError = function (output
|
|
|
1013
1013
|
case 0:
|
|
1014
1014
|
_a = [__assign({}, output)];
|
|
1015
1015
|
_c = {};
|
|
1016
|
-
return [4,
|
|
1016
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1017
1017
|
case 1:
|
|
1018
1018
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1019
1019
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1076,7 +1076,7 @@ var deserializeAws_json1_1DeleteTranscriptionJobCommandError = function (output,
|
|
|
1076
1076
|
case 0:
|
|
1077
1077
|
_a = [__assign({}, output)];
|
|
1078
1078
|
_c = {};
|
|
1079
|
-
return [4,
|
|
1079
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1080
1080
|
case 1:
|
|
1081
1081
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1082
1082
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1135,7 +1135,7 @@ var deserializeAws_json1_1DeleteVocabularyCommandError = function (output, conte
|
|
|
1135
1135
|
case 0:
|
|
1136
1136
|
_a = [__assign({}, output)];
|
|
1137
1137
|
_c = {};
|
|
1138
|
-
return [4,
|
|
1138
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1139
1139
|
case 1:
|
|
1140
1140
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1141
1141
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1198,7 +1198,7 @@ var deserializeAws_json1_1DeleteVocabularyFilterCommandError = function (output,
|
|
|
1198
1198
|
case 0:
|
|
1199
1199
|
_a = [__assign({}, output)];
|
|
1200
1200
|
_c = {};
|
|
1201
|
-
return [4,
|
|
1201
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1202
1202
|
case 1:
|
|
1203
1203
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1204
1204
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1261,7 +1261,7 @@ var deserializeAws_json1_1DescribeLanguageModelCommandError = function (output,
|
|
|
1261
1261
|
case 0:
|
|
1262
1262
|
_a = [__assign({}, output)];
|
|
1263
1263
|
_c = {};
|
|
1264
|
-
return [4,
|
|
1264
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1265
1265
|
case 1:
|
|
1266
1266
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1267
1267
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1324,7 +1324,7 @@ var deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = function (outpu
|
|
|
1324
1324
|
case 0:
|
|
1325
1325
|
_a = [__assign({}, output)];
|
|
1326
1326
|
_c = {};
|
|
1327
|
-
return [4,
|
|
1327
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1328
1328
|
case 1:
|
|
1329
1329
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1330
1330
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1387,7 +1387,7 @@ var deserializeAws_json1_1GetCallAnalyticsJobCommandError = function (output, co
|
|
|
1387
1387
|
case 0:
|
|
1388
1388
|
_a = [__assign({}, output)];
|
|
1389
1389
|
_c = {};
|
|
1390
|
-
return [4,
|
|
1390
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1391
1391
|
case 1:
|
|
1392
1392
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1393
1393
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1450,7 +1450,7 @@ var deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = function (out
|
|
|
1450
1450
|
case 0:
|
|
1451
1451
|
_a = [__assign({}, output)];
|
|
1452
1452
|
_c = {};
|
|
1453
|
-
return [4,
|
|
1453
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1454
1454
|
case 1:
|
|
1455
1455
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1456
1456
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1513,7 +1513,7 @@ var deserializeAws_json1_1GetMedicalVocabularyCommandError = function (output, c
|
|
|
1513
1513
|
case 0:
|
|
1514
1514
|
_a = [__assign({}, output)];
|
|
1515
1515
|
_c = {};
|
|
1516
|
-
return [4,
|
|
1516
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1517
1517
|
case 1:
|
|
1518
1518
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1519
1519
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1576,7 +1576,7 @@ var deserializeAws_json1_1GetTranscriptionJobCommandError = function (output, co
|
|
|
1576
1576
|
case 0:
|
|
1577
1577
|
_a = [__assign({}, output)];
|
|
1578
1578
|
_c = {};
|
|
1579
|
-
return [4,
|
|
1579
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1580
1580
|
case 1:
|
|
1581
1581
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1582
1582
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1639,7 +1639,7 @@ var deserializeAws_json1_1GetVocabularyCommandError = function (output, context)
|
|
|
1639
1639
|
case 0:
|
|
1640
1640
|
_a = [__assign({}, output)];
|
|
1641
1641
|
_c = {};
|
|
1642
|
-
return [4,
|
|
1642
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1643
1643
|
case 1:
|
|
1644
1644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1645
1645
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1702,7 +1702,7 @@ var deserializeAws_json1_1GetVocabularyFilterCommandError = function (output, co
|
|
|
1702
1702
|
case 0:
|
|
1703
1703
|
_a = [__assign({}, output)];
|
|
1704
1704
|
_c = {};
|
|
1705
|
-
return [4,
|
|
1705
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1706
1706
|
case 1:
|
|
1707
1707
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1708
1708
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1765,7 +1765,7 @@ var deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = function (ou
|
|
|
1765
1765
|
case 0:
|
|
1766
1766
|
_a = [__assign({}, output)];
|
|
1767
1767
|
_c = {};
|
|
1768
|
-
return [4,
|
|
1768
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1769
1769
|
case 1:
|
|
1770
1770
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1771
1771
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1824,7 +1824,7 @@ var deserializeAws_json1_1ListCallAnalyticsJobsCommandError = function (output,
|
|
|
1824
1824
|
case 0:
|
|
1825
1825
|
_a = [__assign({}, output)];
|
|
1826
1826
|
_c = {};
|
|
1827
|
-
return [4,
|
|
1827
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1828
1828
|
case 1:
|
|
1829
1829
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1830
1830
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1883,7 +1883,7 @@ var deserializeAws_json1_1ListLanguageModelsCommandError = function (output, con
|
|
|
1883
1883
|
case 0:
|
|
1884
1884
|
_a = [__assign({}, output)];
|
|
1885
1885
|
_c = {};
|
|
1886
|
-
return [4,
|
|
1886
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1887
1887
|
case 1:
|
|
1888
1888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1889
1889
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1942,7 +1942,7 @@ var deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = function (o
|
|
|
1942
1942
|
case 0:
|
|
1943
1943
|
_a = [__assign({}, output)];
|
|
1944
1944
|
_c = {};
|
|
1945
|
-
return [4,
|
|
1945
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1946
1946
|
case 1:
|
|
1947
1947
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1948
1948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2001,7 +2001,7 @@ var deserializeAws_json1_1ListMedicalVocabulariesCommandError = function (output
|
|
|
2001
2001
|
case 0:
|
|
2002
2002
|
_a = [__assign({}, output)];
|
|
2003
2003
|
_c = {};
|
|
2004
|
-
return [4,
|
|
2004
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2005
2005
|
case 1:
|
|
2006
2006
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2007
2007
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2060,7 +2060,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2060
2060
|
case 0:
|
|
2061
2061
|
_a = [__assign({}, output)];
|
|
2062
2062
|
_c = {};
|
|
2063
|
-
return [4,
|
|
2063
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2064
2064
|
case 1:
|
|
2065
2065
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2066
2066
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2123,7 +2123,7 @@ var deserializeAws_json1_1ListTranscriptionJobsCommandError = function (output,
|
|
|
2123
2123
|
case 0:
|
|
2124
2124
|
_a = [__assign({}, output)];
|
|
2125
2125
|
_c = {};
|
|
2126
|
-
return [4,
|
|
2126
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2127
2127
|
case 1:
|
|
2128
2128
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2129
2129
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2182,7 +2182,7 @@ var deserializeAws_json1_1ListVocabulariesCommandError = function (output, conte
|
|
|
2182
2182
|
case 0:
|
|
2183
2183
|
_a = [__assign({}, output)];
|
|
2184
2184
|
_c = {};
|
|
2185
|
-
return [4,
|
|
2185
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2186
2186
|
case 1:
|
|
2187
2187
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2188
2188
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2241,7 +2241,7 @@ var deserializeAws_json1_1ListVocabularyFiltersCommandError = function (output,
|
|
|
2241
2241
|
case 0:
|
|
2242
2242
|
_a = [__assign({}, output)];
|
|
2243
2243
|
_c = {};
|
|
2244
|
-
return [4,
|
|
2244
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2245
2245
|
case 1:
|
|
2246
2246
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2247
2247
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2300,7 +2300,7 @@ var deserializeAws_json1_1StartCallAnalyticsJobCommandError = function (output,
|
|
|
2300
2300
|
case 0:
|
|
2301
2301
|
_a = [__assign({}, output)];
|
|
2302
2302
|
_c = {};
|
|
2303
|
-
return [4,
|
|
2303
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2304
2304
|
case 1:
|
|
2305
2305
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2306
2306
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2363,7 +2363,7 @@ var deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = function (o
|
|
|
2363
2363
|
case 0:
|
|
2364
2364
|
_a = [__assign({}, output)];
|
|
2365
2365
|
_c = {};
|
|
2366
|
-
return [4,
|
|
2366
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2367
2367
|
case 1:
|
|
2368
2368
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2369
2369
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2426,7 +2426,7 @@ var deserializeAws_json1_1StartTranscriptionJobCommandError = function (output,
|
|
|
2426
2426
|
case 0:
|
|
2427
2427
|
_a = [__assign({}, output)];
|
|
2428
2428
|
_c = {};
|
|
2429
|
-
return [4,
|
|
2429
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2430
2430
|
case 1:
|
|
2431
2431
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2432
2432
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2489,7 +2489,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2489
2489
|
case 0:
|
|
2490
2490
|
_a = [__assign({}, output)];
|
|
2491
2491
|
_c = {};
|
|
2492
|
-
return [4,
|
|
2492
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2493
2493
|
case 1:
|
|
2494
2494
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2495
2495
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2556,7 +2556,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2556
2556
|
case 0:
|
|
2557
2557
|
_a = [__assign({}, output)];
|
|
2558
2558
|
_c = {};
|
|
2559
|
-
return [4,
|
|
2559
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2560
2560
|
case 1:
|
|
2561
2561
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2562
2562
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2623,7 +2623,7 @@ var deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = function (ou
|
|
|
2623
2623
|
case 0:
|
|
2624
2624
|
_a = [__assign({}, output)];
|
|
2625
2625
|
_c = {};
|
|
2626
|
-
return [4,
|
|
2626
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2627
2627
|
case 1:
|
|
2628
2628
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2629
2629
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2690,7 +2690,7 @@ var deserializeAws_json1_1UpdateMedicalVocabularyCommandError = function (output
|
|
|
2690
2690
|
case 0:
|
|
2691
2691
|
_a = [__assign({}, output)];
|
|
2692
2692
|
_c = {};
|
|
2693
|
-
return [4,
|
|
2693
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2694
2694
|
case 1:
|
|
2695
2695
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2696
2696
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2757,7 +2757,7 @@ var deserializeAws_json1_1UpdateVocabularyCommandError = function (output, conte
|
|
|
2757
2757
|
case 0:
|
|
2758
2758
|
_a = [__assign({}, output)];
|
|
2759
2759
|
_c = {};
|
|
2760
|
-
return [4,
|
|
2760
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2761
2761
|
case 1:
|
|
2762
2762
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2763
2763
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2824,7 +2824,7 @@ var deserializeAws_json1_1UpdateVocabularyFilterCommandError = function (output,
|
|
|
2824
2824
|
case 0:
|
|
2825
2825
|
_a = [__assign({}, output)];
|
|
2826
2826
|
_c = {};
|
|
2827
|
-
return [4,
|
|
2827
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2828
2828
|
case 1:
|
|
2829
2829
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2830
2830
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4157,6 +4157,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4157
4157
|
return {};
|
|
4158
4158
|
});
|
|
4159
4159
|
};
|
|
4160
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4161
|
+
var value;
|
|
4162
|
+
var _a;
|
|
4163
|
+
return __generator(this, function (_b) {
|
|
4164
|
+
switch (_b.label) {
|
|
4165
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4166
|
+
case 1:
|
|
4167
|
+
value = _b.sent();
|
|
4168
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4169
|
+
return [2, value];
|
|
4170
|
+
}
|
|
4171
|
+
});
|
|
4172
|
+
}); };
|
|
4160
4173
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4161
4174
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4162
4175
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-transcribe",
|
|
3
3
|
"description": "AWS SDK for JavaScript Transcribe Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.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",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|