@aws-sdk/client-chime-sdk-messaging 3.504.0 → 3.509.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/dist-cjs/index.js +102 -1901
- package/dist-es/protocols/Aws_restJson1.js +140 -1939
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1732,7 +1732,7 @@ var se_UpdateChannelReadMarkerCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
1732
1732
|
}, "se_UpdateChannelReadMarkerCommand");
|
|
1733
1733
|
var de_AssociateChannelFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1734
1734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1735
|
-
return
|
|
1735
|
+
return de_CommandError(output, context);
|
|
1736
1736
|
}
|
|
1737
1737
|
const contents = (0, import_smithy_client.map)({
|
|
1738
1738
|
$metadata: deserializeMetadata(output)
|
|
@@ -1740,49 +1740,9 @@ var de_AssociateChannelFlowCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1740
1740
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1741
1741
|
return contents;
|
|
1742
1742
|
}, "de_AssociateChannelFlowCommand");
|
|
1743
|
-
var de_AssociateChannelFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1744
|
-
const parsedOutput = {
|
|
1745
|
-
...output,
|
|
1746
|
-
body: await parseErrorBody(output.body, context)
|
|
1747
|
-
};
|
|
1748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
|
-
switch (errorCode) {
|
|
1750
|
-
case "BadRequestException":
|
|
1751
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1752
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ConflictException":
|
|
1754
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1755
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "ForbiddenException":
|
|
1757
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1758
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "NotFoundException":
|
|
1760
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1761
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ServiceFailureException":
|
|
1763
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1764
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ServiceUnavailableException":
|
|
1766
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1767
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ThrottledClientException":
|
|
1769
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1770
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "UnauthorizedClientException":
|
|
1772
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1773
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1774
|
-
default:
|
|
1775
|
-
const parsedBody = parsedOutput.body;
|
|
1776
|
-
return throwDefaultError({
|
|
1777
|
-
output,
|
|
1778
|
-
parsedBody,
|
|
1779
|
-
errorCode
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
}, "de_AssociateChannelFlowCommandError");
|
|
1783
1743
|
var de_BatchCreateChannelMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1784
1744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1785
|
-
return
|
|
1745
|
+
return de_CommandError(output, context);
|
|
1786
1746
|
}
|
|
1787
1747
|
const contents = (0, import_smithy_client.map)({
|
|
1788
1748
|
$metadata: deserializeMetadata(output)
|
|
@@ -1795,49 +1755,9 @@ var de_BatchCreateChannelMembershipCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1795
1755
|
Object.assign(contents, doc);
|
|
1796
1756
|
return contents;
|
|
1797
1757
|
}, "de_BatchCreateChannelMembershipCommand");
|
|
1798
|
-
var de_BatchCreateChannelMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1799
|
-
const parsedOutput = {
|
|
1800
|
-
...output,
|
|
1801
|
-
body: await parseErrorBody(output.body, context)
|
|
1802
|
-
};
|
|
1803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
|
-
switch (errorCode) {
|
|
1805
|
-
case "BadRequestException":
|
|
1806
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1807
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ForbiddenException":
|
|
1809
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1810
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "NotFoundException":
|
|
1812
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1813
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ResourceLimitExceededException":
|
|
1815
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1816
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ServiceFailureException":
|
|
1818
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1819
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ServiceUnavailableException":
|
|
1821
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1822
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ThrottledClientException":
|
|
1824
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1825
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "UnauthorizedClientException":
|
|
1827
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1828
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1829
|
-
default:
|
|
1830
|
-
const parsedBody = parsedOutput.body;
|
|
1831
|
-
return throwDefaultError({
|
|
1832
|
-
output,
|
|
1833
|
-
parsedBody,
|
|
1834
|
-
errorCode
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1837
|
-
}, "de_BatchCreateChannelMembershipCommandError");
|
|
1838
1758
|
var de_ChannelFlowCallbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1839
1759
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1840
|
-
return
|
|
1760
|
+
return de_CommandError(output, context);
|
|
1841
1761
|
}
|
|
1842
1762
|
const contents = (0, import_smithy_client.map)({
|
|
1843
1763
|
$metadata: deserializeMetadata(output)
|
|
@@ -1850,46 +1770,9 @@ var de_ChannelFlowCallbackCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1850
1770
|
Object.assign(contents, doc);
|
|
1851
1771
|
return contents;
|
|
1852
1772
|
}, "de_ChannelFlowCallbackCommand");
|
|
1853
|
-
var de_ChannelFlowCallbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1854
|
-
const parsedOutput = {
|
|
1855
|
-
...output,
|
|
1856
|
-
body: await parseErrorBody(output.body, context)
|
|
1857
|
-
};
|
|
1858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
-
switch (errorCode) {
|
|
1860
|
-
case "BadRequestException":
|
|
1861
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1862
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ConflictException":
|
|
1864
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1865
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ForbiddenException":
|
|
1867
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1868
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ServiceFailureException":
|
|
1870
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1871
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ServiceUnavailableException":
|
|
1873
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1874
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ThrottledClientException":
|
|
1876
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1877
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "UnauthorizedClientException":
|
|
1879
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1880
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1881
|
-
default:
|
|
1882
|
-
const parsedBody = parsedOutput.body;
|
|
1883
|
-
return throwDefaultError({
|
|
1884
|
-
output,
|
|
1885
|
-
parsedBody,
|
|
1886
|
-
errorCode
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
}, "de_ChannelFlowCallbackCommandError");
|
|
1890
1773
|
var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
1774
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1892
|
-
return
|
|
1775
|
+
return de_CommandError(output, context);
|
|
1893
1776
|
}
|
|
1894
1777
|
const contents = (0, import_smithy_client.map)({
|
|
1895
1778
|
$metadata: deserializeMetadata(output)
|
|
@@ -1901,49 +1784,9 @@ var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1901
1784
|
Object.assign(contents, doc);
|
|
1902
1785
|
return contents;
|
|
1903
1786
|
}, "de_CreateChannelCommand");
|
|
1904
|
-
var de_CreateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1905
|
-
const parsedOutput = {
|
|
1906
|
-
...output,
|
|
1907
|
-
body: await parseErrorBody(output.body, context)
|
|
1908
|
-
};
|
|
1909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
|
-
switch (errorCode) {
|
|
1911
|
-
case "BadRequestException":
|
|
1912
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1913
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ConflictException":
|
|
1915
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1916
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "ForbiddenException":
|
|
1918
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1919
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "ResourceLimitExceededException":
|
|
1921
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1922
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "ServiceFailureException":
|
|
1924
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1925
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ServiceUnavailableException":
|
|
1927
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1928
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ThrottledClientException":
|
|
1930
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1931
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "UnauthorizedClientException":
|
|
1933
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1934
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1935
|
-
default:
|
|
1936
|
-
const parsedBody = parsedOutput.body;
|
|
1937
|
-
return throwDefaultError({
|
|
1938
|
-
output,
|
|
1939
|
-
parsedBody,
|
|
1940
|
-
errorCode
|
|
1941
|
-
});
|
|
1942
|
-
}
|
|
1943
|
-
}, "de_CreateChannelCommandError");
|
|
1944
1787
|
var de_CreateChannelBanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1945
1788
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1946
|
-
return
|
|
1789
|
+
return de_CommandError(output, context);
|
|
1947
1790
|
}
|
|
1948
1791
|
const contents = (0, import_smithy_client.map)({
|
|
1949
1792
|
$metadata: deserializeMetadata(output)
|
|
@@ -1956,49 +1799,9 @@ var de_CreateChannelBanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1956
1799
|
Object.assign(contents, doc);
|
|
1957
1800
|
return contents;
|
|
1958
1801
|
}, "de_CreateChannelBanCommand");
|
|
1959
|
-
var de_CreateChannelBanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1960
|
-
const parsedOutput = {
|
|
1961
|
-
...output,
|
|
1962
|
-
body: await parseErrorBody(output.body, context)
|
|
1963
|
-
};
|
|
1964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
|
-
switch (errorCode) {
|
|
1966
|
-
case "BadRequestException":
|
|
1967
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1968
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "ConflictException":
|
|
1970
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1971
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "ForbiddenException":
|
|
1973
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1974
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ResourceLimitExceededException":
|
|
1976
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1977
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "ServiceFailureException":
|
|
1979
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1980
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "ServiceUnavailableException":
|
|
1982
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1983
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ThrottledClientException":
|
|
1985
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1986
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "UnauthorizedClientException":
|
|
1988
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1989
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1990
|
-
default:
|
|
1991
|
-
const parsedBody = parsedOutput.body;
|
|
1992
|
-
return throwDefaultError({
|
|
1993
|
-
output,
|
|
1994
|
-
parsedBody,
|
|
1995
|
-
errorCode
|
|
1996
|
-
});
|
|
1997
|
-
}
|
|
1998
|
-
}, "de_CreateChannelBanCommandError");
|
|
1999
1802
|
var de_CreateChannelFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2000
1803
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2001
|
-
return
|
|
1804
|
+
return de_CommandError(output, context);
|
|
2002
1805
|
}
|
|
2003
1806
|
const contents = (0, import_smithy_client.map)({
|
|
2004
1807
|
$metadata: deserializeMetadata(output)
|
|
@@ -2010,49 +1813,9 @@ var de_CreateChannelFlowCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2010
1813
|
Object.assign(contents, doc);
|
|
2011
1814
|
return contents;
|
|
2012
1815
|
}, "de_CreateChannelFlowCommand");
|
|
2013
|
-
var de_CreateChannelFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2014
|
-
const parsedOutput = {
|
|
2015
|
-
...output,
|
|
2016
|
-
body: await parseErrorBody(output.body, context)
|
|
2017
|
-
};
|
|
2018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2019
|
-
switch (errorCode) {
|
|
2020
|
-
case "BadRequestException":
|
|
2021
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2022
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "ConflictException":
|
|
2024
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2025
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "ForbiddenException":
|
|
2027
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2028
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "ResourceLimitExceededException":
|
|
2030
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
2031
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "ServiceFailureException":
|
|
2033
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2034
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ServiceUnavailableException":
|
|
2036
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2037
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ThrottledClientException":
|
|
2039
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2040
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2041
|
-
case "UnauthorizedClientException":
|
|
2042
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2043
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2044
|
-
default:
|
|
2045
|
-
const parsedBody = parsedOutput.body;
|
|
2046
|
-
return throwDefaultError({
|
|
2047
|
-
output,
|
|
2048
|
-
parsedBody,
|
|
2049
|
-
errorCode
|
|
2050
|
-
});
|
|
2051
|
-
}
|
|
2052
|
-
}, "de_CreateChannelFlowCommandError");
|
|
2053
1816
|
var de_CreateChannelMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2054
1817
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2055
|
-
return
|
|
1818
|
+
return de_CommandError(output, context);
|
|
2056
1819
|
}
|
|
2057
1820
|
const contents = (0, import_smithy_client.map)({
|
|
2058
1821
|
$metadata: deserializeMetadata(output)
|
|
@@ -2066,52 +1829,9 @@ var de_CreateChannelMembershipCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2066
1829
|
Object.assign(contents, doc);
|
|
2067
1830
|
return contents;
|
|
2068
1831
|
}, "de_CreateChannelMembershipCommand");
|
|
2069
|
-
var de_CreateChannelMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2070
|
-
const parsedOutput = {
|
|
2071
|
-
...output,
|
|
2072
|
-
body: await parseErrorBody(output.body, context)
|
|
2073
|
-
};
|
|
2074
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2075
|
-
switch (errorCode) {
|
|
2076
|
-
case "BadRequestException":
|
|
2077
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2078
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "ConflictException":
|
|
2080
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2081
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2082
|
-
case "ForbiddenException":
|
|
2083
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2084
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "NotFoundException":
|
|
2086
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2087
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2088
|
-
case "ResourceLimitExceededException":
|
|
2089
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
2090
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "ServiceFailureException":
|
|
2092
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2093
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "ServiceUnavailableException":
|
|
2095
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2096
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "ThrottledClientException":
|
|
2098
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2099
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "UnauthorizedClientException":
|
|
2101
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2102
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2103
|
-
default:
|
|
2104
|
-
const parsedBody = parsedOutput.body;
|
|
2105
|
-
return throwDefaultError({
|
|
2106
|
-
output,
|
|
2107
|
-
parsedBody,
|
|
2108
|
-
errorCode
|
|
2109
|
-
});
|
|
2110
|
-
}
|
|
2111
|
-
}, "de_CreateChannelMembershipCommandError");
|
|
2112
1832
|
var de_CreateChannelModeratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2113
1833
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2114
|
-
return
|
|
1834
|
+
return de_CommandError(output, context);
|
|
2115
1835
|
}
|
|
2116
1836
|
const contents = (0, import_smithy_client.map)({
|
|
2117
1837
|
$metadata: deserializeMetadata(output)
|
|
@@ -2124,49 +1844,9 @@ var de_CreateChannelModeratorCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2124
1844
|
Object.assign(contents, doc);
|
|
2125
1845
|
return contents;
|
|
2126
1846
|
}, "de_CreateChannelModeratorCommand");
|
|
2127
|
-
var de_CreateChannelModeratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2128
|
-
const parsedOutput = {
|
|
2129
|
-
...output,
|
|
2130
|
-
body: await parseErrorBody(output.body, context)
|
|
2131
|
-
};
|
|
2132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
|
-
switch (errorCode) {
|
|
2134
|
-
case "BadRequestException":
|
|
2135
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2136
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "ConflictException":
|
|
2138
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2139
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "ForbiddenException":
|
|
2141
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2142
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceLimitExceededException":
|
|
2144
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
2145
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ServiceFailureException":
|
|
2147
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2148
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ServiceUnavailableException":
|
|
2150
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2151
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "ThrottledClientException":
|
|
2153
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2154
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "UnauthorizedClientException":
|
|
2156
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2157
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2158
|
-
default:
|
|
2159
|
-
const parsedBody = parsedOutput.body;
|
|
2160
|
-
return throwDefaultError({
|
|
2161
|
-
output,
|
|
2162
|
-
parsedBody,
|
|
2163
|
-
errorCode
|
|
2164
|
-
});
|
|
2165
|
-
}
|
|
2166
|
-
}, "de_CreateChannelModeratorCommandError");
|
|
2167
1847
|
var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2168
1848
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2169
|
-
return
|
|
1849
|
+
return de_CommandError(output, context);
|
|
2170
1850
|
}
|
|
2171
1851
|
const contents = (0, import_smithy_client.map)({
|
|
2172
1852
|
$metadata: deserializeMetadata(output)
|
|
@@ -2174,46 +1854,9 @@ var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2174
1854
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2175
1855
|
return contents;
|
|
2176
1856
|
}, "de_DeleteChannelCommand");
|
|
2177
|
-
var de_DeleteChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2178
|
-
const parsedOutput = {
|
|
2179
|
-
...output,
|
|
2180
|
-
body: await parseErrorBody(output.body, context)
|
|
2181
|
-
};
|
|
2182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
|
-
switch (errorCode) {
|
|
2184
|
-
case "BadRequestException":
|
|
2185
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2186
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "ConflictException":
|
|
2188
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2189
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "ForbiddenException":
|
|
2191
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2192
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "ServiceFailureException":
|
|
2194
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2195
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "ServiceUnavailableException":
|
|
2197
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2198
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "ThrottledClientException":
|
|
2200
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2201
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "UnauthorizedClientException":
|
|
2203
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2204
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2205
|
-
default:
|
|
2206
|
-
const parsedBody = parsedOutput.body;
|
|
2207
|
-
return throwDefaultError({
|
|
2208
|
-
output,
|
|
2209
|
-
parsedBody,
|
|
2210
|
-
errorCode
|
|
2211
|
-
});
|
|
2212
|
-
}
|
|
2213
|
-
}, "de_DeleteChannelCommandError");
|
|
2214
1857
|
var de_DeleteChannelBanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2215
1858
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2216
|
-
return
|
|
1859
|
+
return de_CommandError(output, context);
|
|
2217
1860
|
}
|
|
2218
1861
|
const contents = (0, import_smithy_client.map)({
|
|
2219
1862
|
$metadata: deserializeMetadata(output)
|
|
@@ -2221,43 +1864,9 @@ var de_DeleteChannelBanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2221
1864
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2222
1865
|
return contents;
|
|
2223
1866
|
}, "de_DeleteChannelBanCommand");
|
|
2224
|
-
var de_DeleteChannelBanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2225
|
-
const parsedOutput = {
|
|
2226
|
-
...output,
|
|
2227
|
-
body: await parseErrorBody(output.body, context)
|
|
2228
|
-
};
|
|
2229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
|
-
switch (errorCode) {
|
|
2231
|
-
case "BadRequestException":
|
|
2232
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2233
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "ForbiddenException":
|
|
2235
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2236
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ServiceFailureException":
|
|
2238
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2239
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "ServiceUnavailableException":
|
|
2241
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2242
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "ThrottledClientException":
|
|
2244
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2245
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2246
|
-
case "UnauthorizedClientException":
|
|
2247
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2248
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2249
|
-
default:
|
|
2250
|
-
const parsedBody = parsedOutput.body;
|
|
2251
|
-
return throwDefaultError({
|
|
2252
|
-
output,
|
|
2253
|
-
parsedBody,
|
|
2254
|
-
errorCode
|
|
2255
|
-
});
|
|
2256
|
-
}
|
|
2257
|
-
}, "de_DeleteChannelBanCommandError");
|
|
2258
1867
|
var de_DeleteChannelFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2259
1868
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2260
|
-
return
|
|
1869
|
+
return de_CommandError(output, context);
|
|
2261
1870
|
}
|
|
2262
1871
|
const contents = (0, import_smithy_client.map)({
|
|
2263
1872
|
$metadata: deserializeMetadata(output)
|
|
@@ -2265,46 +1874,9 @@ var de_DeleteChannelFlowCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2265
1874
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2266
1875
|
return contents;
|
|
2267
1876
|
}, "de_DeleteChannelFlowCommand");
|
|
2268
|
-
var de_DeleteChannelFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2269
|
-
const parsedOutput = {
|
|
2270
|
-
...output,
|
|
2271
|
-
body: await parseErrorBody(output.body, context)
|
|
2272
|
-
};
|
|
2273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
|
-
switch (errorCode) {
|
|
2275
|
-
case "BadRequestException":
|
|
2276
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2277
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2278
|
-
case "ConflictException":
|
|
2279
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2280
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "ForbiddenException":
|
|
2282
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2283
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ServiceFailureException":
|
|
2285
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2286
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "ServiceUnavailableException":
|
|
2288
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2289
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "ThrottledClientException":
|
|
2291
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2292
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2293
|
-
case "UnauthorizedClientException":
|
|
2294
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2295
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2296
|
-
default:
|
|
2297
|
-
const parsedBody = parsedOutput.body;
|
|
2298
|
-
return throwDefaultError({
|
|
2299
|
-
output,
|
|
2300
|
-
parsedBody,
|
|
2301
|
-
errorCode
|
|
2302
|
-
});
|
|
2303
|
-
}
|
|
2304
|
-
}, "de_DeleteChannelFlowCommandError");
|
|
2305
1877
|
var de_DeleteChannelMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2306
1878
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2307
|
-
return
|
|
1879
|
+
return de_CommandError(output, context);
|
|
2308
1880
|
}
|
|
2309
1881
|
const contents = (0, import_smithy_client.map)({
|
|
2310
1882
|
$metadata: deserializeMetadata(output)
|
|
@@ -2312,46 +1884,9 @@ var de_DeleteChannelMembershipCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2312
1884
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2313
1885
|
return contents;
|
|
2314
1886
|
}, "de_DeleteChannelMembershipCommand");
|
|
2315
|
-
var de_DeleteChannelMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2316
|
-
const parsedOutput = {
|
|
2317
|
-
...output,
|
|
2318
|
-
body: await parseErrorBody(output.body, context)
|
|
2319
|
-
};
|
|
2320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2321
|
-
switch (errorCode) {
|
|
2322
|
-
case "BadRequestException":
|
|
2323
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2324
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "ConflictException":
|
|
2326
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2327
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ForbiddenException":
|
|
2329
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2330
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ServiceFailureException":
|
|
2332
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2333
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "ServiceUnavailableException":
|
|
2335
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2336
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "ThrottledClientException":
|
|
2338
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2339
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "UnauthorizedClientException":
|
|
2341
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2342
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2343
|
-
default:
|
|
2344
|
-
const parsedBody = parsedOutput.body;
|
|
2345
|
-
return throwDefaultError({
|
|
2346
|
-
output,
|
|
2347
|
-
parsedBody,
|
|
2348
|
-
errorCode
|
|
2349
|
-
});
|
|
2350
|
-
}
|
|
2351
|
-
}, "de_DeleteChannelMembershipCommandError");
|
|
2352
1887
|
var de_DeleteChannelMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2353
1888
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2354
|
-
return
|
|
1889
|
+
return de_CommandError(output, context);
|
|
2355
1890
|
}
|
|
2356
1891
|
const contents = (0, import_smithy_client.map)({
|
|
2357
1892
|
$metadata: deserializeMetadata(output)
|
|
@@ -2359,43 +1894,9 @@ var de_DeleteChannelMessageCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2359
1894
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2360
1895
|
return contents;
|
|
2361
1896
|
}, "de_DeleteChannelMessageCommand");
|
|
2362
|
-
var de_DeleteChannelMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2363
|
-
const parsedOutput = {
|
|
2364
|
-
...output,
|
|
2365
|
-
body: await parseErrorBody(output.body, context)
|
|
2366
|
-
};
|
|
2367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2368
|
-
switch (errorCode) {
|
|
2369
|
-
case "BadRequestException":
|
|
2370
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2371
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ForbiddenException":
|
|
2373
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2374
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "ServiceFailureException":
|
|
2376
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2377
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "ServiceUnavailableException":
|
|
2379
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2380
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "ThrottledClientException":
|
|
2382
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2383
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "UnauthorizedClientException":
|
|
2385
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2386
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2387
|
-
default:
|
|
2388
|
-
const parsedBody = parsedOutput.body;
|
|
2389
|
-
return throwDefaultError({
|
|
2390
|
-
output,
|
|
2391
|
-
parsedBody,
|
|
2392
|
-
errorCode
|
|
2393
|
-
});
|
|
2394
|
-
}
|
|
2395
|
-
}, "de_DeleteChannelMessageCommandError");
|
|
2396
1897
|
var de_DeleteChannelModeratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2397
1898
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2398
|
-
return
|
|
1899
|
+
return de_CommandError(output, context);
|
|
2399
1900
|
}
|
|
2400
1901
|
const contents = (0, import_smithy_client.map)({
|
|
2401
1902
|
$metadata: deserializeMetadata(output)
|
|
@@ -2403,43 +1904,9 @@ var de_DeleteChannelModeratorCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2403
1904
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2404
1905
|
return contents;
|
|
2405
1906
|
}, "de_DeleteChannelModeratorCommand");
|
|
2406
|
-
var de_DeleteChannelModeratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
|
-
const parsedOutput = {
|
|
2408
|
-
...output,
|
|
2409
|
-
body: await parseErrorBody(output.body, context)
|
|
2410
|
-
};
|
|
2411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
|
-
switch (errorCode) {
|
|
2413
|
-
case "BadRequestException":
|
|
2414
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2415
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "ForbiddenException":
|
|
2417
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2418
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "ServiceFailureException":
|
|
2420
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2421
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ServiceUnavailableException":
|
|
2423
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2424
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ThrottledClientException":
|
|
2426
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2427
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "UnauthorizedClientException":
|
|
2429
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2430
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2431
|
-
default:
|
|
2432
|
-
const parsedBody = parsedOutput.body;
|
|
2433
|
-
return throwDefaultError({
|
|
2434
|
-
output,
|
|
2435
|
-
parsedBody,
|
|
2436
|
-
errorCode
|
|
2437
|
-
});
|
|
2438
|
-
}
|
|
2439
|
-
}, "de_DeleteChannelModeratorCommandError");
|
|
2440
1907
|
var de_DeleteMessagingStreamingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2441
1908
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2442
|
-
return
|
|
1909
|
+
return de_CommandError(output, context);
|
|
2443
1910
|
}
|
|
2444
1911
|
const contents = (0, import_smithy_client.map)({
|
|
2445
1912
|
$metadata: deserializeMetadata(output)
|
|
@@ -2447,43 +1914,9 @@ var de_DeleteMessagingStreamingConfigurationsCommand = /* @__PURE__ */ __name(as
|
|
|
2447
1914
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2448
1915
|
return contents;
|
|
2449
1916
|
}, "de_DeleteMessagingStreamingConfigurationsCommand");
|
|
2450
|
-
var de_DeleteMessagingStreamingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2451
|
-
const parsedOutput = {
|
|
2452
|
-
...output,
|
|
2453
|
-
body: await parseErrorBody(output.body, context)
|
|
2454
|
-
};
|
|
2455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2456
|
-
switch (errorCode) {
|
|
2457
|
-
case "BadRequestException":
|
|
2458
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2459
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2460
|
-
case "ForbiddenException":
|
|
2461
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2462
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2463
|
-
case "ServiceFailureException":
|
|
2464
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2465
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2466
|
-
case "ServiceUnavailableException":
|
|
2467
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2468
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2469
|
-
case "ThrottledClientException":
|
|
2470
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2471
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2472
|
-
case "UnauthorizedClientException":
|
|
2473
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2474
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2475
|
-
default:
|
|
2476
|
-
const parsedBody = parsedOutput.body;
|
|
2477
|
-
return throwDefaultError({
|
|
2478
|
-
output,
|
|
2479
|
-
parsedBody,
|
|
2480
|
-
errorCode
|
|
2481
|
-
});
|
|
2482
|
-
}
|
|
2483
|
-
}, "de_DeleteMessagingStreamingConfigurationsCommandError");
|
|
2484
1917
|
var de_DescribeChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2485
1918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2486
|
-
return
|
|
1919
|
+
return de_CommandError(output, context);
|
|
2487
1920
|
}
|
|
2488
1921
|
const contents = (0, import_smithy_client.map)({
|
|
2489
1922
|
$metadata: deserializeMetadata(output)
|
|
@@ -2495,43 +1928,9 @@ var de_DescribeChannelCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2495
1928
|
Object.assign(contents, doc);
|
|
2496
1929
|
return contents;
|
|
2497
1930
|
}, "de_DescribeChannelCommand");
|
|
2498
|
-
var de_DescribeChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2499
|
-
const parsedOutput = {
|
|
2500
|
-
...output,
|
|
2501
|
-
body: await parseErrorBody(output.body, context)
|
|
2502
|
-
};
|
|
2503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
|
-
switch (errorCode) {
|
|
2505
|
-
case "BadRequestException":
|
|
2506
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2507
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "ForbiddenException":
|
|
2509
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2510
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "ServiceFailureException":
|
|
2512
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2513
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "ServiceUnavailableException":
|
|
2515
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2516
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "ThrottledClientException":
|
|
2518
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2519
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "UnauthorizedClientException":
|
|
2521
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2522
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2523
|
-
default:
|
|
2524
|
-
const parsedBody = parsedOutput.body;
|
|
2525
|
-
return throwDefaultError({
|
|
2526
|
-
output,
|
|
2527
|
-
parsedBody,
|
|
2528
|
-
errorCode
|
|
2529
|
-
});
|
|
2530
|
-
}
|
|
2531
|
-
}, "de_DescribeChannelCommandError");
|
|
2532
1931
|
var de_DescribeChannelBanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2533
1932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2534
|
-
return
|
|
1933
|
+
return de_CommandError(output, context);
|
|
2535
1934
|
}
|
|
2536
1935
|
const contents = (0, import_smithy_client.map)({
|
|
2537
1936
|
$metadata: deserializeMetadata(output)
|
|
@@ -2543,46 +1942,9 @@ var de_DescribeChannelBanCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2543
1942
|
Object.assign(contents, doc);
|
|
2544
1943
|
return contents;
|
|
2545
1944
|
}, "de_DescribeChannelBanCommand");
|
|
2546
|
-
var de_DescribeChannelBanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2547
|
-
const parsedOutput = {
|
|
2548
|
-
...output,
|
|
2549
|
-
body: await parseErrorBody(output.body, context)
|
|
2550
|
-
};
|
|
2551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
|
-
switch (errorCode) {
|
|
2553
|
-
case "BadRequestException":
|
|
2554
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2555
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "ForbiddenException":
|
|
2557
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2558
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "NotFoundException":
|
|
2560
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2561
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "ServiceFailureException":
|
|
2563
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2564
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "ServiceUnavailableException":
|
|
2566
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2567
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ThrottledClientException":
|
|
2569
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2570
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "UnauthorizedClientException":
|
|
2572
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2573
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2574
|
-
default:
|
|
2575
|
-
const parsedBody = parsedOutput.body;
|
|
2576
|
-
return throwDefaultError({
|
|
2577
|
-
output,
|
|
2578
|
-
parsedBody,
|
|
2579
|
-
errorCode
|
|
2580
|
-
});
|
|
2581
|
-
}
|
|
2582
|
-
}, "de_DescribeChannelBanCommandError");
|
|
2583
1945
|
var de_DescribeChannelFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2584
1946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2585
|
-
return
|
|
1947
|
+
return de_CommandError(output, context);
|
|
2586
1948
|
}
|
|
2587
1949
|
const contents = (0, import_smithy_client.map)({
|
|
2588
1950
|
$metadata: deserializeMetadata(output)
|
|
@@ -2594,43 +1956,9 @@ var de_DescribeChannelFlowCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2594
1956
|
Object.assign(contents, doc);
|
|
2595
1957
|
return contents;
|
|
2596
1958
|
}, "de_DescribeChannelFlowCommand");
|
|
2597
|
-
var de_DescribeChannelFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2598
|
-
const parsedOutput = {
|
|
2599
|
-
...output,
|
|
2600
|
-
body: await parseErrorBody(output.body, context)
|
|
2601
|
-
};
|
|
2602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2603
|
-
switch (errorCode) {
|
|
2604
|
-
case "BadRequestException":
|
|
2605
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2606
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "ForbiddenException":
|
|
2608
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2609
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "ServiceFailureException":
|
|
2611
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2612
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ServiceUnavailableException":
|
|
2614
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2615
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ThrottledClientException":
|
|
2617
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2618
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "UnauthorizedClientException":
|
|
2620
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2621
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2622
|
-
default:
|
|
2623
|
-
const parsedBody = parsedOutput.body;
|
|
2624
|
-
return throwDefaultError({
|
|
2625
|
-
output,
|
|
2626
|
-
parsedBody,
|
|
2627
|
-
errorCode
|
|
2628
|
-
});
|
|
2629
|
-
}
|
|
2630
|
-
}, "de_DescribeChannelFlowCommandError");
|
|
2631
1959
|
var de_DescribeChannelMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2632
1960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2633
|
-
return
|
|
1961
|
+
return de_CommandError(output, context);
|
|
2634
1962
|
}
|
|
2635
1963
|
const contents = (0, import_smithy_client.map)({
|
|
2636
1964
|
$metadata: deserializeMetadata(output)
|
|
@@ -2642,46 +1970,9 @@ var de_DescribeChannelMembershipCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2642
1970
|
Object.assign(contents, doc);
|
|
2643
1971
|
return contents;
|
|
2644
1972
|
}, "de_DescribeChannelMembershipCommand");
|
|
2645
|
-
var de_DescribeChannelMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2646
|
-
const parsedOutput = {
|
|
2647
|
-
...output,
|
|
2648
|
-
body: await parseErrorBody(output.body, context)
|
|
2649
|
-
};
|
|
2650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2651
|
-
switch (errorCode) {
|
|
2652
|
-
case "BadRequestException":
|
|
2653
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2654
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ForbiddenException":
|
|
2656
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2657
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "NotFoundException":
|
|
2659
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2660
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "ServiceFailureException":
|
|
2662
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2663
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "ServiceUnavailableException":
|
|
2665
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2666
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "ThrottledClientException":
|
|
2668
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2669
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "UnauthorizedClientException":
|
|
2671
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2672
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2673
|
-
default:
|
|
2674
|
-
const parsedBody = parsedOutput.body;
|
|
2675
|
-
return throwDefaultError({
|
|
2676
|
-
output,
|
|
2677
|
-
parsedBody,
|
|
2678
|
-
errorCode
|
|
2679
|
-
});
|
|
2680
|
-
}
|
|
2681
|
-
}, "de_DescribeChannelMembershipCommandError");
|
|
2682
1973
|
var de_DescribeChannelMembershipForAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2683
1974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2684
|
-
return
|
|
1975
|
+
return de_CommandError(output, context);
|
|
2685
1976
|
}
|
|
2686
1977
|
const contents = (0, import_smithy_client.map)({
|
|
2687
1978
|
$metadata: deserializeMetadata(output)
|
|
@@ -2693,43 +1984,9 @@ var de_DescribeChannelMembershipForAppInstanceUserCommand = /* @__PURE__ */ __na
|
|
|
2693
1984
|
Object.assign(contents, doc);
|
|
2694
1985
|
return contents;
|
|
2695
1986
|
}, "de_DescribeChannelMembershipForAppInstanceUserCommand");
|
|
2696
|
-
var de_DescribeChannelMembershipForAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2697
|
-
const parsedOutput = {
|
|
2698
|
-
...output,
|
|
2699
|
-
body: await parseErrorBody(output.body, context)
|
|
2700
|
-
};
|
|
2701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
|
-
switch (errorCode) {
|
|
2703
|
-
case "BadRequestException":
|
|
2704
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2705
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "ForbiddenException":
|
|
2707
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2708
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "ServiceFailureException":
|
|
2710
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2711
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ServiceUnavailableException":
|
|
2713
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2714
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ThrottledClientException":
|
|
2716
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2717
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "UnauthorizedClientException":
|
|
2719
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2720
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2721
|
-
default:
|
|
2722
|
-
const parsedBody = parsedOutput.body;
|
|
2723
|
-
return throwDefaultError({
|
|
2724
|
-
output,
|
|
2725
|
-
parsedBody,
|
|
2726
|
-
errorCode
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
}, "de_DescribeChannelMembershipForAppInstanceUserCommandError");
|
|
2730
1987
|
var de_DescribeChannelModeratedByAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2731
1988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
1989
|
+
return de_CommandError(output, context);
|
|
2733
1990
|
}
|
|
2734
1991
|
const contents = (0, import_smithy_client.map)({
|
|
2735
1992
|
$metadata: deserializeMetadata(output)
|
|
@@ -2741,43 +1998,9 @@ var de_DescribeChannelModeratedByAppInstanceUserCommand = /* @__PURE__ */ __name
|
|
|
2741
1998
|
Object.assign(contents, doc);
|
|
2742
1999
|
return contents;
|
|
2743
2000
|
}, "de_DescribeChannelModeratedByAppInstanceUserCommand");
|
|
2744
|
-
var de_DescribeChannelModeratedByAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2745
|
-
const parsedOutput = {
|
|
2746
|
-
...output,
|
|
2747
|
-
body: await parseErrorBody(output.body, context)
|
|
2748
|
-
};
|
|
2749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2750
|
-
switch (errorCode) {
|
|
2751
|
-
case "BadRequestException":
|
|
2752
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2753
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2754
|
-
case "ForbiddenException":
|
|
2755
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2756
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2757
|
-
case "ServiceFailureException":
|
|
2758
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2759
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "ServiceUnavailableException":
|
|
2761
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2762
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "ThrottledClientException":
|
|
2764
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2765
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "UnauthorizedClientException":
|
|
2767
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2768
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2769
|
-
default:
|
|
2770
|
-
const parsedBody = parsedOutput.body;
|
|
2771
|
-
return throwDefaultError({
|
|
2772
|
-
output,
|
|
2773
|
-
parsedBody,
|
|
2774
|
-
errorCode
|
|
2775
|
-
});
|
|
2776
|
-
}
|
|
2777
|
-
}, "de_DescribeChannelModeratedByAppInstanceUserCommandError");
|
|
2778
2001
|
var de_DescribeChannelModeratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2779
2002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2780
|
-
return
|
|
2003
|
+
return de_CommandError(output, context);
|
|
2781
2004
|
}
|
|
2782
2005
|
const contents = (0, import_smithy_client.map)({
|
|
2783
2006
|
$metadata: deserializeMetadata(output)
|
|
@@ -2789,46 +2012,9 @@ var de_DescribeChannelModeratorCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2789
2012
|
Object.assign(contents, doc);
|
|
2790
2013
|
return contents;
|
|
2791
2014
|
}, "de_DescribeChannelModeratorCommand");
|
|
2792
|
-
var de_DescribeChannelModeratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context)
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "BadRequestException":
|
|
2800
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2801
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "ForbiddenException":
|
|
2803
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2804
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "NotFoundException":
|
|
2806
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2807
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "ServiceFailureException":
|
|
2809
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2810
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "ServiceUnavailableException":
|
|
2812
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2813
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "ThrottledClientException":
|
|
2815
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2816
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2817
|
-
case "UnauthorizedClientException":
|
|
2818
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2819
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2820
|
-
default:
|
|
2821
|
-
const parsedBody = parsedOutput.body;
|
|
2822
|
-
return throwDefaultError({
|
|
2823
|
-
output,
|
|
2824
|
-
parsedBody,
|
|
2825
|
-
errorCode
|
|
2826
|
-
});
|
|
2827
|
-
}
|
|
2828
|
-
}, "de_DescribeChannelModeratorCommandError");
|
|
2829
2015
|
var de_DisassociateChannelFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2830
2016
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2831
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
2832
2018
|
}
|
|
2833
2019
|
const contents = (0, import_smithy_client.map)({
|
|
2834
2020
|
$metadata: deserializeMetadata(output)
|
|
@@ -2836,49 +2022,9 @@ var de_DisassociateChannelFlowCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2836
2022
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2837
2023
|
return contents;
|
|
2838
2024
|
}, "de_DisassociateChannelFlowCommand");
|
|
2839
|
-
var de_DisassociateChannelFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2840
|
-
const parsedOutput = {
|
|
2841
|
-
...output,
|
|
2842
|
-
body: await parseErrorBody(output.body, context)
|
|
2843
|
-
};
|
|
2844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
|
-
switch (errorCode) {
|
|
2846
|
-
case "BadRequestException":
|
|
2847
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2848
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "ConflictException":
|
|
2850
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2851
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "ForbiddenException":
|
|
2853
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2854
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2855
|
-
case "NotFoundException":
|
|
2856
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2857
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "ServiceFailureException":
|
|
2859
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2860
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2861
|
-
case "ServiceUnavailableException":
|
|
2862
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2863
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2864
|
-
case "ThrottledClientException":
|
|
2865
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2866
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2867
|
-
case "UnauthorizedClientException":
|
|
2868
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2869
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2870
|
-
default:
|
|
2871
|
-
const parsedBody = parsedOutput.body;
|
|
2872
|
-
return throwDefaultError({
|
|
2873
|
-
output,
|
|
2874
|
-
parsedBody,
|
|
2875
|
-
errorCode
|
|
2876
|
-
});
|
|
2877
|
-
}
|
|
2878
|
-
}, "de_DisassociateChannelFlowCommandError");
|
|
2879
2025
|
var de_GetChannelMembershipPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2880
2026
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2881
|
-
return
|
|
2027
|
+
return de_CommandError(output, context);
|
|
2882
2028
|
}
|
|
2883
2029
|
const contents = (0, import_smithy_client.map)({
|
|
2884
2030
|
$metadata: deserializeMetadata(output)
|
|
@@ -2892,43 +2038,9 @@ var de_GetChannelMembershipPreferencesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2892
2038
|
Object.assign(contents, doc);
|
|
2893
2039
|
return contents;
|
|
2894
2040
|
}, "de_GetChannelMembershipPreferencesCommand");
|
|
2895
|
-
var de_GetChannelMembershipPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2896
|
-
const parsedOutput = {
|
|
2897
|
-
...output,
|
|
2898
|
-
body: await parseErrorBody(output.body, context)
|
|
2899
|
-
};
|
|
2900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
|
-
switch (errorCode) {
|
|
2902
|
-
case "BadRequestException":
|
|
2903
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2904
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "ForbiddenException":
|
|
2906
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2907
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "ServiceFailureException":
|
|
2909
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2910
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "ServiceUnavailableException":
|
|
2912
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2913
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "ThrottledClientException":
|
|
2915
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2916
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2917
|
-
case "UnauthorizedClientException":
|
|
2918
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2919
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2920
|
-
default:
|
|
2921
|
-
const parsedBody = parsedOutput.body;
|
|
2922
|
-
return throwDefaultError({
|
|
2923
|
-
output,
|
|
2924
|
-
parsedBody,
|
|
2925
|
-
errorCode
|
|
2926
|
-
});
|
|
2927
|
-
}
|
|
2928
|
-
}, "de_GetChannelMembershipPreferencesCommandError");
|
|
2929
2041
|
var de_GetChannelMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2930
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2931
|
-
return
|
|
2043
|
+
return de_CommandError(output, context);
|
|
2932
2044
|
}
|
|
2933
2045
|
const contents = (0, import_smithy_client.map)({
|
|
2934
2046
|
$metadata: deserializeMetadata(output)
|
|
@@ -2940,46 +2052,9 @@ var de_GetChannelMessageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2940
2052
|
Object.assign(contents, doc);
|
|
2941
2053
|
return contents;
|
|
2942
2054
|
}, "de_GetChannelMessageCommand");
|
|
2943
|
-
var de_GetChannelMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2944
|
-
const parsedOutput = {
|
|
2945
|
-
...output,
|
|
2946
|
-
body: await parseErrorBody(output.body, context)
|
|
2947
|
-
};
|
|
2948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2949
|
-
switch (errorCode) {
|
|
2950
|
-
case "BadRequestException":
|
|
2951
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2952
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2953
|
-
case "ForbiddenException":
|
|
2954
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2955
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2956
|
-
case "NotFoundException":
|
|
2957
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2958
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2959
|
-
case "ServiceFailureException":
|
|
2960
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2961
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2962
|
-
case "ServiceUnavailableException":
|
|
2963
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2964
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2965
|
-
case "ThrottledClientException":
|
|
2966
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2967
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2968
|
-
case "UnauthorizedClientException":
|
|
2969
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2970
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2971
|
-
default:
|
|
2972
|
-
const parsedBody = parsedOutput.body;
|
|
2973
|
-
return throwDefaultError({
|
|
2974
|
-
output,
|
|
2975
|
-
parsedBody,
|
|
2976
|
-
errorCode
|
|
2977
|
-
});
|
|
2978
|
-
}
|
|
2979
|
-
}, "de_GetChannelMessageCommandError");
|
|
2980
2055
|
var de_GetChannelMessageStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2981
2056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2982
|
-
return
|
|
2057
|
+
return de_CommandError(output, context);
|
|
2983
2058
|
}
|
|
2984
2059
|
const contents = (0, import_smithy_client.map)({
|
|
2985
2060
|
$metadata: deserializeMetadata(output)
|
|
@@ -2991,43 +2066,9 @@ var de_GetChannelMessageStatusCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2991
2066
|
Object.assign(contents, doc);
|
|
2992
2067
|
return contents;
|
|
2993
2068
|
}, "de_GetChannelMessageStatusCommand");
|
|
2994
|
-
var de_GetChannelMessageStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2995
|
-
const parsedOutput = {
|
|
2996
|
-
...output,
|
|
2997
|
-
body: await parseErrorBody(output.body, context)
|
|
2998
|
-
};
|
|
2999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3000
|
-
switch (errorCode) {
|
|
3001
|
-
case "BadRequestException":
|
|
3002
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3003
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "ForbiddenException":
|
|
3005
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3006
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3007
|
-
case "ServiceFailureException":
|
|
3008
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3009
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3010
|
-
case "ServiceUnavailableException":
|
|
3011
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3012
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3013
|
-
case "ThrottledClientException":
|
|
3014
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3015
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3016
|
-
case "UnauthorizedClientException":
|
|
3017
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3018
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3019
|
-
default:
|
|
3020
|
-
const parsedBody = parsedOutput.body;
|
|
3021
|
-
return throwDefaultError({
|
|
3022
|
-
output,
|
|
3023
|
-
parsedBody,
|
|
3024
|
-
errorCode
|
|
3025
|
-
});
|
|
3026
|
-
}
|
|
3027
|
-
}, "de_GetChannelMessageStatusCommandError");
|
|
3028
2069
|
var de_GetMessagingSessionEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3029
2070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3030
|
-
return
|
|
2071
|
+
return de_CommandError(output, context);
|
|
3031
2072
|
}
|
|
3032
2073
|
const contents = (0, import_smithy_client.map)({
|
|
3033
2074
|
$metadata: deserializeMetadata(output)
|
|
@@ -3039,141 +2080,39 @@ var de_GetMessagingSessionEndpointCommand = /* @__PURE__ */ __name(async (output
|
|
|
3039
2080
|
Object.assign(contents, doc);
|
|
3040
2081
|
return contents;
|
|
3041
2082
|
}, "de_GetMessagingSessionEndpointCommand");
|
|
3042
|
-
var de_GetMessagingSessionEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3043
|
-
const parsedOutput = {
|
|
3044
|
-
...output,
|
|
3045
|
-
body: await parseErrorBody(output.body, context)
|
|
3046
|
-
};
|
|
3047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3048
|
-
switch (errorCode) {
|
|
3049
|
-
case "ForbiddenException":
|
|
3050
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3051
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3052
|
-
case "ServiceFailureException":
|
|
3053
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3054
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "ServiceUnavailableException":
|
|
3056
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3057
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "ThrottledClientException":
|
|
3059
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3060
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "UnauthorizedClientException":
|
|
3062
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3063
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3064
|
-
default:
|
|
3065
|
-
const parsedBody = parsedOutput.body;
|
|
3066
|
-
return throwDefaultError({
|
|
3067
|
-
output,
|
|
3068
|
-
parsedBody,
|
|
3069
|
-
errorCode
|
|
3070
|
-
});
|
|
3071
|
-
}
|
|
3072
|
-
}, "de_GetMessagingSessionEndpointCommandError");
|
|
3073
2083
|
var de_GetMessagingStreamingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3074
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3075
|
-
return
|
|
3076
|
-
}
|
|
3077
|
-
const contents = (0, import_smithy_client.map)({
|
|
3078
|
-
$metadata: deserializeMetadata(output)
|
|
3079
|
-
});
|
|
3080
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3081
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3082
|
-
StreamingConfigurations: import_smithy_client._json
|
|
3083
|
-
});
|
|
3084
|
-
Object.assign(contents, doc);
|
|
3085
|
-
return contents;
|
|
3086
|
-
}, "de_GetMessagingStreamingConfigurationsCommand");
|
|
3087
|
-
var
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
body: await parseErrorBody(output.body, context)
|
|
3091
|
-
};
|
|
3092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3093
|
-
switch (errorCode) {
|
|
3094
|
-
case "BadRequestException":
|
|
3095
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3096
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "ForbiddenException":
|
|
3098
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3099
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "NotFoundException":
|
|
3101
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
3102
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3103
|
-
case "ServiceFailureException":
|
|
3104
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3105
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "ServiceUnavailableException":
|
|
3107
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3108
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3109
|
-
case "ThrottledClientException":
|
|
3110
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3111
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3112
|
-
case "UnauthorizedClientException":
|
|
3113
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3114
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3115
|
-
default:
|
|
3116
|
-
const parsedBody = parsedOutput.body;
|
|
3117
|
-
return throwDefaultError({
|
|
3118
|
-
output,
|
|
3119
|
-
parsedBody,
|
|
3120
|
-
errorCode
|
|
3121
|
-
});
|
|
3122
|
-
}
|
|
3123
|
-
}, "de_GetMessagingStreamingConfigurationsCommandError");
|
|
3124
|
-
var de_ListChannelBansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3125
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3126
|
-
return de_ListChannelBansCommandError(output, context);
|
|
3127
|
-
}
|
|
3128
|
-
const contents = (0, import_smithy_client.map)({
|
|
3129
|
-
$metadata: deserializeMetadata(output)
|
|
3130
|
-
});
|
|
3131
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3132
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3133
|
-
ChannelArn: import_smithy_client.expectString,
|
|
3134
|
-
ChannelBans: import_smithy_client._json,
|
|
3135
|
-
NextToken: import_smithy_client.expectString
|
|
3136
|
-
});
|
|
3137
|
-
Object.assign(contents, doc);
|
|
3138
|
-
return contents;
|
|
3139
|
-
}, "de_ListChannelBansCommand");
|
|
3140
|
-
var de_ListChannelBansCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3141
|
-
const parsedOutput = {
|
|
3142
|
-
...output,
|
|
3143
|
-
body: await parseErrorBody(output.body, context)
|
|
3144
|
-
};
|
|
3145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3146
|
-
switch (errorCode) {
|
|
3147
|
-
case "BadRequestException":
|
|
3148
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3149
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "ForbiddenException":
|
|
3151
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3152
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "ServiceFailureException":
|
|
3154
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3155
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3156
|
-
case "ServiceUnavailableException":
|
|
3157
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3158
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3159
|
-
case "ThrottledClientException":
|
|
3160
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3161
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3162
|
-
case "UnauthorizedClientException":
|
|
3163
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3164
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3165
|
-
default:
|
|
3166
|
-
const parsedBody = parsedOutput.body;
|
|
3167
|
-
return throwDefaultError({
|
|
3168
|
-
output,
|
|
3169
|
-
parsedBody,
|
|
3170
|
-
errorCode
|
|
3171
|
-
});
|
|
2084
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
|
+
return de_CommandError(output, context);
|
|
2086
|
+
}
|
|
2087
|
+
const contents = (0, import_smithy_client.map)({
|
|
2088
|
+
$metadata: deserializeMetadata(output)
|
|
2089
|
+
});
|
|
2090
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2091
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2092
|
+
StreamingConfigurations: import_smithy_client._json
|
|
2093
|
+
});
|
|
2094
|
+
Object.assign(contents, doc);
|
|
2095
|
+
return contents;
|
|
2096
|
+
}, "de_GetMessagingStreamingConfigurationsCommand");
|
|
2097
|
+
var de_ListChannelBansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
+
return de_CommandError(output, context);
|
|
3172
2100
|
}
|
|
3173
|
-
|
|
2101
|
+
const contents = (0, import_smithy_client.map)({
|
|
2102
|
+
$metadata: deserializeMetadata(output)
|
|
2103
|
+
});
|
|
2104
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2105
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2106
|
+
ChannelArn: import_smithy_client.expectString,
|
|
2107
|
+
ChannelBans: import_smithy_client._json,
|
|
2108
|
+
NextToken: import_smithy_client.expectString
|
|
2109
|
+
});
|
|
2110
|
+
Object.assign(contents, doc);
|
|
2111
|
+
return contents;
|
|
2112
|
+
}, "de_ListChannelBansCommand");
|
|
3174
2113
|
var de_ListChannelFlowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3175
2114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3176
|
-
return
|
|
2115
|
+
return de_CommandError(output, context);
|
|
3177
2116
|
}
|
|
3178
2117
|
const contents = (0, import_smithy_client.map)({
|
|
3179
2118
|
$metadata: deserializeMetadata(output)
|
|
@@ -3186,43 +2125,9 @@ var de_ListChannelFlowsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3186
2125
|
Object.assign(contents, doc);
|
|
3187
2126
|
return contents;
|
|
3188
2127
|
}, "de_ListChannelFlowsCommand");
|
|
3189
|
-
var de_ListChannelFlowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3190
|
-
const parsedOutput = {
|
|
3191
|
-
...output,
|
|
3192
|
-
body: await parseErrorBody(output.body, context)
|
|
3193
|
-
};
|
|
3194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
|
-
switch (errorCode) {
|
|
3196
|
-
case "BadRequestException":
|
|
3197
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3198
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3199
|
-
case "ForbiddenException":
|
|
3200
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3201
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3202
|
-
case "ServiceFailureException":
|
|
3203
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3204
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "ServiceUnavailableException":
|
|
3206
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3207
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "ThrottledClientException":
|
|
3209
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3210
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "UnauthorizedClientException":
|
|
3212
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3213
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3214
|
-
default:
|
|
3215
|
-
const parsedBody = parsedOutput.body;
|
|
3216
|
-
return throwDefaultError({
|
|
3217
|
-
output,
|
|
3218
|
-
parsedBody,
|
|
3219
|
-
errorCode
|
|
3220
|
-
});
|
|
3221
|
-
}
|
|
3222
|
-
}, "de_ListChannelFlowsCommandError");
|
|
3223
2128
|
var de_ListChannelMembershipsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3224
2129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3225
|
-
return
|
|
2130
|
+
return de_CommandError(output, context);
|
|
3226
2131
|
}
|
|
3227
2132
|
const contents = (0, import_smithy_client.map)({
|
|
3228
2133
|
$metadata: deserializeMetadata(output)
|
|
@@ -3236,43 +2141,9 @@ var de_ListChannelMembershipsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3236
2141
|
Object.assign(contents, doc);
|
|
3237
2142
|
return contents;
|
|
3238
2143
|
}, "de_ListChannelMembershipsCommand");
|
|
3239
|
-
var de_ListChannelMembershipsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3240
|
-
const parsedOutput = {
|
|
3241
|
-
...output,
|
|
3242
|
-
body: await parseErrorBody(output.body, context)
|
|
3243
|
-
};
|
|
3244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3245
|
-
switch (errorCode) {
|
|
3246
|
-
case "BadRequestException":
|
|
3247
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3248
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3249
|
-
case "ForbiddenException":
|
|
3250
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3251
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3252
|
-
case "ServiceFailureException":
|
|
3253
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3254
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "ServiceUnavailableException":
|
|
3256
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3257
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "ThrottledClientException":
|
|
3259
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3260
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "UnauthorizedClientException":
|
|
3262
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3263
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3264
|
-
default:
|
|
3265
|
-
const parsedBody = parsedOutput.body;
|
|
3266
|
-
return throwDefaultError({
|
|
3267
|
-
output,
|
|
3268
|
-
parsedBody,
|
|
3269
|
-
errorCode
|
|
3270
|
-
});
|
|
3271
|
-
}
|
|
3272
|
-
}, "de_ListChannelMembershipsCommandError");
|
|
3273
2144
|
var de_ListChannelMembershipsForAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3274
2145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3275
|
-
return
|
|
2146
|
+
return de_CommandError(output, context);
|
|
3276
2147
|
}
|
|
3277
2148
|
const contents = (0, import_smithy_client.map)({
|
|
3278
2149
|
$metadata: deserializeMetadata(output)
|
|
@@ -3285,43 +2156,9 @@ var de_ListChannelMembershipsForAppInstanceUserCommand = /* @__PURE__ */ __name(
|
|
|
3285
2156
|
Object.assign(contents, doc);
|
|
3286
2157
|
return contents;
|
|
3287
2158
|
}, "de_ListChannelMembershipsForAppInstanceUserCommand");
|
|
3288
|
-
var de_ListChannelMembershipsForAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3289
|
-
const parsedOutput = {
|
|
3290
|
-
...output,
|
|
3291
|
-
body: await parseErrorBody(output.body, context)
|
|
3292
|
-
};
|
|
3293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
-
switch (errorCode) {
|
|
3295
|
-
case "BadRequestException":
|
|
3296
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3297
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "ForbiddenException":
|
|
3299
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3300
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "ServiceFailureException":
|
|
3302
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3303
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "ServiceUnavailableException":
|
|
3305
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3306
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "ThrottledClientException":
|
|
3308
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3309
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "UnauthorizedClientException":
|
|
3311
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3312
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3313
|
-
default:
|
|
3314
|
-
const parsedBody = parsedOutput.body;
|
|
3315
|
-
return throwDefaultError({
|
|
3316
|
-
output,
|
|
3317
|
-
parsedBody,
|
|
3318
|
-
errorCode
|
|
3319
|
-
});
|
|
3320
|
-
}
|
|
3321
|
-
}, "de_ListChannelMembershipsForAppInstanceUserCommandError");
|
|
3322
2159
|
var de_ListChannelMessagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3323
2160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3324
|
-
return
|
|
2161
|
+
return de_CommandError(output, context);
|
|
3325
2162
|
}
|
|
3326
2163
|
const contents = (0, import_smithy_client.map)({
|
|
3327
2164
|
$metadata: deserializeMetadata(output)
|
|
@@ -3336,43 +2173,9 @@ var de_ListChannelMessagesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3336
2173
|
Object.assign(contents, doc);
|
|
3337
2174
|
return contents;
|
|
3338
2175
|
}, "de_ListChannelMessagesCommand");
|
|
3339
|
-
var de_ListChannelMessagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3340
|
-
const parsedOutput = {
|
|
3341
|
-
...output,
|
|
3342
|
-
body: await parseErrorBody(output.body, context)
|
|
3343
|
-
};
|
|
3344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
|
-
switch (errorCode) {
|
|
3346
|
-
case "BadRequestException":
|
|
3347
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3348
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3349
|
-
case "ForbiddenException":
|
|
3350
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3351
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3352
|
-
case "ServiceFailureException":
|
|
3353
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3354
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "ServiceUnavailableException":
|
|
3356
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3357
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "ThrottledClientException":
|
|
3359
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3360
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "UnauthorizedClientException":
|
|
3362
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3363
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3364
|
-
default:
|
|
3365
|
-
const parsedBody = parsedOutput.body;
|
|
3366
|
-
return throwDefaultError({
|
|
3367
|
-
output,
|
|
3368
|
-
parsedBody,
|
|
3369
|
-
errorCode
|
|
3370
|
-
});
|
|
3371
|
-
}
|
|
3372
|
-
}, "de_ListChannelMessagesCommandError");
|
|
3373
2176
|
var de_ListChannelModeratorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3374
2177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3375
|
-
return
|
|
2178
|
+
return de_CommandError(output, context);
|
|
3376
2179
|
}
|
|
3377
2180
|
const contents = (0, import_smithy_client.map)({
|
|
3378
2181
|
$metadata: deserializeMetadata(output)
|
|
@@ -3386,43 +2189,9 @@ var de_ListChannelModeratorsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3386
2189
|
Object.assign(contents, doc);
|
|
3387
2190
|
return contents;
|
|
3388
2191
|
}, "de_ListChannelModeratorsCommand");
|
|
3389
|
-
var de_ListChannelModeratorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3390
|
-
const parsedOutput = {
|
|
3391
|
-
...output,
|
|
3392
|
-
body: await parseErrorBody(output.body, context)
|
|
3393
|
-
};
|
|
3394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3395
|
-
switch (errorCode) {
|
|
3396
|
-
case "BadRequestException":
|
|
3397
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3398
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3399
|
-
case "ForbiddenException":
|
|
3400
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3401
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "ServiceFailureException":
|
|
3403
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3404
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "ServiceUnavailableException":
|
|
3406
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3407
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "ThrottledClientException":
|
|
3409
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3410
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "UnauthorizedClientException":
|
|
3412
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3413
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3414
|
-
default:
|
|
3415
|
-
const parsedBody = parsedOutput.body;
|
|
3416
|
-
return throwDefaultError({
|
|
3417
|
-
output,
|
|
3418
|
-
parsedBody,
|
|
3419
|
-
errorCode
|
|
3420
|
-
});
|
|
3421
|
-
}
|
|
3422
|
-
}, "de_ListChannelModeratorsCommandError");
|
|
3423
2192
|
var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3424
2193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3425
|
-
return
|
|
2194
|
+
return de_CommandError(output, context);
|
|
3426
2195
|
}
|
|
3427
2196
|
const contents = (0, import_smithy_client.map)({
|
|
3428
2197
|
$metadata: deserializeMetadata(output)
|
|
@@ -3435,92 +2204,24 @@ var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3435
2204
|
Object.assign(contents, doc);
|
|
3436
2205
|
return contents;
|
|
3437
2206
|
}, "de_ListChannelsCommand");
|
|
3438
|
-
var de_ListChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3439
|
-
const parsedOutput = {
|
|
3440
|
-
...output,
|
|
3441
|
-
body: await parseErrorBody(output.body, context)
|
|
3442
|
-
};
|
|
3443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3444
|
-
switch (errorCode) {
|
|
3445
|
-
case "BadRequestException":
|
|
3446
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3447
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3448
|
-
case "ForbiddenException":
|
|
3449
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3450
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3451
|
-
case "ServiceFailureException":
|
|
3452
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3453
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3454
|
-
case "ServiceUnavailableException":
|
|
3455
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3456
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3457
|
-
case "ThrottledClientException":
|
|
3458
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3459
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "UnauthorizedClientException":
|
|
3461
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3462
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3463
|
-
default:
|
|
3464
|
-
const parsedBody = parsedOutput.body;
|
|
3465
|
-
return throwDefaultError({
|
|
3466
|
-
output,
|
|
3467
|
-
parsedBody,
|
|
3468
|
-
errorCode
|
|
3469
|
-
});
|
|
3470
|
-
}
|
|
3471
|
-
}, "de_ListChannelsCommandError");
|
|
3472
2207
|
var de_ListChannelsAssociatedWithChannelFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3473
2208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3474
|
-
return
|
|
2209
|
+
return de_CommandError(output, context);
|
|
3475
2210
|
}
|
|
3476
2211
|
const contents = (0, import_smithy_client.map)({
|
|
3477
2212
|
$metadata: deserializeMetadata(output)
|
|
3478
2213
|
});
|
|
3479
2214
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3480
2215
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3481
|
-
Channels: import_smithy_client._json,
|
|
3482
|
-
NextToken: import_smithy_client.expectString
|
|
3483
|
-
});
|
|
3484
|
-
Object.assign(contents, doc);
|
|
3485
|
-
return contents;
|
|
3486
|
-
}, "de_ListChannelsAssociatedWithChannelFlowCommand");
|
|
3487
|
-
var de_ListChannelsAssociatedWithChannelFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3488
|
-
const parsedOutput = {
|
|
3489
|
-
...output,
|
|
3490
|
-
body: await parseErrorBody(output.body, context)
|
|
3491
|
-
};
|
|
3492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3493
|
-
switch (errorCode) {
|
|
3494
|
-
case "BadRequestException":
|
|
3495
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3496
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "ForbiddenException":
|
|
3498
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3499
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3500
|
-
case "ServiceFailureException":
|
|
3501
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3502
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ServiceUnavailableException":
|
|
3504
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3505
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "ThrottledClientException":
|
|
3507
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3508
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "UnauthorizedClientException":
|
|
3510
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3511
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3512
|
-
default:
|
|
3513
|
-
const parsedBody = parsedOutput.body;
|
|
3514
|
-
return throwDefaultError({
|
|
3515
|
-
output,
|
|
3516
|
-
parsedBody,
|
|
3517
|
-
errorCode
|
|
3518
|
-
});
|
|
3519
|
-
}
|
|
3520
|
-
}, "de_ListChannelsAssociatedWithChannelFlowCommandError");
|
|
2216
|
+
Channels: import_smithy_client._json,
|
|
2217
|
+
NextToken: import_smithy_client.expectString
|
|
2218
|
+
});
|
|
2219
|
+
Object.assign(contents, doc);
|
|
2220
|
+
return contents;
|
|
2221
|
+
}, "de_ListChannelsAssociatedWithChannelFlowCommand");
|
|
3521
2222
|
var de_ListChannelsModeratedByAppInstanceUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3522
2223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3523
|
-
return
|
|
2224
|
+
return de_CommandError(output, context);
|
|
3524
2225
|
}
|
|
3525
2226
|
const contents = (0, import_smithy_client.map)({
|
|
3526
2227
|
$metadata: deserializeMetadata(output)
|
|
@@ -3533,43 +2234,9 @@ var de_ListChannelsModeratedByAppInstanceUserCommand = /* @__PURE__ */ __name(as
|
|
|
3533
2234
|
Object.assign(contents, doc);
|
|
3534
2235
|
return contents;
|
|
3535
2236
|
}, "de_ListChannelsModeratedByAppInstanceUserCommand");
|
|
3536
|
-
var de_ListChannelsModeratedByAppInstanceUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3537
|
-
const parsedOutput = {
|
|
3538
|
-
...output,
|
|
3539
|
-
body: await parseErrorBody(output.body, context)
|
|
3540
|
-
};
|
|
3541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3542
|
-
switch (errorCode) {
|
|
3543
|
-
case "BadRequestException":
|
|
3544
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3545
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3546
|
-
case "ForbiddenException":
|
|
3547
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3548
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "ServiceFailureException":
|
|
3550
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3551
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3552
|
-
case "ServiceUnavailableException":
|
|
3553
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3554
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "ThrottledClientException":
|
|
3556
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3557
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "UnauthorizedClientException":
|
|
3559
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3560
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3561
|
-
default:
|
|
3562
|
-
const parsedBody = parsedOutput.body;
|
|
3563
|
-
return throwDefaultError({
|
|
3564
|
-
output,
|
|
3565
|
-
parsedBody,
|
|
3566
|
-
errorCode
|
|
3567
|
-
});
|
|
3568
|
-
}
|
|
3569
|
-
}, "de_ListChannelsModeratedByAppInstanceUserCommandError");
|
|
3570
2237
|
var de_ListSubChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3571
2238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3572
|
-
return
|
|
2239
|
+
return de_CommandError(output, context);
|
|
3573
2240
|
}
|
|
3574
2241
|
const contents = (0, import_smithy_client.map)({
|
|
3575
2242
|
$metadata: deserializeMetadata(output)
|
|
@@ -3583,43 +2250,9 @@ var de_ListSubChannelsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3583
2250
|
Object.assign(contents, doc);
|
|
3584
2251
|
return contents;
|
|
3585
2252
|
}, "de_ListSubChannelsCommand");
|
|
3586
|
-
var de_ListSubChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3587
|
-
const parsedOutput = {
|
|
3588
|
-
...output,
|
|
3589
|
-
body: await parseErrorBody(output.body, context)
|
|
3590
|
-
};
|
|
3591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3592
|
-
switch (errorCode) {
|
|
3593
|
-
case "BadRequestException":
|
|
3594
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3595
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "ForbiddenException":
|
|
3597
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3598
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3599
|
-
case "ServiceFailureException":
|
|
3600
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3601
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3602
|
-
case "ServiceUnavailableException":
|
|
3603
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3604
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3605
|
-
case "ThrottledClientException":
|
|
3606
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3607
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3608
|
-
case "UnauthorizedClientException":
|
|
3609
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3610
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3611
|
-
default:
|
|
3612
|
-
const parsedBody = parsedOutput.body;
|
|
3613
|
-
return throwDefaultError({
|
|
3614
|
-
output,
|
|
3615
|
-
parsedBody,
|
|
3616
|
-
errorCode
|
|
3617
|
-
});
|
|
3618
|
-
}
|
|
3619
|
-
}, "de_ListSubChannelsCommandError");
|
|
3620
2253
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3621
2254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3622
|
-
return
|
|
2255
|
+
return de_CommandError(output, context);
|
|
3623
2256
|
}
|
|
3624
2257
|
const contents = (0, import_smithy_client.map)({
|
|
3625
2258
|
$metadata: deserializeMetadata(output)
|
|
@@ -3631,43 +2264,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3631
2264
|
Object.assign(contents, doc);
|
|
3632
2265
|
return contents;
|
|
3633
2266
|
}, "de_ListTagsForResourceCommand");
|
|
3634
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3635
|
-
const parsedOutput = {
|
|
3636
|
-
...output,
|
|
3637
|
-
body: await parseErrorBody(output.body, context)
|
|
3638
|
-
};
|
|
3639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3640
|
-
switch (errorCode) {
|
|
3641
|
-
case "BadRequestException":
|
|
3642
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3643
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "ForbiddenException":
|
|
3645
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3646
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "ServiceFailureException":
|
|
3648
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3649
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "ServiceUnavailableException":
|
|
3651
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3652
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "ThrottledClientException":
|
|
3654
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3655
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "UnauthorizedClientException":
|
|
3657
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3658
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3659
|
-
default:
|
|
3660
|
-
const parsedBody = parsedOutput.body;
|
|
3661
|
-
return throwDefaultError({
|
|
3662
|
-
output,
|
|
3663
|
-
parsedBody,
|
|
3664
|
-
errorCode
|
|
3665
|
-
});
|
|
3666
|
-
}
|
|
3667
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3668
2267
|
var de_PutChannelExpirationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3669
2268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3670
|
-
return
|
|
2269
|
+
return de_CommandError(output, context);
|
|
3671
2270
|
}
|
|
3672
2271
|
const contents = (0, import_smithy_client.map)({
|
|
3673
2272
|
$metadata: deserializeMetadata(output)
|
|
@@ -3680,46 +2279,9 @@ var de_PutChannelExpirationSettingsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3680
2279
|
Object.assign(contents, doc);
|
|
3681
2280
|
return contents;
|
|
3682
2281
|
}, "de_PutChannelExpirationSettingsCommand");
|
|
3683
|
-
var de_PutChannelExpirationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3684
|
-
const parsedOutput = {
|
|
3685
|
-
...output,
|
|
3686
|
-
body: await parseErrorBody(output.body, context)
|
|
3687
|
-
};
|
|
3688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3689
|
-
switch (errorCode) {
|
|
3690
|
-
case "BadRequestException":
|
|
3691
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3692
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "ConflictException":
|
|
3694
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3695
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3696
|
-
case "ForbiddenException":
|
|
3697
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3698
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "ServiceFailureException":
|
|
3700
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3701
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3702
|
-
case "ServiceUnavailableException":
|
|
3703
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3704
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3705
|
-
case "ThrottledClientException":
|
|
3706
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3707
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3708
|
-
case "UnauthorizedClientException":
|
|
3709
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3710
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3711
|
-
default:
|
|
3712
|
-
const parsedBody = parsedOutput.body;
|
|
3713
|
-
return throwDefaultError({
|
|
3714
|
-
output,
|
|
3715
|
-
parsedBody,
|
|
3716
|
-
errorCode
|
|
3717
|
-
});
|
|
3718
|
-
}
|
|
3719
|
-
}, "de_PutChannelExpirationSettingsCommandError");
|
|
3720
2282
|
var de_PutChannelMembershipPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3721
2283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3722
|
-
return
|
|
2284
|
+
return de_CommandError(output, context);
|
|
3723
2285
|
}
|
|
3724
2286
|
const contents = (0, import_smithy_client.map)({
|
|
3725
2287
|
$metadata: deserializeMetadata(output)
|
|
@@ -3733,46 +2295,9 @@ var de_PutChannelMembershipPreferencesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3733
2295
|
Object.assign(contents, doc);
|
|
3734
2296
|
return contents;
|
|
3735
2297
|
}, "de_PutChannelMembershipPreferencesCommand");
|
|
3736
|
-
var de_PutChannelMembershipPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3737
|
-
const parsedOutput = {
|
|
3738
|
-
...output,
|
|
3739
|
-
body: await parseErrorBody(output.body, context)
|
|
3740
|
-
};
|
|
3741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
|
-
switch (errorCode) {
|
|
3743
|
-
case "BadRequestException":
|
|
3744
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3745
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3746
|
-
case "ConflictException":
|
|
3747
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3748
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3749
|
-
case "ForbiddenException":
|
|
3750
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3751
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3752
|
-
case "ServiceFailureException":
|
|
3753
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3754
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3755
|
-
case "ServiceUnavailableException":
|
|
3756
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3757
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3758
|
-
case "ThrottledClientException":
|
|
3759
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3760
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3761
|
-
case "UnauthorizedClientException":
|
|
3762
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3763
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3764
|
-
default:
|
|
3765
|
-
const parsedBody = parsedOutput.body;
|
|
3766
|
-
return throwDefaultError({
|
|
3767
|
-
output,
|
|
3768
|
-
parsedBody,
|
|
3769
|
-
errorCode
|
|
3770
|
-
});
|
|
3771
|
-
}
|
|
3772
|
-
}, "de_PutChannelMembershipPreferencesCommandError");
|
|
3773
2298
|
var de_PutMessagingStreamingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3774
2299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3775
|
-
return
|
|
2300
|
+
return de_CommandError(output, context);
|
|
3776
2301
|
}
|
|
3777
2302
|
const contents = (0, import_smithy_client.map)({
|
|
3778
2303
|
$metadata: deserializeMetadata(output)
|
|
@@ -3784,102 +2309,25 @@ var de_PutMessagingStreamingConfigurationsCommand = /* @__PURE__ */ __name(async
|
|
|
3784
2309
|
Object.assign(contents, doc);
|
|
3785
2310
|
return contents;
|
|
3786
2311
|
}, "de_PutMessagingStreamingConfigurationsCommand");
|
|
3787
|
-
var de_PutMessagingStreamingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3788
|
-
const parsedOutput = {
|
|
3789
|
-
...output,
|
|
3790
|
-
body: await parseErrorBody(output.body, context)
|
|
3791
|
-
};
|
|
3792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3793
|
-
switch (errorCode) {
|
|
3794
|
-
case "BadRequestException":
|
|
3795
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3796
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3797
|
-
case "ConflictException":
|
|
3798
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3799
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "ForbiddenException":
|
|
3801
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3802
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3803
|
-
case "NotFoundException":
|
|
3804
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
3805
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3806
|
-
case "ServiceFailureException":
|
|
3807
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3808
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3809
|
-
case "ServiceUnavailableException":
|
|
3810
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3811
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3812
|
-
case "ThrottledClientException":
|
|
3813
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3814
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3815
|
-
case "UnauthorizedClientException":
|
|
3816
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3817
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3818
|
-
default:
|
|
3819
|
-
const parsedBody = parsedOutput.body;
|
|
3820
|
-
return throwDefaultError({
|
|
3821
|
-
output,
|
|
3822
|
-
parsedBody,
|
|
3823
|
-
errorCode
|
|
3824
|
-
});
|
|
3825
|
-
}
|
|
3826
|
-
}, "de_PutMessagingStreamingConfigurationsCommandError");
|
|
3827
2312
|
var de_RedactChannelMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3828
2313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3829
|
-
return
|
|
2314
|
+
return de_CommandError(output, context);
|
|
3830
2315
|
}
|
|
3831
2316
|
const contents = (0, import_smithy_client.map)({
|
|
3832
|
-
$metadata: deserializeMetadata(output)
|
|
3833
|
-
});
|
|
3834
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3835
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3836
|
-
ChannelArn: import_smithy_client.expectString,
|
|
3837
|
-
MessageId: import_smithy_client.expectString,
|
|
3838
|
-
SubChannelId: import_smithy_client.expectString
|
|
3839
|
-
});
|
|
3840
|
-
Object.assign(contents, doc);
|
|
3841
|
-
return contents;
|
|
3842
|
-
}, "de_RedactChannelMessageCommand");
|
|
3843
|
-
var de_RedactChannelMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3844
|
-
const parsedOutput = {
|
|
3845
|
-
...output,
|
|
3846
|
-
body: await parseErrorBody(output.body, context)
|
|
3847
|
-
};
|
|
3848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3849
|
-
switch (errorCode) {
|
|
3850
|
-
case "BadRequestException":
|
|
3851
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3852
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3853
|
-
case "ConflictException":
|
|
3854
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3855
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3856
|
-
case "ForbiddenException":
|
|
3857
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3858
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3859
|
-
case "ServiceFailureException":
|
|
3860
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3861
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3862
|
-
case "ServiceUnavailableException":
|
|
3863
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3864
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3865
|
-
case "ThrottledClientException":
|
|
3866
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3867
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3868
|
-
case "UnauthorizedClientException":
|
|
3869
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3870
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3871
|
-
default:
|
|
3872
|
-
const parsedBody = parsedOutput.body;
|
|
3873
|
-
return throwDefaultError({
|
|
3874
|
-
output,
|
|
3875
|
-
parsedBody,
|
|
3876
|
-
errorCode
|
|
3877
|
-
});
|
|
3878
|
-
}
|
|
3879
|
-
}, "de_RedactChannelMessageCommandError");
|
|
2317
|
+
$metadata: deserializeMetadata(output)
|
|
2318
|
+
});
|
|
2319
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2320
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2321
|
+
ChannelArn: import_smithy_client.expectString,
|
|
2322
|
+
MessageId: import_smithy_client.expectString,
|
|
2323
|
+
SubChannelId: import_smithy_client.expectString
|
|
2324
|
+
});
|
|
2325
|
+
Object.assign(contents, doc);
|
|
2326
|
+
return contents;
|
|
2327
|
+
}, "de_RedactChannelMessageCommand");
|
|
3880
2328
|
var de_SearchChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3881
2329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3882
|
-
return
|
|
2330
|
+
return de_CommandError(output, context);
|
|
3883
2331
|
}
|
|
3884
2332
|
const contents = (0, import_smithy_client.map)({
|
|
3885
2333
|
$metadata: deserializeMetadata(output)
|
|
@@ -3892,43 +2340,9 @@ var de_SearchChannelsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3892
2340
|
Object.assign(contents, doc);
|
|
3893
2341
|
return contents;
|
|
3894
2342
|
}, "de_SearchChannelsCommand");
|
|
3895
|
-
var de_SearchChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3896
|
-
const parsedOutput = {
|
|
3897
|
-
...output,
|
|
3898
|
-
body: await parseErrorBody(output.body, context)
|
|
3899
|
-
};
|
|
3900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3901
|
-
switch (errorCode) {
|
|
3902
|
-
case "BadRequestException":
|
|
3903
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3904
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3905
|
-
case "ForbiddenException":
|
|
3906
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3907
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3908
|
-
case "ServiceFailureException":
|
|
3909
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3910
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3911
|
-
case "ServiceUnavailableException":
|
|
3912
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3913
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3914
|
-
case "ThrottledClientException":
|
|
3915
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3916
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3917
|
-
case "UnauthorizedClientException":
|
|
3918
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3919
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3920
|
-
default:
|
|
3921
|
-
const parsedBody = parsedOutput.body;
|
|
3922
|
-
return throwDefaultError({
|
|
3923
|
-
output,
|
|
3924
|
-
parsedBody,
|
|
3925
|
-
errorCode
|
|
3926
|
-
});
|
|
3927
|
-
}
|
|
3928
|
-
}, "de_SearchChannelsCommandError");
|
|
3929
2343
|
var de_SendChannelMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3930
2344
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3931
|
-
return
|
|
2345
|
+
return de_CommandError(output, context);
|
|
3932
2346
|
}
|
|
3933
2347
|
const contents = (0, import_smithy_client.map)({
|
|
3934
2348
|
$metadata: deserializeMetadata(output)
|
|
@@ -3943,46 +2357,9 @@ var de_SendChannelMessageCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3943
2357
|
Object.assign(contents, doc);
|
|
3944
2358
|
return contents;
|
|
3945
2359
|
}, "de_SendChannelMessageCommand");
|
|
3946
|
-
var de_SendChannelMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3947
|
-
const parsedOutput = {
|
|
3948
|
-
...output,
|
|
3949
|
-
body: await parseErrorBody(output.body, context)
|
|
3950
|
-
};
|
|
3951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3952
|
-
switch (errorCode) {
|
|
3953
|
-
case "BadRequestException":
|
|
3954
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3955
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3956
|
-
case "ConflictException":
|
|
3957
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3958
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3959
|
-
case "ForbiddenException":
|
|
3960
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3961
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3962
|
-
case "ServiceFailureException":
|
|
3963
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3964
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3965
|
-
case "ServiceUnavailableException":
|
|
3966
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3967
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3968
|
-
case "ThrottledClientException":
|
|
3969
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3970
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3971
|
-
case "UnauthorizedClientException":
|
|
3972
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3973
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3974
|
-
default:
|
|
3975
|
-
const parsedBody = parsedOutput.body;
|
|
3976
|
-
return throwDefaultError({
|
|
3977
|
-
output,
|
|
3978
|
-
parsedBody,
|
|
3979
|
-
errorCode
|
|
3980
|
-
});
|
|
3981
|
-
}
|
|
3982
|
-
}, "de_SendChannelMessageCommandError");
|
|
3983
2360
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3984
2361
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3985
|
-
return
|
|
2362
|
+
return de_CommandError(output, context);
|
|
3986
2363
|
}
|
|
3987
2364
|
const contents = (0, import_smithy_client.map)({
|
|
3988
2365
|
$metadata: deserializeMetadata(output)
|
|
@@ -3990,46 +2367,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3990
2367
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3991
2368
|
return contents;
|
|
3992
2369
|
}, "de_TagResourceCommand");
|
|
3993
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3994
|
-
const parsedOutput = {
|
|
3995
|
-
...output,
|
|
3996
|
-
body: await parseErrorBody(output.body, context)
|
|
3997
|
-
};
|
|
3998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3999
|
-
switch (errorCode) {
|
|
4000
|
-
case "BadRequestException":
|
|
4001
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
4002
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4003
|
-
case "ForbiddenException":
|
|
4004
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
4005
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4006
|
-
case "ResourceLimitExceededException":
|
|
4007
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
4008
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
4009
|
-
case "ServiceFailureException":
|
|
4010
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
4011
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4012
|
-
case "ServiceUnavailableException":
|
|
4013
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
4014
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4015
|
-
case "ThrottledClientException":
|
|
4016
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
4017
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4018
|
-
case "UnauthorizedClientException":
|
|
4019
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
4020
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4021
|
-
default:
|
|
4022
|
-
const parsedBody = parsedOutput.body;
|
|
4023
|
-
return throwDefaultError({
|
|
4024
|
-
output,
|
|
4025
|
-
parsedBody,
|
|
4026
|
-
errorCode
|
|
4027
|
-
});
|
|
4028
|
-
}
|
|
4029
|
-
}, "de_TagResourceCommandError");
|
|
4030
2370
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4031
2371
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4032
|
-
return
|
|
2372
|
+
return de_CommandError(output, context);
|
|
4033
2373
|
}
|
|
4034
2374
|
const contents = (0, import_smithy_client.map)({
|
|
4035
2375
|
$metadata: deserializeMetadata(output)
|
|
@@ -4037,43 +2377,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4037
2377
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4038
2378
|
return contents;
|
|
4039
2379
|
}, "de_UntagResourceCommand");
|
|
4040
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4041
|
-
const parsedOutput = {
|
|
4042
|
-
...output,
|
|
4043
|
-
body: await parseErrorBody(output.body, context)
|
|
4044
|
-
};
|
|
4045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4046
|
-
switch (errorCode) {
|
|
4047
|
-
case "BadRequestException":
|
|
4048
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
4049
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4050
|
-
case "ForbiddenException":
|
|
4051
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
4052
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4053
|
-
case "ServiceFailureException":
|
|
4054
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
4055
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4056
|
-
case "ServiceUnavailableException":
|
|
4057
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
4058
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4059
|
-
case "ThrottledClientException":
|
|
4060
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
4061
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4062
|
-
case "UnauthorizedClientException":
|
|
4063
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
4064
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4065
|
-
default:
|
|
4066
|
-
const parsedBody = parsedOutput.body;
|
|
4067
|
-
return throwDefaultError({
|
|
4068
|
-
output,
|
|
4069
|
-
parsedBody,
|
|
4070
|
-
errorCode
|
|
4071
|
-
});
|
|
4072
|
-
}
|
|
4073
|
-
}, "de_UntagResourceCommandError");
|
|
4074
2380
|
var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4075
2381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4076
|
-
return
|
|
2382
|
+
return de_CommandError(output, context);
|
|
4077
2383
|
}
|
|
4078
2384
|
const contents = (0, import_smithy_client.map)({
|
|
4079
2385
|
$metadata: deserializeMetadata(output)
|
|
@@ -4085,46 +2391,9 @@ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4085
2391
|
Object.assign(contents, doc);
|
|
4086
2392
|
return contents;
|
|
4087
2393
|
}, "de_UpdateChannelCommand");
|
|
4088
|
-
var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4089
|
-
const parsedOutput = {
|
|
4090
|
-
...output,
|
|
4091
|
-
body: await parseErrorBody(output.body, context)
|
|
4092
|
-
};
|
|
4093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4094
|
-
switch (errorCode) {
|
|
4095
|
-
case "BadRequestException":
|
|
4096
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
4097
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4098
|
-
case "ConflictException":
|
|
4099
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
4100
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4101
|
-
case "ForbiddenException":
|
|
4102
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
4103
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4104
|
-
case "ServiceFailureException":
|
|
4105
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
4106
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4107
|
-
case "ServiceUnavailableException":
|
|
4108
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
4109
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4110
|
-
case "ThrottledClientException":
|
|
4111
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
4112
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4113
|
-
case "UnauthorizedClientException":
|
|
4114
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
4115
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4116
|
-
default:
|
|
4117
|
-
const parsedBody = parsedOutput.body;
|
|
4118
|
-
return throwDefaultError({
|
|
4119
|
-
output,
|
|
4120
|
-
parsedBody,
|
|
4121
|
-
errorCode
|
|
4122
|
-
});
|
|
4123
|
-
}
|
|
4124
|
-
}, "de_UpdateChannelCommandError");
|
|
4125
2394
|
var de_UpdateChannelFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4126
2395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4127
|
-
return
|
|
2396
|
+
return de_CommandError(output, context);
|
|
4128
2397
|
}
|
|
4129
2398
|
const contents = (0, import_smithy_client.map)({
|
|
4130
2399
|
$metadata: deserializeMetadata(output)
|
|
@@ -4136,46 +2405,9 @@ var de_UpdateChannelFlowCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4136
2405
|
Object.assign(contents, doc);
|
|
4137
2406
|
return contents;
|
|
4138
2407
|
}, "de_UpdateChannelFlowCommand");
|
|
4139
|
-
var de_UpdateChannelFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4140
|
-
const parsedOutput = {
|
|
4141
|
-
...output,
|
|
4142
|
-
body: await parseErrorBody(output.body, context)
|
|
4143
|
-
};
|
|
4144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4145
|
-
switch (errorCode) {
|
|
4146
|
-
case "BadRequestException":
|
|
4147
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
4148
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4149
|
-
case "ConflictException":
|
|
4150
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
4151
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4152
|
-
case "ForbiddenException":
|
|
4153
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
4154
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4155
|
-
case "ServiceFailureException":
|
|
4156
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
4157
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4158
|
-
case "ServiceUnavailableException":
|
|
4159
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
4160
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4161
|
-
case "ThrottledClientException":
|
|
4162
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
4163
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4164
|
-
case "UnauthorizedClientException":
|
|
4165
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
4166
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4167
|
-
default:
|
|
4168
|
-
const parsedBody = parsedOutput.body;
|
|
4169
|
-
return throwDefaultError({
|
|
4170
|
-
output,
|
|
4171
|
-
parsedBody,
|
|
4172
|
-
errorCode
|
|
4173
|
-
});
|
|
4174
|
-
}
|
|
4175
|
-
}, "de_UpdateChannelFlowCommandError");
|
|
4176
2408
|
var de_UpdateChannelMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4177
2409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4178
|
-
return
|
|
2410
|
+
return de_CommandError(output, context);
|
|
4179
2411
|
}
|
|
4180
2412
|
const contents = (0, import_smithy_client.map)({
|
|
4181
2413
|
$metadata: deserializeMetadata(output)
|
|
@@ -4190,46 +2422,9 @@ var de_UpdateChannelMessageCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4190
2422
|
Object.assign(contents, doc);
|
|
4191
2423
|
return contents;
|
|
4192
2424
|
}, "de_UpdateChannelMessageCommand");
|
|
4193
|
-
var de_UpdateChannelMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4194
|
-
const parsedOutput = {
|
|
4195
|
-
...output,
|
|
4196
|
-
body: await parseErrorBody(output.body, context)
|
|
4197
|
-
};
|
|
4198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4199
|
-
switch (errorCode) {
|
|
4200
|
-
case "BadRequestException":
|
|
4201
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
4202
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4203
|
-
case "ConflictException":
|
|
4204
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
4205
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4206
|
-
case "ForbiddenException":
|
|
4207
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
4208
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4209
|
-
case "ServiceFailureException":
|
|
4210
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
4211
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4212
|
-
case "ServiceUnavailableException":
|
|
4213
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
4214
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4215
|
-
case "ThrottledClientException":
|
|
4216
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
4217
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
4218
|
-
case "UnauthorizedClientException":
|
|
4219
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
4220
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
4221
|
-
default:
|
|
4222
|
-
const parsedBody = parsedOutput.body;
|
|
4223
|
-
return throwDefaultError({
|
|
4224
|
-
output,
|
|
4225
|
-
parsedBody,
|
|
4226
|
-
errorCode
|
|
4227
|
-
});
|
|
4228
|
-
}
|
|
4229
|
-
}, "de_UpdateChannelMessageCommandError");
|
|
4230
2425
|
var de_UpdateChannelReadMarkerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4231
2426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4232
|
-
return
|
|
2427
|
+
return de_CommandError(output, context);
|
|
4233
2428
|
}
|
|
4234
2429
|
const contents = (0, import_smithy_client.map)({
|
|
4235
2430
|
$metadata: deserializeMetadata(output)
|
|
@@ -4241,7 +2436,7 @@ var de_UpdateChannelReadMarkerCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4241
2436
|
Object.assign(contents, doc);
|
|
4242
2437
|
return contents;
|
|
4243
2438
|
}, "de_UpdateChannelReadMarkerCommand");
|
|
4244
|
-
var
|
|
2439
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4245
2440
|
const parsedOutput = {
|
|
4246
2441
|
...output,
|
|
4247
2442
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4257,6 +2452,9 @@ var de_UpdateChannelReadMarkerCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
4257
2452
|
case "ForbiddenException":
|
|
4258
2453
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
4259
2454
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2455
|
+
case "NotFoundException":
|
|
2456
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2457
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4260
2458
|
case "ServiceFailureException":
|
|
4261
2459
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
4262
2460
|
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
@@ -4269,6 +2467,9 @@ var de_UpdateChannelReadMarkerCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
4269
2467
|
case "UnauthorizedClientException":
|
|
4270
2468
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
4271
2469
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2470
|
+
case "ResourceLimitExceededException":
|
|
2471
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
2472
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
4272
2473
|
default:
|
|
4273
2474
|
const parsedBody = parsedOutput.body;
|
|
4274
2475
|
return throwDefaultError({
|
|
@@ -4277,7 +2478,7 @@ var de_UpdateChannelReadMarkerCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
4277
2478
|
errorCode
|
|
4278
2479
|
});
|
|
4279
2480
|
}
|
|
4280
|
-
}, "
|
|
2481
|
+
}, "de_CommandError");
|
|
4281
2482
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ChimeSDKMessagingServiceException);
|
|
4282
2483
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4283
2484
|
const contents = (0, import_smithy_client.map)({});
|