@aws-sdk/client-wisdom 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +38 -32
- package/dist-es/Wisdom.js +130 -137
- package/dist-es/WisdomClient.js +22 -28
- package/dist-es/commands/CreateAssistantAssociationCommand.js +21 -28
- package/dist-es/commands/CreateAssistantCommand.js +21 -28
- package/dist-es/commands/CreateContentCommand.js +21 -28
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +21 -28
- package/dist-es/commands/CreateSessionCommand.js +21 -28
- package/dist-es/commands/DeleteAssistantAssociationCommand.js +21 -28
- package/dist-es/commands/DeleteAssistantCommand.js +21 -28
- package/dist-es/commands/DeleteContentCommand.js +21 -28
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +21 -28
- package/dist-es/commands/GetAssistantAssociationCommand.js +21 -28
- package/dist-es/commands/GetAssistantCommand.js +21 -28
- package/dist-es/commands/GetContentCommand.js +21 -28
- package/dist-es/commands/GetContentSummaryCommand.js +21 -28
- package/dist-es/commands/GetKnowledgeBaseCommand.js +21 -28
- package/dist-es/commands/GetRecommendationsCommand.js +21 -28
- package/dist-es/commands/GetSessionCommand.js +21 -28
- package/dist-es/commands/ListAssistantAssociationsCommand.js +21 -28
- package/dist-es/commands/ListAssistantsCommand.js +21 -28
- package/dist-es/commands/ListContentsCommand.js +21 -28
- package/dist-es/commands/ListKnowledgeBasesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +21 -28
- package/dist-es/commands/PutFeedbackCommand.js +21 -28
- package/dist-es/commands/QueryAssistantCommand.js +21 -28
- package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +21 -28
- package/dist-es/commands/SearchContentCommand.js +21 -28
- package/dist-es/commands/SearchSessionsCommand.js +21 -28
- package/dist-es/commands/StartContentUploadCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateContentCommand.js +21 -28
- package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/WisdomServiceException.js +5 -10
- package/dist-es/models/models_0.js +409 -207
- package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -68
- package/dist-es/pagination/ListAssistantsPaginator.js +25 -68
- package/dist-es/pagination/ListContentsPaginator.js +25 -68
- package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -68
- package/dist-es/pagination/QueryAssistantPaginator.js +25 -68
- package/dist-es/pagination/SearchContentPaginator.js +25 -68
- package/dist-es/pagination/SearchSessionsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2164 -3073
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-wisdom
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-wisdom
|
|
@@ -749,7 +749,7 @@ exports.deserializeAws_restJson1CreateAssistantCommand = deserializeAws_restJson
|
|
|
749
749
|
const deserializeAws_restJson1CreateAssistantCommandError = async (output, context) => {
|
|
750
750
|
const parsedOutput = {
|
|
751
751
|
...output,
|
|
752
|
-
body: await
|
|
752
|
+
body: await parseErrorBody(output.body, context),
|
|
753
753
|
};
|
|
754
754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
755
|
switch (errorCode) {
|
|
@@ -792,7 +792,7 @@ exports.deserializeAws_restJson1CreateAssistantAssociationCommand = deserializeA
|
|
|
792
792
|
const deserializeAws_restJson1CreateAssistantAssociationCommandError = async (output, context) => {
|
|
793
793
|
const parsedOutput = {
|
|
794
794
|
...output,
|
|
795
|
-
body: await
|
|
795
|
+
body: await parseErrorBody(output.body, context),
|
|
796
796
|
};
|
|
797
797
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
798
|
switch (errorCode) {
|
|
@@ -838,7 +838,7 @@ exports.deserializeAws_restJson1CreateContentCommand = deserializeAws_restJson1C
|
|
|
838
838
|
const deserializeAws_restJson1CreateContentCommandError = async (output, context) => {
|
|
839
839
|
const parsedOutput = {
|
|
840
840
|
...output,
|
|
841
|
-
body: await
|
|
841
|
+
body: await parseErrorBody(output.body, context),
|
|
842
842
|
};
|
|
843
843
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
844
|
switch (errorCode) {
|
|
@@ -884,7 +884,7 @@ exports.deserializeAws_restJson1CreateKnowledgeBaseCommand = deserializeAws_rest
|
|
|
884
884
|
const deserializeAws_restJson1CreateKnowledgeBaseCommandError = async (output, context) => {
|
|
885
885
|
const parsedOutput = {
|
|
886
886
|
...output,
|
|
887
|
-
body: await
|
|
887
|
+
body: await parseErrorBody(output.body, context),
|
|
888
888
|
};
|
|
889
889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
890
|
switch (errorCode) {
|
|
@@ -927,7 +927,7 @@ exports.deserializeAws_restJson1CreateSessionCommand = deserializeAws_restJson1C
|
|
|
927
927
|
const deserializeAws_restJson1CreateSessionCommandError = async (output, context) => {
|
|
928
928
|
const parsedOutput = {
|
|
929
929
|
...output,
|
|
930
|
-
body: await
|
|
930
|
+
body: await parseErrorBody(output.body, context),
|
|
931
931
|
};
|
|
932
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
933
|
switch (errorCode) {
|
|
@@ -964,7 +964,7 @@ exports.deserializeAws_restJson1DeleteAssistantCommand = deserializeAws_restJson
|
|
|
964
964
|
const deserializeAws_restJson1DeleteAssistantCommandError = async (output, context) => {
|
|
965
965
|
const parsedOutput = {
|
|
966
966
|
...output,
|
|
967
|
-
body: await
|
|
967
|
+
body: await parseErrorBody(output.body, context),
|
|
968
968
|
};
|
|
969
969
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
970
|
switch (errorCode) {
|
|
@@ -1001,7 +1001,7 @@ exports.deserializeAws_restJson1DeleteAssistantAssociationCommand = deserializeA
|
|
|
1001
1001
|
const deserializeAws_restJson1DeleteAssistantAssociationCommandError = async (output, context) => {
|
|
1002
1002
|
const parsedOutput = {
|
|
1003
1003
|
...output,
|
|
1004
|
-
body: await
|
|
1004
|
+
body: await parseErrorBody(output.body, context),
|
|
1005
1005
|
};
|
|
1006
1006
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
1007
|
switch (errorCode) {
|
|
@@ -1038,7 +1038,7 @@ exports.deserializeAws_restJson1DeleteContentCommand = deserializeAws_restJson1D
|
|
|
1038
1038
|
const deserializeAws_restJson1DeleteContentCommandError = async (output, context) => {
|
|
1039
1039
|
const parsedOutput = {
|
|
1040
1040
|
...output,
|
|
1041
|
-
body: await
|
|
1041
|
+
body: await parseErrorBody(output.body, context),
|
|
1042
1042
|
};
|
|
1043
1043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
1044
|
switch (errorCode) {
|
|
@@ -1075,7 +1075,7 @@ exports.deserializeAws_restJson1DeleteKnowledgeBaseCommand = deserializeAws_rest
|
|
|
1075
1075
|
const deserializeAws_restJson1DeleteKnowledgeBaseCommandError = async (output, context) => {
|
|
1076
1076
|
const parsedOutput = {
|
|
1077
1077
|
...output,
|
|
1078
|
-
body: await
|
|
1078
|
+
body: await parseErrorBody(output.body, context),
|
|
1079
1079
|
};
|
|
1080
1080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1081
|
switch (errorCode) {
|
|
@@ -1118,7 +1118,7 @@ exports.deserializeAws_restJson1GetAssistantCommand = deserializeAws_restJson1Ge
|
|
|
1118
1118
|
const deserializeAws_restJson1GetAssistantCommandError = async (output, context) => {
|
|
1119
1119
|
const parsedOutput = {
|
|
1120
1120
|
...output,
|
|
1121
|
-
body: await
|
|
1121
|
+
body: await parseErrorBody(output.body, context),
|
|
1122
1122
|
};
|
|
1123
1123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1124
|
switch (errorCode) {
|
|
@@ -1158,7 +1158,7 @@ exports.deserializeAws_restJson1GetAssistantAssociationCommand = deserializeAws_
|
|
|
1158
1158
|
const deserializeAws_restJson1GetAssistantAssociationCommandError = async (output, context) => {
|
|
1159
1159
|
const parsedOutput = {
|
|
1160
1160
|
...output,
|
|
1161
|
-
body: await
|
|
1161
|
+
body: await parseErrorBody(output.body, context),
|
|
1162
1162
|
};
|
|
1163
1163
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
1164
|
switch (errorCode) {
|
|
@@ -1198,7 +1198,7 @@ exports.deserializeAws_restJson1GetContentCommand = deserializeAws_restJson1GetC
|
|
|
1198
1198
|
const deserializeAws_restJson1GetContentCommandError = async (output, context) => {
|
|
1199
1199
|
const parsedOutput = {
|
|
1200
1200
|
...output,
|
|
1201
|
-
body: await
|
|
1201
|
+
body: await parseErrorBody(output.body, context),
|
|
1202
1202
|
};
|
|
1203
1203
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
1204
|
switch (errorCode) {
|
|
@@ -1238,7 +1238,7 @@ exports.deserializeAws_restJson1GetContentSummaryCommand = deserializeAws_restJs
|
|
|
1238
1238
|
const deserializeAws_restJson1GetContentSummaryCommandError = async (output, context) => {
|
|
1239
1239
|
const parsedOutput = {
|
|
1240
1240
|
...output,
|
|
1241
|
-
body: await
|
|
1241
|
+
body: await parseErrorBody(output.body, context),
|
|
1242
1242
|
};
|
|
1243
1243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
1244
|
switch (errorCode) {
|
|
@@ -1278,7 +1278,7 @@ exports.deserializeAws_restJson1GetKnowledgeBaseCommand = deserializeAws_restJso
|
|
|
1278
1278
|
const deserializeAws_restJson1GetKnowledgeBaseCommandError = async (output, context) => {
|
|
1279
1279
|
const parsedOutput = {
|
|
1280
1280
|
...output,
|
|
1281
|
-
body: await
|
|
1281
|
+
body: await parseErrorBody(output.body, context),
|
|
1282
1282
|
};
|
|
1283
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
switch (errorCode) {
|
|
@@ -1321,7 +1321,7 @@ exports.deserializeAws_restJson1GetRecommendationsCommand = deserializeAws_restJ
|
|
|
1321
1321
|
const deserializeAws_restJson1GetRecommendationsCommandError = async (output, context) => {
|
|
1322
1322
|
const parsedOutput = {
|
|
1323
1323
|
...output,
|
|
1324
|
-
body: await
|
|
1324
|
+
body: await parseErrorBody(output.body, context),
|
|
1325
1325
|
};
|
|
1326
1326
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1327
|
switch (errorCode) {
|
|
@@ -1361,7 +1361,7 @@ exports.deserializeAws_restJson1GetSessionCommand = deserializeAws_restJson1GetS
|
|
|
1361
1361
|
const deserializeAws_restJson1GetSessionCommandError = async (output, context) => {
|
|
1362
1362
|
const parsedOutput = {
|
|
1363
1363
|
...output,
|
|
1364
|
-
body: await
|
|
1364
|
+
body: await parseErrorBody(output.body, context),
|
|
1365
1365
|
};
|
|
1366
1366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
1367
|
switch (errorCode) {
|
|
@@ -1404,7 +1404,7 @@ exports.deserializeAws_restJson1ListAssistantAssociationsCommand = deserializeAw
|
|
|
1404
1404
|
const deserializeAws_restJson1ListAssistantAssociationsCommandError = async (output, context) => {
|
|
1405
1405
|
const parsedOutput = {
|
|
1406
1406
|
...output,
|
|
1407
|
-
body: await
|
|
1407
|
+
body: await parseErrorBody(output.body, context),
|
|
1408
1408
|
};
|
|
1409
1409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1410
|
switch (errorCode) {
|
|
@@ -1447,7 +1447,7 @@ exports.deserializeAws_restJson1ListAssistantsCommand = deserializeAws_restJson1
|
|
|
1447
1447
|
const deserializeAws_restJson1ListAssistantsCommandError = async (output, context) => {
|
|
1448
1448
|
const parsedOutput = {
|
|
1449
1449
|
...output,
|
|
1450
|
-
body: await
|
|
1450
|
+
body: await parseErrorBody(output.body, context),
|
|
1451
1451
|
};
|
|
1452
1452
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
1453
|
switch (errorCode) {
|
|
@@ -1487,7 +1487,7 @@ exports.deserializeAws_restJson1ListContentsCommand = deserializeAws_restJson1Li
|
|
|
1487
1487
|
const deserializeAws_restJson1ListContentsCommandError = async (output, context) => {
|
|
1488
1488
|
const parsedOutput = {
|
|
1489
1489
|
...output,
|
|
1490
|
-
body: await
|
|
1490
|
+
body: await parseErrorBody(output.body, context),
|
|
1491
1491
|
};
|
|
1492
1492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
1493
|
switch (errorCode) {
|
|
@@ -1530,7 +1530,7 @@ exports.deserializeAws_restJson1ListKnowledgeBasesCommand = deserializeAws_restJ
|
|
|
1530
1530
|
const deserializeAws_restJson1ListKnowledgeBasesCommandError = async (output, context) => {
|
|
1531
1531
|
const parsedOutput = {
|
|
1532
1532
|
...output,
|
|
1533
|
-
body: await
|
|
1533
|
+
body: await parseErrorBody(output.body, context),
|
|
1534
1534
|
};
|
|
1535
1535
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
1536
|
switch (errorCode) {
|
|
@@ -1567,7 +1567,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1567
1567
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1568
1568
|
const parsedOutput = {
|
|
1569
1569
|
...output,
|
|
1570
|
-
body: await
|
|
1570
|
+
body: await parseErrorBody(output.body, context),
|
|
1571
1571
|
};
|
|
1572
1572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
1573
|
switch (errorCode) {
|
|
@@ -1604,7 +1604,7 @@ exports.deserializeAws_restJson1NotifyRecommendationsReceivedCommand = deseriali
|
|
|
1604
1604
|
const deserializeAws_restJson1NotifyRecommendationsReceivedCommandError = async (output, context) => {
|
|
1605
1605
|
const parsedOutput = {
|
|
1606
1606
|
...output,
|
|
1607
|
-
body: await
|
|
1607
|
+
body: await parseErrorBody(output.body, context),
|
|
1608
1608
|
};
|
|
1609
1609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
1610
|
switch (errorCode) {
|
|
@@ -1656,7 +1656,7 @@ exports.deserializeAws_restJson1PutFeedbackCommand = deserializeAws_restJson1Put
|
|
|
1656
1656
|
const deserializeAws_restJson1PutFeedbackCommandError = async (output, context) => {
|
|
1657
1657
|
const parsedOutput = {
|
|
1658
1658
|
...output,
|
|
1659
|
-
body: await
|
|
1659
|
+
body: await parseErrorBody(output.body, context),
|
|
1660
1660
|
};
|
|
1661
1661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
1662
|
switch (errorCode) {
|
|
@@ -1699,7 +1699,7 @@ exports.deserializeAws_restJson1QueryAssistantCommand = deserializeAws_restJson1
|
|
|
1699
1699
|
const deserializeAws_restJson1QueryAssistantCommandError = async (output, context) => {
|
|
1700
1700
|
const parsedOutput = {
|
|
1701
1701
|
...output,
|
|
1702
|
-
body: await
|
|
1702
|
+
body: await parseErrorBody(output.body, context),
|
|
1703
1703
|
};
|
|
1704
1704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1705
|
switch (errorCode) {
|
|
@@ -1736,7 +1736,7 @@ exports.deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommand = deserial
|
|
|
1736
1736
|
const deserializeAws_restJson1RemoveKnowledgeBaseTemplateUriCommandError = async (output, context) => {
|
|
1737
1737
|
const parsedOutput = {
|
|
1738
1738
|
...output,
|
|
1739
|
-
body: await
|
|
1739
|
+
body: await parseErrorBody(output.body, context),
|
|
1740
1740
|
};
|
|
1741
1741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
1742
|
switch (errorCode) {
|
|
@@ -1779,7 +1779,7 @@ exports.deserializeAws_restJson1SearchContentCommand = deserializeAws_restJson1S
|
|
|
1779
1779
|
const deserializeAws_restJson1SearchContentCommandError = async (output, context) => {
|
|
1780
1780
|
const parsedOutput = {
|
|
1781
1781
|
...output,
|
|
1782
|
-
body: await
|
|
1782
|
+
body: await parseErrorBody(output.body, context),
|
|
1783
1783
|
};
|
|
1784
1784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
1785
|
switch (errorCode) {
|
|
@@ -1822,7 +1822,7 @@ exports.deserializeAws_restJson1SearchSessionsCommand = deserializeAws_restJson1
|
|
|
1822
1822
|
const deserializeAws_restJson1SearchSessionsCommandError = async (output, context) => {
|
|
1823
1823
|
const parsedOutput = {
|
|
1824
1824
|
...output,
|
|
1825
|
-
body: await
|
|
1825
|
+
body: await parseErrorBody(output.body, context),
|
|
1826
1826
|
};
|
|
1827
1827
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1828
1828
|
switch (errorCode) {
|
|
@@ -1871,7 +1871,7 @@ exports.deserializeAws_restJson1StartContentUploadCommand = deserializeAws_restJ
|
|
|
1871
1871
|
const deserializeAws_restJson1StartContentUploadCommandError = async (output, context) => {
|
|
1872
1872
|
const parsedOutput = {
|
|
1873
1873
|
...output,
|
|
1874
|
-
body: await
|
|
1874
|
+
body: await parseErrorBody(output.body, context),
|
|
1875
1875
|
};
|
|
1876
1876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
1877
|
switch (errorCode) {
|
|
@@ -1908,7 +1908,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1908
1908
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1909
1909
|
const parsedOutput = {
|
|
1910
1910
|
...output,
|
|
1911
|
-
body: await
|
|
1911
|
+
body: await parseErrorBody(output.body, context),
|
|
1912
1912
|
};
|
|
1913
1913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1914
|
switch (errorCode) {
|
|
@@ -1942,7 +1942,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1942
1942
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1943
1943
|
const parsedOutput = {
|
|
1944
1944
|
...output,
|
|
1945
|
-
body: await
|
|
1945
|
+
body: await parseErrorBody(output.body, context),
|
|
1946
1946
|
};
|
|
1947
1947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
1948
|
switch (errorCode) {
|
|
@@ -1976,7 +1976,7 @@ exports.deserializeAws_restJson1UpdateContentCommand = deserializeAws_restJson1U
|
|
|
1976
1976
|
const deserializeAws_restJson1UpdateContentCommandError = async (output, context) => {
|
|
1977
1977
|
const parsedOutput = {
|
|
1978
1978
|
...output,
|
|
1979
|
-
body: await
|
|
1979
|
+
body: await parseErrorBody(output.body, context),
|
|
1980
1980
|
};
|
|
1981
1981
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1982
|
switch (errorCode) {
|
|
@@ -2019,7 +2019,7 @@ exports.deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = deserial
|
|
|
2019
2019
|
const deserializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommandError = async (output, context) => {
|
|
2020
2020
|
const parsedOutput = {
|
|
2021
2021
|
...output,
|
|
2022
|
-
body: await
|
|
2022
|
+
body: await parseErrorBody(output.body, context),
|
|
2023
2023
|
};
|
|
2024
2024
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
2025
|
switch (errorCode) {
|
|
@@ -2684,6 +2684,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2684
2684
|
}
|
|
2685
2685
|
return {};
|
|
2686
2686
|
});
|
|
2687
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2688
|
+
var _a;
|
|
2689
|
+
const value = await parseBody(errorBody, context);
|
|
2690
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2691
|
+
return value;
|
|
2692
|
+
};
|
|
2687
2693
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2688
2694
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2689
2695
|
const sanitizeErrorCode = (rawValue) => {
|