@aws-sdk/client-chime-sdk-messaging 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +53 -47
- package/dist-es/ChimeSDKMessaging.js +190 -197
- package/dist-es/ChimeSDKMessagingClient.js +22 -28
- package/dist-es/commands/AssociateChannelFlowCommand.js +22 -29
- package/dist-es/commands/BatchCreateChannelMembershipCommand.js +21 -28
- package/dist-es/commands/ChannelFlowCallbackCommand.js +21 -28
- package/dist-es/commands/CreateChannelBanCommand.js +21 -28
- package/dist-es/commands/CreateChannelCommand.js +21 -28
- package/dist-es/commands/CreateChannelFlowCommand.js +21 -28
- package/dist-es/commands/CreateChannelMembershipCommand.js +21 -28
- package/dist-es/commands/CreateChannelModeratorCommand.js +21 -28
- package/dist-es/commands/DeleteChannelBanCommand.js +22 -29
- package/dist-es/commands/DeleteChannelCommand.js +22 -29
- package/dist-es/commands/DeleteChannelFlowCommand.js +22 -29
- package/dist-es/commands/DeleteChannelMembershipCommand.js +22 -29
- package/dist-es/commands/DeleteChannelMessageCommand.js +22 -29
- package/dist-es/commands/DeleteChannelModeratorCommand.js +22 -29
- package/dist-es/commands/DescribeChannelBanCommand.js +21 -28
- package/dist-es/commands/DescribeChannelCommand.js +21 -28
- package/dist-es/commands/DescribeChannelFlowCommand.js +21 -28
- package/dist-es/commands/DescribeChannelMembershipCommand.js +21 -28
- package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +21 -28
- package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +21 -28
- package/dist-es/commands/DescribeChannelModeratorCommand.js +21 -28
- package/dist-es/commands/DisassociateChannelFlowCommand.js +22 -29
- package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +21 -28
- package/dist-es/commands/GetChannelMessageCommand.js +21 -28
- package/dist-es/commands/GetChannelMessageStatusCommand.js +21 -28
- package/dist-es/commands/GetMessagingSessionEndpointCommand.js +21 -28
- package/dist-es/commands/ListChannelBansCommand.js +21 -28
- package/dist-es/commands/ListChannelFlowsCommand.js +21 -28
- package/dist-es/commands/ListChannelMembershipsCommand.js +21 -28
- package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +21 -28
- package/dist-es/commands/ListChannelMessagesCommand.js +21 -28
- package/dist-es/commands/ListChannelModeratorsCommand.js +21 -28
- package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +21 -28
- package/dist-es/commands/ListChannelsCommand.js +21 -28
- package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +21 -28
- package/dist-es/commands/ListSubChannelsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +21 -28
- package/dist-es/commands/RedactChannelMessageCommand.js +21 -28
- package/dist-es/commands/SearchChannelsCommand.js +21 -28
- package/dist-es/commands/SendChannelMessageCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateChannelCommand.js +21 -28
- package/dist-es/commands/UpdateChannelFlowCommand.js +21 -28
- package/dist-es/commands/UpdateChannelMessageCommand.js +21 -28
- package/dist-es/commands/UpdateChannelReadMarkerCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ChimeSDKMessagingServiceException.js +5 -10
- package/dist-es/models/models_0.js +627 -282
- package/dist-es/pagination/ListChannelBansPaginator.js +25 -68
- package/dist-es/pagination/ListChannelFlowsPaginator.js +25 -68
- package/dist-es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +25 -68
- package/dist-es/pagination/ListChannelMembershipsPaginator.js +25 -68
- package/dist-es/pagination/ListChannelMessagesPaginator.js +25 -68
- package/dist-es/pagination/ListChannelModeratorsPaginator.js +25 -68
- package/dist-es/pagination/ListChannelsAssociatedWithChannelFlowPaginator.js +25 -68
- package/dist-es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +25 -68
- package/dist-es/pagination/ListChannelsPaginator.js +25 -68
- package/dist-es/pagination/ListSubChannelsPaginator.js +25 -68
- package/dist-es/pagination/SearchChannelsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3792 -5299
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-chime-sdk-messaging
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-chime-sdk-messaging
|
|
@@ -1171,7 +1171,7 @@ exports.deserializeAws_restJson1AssociateChannelFlowCommand = deserializeAws_res
|
|
|
1171
1171
|
const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output, context) => {
|
|
1172
1172
|
const parsedOutput = {
|
|
1173
1173
|
...output,
|
|
1174
|
-
body: await
|
|
1174
|
+
body: await parseErrorBody(output.body, context),
|
|
1175
1175
|
};
|
|
1176
1176
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1177
|
switch (errorCode) {
|
|
@@ -1229,7 +1229,7 @@ exports.deserializeAws_restJson1BatchCreateChannelMembershipCommand = deserializ
|
|
|
1229
1229
|
const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (output, context) => {
|
|
1230
1230
|
const parsedOutput = {
|
|
1231
1231
|
...output,
|
|
1232
|
-
body: await
|
|
1232
|
+
body: await parseErrorBody(output.body, context),
|
|
1233
1233
|
};
|
|
1234
1234
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
1235
|
switch (errorCode) {
|
|
@@ -1287,7 +1287,7 @@ exports.deserializeAws_restJson1ChannelFlowCallbackCommand = deserializeAws_rest
|
|
|
1287
1287
|
const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, context) => {
|
|
1288
1288
|
const parsedOutput = {
|
|
1289
1289
|
...output,
|
|
1290
|
-
body: await
|
|
1290
|
+
body: await parseErrorBody(output.body, context),
|
|
1291
1291
|
};
|
|
1292
1292
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1293
|
switch (errorCode) {
|
|
@@ -1339,7 +1339,7 @@ exports.deserializeAws_restJson1CreateChannelCommand = deserializeAws_restJson1C
|
|
|
1339
1339
|
const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
|
|
1340
1340
|
const parsedOutput = {
|
|
1341
1341
|
...output,
|
|
1342
|
-
body: await
|
|
1342
|
+
body: await parseErrorBody(output.body, context),
|
|
1343
1343
|
};
|
|
1344
1344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
1345
|
switch (errorCode) {
|
|
@@ -1397,7 +1397,7 @@ exports.deserializeAws_restJson1CreateChannelBanCommand = deserializeAws_restJso
|
|
|
1397
1397
|
const deserializeAws_restJson1CreateChannelBanCommandError = async (output, context) => {
|
|
1398
1398
|
const parsedOutput = {
|
|
1399
1399
|
...output,
|
|
1400
|
-
body: await
|
|
1400
|
+
body: await parseErrorBody(output.body, context),
|
|
1401
1401
|
};
|
|
1402
1402
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
1403
|
switch (errorCode) {
|
|
@@ -1452,7 +1452,7 @@ exports.deserializeAws_restJson1CreateChannelFlowCommand = deserializeAws_restJs
|
|
|
1452
1452
|
const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, context) => {
|
|
1453
1453
|
const parsedOutput = {
|
|
1454
1454
|
...output,
|
|
1455
|
-
body: await
|
|
1455
|
+
body: await parseErrorBody(output.body, context),
|
|
1456
1456
|
};
|
|
1457
1457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1458
|
switch (errorCode) {
|
|
@@ -1513,7 +1513,7 @@ exports.deserializeAws_restJson1CreateChannelMembershipCommand = deserializeAws_
|
|
|
1513
1513
|
const deserializeAws_restJson1CreateChannelMembershipCommandError = async (output, context) => {
|
|
1514
1514
|
const parsedOutput = {
|
|
1515
1515
|
...output,
|
|
1516
|
-
body: await
|
|
1516
|
+
body: await parseErrorBody(output.body, context),
|
|
1517
1517
|
};
|
|
1518
1518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
1519
|
switch (errorCode) {
|
|
@@ -1574,7 +1574,7 @@ exports.deserializeAws_restJson1CreateChannelModeratorCommand = deserializeAws_r
|
|
|
1574
1574
|
const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output, context) => {
|
|
1575
1575
|
const parsedOutput = {
|
|
1576
1576
|
...output,
|
|
1577
|
-
body: await
|
|
1577
|
+
body: await parseErrorBody(output.body, context),
|
|
1578
1578
|
};
|
|
1579
1579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
1580
|
switch (errorCode) {
|
|
@@ -1626,7 +1626,7 @@ exports.deserializeAws_restJson1DeleteChannelCommand = deserializeAws_restJson1D
|
|
|
1626
1626
|
const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
|
|
1627
1627
|
const parsedOutput = {
|
|
1628
1628
|
...output,
|
|
1629
|
-
body: await
|
|
1629
|
+
body: await parseErrorBody(output.body, context),
|
|
1630
1630
|
};
|
|
1631
1631
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
1632
|
switch (errorCode) {
|
|
@@ -1672,7 +1672,7 @@ exports.deserializeAws_restJson1DeleteChannelBanCommand = deserializeAws_restJso
|
|
|
1672
1672
|
const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, context) => {
|
|
1673
1673
|
const parsedOutput = {
|
|
1674
1674
|
...output,
|
|
1675
|
-
body: await
|
|
1675
|
+
body: await parseErrorBody(output.body, context),
|
|
1676
1676
|
};
|
|
1677
1677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
1678
|
switch (errorCode) {
|
|
@@ -1718,7 +1718,7 @@ exports.deserializeAws_restJson1DeleteChannelFlowCommand = deserializeAws_restJs
|
|
|
1718
1718
|
const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, context) => {
|
|
1719
1719
|
const parsedOutput = {
|
|
1720
1720
|
...output,
|
|
1721
|
-
body: await
|
|
1721
|
+
body: await parseErrorBody(output.body, context),
|
|
1722
1722
|
};
|
|
1723
1723
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
1724
|
switch (errorCode) {
|
|
@@ -1767,7 +1767,7 @@ exports.deserializeAws_restJson1DeleteChannelMembershipCommand = deserializeAws_
|
|
|
1767
1767
|
const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (output, context) => {
|
|
1768
1768
|
const parsedOutput = {
|
|
1769
1769
|
...output,
|
|
1770
|
-
body: await
|
|
1770
|
+
body: await parseErrorBody(output.body, context),
|
|
1771
1771
|
};
|
|
1772
1772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
1773
|
switch (errorCode) {
|
|
@@ -1816,7 +1816,7 @@ exports.deserializeAws_restJson1DeleteChannelMessageCommand = deserializeAws_res
|
|
|
1816
1816
|
const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output, context) => {
|
|
1817
1817
|
const parsedOutput = {
|
|
1818
1818
|
...output,
|
|
1819
|
-
body: await
|
|
1819
|
+
body: await parseErrorBody(output.body, context),
|
|
1820
1820
|
};
|
|
1821
1821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
1822
|
switch (errorCode) {
|
|
@@ -1862,7 +1862,7 @@ exports.deserializeAws_restJson1DeleteChannelModeratorCommand = deserializeAws_r
|
|
|
1862
1862
|
const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output, context) => {
|
|
1863
1863
|
const parsedOutput = {
|
|
1864
1864
|
...output,
|
|
1865
|
-
body: await
|
|
1865
|
+
body: await parseErrorBody(output.body, context),
|
|
1866
1866
|
};
|
|
1867
1867
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1868
|
switch (errorCode) {
|
|
@@ -1911,7 +1911,7 @@ exports.deserializeAws_restJson1DescribeChannelCommand = deserializeAws_restJson
|
|
|
1911
1911
|
const deserializeAws_restJson1DescribeChannelCommandError = async (output, context) => {
|
|
1912
1912
|
const parsedOutput = {
|
|
1913
1913
|
...output,
|
|
1914
|
-
body: await
|
|
1914
|
+
body: await parseErrorBody(output.body, context),
|
|
1915
1915
|
};
|
|
1916
1916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
1917
|
switch (errorCode) {
|
|
@@ -1960,7 +1960,7 @@ exports.deserializeAws_restJson1DescribeChannelBanCommand = deserializeAws_restJ
|
|
|
1960
1960
|
const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, context) => {
|
|
1961
1961
|
const parsedOutput = {
|
|
1962
1962
|
...output,
|
|
1963
|
-
body: await
|
|
1963
|
+
body: await parseErrorBody(output.body, context),
|
|
1964
1964
|
};
|
|
1965
1965
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
1966
|
switch (errorCode) {
|
|
@@ -2012,7 +2012,7 @@ exports.deserializeAws_restJson1DescribeChannelFlowCommand = deserializeAws_rest
|
|
|
2012
2012
|
const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, context) => {
|
|
2013
2013
|
const parsedOutput = {
|
|
2014
2014
|
...output,
|
|
2015
|
-
body: await
|
|
2015
|
+
body: await parseErrorBody(output.body, context),
|
|
2016
2016
|
};
|
|
2017
2017
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
2018
|
switch (errorCode) {
|
|
@@ -2061,7 +2061,7 @@ exports.deserializeAws_restJson1DescribeChannelMembershipCommand = deserializeAw
|
|
|
2061
2061
|
const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (output, context) => {
|
|
2062
2062
|
const parsedOutput = {
|
|
2063
2063
|
...output,
|
|
2064
|
-
body: await
|
|
2064
|
+
body: await parseErrorBody(output.body, context),
|
|
2065
2065
|
};
|
|
2066
2066
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
2067
|
switch (errorCode) {
|
|
@@ -2113,7 +2113,7 @@ exports.deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserComma
|
|
|
2113
2113
|
const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError = async (output, context) => {
|
|
2114
2114
|
const parsedOutput = {
|
|
2115
2115
|
...output,
|
|
2116
|
-
body: await
|
|
2116
|
+
body: await parseErrorBody(output.body, context),
|
|
2117
2117
|
};
|
|
2118
2118
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2119
2119
|
switch (errorCode) {
|
|
@@ -2162,7 +2162,7 @@ exports.deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand
|
|
|
2162
2162
|
const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
2163
2163
|
const parsedOutput = {
|
|
2164
2164
|
...output,
|
|
2165
|
-
body: await
|
|
2165
|
+
body: await parseErrorBody(output.body, context),
|
|
2166
2166
|
};
|
|
2167
2167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2168
2168
|
switch (errorCode) {
|
|
@@ -2211,7 +2211,7 @@ exports.deserializeAws_restJson1DescribeChannelModeratorCommand = deserializeAws
|
|
|
2211
2211
|
const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (output, context) => {
|
|
2212
2212
|
const parsedOutput = {
|
|
2213
2213
|
...output,
|
|
2214
|
-
body: await
|
|
2214
|
+
body: await parseErrorBody(output.body, context),
|
|
2215
2215
|
};
|
|
2216
2216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2217
2217
|
switch (errorCode) {
|
|
@@ -2260,7 +2260,7 @@ exports.deserializeAws_restJson1DisassociateChannelFlowCommand = deserializeAws_
|
|
|
2260
2260
|
const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (output, context) => {
|
|
2261
2261
|
const parsedOutput = {
|
|
2262
2262
|
...output,
|
|
2263
|
-
body: await
|
|
2263
|
+
body: await parseErrorBody(output.body, context),
|
|
2264
2264
|
};
|
|
2265
2265
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
2266
|
switch (errorCode) {
|
|
@@ -2321,7 +2321,7 @@ exports.deserializeAws_restJson1GetChannelMembershipPreferencesCommand = deseria
|
|
|
2321
2321
|
const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
2322
2322
|
const parsedOutput = {
|
|
2323
2323
|
...output,
|
|
2324
|
-
body: await
|
|
2324
|
+
body: await parseErrorBody(output.body, context),
|
|
2325
2325
|
};
|
|
2326
2326
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
2327
|
switch (errorCode) {
|
|
@@ -2370,7 +2370,7 @@ exports.deserializeAws_restJson1GetChannelMessageCommand = deserializeAws_restJs
|
|
|
2370
2370
|
const deserializeAws_restJson1GetChannelMessageCommandError = async (output, context) => {
|
|
2371
2371
|
const parsedOutput = {
|
|
2372
2372
|
...output,
|
|
2373
|
-
body: await
|
|
2373
|
+
body: await parseErrorBody(output.body, context),
|
|
2374
2374
|
};
|
|
2375
2375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
2376
|
switch (errorCode) {
|
|
@@ -2422,7 +2422,7 @@ exports.deserializeAws_restJson1GetChannelMessageStatusCommand = deserializeAws_
|
|
|
2422
2422
|
const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (output, context) => {
|
|
2423
2423
|
const parsedOutput = {
|
|
2424
2424
|
...output,
|
|
2425
|
-
body: await
|
|
2425
|
+
body: await parseErrorBody(output.body, context),
|
|
2426
2426
|
};
|
|
2427
2427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
2428
|
switch (errorCode) {
|
|
@@ -2471,7 +2471,7 @@ exports.deserializeAws_restJson1GetMessagingSessionEndpointCommand = deserialize
|
|
|
2471
2471
|
const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (output, context) => {
|
|
2472
2472
|
const parsedOutput = {
|
|
2473
2473
|
...output,
|
|
2474
|
-
body: await
|
|
2474
|
+
body: await parseErrorBody(output.body, context),
|
|
2475
2475
|
};
|
|
2476
2476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
2477
|
switch (errorCode) {
|
|
@@ -2523,7 +2523,7 @@ exports.deserializeAws_restJson1ListChannelBansCommand = deserializeAws_restJson
|
|
|
2523
2523
|
const deserializeAws_restJson1ListChannelBansCommandError = async (output, context) => {
|
|
2524
2524
|
const parsedOutput = {
|
|
2525
2525
|
...output,
|
|
2526
|
-
body: await
|
|
2526
|
+
body: await parseErrorBody(output.body, context),
|
|
2527
2527
|
};
|
|
2528
2528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
2529
|
switch (errorCode) {
|
|
@@ -2575,7 +2575,7 @@ exports.deserializeAws_restJson1ListChannelFlowsCommand = deserializeAws_restJso
|
|
|
2575
2575
|
const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, context) => {
|
|
2576
2576
|
const parsedOutput = {
|
|
2577
2577
|
...output,
|
|
2578
|
-
body: await
|
|
2578
|
+
body: await parseErrorBody(output.body, context),
|
|
2579
2579
|
};
|
|
2580
2580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2581
2581
|
switch (errorCode) {
|
|
@@ -2630,7 +2630,7 @@ exports.deserializeAws_restJson1ListChannelMembershipsCommand = deserializeAws_r
|
|
|
2630
2630
|
const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output, context) => {
|
|
2631
2631
|
const parsedOutput = {
|
|
2632
2632
|
...output,
|
|
2633
|
-
body: await
|
|
2633
|
+
body: await parseErrorBody(output.body, context),
|
|
2634
2634
|
};
|
|
2635
2635
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
2636
|
switch (errorCode) {
|
|
@@ -2682,7 +2682,7 @@ exports.deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand
|
|
|
2682
2682
|
const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError = async (output, context) => {
|
|
2683
2683
|
const parsedOutput = {
|
|
2684
2684
|
...output,
|
|
2685
|
-
body: await
|
|
2685
|
+
body: await parseErrorBody(output.body, context),
|
|
2686
2686
|
};
|
|
2687
2687
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
2688
|
switch (errorCode) {
|
|
@@ -2740,7 +2740,7 @@ exports.deserializeAws_restJson1ListChannelMessagesCommand = deserializeAws_rest
|
|
|
2740
2740
|
const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, context) => {
|
|
2741
2741
|
const parsedOutput = {
|
|
2742
2742
|
...output,
|
|
2743
|
-
body: await
|
|
2743
|
+
body: await parseErrorBody(output.body, context),
|
|
2744
2744
|
};
|
|
2745
2745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
2746
|
switch (errorCode) {
|
|
@@ -2795,7 +2795,7 @@ exports.deserializeAws_restJson1ListChannelModeratorsCommand = deserializeAws_re
|
|
|
2795
2795
|
const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output, context) => {
|
|
2796
2796
|
const parsedOutput = {
|
|
2797
2797
|
...output,
|
|
2798
|
-
body: await
|
|
2798
|
+
body: await parseErrorBody(output.body, context),
|
|
2799
2799
|
};
|
|
2800
2800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2801
2801
|
switch (errorCode) {
|
|
@@ -2847,7 +2847,7 @@ exports.deserializeAws_restJson1ListChannelsCommand = deserializeAws_restJson1Li
|
|
|
2847
2847
|
const deserializeAws_restJson1ListChannelsCommandError = async (output, context) => {
|
|
2848
2848
|
const parsedOutput = {
|
|
2849
2849
|
...output,
|
|
2850
|
-
body: await
|
|
2850
|
+
body: await parseErrorBody(output.body, context),
|
|
2851
2851
|
};
|
|
2852
2852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
2853
|
switch (errorCode) {
|
|
@@ -2899,7 +2899,7 @@ exports.deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = d
|
|
|
2899
2899
|
const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError = async (output, context) => {
|
|
2900
2900
|
const parsedOutput = {
|
|
2901
2901
|
...output,
|
|
2902
|
-
body: await
|
|
2902
|
+
body: await parseErrorBody(output.body, context),
|
|
2903
2903
|
};
|
|
2904
2904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2905
2905
|
switch (errorCode) {
|
|
@@ -2951,7 +2951,7 @@ exports.deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand =
|
|
|
2951
2951
|
const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
2952
2952
|
const parsedOutput = {
|
|
2953
2953
|
...output,
|
|
2954
|
-
body: await
|
|
2954
|
+
body: await parseErrorBody(output.body, context),
|
|
2955
2955
|
};
|
|
2956
2956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
2957
|
switch (errorCode) {
|
|
@@ -3006,7 +3006,7 @@ exports.deserializeAws_restJson1ListSubChannelsCommand = deserializeAws_restJson
|
|
|
3006
3006
|
const deserializeAws_restJson1ListSubChannelsCommandError = async (output, context) => {
|
|
3007
3007
|
const parsedOutput = {
|
|
3008
3008
|
...output,
|
|
3009
|
-
body: await
|
|
3009
|
+
body: await parseErrorBody(output.body, context),
|
|
3010
3010
|
};
|
|
3011
3011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3012
3012
|
switch (errorCode) {
|
|
@@ -3055,7 +3055,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
3055
3055
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
3056
3056
|
const parsedOutput = {
|
|
3057
3057
|
...output,
|
|
3058
|
-
body: await
|
|
3058
|
+
body: await parseErrorBody(output.body, context),
|
|
3059
3059
|
};
|
|
3060
3060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3061
3061
|
switch (errorCode) {
|
|
@@ -3110,7 +3110,7 @@ exports.deserializeAws_restJson1PutChannelMembershipPreferencesCommand = deseria
|
|
|
3110
3110
|
const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
3111
3111
|
const parsedOutput = {
|
|
3112
3112
|
...output,
|
|
3113
|
-
body: await
|
|
3113
|
+
body: await parseErrorBody(output.body, context),
|
|
3114
3114
|
};
|
|
3115
3115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3116
3116
|
switch (errorCode) {
|
|
@@ -3168,7 +3168,7 @@ exports.deserializeAws_restJson1RedactChannelMessageCommand = deserializeAws_res
|
|
|
3168
3168
|
const deserializeAws_restJson1RedactChannelMessageCommandError = async (output, context) => {
|
|
3169
3169
|
const parsedOutput = {
|
|
3170
3170
|
...output,
|
|
3171
|
-
body: await
|
|
3171
|
+
body: await parseErrorBody(output.body, context),
|
|
3172
3172
|
};
|
|
3173
3173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3174
3174
|
switch (errorCode) {
|
|
@@ -3223,7 +3223,7 @@ exports.deserializeAws_restJson1SearchChannelsCommand = deserializeAws_restJson1
|
|
|
3223
3223
|
const deserializeAws_restJson1SearchChannelsCommandError = async (output, context) => {
|
|
3224
3224
|
const parsedOutput = {
|
|
3225
3225
|
...output,
|
|
3226
|
-
body: await
|
|
3226
|
+
body: await parseErrorBody(output.body, context),
|
|
3227
3227
|
};
|
|
3228
3228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3229
3229
|
switch (errorCode) {
|
|
@@ -3281,7 +3281,7 @@ exports.deserializeAws_restJson1SendChannelMessageCommand = deserializeAws_restJ
|
|
|
3281
3281
|
const deserializeAws_restJson1SendChannelMessageCommandError = async (output, context) => {
|
|
3282
3282
|
const parsedOutput = {
|
|
3283
3283
|
...output,
|
|
3284
|
-
body: await
|
|
3284
|
+
body: await parseErrorBody(output.body, context),
|
|
3285
3285
|
};
|
|
3286
3286
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3287
3287
|
switch (errorCode) {
|
|
@@ -3330,7 +3330,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
3330
3330
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
3331
3331
|
const parsedOutput = {
|
|
3332
3332
|
...output,
|
|
3333
|
-
body: await
|
|
3333
|
+
body: await parseErrorBody(output.body, context),
|
|
3334
3334
|
};
|
|
3335
3335
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3336
3336
|
switch (errorCode) {
|
|
@@ -3379,7 +3379,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
3379
3379
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
3380
3380
|
const parsedOutput = {
|
|
3381
3381
|
...output,
|
|
3382
|
-
body: await
|
|
3382
|
+
body: await parseErrorBody(output.body, context),
|
|
3383
3383
|
};
|
|
3384
3384
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3385
3385
|
switch (errorCode) {
|
|
@@ -3428,7 +3428,7 @@ exports.deserializeAws_restJson1UpdateChannelCommand = deserializeAws_restJson1U
|
|
|
3428
3428
|
const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
|
|
3429
3429
|
const parsedOutput = {
|
|
3430
3430
|
...output,
|
|
3431
|
-
body: await
|
|
3431
|
+
body: await parseErrorBody(output.body, context),
|
|
3432
3432
|
};
|
|
3433
3433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
3434
|
switch (errorCode) {
|
|
@@ -3480,7 +3480,7 @@ exports.deserializeAws_restJson1UpdateChannelFlowCommand = deserializeAws_restJs
|
|
|
3480
3480
|
const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, context) => {
|
|
3481
3481
|
const parsedOutput = {
|
|
3482
3482
|
...output,
|
|
3483
|
-
body: await
|
|
3483
|
+
body: await parseErrorBody(output.body, context),
|
|
3484
3484
|
};
|
|
3485
3485
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3486
3486
|
switch (errorCode) {
|
|
@@ -3541,7 +3541,7 @@ exports.deserializeAws_restJson1UpdateChannelMessageCommand = deserializeAws_res
|
|
|
3541
3541
|
const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output, context) => {
|
|
3542
3542
|
const parsedOutput = {
|
|
3543
3543
|
...output,
|
|
3544
|
-
body: await
|
|
3544
|
+
body: await parseErrorBody(output.body, context),
|
|
3545
3545
|
};
|
|
3546
3546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
3547
|
switch (errorCode) {
|
|
@@ -3596,7 +3596,7 @@ exports.deserializeAws_restJson1UpdateChannelReadMarkerCommand = deserializeAws_
|
|
|
3596
3596
|
const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
3597
3597
|
const parsedOutput = {
|
|
3598
3598
|
...output,
|
|
3599
|
-
body: await
|
|
3599
|
+
body: await parseErrorBody(output.body, context),
|
|
3600
3600
|
};
|
|
3601
3601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3602
3602
|
switch (errorCode) {
|
|
@@ -4412,6 +4412,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4412
4412
|
}
|
|
4413
4413
|
return {};
|
|
4414
4414
|
});
|
|
4415
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4416
|
+
var _a;
|
|
4417
|
+
const value = await parseBody(errorBody, context);
|
|
4418
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4419
|
+
return value;
|
|
4420
|
+
};
|
|
4415
4421
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4416
4422
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4417
4423
|
const sanitizeErrorCode = (rawValue) => {
|