@aws-sdk/client-chime-sdk-messaging 3.142.0 → 3.150.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 +8 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateChannelReadMarkerCommand = exports.deserializeAws_restJson1UpdateChannelMessageCommand = exports.deserializeAws_restJson1UpdateChannelFlowCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SendChannelMessageCommand = exports.deserializeAws_restJson1SearchChannelsCommand = exports.deserializeAws_restJson1RedactChannelMessageCommand = exports.deserializeAws_restJson1PutChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListChannelModeratorsCommand = exports.deserializeAws_restJson1ListChannelMessagesCommand = exports.deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelMembershipsCommand = exports.deserializeAws_restJson1ListChannelFlowsCommand = exports.deserializeAws_restJson1ListChannelBansCommand = exports.deserializeAws_restJson1GetMessagingSessionEndpointCommand = exports.deserializeAws_restJson1GetChannelMessageStatusCommand = exports.deserializeAws_restJson1GetChannelMessageCommand = exports.deserializeAws_restJson1GetChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1DisassociateChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelModeratorCommand = exports.deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipCommand = exports.deserializeAws_restJson1DescribeChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelBanCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteChannelModeratorCommand = exports.deserializeAws_restJson1DeleteChannelMessageCommand = exports.deserializeAws_restJson1DeleteChannelMembershipCommand = exports.deserializeAws_restJson1DeleteChannelFlowCommand = exports.deserializeAws_restJson1DeleteChannelBanCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateChannelModeratorCommand = exports.deserializeAws_restJson1CreateChannelMembershipCommand = exports.deserializeAws_restJson1CreateChannelFlowCommand = exports.deserializeAws_restJson1CreateChannelBanCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ChannelFlowCallbackCommand = exports.deserializeAws_restJson1BatchCreateChannelMembershipCommand = exports.deserializeAws_restJson1AssociateChannelFlowCommand = exports.serializeAws_restJson1UpdateChannelReadMarkerCommand = exports.serializeAws_restJson1UpdateChannelMessageCommand = exports.serializeAws_restJson1UpdateChannelFlowCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SendChannelMessageCommand = exports.serializeAws_restJson1SearchChannelsCommand = exports.serializeAws_restJson1RedactChannelMessageCommand = exports.serializeAws_restJson1PutChannelMembershipPreferencesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSubChannelsCommand = exports.serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = exports.serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListChannelModeratorsCommand = exports.serializeAws_restJson1ListChannelMessagesCommand = exports.serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = exports.serializeAws_restJson1ListChannelMembershipsCommand = exports.serializeAws_restJson1ListChannelFlowsCommand = exports.serializeAws_restJson1ListChannelBansCommand = exports.serializeAws_restJson1GetMessagingSessionEndpointCommand = exports.serializeAws_restJson1GetChannelMessageStatusCommand = exports.serializeAws_restJson1GetChannelMessageCommand = exports.serializeAws_restJson1GetChannelMembershipPreferencesCommand = exports.serializeAws_restJson1DisassociateChannelFlowCommand = exports.serializeAws_restJson1DescribeChannelModeratorCommand = exports.serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = exports.serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = exports.serializeAws_restJson1DescribeChannelMembershipCommand = exports.serializeAws_restJson1DescribeChannelFlowCommand = exports.serializeAws_restJson1DescribeChannelBanCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteChannelModeratorCommand = exports.serializeAws_restJson1DeleteChannelMessageCommand = exports.serializeAws_restJson1DeleteChannelMembershipCommand = exports.serializeAws_restJson1DeleteChannelFlowCommand = exports.serializeAws_restJson1DeleteChannelBanCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateChannelModeratorCommand = exports.serializeAws_restJson1CreateChannelMembershipCommand = exports.serializeAws_restJson1CreateChannelFlowCommand = exports.serializeAws_restJson1CreateChannelBanCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ChannelFlowCallbackCommand = exports.serializeAws_restJson1BatchCreateChannelMembershipCommand = exports.serializeAws_restJson1AssociateChannelFlowCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateChannelReadMarkerCommand = exports.deserializeAws_restJson1UpdateChannelMessageCommand = exports.deserializeAws_restJson1UpdateChannelFlowCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SendChannelMessageCommand = exports.deserializeAws_restJson1SearchChannelsCommand = exports.deserializeAws_restJson1RedactChannelMessageCommand = exports.deserializeAws_restJson1PutChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSubChannelsCommand = exports.deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListChannelModeratorsCommand = exports.deserializeAws_restJson1ListChannelMessagesCommand = exports.deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand = exports.deserializeAws_restJson1ListChannelMembershipsCommand = exports.deserializeAws_restJson1ListChannelFlowsCommand = exports.deserializeAws_restJson1ListChannelBansCommand = exports.deserializeAws_restJson1GetMessagingSessionEndpointCommand = exports.deserializeAws_restJson1GetChannelMessageStatusCommand = exports.deserializeAws_restJson1GetChannelMessageCommand = exports.deserializeAws_restJson1GetChannelMembershipPreferencesCommand = exports.deserializeAws_restJson1DisassociateChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelModeratorCommand = exports.deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = exports.deserializeAws_restJson1DescribeChannelMembershipCommand = exports.deserializeAws_restJson1DescribeChannelFlowCommand = exports.deserializeAws_restJson1DescribeChannelBanCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteChannelModeratorCommand = exports.deserializeAws_restJson1DeleteChannelMessageCommand = exports.deserializeAws_restJson1DeleteChannelMembershipCommand = exports.deserializeAws_restJson1DeleteChannelFlowCommand = exports.deserializeAws_restJson1DeleteChannelBanCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateChannelModeratorCommand = exports.deserializeAws_restJson1CreateChannelMembershipCommand = exports.deserializeAws_restJson1CreateChannelFlowCommand = exports.deserializeAws_restJson1CreateChannelBanCommand = exports.deserializeAws_restJson1CreateChannelCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -44,6 +44,7 @@ const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input,
|
|
|
44
44
|
let body;
|
|
45
45
|
body = JSON.stringify({
|
|
46
46
|
...(input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) }),
|
|
47
|
+
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
47
48
|
...(input.Type != null && { Type: input.Type }),
|
|
48
49
|
});
|
|
49
50
|
return new protocol_http_1.HttpRequest({
|
|
@@ -102,6 +103,9 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
102
103
|
...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
|
|
103
104
|
...(input.ChannelId != null && { ChannelId: input.ChannelId }),
|
|
104
105
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
106
|
+
...(input.ElasticChannelConfiguration != null && {
|
|
107
|
+
ElasticChannelConfiguration: serializeAws_restJson1ElasticChannelConfiguration(input.ElasticChannelConfiguration, context),
|
|
108
|
+
}),
|
|
105
109
|
...(input.MemberArns != null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) }),
|
|
106
110
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
107
111
|
...(input.Mode != null && { Mode: input.Mode }),
|
|
@@ -182,6 +186,7 @@ const serializeAws_restJson1CreateChannelMembershipCommand = async (input, conte
|
|
|
182
186
|
let body;
|
|
183
187
|
body = JSON.stringify({
|
|
184
188
|
...(input.MemberArn != null && { MemberArn: input.MemberArn }),
|
|
189
|
+
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
185
190
|
...(input.Type != null && { Type: input.Type }),
|
|
186
191
|
});
|
|
187
192
|
return new protocol_http_1.HttpRequest({
|
|
@@ -225,6 +230,9 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
|
|
|
225
230
|
});
|
|
226
231
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
227
232
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
233
|
+
const query = map({
|
|
234
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
235
|
+
});
|
|
228
236
|
let body;
|
|
229
237
|
return new protocol_http_1.HttpRequest({
|
|
230
238
|
protocol,
|
|
@@ -233,6 +241,7 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
|
|
|
233
241
|
method: "DELETE",
|
|
234
242
|
headers,
|
|
235
243
|
path: resolvedPath,
|
|
244
|
+
query,
|
|
236
245
|
body,
|
|
237
246
|
});
|
|
238
247
|
};
|
|
@@ -283,6 +292,9 @@ const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, conte
|
|
|
283
292
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
284
293
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
285
294
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
295
|
+
const query = map({
|
|
296
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
297
|
+
});
|
|
286
298
|
let body;
|
|
287
299
|
return new protocol_http_1.HttpRequest({
|
|
288
300
|
protocol,
|
|
@@ -291,6 +303,7 @@ const serializeAws_restJson1DeleteChannelMembershipCommand = async (input, conte
|
|
|
291
303
|
method: "DELETE",
|
|
292
304
|
headers,
|
|
293
305
|
path: resolvedPath,
|
|
306
|
+
query,
|
|
294
307
|
body,
|
|
295
308
|
});
|
|
296
309
|
};
|
|
@@ -304,6 +317,9 @@ const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context)
|
|
|
304
317
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
305
318
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
306
319
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
320
|
+
const query = map({
|
|
321
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
322
|
+
});
|
|
307
323
|
let body;
|
|
308
324
|
return new protocol_http_1.HttpRequest({
|
|
309
325
|
protocol,
|
|
@@ -312,6 +328,7 @@ const serializeAws_restJson1DeleteChannelMessageCommand = async (input, context)
|
|
|
312
328
|
method: "DELETE",
|
|
313
329
|
headers,
|
|
314
330
|
path: resolvedPath,
|
|
331
|
+
query,
|
|
315
332
|
body,
|
|
316
333
|
});
|
|
317
334
|
};
|
|
@@ -402,6 +419,9 @@ const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, con
|
|
|
402
419
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
403
420
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
404
421
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
422
|
+
const query = map({
|
|
423
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
424
|
+
});
|
|
405
425
|
let body;
|
|
406
426
|
return new protocol_http_1.HttpRequest({
|
|
407
427
|
protocol,
|
|
@@ -410,6 +430,7 @@ const serializeAws_restJson1DescribeChannelMembershipCommand = async (input, con
|
|
|
410
430
|
method: "GET",
|
|
411
431
|
headers,
|
|
412
432
|
path: resolvedPath,
|
|
433
|
+
query,
|
|
413
434
|
body,
|
|
414
435
|
});
|
|
415
436
|
};
|
|
@@ -534,6 +555,9 @@ const serializeAws_restJson1GetChannelMessageCommand = async (input, context) =>
|
|
|
534
555
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
535
556
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
536
557
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
558
|
+
const query = map({
|
|
559
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
560
|
+
});
|
|
537
561
|
let body;
|
|
538
562
|
return new protocol_http_1.HttpRequest({
|
|
539
563
|
protocol,
|
|
@@ -542,6 +566,7 @@ const serializeAws_restJson1GetChannelMessageCommand = async (input, context) =>
|
|
|
542
566
|
method: "GET",
|
|
543
567
|
headers,
|
|
544
568
|
path: resolvedPath,
|
|
569
|
+
query,
|
|
545
570
|
body,
|
|
546
571
|
});
|
|
547
572
|
};
|
|
@@ -557,6 +582,7 @@ const serializeAws_restJson1GetChannelMessageStatusCommand = async (input, conte
|
|
|
557
582
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
558
583
|
const query = map({
|
|
559
584
|
scope: [, "message-status"],
|
|
585
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
560
586
|
});
|
|
561
587
|
let body;
|
|
562
588
|
return new protocol_http_1.HttpRequest({
|
|
@@ -647,6 +673,7 @@ const serializeAws_restJson1ListChannelMembershipsCommand = async (input, contex
|
|
|
647
673
|
type: [, input.Type],
|
|
648
674
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
649
675
|
"next-token": [, input.NextToken],
|
|
676
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
650
677
|
});
|
|
651
678
|
let body;
|
|
652
679
|
return new protocol_http_1.HttpRequest({
|
|
@@ -705,6 +732,7 @@ const serializeAws_restJson1ListChannelMessagesCommand = async (input, context)
|
|
|
705
732
|
],
|
|
706
733
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
707
734
|
"next-token": [, input.NextToken],
|
|
735
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
708
736
|
});
|
|
709
737
|
let body;
|
|
710
738
|
return new protocol_http_1.HttpRequest({
|
|
@@ -816,6 +844,30 @@ const serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = asyn
|
|
|
816
844
|
});
|
|
817
845
|
};
|
|
818
846
|
exports.serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand = serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand;
|
|
847
|
+
const serializeAws_restJson1ListSubChannelsCommand = async (input, context) => {
|
|
848
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
849
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
850
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
851
|
+
});
|
|
852
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/subchannels";
|
|
853
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
854
|
+
const query = map({
|
|
855
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
856
|
+
"next-token": [, input.NextToken],
|
|
857
|
+
});
|
|
858
|
+
let body;
|
|
859
|
+
return new protocol_http_1.HttpRequest({
|
|
860
|
+
protocol,
|
|
861
|
+
hostname,
|
|
862
|
+
port,
|
|
863
|
+
method: "GET",
|
|
864
|
+
headers,
|
|
865
|
+
path: resolvedPath,
|
|
866
|
+
query,
|
|
867
|
+
body,
|
|
868
|
+
});
|
|
869
|
+
};
|
|
870
|
+
exports.serializeAws_restJson1ListSubChannelsCommand = serializeAws_restJson1ListSubChannelsCommand;
|
|
819
871
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
820
872
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
821
873
|
const headers = {};
|
|
@@ -866,6 +918,7 @@ exports.serializeAws_restJson1PutChannelMembershipPreferencesCommand = serialize
|
|
|
866
918
|
const serializeAws_restJson1RedactChannelMessageCommand = async (input, context) => {
|
|
867
919
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
868
920
|
const headers = map({}, isSerializableHeaderValue, {
|
|
921
|
+
"content-type": "application/json",
|
|
869
922
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
870
923
|
});
|
|
871
924
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -876,6 +929,9 @@ const serializeAws_restJson1RedactChannelMessageCommand = async (input, context)
|
|
|
876
929
|
operation: [, "redact"],
|
|
877
930
|
});
|
|
878
931
|
let body;
|
|
932
|
+
body = JSON.stringify({
|
|
933
|
+
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
934
|
+
});
|
|
879
935
|
return new protocol_http_1.HttpRequest({
|
|
880
936
|
protocol,
|
|
881
937
|
hostname,
|
|
@@ -937,6 +993,7 @@ const serializeAws_restJson1SendChannelMessageCommand = async (input, context) =
|
|
|
937
993
|
...(input.PushNotification != null && {
|
|
938
994
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
939
995
|
}),
|
|
996
|
+
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
940
997
|
...(input.Type != null && { Type: input.Type }),
|
|
941
998
|
});
|
|
942
999
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1064,6 +1121,7 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
|
|
|
1064
1121
|
body = JSON.stringify({
|
|
1065
1122
|
...(input.Content != null && { Content: input.Content }),
|
|
1066
1123
|
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
1124
|
+
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
1067
1125
|
});
|
|
1068
1126
|
return new protocol_http_1.HttpRequest({
|
|
1069
1127
|
protocol,
|
|
@@ -1079,11 +1137,15 @@ exports.serializeAws_restJson1UpdateChannelMessageCommand = serializeAws_restJso
|
|
|
1079
1137
|
const serializeAws_restJson1UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
1080
1138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1081
1139
|
const headers = map({}, isSerializableHeaderValue, {
|
|
1140
|
+
"content-type": "application/json",
|
|
1082
1141
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1083
1142
|
});
|
|
1084
1143
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker";
|
|
1085
1144
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1086
1145
|
let body;
|
|
1146
|
+
body = JSON.stringify({
|
|
1147
|
+
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
1148
|
+
});
|
|
1087
1149
|
return new protocol_http_1.HttpRequest({
|
|
1088
1150
|
protocol,
|
|
1089
1151
|
hostname,
|
|
@@ -1177,6 +1239,12 @@ const deserializeAws_restJson1BatchCreateChannelMembershipCommandError = async (
|
|
|
1177
1239
|
case "ForbiddenException":
|
|
1178
1240
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1179
1241
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1242
|
+
case "NotFoundException":
|
|
1243
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1244
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1245
|
+
case "ResourceLimitExceededException":
|
|
1246
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1247
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1180
1248
|
case "ServiceFailureException":
|
|
1181
1249
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1182
1250
|
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
@@ -1436,6 +1504,9 @@ const deserializeAws_restJson1CreateChannelMembershipCommand = async (output, co
|
|
|
1436
1504
|
if (data.Member != null) {
|
|
1437
1505
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
1438
1506
|
}
|
|
1507
|
+
if (data.SubChannelId != null) {
|
|
1508
|
+
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
1509
|
+
}
|
|
1439
1510
|
return contents;
|
|
1440
1511
|
};
|
|
1441
1512
|
exports.deserializeAws_restJson1CreateChannelMembershipCommand = deserializeAws_restJson1CreateChannelMembershipCommand;
|
|
@@ -1455,6 +1526,9 @@ const deserializeAws_restJson1CreateChannelMembershipCommandError = async (outpu
|
|
|
1455
1526
|
case "ForbiddenException":
|
|
1456
1527
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1457
1528
|
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1529
|
+
case "NotFoundException":
|
|
1530
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1531
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1458
1532
|
case "ResourceLimitExceededException":
|
|
1459
1533
|
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1460
1534
|
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
@@ -2657,6 +2731,9 @@ const deserializeAws_restJson1ListChannelMessagesCommand = async (output, contex
|
|
|
2657
2731
|
if (data.NextToken != null) {
|
|
2658
2732
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2659
2733
|
}
|
|
2734
|
+
if (data.SubChannelId != null) {
|
|
2735
|
+
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
2736
|
+
}
|
|
2660
2737
|
return contents;
|
|
2661
2738
|
};
|
|
2662
2739
|
exports.deserializeAws_restJson1ListChannelMessagesCommand = deserializeAws_restJson1ListChannelMessagesCommand;
|
|
@@ -2906,6 +2983,61 @@ const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError
|
|
|
2906
2983
|
});
|
|
2907
2984
|
}
|
|
2908
2985
|
};
|
|
2986
|
+
const deserializeAws_restJson1ListSubChannelsCommand = async (output, context) => {
|
|
2987
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2988
|
+
return deserializeAws_restJson1ListSubChannelsCommandError(output, context);
|
|
2989
|
+
}
|
|
2990
|
+
const contents = map({
|
|
2991
|
+
$metadata: deserializeMetadata(output),
|
|
2992
|
+
});
|
|
2993
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2994
|
+
if (data.ChannelArn != null) {
|
|
2995
|
+
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
2996
|
+
}
|
|
2997
|
+
if (data.NextToken != null) {
|
|
2998
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2999
|
+
}
|
|
3000
|
+
if (data.SubChannels != null) {
|
|
3001
|
+
contents.SubChannels = deserializeAws_restJson1SubChannelSummaryList(data.SubChannels, context);
|
|
3002
|
+
}
|
|
3003
|
+
return contents;
|
|
3004
|
+
};
|
|
3005
|
+
exports.deserializeAws_restJson1ListSubChannelsCommand = deserializeAws_restJson1ListSubChannelsCommand;
|
|
3006
|
+
const deserializeAws_restJson1ListSubChannelsCommandError = async (output, context) => {
|
|
3007
|
+
const parsedOutput = {
|
|
3008
|
+
...output,
|
|
3009
|
+
body: await parseBody(output.body, context),
|
|
3010
|
+
};
|
|
3011
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3012
|
+
switch (errorCode) {
|
|
3013
|
+
case "BadRequestException":
|
|
3014
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3015
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3016
|
+
case "ForbiddenException":
|
|
3017
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3018
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3019
|
+
case "ServiceFailureException":
|
|
3020
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3021
|
+
throw await deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context);
|
|
3022
|
+
case "ServiceUnavailableException":
|
|
3023
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3024
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3025
|
+
case "ThrottledClientException":
|
|
3026
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3027
|
+
throw await deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context);
|
|
3028
|
+
case "UnauthorizedClientException":
|
|
3029
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3030
|
+
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
3031
|
+
default:
|
|
3032
|
+
const parsedBody = parsedOutput.body;
|
|
3033
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3034
|
+
output,
|
|
3035
|
+
parsedBody,
|
|
3036
|
+
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3037
|
+
errorCode,
|
|
3038
|
+
});
|
|
3039
|
+
}
|
|
3040
|
+
};
|
|
2909
3041
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2910
3042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2911
3043
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
@@ -3027,6 +3159,9 @@ const deserializeAws_restJson1RedactChannelMessageCommand = async (output, conte
|
|
|
3027
3159
|
if (data.MessageId != null) {
|
|
3028
3160
|
contents.MessageId = (0, smithy_client_1.expectString)(data.MessageId);
|
|
3029
3161
|
}
|
|
3162
|
+
if (data.SubChannelId != null) {
|
|
3163
|
+
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3164
|
+
}
|
|
3030
3165
|
return contents;
|
|
3031
3166
|
};
|
|
3032
3167
|
exports.deserializeAws_restJson1RedactChannelMessageCommand = deserializeAws_restJson1RedactChannelMessageCommand;
|
|
@@ -3137,6 +3272,9 @@ const deserializeAws_restJson1SendChannelMessageCommand = async (output, context
|
|
|
3137
3272
|
if (data.Status != null) {
|
|
3138
3273
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
3139
3274
|
}
|
|
3275
|
+
if (data.SubChannelId != null) {
|
|
3276
|
+
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3277
|
+
}
|
|
3140
3278
|
return contents;
|
|
3141
3279
|
};
|
|
3142
3280
|
exports.deserializeAws_restJson1SendChannelMessageCommand = deserializeAws_restJson1SendChannelMessageCommand;
|
|
@@ -3394,6 +3532,9 @@ const deserializeAws_restJson1UpdateChannelMessageCommand = async (output, conte
|
|
|
3394
3532
|
if (data.Status != null) {
|
|
3395
3533
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
3396
3534
|
}
|
|
3535
|
+
if (data.SubChannelId != null) {
|
|
3536
|
+
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3537
|
+
}
|
|
3397
3538
|
return contents;
|
|
3398
3539
|
};
|
|
3399
3540
|
exports.deserializeAws_restJson1UpdateChannelMessageCommand = deserializeAws_restJson1UpdateChannelMessageCommand;
|
|
@@ -3446,6 +3587,9 @@ const deserializeAws_restJson1UpdateChannelReadMarkerCommand = async (output, co
|
|
|
3446
3587
|
if (data.ChannelArn != null) {
|
|
3447
3588
|
contents.ChannelArn = (0, smithy_client_1.expectString)(data.ChannelArn);
|
|
3448
3589
|
}
|
|
3590
|
+
if (data.SubChannelId != null) {
|
|
3591
|
+
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3592
|
+
}
|
|
3449
3593
|
return contents;
|
|
3450
3594
|
};
|
|
3451
3595
|
exports.deserializeAws_restJson1UpdateChannelReadMarkerCommand = deserializeAws_restJson1UpdateChannelReadMarkerCommand;
|
|
@@ -3648,6 +3792,7 @@ const serializeAws_restJson1ChannelMessageCallback = (input, context) => {
|
|
|
3648
3792
|
...(input.PushNotification != null && {
|
|
3649
3793
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
3650
3794
|
}),
|
|
3795
|
+
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
3651
3796
|
};
|
|
3652
3797
|
};
|
|
3653
3798
|
const serializeAws_restJson1ChannelModeratorArns = (input, context) => {
|
|
@@ -3657,6 +3802,17 @@ const serializeAws_restJson1ChannelModeratorArns = (input, context) => {
|
|
|
3657
3802
|
return entry;
|
|
3658
3803
|
});
|
|
3659
3804
|
};
|
|
3805
|
+
const serializeAws_restJson1ElasticChannelConfiguration = (input, context) => {
|
|
3806
|
+
return {
|
|
3807
|
+
...(input.MaximumSubChannels != null && { MaximumSubChannels: input.MaximumSubChannels }),
|
|
3808
|
+
...(input.MinimumMembershipPercentage != null && {
|
|
3809
|
+
MinimumMembershipPercentage: input.MinimumMembershipPercentage,
|
|
3810
|
+
}),
|
|
3811
|
+
...(input.TargetMembershipsPerSubChannel != null && {
|
|
3812
|
+
TargetMembershipsPerSubChannel: input.TargetMembershipsPerSubChannel,
|
|
3813
|
+
}),
|
|
3814
|
+
};
|
|
3815
|
+
};
|
|
3660
3816
|
const serializeAws_restJson1LambdaConfiguration = (input, context) => {
|
|
3661
3817
|
return {
|
|
3662
3818
|
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
@@ -3776,6 +3932,7 @@ const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, contex
|
|
|
3776
3932
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
|
|
3777
3933
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadMarkerTimestamp)))
|
|
3778
3934
|
: undefined,
|
|
3935
|
+
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
3779
3936
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3780
3937
|
};
|
|
3781
3938
|
};
|
|
@@ -3784,6 +3941,7 @@ const deserializeAws_restJson1BatchChannelMemberships = (output, context) => {
|
|
|
3784
3941
|
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
3785
3942
|
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
3786
3943
|
Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
|
|
3944
|
+
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
3787
3945
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3788
3946
|
};
|
|
3789
3947
|
};
|
|
@@ -3813,6 +3971,9 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
3813
3971
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
3814
3972
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
3815
3973
|
: undefined,
|
|
3974
|
+
ElasticChannelConfiguration: output.ElasticChannelConfiguration != null
|
|
3975
|
+
? deserializeAws_restJson1ElasticChannelConfiguration(output.ElasticChannelConfiguration, context)
|
|
3976
|
+
: undefined,
|
|
3816
3977
|
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
3817
3978
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
|
|
3818
3979
|
: undefined,
|
|
@@ -3913,6 +4074,7 @@ const deserializeAws_restJson1ChannelMembership = (output, context) => {
|
|
|
3913
4074
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
3914
4075
|
: undefined,
|
|
3915
4076
|
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
4077
|
+
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
3916
4078
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3917
4079
|
};
|
|
3918
4080
|
};
|
|
@@ -3982,6 +4144,7 @@ const deserializeAws_restJson1ChannelMessage = (output, context) => {
|
|
|
3982
4144
|
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
3983
4145
|
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
3984
4146
|
Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4147
|
+
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
3985
4148
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3986
4149
|
};
|
|
3987
4150
|
};
|
|
@@ -4092,6 +4255,13 @@ const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
|
|
|
4092
4255
|
});
|
|
4093
4256
|
return retVal;
|
|
4094
4257
|
};
|
|
4258
|
+
const deserializeAws_restJson1ElasticChannelConfiguration = (output, context) => {
|
|
4259
|
+
return {
|
|
4260
|
+
MaximumSubChannels: (0, smithy_client_1.expectInt32)(output.MaximumSubChannels),
|
|
4261
|
+
MinimumMembershipPercentage: (0, smithy_client_1.expectInt32)(output.MinimumMembershipPercentage),
|
|
4262
|
+
TargetMembershipsPerSubChannel: (0, smithy_client_1.expectInt32)(output.TargetMembershipsPerSubChannel),
|
|
4263
|
+
};
|
|
4264
|
+
};
|
|
4095
4265
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
4096
4266
|
return {
|
|
4097
4267
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -4181,6 +4351,23 @@ const deserializeAws_restJson1PushNotificationPreferences = (output, context) =>
|
|
|
4181
4351
|
FilterRule: (0, smithy_client_1.expectString)(output.FilterRule),
|
|
4182
4352
|
};
|
|
4183
4353
|
};
|
|
4354
|
+
const deserializeAws_restJson1SubChannelSummary = (output, context) => {
|
|
4355
|
+
return {
|
|
4356
|
+
MembershipCount: (0, smithy_client_1.expectInt32)(output.MembershipCount),
|
|
4357
|
+
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4358
|
+
};
|
|
4359
|
+
};
|
|
4360
|
+
const deserializeAws_restJson1SubChannelSummaryList = (output, context) => {
|
|
4361
|
+
const retVal = (output || [])
|
|
4362
|
+
.filter((e) => e != null)
|
|
4363
|
+
.map((entry) => {
|
|
4364
|
+
if (entry === null) {
|
|
4365
|
+
return null;
|
|
4366
|
+
}
|
|
4367
|
+
return deserializeAws_restJson1SubChannelSummary(entry, context);
|
|
4368
|
+
});
|
|
4369
|
+
return retVal;
|
|
4370
|
+
};
|
|
4184
4371
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
4185
4372
|
return {
|
|
4186
4373
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
@@ -35,6 +35,7 @@ import { ListChannelModeratorsCommand, } from "./commands/ListChannelModeratorsC
|
|
|
35
35
|
import { ListChannelsAssociatedWithChannelFlowCommand, } from "./commands/ListChannelsAssociatedWithChannelFlowCommand";
|
|
36
36
|
import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
|
|
37
37
|
import { ListChannelsModeratedByAppInstanceUserCommand, } from "./commands/ListChannelsModeratedByAppInstanceUserCommand";
|
|
38
|
+
import { ListSubChannelsCommand, } from "./commands/ListSubChannelsCommand";
|
|
38
39
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
39
40
|
import { PutChannelMembershipPreferencesCommand, } from "./commands/PutChannelMembershipPreferencesCommand";
|
|
40
41
|
import { RedactChannelMessageCommand, } from "./commands/RedactChannelMessageCommand";
|
|
@@ -541,6 +542,20 @@ var ChimeSDKMessaging = (function (_super) {
|
|
|
541
542
|
return this.send(command, optionsOrCb);
|
|
542
543
|
}
|
|
543
544
|
};
|
|
545
|
+
ChimeSDKMessaging.prototype.listSubChannels = function (args, optionsOrCb, cb) {
|
|
546
|
+
var command = new ListSubChannelsCommand(args);
|
|
547
|
+
if (typeof optionsOrCb === "function") {
|
|
548
|
+
this.send(command, optionsOrCb);
|
|
549
|
+
}
|
|
550
|
+
else if (typeof cb === "function") {
|
|
551
|
+
if (typeof optionsOrCb !== "object")
|
|
552
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
553
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
return this.send(command, optionsOrCb);
|
|
557
|
+
}
|
|
558
|
+
};
|
|
544
559
|
ChimeSDKMessaging.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
545
560
|
var command = new ListTagsForResourceCommand(args);
|
|
546
561
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListSubChannelsRequestFilterSensitiveLog, ListSubChannelsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListSubChannelsCommand, serializeAws_restJson1ListSubChannelsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListSubChannelsCommand = (function (_super) {
|
|
7
|
+
__extends(ListSubChannelsCommand, _super);
|
|
8
|
+
function ListSubChannelsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListSubChannelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ChimeSDKMessagingClient";
|
|
18
|
+
var commandName = "ListSubChannelsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListSubChannelsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListSubChannelsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListSubChannelsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListSubChannelsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListSubChannelsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListSubChannelsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListSubChannelsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListSubChannelsCommand };
|
|
@@ -33,6 +33,7 @@ export * from "./ListChannelModeratorsCommand";
|
|
|
33
33
|
export * from "./ListChannelsAssociatedWithChannelFlowCommand";
|
|
34
34
|
export * from "./ListChannelsCommand";
|
|
35
35
|
export * from "./ListChannelsModeratedByAppInstanceUserCommand";
|
|
36
|
+
export * from "./ListSubChannelsCommand";
|
|
36
37
|
export * from "./ListTagsForResourceCommand";
|
|
37
38
|
export * from "./PutChannelMembershipPreferencesCommand";
|
|
38
39
|
export * from "./RedactChannelMessageCommand";
|
|
@@ -142,6 +142,20 @@ var UnauthorizedClientException = (function (_super) {
|
|
|
142
142
|
return UnauthorizedClientException;
|
|
143
143
|
}(__BaseException));
|
|
144
144
|
export { UnauthorizedClientException };
|
|
145
|
+
var ResourceLimitExceededException = (function (_super) {
|
|
146
|
+
__extends(ResourceLimitExceededException, _super);
|
|
147
|
+
function ResourceLimitExceededException(opts) {
|
|
148
|
+
var _this = _super.call(this, __assign({ name: "ResourceLimitExceededException", $fault: "client" }, opts)) || this;
|
|
149
|
+
_this.name = "ResourceLimitExceededException";
|
|
150
|
+
_this.$fault = "client";
|
|
151
|
+
Object.setPrototypeOf(_this, ResourceLimitExceededException.prototype);
|
|
152
|
+
_this.Code = opts.Code;
|
|
153
|
+
_this.Message = opts.Message;
|
|
154
|
+
return _this;
|
|
155
|
+
}
|
|
156
|
+
return ResourceLimitExceededException;
|
|
157
|
+
}(__BaseException));
|
|
158
|
+
export { ResourceLimitExceededException };
|
|
145
159
|
export var ChannelMode;
|
|
146
160
|
(function (ChannelMode) {
|
|
147
161
|
ChannelMode["RESTRICTED"] = "RESTRICTED";
|
|
@@ -183,20 +197,6 @@ export var ChannelMessageType;
|
|
|
183
197
|
ChannelMessageType["CONTROL"] = "CONTROL";
|
|
184
198
|
ChannelMessageType["STANDARD"] = "STANDARD";
|
|
185
199
|
})(ChannelMessageType || (ChannelMessageType = {}));
|
|
186
|
-
var ResourceLimitExceededException = (function (_super) {
|
|
187
|
-
__extends(ResourceLimitExceededException, _super);
|
|
188
|
-
function ResourceLimitExceededException(opts) {
|
|
189
|
-
var _this = _super.call(this, __assign({ name: "ResourceLimitExceededException", $fault: "client" }, opts)) || this;
|
|
190
|
-
_this.name = "ResourceLimitExceededException";
|
|
191
|
-
_this.$fault = "client";
|
|
192
|
-
Object.setPrototypeOf(_this, ResourceLimitExceededException.prototype);
|
|
193
|
-
_this.Code = opts.Code;
|
|
194
|
-
_this.Message = opts.Message;
|
|
195
|
-
return _this;
|
|
196
|
-
}
|
|
197
|
-
return ResourceLimitExceededException;
|
|
198
|
-
}(__BaseException));
|
|
199
|
-
export { ResourceLimitExceededException };
|
|
200
200
|
export var SortOrder;
|
|
201
201
|
(function (SortOrder) {
|
|
202
202
|
SortOrder["ASCENDING"] = "ASCENDING";
|
|
@@ -220,6 +220,7 @@ export var BatchCreateChannelMembershipErrorFilterSensitiveLog = function (obj)
|
|
|
220
220
|
export var BatchCreateChannelMembershipResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.BatchChannelMemberships && {
|
|
221
221
|
BatchChannelMemberships: BatchChannelMembershipsFilterSensitiveLog(obj.BatchChannelMemberships),
|
|
222
222
|
}))); };
|
|
223
|
+
export var ElasticChannelConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
223
224
|
export var ChannelFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Metadata && { Metadata: SENSITIVE_STRING })), (obj.CreatedBy && { CreatedBy: IdentityFilterSensitiveLog(obj.CreatedBy) }))); };
|
|
224
225
|
export var ChannelAssociatedWithFlowSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Name && { Name: SENSITIVE_STRING })), (obj.Metadata && { Metadata: SENSITIVE_STRING }))); };
|
|
225
226
|
export var ChannelBanFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Member && { Member: IdentityFilterSensitiveLog(obj.Member) })), (obj.CreatedBy && { CreatedBy: IdentityFilterSensitiveLog(obj.CreatedBy) }))); };
|
|
@@ -343,6 +344,9 @@ export var ListChannelsModeratedByAppInstanceUserRequestFilterSensitiveLog = fun
|
|
|
343
344
|
export var ListChannelsModeratedByAppInstanceUserResponseFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Channels && {
|
|
344
345
|
Channels: obj.Channels.map(function (item) { return ChannelModeratedByAppInstanceUserSummaryFilterSensitiveLog(item); }),
|
|
345
346
|
})), (obj.NextToken && { NextToken: SENSITIVE_STRING }))); };
|
|
347
|
+
export var ListSubChannelsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.NextToken && { NextToken: SENSITIVE_STRING }))); };
|
|
348
|
+
export var SubChannelSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
349
|
+
export var ListSubChannelsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.NextToken && { NextToken: SENSITIVE_STRING }))); };
|
|
346
350
|
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
347
351
|
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
|
|
348
352
|
export var PutChannelMembershipPreferencesRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Preferences && { Preferences: ChannelMembershipPreferencesFilterSensitiveLog(obj.Preferences) }))); };
|