@aws-sdk/client-chime-sdk-identity 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_restJson1.js +30 -24
- package/dist-es/protocols/Aws_restJson1.js +37 -24
- 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-chime-sdk-identity
|
|
@@ -546,7 +546,7 @@ exports.deserializeAws_restJson1CreateAppInstanceCommand = deserializeAws_restJs
|
|
|
546
546
|
const deserializeAws_restJson1CreateAppInstanceCommandError = async (output, context) => {
|
|
547
547
|
const parsedOutput = {
|
|
548
548
|
...output,
|
|
549
|
-
body: await
|
|
549
|
+
body: await parseErrorBody(output.body, context),
|
|
550
550
|
};
|
|
551
551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
552
|
switch (errorCode) {
|
|
@@ -604,7 +604,7 @@ exports.deserializeAws_restJson1CreateAppInstanceAdminCommand = deserializeAws_r
|
|
|
604
604
|
const deserializeAws_restJson1CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
605
605
|
const parsedOutput = {
|
|
606
606
|
...output,
|
|
607
|
-
body: await
|
|
607
|
+
body: await parseErrorBody(output.body, context),
|
|
608
608
|
};
|
|
609
609
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
610
|
switch (errorCode) {
|
|
@@ -659,7 +659,7 @@ exports.deserializeAws_restJson1CreateAppInstanceUserCommand = deserializeAws_re
|
|
|
659
659
|
const deserializeAws_restJson1CreateAppInstanceUserCommandError = async (output, context) => {
|
|
660
660
|
const parsedOutput = {
|
|
661
661
|
...output,
|
|
662
|
-
body: await
|
|
662
|
+
body: await parseErrorBody(output.body, context),
|
|
663
663
|
};
|
|
664
664
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
665
665
|
switch (errorCode) {
|
|
@@ -711,7 +711,7 @@ exports.deserializeAws_restJson1DeleteAppInstanceCommand = deserializeAws_restJs
|
|
|
711
711
|
const deserializeAws_restJson1DeleteAppInstanceCommandError = async (output, context) => {
|
|
712
712
|
const parsedOutput = {
|
|
713
713
|
...output,
|
|
714
|
-
body: await
|
|
714
|
+
body: await parseErrorBody(output.body, context),
|
|
715
715
|
};
|
|
716
716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
717
717
|
switch (errorCode) {
|
|
@@ -760,7 +760,7 @@ exports.deserializeAws_restJson1DeleteAppInstanceAdminCommand = deserializeAws_r
|
|
|
760
760
|
const deserializeAws_restJson1DeleteAppInstanceAdminCommandError = async (output, context) => {
|
|
761
761
|
const parsedOutput = {
|
|
762
762
|
...output,
|
|
763
|
-
body: await
|
|
763
|
+
body: await parseErrorBody(output.body, context),
|
|
764
764
|
};
|
|
765
765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
766
|
switch (errorCode) {
|
|
@@ -812,7 +812,7 @@ exports.deserializeAws_restJson1DeleteAppInstanceUserCommand = deserializeAws_re
|
|
|
812
812
|
const deserializeAws_restJson1DeleteAppInstanceUserCommandError = async (output, context) => {
|
|
813
813
|
const parsedOutput = {
|
|
814
814
|
...output,
|
|
815
|
-
body: await
|
|
815
|
+
body: await parseErrorBody(output.body, context),
|
|
816
816
|
};
|
|
817
817
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
818
|
switch (errorCode) {
|
|
@@ -864,7 +864,7 @@ exports.deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommand = deser
|
|
|
864
864
|
const deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
865
865
|
const parsedOutput = {
|
|
866
866
|
...output,
|
|
867
|
-
body: await
|
|
867
|
+
body: await parseErrorBody(output.body, context),
|
|
868
868
|
};
|
|
869
869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
870
|
switch (errorCode) {
|
|
@@ -913,7 +913,7 @@ exports.deserializeAws_restJson1DescribeAppInstanceCommand = deserializeAws_rest
|
|
|
913
913
|
const deserializeAws_restJson1DescribeAppInstanceCommandError = async (output, context) => {
|
|
914
914
|
const parsedOutput = {
|
|
915
915
|
...output,
|
|
916
|
-
body: await
|
|
916
|
+
body: await parseErrorBody(output.body, context),
|
|
917
917
|
};
|
|
918
918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
919
|
switch (errorCode) {
|
|
@@ -962,7 +962,7 @@ exports.deserializeAws_restJson1DescribeAppInstanceAdminCommand = deserializeAws
|
|
|
962
962
|
const deserializeAws_restJson1DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
963
963
|
const parsedOutput = {
|
|
964
964
|
...output,
|
|
965
|
-
body: await
|
|
965
|
+
body: await parseErrorBody(output.body, context),
|
|
966
966
|
};
|
|
967
967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
968
|
switch (errorCode) {
|
|
@@ -1011,7 +1011,7 @@ exports.deserializeAws_restJson1DescribeAppInstanceUserCommand = deserializeAws_
|
|
|
1011
1011
|
const deserializeAws_restJson1DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
1012
1012
|
const parsedOutput = {
|
|
1013
1013
|
...output,
|
|
1014
|
-
body: await
|
|
1014
|
+
body: await parseErrorBody(output.body, context),
|
|
1015
1015
|
};
|
|
1016
1016
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1017
1017
|
switch (errorCode) {
|
|
@@ -1060,7 +1060,7 @@ exports.deserializeAws_restJson1DescribeAppInstanceUserEndpointCommand = deseria
|
|
|
1060
1060
|
const deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
|
-
body: await
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
1064
|
};
|
|
1065
1065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1066
|
switch (errorCode) {
|
|
@@ -1112,7 +1112,7 @@ exports.deserializeAws_restJson1GetAppInstanceRetentionSettingsCommand = deseria
|
|
|
1112
1112
|
const deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1113
1113
|
const parsedOutput = {
|
|
1114
1114
|
...output,
|
|
1115
|
-
body: await
|
|
1115
|
+
body: await parseErrorBody(output.body, context),
|
|
1116
1116
|
};
|
|
1117
1117
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
1118
|
switch (errorCode) {
|
|
@@ -1167,7 +1167,7 @@ exports.deserializeAws_restJson1ListAppInstanceAdminsCommand = deserializeAws_re
|
|
|
1167
1167
|
const deserializeAws_restJson1ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
1168
1168
|
const parsedOutput = {
|
|
1169
1169
|
...output,
|
|
1170
|
-
body: await
|
|
1170
|
+
body: await parseErrorBody(output.body, context),
|
|
1171
1171
|
};
|
|
1172
1172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
1173
|
switch (errorCode) {
|
|
@@ -1222,7 +1222,7 @@ exports.deserializeAws_restJson1ListAppInstancesCommand = deserializeAws_restJso
|
|
|
1222
1222
|
const deserializeAws_restJson1ListAppInstancesCommandError = async (output, context) => {
|
|
1223
1223
|
const parsedOutput = {
|
|
1224
1224
|
...output,
|
|
1225
|
-
body: await
|
|
1225
|
+
body: await parseErrorBody(output.body, context),
|
|
1226
1226
|
};
|
|
1227
1227
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
1228
|
switch (errorCode) {
|
|
@@ -1274,7 +1274,7 @@ exports.deserializeAws_restJson1ListAppInstanceUserEndpointsCommand = deserializ
|
|
|
1274
1274
|
const deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = async (output, context) => {
|
|
1275
1275
|
const parsedOutput = {
|
|
1276
1276
|
...output,
|
|
1277
|
-
body: await
|
|
1277
|
+
body: await parseErrorBody(output.body, context),
|
|
1278
1278
|
};
|
|
1279
1279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1280
|
switch (errorCode) {
|
|
@@ -1329,7 +1329,7 @@ exports.deserializeAws_restJson1ListAppInstanceUsersCommand = deserializeAws_res
|
|
|
1329
1329
|
const deserializeAws_restJson1ListAppInstanceUsersCommandError = async (output, context) => {
|
|
1330
1330
|
const parsedOutput = {
|
|
1331
1331
|
...output,
|
|
1332
|
-
body: await
|
|
1332
|
+
body: await parseErrorBody(output.body, context),
|
|
1333
1333
|
};
|
|
1334
1334
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
1335
|
switch (errorCode) {
|
|
@@ -1378,7 +1378,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1378
1378
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1379
1379
|
const parsedOutput = {
|
|
1380
1380
|
...output,
|
|
1381
|
-
body: await
|
|
1381
|
+
body: await parseErrorBody(output.body, context),
|
|
1382
1382
|
};
|
|
1383
1383
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
1384
|
switch (errorCode) {
|
|
@@ -1430,7 +1430,7 @@ exports.deserializeAws_restJson1PutAppInstanceRetentionSettingsCommand = deseria
|
|
|
1430
1430
|
const deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = async (output, context) => {
|
|
1431
1431
|
const parsedOutput = {
|
|
1432
1432
|
...output,
|
|
1433
|
-
body: await
|
|
1433
|
+
body: await parseErrorBody(output.body, context),
|
|
1434
1434
|
};
|
|
1435
1435
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
1436
|
switch (errorCode) {
|
|
@@ -1482,7 +1482,7 @@ exports.deserializeAws_restJson1RegisterAppInstanceUserEndpointCommand = deseria
|
|
|
1482
1482
|
const deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1483
1483
|
const parsedOutput = {
|
|
1484
1484
|
...output,
|
|
1485
|
-
body: await
|
|
1485
|
+
body: await parseErrorBody(output.body, context),
|
|
1486
1486
|
};
|
|
1487
1487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1488
|
switch (errorCode) {
|
|
@@ -1534,7 +1534,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1534
1534
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1535
1535
|
const parsedOutput = {
|
|
1536
1536
|
...output,
|
|
1537
|
-
body: await
|
|
1537
|
+
body: await parseErrorBody(output.body, context),
|
|
1538
1538
|
};
|
|
1539
1539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
1540
|
switch (errorCode) {
|
|
@@ -1583,7 +1583,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1583
1583
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1584
1584
|
const parsedOutput = {
|
|
1585
1585
|
...output,
|
|
1586
|
-
body: await
|
|
1586
|
+
body: await parseErrorBody(output.body, context),
|
|
1587
1587
|
};
|
|
1588
1588
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
1589
|
switch (errorCode) {
|
|
@@ -1632,7 +1632,7 @@ exports.deserializeAws_restJson1UpdateAppInstanceCommand = deserializeAws_restJs
|
|
|
1632
1632
|
const deserializeAws_restJson1UpdateAppInstanceCommandError = async (output, context) => {
|
|
1633
1633
|
const parsedOutput = {
|
|
1634
1634
|
...output,
|
|
1635
|
-
body: await
|
|
1635
|
+
body: await parseErrorBody(output.body, context),
|
|
1636
1636
|
};
|
|
1637
1637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
1638
|
switch (errorCode) {
|
|
@@ -1684,7 +1684,7 @@ exports.deserializeAws_restJson1UpdateAppInstanceUserCommand = deserializeAws_re
|
|
|
1684
1684
|
const deserializeAws_restJson1UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
|
-
body: await
|
|
1687
|
+
body: await parseErrorBody(output.body, context),
|
|
1688
1688
|
};
|
|
1689
1689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1690
|
switch (errorCode) {
|
|
@@ -1742,7 +1742,7 @@ exports.deserializeAws_restJson1UpdateAppInstanceUserEndpointCommand = deseriali
|
|
|
1742
1742
|
const deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = async (output, context) => {
|
|
1743
1743
|
const parsedOutput = {
|
|
1744
1744
|
...output,
|
|
1745
|
-
body: await
|
|
1745
|
+
body: await parseErrorBody(output.body, context),
|
|
1746
1746
|
};
|
|
1747
1747
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
1748
|
switch (errorCode) {
|
|
@@ -2138,6 +2138,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2138
2138
|
}
|
|
2139
2139
|
return {};
|
|
2140
2140
|
});
|
|
2141
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2142
|
+
var _a;
|
|
2143
|
+
const value = await parseBody(errorBody, context);
|
|
2144
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2145
|
+
return value;
|
|
2146
|
+
};
|
|
2141
2147
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2142
2148
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2143
2149
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -640,7 +640,7 @@ var deserializeAws_restJson1CreateAppInstanceCommandError = function (output, co
|
|
|
640
640
|
case 0:
|
|
641
641
|
_a = [__assign({}, output)];
|
|
642
642
|
_c = {};
|
|
643
|
-
return [4,
|
|
643
|
+
return [4, parseErrorBody(output.body, context)];
|
|
644
644
|
case 1:
|
|
645
645
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
646
646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -727,7 +727,7 @@ var deserializeAws_restJson1CreateAppInstanceAdminCommandError = function (outpu
|
|
|
727
727
|
case 0:
|
|
728
728
|
_a = [__assign({}, output)];
|
|
729
729
|
_c = {};
|
|
730
|
-
return [4,
|
|
730
|
+
return [4, parseErrorBody(output.body, context)];
|
|
731
731
|
case 1:
|
|
732
732
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
733
733
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -811,7 +811,7 @@ var deserializeAws_restJson1CreateAppInstanceUserCommandError = function (output
|
|
|
811
811
|
case 0:
|
|
812
812
|
_a = [__assign({}, output)];
|
|
813
813
|
_c = {};
|
|
814
|
-
return [4,
|
|
814
|
+
return [4, parseErrorBody(output.body, context)];
|
|
815
815
|
case 1:
|
|
816
816
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
817
817
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -890,7 +890,7 @@ var deserializeAws_restJson1DeleteAppInstanceCommandError = function (output, co
|
|
|
890
890
|
case 0:
|
|
891
891
|
_a = [__assign({}, output)];
|
|
892
892
|
_c = {};
|
|
893
|
-
return [4,
|
|
893
|
+
return [4, parseErrorBody(output.body, context)];
|
|
894
894
|
case 1:
|
|
895
895
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
896
896
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -965,7 +965,7 @@ var deserializeAws_restJson1DeleteAppInstanceAdminCommandError = function (outpu
|
|
|
965
965
|
case 0:
|
|
966
966
|
_a = [__assign({}, output)];
|
|
967
967
|
_c = {};
|
|
968
|
-
return [4,
|
|
968
|
+
return [4, parseErrorBody(output.body, context)];
|
|
969
969
|
case 1:
|
|
970
970
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
971
971
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1044,7 +1044,7 @@ var deserializeAws_restJson1DeleteAppInstanceUserCommandError = function (output
|
|
|
1044
1044
|
case 0:
|
|
1045
1045
|
_a = [__assign({}, output)];
|
|
1046
1046
|
_c = {};
|
|
1047
|
-
return [4,
|
|
1047
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1048
1048
|
case 1:
|
|
1049
1049
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1050
1050
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1123,7 +1123,7 @@ var deserializeAws_restJson1DeregisterAppInstanceUserEndpointCommandError = func
|
|
|
1123
1123
|
case 0:
|
|
1124
1124
|
_a = [__assign({}, output)];
|
|
1125
1125
|
_c = {};
|
|
1126
|
-
return [4,
|
|
1126
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1127
1127
|
case 1:
|
|
1128
1128
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1129
1129
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1199,7 +1199,7 @@ var deserializeAws_restJson1DescribeAppInstanceCommandError = function (output,
|
|
|
1199
1199
|
case 0:
|
|
1200
1200
|
_a = [__assign({}, output)];
|
|
1201
1201
|
_c = {};
|
|
1202
|
-
return [4,
|
|
1202
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1203
1203
|
case 1:
|
|
1204
1204
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1205
1205
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1275,7 +1275,7 @@ var deserializeAws_restJson1DescribeAppInstanceAdminCommandError = function (out
|
|
|
1275
1275
|
case 0:
|
|
1276
1276
|
_a = [__assign({}, output)];
|
|
1277
1277
|
_c = {};
|
|
1278
|
-
return [4,
|
|
1278
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1279
1279
|
case 1:
|
|
1280
1280
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1281
1281
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1351,7 +1351,7 @@ var deserializeAws_restJson1DescribeAppInstanceUserCommandError = function (outp
|
|
|
1351
1351
|
case 0:
|
|
1352
1352
|
_a = [__assign({}, output)];
|
|
1353
1353
|
_c = {};
|
|
1354
|
-
return [4,
|
|
1354
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1355
1355
|
case 1:
|
|
1356
1356
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1357
1357
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1427,7 +1427,7 @@ var deserializeAws_restJson1DescribeAppInstanceUserEndpointCommandError = functi
|
|
|
1427
1427
|
case 0:
|
|
1428
1428
|
_a = [__assign({}, output)];
|
|
1429
1429
|
_c = {};
|
|
1430
|
-
return [4,
|
|
1430
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1431
1431
|
case 1:
|
|
1432
1432
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1433
1433
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1506,7 +1506,7 @@ var deserializeAws_restJson1GetAppInstanceRetentionSettingsCommandError = functi
|
|
|
1506
1506
|
case 0:
|
|
1507
1507
|
_a = [__assign({}, output)];
|
|
1508
1508
|
_c = {};
|
|
1509
|
-
return [4,
|
|
1509
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1510
1510
|
case 1:
|
|
1511
1511
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1512
1512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1588,7 +1588,7 @@ var deserializeAws_restJson1ListAppInstanceAdminsCommandError = function (output
|
|
|
1588
1588
|
case 0:
|
|
1589
1589
|
_a = [__assign({}, output)];
|
|
1590
1590
|
_c = {};
|
|
1591
|
-
return [4,
|
|
1591
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1592
1592
|
case 1:
|
|
1593
1593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1594
1594
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1671,7 +1671,7 @@ var deserializeAws_restJson1ListAppInstancesCommandError = function (output, con
|
|
|
1671
1671
|
case 0:
|
|
1672
1672
|
_a = [__assign({}, output)];
|
|
1673
1673
|
_c = {};
|
|
1674
|
-
return [4,
|
|
1674
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1675
1675
|
case 1:
|
|
1676
1676
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1677
1677
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1750,7 +1750,7 @@ var deserializeAws_restJson1ListAppInstanceUserEndpointsCommandError = function
|
|
|
1750
1750
|
case 0:
|
|
1751
1751
|
_a = [__assign({}, output)];
|
|
1752
1752
|
_c = {};
|
|
1753
|
-
return [4,
|
|
1753
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1754
1754
|
case 1:
|
|
1755
1755
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1756
1756
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1832,7 +1832,7 @@ var deserializeAws_restJson1ListAppInstanceUsersCommandError = function (output,
|
|
|
1832
1832
|
case 0:
|
|
1833
1833
|
_a = [__assign({}, output)];
|
|
1834
1834
|
_c = {};
|
|
1835
|
-
return [4,
|
|
1835
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1836
1836
|
case 1:
|
|
1837
1837
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1838
1838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1908,7 +1908,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1908
1908
|
case 0:
|
|
1909
1909
|
_a = [__assign({}, output)];
|
|
1910
1910
|
_c = {};
|
|
1911
|
-
return [4,
|
|
1911
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1912
1912
|
case 1:
|
|
1913
1913
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1914
1914
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1987,7 +1987,7 @@ var deserializeAws_restJson1PutAppInstanceRetentionSettingsCommandError = functi
|
|
|
1987
1987
|
case 0:
|
|
1988
1988
|
_a = [__assign({}, output)];
|
|
1989
1989
|
_c = {};
|
|
1990
|
-
return [4,
|
|
1990
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1991
1991
|
case 1:
|
|
1992
1992
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1993
1993
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2066,7 +2066,7 @@ var deserializeAws_restJson1RegisterAppInstanceUserEndpointCommandError = functi
|
|
|
2066
2066
|
case 0:
|
|
2067
2067
|
_a = [__assign({}, output)];
|
|
2068
2068
|
_c = {};
|
|
2069
|
-
return [4,
|
|
2069
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2070
2070
|
case 1:
|
|
2071
2071
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2072
2072
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2145,7 +2145,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2145
2145
|
case 0:
|
|
2146
2146
|
_a = [__assign({}, output)];
|
|
2147
2147
|
_c = {};
|
|
2148
|
-
return [4,
|
|
2148
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2149
2149
|
case 1:
|
|
2150
2150
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2151
2151
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2220,7 +2220,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2220
2220
|
case 0:
|
|
2221
2221
|
_a = [__assign({}, output)];
|
|
2222
2222
|
_c = {};
|
|
2223
|
-
return [4,
|
|
2223
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2224
2224
|
case 1:
|
|
2225
2225
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2226
2226
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2296,7 +2296,7 @@ var deserializeAws_restJson1UpdateAppInstanceCommandError = function (output, co
|
|
|
2296
2296
|
case 0:
|
|
2297
2297
|
_a = [__assign({}, output)];
|
|
2298
2298
|
_c = {};
|
|
2299
|
-
return [4,
|
|
2299
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2300
2300
|
case 1:
|
|
2301
2301
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2302
2302
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2376,7 +2376,7 @@ var deserializeAws_restJson1UpdateAppInstanceUserCommandError = function (output
|
|
|
2376
2376
|
case 0:
|
|
2377
2377
|
_a = [__assign({}, output)];
|
|
2378
2378
|
_c = {};
|
|
2379
|
-
return [4,
|
|
2379
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2380
2380
|
case 1:
|
|
2381
2381
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2382
2382
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2463,7 +2463,7 @@ var deserializeAws_restJson1UpdateAppInstanceUserEndpointCommandError = function
|
|
|
2463
2463
|
case 0:
|
|
2464
2464
|
_a = [__assign({}, output)];
|
|
2465
2465
|
_c = {};
|
|
2466
|
-
return [4,
|
|
2466
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2467
2467
|
case 1:
|
|
2468
2468
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2469
2469
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2870,6 +2870,19 @@ var parseBody = function (streamBody, context) {
|
|
|
2870
2870
|
return {};
|
|
2871
2871
|
});
|
|
2872
2872
|
};
|
|
2873
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2874
|
+
var value;
|
|
2875
|
+
var _a;
|
|
2876
|
+
return __generator(this, function (_b) {
|
|
2877
|
+
switch (_b.label) {
|
|
2878
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2879
|
+
case 1:
|
|
2880
|
+
value = _b.sent();
|
|
2881
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2882
|
+
return [2, value];
|
|
2883
|
+
}
|
|
2884
|
+
});
|
|
2885
|
+
}); };
|
|
2873
2886
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2874
2887
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2875
2888
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-chime-sdk-identity",
|
|
3
3
|
"description": "AWS SDK for JavaScript Chime Sdk Identity 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",
|