@aws-sdk/client-chime-sdk-messaging 3.112.0 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +230 -185
- package/dist-es/protocols/Aws_restJson1.js +230 -185
- package/package.json +6 -6
|
@@ -1560,8 +1560,7 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
|
|
|
1560
1560
|
body: await parseBody(output.body, context),
|
|
1561
1561
|
};
|
|
1562
1562
|
let response;
|
|
1563
|
-
|
|
1564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
1564
|
switch (errorCode) {
|
|
1566
1565
|
case "BadRequestException":
|
|
1567
1566
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1589,10 +1588,12 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
|
|
|
1589
1588
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1590
1589
|
default:
|
|
1591
1590
|
const parsedBody = parsedOutput.body;
|
|
1591
|
+
const $metadata = deserializeMetadata(output);
|
|
1592
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1592
1593
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1594
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1594
1595
|
$fault: "client",
|
|
1595
|
-
$metadata
|
|
1596
|
+
$metadata,
|
|
1596
1597
|
});
|
|
1597
1598
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1598
1599
|
}
|
|
@@ -1622,8 +1623,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1622
1623
|
body: await parseBody(output.body, context),
|
|
1623
1624
|
};
|
|
1624
1625
|
let response;
|
|
1625
|
-
|
|
1626
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
1627
|
switch (errorCode) {
|
|
1628
1628
|
case "BadRequestException":
|
|
1629
1629
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1645,10 +1645,12 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1645
1645
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1646
1646
|
default:
|
|
1647
1647
|
const parsedBody = parsedOutput.body;
|
|
1648
|
+
const $metadata = deserializeMetadata(output);
|
|
1649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1648
1650
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1650
1652
|
$fault: "client",
|
|
1651
|
-
$metadata
|
|
1653
|
+
$metadata,
|
|
1652
1654
|
});
|
|
1653
1655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1654
1656
|
}
|
|
@@ -1678,8 +1680,7 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
|
|
|
1678
1680
|
body: await parseBody(output.body, context),
|
|
1679
1681
|
};
|
|
1680
1682
|
let response;
|
|
1681
|
-
|
|
1682
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1684
|
switch (errorCode) {
|
|
1684
1685
|
case "BadRequestException":
|
|
1685
1686
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1704,10 +1705,12 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
|
|
|
1704
1705
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1705
1706
|
default:
|
|
1706
1707
|
const parsedBody = parsedOutput.body;
|
|
1708
|
+
const $metadata = deserializeMetadata(output);
|
|
1709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1707
1710
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1711
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1709
1712
|
$fault: "client",
|
|
1710
|
-
$metadata
|
|
1713
|
+
$metadata,
|
|
1711
1714
|
});
|
|
1712
1715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1713
1716
|
}
|
|
@@ -1733,8 +1736,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1733
1736
|
body: await parseBody(output.body, context),
|
|
1734
1737
|
};
|
|
1735
1738
|
let response;
|
|
1736
|
-
|
|
1737
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1740
|
switch (errorCode) {
|
|
1739
1741
|
case "BadRequestException":
|
|
1740
1742
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1762,10 +1764,12 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1762
1764
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1763
1765
|
default:
|
|
1764
1766
|
const parsedBody = parsedOutput.body;
|
|
1767
|
+
const $metadata = deserializeMetadata(output);
|
|
1768
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1765
1769
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1770
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1767
1771
|
$fault: "client",
|
|
1768
|
-
$metadata
|
|
1772
|
+
$metadata,
|
|
1769
1773
|
});
|
|
1770
1774
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1771
1775
|
}
|
|
@@ -1795,8 +1799,7 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
1795
1799
|
body: await parseBody(output.body, context),
|
|
1796
1800
|
};
|
|
1797
1801
|
let response;
|
|
1798
|
-
|
|
1799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
1803
|
switch (errorCode) {
|
|
1801
1804
|
case "BadRequestException":
|
|
1802
1805
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1824,10 +1827,12 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
1824
1827
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1825
1828
|
default:
|
|
1826
1829
|
const parsedBody = parsedOutput.body;
|
|
1830
|
+
const $metadata = deserializeMetadata(output);
|
|
1831
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1827
1832
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1829
1834
|
$fault: "client",
|
|
1830
|
-
$metadata
|
|
1835
|
+
$metadata,
|
|
1831
1836
|
});
|
|
1832
1837
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1833
1838
|
}
|
|
@@ -1853,8 +1858,7 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
|
|
|
1853
1858
|
body: await parseBody(output.body, context),
|
|
1854
1859
|
};
|
|
1855
1860
|
let response;
|
|
1856
|
-
|
|
1857
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1862
|
switch (errorCode) {
|
|
1859
1863
|
case "BadRequestException":
|
|
1860
1864
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1882,10 +1886,12 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
|
|
|
1882
1886
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1883
1887
|
default:
|
|
1884
1888
|
const parsedBody = parsedOutput.body;
|
|
1889
|
+
const $metadata = deserializeMetadata(output);
|
|
1890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1885
1891
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1887
1893
|
$fault: "client",
|
|
1888
|
-
$metadata
|
|
1894
|
+
$metadata,
|
|
1889
1895
|
});
|
|
1890
1896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1891
1897
|
}
|
|
@@ -1915,8 +1921,7 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1915
1921
|
body: await parseBody(output.body, context),
|
|
1916
1922
|
};
|
|
1917
1923
|
let response;
|
|
1918
|
-
|
|
1919
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
1925
|
switch (errorCode) {
|
|
1921
1926
|
case "BadRequestException":
|
|
1922
1927
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1944,10 +1949,12 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1944
1949
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1945
1950
|
default:
|
|
1946
1951
|
const parsedBody = parsedOutput.body;
|
|
1952
|
+
const $metadata = deserializeMetadata(output);
|
|
1953
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1947
1954
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1948
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1955
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1949
1956
|
$fault: "client",
|
|
1950
|
-
$metadata
|
|
1957
|
+
$metadata,
|
|
1951
1958
|
});
|
|
1952
1959
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1953
1960
|
}
|
|
@@ -1977,8 +1984,7 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
1977
1984
|
body: await parseBody(output.body, context),
|
|
1978
1985
|
};
|
|
1979
1986
|
let response;
|
|
1980
|
-
|
|
1981
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1988
|
switch (errorCode) {
|
|
1983
1989
|
case "BadRequestException":
|
|
1984
1990
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2006,10 +2012,12 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
2006
2012
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2007
2013
|
default:
|
|
2008
2014
|
const parsedBody = parsedOutput.body;
|
|
2015
|
+
const $metadata = deserializeMetadata(output);
|
|
2016
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2009
2017
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2010
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2018
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2011
2019
|
$fault: "client",
|
|
2012
|
-
$metadata
|
|
2020
|
+
$metadata,
|
|
2013
2021
|
});
|
|
2014
2022
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2015
2023
|
}
|
|
@@ -2031,8 +2039,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2031
2039
|
body: await parseBody(output.body, context),
|
|
2032
2040
|
};
|
|
2033
2041
|
let response;
|
|
2034
|
-
|
|
2035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
2043
|
switch (errorCode) {
|
|
2037
2044
|
case "BadRequestException":
|
|
2038
2045
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2054,10 +2061,12 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2054
2061
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2055
2062
|
default:
|
|
2056
2063
|
const parsedBody = parsedOutput.body;
|
|
2064
|
+
const $metadata = deserializeMetadata(output);
|
|
2065
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2057
2066
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2067
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2059
2068
|
$fault: "client",
|
|
2060
|
-
$metadata
|
|
2069
|
+
$metadata,
|
|
2061
2070
|
});
|
|
2062
2071
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2063
2072
|
}
|
|
@@ -2079,8 +2088,7 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
2079
2088
|
body: await parseBody(output.body, context),
|
|
2080
2089
|
};
|
|
2081
2090
|
let response;
|
|
2082
|
-
|
|
2083
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
2092
|
switch (errorCode) {
|
|
2085
2093
|
case "BadRequestException":
|
|
2086
2094
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2102,10 +2110,12 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
2102
2110
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2103
2111
|
default:
|
|
2104
2112
|
const parsedBody = parsedOutput.body;
|
|
2113
|
+
const $metadata = deserializeMetadata(output);
|
|
2114
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2105
2115
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2106
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2116
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2107
2117
|
$fault: "client",
|
|
2108
|
-
$metadata
|
|
2118
|
+
$metadata,
|
|
2109
2119
|
});
|
|
2110
2120
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2111
2121
|
}
|
|
@@ -2127,8 +2137,7 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
|
|
|
2127
2137
|
body: await parseBody(output.body, context),
|
|
2128
2138
|
};
|
|
2129
2139
|
let response;
|
|
2130
|
-
|
|
2131
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
2141
|
switch (errorCode) {
|
|
2133
2142
|
case "BadRequestException":
|
|
2134
2143
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2153,10 +2162,12 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
|
|
|
2153
2162
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2154
2163
|
default:
|
|
2155
2164
|
const parsedBody = parsedOutput.body;
|
|
2165
|
+
const $metadata = deserializeMetadata(output);
|
|
2166
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2156
2167
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2168
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2158
2169
|
$fault: "client",
|
|
2159
|
-
$metadata
|
|
2170
|
+
$metadata,
|
|
2160
2171
|
});
|
|
2161
2172
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2162
2173
|
}
|
|
@@ -2178,8 +2189,7 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
2178
2189
|
body: await parseBody(output.body, context),
|
|
2179
2190
|
};
|
|
2180
2191
|
let response;
|
|
2181
|
-
|
|
2182
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
2193
|
switch (errorCode) {
|
|
2184
2194
|
case "BadRequestException":
|
|
2185
2195
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2204,10 +2214,12 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
2204
2214
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2205
2215
|
default:
|
|
2206
2216
|
const parsedBody = parsedOutput.body;
|
|
2217
|
+
const $metadata = deserializeMetadata(output);
|
|
2218
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2207
2219
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2220
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2209
2221
|
$fault: "client",
|
|
2210
|
-
$metadata
|
|
2222
|
+
$metadata,
|
|
2211
2223
|
});
|
|
2212
2224
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2213
2225
|
}
|
|
@@ -2229,8 +2241,7 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
2229
2241
|
body: await parseBody(output.body, context),
|
|
2230
2242
|
};
|
|
2231
2243
|
let response;
|
|
2232
|
-
|
|
2233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
2245
|
switch (errorCode) {
|
|
2235
2246
|
case "BadRequestException":
|
|
2236
2247
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2252,10 +2263,12 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
2252
2263
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2253
2264
|
default:
|
|
2254
2265
|
const parsedBody = parsedOutput.body;
|
|
2266
|
+
const $metadata = deserializeMetadata(output);
|
|
2267
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2255
2268
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2257
2270
|
$fault: "client",
|
|
2258
|
-
$metadata
|
|
2271
|
+
$metadata,
|
|
2259
2272
|
});
|
|
2260
2273
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2261
2274
|
}
|
|
@@ -2277,8 +2290,7 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
2277
2290
|
body: await parseBody(output.body, context),
|
|
2278
2291
|
};
|
|
2279
2292
|
let response;
|
|
2280
|
-
|
|
2281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2294
|
switch (errorCode) {
|
|
2283
2295
|
case "BadRequestException":
|
|
2284
2296
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2300,10 +2312,12 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
2300
2312
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2301
2313
|
default:
|
|
2302
2314
|
const parsedBody = parsedOutput.body;
|
|
2315
|
+
const $metadata = deserializeMetadata(output);
|
|
2316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2303
2317
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2305
2319
|
$fault: "client",
|
|
2306
|
-
$metadata
|
|
2320
|
+
$metadata,
|
|
2307
2321
|
});
|
|
2308
2322
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2309
2323
|
}
|
|
@@ -2329,8 +2343,7 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2329
2343
|
body: await parseBody(output.body, context),
|
|
2330
2344
|
};
|
|
2331
2345
|
let response;
|
|
2332
|
-
|
|
2333
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
2347
|
switch (errorCode) {
|
|
2335
2348
|
case "BadRequestException":
|
|
2336
2349
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2352,10 +2365,12 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2352
2365
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2353
2366
|
default:
|
|
2354
2367
|
const parsedBody = parsedOutput.body;
|
|
2368
|
+
const $metadata = deserializeMetadata(output);
|
|
2369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2355
2370
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2356
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2357
2372
|
$fault: "client",
|
|
2358
|
-
$metadata
|
|
2373
|
+
$metadata,
|
|
2359
2374
|
});
|
|
2360
2375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2361
2376
|
}
|
|
@@ -2381,8 +2396,7 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
2381
2396
|
body: await parseBody(output.body, context),
|
|
2382
2397
|
};
|
|
2383
2398
|
let response;
|
|
2384
|
-
|
|
2385
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
2400
|
switch (errorCode) {
|
|
2387
2401
|
case "BadRequestException":
|
|
2388
2402
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2407,10 +2421,12 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
2407
2421
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2408
2422
|
default:
|
|
2409
2423
|
const parsedBody = parsedOutput.body;
|
|
2424
|
+
const $metadata = deserializeMetadata(output);
|
|
2425
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2410
2426
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2411
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2427
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2412
2428
|
$fault: "client",
|
|
2413
|
-
$metadata
|
|
2429
|
+
$metadata,
|
|
2414
2430
|
});
|
|
2415
2431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2416
2432
|
}
|
|
@@ -2436,8 +2452,7 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
|
|
|
2436
2452
|
body: await parseBody(output.body, context),
|
|
2437
2453
|
};
|
|
2438
2454
|
let response;
|
|
2439
|
-
|
|
2440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2456
|
switch (errorCode) {
|
|
2442
2457
|
case "BadRequestException":
|
|
2443
2458
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2459,10 +2474,12 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
|
|
|
2459
2474
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2460
2475
|
default:
|
|
2461
2476
|
const parsedBody = parsedOutput.body;
|
|
2477
|
+
const $metadata = deserializeMetadata(output);
|
|
2478
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2462
2479
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2480
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2464
2481
|
$fault: "client",
|
|
2465
|
-
$metadata
|
|
2482
|
+
$metadata,
|
|
2466
2483
|
});
|
|
2467
2484
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2468
2485
|
}
|
|
@@ -2488,8 +2505,7 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
2488
2505
|
body: await parseBody(output.body, context),
|
|
2489
2506
|
};
|
|
2490
2507
|
let response;
|
|
2491
|
-
|
|
2492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2508
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
2509
|
switch (errorCode) {
|
|
2494
2510
|
case "BadRequestException":
|
|
2495
2511
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2514,10 +2530,12 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
2514
2530
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2515
2531
|
default:
|
|
2516
2532
|
const parsedBody = parsedOutput.body;
|
|
2533
|
+
const $metadata = deserializeMetadata(output);
|
|
2534
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2517
2535
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2536
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2519
2537
|
$fault: "client",
|
|
2520
|
-
$metadata
|
|
2538
|
+
$metadata,
|
|
2521
2539
|
});
|
|
2522
2540
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2523
2541
|
}
|
|
@@ -2543,8 +2561,7 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2543
2561
|
body: await parseBody(output.body, context),
|
|
2544
2562
|
};
|
|
2545
2563
|
let response;
|
|
2546
|
-
|
|
2547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2548
2565
|
switch (errorCode) {
|
|
2549
2566
|
case "BadRequestException":
|
|
2550
2567
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2566,10 +2583,12 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2566
2583
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2567
2584
|
default:
|
|
2568
2585
|
const parsedBody = parsedOutput.body;
|
|
2586
|
+
const $metadata = deserializeMetadata(output);
|
|
2587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2569
2588
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2570
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2571
2590
|
$fault: "client",
|
|
2572
|
-
$metadata
|
|
2591
|
+
$metadata,
|
|
2573
2592
|
});
|
|
2574
2593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2575
2594
|
}
|
|
@@ -2595,8 +2614,7 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
2595
2614
|
body: await parseBody(output.body, context),
|
|
2596
2615
|
};
|
|
2597
2616
|
let response;
|
|
2598
|
-
|
|
2599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
2618
|
switch (errorCode) {
|
|
2601
2619
|
case "BadRequestException":
|
|
2602
2620
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2618,10 +2636,12 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
2618
2636
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2619
2637
|
default:
|
|
2620
2638
|
const parsedBody = parsedOutput.body;
|
|
2639
|
+
const $metadata = deserializeMetadata(output);
|
|
2640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2621
2641
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2623
2643
|
$fault: "client",
|
|
2624
|
-
$metadata
|
|
2644
|
+
$metadata,
|
|
2625
2645
|
});
|
|
2626
2646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2627
2647
|
}
|
|
@@ -2647,8 +2667,7 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
2647
2667
|
body: await parseBody(output.body, context),
|
|
2648
2668
|
};
|
|
2649
2669
|
let response;
|
|
2650
|
-
|
|
2651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
2671
|
switch (errorCode) {
|
|
2653
2672
|
case "BadRequestException":
|
|
2654
2673
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2673,10 +2692,12 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
2673
2692
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2674
2693
|
default:
|
|
2675
2694
|
const parsedBody = parsedOutput.body;
|
|
2695
|
+
const $metadata = deserializeMetadata(output);
|
|
2696
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2676
2697
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2677
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2698
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2678
2699
|
$fault: "client",
|
|
2679
|
-
$metadata
|
|
2700
|
+
$metadata,
|
|
2680
2701
|
});
|
|
2681
2702
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2682
2703
|
}
|
|
@@ -2698,8 +2719,7 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
|
|
|
2698
2719
|
body: await parseBody(output.body, context),
|
|
2699
2720
|
};
|
|
2700
2721
|
let response;
|
|
2701
|
-
|
|
2702
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2703
2723
|
switch (errorCode) {
|
|
2704
2724
|
case "BadRequestException":
|
|
2705
2725
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2727,10 +2747,12 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
|
|
|
2727
2747
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2728
2748
|
default:
|
|
2729
2749
|
const parsedBody = parsedOutput.body;
|
|
2750
|
+
const $metadata = deserializeMetadata(output);
|
|
2751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2730
2752
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2731
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2732
2754
|
$fault: "client",
|
|
2733
|
-
$metadata
|
|
2755
|
+
$metadata,
|
|
2734
2756
|
});
|
|
2735
2757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2736
2758
|
}
|
|
@@ -2764,8 +2786,7 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
|
|
|
2764
2786
|
body: await parseBody(output.body, context),
|
|
2765
2787
|
};
|
|
2766
2788
|
let response;
|
|
2767
|
-
|
|
2768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
2790
|
switch (errorCode) {
|
|
2770
2791
|
case "BadRequestException":
|
|
2771
2792
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2787,10 +2808,12 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
|
|
|
2787
2808
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2788
2809
|
default:
|
|
2789
2810
|
const parsedBody = parsedOutput.body;
|
|
2811
|
+
const $metadata = deserializeMetadata(output);
|
|
2812
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2790
2813
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2791
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2814
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2792
2815
|
$fault: "client",
|
|
2793
|
-
$metadata
|
|
2816
|
+
$metadata,
|
|
2794
2817
|
});
|
|
2795
2818
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2796
2819
|
}
|
|
@@ -2816,8 +2839,7 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
2816
2839
|
body: await parseBody(output.body, context),
|
|
2817
2840
|
};
|
|
2818
2841
|
let response;
|
|
2819
|
-
|
|
2820
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
2843
|
switch (errorCode) {
|
|
2822
2844
|
case "BadRequestException":
|
|
2823
2845
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2842,10 +2864,12 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
2842
2864
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2843
2865
|
default:
|
|
2844
2866
|
const parsedBody = parsedOutput.body;
|
|
2867
|
+
const $metadata = deserializeMetadata(output);
|
|
2868
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2845
2869
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2846
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2870
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2847
2871
|
$fault: "client",
|
|
2848
|
-
$metadata
|
|
2872
|
+
$metadata,
|
|
2849
2873
|
});
|
|
2850
2874
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2851
2875
|
}
|
|
@@ -2871,8 +2895,7 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
|
|
|
2871
2895
|
body: await parseBody(output.body, context),
|
|
2872
2896
|
};
|
|
2873
2897
|
let response;
|
|
2874
|
-
|
|
2875
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2876
2899
|
switch (errorCode) {
|
|
2877
2900
|
case "BadRequestException":
|
|
2878
2901
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2894,10 +2917,12 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
|
|
|
2894
2917
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2895
2918
|
default:
|
|
2896
2919
|
const parsedBody = parsedOutput.body;
|
|
2920
|
+
const $metadata = deserializeMetadata(output);
|
|
2921
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2897
2922
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2899
2924
|
$fault: "client",
|
|
2900
|
-
$metadata
|
|
2925
|
+
$metadata,
|
|
2901
2926
|
});
|
|
2902
2927
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2903
2928
|
}
|
|
@@ -2923,8 +2948,7 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2923
2948
|
body: await parseBody(output.body, context),
|
|
2924
2949
|
};
|
|
2925
2950
|
let response;
|
|
2926
|
-
|
|
2927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2951
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2928
2952
|
switch (errorCode) {
|
|
2929
2953
|
case "ForbiddenException":
|
|
2930
2954
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
@@ -2943,10 +2967,12 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2943
2967
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2944
2968
|
default:
|
|
2945
2969
|
const parsedBody = parsedOutput.body;
|
|
2970
|
+
const $metadata = deserializeMetadata(output);
|
|
2971
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2946
2972
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2947
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2948
2974
|
$fault: "client",
|
|
2949
|
-
$metadata
|
|
2975
|
+
$metadata,
|
|
2950
2976
|
});
|
|
2951
2977
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2952
2978
|
}
|
|
@@ -2980,8 +3006,7 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
2980
3006
|
body: await parseBody(output.body, context),
|
|
2981
3007
|
};
|
|
2982
3008
|
let response;
|
|
2983
|
-
|
|
2984
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
3010
|
switch (errorCode) {
|
|
2986
3011
|
case "BadRequestException":
|
|
2987
3012
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3003,10 +3028,12 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
3003
3028
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3004
3029
|
default:
|
|
3005
3030
|
const parsedBody = parsedOutput.body;
|
|
3031
|
+
const $metadata = deserializeMetadata(output);
|
|
3032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3006
3033
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3008
3035
|
$fault: "client",
|
|
3009
|
-
$metadata
|
|
3036
|
+
$metadata,
|
|
3010
3037
|
});
|
|
3011
3038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3012
3039
|
}
|
|
@@ -3036,8 +3063,7 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
|
|
|
3036
3063
|
body: await parseBody(output.body, context),
|
|
3037
3064
|
};
|
|
3038
3065
|
let response;
|
|
3039
|
-
|
|
3040
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3066
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3041
3067
|
switch (errorCode) {
|
|
3042
3068
|
case "BadRequestException":
|
|
3043
3069
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3059,10 +3085,12 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
|
|
|
3059
3085
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3060
3086
|
default:
|
|
3061
3087
|
const parsedBody = parsedOutput.body;
|
|
3088
|
+
const $metadata = deserializeMetadata(output);
|
|
3089
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3062
3090
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3091
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3064
3092
|
$fault: "client",
|
|
3065
|
-
$metadata
|
|
3093
|
+
$metadata,
|
|
3066
3094
|
});
|
|
3067
3095
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3068
3096
|
}
|
|
@@ -3096,8 +3124,7 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
3096
3124
|
body: await parseBody(output.body, context),
|
|
3097
3125
|
};
|
|
3098
3126
|
let response;
|
|
3099
|
-
|
|
3100
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3101
3128
|
switch (errorCode) {
|
|
3102
3129
|
case "BadRequestException":
|
|
3103
3130
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3119,10 +3146,12 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
3119
3146
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3120
3147
|
default:
|
|
3121
3148
|
const parsedBody = parsedOutput.body;
|
|
3149
|
+
const $metadata = deserializeMetadata(output);
|
|
3150
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3122
3151
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3123
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3152
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3124
3153
|
$fault: "client",
|
|
3125
|
-
$metadata
|
|
3154
|
+
$metadata,
|
|
3126
3155
|
});
|
|
3127
3156
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3128
3157
|
}
|
|
@@ -3152,8 +3181,7 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
3152
3181
|
body: await parseBody(output.body, context),
|
|
3153
3182
|
};
|
|
3154
3183
|
let response;
|
|
3155
|
-
|
|
3156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3184
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3157
3185
|
switch (errorCode) {
|
|
3158
3186
|
case "BadRequestException":
|
|
3159
3187
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3175,10 +3203,12 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
3175
3203
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3176
3204
|
default:
|
|
3177
3205
|
const parsedBody = parsedOutput.body;
|
|
3206
|
+
const $metadata = deserializeMetadata(output);
|
|
3207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3178
3208
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3180
3210
|
$fault: "client",
|
|
3181
|
-
$metadata
|
|
3211
|
+
$metadata,
|
|
3182
3212
|
});
|
|
3183
3213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3184
3214
|
}
|
|
@@ -3212,8 +3242,7 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
3212
3242
|
body: await parseBody(output.body, context),
|
|
3213
3243
|
};
|
|
3214
3244
|
let response;
|
|
3215
|
-
|
|
3216
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3217
3246
|
switch (errorCode) {
|
|
3218
3247
|
case "BadRequestException":
|
|
3219
3248
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3235,10 +3264,12 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
3235
3264
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3236
3265
|
default:
|
|
3237
3266
|
const parsedBody = parsedOutput.body;
|
|
3267
|
+
const $metadata = deserializeMetadata(output);
|
|
3268
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3238
3269
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3240
3271
|
$fault: "client",
|
|
3241
|
-
$metadata
|
|
3272
|
+
$metadata,
|
|
3242
3273
|
});
|
|
3243
3274
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3244
3275
|
}
|
|
@@ -3272,8 +3303,7 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
3272
3303
|
body: await parseBody(output.body, context),
|
|
3273
3304
|
};
|
|
3274
3305
|
let response;
|
|
3275
|
-
|
|
3276
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3277
3307
|
switch (errorCode) {
|
|
3278
3308
|
case "BadRequestException":
|
|
3279
3309
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3295,10 +3325,12 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
3295
3325
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3296
3326
|
default:
|
|
3297
3327
|
const parsedBody = parsedOutput.body;
|
|
3328
|
+
const $metadata = deserializeMetadata(output);
|
|
3329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3298
3330
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3300
3332
|
$fault: "client",
|
|
3301
|
-
$metadata
|
|
3333
|
+
$metadata,
|
|
3302
3334
|
});
|
|
3303
3335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3304
3336
|
}
|
|
@@ -3328,8 +3360,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
3328
3360
|
body: await parseBody(output.body, context),
|
|
3329
3361
|
};
|
|
3330
3362
|
let response;
|
|
3331
|
-
|
|
3332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3333
3364
|
switch (errorCode) {
|
|
3334
3365
|
case "BadRequestException":
|
|
3335
3366
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3351,10 +3382,12 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
3351
3382
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3352
3383
|
default:
|
|
3353
3384
|
const parsedBody = parsedOutput.body;
|
|
3385
|
+
const $metadata = deserializeMetadata(output);
|
|
3386
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3354
3387
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3355
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3388
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3356
3389
|
$fault: "client",
|
|
3357
|
-
$metadata
|
|
3390
|
+
$metadata,
|
|
3358
3391
|
});
|
|
3359
3392
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3360
3393
|
}
|
|
@@ -3384,8 +3417,7 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
|
|
|
3384
3417
|
body: await parseBody(output.body, context),
|
|
3385
3418
|
};
|
|
3386
3419
|
let response;
|
|
3387
|
-
|
|
3388
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3389
3421
|
switch (errorCode) {
|
|
3390
3422
|
case "BadRequestException":
|
|
3391
3423
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3407,10 +3439,12 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
|
|
|
3407
3439
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3408
3440
|
default:
|
|
3409
3441
|
const parsedBody = parsedOutput.body;
|
|
3442
|
+
const $metadata = deserializeMetadata(output);
|
|
3443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3410
3444
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3411
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3412
3446
|
$fault: "client",
|
|
3413
|
-
$metadata
|
|
3447
|
+
$metadata,
|
|
3414
3448
|
});
|
|
3415
3449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3416
3450
|
}
|
|
@@ -3440,8 +3474,7 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
3440
3474
|
body: await parseBody(output.body, context),
|
|
3441
3475
|
};
|
|
3442
3476
|
let response;
|
|
3443
|
-
|
|
3444
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3445
3478
|
switch (errorCode) {
|
|
3446
3479
|
case "BadRequestException":
|
|
3447
3480
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3463,10 +3496,12 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
3463
3496
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3464
3497
|
default:
|
|
3465
3498
|
const parsedBody = parsedOutput.body;
|
|
3499
|
+
const $metadata = deserializeMetadata(output);
|
|
3500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3466
3501
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3467
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3468
3503
|
$fault: "client",
|
|
3469
|
-
$metadata
|
|
3504
|
+
$metadata,
|
|
3470
3505
|
});
|
|
3471
3506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3472
3507
|
}
|
|
@@ -3492,8 +3527,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3492
3527
|
body: await parseBody(output.body, context),
|
|
3493
3528
|
};
|
|
3494
3529
|
let response;
|
|
3495
|
-
|
|
3496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3530
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3497
3531
|
switch (errorCode) {
|
|
3498
3532
|
case "BadRequestException":
|
|
3499
3533
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3515,10 +3549,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3515
3549
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3516
3550
|
default:
|
|
3517
3551
|
const parsedBody = parsedOutput.body;
|
|
3552
|
+
const $metadata = deserializeMetadata(output);
|
|
3553
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3518
3554
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3555
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3520
3556
|
$fault: "client",
|
|
3521
|
-
$metadata
|
|
3557
|
+
$metadata,
|
|
3522
3558
|
});
|
|
3523
3559
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3524
3560
|
}
|
|
@@ -3552,8 +3588,7 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3552
3588
|
body: await parseBody(output.body, context),
|
|
3553
3589
|
};
|
|
3554
3590
|
let response;
|
|
3555
|
-
|
|
3556
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3591
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3557
3592
|
switch (errorCode) {
|
|
3558
3593
|
case "BadRequestException":
|
|
3559
3594
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3578,10 +3613,12 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3578
3613
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3579
3614
|
default:
|
|
3580
3615
|
const parsedBody = parsedOutput.body;
|
|
3616
|
+
const $metadata = deserializeMetadata(output);
|
|
3617
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3581
3618
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3619
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3583
3620
|
$fault: "client",
|
|
3584
|
-
$metadata
|
|
3621
|
+
$metadata,
|
|
3585
3622
|
});
|
|
3586
3623
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3587
3624
|
}
|
|
@@ -3611,8 +3648,7 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
3611
3648
|
body: await parseBody(output.body, context),
|
|
3612
3649
|
};
|
|
3613
3650
|
let response;
|
|
3614
|
-
|
|
3615
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3651
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3616
3652
|
switch (errorCode) {
|
|
3617
3653
|
case "BadRequestException":
|
|
3618
3654
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3637,10 +3673,12 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
3637
3673
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3638
3674
|
default:
|
|
3639
3675
|
const parsedBody = parsedOutput.body;
|
|
3676
|
+
const $metadata = deserializeMetadata(output);
|
|
3677
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3640
3678
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3641
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3642
3680
|
$fault: "client",
|
|
3643
|
-
$metadata
|
|
3681
|
+
$metadata,
|
|
3644
3682
|
});
|
|
3645
3683
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3646
3684
|
}
|
|
@@ -3670,8 +3708,7 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
|
|
|
3670
3708
|
body: await parseBody(output.body, context),
|
|
3671
3709
|
};
|
|
3672
3710
|
let response;
|
|
3673
|
-
|
|
3674
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3711
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3675
3712
|
switch (errorCode) {
|
|
3676
3713
|
case "BadRequestException":
|
|
3677
3714
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3693,10 +3730,12 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
|
|
|
3693
3730
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3694
3731
|
default:
|
|
3695
3732
|
const parsedBody = parsedOutput.body;
|
|
3733
|
+
const $metadata = deserializeMetadata(output);
|
|
3734
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3696
3735
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3698
3737
|
$fault: "client",
|
|
3699
|
-
$metadata
|
|
3738
|
+
$metadata,
|
|
3700
3739
|
});
|
|
3701
3740
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3702
3741
|
}
|
|
@@ -3730,8 +3769,7 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
3730
3769
|
body: await parseBody(output.body, context),
|
|
3731
3770
|
};
|
|
3732
3771
|
let response;
|
|
3733
|
-
|
|
3734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3772
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3735
3773
|
switch (errorCode) {
|
|
3736
3774
|
case "BadRequestException":
|
|
3737
3775
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3756,10 +3794,12 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
3756
3794
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3757
3795
|
default:
|
|
3758
3796
|
const parsedBody = parsedOutput.body;
|
|
3797
|
+
const $metadata = deserializeMetadata(output);
|
|
3798
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3759
3799
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3760
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3800
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3761
3801
|
$fault: "client",
|
|
3762
|
-
$metadata
|
|
3802
|
+
$metadata,
|
|
3763
3803
|
});
|
|
3764
3804
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3765
3805
|
}
|
|
@@ -3781,8 +3821,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3781
3821
|
body: await parseBody(output.body, context),
|
|
3782
3822
|
};
|
|
3783
3823
|
let response;
|
|
3784
|
-
|
|
3785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3824
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3786
3825
|
switch (errorCode) {
|
|
3787
3826
|
case "BadRequestException":
|
|
3788
3827
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3807,10 +3846,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3807
3846
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3808
3847
|
default:
|
|
3809
3848
|
const parsedBody = parsedOutput.body;
|
|
3849
|
+
const $metadata = deserializeMetadata(output);
|
|
3850
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3810
3851
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3812
3853
|
$fault: "client",
|
|
3813
|
-
$metadata
|
|
3854
|
+
$metadata,
|
|
3814
3855
|
});
|
|
3815
3856
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3816
3857
|
}
|
|
@@ -3832,8 +3873,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3832
3873
|
body: await parseBody(output.body, context),
|
|
3833
3874
|
};
|
|
3834
3875
|
let response;
|
|
3835
|
-
|
|
3836
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3876
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3837
3877
|
switch (errorCode) {
|
|
3838
3878
|
case "BadRequestException":
|
|
3839
3879
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3855,10 +3895,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3855
3895
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3856
3896
|
default:
|
|
3857
3897
|
const parsedBody = parsedOutput.body;
|
|
3898
|
+
const $metadata = deserializeMetadata(output);
|
|
3899
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3858
3900
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3901
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3860
3902
|
$fault: "client",
|
|
3861
|
-
$metadata
|
|
3903
|
+
$metadata,
|
|
3862
3904
|
});
|
|
3863
3905
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3864
3906
|
}
|
|
@@ -3884,8 +3926,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3884
3926
|
body: await parseBody(output.body, context),
|
|
3885
3927
|
};
|
|
3886
3928
|
let response;
|
|
3887
|
-
|
|
3888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3929
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3930
|
switch (errorCode) {
|
|
3890
3931
|
case "BadRequestException":
|
|
3891
3932
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3910,10 +3951,12 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3910
3951
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3911
3952
|
default:
|
|
3912
3953
|
const parsedBody = parsedOutput.body;
|
|
3954
|
+
const $metadata = deserializeMetadata(output);
|
|
3955
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3913
3956
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3914
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3957
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3915
3958
|
$fault: "client",
|
|
3916
|
-
$metadata
|
|
3959
|
+
$metadata,
|
|
3917
3960
|
});
|
|
3918
3961
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3919
3962
|
}
|
|
@@ -3939,8 +3982,7 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
|
|
|
3939
3982
|
body: await parseBody(output.body, context),
|
|
3940
3983
|
};
|
|
3941
3984
|
let response;
|
|
3942
|
-
|
|
3943
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3944
3986
|
switch (errorCode) {
|
|
3945
3987
|
case "BadRequestException":
|
|
3946
3988
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3965,10 +4007,12 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
|
|
|
3965
4007
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3966
4008
|
default:
|
|
3967
4009
|
const parsedBody = parsedOutput.body;
|
|
4010
|
+
const $metadata = deserializeMetadata(output);
|
|
4011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3968
4012
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3969
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3970
4014
|
$fault: "client",
|
|
3971
|
-
$metadata
|
|
4015
|
+
$metadata,
|
|
3972
4016
|
});
|
|
3973
4017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3974
4018
|
}
|
|
@@ -4002,8 +4046,7 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
4002
4046
|
body: await parseBody(output.body, context),
|
|
4003
4047
|
};
|
|
4004
4048
|
let response;
|
|
4005
|
-
|
|
4006
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4007
4050
|
switch (errorCode) {
|
|
4008
4051
|
case "BadRequestException":
|
|
4009
4052
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -4028,10 +4071,12 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
4028
4071
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
4029
4072
|
default:
|
|
4030
4073
|
const parsedBody = parsedOutput.body;
|
|
4074
|
+
const $metadata = deserializeMetadata(output);
|
|
4075
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4031
4076
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
4032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4033
4078
|
$fault: "client",
|
|
4034
|
-
$metadata
|
|
4079
|
+
$metadata,
|
|
4035
4080
|
});
|
|
4036
4081
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4037
4082
|
}
|
|
@@ -4057,8 +4102,7 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
4057
4102
|
body: await parseBody(output.body, context),
|
|
4058
4103
|
};
|
|
4059
4104
|
let response;
|
|
4060
|
-
|
|
4061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4062
4106
|
switch (errorCode) {
|
|
4063
4107
|
case "BadRequestException":
|
|
4064
4108
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -4083,10 +4127,12 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
4083
4127
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
4084
4128
|
default:
|
|
4085
4129
|
const parsedBody = parsedOutput.body;
|
|
4130
|
+
const $metadata = deserializeMetadata(output);
|
|
4131
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4086
4132
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
4087
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4088
4134
|
$fault: "client",
|
|
4089
|
-
$metadata
|
|
4135
|
+
$metadata,
|
|
4090
4136
|
});
|
|
4091
4137
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4092
4138
|
}
|
|
@@ -4926,5 +4972,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4926
4972
|
if (data["__type"] !== undefined) {
|
|
4927
4973
|
return sanitizeErrorCode(data["__type"]);
|
|
4928
4974
|
}
|
|
4929
|
-
return "";
|
|
4930
4975
|
};
|