@aws-sdk/client-chime-sdk-messaging 3.28.0 → 3.32.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 +35 -0
- package/ChimeSDKMessaging.ts +2 -1
- package/ChimeSDKMessagingClient.ts +2 -1
- package/README.md +2 -1
- package/dist/cjs/ChimeSDKMessaging.js +2 -1
- package/dist/cjs/ChimeSDKMessaging.js.map +1 -1
- package/dist/cjs/ChimeSDKMessagingClient.js +2 -1
- package/dist/cjs/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +40 -40
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/ChimeSDKMessaging.js +2 -1
- package/dist/es/ChimeSDKMessaging.js.map +1 -1
- package/dist/es/ChimeSDKMessagingClient.js +2 -1
- package/dist/es/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +166 -116
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ChimeSDKMessagingClient.d.ts +2 -1
- package/dist/types/ts3.4/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ts3.4/ChimeSDKMessagingClient.d.ts +2 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +44 -40
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
@@ -1036,9 +1036,9 @@ export var serializeAws_restJson1UpdateChannelReadMarkerCommand = function (inpu
|
|
|
1036
1036
|
});
|
|
1037
1037
|
}); };
|
|
1038
1038
|
export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1039
|
-
var contents, data;
|
|
1040
|
-
return __generator(this, function (
|
|
1041
|
-
switch (
|
|
1039
|
+
var contents, data, _a, _b;
|
|
1040
|
+
return __generator(this, function (_c) {
|
|
1041
|
+
switch (_c.label) {
|
|
1042
1042
|
case 0:
|
|
1043
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
1044
|
return [2 /*return*/, deserializeAws_restJson1BatchCreateChannelMembershipCommandError(output, context)];
|
|
@@ -1048,9 +1048,11 @@ export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = functio
|
|
|
1048
1048
|
BatchChannelMemberships: undefined,
|
|
1049
1049
|
Errors: undefined,
|
|
1050
1050
|
};
|
|
1051
|
+
_a = __expectNonNull;
|
|
1052
|
+
_b = __expectObject;
|
|
1051
1053
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1052
1054
|
case 1:
|
|
1053
|
-
data = _a.sent();
|
|
1055
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1054
1056
|
if (data.BatchChannelMemberships !== undefined && data.BatchChannelMemberships !== null) {
|
|
1055
1057
|
contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
|
|
1056
1058
|
}
|
|
@@ -1140,9 +1142,9 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
|
|
|
1140
1142
|
});
|
|
1141
1143
|
}); };
|
|
1142
1144
|
export var deserializeAws_restJson1CreateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1143
|
-
var contents, data;
|
|
1144
|
-
return __generator(this, function (
|
|
1145
|
-
switch (
|
|
1145
|
+
var contents, data, _a, _b;
|
|
1146
|
+
return __generator(this, function (_c) {
|
|
1147
|
+
switch (_c.label) {
|
|
1146
1148
|
case 0:
|
|
1147
1149
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1148
1150
|
return [2 /*return*/, deserializeAws_restJson1CreateChannelCommandError(output, context)];
|
|
@@ -1151,9 +1153,11 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1151
1153
|
$metadata: deserializeMetadata(output),
|
|
1152
1154
|
ChannelArn: undefined,
|
|
1153
1155
|
};
|
|
1156
|
+
_a = __expectNonNull;
|
|
1157
|
+
_b = __expectObject;
|
|
1154
1158
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1155
1159
|
case 1:
|
|
1156
|
-
data = _a.sent();
|
|
1160
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1157
1161
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1158
1162
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1159
1163
|
}
|
|
@@ -1256,9 +1260,9 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1256
1260
|
});
|
|
1257
1261
|
}); };
|
|
1258
1262
|
export var deserializeAws_restJson1CreateChannelBanCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1259
|
-
var contents, data;
|
|
1260
|
-
return __generator(this, function (
|
|
1261
|
-
switch (
|
|
1263
|
+
var contents, data, _a, _b;
|
|
1264
|
+
return __generator(this, function (_c) {
|
|
1265
|
+
switch (_c.label) {
|
|
1262
1266
|
case 0:
|
|
1263
1267
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1264
1268
|
return [2 /*return*/, deserializeAws_restJson1CreateChannelBanCommandError(output, context)];
|
|
@@ -1268,9 +1272,11 @@ export var deserializeAws_restJson1CreateChannelBanCommand = function (output, c
|
|
|
1268
1272
|
ChannelArn: undefined,
|
|
1269
1273
|
Member: undefined,
|
|
1270
1274
|
};
|
|
1275
|
+
_a = __expectNonNull;
|
|
1276
|
+
_b = __expectObject;
|
|
1271
1277
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1272
1278
|
case 1:
|
|
1273
|
-
data = _a.sent();
|
|
1279
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1274
1280
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1275
1281
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1276
1282
|
}
|
|
@@ -1376,9 +1382,9 @@ var deserializeAws_restJson1CreateChannelBanCommandError = function (output, con
|
|
|
1376
1382
|
});
|
|
1377
1383
|
}); };
|
|
1378
1384
|
export var deserializeAws_restJson1CreateChannelMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
-
var contents, data;
|
|
1380
|
-
return __generator(this, function (
|
|
1381
|
-
switch (
|
|
1385
|
+
var contents, data, _a, _b;
|
|
1386
|
+
return __generator(this, function (_c) {
|
|
1387
|
+
switch (_c.label) {
|
|
1382
1388
|
case 0:
|
|
1383
1389
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1384
1390
|
return [2 /*return*/, deserializeAws_restJson1CreateChannelMembershipCommandError(output, context)];
|
|
@@ -1388,9 +1394,11 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
|
|
|
1388
1394
|
ChannelArn: undefined,
|
|
1389
1395
|
Member: undefined,
|
|
1390
1396
|
};
|
|
1397
|
+
_a = __expectNonNull;
|
|
1398
|
+
_b = __expectObject;
|
|
1391
1399
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1392
1400
|
case 1:
|
|
1393
|
-
data = _a.sent();
|
|
1401
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1394
1402
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1395
1403
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1396
1404
|
}
|
|
@@ -1496,9 +1504,9 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
|
|
|
1496
1504
|
});
|
|
1497
1505
|
}); };
|
|
1498
1506
|
export var deserializeAws_restJson1CreateChannelModeratorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1499
|
-
var contents, data;
|
|
1500
|
-
return __generator(this, function (
|
|
1501
|
-
switch (
|
|
1507
|
+
var contents, data, _a, _b;
|
|
1508
|
+
return __generator(this, function (_c) {
|
|
1509
|
+
switch (_c.label) {
|
|
1502
1510
|
case 0:
|
|
1503
1511
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1504
1512
|
return [2 /*return*/, deserializeAws_restJson1CreateChannelModeratorCommandError(output, context)];
|
|
@@ -1508,9 +1516,11 @@ export var deserializeAws_restJson1CreateChannelModeratorCommand = function (out
|
|
|
1508
1516
|
ChannelArn: undefined,
|
|
1509
1517
|
ChannelModerator: undefined,
|
|
1510
1518
|
};
|
|
1519
|
+
_a = __expectNonNull;
|
|
1520
|
+
_b = __expectObject;
|
|
1511
1521
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1512
1522
|
case 1:
|
|
1513
|
-
data = _a.sent();
|
|
1523
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1514
1524
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1515
1525
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1516
1526
|
}
|
|
@@ -2104,9 +2114,9 @@ var deserializeAws_restJson1DeleteChannelModeratorCommandError = function (outpu
|
|
|
2104
2114
|
});
|
|
2105
2115
|
}); };
|
|
2106
2116
|
export var deserializeAws_restJson1DescribeChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2107
|
-
var contents, data;
|
|
2108
|
-
return __generator(this, function (
|
|
2109
|
-
switch (
|
|
2117
|
+
var contents, data, _a, _b;
|
|
2118
|
+
return __generator(this, function (_c) {
|
|
2119
|
+
switch (_c.label) {
|
|
2110
2120
|
case 0:
|
|
2111
2121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2112
2122
|
return [2 /*return*/, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
|
|
@@ -2115,9 +2125,11 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2115
2125
|
$metadata: deserializeMetadata(output),
|
|
2116
2126
|
Channel: undefined,
|
|
2117
2127
|
};
|
|
2128
|
+
_a = __expectNonNull;
|
|
2129
|
+
_b = __expectObject;
|
|
2118
2130
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2119
2131
|
case 1:
|
|
2120
|
-
data = _a.sent();
|
|
2132
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2121
2133
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2122
2134
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
2123
2135
|
}
|
|
@@ -2204,9 +2216,9 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2204
2216
|
});
|
|
2205
2217
|
}); };
|
|
2206
2218
|
export var deserializeAws_restJson1DescribeChannelBanCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2207
|
-
var contents, data;
|
|
2208
|
-
return __generator(this, function (
|
|
2209
|
-
switch (
|
|
2219
|
+
var contents, data, _a, _b;
|
|
2220
|
+
return __generator(this, function (_c) {
|
|
2221
|
+
switch (_c.label) {
|
|
2210
2222
|
case 0:
|
|
2211
2223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2212
2224
|
return [2 /*return*/, deserializeAws_restJson1DescribeChannelBanCommandError(output, context)];
|
|
@@ -2215,9 +2227,11 @@ export var deserializeAws_restJson1DescribeChannelBanCommand = function (output,
|
|
|
2215
2227
|
$metadata: deserializeMetadata(output),
|
|
2216
2228
|
ChannelBan: undefined,
|
|
2217
2229
|
};
|
|
2230
|
+
_a = __expectNonNull;
|
|
2231
|
+
_b = __expectObject;
|
|
2218
2232
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2219
2233
|
case 1:
|
|
2220
|
-
data = _a.sent();
|
|
2234
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2221
2235
|
if (data.ChannelBan !== undefined && data.ChannelBan !== null) {
|
|
2222
2236
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
2223
2237
|
}
|
|
@@ -2312,9 +2326,9 @@ var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, c
|
|
|
2312
2326
|
});
|
|
2313
2327
|
}); };
|
|
2314
2328
|
export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2315
|
-
var contents, data;
|
|
2316
|
-
return __generator(this, function (
|
|
2317
|
-
switch (
|
|
2329
|
+
var contents, data, _a, _b;
|
|
2330
|
+
return __generator(this, function (_c) {
|
|
2331
|
+
switch (_c.label) {
|
|
2318
2332
|
case 0:
|
|
2319
2333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2320
2334
|
return [2 /*return*/, deserializeAws_restJson1DescribeChannelMembershipCommandError(output, context)];
|
|
@@ -2323,9 +2337,11 @@ export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (
|
|
|
2323
2337
|
$metadata: deserializeMetadata(output),
|
|
2324
2338
|
ChannelMembership: undefined,
|
|
2325
2339
|
};
|
|
2340
|
+
_a = __expectNonNull;
|
|
2341
|
+
_b = __expectObject;
|
|
2326
2342
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2327
2343
|
case 1:
|
|
2328
|
-
data = _a.sent();
|
|
2344
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2329
2345
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2330
2346
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
2331
2347
|
}
|
|
@@ -2420,9 +2436,9 @@ var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (ou
|
|
|
2420
2436
|
});
|
|
2421
2437
|
}); };
|
|
2422
2438
|
export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2423
|
-
var contents, data;
|
|
2424
|
-
return __generator(this, function (
|
|
2425
|
-
switch (
|
|
2439
|
+
var contents, data, _a, _b;
|
|
2440
|
+
return __generator(this, function (_c) {
|
|
2441
|
+
switch (_c.label) {
|
|
2426
2442
|
case 0:
|
|
2427
2443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2428
2444
|
return [2 /*return*/, deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError(output, context)];
|
|
@@ -2431,9 +2447,11 @@ export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCo
|
|
|
2431
2447
|
$metadata: deserializeMetadata(output),
|
|
2432
2448
|
ChannelMembership: undefined,
|
|
2433
2449
|
};
|
|
2450
|
+
_a = __expectNonNull;
|
|
2451
|
+
_b = __expectObject;
|
|
2434
2452
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2435
2453
|
case 1:
|
|
2436
|
-
data = _a.sent();
|
|
2454
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2437
2455
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2438
2456
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
2439
2457
|
}
|
|
@@ -2520,9 +2538,9 @@ var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandEr
|
|
|
2520
2538
|
});
|
|
2521
2539
|
}); };
|
|
2522
2540
|
export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2523
|
-
var contents, data;
|
|
2524
|
-
return __generator(this, function (
|
|
2525
|
-
switch (
|
|
2541
|
+
var contents, data, _a, _b;
|
|
2542
|
+
return __generator(this, function (_c) {
|
|
2543
|
+
switch (_c.label) {
|
|
2526
2544
|
case 0:
|
|
2527
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2528
2546
|
return [2 /*return*/, deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError(output, context)];
|
|
@@ -2531,9 +2549,11 @@ export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComm
|
|
|
2531
2549
|
$metadata: deserializeMetadata(output),
|
|
2532
2550
|
Channel: undefined,
|
|
2533
2551
|
};
|
|
2552
|
+
_a = __expectNonNull;
|
|
2553
|
+
_b = __expectObject;
|
|
2534
2554
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2535
2555
|
case 1:
|
|
2536
|
-
data = _a.sent();
|
|
2556
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2537
2557
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2538
2558
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
2539
2559
|
}
|
|
@@ -2620,9 +2640,9 @@ var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandErro
|
|
|
2620
2640
|
});
|
|
2621
2641
|
}); };
|
|
2622
2642
|
export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2623
|
-
var contents, data;
|
|
2624
|
-
return __generator(this, function (
|
|
2625
|
-
switch (
|
|
2643
|
+
var contents, data, _a, _b;
|
|
2644
|
+
return __generator(this, function (_c) {
|
|
2645
|
+
switch (_c.label) {
|
|
2626
2646
|
case 0:
|
|
2627
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2628
2648
|
return [2 /*return*/, deserializeAws_restJson1DescribeChannelModeratorCommandError(output, context)];
|
|
@@ -2631,9 +2651,11 @@ export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (o
|
|
|
2631
2651
|
$metadata: deserializeMetadata(output),
|
|
2632
2652
|
ChannelModerator: undefined,
|
|
2633
2653
|
};
|
|
2654
|
+
_a = __expectNonNull;
|
|
2655
|
+
_b = __expectObject;
|
|
2634
2656
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2635
2657
|
case 1:
|
|
2636
|
-
data = _a.sent();
|
|
2658
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2637
2659
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
2638
2660
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
2639
2661
|
}
|
|
@@ -2728,9 +2750,9 @@ var deserializeAws_restJson1DescribeChannelModeratorCommandError = function (out
|
|
|
2728
2750
|
});
|
|
2729
2751
|
}); };
|
|
2730
2752
|
export var deserializeAws_restJson1GetChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2731
|
-
var contents, data;
|
|
2732
|
-
return __generator(this, function (
|
|
2733
|
-
switch (
|
|
2753
|
+
var contents, data, _a, _b;
|
|
2754
|
+
return __generator(this, function (_c) {
|
|
2755
|
+
switch (_c.label) {
|
|
2734
2756
|
case 0:
|
|
2735
2757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2736
2758
|
return [2 /*return*/, deserializeAws_restJson1GetChannelMessageCommandError(output, context)];
|
|
@@ -2739,9 +2761,11 @@ export var deserializeAws_restJson1GetChannelMessageCommand = function (output,
|
|
|
2739
2761
|
$metadata: deserializeMetadata(output),
|
|
2740
2762
|
ChannelMessage: undefined,
|
|
2741
2763
|
};
|
|
2764
|
+
_a = __expectNonNull;
|
|
2765
|
+
_b = __expectObject;
|
|
2742
2766
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2743
2767
|
case 1:
|
|
2744
|
-
data = _a.sent();
|
|
2768
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2745
2769
|
if (data.ChannelMessage !== undefined && data.ChannelMessage !== null) {
|
|
2746
2770
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
2747
2771
|
}
|
|
@@ -2836,9 +2860,9 @@ var deserializeAws_restJson1GetChannelMessageCommandError = function (output, co
|
|
|
2836
2860
|
});
|
|
2837
2861
|
}); };
|
|
2838
2862
|
export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2839
|
-
var contents, data;
|
|
2840
|
-
return __generator(this, function (
|
|
2841
|
-
switch (
|
|
2863
|
+
var contents, data, _a, _b;
|
|
2864
|
+
return __generator(this, function (_c) {
|
|
2865
|
+
switch (_c.label) {
|
|
2842
2866
|
case 0:
|
|
2843
2867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2844
2868
|
return [2 /*return*/, deserializeAws_restJson1GetMessagingSessionEndpointCommandError(output, context)];
|
|
@@ -2847,9 +2871,11 @@ export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function
|
|
|
2847
2871
|
$metadata: deserializeMetadata(output),
|
|
2848
2872
|
Endpoint: undefined,
|
|
2849
2873
|
};
|
|
2874
|
+
_a = __expectNonNull;
|
|
2875
|
+
_b = __expectObject;
|
|
2850
2876
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2851
2877
|
case 1:
|
|
2852
|
-
data = _a.sent();
|
|
2878
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2853
2879
|
if (data.Endpoint !== undefined && data.Endpoint !== null) {
|
|
2854
2880
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
2855
2881
|
}
|
|
@@ -2928,9 +2954,9 @@ var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (
|
|
|
2928
2954
|
});
|
|
2929
2955
|
}); };
|
|
2930
2956
|
export var deserializeAws_restJson1ListChannelBansCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2931
|
-
var contents, data;
|
|
2932
|
-
return __generator(this, function (
|
|
2933
|
-
switch (
|
|
2957
|
+
var contents, data, _a, _b;
|
|
2958
|
+
return __generator(this, function (_c) {
|
|
2959
|
+
switch (_c.label) {
|
|
2934
2960
|
case 0:
|
|
2935
2961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2936
2962
|
return [2 /*return*/, deserializeAws_restJson1ListChannelBansCommandError(output, context)];
|
|
@@ -2941,9 +2967,11 @@ export var deserializeAws_restJson1ListChannelBansCommand = function (output, co
|
|
|
2941
2967
|
ChannelBans: undefined,
|
|
2942
2968
|
NextToken: undefined,
|
|
2943
2969
|
};
|
|
2970
|
+
_a = __expectNonNull;
|
|
2971
|
+
_b = __expectObject;
|
|
2944
2972
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2945
2973
|
case 1:
|
|
2946
|
-
data = _a.sent();
|
|
2974
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2947
2975
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
2948
2976
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
2949
2977
|
}
|
|
@@ -3036,9 +3064,9 @@ var deserializeAws_restJson1ListChannelBansCommandError = function (output, cont
|
|
|
3036
3064
|
});
|
|
3037
3065
|
}); };
|
|
3038
3066
|
export var deserializeAws_restJson1ListChannelMembershipsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3039
|
-
var contents, data;
|
|
3040
|
-
return __generator(this, function (
|
|
3041
|
-
switch (
|
|
3067
|
+
var contents, data, _a, _b;
|
|
3068
|
+
return __generator(this, function (_c) {
|
|
3069
|
+
switch (_c.label) {
|
|
3042
3070
|
case 0:
|
|
3043
3071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3044
3072
|
return [2 /*return*/, deserializeAws_restJson1ListChannelMembershipsCommandError(output, context)];
|
|
@@ -3049,9 +3077,11 @@ export var deserializeAws_restJson1ListChannelMembershipsCommand = function (out
|
|
|
3049
3077
|
ChannelMemberships: undefined,
|
|
3050
3078
|
NextToken: undefined,
|
|
3051
3079
|
};
|
|
3080
|
+
_a = __expectNonNull;
|
|
3081
|
+
_b = __expectObject;
|
|
3052
3082
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3053
3083
|
case 1:
|
|
3054
|
-
data = _a.sent();
|
|
3084
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3055
3085
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3056
3086
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3057
3087
|
}
|
|
@@ -3144,9 +3174,9 @@ var deserializeAws_restJson1ListChannelMembershipsCommandError = function (outpu
|
|
|
3144
3174
|
});
|
|
3145
3175
|
}); };
|
|
3146
3176
|
export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3147
|
-
var contents, data;
|
|
3148
|
-
return __generator(this, function (
|
|
3149
|
-
switch (
|
|
3177
|
+
var contents, data, _a, _b;
|
|
3178
|
+
return __generator(this, function (_c) {
|
|
3179
|
+
switch (_c.label) {
|
|
3150
3180
|
case 0:
|
|
3151
3181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3152
3182
|
return [2 /*return*/, deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError(output, context)];
|
|
@@ -3156,9 +3186,11 @@ export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
|
|
|
3156
3186
|
ChannelMemberships: undefined,
|
|
3157
3187
|
NextToken: undefined,
|
|
3158
3188
|
};
|
|
3189
|
+
_a = __expectNonNull;
|
|
3190
|
+
_b = __expectObject;
|
|
3159
3191
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3160
3192
|
case 1:
|
|
3161
|
-
data = _a.sent();
|
|
3193
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3162
3194
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
3163
3195
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
|
|
3164
3196
|
}
|
|
@@ -3248,9 +3280,9 @@ var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError
|
|
|
3248
3280
|
});
|
|
3249
3281
|
}); };
|
|
3250
3282
|
export var deserializeAws_restJson1ListChannelMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3251
|
-
var contents, data;
|
|
3252
|
-
return __generator(this, function (
|
|
3253
|
-
switch (
|
|
3283
|
+
var contents, data, _a, _b;
|
|
3284
|
+
return __generator(this, function (_c) {
|
|
3285
|
+
switch (_c.label) {
|
|
3254
3286
|
case 0:
|
|
3255
3287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3256
3288
|
return [2 /*return*/, deserializeAws_restJson1ListChannelMessagesCommandError(output, context)];
|
|
@@ -3261,9 +3293,11 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
|
|
|
3261
3293
|
ChannelMessages: undefined,
|
|
3262
3294
|
NextToken: undefined,
|
|
3263
3295
|
};
|
|
3296
|
+
_a = __expectNonNull;
|
|
3297
|
+
_b = __expectObject;
|
|
3264
3298
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3265
3299
|
case 1:
|
|
3266
|
-
data = _a.sent();
|
|
3300
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3267
3301
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3268
3302
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3269
3303
|
}
|
|
@@ -3356,9 +3390,9 @@ var deserializeAws_restJson1ListChannelMessagesCommandError = function (output,
|
|
|
3356
3390
|
});
|
|
3357
3391
|
}); };
|
|
3358
3392
|
export var deserializeAws_restJson1ListChannelModeratorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3359
|
-
var contents, data;
|
|
3360
|
-
return __generator(this, function (
|
|
3361
|
-
switch (
|
|
3393
|
+
var contents, data, _a, _b;
|
|
3394
|
+
return __generator(this, function (_c) {
|
|
3395
|
+
switch (_c.label) {
|
|
3362
3396
|
case 0:
|
|
3363
3397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3364
3398
|
return [2 /*return*/, deserializeAws_restJson1ListChannelModeratorsCommandError(output, context)];
|
|
@@ -3369,9 +3403,11 @@ export var deserializeAws_restJson1ListChannelModeratorsCommand = function (outp
|
|
|
3369
3403
|
ChannelModerators: undefined,
|
|
3370
3404
|
NextToken: undefined,
|
|
3371
3405
|
};
|
|
3406
|
+
_a = __expectNonNull;
|
|
3407
|
+
_b = __expectObject;
|
|
3372
3408
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3373
3409
|
case 1:
|
|
3374
|
-
data = _a.sent();
|
|
3410
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3375
3411
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3376
3412
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3377
3413
|
}
|
|
@@ -3464,9 +3500,9 @@ var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output
|
|
|
3464
3500
|
});
|
|
3465
3501
|
}); };
|
|
3466
3502
|
export var deserializeAws_restJson1ListChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3467
|
-
var contents, data;
|
|
3468
|
-
return __generator(this, function (
|
|
3469
|
-
switch (
|
|
3503
|
+
var contents, data, _a, _b;
|
|
3504
|
+
return __generator(this, function (_c) {
|
|
3505
|
+
switch (_c.label) {
|
|
3470
3506
|
case 0:
|
|
3471
3507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3472
3508
|
return [2 /*return*/, deserializeAws_restJson1ListChannelsCommandError(output, context)];
|
|
@@ -3476,9 +3512,11 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
3476
3512
|
Channels: undefined,
|
|
3477
3513
|
NextToken: undefined,
|
|
3478
3514
|
};
|
|
3515
|
+
_a = __expectNonNull;
|
|
3516
|
+
_b = __expectObject;
|
|
3479
3517
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3480
3518
|
case 1:
|
|
3481
|
-
data = _a.sent();
|
|
3519
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3482
3520
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3483
3521
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
3484
3522
|
}
|
|
@@ -3568,9 +3606,9 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
3568
3606
|
});
|
|
3569
3607
|
}); };
|
|
3570
3608
|
export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3571
|
-
var contents, data;
|
|
3572
|
-
return __generator(this, function (
|
|
3573
|
-
switch (
|
|
3609
|
+
var contents, data, _a, _b;
|
|
3610
|
+
return __generator(this, function (_c) {
|
|
3611
|
+
switch (_c.label) {
|
|
3574
3612
|
case 0:
|
|
3575
3613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3576
3614
|
return [2 /*return*/, deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError(output, context)];
|
|
@@ -3580,9 +3618,11 @@ export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
|
|
|
3580
3618
|
Channels: undefined,
|
|
3581
3619
|
NextToken: undefined,
|
|
3582
3620
|
};
|
|
3621
|
+
_a = __expectNonNull;
|
|
3622
|
+
_b = __expectObject;
|
|
3583
3623
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3584
3624
|
case 1:
|
|
3585
|
-
data = _a.sent();
|
|
3625
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3586
3626
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
3587
3627
|
contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
3588
3628
|
}
|
|
@@ -3672,9 +3712,9 @@ var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError =
|
|
|
3672
3712
|
});
|
|
3673
3713
|
}); };
|
|
3674
3714
|
export var deserializeAws_restJson1RedactChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3675
|
-
var contents, data;
|
|
3676
|
-
return __generator(this, function (
|
|
3677
|
-
switch (
|
|
3715
|
+
var contents, data, _a, _b;
|
|
3716
|
+
return __generator(this, function (_c) {
|
|
3717
|
+
switch (_c.label) {
|
|
3678
3718
|
case 0:
|
|
3679
3719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3680
3720
|
return [2 /*return*/, deserializeAws_restJson1RedactChannelMessageCommandError(output, context)];
|
|
@@ -3684,9 +3724,11 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
|
|
|
3684
3724
|
ChannelArn: undefined,
|
|
3685
3725
|
MessageId: undefined,
|
|
3686
3726
|
};
|
|
3727
|
+
_a = __expectNonNull;
|
|
3728
|
+
_b = __expectObject;
|
|
3687
3729
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3688
3730
|
case 1:
|
|
3689
|
-
data = _a.sent();
|
|
3731
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3690
3732
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3691
3733
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3692
3734
|
}
|
|
@@ -3776,9 +3818,9 @@ var deserializeAws_restJson1RedactChannelMessageCommandError = function (output,
|
|
|
3776
3818
|
});
|
|
3777
3819
|
}); };
|
|
3778
3820
|
export var deserializeAws_restJson1SendChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3779
|
-
var contents, data;
|
|
3780
|
-
return __generator(this, function (
|
|
3781
|
-
switch (
|
|
3821
|
+
var contents, data, _a, _b;
|
|
3822
|
+
return __generator(this, function (_c) {
|
|
3823
|
+
switch (_c.label) {
|
|
3782
3824
|
case 0:
|
|
3783
3825
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3784
3826
|
return [2 /*return*/, deserializeAws_restJson1SendChannelMessageCommandError(output, context)];
|
|
@@ -3788,9 +3830,11 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
|
|
|
3788
3830
|
ChannelArn: undefined,
|
|
3789
3831
|
MessageId: undefined,
|
|
3790
3832
|
};
|
|
3833
|
+
_a = __expectNonNull;
|
|
3834
|
+
_b = __expectObject;
|
|
3791
3835
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3792
3836
|
case 1:
|
|
3793
|
-
data = _a.sent();
|
|
3837
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3794
3838
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3795
3839
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3796
3840
|
}
|
|
@@ -3888,9 +3932,9 @@ var deserializeAws_restJson1SendChannelMessageCommandError = function (output, c
|
|
|
3888
3932
|
});
|
|
3889
3933
|
}); };
|
|
3890
3934
|
export var deserializeAws_restJson1UpdateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3891
|
-
var contents, data;
|
|
3892
|
-
return __generator(this, function (
|
|
3893
|
-
switch (
|
|
3935
|
+
var contents, data, _a, _b;
|
|
3936
|
+
return __generator(this, function (_c) {
|
|
3937
|
+
switch (_c.label) {
|
|
3894
3938
|
case 0:
|
|
3895
3939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3896
3940
|
return [2 /*return*/, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
|
|
@@ -3899,9 +3943,11 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
3899
3943
|
$metadata: deserializeMetadata(output),
|
|
3900
3944
|
ChannelArn: undefined,
|
|
3901
3945
|
};
|
|
3946
|
+
_a = __expectNonNull;
|
|
3947
|
+
_b = __expectObject;
|
|
3902
3948
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3903
3949
|
case 1:
|
|
3904
|
-
data = _a.sent();
|
|
3950
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3905
3951
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3906
3952
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3907
3953
|
}
|
|
@@ -3996,9 +4042,9 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
3996
4042
|
});
|
|
3997
4043
|
}); };
|
|
3998
4044
|
export var deserializeAws_restJson1UpdateChannelMessageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3999
|
-
var contents, data;
|
|
4000
|
-
return __generator(this, function (
|
|
4001
|
-
switch (
|
|
4045
|
+
var contents, data, _a, _b;
|
|
4046
|
+
return __generator(this, function (_c) {
|
|
4047
|
+
switch (_c.label) {
|
|
4002
4048
|
case 0:
|
|
4003
4049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4004
4050
|
return [2 /*return*/, deserializeAws_restJson1UpdateChannelMessageCommandError(output, context)];
|
|
@@ -4008,9 +4054,11 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
|
|
|
4008
4054
|
ChannelArn: undefined,
|
|
4009
4055
|
MessageId: undefined,
|
|
4010
4056
|
};
|
|
4057
|
+
_a = __expectNonNull;
|
|
4058
|
+
_b = __expectObject;
|
|
4011
4059
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4012
4060
|
case 1:
|
|
4013
|
-
data = _a.sent();
|
|
4061
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4014
4062
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
4015
4063
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4016
4064
|
}
|
|
@@ -4108,9 +4156,9 @@ var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output,
|
|
|
4108
4156
|
});
|
|
4109
4157
|
}); };
|
|
4110
4158
|
export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4111
|
-
var contents, data;
|
|
4112
|
-
return __generator(this, function (
|
|
4113
|
-
switch (
|
|
4159
|
+
var contents, data, _a, _b;
|
|
4160
|
+
return __generator(this, function (_c) {
|
|
4161
|
+
switch (_c.label) {
|
|
4114
4162
|
case 0:
|
|
4115
4163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4116
4164
|
return [2 /*return*/, deserializeAws_restJson1UpdateChannelReadMarkerCommandError(output, context)];
|
|
@@ -4119,9 +4167,11 @@ export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (ou
|
|
|
4119
4167
|
$metadata: deserializeMetadata(output),
|
|
4120
4168
|
ChannelArn: undefined,
|
|
4121
4169
|
};
|
|
4170
|
+
_a = __expectNonNull;
|
|
4171
|
+
_b = __expectObject;
|
|
4122
4172
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4123
4173
|
case 1:
|
|
4124
|
-
data = _a.sent();
|
|
4174
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4125
4175
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
4126
4176
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4127
4177
|
}
|
|
@@ -4421,7 +4471,7 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
4421
4471
|
var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output, context) {
|
|
4422
4472
|
return {
|
|
4423
4473
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
|
|
4424
|
-
?
|
|
4474
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
|
|
4425
4475
|
: undefined,
|
|
4426
4476
|
Type: __expectString(output.Type),
|
|
4427
4477
|
};
|
|
@@ -4462,13 +4512,13 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
4462
4512
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4463
4513
|
: undefined,
|
|
4464
4514
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4465
|
-
?
|
|
4515
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4466
4516
|
: undefined,
|
|
4467
4517
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4468
|
-
?
|
|
4518
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
4469
4519
|
: undefined,
|
|
4470
4520
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4471
|
-
?
|
|
4521
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4472
4522
|
: undefined,
|
|
4473
4523
|
Metadata: __expectString(output.Metadata),
|
|
4474
4524
|
Mode: __expectString(output.Mode),
|
|
@@ -4483,7 +4533,7 @@ var deserializeAws_restJson1ChannelBan = function (output, context) {
|
|
|
4483
4533
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4484
4534
|
: undefined,
|
|
4485
4535
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4486
|
-
?
|
|
4536
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4487
4537
|
: undefined,
|
|
4488
4538
|
Member: output.Member !== undefined && output.Member !== null
|
|
4489
4539
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -4511,13 +4561,13 @@ var deserializeAws_restJson1ChannelMembership = function (output, context) {
|
|
|
4511
4561
|
return {
|
|
4512
4562
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4513
4563
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4514
|
-
?
|
|
4564
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4515
4565
|
: undefined,
|
|
4516
4566
|
InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
4517
4567
|
? deserializeAws_restJson1Identity(output.InvitedBy, context)
|
|
4518
4568
|
: undefined,
|
|
4519
4569
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4520
|
-
?
|
|
4570
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4521
4571
|
: undefined,
|
|
4522
4572
|
Member: output.Member !== undefined && output.Member !== null
|
|
4523
4573
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -4567,13 +4617,13 @@ var deserializeAws_restJson1ChannelMessage = function (output, context) {
|
|
|
4567
4617
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4568
4618
|
Content: __expectString(output.Content),
|
|
4569
4619
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4570
|
-
?
|
|
4620
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4571
4621
|
: undefined,
|
|
4572
4622
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4573
|
-
?
|
|
4623
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
4574
4624
|
: undefined,
|
|
4575
4625
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4576
|
-
?
|
|
4626
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4577
4627
|
: undefined,
|
|
4578
4628
|
MessageId: __expectString(output.MessageId),
|
|
4579
4629
|
Metadata: __expectString(output.Metadata),
|
|
@@ -4589,13 +4639,13 @@ var deserializeAws_restJson1ChannelMessageSummary = function (output, context) {
|
|
|
4589
4639
|
return {
|
|
4590
4640
|
Content: __expectString(output.Content),
|
|
4591
4641
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4592
|
-
?
|
|
4642
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4593
4643
|
: undefined,
|
|
4594
4644
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4595
|
-
?
|
|
4645
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
4596
4646
|
: undefined,
|
|
4597
4647
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4598
|
-
?
|
|
4648
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4599
4649
|
: undefined,
|
|
4600
4650
|
MessageId: __expectString(output.MessageId),
|
|
4601
4651
|
Metadata: __expectString(output.Metadata),
|
|
@@ -4640,7 +4690,7 @@ var deserializeAws_restJson1ChannelModerator = function (output, context) {
|
|
|
4640
4690
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4641
4691
|
: undefined,
|
|
4642
4692
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4643
|
-
?
|
|
4693
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4644
4694
|
: undefined,
|
|
4645
4695
|
Moderator: output.Moderator !== undefined && output.Moderator !== null
|
|
4646
4696
|
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
@@ -4668,7 +4718,7 @@ var deserializeAws_restJson1ChannelSummary = function (output, context) {
|
|
|
4668
4718
|
return {
|
|
4669
4719
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4670
4720
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4671
|
-
?
|
|
4721
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
4672
4722
|
: undefined,
|
|
4673
4723
|
Metadata: __expectString(output.Metadata),
|
|
4674
4724
|
Mode: __expectString(output.Mode),
|