@aws-sdk/client-chime-sdk-messaging 3.145.0 → 3.154.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/ChimeSDKMessaging.js +15 -0
- package/dist-cjs/commands/ListSubChannelsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +36 -18
- package/dist-cjs/pagination/ListSubChannelsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +189 -2
- package/dist-es/ChimeSDKMessaging.js +15 -0
- package/dist-es/commands/ListSubChannelsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +18 -14
- package/dist-es/pagination/ListSubChannelsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +257 -49
- package/dist-types/ChimeSDKMessaging.d.ts +7 -0
- package/dist-types/ChimeSDKMessagingClient.d.ts +3 -2
- package/dist-types/commands/ListSubChannelsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +232 -13
- package/dist-types/pagination/ListSubChannelsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/ChimeSDKMessaging.d.ts +5 -0
- package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/ListSubChannelsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +105 -9
- package/dist-types/ts3.4/pagination/ListSubChannelsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +4 -4
|
@@ -46,7 +46,7 @@ export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function
|
|
|
46
46
|
query = map({
|
|
47
47
|
operation: [, "batch-create"],
|
|
48
48
|
});
|
|
49
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type != null && { Type: input.Type })));
|
|
49
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })), (input.Type != null && { Type: input.Type })));
|
|
50
50
|
return [2, new __HttpRequest({
|
|
51
51
|
protocol: protocol,
|
|
52
52
|
hostname: hostname,
|
|
@@ -105,7 +105,9 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
105
105
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
106
106
|
});
|
|
107
107
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
108
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId != null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.
|
|
108
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId != null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ElasticChannelConfiguration != null && {
|
|
109
|
+
ElasticChannelConfiguration: serializeAws_restJson1ElasticChannelConfiguration(input.ElasticChannelConfiguration, context),
|
|
110
|
+
})), (input.MemberArns != null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) })), (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.ModeratorArns != null && {
|
|
109
111
|
ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
|
|
110
112
|
})), (input.Name != null && { Name: input.Name })), (input.Privacy != null && { Privacy: input.Privacy })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
111
113
|
return [2, new __HttpRequest({
|
|
@@ -183,7 +185,7 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
|
|
|
183
185
|
});
|
|
184
186
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
|
|
185
187
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
186
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })), (input.Type != null && { Type: input.Type })));
|
|
188
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })), (input.Type != null && { Type: input.Type })));
|
|
187
189
|
return [2, new __HttpRequest({
|
|
188
190
|
protocol: protocol,
|
|
189
191
|
hostname: hostname,
|
|
@@ -223,7 +225,7 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
|
|
|
223
225
|
});
|
|
224
226
|
}); };
|
|
225
227
|
export var serializeAws_restJson1DeleteChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
226
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
228
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
227
229
|
return __generator(this, function (_c) {
|
|
228
230
|
switch (_c.label) {
|
|
229
231
|
case 0: return [4, context.endpoint()];
|
|
@@ -234,6 +236,9 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
234
236
|
});
|
|
235
237
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
236
238
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
239
|
+
query = map({
|
|
240
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
241
|
+
});
|
|
237
242
|
return [2, new __HttpRequest({
|
|
238
243
|
protocol: protocol,
|
|
239
244
|
hostname: hostname,
|
|
@@ -241,6 +246,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
241
246
|
method: "DELETE",
|
|
242
247
|
headers: headers,
|
|
243
248
|
path: resolvedPath,
|
|
249
|
+
query: query,
|
|
244
250
|
body: body,
|
|
245
251
|
})];
|
|
246
252
|
}
|
|
@@ -294,7 +300,7 @@ export var serializeAws_restJson1DeleteChannelFlowCommand = function (input, con
|
|
|
294
300
|
});
|
|
295
301
|
}); };
|
|
296
302
|
export var serializeAws_restJson1DeleteChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
297
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
303
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
298
304
|
return __generator(this, function (_c) {
|
|
299
305
|
switch (_c.label) {
|
|
300
306
|
case 0: return [4, context.endpoint()];
|
|
@@ -307,6 +313,9 @@ export var serializeAws_restJson1DeleteChannelMembershipCommand = function (inpu
|
|
|
307
313
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
308
314
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
309
315
|
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
316
|
+
query = map({
|
|
317
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
318
|
+
});
|
|
310
319
|
return [2, new __HttpRequest({
|
|
311
320
|
protocol: protocol,
|
|
312
321
|
hostname: hostname,
|
|
@@ -314,13 +323,14 @@ export var serializeAws_restJson1DeleteChannelMembershipCommand = function (inpu
|
|
|
314
323
|
method: "DELETE",
|
|
315
324
|
headers: headers,
|
|
316
325
|
path: resolvedPath,
|
|
326
|
+
query: query,
|
|
317
327
|
body: body,
|
|
318
328
|
})];
|
|
319
329
|
}
|
|
320
330
|
});
|
|
321
331
|
}); };
|
|
322
332
|
export var serializeAws_restJson1DeleteChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
323
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
333
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
324
334
|
return __generator(this, function (_c) {
|
|
325
335
|
switch (_c.label) {
|
|
326
336
|
case 0: return [4, context.endpoint()];
|
|
@@ -333,6 +343,9 @@ export var serializeAws_restJson1DeleteChannelMessageCommand = function (input,
|
|
|
333
343
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
334
344
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
335
345
|
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
346
|
+
query = map({
|
|
347
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
348
|
+
});
|
|
336
349
|
return [2, new __HttpRequest({
|
|
337
350
|
protocol: protocol,
|
|
338
351
|
hostname: hostname,
|
|
@@ -340,6 +353,7 @@ export var serializeAws_restJson1DeleteChannelMessageCommand = function (input,
|
|
|
340
353
|
method: "DELETE",
|
|
341
354
|
headers: headers,
|
|
342
355
|
path: resolvedPath,
|
|
356
|
+
query: query,
|
|
343
357
|
body: body,
|
|
344
358
|
})];
|
|
345
359
|
}
|
|
@@ -443,7 +457,7 @@ export var serializeAws_restJson1DescribeChannelFlowCommand = function (input, c
|
|
|
443
457
|
});
|
|
444
458
|
}); };
|
|
445
459
|
export var serializeAws_restJson1DescribeChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
446
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
460
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
447
461
|
return __generator(this, function (_c) {
|
|
448
462
|
switch (_c.label) {
|
|
449
463
|
case 0: return [4, context.endpoint()];
|
|
@@ -456,6 +470,9 @@ export var serializeAws_restJson1DescribeChannelMembershipCommand = function (in
|
|
|
456
470
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
457
471
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
458
472
|
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
473
|
+
query = map({
|
|
474
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
475
|
+
});
|
|
459
476
|
return [2, new __HttpRequest({
|
|
460
477
|
protocol: protocol,
|
|
461
478
|
hostname: hostname,
|
|
@@ -463,6 +480,7 @@ export var serializeAws_restJson1DescribeChannelMembershipCommand = function (in
|
|
|
463
480
|
method: "GET",
|
|
464
481
|
headers: headers,
|
|
465
482
|
path: resolvedPath,
|
|
483
|
+
query: query,
|
|
466
484
|
body: body,
|
|
467
485
|
})];
|
|
468
486
|
}
|
|
@@ -605,7 +623,7 @@ export var serializeAws_restJson1GetChannelMembershipPreferencesCommand = functi
|
|
|
605
623
|
});
|
|
606
624
|
}); };
|
|
607
625
|
export var serializeAws_restJson1GetChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
608
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
626
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
609
627
|
return __generator(this, function (_c) {
|
|
610
628
|
switch (_c.label) {
|
|
611
629
|
case 0: return [4, context.endpoint()];
|
|
@@ -618,6 +636,9 @@ export var serializeAws_restJson1GetChannelMessageCommand = function (input, con
|
|
|
618
636
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
619
637
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
620
638
|
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
639
|
+
query = map({
|
|
640
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
641
|
+
});
|
|
621
642
|
return [2, new __HttpRequest({
|
|
622
643
|
protocol: protocol,
|
|
623
644
|
hostname: hostname,
|
|
@@ -625,6 +646,7 @@ export var serializeAws_restJson1GetChannelMessageCommand = function (input, con
|
|
|
625
646
|
method: "GET",
|
|
626
647
|
headers: headers,
|
|
627
648
|
path: resolvedPath,
|
|
649
|
+
query: query,
|
|
628
650
|
body: body,
|
|
629
651
|
})];
|
|
630
652
|
}
|
|
@@ -646,6 +668,7 @@ export var serializeAws_restJson1GetChannelMessageStatusCommand = function (inpu
|
|
|
646
668
|
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
647
669
|
query = map({
|
|
648
670
|
scope: [, "message-status"],
|
|
671
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
649
672
|
});
|
|
650
673
|
return [2, new __HttpRequest({
|
|
651
674
|
protocol: protocol,
|
|
@@ -756,6 +779,7 @@ export var serializeAws_restJson1ListChannelMembershipsCommand = function (input
|
|
|
756
779
|
type: [, input.Type],
|
|
757
780
|
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
758
781
|
"next-token": [, input.NextToken],
|
|
782
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
759
783
|
});
|
|
760
784
|
return [2, new __HttpRequest({
|
|
761
785
|
protocol: protocol,
|
|
@@ -824,6 +848,7 @@ export var serializeAws_restJson1ListChannelMessagesCommand = function (input, c
|
|
|
824
848
|
],
|
|
825
849
|
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
826
850
|
"next-token": [, input.NextToken],
|
|
851
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
827
852
|
});
|
|
828
853
|
return [2, new __HttpRequest({
|
|
829
854
|
protocol: protocol,
|
|
@@ -955,6 +980,35 @@ export var serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand =
|
|
|
955
980
|
}
|
|
956
981
|
});
|
|
957
982
|
}); };
|
|
983
|
+
export var serializeAws_restJson1ListSubChannelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
984
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
985
|
+
return __generator(this, function (_c) {
|
|
986
|
+
switch (_c.label) {
|
|
987
|
+
case 0: return [4, context.endpoint()];
|
|
988
|
+
case 1:
|
|
989
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
990
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
991
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
992
|
+
});
|
|
993
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/subchannels";
|
|
994
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
995
|
+
query = map({
|
|
996
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
997
|
+
"next-token": [, input.NextToken],
|
|
998
|
+
});
|
|
999
|
+
return [2, new __HttpRequest({
|
|
1000
|
+
protocol: protocol,
|
|
1001
|
+
hostname: hostname,
|
|
1002
|
+
port: port,
|
|
1003
|
+
method: "GET",
|
|
1004
|
+
headers: headers,
|
|
1005
|
+
path: resolvedPath,
|
|
1006
|
+
query: query,
|
|
1007
|
+
body: body,
|
|
1008
|
+
})];
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}); };
|
|
958
1012
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
959
1013
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
960
1014
|
return __generator(this, function (_c) {
|
|
@@ -1018,6 +1072,7 @@ export var serializeAws_restJson1RedactChannelMessageCommand = function (input,
|
|
|
1018
1072
|
case 1:
|
|
1019
1073
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1020
1074
|
headers = map({}, isSerializableHeaderValue, {
|
|
1075
|
+
"content-type": "application/json",
|
|
1021
1076
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1022
1077
|
});
|
|
1023
1078
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
@@ -1027,6 +1082,7 @@ export var serializeAws_restJson1RedactChannelMessageCommand = function (input,
|
|
|
1027
1082
|
query = map({
|
|
1028
1083
|
operation: [, "redact"],
|
|
1029
1084
|
});
|
|
1085
|
+
body = JSON.stringify(__assign({}, (input.SubChannelId != null && { SubChannelId: input.SubChannelId })));
|
|
1030
1086
|
return [2, new __HttpRequest({
|
|
1031
1087
|
protocol: protocol,
|
|
1032
1088
|
hostname: hostname,
|
|
@@ -1085,11 +1141,11 @@ export var serializeAws_restJson1SendChannelMessageCommand = function (input, co
|
|
|
1085
1141
|
});
|
|
1086
1142
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
|
|
1087
1143
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1088
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
1144
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
1089
1145
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
1090
1146
|
})), (input.Metadata != null && { Metadata: input.Metadata })), (input.Persistence != null && { Persistence: input.Persistence })), (input.PushNotification != null && {
|
|
1091
1147
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
1092
|
-
})), (input.Type != null && { Type: input.Type })));
|
|
1148
|
+
})), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })), (input.Type != null && { Type: input.Type })));
|
|
1093
1149
|
return [2, new __HttpRequest({
|
|
1094
1150
|
protocol: protocol,
|
|
1095
1151
|
hostname: hostname,
|
|
@@ -1224,7 +1280,7 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
|
|
|
1224
1280
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
1225
1281
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1226
1282
|
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
1227
|
-
body = JSON.stringify(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })));
|
|
1283
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })));
|
|
1228
1284
|
return [2, new __HttpRequest({
|
|
1229
1285
|
protocol: protocol,
|
|
1230
1286
|
hostname: hostname,
|
|
@@ -1245,10 +1301,12 @@ export var serializeAws_restJson1UpdateChannelReadMarkerCommand = function (inpu
|
|
|
1245
1301
|
case 1:
|
|
1246
1302
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1247
1303
|
headers = map({}, isSerializableHeaderValue, {
|
|
1304
|
+
"content-type": "application/json",
|
|
1248
1305
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1249
1306
|
});
|
|
1250
1307
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/readMarker";
|
|
1251
1308
|
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1309
|
+
body = JSON.stringify(__assign({}, (input.SubChannelId != null && { SubChannelId: input.SubChannelId })));
|
|
1252
1310
|
return [2, new __HttpRequest({
|
|
1253
1311
|
protocol: protocol,
|
|
1254
1312
|
hostname: hostname,
|
|
@@ -1384,29 +1442,37 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
|
|
|
1384
1442
|
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1385
1443
|
case "ForbiddenException": return [3, 4];
|
|
1386
1444
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
1387
|
-
case "
|
|
1388
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1389
|
-
case "
|
|
1390
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1391
|
-
case "
|
|
1392
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1393
|
-
case "
|
|
1394
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1445
|
+
case "NotFoundException": return [3, 6];
|
|
1446
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 6];
|
|
1447
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1448
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 8];
|
|
1449
|
+
case "ServiceFailureException": return [3, 10];
|
|
1450
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 10];
|
|
1451
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1452
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 12];
|
|
1453
|
+
case "ThrottledClientException": return [3, 14];
|
|
1454
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 14];
|
|
1455
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1456
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 16];
|
|
1395
1457
|
}
|
|
1396
|
-
return [3,
|
|
1458
|
+
return [3, 18];
|
|
1397
1459
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1398
1460
|
case 3: throw _d.sent();
|
|
1399
1461
|
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1400
1462
|
case 5: throw _d.sent();
|
|
1401
|
-
case 6: return [4,
|
|
1463
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1402
1464
|
case 7: throw _d.sent();
|
|
1403
|
-
case 8: return [4,
|
|
1465
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1404
1466
|
case 9: throw _d.sent();
|
|
1405
|
-
case 10: return [4,
|
|
1467
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1406
1468
|
case 11: throw _d.sent();
|
|
1407
|
-
case 12: return [4,
|
|
1469
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1408
1470
|
case 13: throw _d.sent();
|
|
1409
|
-
case 14:
|
|
1471
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1472
|
+
case 15: throw _d.sent();
|
|
1473
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1474
|
+
case 17: throw _d.sent();
|
|
1475
|
+
case 18:
|
|
1410
1476
|
parsedBody = parsedOutput.body;
|
|
1411
1477
|
throwDefaultError({
|
|
1412
1478
|
output: output,
|
|
@@ -1414,8 +1480,8 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
|
|
|
1414
1480
|
exceptionCtor: __BaseException,
|
|
1415
1481
|
errorCode: errorCode,
|
|
1416
1482
|
});
|
|
1417
|
-
_d.label =
|
|
1418
|
-
case
|
|
1483
|
+
_d.label = 19;
|
|
1484
|
+
case 19: return [2];
|
|
1419
1485
|
}
|
|
1420
1486
|
});
|
|
1421
1487
|
}); };
|
|
@@ -1779,6 +1845,9 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
|
|
|
1779
1845
|
if (data.Member != null) {
|
|
1780
1846
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
1781
1847
|
}
|
|
1848
|
+
if (data.SubChannelId != null) {
|
|
1849
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
1850
|
+
}
|
|
1782
1851
|
return [2, contents];
|
|
1783
1852
|
}
|
|
1784
1853
|
});
|
|
@@ -1803,35 +1872,39 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
|
|
|
1803
1872
|
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
1804
1873
|
case "ForbiddenException": return [3, 6];
|
|
1805
1874
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
1806
|
-
case "
|
|
1807
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1808
|
-
case "
|
|
1809
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1810
|
-
case "
|
|
1811
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1812
|
-
case "
|
|
1813
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1814
|
-
case "
|
|
1815
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1816
|
-
|
|
1817
|
-
|
|
1875
|
+
case "NotFoundException": return [3, 8];
|
|
1876
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 8];
|
|
1877
|
+
case "ResourceLimitExceededException": return [3, 10];
|
|
1878
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 10];
|
|
1879
|
+
case "ServiceFailureException": return [3, 12];
|
|
1880
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 12];
|
|
1881
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1882
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 14];
|
|
1883
|
+
case "ThrottledClientException": return [3, 16];
|
|
1884
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 16];
|
|
1885
|
+
case "UnauthorizedClientException": return [3, 18];
|
|
1886
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 18];
|
|
1887
|
+
}
|
|
1888
|
+
return [3, 20];
|
|
1818
1889
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1819
1890
|
case 3: throw _d.sent();
|
|
1820
1891
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1821
1892
|
case 5: throw _d.sent();
|
|
1822
1893
|
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1823
1894
|
case 7: throw _d.sent();
|
|
1824
|
-
case 8: return [4,
|
|
1895
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1825
1896
|
case 9: throw _d.sent();
|
|
1826
|
-
case 10: return [4,
|
|
1897
|
+
case 10: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1827
1898
|
case 11: throw _d.sent();
|
|
1828
|
-
case 12: return [4,
|
|
1899
|
+
case 12: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1829
1900
|
case 13: throw _d.sent();
|
|
1830
|
-
case 14: return [4,
|
|
1901
|
+
case 14: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1831
1902
|
case 15: throw _d.sent();
|
|
1832
|
-
case 16: return [4,
|
|
1903
|
+
case 16: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1833
1904
|
case 17: throw _d.sent();
|
|
1834
|
-
case 18:
|
|
1905
|
+
case 18: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1906
|
+
case 19: throw _d.sent();
|
|
1907
|
+
case 20:
|
|
1835
1908
|
parsedBody = parsedOutput.body;
|
|
1836
1909
|
throwDefaultError({
|
|
1837
1910
|
output: output,
|
|
@@ -1839,8 +1912,8 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
|
|
|
1839
1912
|
exceptionCtor: __BaseException,
|
|
1840
1913
|
errorCode: errorCode,
|
|
1841
1914
|
});
|
|
1842
|
-
_d.label =
|
|
1843
|
-
case
|
|
1915
|
+
_d.label = 21;
|
|
1916
|
+
case 21: return [2];
|
|
1844
1917
|
}
|
|
1845
1918
|
});
|
|
1846
1919
|
}); };
|
|
@@ -3645,6 +3718,9 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
|
|
|
3645
3718
|
if (data.NextToken != null) {
|
|
3646
3719
|
contents.NextToken = __expectString(data.NextToken);
|
|
3647
3720
|
}
|
|
3721
|
+
if (data.SubChannelId != null) {
|
|
3722
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
3723
|
+
}
|
|
3648
3724
|
return [2, contents];
|
|
3649
3725
|
}
|
|
3650
3726
|
});
|
|
@@ -4021,6 +4097,88 @@ var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError =
|
|
|
4021
4097
|
}
|
|
4022
4098
|
});
|
|
4023
4099
|
}); };
|
|
4100
|
+
export var deserializeAws_restJson1ListSubChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4101
|
+
var contents, data, _a, _b;
|
|
4102
|
+
return __generator(this, function (_c) {
|
|
4103
|
+
switch (_c.label) {
|
|
4104
|
+
case 0:
|
|
4105
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4106
|
+
return [2, deserializeAws_restJson1ListSubChannelsCommandError(output, context)];
|
|
4107
|
+
}
|
|
4108
|
+
contents = map({
|
|
4109
|
+
$metadata: deserializeMetadata(output),
|
|
4110
|
+
});
|
|
4111
|
+
_a = __expectNonNull;
|
|
4112
|
+
_b = __expectObject;
|
|
4113
|
+
return [4, parseBody(output.body, context)];
|
|
4114
|
+
case 1:
|
|
4115
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4116
|
+
if (data.ChannelArn != null) {
|
|
4117
|
+
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4118
|
+
}
|
|
4119
|
+
if (data.NextToken != null) {
|
|
4120
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
4121
|
+
}
|
|
4122
|
+
if (data.SubChannels != null) {
|
|
4123
|
+
contents.SubChannels = deserializeAws_restJson1SubChannelSummaryList(data.SubChannels, context);
|
|
4124
|
+
}
|
|
4125
|
+
return [2, contents];
|
|
4126
|
+
}
|
|
4127
|
+
});
|
|
4128
|
+
}); };
|
|
4129
|
+
var deserializeAws_restJson1ListSubChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4130
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4131
|
+
var _c;
|
|
4132
|
+
return __generator(this, function (_d) {
|
|
4133
|
+
switch (_d.label) {
|
|
4134
|
+
case 0:
|
|
4135
|
+
_a = [__assign({}, output)];
|
|
4136
|
+
_c = {};
|
|
4137
|
+
return [4, parseBody(output.body, context)];
|
|
4138
|
+
case 1:
|
|
4139
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4140
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4141
|
+
_b = errorCode;
|
|
4142
|
+
switch (_b) {
|
|
4143
|
+
case "BadRequestException": return [3, 2];
|
|
4144
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
4145
|
+
case "ForbiddenException": return [3, 4];
|
|
4146
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
4147
|
+
case "ServiceFailureException": return [3, 6];
|
|
4148
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
4149
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
4150
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
4151
|
+
case "ThrottledClientException": return [3, 10];
|
|
4152
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
4153
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
4154
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
4155
|
+
}
|
|
4156
|
+
return [3, 14];
|
|
4157
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4158
|
+
case 3: throw _d.sent();
|
|
4159
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
4160
|
+
case 5: throw _d.sent();
|
|
4161
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
4162
|
+
case 7: throw _d.sent();
|
|
4163
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4164
|
+
case 9: throw _d.sent();
|
|
4165
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
4166
|
+
case 11: throw _d.sent();
|
|
4167
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
4168
|
+
case 13: throw _d.sent();
|
|
4169
|
+
case 14:
|
|
4170
|
+
parsedBody = parsedOutput.body;
|
|
4171
|
+
throwDefaultError({
|
|
4172
|
+
output: output,
|
|
4173
|
+
parsedBody: parsedBody,
|
|
4174
|
+
exceptionCtor: __BaseException,
|
|
4175
|
+
errorCode: errorCode,
|
|
4176
|
+
});
|
|
4177
|
+
_d.label = 15;
|
|
4178
|
+
case 15: return [2];
|
|
4179
|
+
}
|
|
4180
|
+
});
|
|
4181
|
+
}); };
|
|
4024
4182
|
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4025
4183
|
var contents, data, _a, _b;
|
|
4026
4184
|
return __generator(this, function (_c) {
|
|
@@ -4205,6 +4363,9 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
|
|
|
4205
4363
|
if (data.MessageId != null) {
|
|
4206
4364
|
contents.MessageId = __expectString(data.MessageId);
|
|
4207
4365
|
}
|
|
4366
|
+
if (data.SubChannelId != null) {
|
|
4367
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
4368
|
+
}
|
|
4208
4369
|
return [2, contents];
|
|
4209
4370
|
}
|
|
4210
4371
|
});
|
|
@@ -4370,6 +4531,9 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
|
|
|
4370
4531
|
if (data.Status != null) {
|
|
4371
4532
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
4372
4533
|
}
|
|
4534
|
+
if (data.SubChannelId != null) {
|
|
4535
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
4536
|
+
}
|
|
4373
4537
|
return [2, contents];
|
|
4374
4538
|
}
|
|
4375
4539
|
});
|
|
@@ -4762,6 +4926,9 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
|
|
|
4762
4926
|
if (data.Status != null) {
|
|
4763
4927
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
4764
4928
|
}
|
|
4929
|
+
if (data.SubChannelId != null) {
|
|
4930
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
4931
|
+
}
|
|
4765
4932
|
return [2, contents];
|
|
4766
4933
|
}
|
|
4767
4934
|
});
|
|
@@ -4842,6 +5009,9 @@ export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (ou
|
|
|
4842
5009
|
if (data.ChannelArn != null) {
|
|
4843
5010
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4844
5011
|
}
|
|
5012
|
+
if (data.SubChannelId != null) {
|
|
5013
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
5014
|
+
}
|
|
4845
5015
|
return [2, contents];
|
|
4846
5016
|
}
|
|
4847
5017
|
});
|
|
@@ -5052,11 +5222,11 @@ var serializeAws_restJson1ChannelMembershipPreferences = function (input, contex
|
|
|
5052
5222
|
}));
|
|
5053
5223
|
};
|
|
5054
5224
|
var serializeAws_restJson1ChannelMessageCallback = function (input, context) {
|
|
5055
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
5225
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
5056
5226
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
5057
5227
|
})), (input.MessageId != null && { MessageId: input.MessageId })), (input.Metadata != null && { Metadata: input.Metadata })), (input.PushNotification != null && {
|
|
5058
5228
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
5059
|
-
}));
|
|
5229
|
+
})), (input.SubChannelId != null && { SubChannelId: input.SubChannelId }));
|
|
5060
5230
|
};
|
|
5061
5231
|
var serializeAws_restJson1ChannelModeratorArns = function (input, context) {
|
|
5062
5232
|
return input
|
|
@@ -5065,6 +5235,13 @@ var serializeAws_restJson1ChannelModeratorArns = function (input, context) {
|
|
|
5065
5235
|
return entry;
|
|
5066
5236
|
});
|
|
5067
5237
|
};
|
|
5238
|
+
var serializeAws_restJson1ElasticChannelConfiguration = function (input, context) {
|
|
5239
|
+
return __assign(__assign(__assign({}, (input.MaximumSubChannels != null && { MaximumSubChannels: input.MaximumSubChannels })), (input.MinimumMembershipPercentage != null && {
|
|
5240
|
+
MinimumMembershipPercentage: input.MinimumMembershipPercentage,
|
|
5241
|
+
})), (input.TargetMembershipsPerSubChannel != null && {
|
|
5242
|
+
TargetMembershipsPerSubChannel: input.TargetMembershipsPerSubChannel,
|
|
5243
|
+
}));
|
|
5244
|
+
};
|
|
5068
5245
|
var serializeAws_restJson1LambdaConfiguration = function (input, context) {
|
|
5069
5246
|
return __assign(__assign({}, (input.InvocationType != null && { InvocationType: input.InvocationType })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5070
5247
|
};
|
|
@@ -5157,6 +5334,7 @@ var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output,
|
|
|
5157
5334
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
|
|
5158
5335
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
|
|
5159
5336
|
: undefined,
|
|
5337
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5160
5338
|
Type: __expectString(output.Type),
|
|
5161
5339
|
};
|
|
5162
5340
|
};
|
|
@@ -5165,6 +5343,7 @@ var deserializeAws_restJson1BatchChannelMemberships = function (output, context)
|
|
|
5165
5343
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5166
5344
|
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
5167
5345
|
Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
|
|
5346
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5168
5347
|
Type: __expectString(output.Type),
|
|
5169
5348
|
};
|
|
5170
5349
|
};
|
|
@@ -5194,6 +5373,9 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
5194
5373
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5195
5374
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5196
5375
|
: undefined,
|
|
5376
|
+
ElasticChannelConfiguration: output.ElasticChannelConfiguration != null
|
|
5377
|
+
? deserializeAws_restJson1ElasticChannelConfiguration(output.ElasticChannelConfiguration, context)
|
|
5378
|
+
: undefined,
|
|
5197
5379
|
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
5198
5380
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
5199
5381
|
: undefined,
|
|
@@ -5294,6 +5476,7 @@ var deserializeAws_restJson1ChannelMembership = function (output, context) {
|
|
|
5294
5476
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5295
5477
|
: undefined,
|
|
5296
5478
|
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
5479
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5297
5480
|
Type: __expectString(output.Type),
|
|
5298
5481
|
};
|
|
5299
5482
|
};
|
|
@@ -5363,6 +5546,7 @@ var deserializeAws_restJson1ChannelMessage = function (output, context) {
|
|
|
5363
5546
|
Redacted: __expectBoolean(output.Redacted),
|
|
5364
5547
|
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
5365
5548
|
Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
5549
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5366
5550
|
Type: __expectString(output.Type),
|
|
5367
5551
|
};
|
|
5368
5552
|
};
|
|
@@ -5473,6 +5657,13 @@ var deserializeAws_restJson1ChannelSummaryList = function (output, context) {
|
|
|
5473
5657
|
});
|
|
5474
5658
|
return retVal;
|
|
5475
5659
|
};
|
|
5660
|
+
var deserializeAws_restJson1ElasticChannelConfiguration = function (output, context) {
|
|
5661
|
+
return {
|
|
5662
|
+
MaximumSubChannels: __expectInt32(output.MaximumSubChannels),
|
|
5663
|
+
MinimumMembershipPercentage: __expectInt32(output.MinimumMembershipPercentage),
|
|
5664
|
+
TargetMembershipsPerSubChannel: __expectInt32(output.TargetMembershipsPerSubChannel),
|
|
5665
|
+
};
|
|
5666
|
+
};
|
|
5476
5667
|
var deserializeAws_restJson1Identity = function (output, context) {
|
|
5477
5668
|
return {
|
|
5478
5669
|
Arn: __expectString(output.Arn),
|
|
@@ -5561,6 +5752,23 @@ var deserializeAws_restJson1PushNotificationPreferences = function (output, cont
|
|
|
5561
5752
|
FilterRule: __expectString(output.FilterRule),
|
|
5562
5753
|
};
|
|
5563
5754
|
};
|
|
5755
|
+
var deserializeAws_restJson1SubChannelSummary = function (output, context) {
|
|
5756
|
+
return {
|
|
5757
|
+
MembershipCount: __expectInt32(output.MembershipCount),
|
|
5758
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5759
|
+
};
|
|
5760
|
+
};
|
|
5761
|
+
var deserializeAws_restJson1SubChannelSummaryList = function (output, context) {
|
|
5762
|
+
var retVal = (output || [])
|
|
5763
|
+
.filter(function (e) { return e != null; })
|
|
5764
|
+
.map(function (entry) {
|
|
5765
|
+
if (entry === null) {
|
|
5766
|
+
return null;
|
|
5767
|
+
}
|
|
5768
|
+
return deserializeAws_restJson1SubChannelSummary(entry, context);
|
|
5769
|
+
});
|
|
5770
|
+
return retVal;
|
|
5771
|
+
};
|
|
5564
5772
|
var deserializeAws_restJson1Tag = function (output, context) {
|
|
5565
5773
|
return {
|
|
5566
5774
|
Key: __expectString(output.Key),
|