@aws-sdk/client-chime-sdk-messaging 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +340 -364
- package/dist-es/protocols/Aws_restJson1.js +306 -330
- package/package.json +26 -26
|
@@ -26,8 +26,7 @@ const serializeAws_restJson1AssociateChannelFlowCommand = async (input, context)
|
|
|
26
26
|
}
|
|
27
27
|
let body;
|
|
28
28
|
body = JSON.stringify({
|
|
29
|
-
...(input.ChannelFlowArn
|
|
30
|
-
input.ChannelFlowArn !== null && { ChannelFlowArn: input.ChannelFlowArn }),
|
|
29
|
+
...(input.ChannelFlowArn != null && { ChannelFlowArn: input.ChannelFlowArn }),
|
|
31
30
|
});
|
|
32
31
|
return new protocol_http_1.HttpRequest({
|
|
33
32
|
protocol,
|
|
@@ -62,9 +61,8 @@ const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input,
|
|
|
62
61
|
};
|
|
63
62
|
let body;
|
|
64
63
|
body = JSON.stringify({
|
|
65
|
-
...(input.MemberArns
|
|
66
|
-
|
|
67
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
64
|
+
...(input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) }),
|
|
65
|
+
...(input.Type != null && { Type: input.Type }),
|
|
68
66
|
});
|
|
69
67
|
return new protocol_http_1.HttpRequest({
|
|
70
68
|
protocol,
|
|
@@ -101,12 +99,10 @@ const serializeAws_restJson1ChannelFlowCallbackCommand = async (input, context)
|
|
|
101
99
|
let body;
|
|
102
100
|
body = JSON.stringify({
|
|
103
101
|
CallbackId: (_a = input.CallbackId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
104
|
-
...(input.ChannelMessage
|
|
105
|
-
input.ChannelMessage !== null && {
|
|
102
|
+
...(input.ChannelMessage != null && {
|
|
106
103
|
ChannelMessage: serializeAws_restJson1ChannelMessageCallback(input.ChannelMessage, context),
|
|
107
104
|
}),
|
|
108
|
-
...(input.DeleteResource
|
|
109
|
-
input.DeleteResource !== null && { DeleteResource: input.DeleteResource }),
|
|
105
|
+
...(input.DeleteResource != null && { DeleteResource: input.DeleteResource }),
|
|
110
106
|
});
|
|
111
107
|
return new protocol_http_1.HttpRequest({
|
|
112
108
|
protocol,
|
|
@@ -130,22 +126,18 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
130
126
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
131
127
|
let body;
|
|
132
128
|
body = JSON.stringify({
|
|
133
|
-
...(input.AppInstanceArn
|
|
134
|
-
|
|
135
|
-
...(input.ChannelId !== undefined && input.ChannelId !== null && { ChannelId: input.ChannelId }),
|
|
129
|
+
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
130
|
+
...(input.ChannelId != null && { ChannelId: input.ChannelId }),
|
|
136
131
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
137
|
-
...(input.MemberArns
|
|
138
|
-
|
|
139
|
-
...(input.
|
|
140
|
-
...(input.
|
|
141
|
-
...(input.ModeratorArns !== undefined &&
|
|
142
|
-
input.ModeratorArns !== null && {
|
|
132
|
+
...(input.MemberArns != null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) }),
|
|
133
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
134
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
135
|
+
...(input.ModeratorArns != null && {
|
|
143
136
|
ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
|
|
144
137
|
}),
|
|
145
|
-
...(input.Name
|
|
146
|
-
...(input.Privacy
|
|
147
|
-
...(input.Tags
|
|
148
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
138
|
+
...(input.Name != null && { Name: input.Name }),
|
|
139
|
+
...(input.Privacy != null && { Privacy: input.Privacy }),
|
|
140
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
149
141
|
});
|
|
150
142
|
return new protocol_http_1.HttpRequest({
|
|
151
143
|
protocol,
|
|
@@ -177,7 +169,7 @@ const serializeAws_restJson1CreateChannelBanCommand = async (input, context) =>
|
|
|
177
169
|
}
|
|
178
170
|
let body;
|
|
179
171
|
body = JSON.stringify({
|
|
180
|
-
...(input.MemberArn
|
|
172
|
+
...(input.MemberArn != null && { MemberArn: input.MemberArn }),
|
|
181
173
|
});
|
|
182
174
|
return new protocol_http_1.HttpRequest({
|
|
183
175
|
protocol,
|
|
@@ -198,15 +190,11 @@ const serializeAws_restJson1CreateChannelFlowCommand = async (input, context) =>
|
|
|
198
190
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
|
|
199
191
|
let body;
|
|
200
192
|
body = JSON.stringify({
|
|
201
|
-
...(input.AppInstanceArn
|
|
202
|
-
|
|
203
|
-
...(input.
|
|
204
|
-
|
|
205
|
-
...(input.
|
|
206
|
-
...(input.Processors !== undefined &&
|
|
207
|
-
input.Processors !== null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) }),
|
|
208
|
-
...(input.Tags !== undefined &&
|
|
209
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
193
|
+
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
194
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
195
|
+
...(input.Name != null && { Name: input.Name }),
|
|
196
|
+
...(input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) }),
|
|
197
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
210
198
|
});
|
|
211
199
|
return new protocol_http_1.HttpRequest({
|
|
212
200
|
protocol,
|
|
@@ -238,8 +226,8 @@ const serializeAws_restJson1CreateChannelMembershipCommand = async (input, conte
|
|
|
238
226
|
}
|
|
239
227
|
let body;
|
|
240
228
|
body = JSON.stringify({
|
|
241
|
-
...(input.MemberArn
|
|
242
|
-
...(input.Type
|
|
229
|
+
...(input.MemberArn != null && { MemberArn: input.MemberArn }),
|
|
230
|
+
...(input.Type != null && { Type: input.Type }),
|
|
243
231
|
});
|
|
244
232
|
return new protocol_http_1.HttpRequest({
|
|
245
233
|
protocol,
|
|
@@ -271,8 +259,7 @@ const serializeAws_restJson1CreateChannelModeratorCommand = async (input, contex
|
|
|
271
259
|
}
|
|
272
260
|
let body;
|
|
273
261
|
body = JSON.stringify({
|
|
274
|
-
...(input.ChannelModeratorArn
|
|
275
|
-
input.ChannelModeratorArn !== null && { ChannelModeratorArn: input.ChannelModeratorArn }),
|
|
262
|
+
...(input.ChannelModeratorArn != null && { ChannelModeratorArn: input.ChannelModeratorArn }),
|
|
276
263
|
});
|
|
277
264
|
return new protocol_http_1.HttpRequest({
|
|
278
265
|
protocol,
|
|
@@ -1217,8 +1204,7 @@ const serializeAws_restJson1PutChannelMembershipPreferencesCommand = async (inpu
|
|
|
1217
1204
|
}
|
|
1218
1205
|
let body;
|
|
1219
1206
|
body = JSON.stringify({
|
|
1220
|
-
...(input.Preferences
|
|
1221
|
-
input.Preferences !== null && {
|
|
1207
|
+
...(input.Preferences != null && {
|
|
1222
1208
|
Preferences: serializeAws_restJson1ChannelMembershipPreferences(input.Preferences, context),
|
|
1223
1209
|
}),
|
|
1224
1210
|
});
|
|
@@ -1290,8 +1276,7 @@ const serializeAws_restJson1SearchChannelsCommand = async (input, context) => {
|
|
|
1290
1276
|
};
|
|
1291
1277
|
let body;
|
|
1292
1278
|
body = JSON.stringify({
|
|
1293
|
-
...(input.Fields
|
|
1294
|
-
input.Fields !== null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) }),
|
|
1279
|
+
...(input.Fields != null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) }),
|
|
1295
1280
|
});
|
|
1296
1281
|
return new protocol_http_1.HttpRequest({
|
|
1297
1282
|
protocol,
|
|
@@ -1326,18 +1311,16 @@ const serializeAws_restJson1SendChannelMessageCommand = async (input, context) =
|
|
|
1326
1311
|
let body;
|
|
1327
1312
|
body = JSON.stringify({
|
|
1328
1313
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1329
|
-
...(input.Content
|
|
1330
|
-
...(input.MessageAttributes
|
|
1331
|
-
input.MessageAttributes !== null && {
|
|
1314
|
+
...(input.Content != null && { Content: input.Content }),
|
|
1315
|
+
...(input.MessageAttributes != null && {
|
|
1332
1316
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
1333
1317
|
}),
|
|
1334
|
-
...(input.Metadata
|
|
1335
|
-
...(input.Persistence
|
|
1336
|
-
...(input.PushNotification
|
|
1337
|
-
input.PushNotification !== null && {
|
|
1318
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
1319
|
+
...(input.Persistence != null && { Persistence: input.Persistence }),
|
|
1320
|
+
...(input.PushNotification != null && {
|
|
1338
1321
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
1339
1322
|
}),
|
|
1340
|
-
...(input.Type
|
|
1323
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1341
1324
|
});
|
|
1342
1325
|
return new protocol_http_1.HttpRequest({
|
|
1343
1326
|
protocol,
|
|
@@ -1361,9 +1344,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1361
1344
|
};
|
|
1362
1345
|
let body;
|
|
1363
1346
|
body = JSON.stringify({
|
|
1364
|
-
...(input.ResourceARN
|
|
1365
|
-
...(input.Tags
|
|
1366
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
1347
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1348
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
1367
1349
|
});
|
|
1368
1350
|
return new protocol_http_1.HttpRequest({
|
|
1369
1351
|
protocol,
|
|
@@ -1388,9 +1370,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1388
1370
|
};
|
|
1389
1371
|
let body;
|
|
1390
1372
|
body = JSON.stringify({
|
|
1391
|
-
...(input.ResourceARN
|
|
1392
|
-
...(input.TagKeys
|
|
1393
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
1373
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1374
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
|
|
1394
1375
|
});
|
|
1395
1376
|
return new protocol_http_1.HttpRequest({
|
|
1396
1377
|
protocol,
|
|
@@ -1423,9 +1404,9 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
1423
1404
|
}
|
|
1424
1405
|
let body;
|
|
1425
1406
|
body = JSON.stringify({
|
|
1426
|
-
...(input.Metadata
|
|
1427
|
-
...(input.Mode
|
|
1428
|
-
...(input.Name
|
|
1407
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
1408
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
1409
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1429
1410
|
});
|
|
1430
1411
|
return new protocol_http_1.HttpRequest({
|
|
1431
1412
|
protocol,
|
|
@@ -1456,9 +1437,8 @@ const serializeAws_restJson1UpdateChannelFlowCommand = async (input, context) =>
|
|
|
1456
1437
|
}
|
|
1457
1438
|
let body;
|
|
1458
1439
|
body = JSON.stringify({
|
|
1459
|
-
...(input.Name
|
|
1460
|
-
...(input.Processors
|
|
1461
|
-
input.Processors !== null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) }),
|
|
1440
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1441
|
+
...(input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) }),
|
|
1462
1442
|
});
|
|
1463
1443
|
return new protocol_http_1.HttpRequest({
|
|
1464
1444
|
protocol,
|
|
@@ -1501,8 +1481,8 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
|
|
|
1501
1481
|
}
|
|
1502
1482
|
let body;
|
|
1503
1483
|
body = JSON.stringify({
|
|
1504
|
-
...(input.Content
|
|
1505
|
-
...(input.Metadata
|
|
1484
|
+
...(input.Content != null && { Content: input.Content }),
|
|
1485
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
1506
1486
|
});
|
|
1507
1487
|
return new protocol_http_1.HttpRequest({
|
|
1508
1488
|
protocol,
|
|
@@ -1560,8 +1540,7 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
|
|
|
1560
1540
|
body: await parseBody(output.body, context),
|
|
1561
1541
|
};
|
|
1562
1542
|
let response;
|
|
1563
|
-
|
|
1564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
1544
|
switch (errorCode) {
|
|
1566
1545
|
case "BadRequestException":
|
|
1567
1546
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1589,10 +1568,12 @@ const deserializeAws_restJson1AssociateChannelFlowCommandError = async (output,
|
|
|
1589
1568
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1590
1569
|
default:
|
|
1591
1570
|
const parsedBody = parsedOutput.body;
|
|
1571
|
+
const $metadata = deserializeMetadata(output);
|
|
1572
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1592
1573
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1574
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1594
1575
|
$fault: "client",
|
|
1595
|
-
$metadata
|
|
1576
|
+
$metadata,
|
|
1596
1577
|
});
|
|
1597
1578
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1598
1579
|
}
|
|
@@ -1622,8 +1603,7 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1622
1603
|
body: await parseBody(output.body, context),
|
|
1623
1604
|
};
|
|
1624
1605
|
let response;
|
|
1625
|
-
|
|
1626
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
1607
|
switch (errorCode) {
|
|
1628
1608
|
case "BadRequestException":
|
|
1629
1609
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1645,10 +1625,12 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1645
1625
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1646
1626
|
default:
|
|
1647
1627
|
const parsedBody = parsedOutput.body;
|
|
1628
|
+
const $metadata = deserializeMetadata(output);
|
|
1629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1648
1630
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1650
1632
|
$fault: "client",
|
|
1651
|
-
$metadata
|
|
1633
|
+
$metadata,
|
|
1652
1634
|
});
|
|
1653
1635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1654
1636
|
}
|
|
@@ -1678,8 +1660,7 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
|
|
|
1678
1660
|
body: await parseBody(output.body, context),
|
|
1679
1661
|
};
|
|
1680
1662
|
let response;
|
|
1681
|
-
|
|
1682
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1664
|
switch (errorCode) {
|
|
1684
1665
|
case "BadRequestException":
|
|
1685
1666
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1704,10 +1685,12 @@ const deserializeAws_restJson1ChannelFlowCallbackCommandError = async (output, c
|
|
|
1704
1685
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1705
1686
|
default:
|
|
1706
1687
|
const parsedBody = parsedOutput.body;
|
|
1688
|
+
const $metadata = deserializeMetadata(output);
|
|
1689
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1707
1690
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1691
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1709
1692
|
$fault: "client",
|
|
1710
|
-
$metadata
|
|
1693
|
+
$metadata,
|
|
1711
1694
|
});
|
|
1712
1695
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1713
1696
|
}
|
|
@@ -1733,8 +1716,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1733
1716
|
body: await parseBody(output.body, context),
|
|
1734
1717
|
};
|
|
1735
1718
|
let response;
|
|
1736
|
-
|
|
1737
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1720
|
switch (errorCode) {
|
|
1739
1721
|
case "BadRequestException":
|
|
1740
1722
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1762,10 +1744,12 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
1762
1744
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1763
1745
|
default:
|
|
1764
1746
|
const parsedBody = parsedOutput.body;
|
|
1747
|
+
const $metadata = deserializeMetadata(output);
|
|
1748
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1765
1749
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1750
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1767
1751
|
$fault: "client",
|
|
1768
|
-
$metadata
|
|
1752
|
+
$metadata,
|
|
1769
1753
|
});
|
|
1770
1754
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1771
1755
|
}
|
|
@@ -1795,8 +1779,7 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
1795
1779
|
body: await parseBody(output.body, context),
|
|
1796
1780
|
};
|
|
1797
1781
|
let response;
|
|
1798
|
-
|
|
1799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
1783
|
switch (errorCode) {
|
|
1801
1784
|
case "BadRequestException":
|
|
1802
1785
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1824,10 +1807,12 @@ const deserializeAws_restJson1CreateChannelBanCommandError = async (output, cont
|
|
|
1824
1807
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1825
1808
|
default:
|
|
1826
1809
|
const parsedBody = parsedOutput.body;
|
|
1810
|
+
const $metadata = deserializeMetadata(output);
|
|
1811
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1827
1812
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1813
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1829
1814
|
$fault: "client",
|
|
1830
|
-
$metadata
|
|
1815
|
+
$metadata,
|
|
1831
1816
|
});
|
|
1832
1817
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1833
1818
|
}
|
|
@@ -1853,8 +1838,7 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
|
|
|
1853
1838
|
body: await parseBody(output.body, context),
|
|
1854
1839
|
};
|
|
1855
1840
|
let response;
|
|
1856
|
-
|
|
1857
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1842
|
switch (errorCode) {
|
|
1859
1843
|
case "BadRequestException":
|
|
1860
1844
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1882,10 +1866,12 @@ const deserializeAws_restJson1CreateChannelFlowCommandError = async (output, con
|
|
|
1882
1866
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1883
1867
|
default:
|
|
1884
1868
|
const parsedBody = parsedOutput.body;
|
|
1869
|
+
const $metadata = deserializeMetadata(output);
|
|
1870
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1885
1871
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1872
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1887
1873
|
$fault: "client",
|
|
1888
|
-
$metadata
|
|
1874
|
+
$metadata,
|
|
1889
1875
|
});
|
|
1890
1876
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1891
1877
|
}
|
|
@@ -1915,8 +1901,7 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1915
1901
|
body: await parseBody(output.body, context),
|
|
1916
1902
|
};
|
|
1917
1903
|
let response;
|
|
1918
|
-
|
|
1919
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
1905
|
switch (errorCode) {
|
|
1921
1906
|
case "BadRequestException":
|
|
1922
1907
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -1944,10 +1929,12 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1944
1929
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
1945
1930
|
default:
|
|
1946
1931
|
const parsedBody = parsedOutput.body;
|
|
1932
|
+
const $metadata = deserializeMetadata(output);
|
|
1933
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1947
1934
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
1948
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1935
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1949
1936
|
$fault: "client",
|
|
1950
|
-
$metadata
|
|
1937
|
+
$metadata,
|
|
1951
1938
|
});
|
|
1952
1939
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1953
1940
|
}
|
|
@@ -1977,8 +1964,7 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
1977
1964
|
body: await parseBody(output.body, context),
|
|
1978
1965
|
};
|
|
1979
1966
|
let response;
|
|
1980
|
-
|
|
1981
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1968
|
switch (errorCode) {
|
|
1983
1969
|
case "BadRequestException":
|
|
1984
1970
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2006,10 +1992,12 @@ const deserializeAws_restJson1CreateChannelModeratorCommandError = async (output
|
|
|
2006
1992
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2007
1993
|
default:
|
|
2008
1994
|
const parsedBody = parsedOutput.body;
|
|
1995
|
+
const $metadata = deserializeMetadata(output);
|
|
1996
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2009
1997
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2010
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1998
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2011
1999
|
$fault: "client",
|
|
2012
|
-
$metadata
|
|
2000
|
+
$metadata,
|
|
2013
2001
|
});
|
|
2014
2002
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2015
2003
|
}
|
|
@@ -2031,8 +2019,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2031
2019
|
body: await parseBody(output.body, context),
|
|
2032
2020
|
};
|
|
2033
2021
|
let response;
|
|
2034
|
-
|
|
2035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
2023
|
switch (errorCode) {
|
|
2037
2024
|
case "BadRequestException":
|
|
2038
2025
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2054,10 +2041,12 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2054
2041
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2055
2042
|
default:
|
|
2056
2043
|
const parsedBody = parsedOutput.body;
|
|
2044
|
+
const $metadata = deserializeMetadata(output);
|
|
2045
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2057
2046
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2047
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2059
2048
|
$fault: "client",
|
|
2060
|
-
$metadata
|
|
2049
|
+
$metadata,
|
|
2061
2050
|
});
|
|
2062
2051
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2063
2052
|
}
|
|
@@ -2079,8 +2068,7 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
2079
2068
|
body: await parseBody(output.body, context),
|
|
2080
2069
|
};
|
|
2081
2070
|
let response;
|
|
2082
|
-
|
|
2083
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
2072
|
switch (errorCode) {
|
|
2085
2073
|
case "BadRequestException":
|
|
2086
2074
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2102,10 +2090,12 @@ const deserializeAws_restJson1DeleteChannelBanCommandError = async (output, cont
|
|
|
2102
2090
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2103
2091
|
default:
|
|
2104
2092
|
const parsedBody = parsedOutput.body;
|
|
2093
|
+
const $metadata = deserializeMetadata(output);
|
|
2094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2105
2095
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2106
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2107
2097
|
$fault: "client",
|
|
2108
|
-
$metadata
|
|
2098
|
+
$metadata,
|
|
2109
2099
|
});
|
|
2110
2100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2111
2101
|
}
|
|
@@ -2127,8 +2117,7 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
|
|
|
2127
2117
|
body: await parseBody(output.body, context),
|
|
2128
2118
|
};
|
|
2129
2119
|
let response;
|
|
2130
|
-
|
|
2131
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
2121
|
switch (errorCode) {
|
|
2133
2122
|
case "BadRequestException":
|
|
2134
2123
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2153,10 +2142,12 @@ const deserializeAws_restJson1DeleteChannelFlowCommandError = async (output, con
|
|
|
2153
2142
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2154
2143
|
default:
|
|
2155
2144
|
const parsedBody = parsedOutput.body;
|
|
2145
|
+
const $metadata = deserializeMetadata(output);
|
|
2146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2156
2147
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2158
2149
|
$fault: "client",
|
|
2159
|
-
$metadata
|
|
2150
|
+
$metadata,
|
|
2160
2151
|
});
|
|
2161
2152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2162
2153
|
}
|
|
@@ -2178,8 +2169,7 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
2178
2169
|
body: await parseBody(output.body, context),
|
|
2179
2170
|
};
|
|
2180
2171
|
let response;
|
|
2181
|
-
|
|
2182
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
2173
|
switch (errorCode) {
|
|
2184
2174
|
case "BadRequestException":
|
|
2185
2175
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2204,10 +2194,12 @@ const deserializeAws_restJson1DeleteChannelMembershipCommandError = async (outpu
|
|
|
2204
2194
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2205
2195
|
default:
|
|
2206
2196
|
const parsedBody = parsedOutput.body;
|
|
2197
|
+
const $metadata = deserializeMetadata(output);
|
|
2198
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2207
2199
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2200
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2209
2201
|
$fault: "client",
|
|
2210
|
-
$metadata
|
|
2202
|
+
$metadata,
|
|
2211
2203
|
});
|
|
2212
2204
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2213
2205
|
}
|
|
@@ -2229,8 +2221,7 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
2229
2221
|
body: await parseBody(output.body, context),
|
|
2230
2222
|
};
|
|
2231
2223
|
let response;
|
|
2232
|
-
|
|
2233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
2225
|
switch (errorCode) {
|
|
2235
2226
|
case "BadRequestException":
|
|
2236
2227
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2252,10 +2243,12 @@ const deserializeAws_restJson1DeleteChannelMessageCommandError = async (output,
|
|
|
2252
2243
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2253
2244
|
default:
|
|
2254
2245
|
const parsedBody = parsedOutput.body;
|
|
2246
|
+
const $metadata = deserializeMetadata(output);
|
|
2247
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2255
2248
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2249
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2257
2250
|
$fault: "client",
|
|
2258
|
-
$metadata
|
|
2251
|
+
$metadata,
|
|
2259
2252
|
});
|
|
2260
2253
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2261
2254
|
}
|
|
@@ -2277,8 +2270,7 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
2277
2270
|
body: await parseBody(output.body, context),
|
|
2278
2271
|
};
|
|
2279
2272
|
let response;
|
|
2280
|
-
|
|
2281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2274
|
switch (errorCode) {
|
|
2283
2275
|
case "BadRequestException":
|
|
2284
2276
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2300,10 +2292,12 @@ const deserializeAws_restJson1DeleteChannelModeratorCommandError = async (output
|
|
|
2300
2292
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2301
2293
|
default:
|
|
2302
2294
|
const parsedBody = parsedOutput.body;
|
|
2295
|
+
const $metadata = deserializeMetadata(output);
|
|
2296
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2303
2297
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2298
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2305
2299
|
$fault: "client",
|
|
2306
|
-
$metadata
|
|
2300
|
+
$metadata,
|
|
2307
2301
|
});
|
|
2308
2302
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2309
2303
|
}
|
|
@@ -2329,8 +2323,7 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2329
2323
|
body: await parseBody(output.body, context),
|
|
2330
2324
|
};
|
|
2331
2325
|
let response;
|
|
2332
|
-
|
|
2333
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
2327
|
switch (errorCode) {
|
|
2335
2328
|
case "BadRequestException":
|
|
2336
2329
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2352,10 +2345,12 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
2352
2345
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2353
2346
|
default:
|
|
2354
2347
|
const parsedBody = parsedOutput.body;
|
|
2348
|
+
const $metadata = deserializeMetadata(output);
|
|
2349
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2355
2350
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2356
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2357
2352
|
$fault: "client",
|
|
2358
|
-
$metadata
|
|
2353
|
+
$metadata,
|
|
2359
2354
|
});
|
|
2360
2355
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2361
2356
|
}
|
|
@@ -2381,8 +2376,7 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
2381
2376
|
body: await parseBody(output.body, context),
|
|
2382
2377
|
};
|
|
2383
2378
|
let response;
|
|
2384
|
-
|
|
2385
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
2380
|
switch (errorCode) {
|
|
2387
2381
|
case "BadRequestException":
|
|
2388
2382
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2407,10 +2401,12 @@ const deserializeAws_restJson1DescribeChannelBanCommandError = async (output, co
|
|
|
2407
2401
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2408
2402
|
default:
|
|
2409
2403
|
const parsedBody = parsedOutput.body;
|
|
2404
|
+
const $metadata = deserializeMetadata(output);
|
|
2405
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2410
2406
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2411
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2412
2408
|
$fault: "client",
|
|
2413
|
-
$metadata
|
|
2409
|
+
$metadata,
|
|
2414
2410
|
});
|
|
2415
2411
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2416
2412
|
}
|
|
@@ -2436,8 +2432,7 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
|
|
|
2436
2432
|
body: await parseBody(output.body, context),
|
|
2437
2433
|
};
|
|
2438
2434
|
let response;
|
|
2439
|
-
|
|
2440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2436
|
switch (errorCode) {
|
|
2442
2437
|
case "BadRequestException":
|
|
2443
2438
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2459,10 +2454,12 @@ const deserializeAws_restJson1DescribeChannelFlowCommandError = async (output, c
|
|
|
2459
2454
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2460
2455
|
default:
|
|
2461
2456
|
const parsedBody = parsedOutput.body;
|
|
2457
|
+
const $metadata = deserializeMetadata(output);
|
|
2458
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2462
2459
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2460
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2464
2461
|
$fault: "client",
|
|
2465
|
-
$metadata
|
|
2462
|
+
$metadata,
|
|
2466
2463
|
});
|
|
2467
2464
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2468
2465
|
}
|
|
@@ -2488,8 +2485,7 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
2488
2485
|
body: await parseBody(output.body, context),
|
|
2489
2486
|
};
|
|
2490
2487
|
let response;
|
|
2491
|
-
|
|
2492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
2489
|
switch (errorCode) {
|
|
2494
2490
|
case "BadRequestException":
|
|
2495
2491
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2514,10 +2510,12 @@ const deserializeAws_restJson1DescribeChannelMembershipCommandError = async (out
|
|
|
2514
2510
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2515
2511
|
default:
|
|
2516
2512
|
const parsedBody = parsedOutput.body;
|
|
2513
|
+
const $metadata = deserializeMetadata(output);
|
|
2514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2517
2515
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2519
2517
|
$fault: "client",
|
|
2520
|
-
$metadata
|
|
2518
|
+
$metadata,
|
|
2521
2519
|
});
|
|
2522
2520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2523
2521
|
}
|
|
@@ -2543,8 +2541,7 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2543
2541
|
body: await parseBody(output.body, context),
|
|
2544
2542
|
};
|
|
2545
2543
|
let response;
|
|
2546
|
-
|
|
2547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2548
2545
|
switch (errorCode) {
|
|
2549
2546
|
case "BadRequestException":
|
|
2550
2547
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2566,10 +2563,12 @@ const deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand
|
|
|
2566
2563
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2567
2564
|
default:
|
|
2568
2565
|
const parsedBody = parsedOutput.body;
|
|
2566
|
+
const $metadata = deserializeMetadata(output);
|
|
2567
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2569
2568
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2570
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2569
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2571
2570
|
$fault: "client",
|
|
2572
|
-
$metadata
|
|
2571
|
+
$metadata,
|
|
2573
2572
|
});
|
|
2574
2573
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2575
2574
|
}
|
|
@@ -2595,8 +2594,7 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
2595
2594
|
body: await parseBody(output.body, context),
|
|
2596
2595
|
};
|
|
2597
2596
|
let response;
|
|
2598
|
-
|
|
2599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
2598
|
switch (errorCode) {
|
|
2601
2599
|
case "BadRequestException":
|
|
2602
2600
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2618,10 +2616,12 @@ const deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandEr
|
|
|
2618
2616
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2619
2617
|
default:
|
|
2620
2618
|
const parsedBody = parsedOutput.body;
|
|
2619
|
+
const $metadata = deserializeMetadata(output);
|
|
2620
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2621
2621
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2623
2623
|
$fault: "client",
|
|
2624
|
-
$metadata
|
|
2624
|
+
$metadata,
|
|
2625
2625
|
});
|
|
2626
2626
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2627
2627
|
}
|
|
@@ -2647,8 +2647,7 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
2647
2647
|
body: await parseBody(output.body, context),
|
|
2648
2648
|
};
|
|
2649
2649
|
let response;
|
|
2650
|
-
|
|
2651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
2651
|
switch (errorCode) {
|
|
2653
2652
|
case "BadRequestException":
|
|
2654
2653
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2673,10 +2672,12 @@ const deserializeAws_restJson1DescribeChannelModeratorCommandError = async (outp
|
|
|
2673
2672
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2674
2673
|
default:
|
|
2675
2674
|
const parsedBody = parsedOutput.body;
|
|
2675
|
+
const $metadata = deserializeMetadata(output);
|
|
2676
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2676
2677
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2677
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2678
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2678
2679
|
$fault: "client",
|
|
2679
|
-
$metadata
|
|
2680
|
+
$metadata,
|
|
2680
2681
|
});
|
|
2681
2682
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2682
2683
|
}
|
|
@@ -2698,8 +2699,7 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
|
|
|
2698
2699
|
body: await parseBody(output.body, context),
|
|
2699
2700
|
};
|
|
2700
2701
|
let response;
|
|
2701
|
-
|
|
2702
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2703
2703
|
switch (errorCode) {
|
|
2704
2704
|
case "BadRequestException":
|
|
2705
2705
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2727,10 +2727,12 @@ const deserializeAws_restJson1DisassociateChannelFlowCommandError = async (outpu
|
|
|
2727
2727
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2728
2728
|
default:
|
|
2729
2729
|
const parsedBody = parsedOutput.body;
|
|
2730
|
+
const $metadata = deserializeMetadata(output);
|
|
2731
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2730
2732
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2731
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2733
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2732
2734
|
$fault: "client",
|
|
2733
|
-
$metadata
|
|
2735
|
+
$metadata,
|
|
2734
2736
|
});
|
|
2735
2737
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2736
2738
|
}
|
|
@@ -2764,8 +2766,7 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
|
|
|
2764
2766
|
body: await parseBody(output.body, context),
|
|
2765
2767
|
};
|
|
2766
2768
|
let response;
|
|
2767
|
-
|
|
2768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
2770
|
switch (errorCode) {
|
|
2770
2771
|
case "BadRequestException":
|
|
2771
2772
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2787,10 +2788,12 @@ const deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = asyn
|
|
|
2787
2788
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2788
2789
|
default:
|
|
2789
2790
|
const parsedBody = parsedOutput.body;
|
|
2791
|
+
const $metadata = deserializeMetadata(output);
|
|
2792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2790
2793
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2791
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2792
2795
|
$fault: "client",
|
|
2793
|
-
$metadata
|
|
2796
|
+
$metadata,
|
|
2794
2797
|
});
|
|
2795
2798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2796
2799
|
}
|
|
@@ -2816,8 +2819,7 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
2816
2819
|
body: await parseBody(output.body, context),
|
|
2817
2820
|
};
|
|
2818
2821
|
let response;
|
|
2819
|
-
|
|
2820
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
2823
|
switch (errorCode) {
|
|
2822
2824
|
case "BadRequestException":
|
|
2823
2825
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2842,10 +2844,12 @@ const deserializeAws_restJson1GetChannelMessageCommandError = async (output, con
|
|
|
2842
2844
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2843
2845
|
default:
|
|
2844
2846
|
const parsedBody = parsedOutput.body;
|
|
2847
|
+
const $metadata = deserializeMetadata(output);
|
|
2848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2845
2849
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2846
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2847
2851
|
$fault: "client",
|
|
2848
|
-
$metadata
|
|
2852
|
+
$metadata,
|
|
2849
2853
|
});
|
|
2850
2854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2851
2855
|
}
|
|
@@ -2871,8 +2875,7 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
|
|
|
2871
2875
|
body: await parseBody(output.body, context),
|
|
2872
2876
|
};
|
|
2873
2877
|
let response;
|
|
2874
|
-
|
|
2875
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2876
2879
|
switch (errorCode) {
|
|
2877
2880
|
case "BadRequestException":
|
|
2878
2881
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -2894,10 +2897,12 @@ const deserializeAws_restJson1GetChannelMessageStatusCommandError = async (outpu
|
|
|
2894
2897
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2895
2898
|
default:
|
|
2896
2899
|
const parsedBody = parsedOutput.body;
|
|
2900
|
+
const $metadata = deserializeMetadata(output);
|
|
2901
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2897
2902
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2898
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2903
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2899
2904
|
$fault: "client",
|
|
2900
|
-
$metadata
|
|
2905
|
+
$metadata,
|
|
2901
2906
|
});
|
|
2902
2907
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2903
2908
|
}
|
|
@@ -2923,8 +2928,7 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2923
2928
|
body: await parseBody(output.body, context),
|
|
2924
2929
|
};
|
|
2925
2930
|
let response;
|
|
2926
|
-
|
|
2927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2931
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2928
2932
|
switch (errorCode) {
|
|
2929
2933
|
case "ForbiddenException":
|
|
2930
2934
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
@@ -2943,10 +2947,12 @@ const deserializeAws_restJson1GetMessagingSessionEndpointCommandError = async (o
|
|
|
2943
2947
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
2944
2948
|
default:
|
|
2945
2949
|
const parsedBody = parsedOutput.body;
|
|
2950
|
+
const $metadata = deserializeMetadata(output);
|
|
2951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2946
2952
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
2947
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2953
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2948
2954
|
$fault: "client",
|
|
2949
|
-
$metadata
|
|
2955
|
+
$metadata,
|
|
2950
2956
|
});
|
|
2951
2957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2952
2958
|
}
|
|
@@ -2980,8 +2986,7 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
2980
2986
|
body: await parseBody(output.body, context),
|
|
2981
2987
|
};
|
|
2982
2988
|
let response;
|
|
2983
|
-
|
|
2984
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
2990
|
switch (errorCode) {
|
|
2986
2991
|
case "BadRequestException":
|
|
2987
2992
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3003,10 +3008,12 @@ const deserializeAws_restJson1ListChannelBansCommandError = async (output, conte
|
|
|
3003
3008
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3004
3009
|
default:
|
|
3005
3010
|
const parsedBody = parsedOutput.body;
|
|
3011
|
+
const $metadata = deserializeMetadata(output);
|
|
3012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3006
3013
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3008
3015
|
$fault: "client",
|
|
3009
|
-
$metadata
|
|
3016
|
+
$metadata,
|
|
3010
3017
|
});
|
|
3011
3018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3012
3019
|
}
|
|
@@ -3036,8 +3043,7 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
|
|
|
3036
3043
|
body: await parseBody(output.body, context),
|
|
3037
3044
|
};
|
|
3038
3045
|
let response;
|
|
3039
|
-
|
|
3040
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3046
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3041
3047
|
switch (errorCode) {
|
|
3042
3048
|
case "BadRequestException":
|
|
3043
3049
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3059,10 +3065,12 @@ const deserializeAws_restJson1ListChannelFlowsCommandError = async (output, cont
|
|
|
3059
3065
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3060
3066
|
default:
|
|
3061
3067
|
const parsedBody = parsedOutput.body;
|
|
3068
|
+
const $metadata = deserializeMetadata(output);
|
|
3069
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3062
3070
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3064
3072
|
$fault: "client",
|
|
3065
|
-
$metadata
|
|
3073
|
+
$metadata,
|
|
3066
3074
|
});
|
|
3067
3075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3068
3076
|
}
|
|
@@ -3096,8 +3104,7 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
3096
3104
|
body: await parseBody(output.body, context),
|
|
3097
3105
|
};
|
|
3098
3106
|
let response;
|
|
3099
|
-
|
|
3100
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3101
3108
|
switch (errorCode) {
|
|
3102
3109
|
case "BadRequestException":
|
|
3103
3110
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3119,10 +3126,12 @@ const deserializeAws_restJson1ListChannelMembershipsCommandError = async (output
|
|
|
3119
3126
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3120
3127
|
default:
|
|
3121
3128
|
const parsedBody = parsedOutput.body;
|
|
3129
|
+
const $metadata = deserializeMetadata(output);
|
|
3130
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3122
3131
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3123
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3132
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3124
3133
|
$fault: "client",
|
|
3125
|
-
$metadata
|
|
3134
|
+
$metadata,
|
|
3126
3135
|
});
|
|
3127
3136
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3128
3137
|
}
|
|
@@ -3152,8 +3161,7 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
3152
3161
|
body: await parseBody(output.body, context),
|
|
3153
3162
|
};
|
|
3154
3163
|
let response;
|
|
3155
|
-
|
|
3156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3157
3165
|
switch (errorCode) {
|
|
3158
3166
|
case "BadRequestException":
|
|
3159
3167
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3175,10 +3183,12 @@ const deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandErr
|
|
|
3175
3183
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3176
3184
|
default:
|
|
3177
3185
|
const parsedBody = parsedOutput.body;
|
|
3186
|
+
const $metadata = deserializeMetadata(output);
|
|
3187
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3178
3188
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3189
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3180
3190
|
$fault: "client",
|
|
3181
|
-
$metadata
|
|
3191
|
+
$metadata,
|
|
3182
3192
|
});
|
|
3183
3193
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3184
3194
|
}
|
|
@@ -3212,8 +3222,7 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
3212
3222
|
body: await parseBody(output.body, context),
|
|
3213
3223
|
};
|
|
3214
3224
|
let response;
|
|
3215
|
-
|
|
3216
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3217
3226
|
switch (errorCode) {
|
|
3218
3227
|
case "BadRequestException":
|
|
3219
3228
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3235,10 +3244,12 @@ const deserializeAws_restJson1ListChannelMessagesCommandError = async (output, c
|
|
|
3235
3244
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3236
3245
|
default:
|
|
3237
3246
|
const parsedBody = parsedOutput.body;
|
|
3247
|
+
const $metadata = deserializeMetadata(output);
|
|
3248
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3238
3249
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3250
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3240
3251
|
$fault: "client",
|
|
3241
|
-
$metadata
|
|
3252
|
+
$metadata,
|
|
3242
3253
|
});
|
|
3243
3254
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3244
3255
|
}
|
|
@@ -3272,8 +3283,7 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
3272
3283
|
body: await parseBody(output.body, context),
|
|
3273
3284
|
};
|
|
3274
3285
|
let response;
|
|
3275
|
-
|
|
3276
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3277
3287
|
switch (errorCode) {
|
|
3278
3288
|
case "BadRequestException":
|
|
3279
3289
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3295,10 +3305,12 @@ const deserializeAws_restJson1ListChannelModeratorsCommandError = async (output,
|
|
|
3295
3305
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3296
3306
|
default:
|
|
3297
3307
|
const parsedBody = parsedOutput.body;
|
|
3308
|
+
const $metadata = deserializeMetadata(output);
|
|
3309
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3298
3310
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3311
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3300
3312
|
$fault: "client",
|
|
3301
|
-
$metadata
|
|
3313
|
+
$metadata,
|
|
3302
3314
|
});
|
|
3303
3315
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3304
3316
|
}
|
|
@@ -3328,8 +3340,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
3328
3340
|
body: await parseBody(output.body, context),
|
|
3329
3341
|
};
|
|
3330
3342
|
let response;
|
|
3331
|
-
|
|
3332
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3333
3344
|
switch (errorCode) {
|
|
3334
3345
|
case "BadRequestException":
|
|
3335
3346
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3351,10 +3362,12 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
3351
3362
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3352
3363
|
default:
|
|
3353
3364
|
const parsedBody = parsedOutput.body;
|
|
3365
|
+
const $metadata = deserializeMetadata(output);
|
|
3366
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3354
3367
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3355
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3368
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3356
3369
|
$fault: "client",
|
|
3357
|
-
$metadata
|
|
3370
|
+
$metadata,
|
|
3358
3371
|
});
|
|
3359
3372
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3360
3373
|
}
|
|
@@ -3384,8 +3397,7 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
|
|
|
3384
3397
|
body: await parseBody(output.body, context),
|
|
3385
3398
|
};
|
|
3386
3399
|
let response;
|
|
3387
|
-
|
|
3388
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3389
3401
|
switch (errorCode) {
|
|
3390
3402
|
case "BadRequestException":
|
|
3391
3403
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3407,10 +3419,12 @@ const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError
|
|
|
3407
3419
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3408
3420
|
default:
|
|
3409
3421
|
const parsedBody = parsedOutput.body;
|
|
3422
|
+
const $metadata = deserializeMetadata(output);
|
|
3423
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3410
3424
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3411
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3425
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3412
3426
|
$fault: "client",
|
|
3413
|
-
$metadata
|
|
3427
|
+
$metadata,
|
|
3414
3428
|
});
|
|
3415
3429
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3416
3430
|
}
|
|
@@ -3440,8 +3454,7 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
3440
3454
|
body: await parseBody(output.body, context),
|
|
3441
3455
|
};
|
|
3442
3456
|
let response;
|
|
3443
|
-
|
|
3444
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3445
3458
|
switch (errorCode) {
|
|
3446
3459
|
case "BadRequestException":
|
|
3447
3460
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3463,10 +3476,12 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
3463
3476
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3464
3477
|
default:
|
|
3465
3478
|
const parsedBody = parsedOutput.body;
|
|
3479
|
+
const $metadata = deserializeMetadata(output);
|
|
3480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3466
3481
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3467
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3468
3483
|
$fault: "client",
|
|
3469
|
-
$metadata
|
|
3484
|
+
$metadata,
|
|
3470
3485
|
});
|
|
3471
3486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3472
3487
|
}
|
|
@@ -3492,8 +3507,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3492
3507
|
body: await parseBody(output.body, context),
|
|
3493
3508
|
};
|
|
3494
3509
|
let response;
|
|
3495
|
-
|
|
3496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3510
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3497
3511
|
switch (errorCode) {
|
|
3498
3512
|
case "BadRequestException":
|
|
3499
3513
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3515,10 +3529,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3515
3529
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3516
3530
|
default:
|
|
3517
3531
|
const parsedBody = parsedOutput.body;
|
|
3532
|
+
const $metadata = deserializeMetadata(output);
|
|
3533
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3518
3534
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3535
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3520
3536
|
$fault: "client",
|
|
3521
|
-
$metadata
|
|
3537
|
+
$metadata,
|
|
3522
3538
|
});
|
|
3523
3539
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3524
3540
|
}
|
|
@@ -3552,8 +3568,7 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3552
3568
|
body: await parseBody(output.body, context),
|
|
3553
3569
|
};
|
|
3554
3570
|
let response;
|
|
3555
|
-
|
|
3556
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3557
3572
|
switch (errorCode) {
|
|
3558
3573
|
case "BadRequestException":
|
|
3559
3574
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3578,10 +3593,12 @@ const deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = asyn
|
|
|
3578
3593
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3579
3594
|
default:
|
|
3580
3595
|
const parsedBody = parsedOutput.body;
|
|
3596
|
+
const $metadata = deserializeMetadata(output);
|
|
3597
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3581
3598
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3583
3600
|
$fault: "client",
|
|
3584
|
-
$metadata
|
|
3601
|
+
$metadata,
|
|
3585
3602
|
});
|
|
3586
3603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3587
3604
|
}
|
|
@@ -3611,8 +3628,7 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
3611
3628
|
body: await parseBody(output.body, context),
|
|
3612
3629
|
};
|
|
3613
3630
|
let response;
|
|
3614
|
-
|
|
3615
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3616
3632
|
switch (errorCode) {
|
|
3617
3633
|
case "BadRequestException":
|
|
3618
3634
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3637,10 +3653,12 @@ const deserializeAws_restJson1RedactChannelMessageCommandError = async (output,
|
|
|
3637
3653
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3638
3654
|
default:
|
|
3639
3655
|
const parsedBody = parsedOutput.body;
|
|
3656
|
+
const $metadata = deserializeMetadata(output);
|
|
3657
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3640
3658
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3641
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3659
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3642
3660
|
$fault: "client",
|
|
3643
|
-
$metadata
|
|
3661
|
+
$metadata,
|
|
3644
3662
|
});
|
|
3645
3663
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3646
3664
|
}
|
|
@@ -3670,8 +3688,7 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
|
|
|
3670
3688
|
body: await parseBody(output.body, context),
|
|
3671
3689
|
};
|
|
3672
3690
|
let response;
|
|
3673
|
-
|
|
3674
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3675
3692
|
switch (errorCode) {
|
|
3676
3693
|
case "BadRequestException":
|
|
3677
3694
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3693,10 +3710,12 @@ const deserializeAws_restJson1SearchChannelsCommandError = async (output, contex
|
|
|
3693
3710
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3694
3711
|
default:
|
|
3695
3712
|
const parsedBody = parsedOutput.body;
|
|
3713
|
+
const $metadata = deserializeMetadata(output);
|
|
3714
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3696
3715
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3716
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3698
3717
|
$fault: "client",
|
|
3699
|
-
$metadata
|
|
3718
|
+
$metadata,
|
|
3700
3719
|
});
|
|
3701
3720
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3702
3721
|
}
|
|
@@ -3730,8 +3749,7 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
3730
3749
|
body: await parseBody(output.body, context),
|
|
3731
3750
|
};
|
|
3732
3751
|
let response;
|
|
3733
|
-
|
|
3734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3752
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3735
3753
|
switch (errorCode) {
|
|
3736
3754
|
case "BadRequestException":
|
|
3737
3755
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3756,10 +3774,12 @@ const deserializeAws_restJson1SendChannelMessageCommandError = async (output, co
|
|
|
3756
3774
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3757
3775
|
default:
|
|
3758
3776
|
const parsedBody = parsedOutput.body;
|
|
3777
|
+
const $metadata = deserializeMetadata(output);
|
|
3778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3759
3779
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3760
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3761
3781
|
$fault: "client",
|
|
3762
|
-
$metadata
|
|
3782
|
+
$metadata,
|
|
3763
3783
|
});
|
|
3764
3784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3765
3785
|
}
|
|
@@ -3781,8 +3801,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3781
3801
|
body: await parseBody(output.body, context),
|
|
3782
3802
|
};
|
|
3783
3803
|
let response;
|
|
3784
|
-
|
|
3785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3786
3805
|
switch (errorCode) {
|
|
3787
3806
|
case "BadRequestException":
|
|
3788
3807
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3807,10 +3826,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3807
3826
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3808
3827
|
default:
|
|
3809
3828
|
const parsedBody = parsedOutput.body;
|
|
3829
|
+
const $metadata = deserializeMetadata(output);
|
|
3830
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3810
3831
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3832
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3812
3833
|
$fault: "client",
|
|
3813
|
-
$metadata
|
|
3834
|
+
$metadata,
|
|
3814
3835
|
});
|
|
3815
3836
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3816
3837
|
}
|
|
@@ -3832,8 +3853,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3832
3853
|
body: await parseBody(output.body, context),
|
|
3833
3854
|
};
|
|
3834
3855
|
let response;
|
|
3835
|
-
|
|
3836
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3856
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3837
3857
|
switch (errorCode) {
|
|
3838
3858
|
case "BadRequestException":
|
|
3839
3859
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3855,10 +3875,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3855
3875
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3856
3876
|
default:
|
|
3857
3877
|
const parsedBody = parsedOutput.body;
|
|
3878
|
+
const $metadata = deserializeMetadata(output);
|
|
3879
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3858
3880
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3860
3882
|
$fault: "client",
|
|
3861
|
-
$metadata
|
|
3883
|
+
$metadata,
|
|
3862
3884
|
});
|
|
3863
3885
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3864
3886
|
}
|
|
@@ -3884,8 +3906,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3884
3906
|
body: await parseBody(output.body, context),
|
|
3885
3907
|
};
|
|
3886
3908
|
let response;
|
|
3887
|
-
|
|
3888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3910
|
switch (errorCode) {
|
|
3890
3911
|
case "BadRequestException":
|
|
3891
3912
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3910,10 +3931,12 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
3910
3931
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3911
3932
|
default:
|
|
3912
3933
|
const parsedBody = parsedOutput.body;
|
|
3934
|
+
const $metadata = deserializeMetadata(output);
|
|
3935
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3913
3936
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3914
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3937
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3915
3938
|
$fault: "client",
|
|
3916
|
-
$metadata
|
|
3939
|
+
$metadata,
|
|
3917
3940
|
});
|
|
3918
3941
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3919
3942
|
}
|
|
@@ -3939,8 +3962,7 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
|
|
|
3939
3962
|
body: await parseBody(output.body, context),
|
|
3940
3963
|
};
|
|
3941
3964
|
let response;
|
|
3942
|
-
|
|
3943
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3944
3966
|
switch (errorCode) {
|
|
3945
3967
|
case "BadRequestException":
|
|
3946
3968
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -3965,10 +3987,12 @@ const deserializeAws_restJson1UpdateChannelFlowCommandError = async (output, con
|
|
|
3965
3987
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3966
3988
|
default:
|
|
3967
3989
|
const parsedBody = parsedOutput.body;
|
|
3990
|
+
const $metadata = deserializeMetadata(output);
|
|
3991
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3968
3992
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
3969
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3993
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3970
3994
|
$fault: "client",
|
|
3971
|
-
$metadata
|
|
3995
|
+
$metadata,
|
|
3972
3996
|
});
|
|
3973
3997
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3974
3998
|
}
|
|
@@ -4002,8 +4026,7 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
4002
4026
|
body: await parseBody(output.body, context),
|
|
4003
4027
|
};
|
|
4004
4028
|
let response;
|
|
4005
|
-
|
|
4006
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4029
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4007
4030
|
switch (errorCode) {
|
|
4008
4031
|
case "BadRequestException":
|
|
4009
4032
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -4028,10 +4051,12 @@ const deserializeAws_restJson1UpdateChannelMessageCommandError = async (output,
|
|
|
4028
4051
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
4029
4052
|
default:
|
|
4030
4053
|
const parsedBody = parsedOutput.body;
|
|
4054
|
+
const $metadata = deserializeMetadata(output);
|
|
4055
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4031
4056
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
4032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4057
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4033
4058
|
$fault: "client",
|
|
4034
|
-
$metadata
|
|
4059
|
+
$metadata,
|
|
4035
4060
|
});
|
|
4036
4061
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4037
4062
|
}
|
|
@@ -4057,8 +4082,7 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
4057
4082
|
body: await parseBody(output.body, context),
|
|
4058
4083
|
};
|
|
4059
4084
|
let response;
|
|
4060
|
-
|
|
4061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4085
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4062
4086
|
switch (errorCode) {
|
|
4063
4087
|
case "BadRequestException":
|
|
4064
4088
|
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
@@ -4083,10 +4107,12 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommandError = async (outpu
|
|
|
4083
4107
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
4084
4108
|
default:
|
|
4085
4109
|
const parsedBody = parsedOutput.body;
|
|
4110
|
+
const $metadata = deserializeMetadata(output);
|
|
4111
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4086
4112
|
response = new ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException({
|
|
4087
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4113
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4088
4114
|
$fault: "client",
|
|
4089
|
-
$metadata
|
|
4115
|
+
$metadata,
|
|
4090
4116
|
});
|
|
4091
4117
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4092
4118
|
}
|
|
@@ -4238,23 +4264,20 @@ const serializeAws_restJson1ChannelMemberArns = (input, context) => {
|
|
|
4238
4264
|
};
|
|
4239
4265
|
const serializeAws_restJson1ChannelMembershipPreferences = (input, context) => {
|
|
4240
4266
|
return {
|
|
4241
|
-
...(input.PushNotifications
|
|
4242
|
-
input.PushNotifications !== null && {
|
|
4267
|
+
...(input.PushNotifications != null && {
|
|
4243
4268
|
PushNotifications: serializeAws_restJson1PushNotificationPreferences(input.PushNotifications, context),
|
|
4244
4269
|
}),
|
|
4245
4270
|
};
|
|
4246
4271
|
};
|
|
4247
4272
|
const serializeAws_restJson1ChannelMessageCallback = (input, context) => {
|
|
4248
4273
|
return {
|
|
4249
|
-
...(input.Content
|
|
4250
|
-
...(input.MessageAttributes
|
|
4251
|
-
input.MessageAttributes !== null && {
|
|
4274
|
+
...(input.Content != null && { Content: input.Content }),
|
|
4275
|
+
...(input.MessageAttributes != null && {
|
|
4252
4276
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
4253
4277
|
}),
|
|
4254
|
-
...(input.MessageId
|
|
4255
|
-
...(input.Metadata
|
|
4256
|
-
...(input.PushNotification
|
|
4257
|
-
input.PushNotification !== null && {
|
|
4278
|
+
...(input.MessageId != null && { MessageId: input.MessageId }),
|
|
4279
|
+
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
4280
|
+
...(input.PushNotification != null && {
|
|
4258
4281
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
4259
4282
|
}),
|
|
4260
4283
|
};
|
|
@@ -4271,9 +4294,8 @@ const serializeAws_restJson1ChannelModeratorArns = (input, context) => {
|
|
|
4271
4294
|
};
|
|
4272
4295
|
const serializeAws_restJson1LambdaConfiguration = (input, context) => {
|
|
4273
4296
|
return {
|
|
4274
|
-
...(input.InvocationType
|
|
4275
|
-
|
|
4276
|
-
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
4297
|
+
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
4298
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4277
4299
|
};
|
|
4278
4300
|
};
|
|
4279
4301
|
const serializeAws_restJson1MemberArns = (input, context) => {
|
|
@@ -4309,29 +4331,24 @@ const serializeAws_restJson1MessageAttributeStringValues = (input, context) => {
|
|
|
4309
4331
|
};
|
|
4310
4332
|
const serializeAws_restJson1MessageAttributeValue = (input, context) => {
|
|
4311
4333
|
return {
|
|
4312
|
-
...(input.StringValues
|
|
4313
|
-
input.StringValues !== null && {
|
|
4334
|
+
...(input.StringValues != null && {
|
|
4314
4335
|
StringValues: serializeAws_restJson1MessageAttributeStringValues(input.StringValues, context),
|
|
4315
4336
|
}),
|
|
4316
4337
|
};
|
|
4317
4338
|
};
|
|
4318
4339
|
const serializeAws_restJson1Processor = (input, context) => {
|
|
4319
4340
|
return {
|
|
4320
|
-
...(input.Configuration
|
|
4321
|
-
input.Configuration !== null && {
|
|
4341
|
+
...(input.Configuration != null && {
|
|
4322
4342
|
Configuration: serializeAws_restJson1ProcessorConfiguration(input.Configuration, context),
|
|
4323
4343
|
}),
|
|
4324
|
-
...(input.ExecutionOrder
|
|
4325
|
-
|
|
4326
|
-
...(input.
|
|
4327
|
-
input.FallbackAction !== null && { FallbackAction: input.FallbackAction }),
|
|
4328
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4344
|
+
...(input.ExecutionOrder != null && { ExecutionOrder: input.ExecutionOrder }),
|
|
4345
|
+
...(input.FallbackAction != null && { FallbackAction: input.FallbackAction }),
|
|
4346
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4329
4347
|
};
|
|
4330
4348
|
};
|
|
4331
4349
|
const serializeAws_restJson1ProcessorConfiguration = (input, context) => {
|
|
4332
4350
|
return {
|
|
4333
|
-
...(input.Lambda
|
|
4334
|
-
input.Lambda !== null && { Lambda: serializeAws_restJson1LambdaConfiguration(input.Lambda, context) }),
|
|
4351
|
+
...(input.Lambda != null && { Lambda: serializeAws_restJson1LambdaConfiguration(input.Lambda, context) }),
|
|
4335
4352
|
};
|
|
4336
4353
|
};
|
|
4337
4354
|
const serializeAws_restJson1ProcessorList = (input, context) => {
|
|
@@ -4346,24 +4363,22 @@ const serializeAws_restJson1ProcessorList = (input, context) => {
|
|
|
4346
4363
|
};
|
|
4347
4364
|
const serializeAws_restJson1PushNotificationConfiguration = (input, context) => {
|
|
4348
4365
|
return {
|
|
4349
|
-
...(input.Body
|
|
4350
|
-
...(input.Title
|
|
4351
|
-
...(input.Type
|
|
4366
|
+
...(input.Body != null && { Body: input.Body }),
|
|
4367
|
+
...(input.Title != null && { Title: input.Title }),
|
|
4368
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4352
4369
|
};
|
|
4353
4370
|
};
|
|
4354
4371
|
const serializeAws_restJson1PushNotificationPreferences = (input, context) => {
|
|
4355
4372
|
return {
|
|
4356
|
-
...(input.AllowNotifications
|
|
4357
|
-
|
|
4358
|
-
...(input.FilterRule !== undefined && input.FilterRule !== null && { FilterRule: input.FilterRule }),
|
|
4373
|
+
...(input.AllowNotifications != null && { AllowNotifications: input.AllowNotifications }),
|
|
4374
|
+
...(input.FilterRule != null && { FilterRule: input.FilterRule }),
|
|
4359
4375
|
};
|
|
4360
4376
|
};
|
|
4361
4377
|
const serializeAws_restJson1SearchField = (input, context) => {
|
|
4362
4378
|
return {
|
|
4363
|
-
...(input.Key
|
|
4364
|
-
...(input.Operator
|
|
4365
|
-
...(input.Values
|
|
4366
|
-
input.Values !== null && { Values: serializeAws_restJson1SearchFieldValues(input.Values, context) }),
|
|
4379
|
+
...(input.Key != null && { Key: input.Key }),
|
|
4380
|
+
...(input.Operator != null && { Operator: input.Operator }),
|
|
4381
|
+
...(input.Values != null && { Values: serializeAws_restJson1SearchFieldValues(input.Values, context) }),
|
|
4367
4382
|
};
|
|
4368
4383
|
};
|
|
4369
4384
|
const serializeAws_restJson1SearchFields = (input, context) => {
|
|
@@ -4388,8 +4403,8 @@ const serializeAws_restJson1SearchFieldValues = (input, context) => {
|
|
|
4388
4403
|
};
|
|
4389
4404
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
4390
4405
|
return {
|
|
4391
|
-
...(input.Key
|
|
4392
|
-
...(input.Value
|
|
4406
|
+
...(input.Key != null && { Key: input.Key }),
|
|
4407
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4393
4408
|
};
|
|
4394
4409
|
};
|
|
4395
4410
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -4414,7 +4429,7 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
4414
4429
|
};
|
|
4415
4430
|
const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, context) => {
|
|
4416
4431
|
return {
|
|
4417
|
-
ReadMarkerTimestamp: output.ReadMarkerTimestamp
|
|
4432
|
+
ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
|
|
4418
4433
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadMarkerTimestamp)))
|
|
4419
4434
|
: undefined,
|
|
4420
4435
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -4423,12 +4438,8 @@ const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, contex
|
|
|
4423
4438
|
const deserializeAws_restJson1BatchChannelMemberships = (output, context) => {
|
|
4424
4439
|
return {
|
|
4425
4440
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4426
|
-
InvitedBy: output.InvitedBy
|
|
4427
|
-
|
|
4428
|
-
: undefined,
|
|
4429
|
-
Members: output.Members !== undefined && output.Members !== null
|
|
4430
|
-
? deserializeAws_restJson1Members(output.Members, context)
|
|
4431
|
-
: undefined,
|
|
4441
|
+
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
4442
|
+
Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
|
|
4432
4443
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4433
4444
|
};
|
|
4434
4445
|
};
|
|
@@ -4454,16 +4465,14 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
4454
4465
|
return {
|
|
4455
4466
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4456
4467
|
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4457
|
-
CreatedBy: output.CreatedBy
|
|
4458
|
-
|
|
4459
|
-
: undefined,
|
|
4460
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4468
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
4469
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4461
4470
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4462
4471
|
: undefined,
|
|
4463
|
-
LastMessageTimestamp: output.LastMessageTimestamp
|
|
4472
|
+
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
4464
4473
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
|
|
4465
4474
|
: undefined,
|
|
4466
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
4475
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4467
4476
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4468
4477
|
: undefined,
|
|
4469
4478
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
@@ -4495,22 +4504,16 @@ const deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList = (output, co
|
|
|
4495
4504
|
const deserializeAws_restJson1ChannelBan = (output, context) => {
|
|
4496
4505
|
return {
|
|
4497
4506
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4498
|
-
CreatedBy: output.CreatedBy
|
|
4499
|
-
|
|
4500
|
-
: undefined,
|
|
4501
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4507
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
4508
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4502
4509
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4503
4510
|
: undefined,
|
|
4504
|
-
Member: output.Member
|
|
4505
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
4506
|
-
: undefined,
|
|
4511
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
4507
4512
|
};
|
|
4508
4513
|
};
|
|
4509
4514
|
const deserializeAws_restJson1ChannelBanSummary = (output, context) => {
|
|
4510
4515
|
return {
|
|
4511
|
-
Member: output.Member
|
|
4512
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
4513
|
-
: undefined,
|
|
4516
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
4514
4517
|
};
|
|
4515
4518
|
};
|
|
4516
4519
|
const deserializeAws_restJson1ChannelBanSummaryList = (output, context) => {
|
|
@@ -4527,25 +4530,21 @@ const deserializeAws_restJson1ChannelBanSummaryList = (output, context) => {
|
|
|
4527
4530
|
const deserializeAws_restJson1ChannelFlow = (output, context) => {
|
|
4528
4531
|
return {
|
|
4529
4532
|
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4530
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
4533
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4531
4534
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4532
4535
|
: undefined,
|
|
4533
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
4536
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4534
4537
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4535
4538
|
: undefined,
|
|
4536
4539
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4537
|
-
Processors: output.Processors
|
|
4538
|
-
? deserializeAws_restJson1ProcessorList(output.Processors, context)
|
|
4539
|
-
: undefined,
|
|
4540
|
+
Processors: output.Processors != null ? deserializeAws_restJson1ProcessorList(output.Processors, context) : undefined,
|
|
4540
4541
|
};
|
|
4541
4542
|
};
|
|
4542
4543
|
const deserializeAws_restJson1ChannelFlowSummary = (output, context) => {
|
|
4543
4544
|
return {
|
|
4544
4545
|
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4545
4546
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4546
|
-
Processors: output.Processors
|
|
4547
|
-
? deserializeAws_restJson1ProcessorList(output.Processors, context)
|
|
4548
|
-
: undefined,
|
|
4547
|
+
Processors: output.Processors != null ? deserializeAws_restJson1ProcessorList(output.Processors, context) : undefined,
|
|
4549
4548
|
};
|
|
4550
4549
|
};
|
|
4551
4550
|
const deserializeAws_restJson1ChannelFlowSummaryList = (output, context) => {
|
|
@@ -4562,27 +4561,23 @@ const deserializeAws_restJson1ChannelFlowSummaryList = (output, context) => {
|
|
|
4562
4561
|
const deserializeAws_restJson1ChannelMembership = (output, context) => {
|
|
4563
4562
|
return {
|
|
4564
4563
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4565
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
4564
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4566
4565
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4567
4566
|
: undefined,
|
|
4568
|
-
InvitedBy: output.InvitedBy
|
|
4569
|
-
|
|
4570
|
-
: undefined,
|
|
4571
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4567
|
+
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
4568
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4572
4569
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4573
4570
|
: undefined,
|
|
4574
|
-
Member: output.Member
|
|
4575
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
4576
|
-
: undefined,
|
|
4571
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
4577
4572
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4578
4573
|
};
|
|
4579
4574
|
};
|
|
4580
4575
|
const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
4581
4576
|
return {
|
|
4582
|
-
AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary
|
|
4577
|
+
AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary != null
|
|
4583
4578
|
? deserializeAws_restJson1AppInstanceUserMembershipSummary(output.AppInstanceUserMembershipSummary, context)
|
|
4584
4579
|
: undefined,
|
|
4585
|
-
ChannelSummary: output.ChannelSummary
|
|
4580
|
+
ChannelSummary: output.ChannelSummary != null
|
|
4586
4581
|
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
4587
4582
|
: undefined,
|
|
4588
4583
|
};
|
|
@@ -4600,16 +4595,14 @@ const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = (
|
|
|
4600
4595
|
};
|
|
4601
4596
|
const deserializeAws_restJson1ChannelMembershipPreferences = (output, context) => {
|
|
4602
4597
|
return {
|
|
4603
|
-
PushNotifications: output.PushNotifications
|
|
4598
|
+
PushNotifications: output.PushNotifications != null
|
|
4604
4599
|
? deserializeAws_restJson1PushNotificationPreferences(output.PushNotifications, context)
|
|
4605
4600
|
: undefined,
|
|
4606
4601
|
};
|
|
4607
4602
|
};
|
|
4608
4603
|
const deserializeAws_restJson1ChannelMembershipSummary = (output, context) => {
|
|
4609
4604
|
return {
|
|
4610
|
-
Member: output.Member
|
|
4611
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
4612
|
-
: undefined,
|
|
4605
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
4613
4606
|
};
|
|
4614
4607
|
};
|
|
4615
4608
|
const deserializeAws_restJson1ChannelMembershipSummaryList = (output, context) => {
|
|
@@ -4627,28 +4620,24 @@ const deserializeAws_restJson1ChannelMessage = (output, context) => {
|
|
|
4627
4620
|
return {
|
|
4628
4621
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4629
4622
|
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
4630
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
4623
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4631
4624
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4632
4625
|
: undefined,
|
|
4633
|
-
LastEditedTimestamp: output.LastEditedTimestamp
|
|
4626
|
+
LastEditedTimestamp: output.LastEditedTimestamp != null
|
|
4634
4627
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEditedTimestamp)))
|
|
4635
4628
|
: undefined,
|
|
4636
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
4629
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4637
4630
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4638
4631
|
: undefined,
|
|
4639
|
-
MessageAttributes: output.MessageAttributes
|
|
4632
|
+
MessageAttributes: output.MessageAttributes != null
|
|
4640
4633
|
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
4641
4634
|
: undefined,
|
|
4642
4635
|
MessageId: (0, smithy_client_1.expectString)(output.MessageId),
|
|
4643
4636
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4644
4637
|
Persistence: (0, smithy_client_1.expectString)(output.Persistence),
|
|
4645
4638
|
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4646
|
-
Sender: output.Sender
|
|
4647
|
-
|
|
4648
|
-
: undefined,
|
|
4649
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4650
|
-
? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context)
|
|
4651
|
-
: undefined,
|
|
4639
|
+
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
4640
|
+
Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4652
4641
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4653
4642
|
};
|
|
4654
4643
|
};
|
|
@@ -4661,27 +4650,23 @@ const deserializeAws_restJson1ChannelMessageStatusStructure = (output, context)
|
|
|
4661
4650
|
const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
|
|
4662
4651
|
return {
|
|
4663
4652
|
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
4664
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
4653
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4665
4654
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4666
4655
|
: undefined,
|
|
4667
|
-
LastEditedTimestamp: output.LastEditedTimestamp
|
|
4656
|
+
LastEditedTimestamp: output.LastEditedTimestamp != null
|
|
4668
4657
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEditedTimestamp)))
|
|
4669
4658
|
: undefined,
|
|
4670
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
4659
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4671
4660
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4672
4661
|
: undefined,
|
|
4673
|
-
MessageAttributes: output.MessageAttributes
|
|
4662
|
+
MessageAttributes: output.MessageAttributes != null
|
|
4674
4663
|
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
4675
4664
|
: undefined,
|
|
4676
4665
|
MessageId: (0, smithy_client_1.expectString)(output.MessageId),
|
|
4677
4666
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4678
4667
|
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4679
|
-
Sender: output.Sender
|
|
4680
|
-
|
|
4681
|
-
: undefined,
|
|
4682
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
4683
|
-
? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context)
|
|
4684
|
-
: undefined,
|
|
4668
|
+
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
4669
|
+
Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4685
4670
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4686
4671
|
};
|
|
4687
4672
|
};
|
|
@@ -4698,7 +4683,7 @@ const deserializeAws_restJson1ChannelMessageSummaryList = (output, context) => {
|
|
|
4698
4683
|
};
|
|
4699
4684
|
const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary = (output, context) => {
|
|
4700
4685
|
return {
|
|
4701
|
-
ChannelSummary: output.ChannelSummary
|
|
4686
|
+
ChannelSummary: output.ChannelSummary != null
|
|
4702
4687
|
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
4703
4688
|
: undefined,
|
|
4704
4689
|
};
|
|
@@ -4717,22 +4702,16 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = (ou
|
|
|
4717
4702
|
const deserializeAws_restJson1ChannelModerator = (output, context) => {
|
|
4718
4703
|
return {
|
|
4719
4704
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4720
|
-
CreatedBy: output.CreatedBy
|
|
4721
|
-
|
|
4722
|
-
: undefined,
|
|
4723
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4705
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
4706
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
4724
4707
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
4725
4708
|
: undefined,
|
|
4726
|
-
Moderator: output.Moderator
|
|
4727
|
-
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
4728
|
-
: undefined,
|
|
4709
|
+
Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
|
|
4729
4710
|
};
|
|
4730
4711
|
};
|
|
4731
4712
|
const deserializeAws_restJson1ChannelModeratorSummary = (output, context) => {
|
|
4732
4713
|
return {
|
|
4733
|
-
Moderator: output.Moderator
|
|
4734
|
-
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
4735
|
-
: undefined,
|
|
4714
|
+
Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
|
|
4736
4715
|
};
|
|
4737
4716
|
};
|
|
4738
4717
|
const deserializeAws_restJson1ChannelModeratorSummaryList = (output, context) => {
|
|
@@ -4749,7 +4728,7 @@ const deserializeAws_restJson1ChannelModeratorSummaryList = (output, context) =>
|
|
|
4749
4728
|
const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
4750
4729
|
return {
|
|
4751
4730
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4752
|
-
LastMessageTimestamp: output.LastMessageTimestamp
|
|
4731
|
+
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
4753
4732
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
|
|
4754
4733
|
: undefined,
|
|
4755
4734
|
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
@@ -4816,7 +4795,7 @@ const deserializeAws_restJson1MessageAttributeStringValues = (output, context) =
|
|
|
4816
4795
|
};
|
|
4817
4796
|
const deserializeAws_restJson1MessageAttributeValue = (output, context) => {
|
|
4818
4797
|
return {
|
|
4819
|
-
StringValues: output.StringValues
|
|
4798
|
+
StringValues: output.StringValues != null
|
|
4820
4799
|
? deserializeAws_restJson1MessageAttributeStringValues(output.StringValues, context)
|
|
4821
4800
|
: undefined,
|
|
4822
4801
|
};
|
|
@@ -4828,7 +4807,7 @@ const deserializeAws_restJson1MessagingSessionEndpoint = (output, context) => {
|
|
|
4828
4807
|
};
|
|
4829
4808
|
const deserializeAws_restJson1Processor = (output, context) => {
|
|
4830
4809
|
return {
|
|
4831
|
-
Configuration: output.Configuration
|
|
4810
|
+
Configuration: output.Configuration != null
|
|
4832
4811
|
? deserializeAws_restJson1ProcessorConfiguration(output.Configuration, context)
|
|
4833
4812
|
: undefined,
|
|
4834
4813
|
ExecutionOrder: (0, smithy_client_1.expectInt32)(output.ExecutionOrder),
|
|
@@ -4838,9 +4817,7 @@ const deserializeAws_restJson1Processor = (output, context) => {
|
|
|
4838
4817
|
};
|
|
4839
4818
|
const deserializeAws_restJson1ProcessorConfiguration = (output, context) => {
|
|
4840
4819
|
return {
|
|
4841
|
-
Lambda: output.Lambda
|
|
4842
|
-
? deserializeAws_restJson1LambdaConfiguration(output.Lambda, context)
|
|
4843
|
-
: undefined,
|
|
4820
|
+
Lambda: output.Lambda != null ? deserializeAws_restJson1LambdaConfiguration(output.Lambda, context) : undefined,
|
|
4844
4821
|
};
|
|
4845
4822
|
};
|
|
4846
4823
|
const deserializeAws_restJson1ProcessorList = (output, context) => {
|
|
@@ -4926,5 +4903,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4926
4903
|
if (data["__type"] !== undefined) {
|
|
4927
4904
|
return sanitizeErrorCode(data["__type"]);
|
|
4928
4905
|
}
|
|
4929
|
-
return "";
|
|
4930
4906
|
};
|