@aws-sdk/client-chime-sdk-messaging 3.30.0 → 3.34.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 +38 -0
- package/ChimeSDKMessaging.ts +2 -1
- package/ChimeSDKMessagingClient.ts +2 -1
- package/README.md +2 -1
- package/dist/cjs/ChimeSDKMessaging.js +2 -1
- package/dist/cjs/ChimeSDKMessaging.js.map +1 -1
- package/dist/cjs/ChimeSDKMessagingClient.js +15 -14
- package/dist/cjs/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/cjs/commands/BatchCreateChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/BatchCreateChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelBanCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelBanCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/CreateChannelModeratorCommand.js +3 -3
- package/dist/cjs/commands/CreateChannelModeratorCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelBanCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelBanCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteChannelModeratorCommand.js +3 -3
- package/dist/cjs/commands/DeleteChannelModeratorCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelBanCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelBanCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelMembershipCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelMembershipCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeChannelModeratorCommand.js +3 -3
- package/dist/cjs/commands/DescribeChannelModeratorCommand.js.map +1 -1
- package/dist/cjs/commands/GetChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/GetChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/GetMessagingSessionEndpointCommand.js +3 -3
- package/dist/cjs/commands/GetMessagingSessionEndpointCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelBansCommand.js +3 -3
- package/dist/cjs/commands/ListChannelBansCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelMembershipsCommand.js +3 -3
- package/dist/cjs/commands/ListChannelMembershipsCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelMessagesCommand.js +3 -3
- package/dist/cjs/commands/ListChannelMessagesCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelModeratorsCommand.js +3 -3
- package/dist/cjs/commands/ListChannelModeratorsCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelsCommand.js +3 -3
- package/dist/cjs/commands/ListChannelsCommand.js.map +1 -1
- package/dist/cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -3
- package/dist/cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/cjs/commands/RedactChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/RedactChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/SendChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/SendChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateChannelCommand.js +3 -3
- package/dist/cjs/commands/UpdateChannelCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateChannelMessageCommand.js +3 -3
- package/dist/cjs/commands/UpdateChannelMessageCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateChannelReadMarkerCommand.js +3 -3
- package/dist/cjs/commands/UpdateChannelReadMarkerCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +41 -41
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js +153 -153
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/ChimeSDKMessaging.js +1 -7
- package/dist/es/ChimeSDKMessaging.js.map +1 -1
- package/dist/es/ChimeSDKMessagingClient.js +1 -12
- package/dist/es/ChimeSDKMessagingClient.js.map +1 -1
- package/dist/es/commands/BatchCreateChannelMembershipCommand.js +2 -27
- package/dist/es/commands/BatchCreateChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelBanCommand.js +2 -38
- package/dist/es/commands/CreateChannelBanCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelCommand.js +2 -37
- package/dist/es/commands/CreateChannelCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelMembershipCommand.js +2 -64
- package/dist/es/commands/CreateChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/CreateChannelModeratorCommand.js +2 -51
- package/dist/es/commands/CreateChannelModeratorCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelBanCommand.js +2 -33
- package/dist/es/commands/DeleteChannelBanCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelCommand.js +2 -34
- package/dist/es/commands/DeleteChannelCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelMembershipCommand.js +2 -33
- package/dist/es/commands/DeleteChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelMessageCommand.js +2 -35
- package/dist/es/commands/DeleteChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelModeratorCommand.js +2 -33
- package/dist/es/commands/DeleteChannelModeratorCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelBanCommand.js +2 -34
- package/dist/es/commands/DescribeChannelBanCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelCommand.js +2 -35
- package/dist/es/commands/DescribeChannelCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelMembershipCommand.js +2 -32
- package/dist/es/commands/DescribeChannelMembershipCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +2 -34
- package/dist/es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +2 -34
- package/dist/es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelModeratorCommand.js +2 -32
- package/dist/es/commands/DescribeChannelModeratorCommand.js.map +1 -1
- package/dist/es/commands/GetChannelMessageCommand.js +2 -33
- package/dist/es/commands/GetChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/GetMessagingSessionEndpointCommand.js +2 -27
- package/dist/es/commands/GetMessagingSessionEndpointCommand.js.map +1 -1
- package/dist/es/commands/ListChannelBansCommand.js +2 -33
- package/dist/es/commands/ListChannelBansCommand.js.map +1 -1
- package/dist/es/commands/ListChannelMembershipsCommand.js +2 -34
- package/dist/es/commands/ListChannelMembershipsCommand.js.map +1 -1
- package/dist/es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +2 -34
- package/dist/es/commands/ListChannelMembershipsForAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/ListChannelMessagesCommand.js +2 -37
- package/dist/es/commands/ListChannelMessagesCommand.js.map +1 -1
- package/dist/es/commands/ListChannelModeratorsCommand.js +2 -32
- package/dist/es/commands/ListChannelModeratorsCommand.js.map +1 -1
- package/dist/es/commands/ListChannelsCommand.js +2 -48
- package/dist/es/commands/ListChannelsCommand.js.map +1 -1
- package/dist/es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +2 -33
- package/dist/es/commands/ListChannelsModeratedByAppInstanceUserCommand.js.map +1 -1
- package/dist/es/commands/RedactChannelMessageCommand.js +2 -34
- package/dist/es/commands/RedactChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/SendChannelMessageCommand.js +2 -36
- package/dist/es/commands/SendChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/UpdateChannelCommand.js +2 -34
- package/dist/es/commands/UpdateChannelCommand.js.map +1 -1
- package/dist/es/commands/UpdateChannelMessageCommand.js +2 -33
- package/dist/es/commands/UpdateChannelMessageCommand.js.map +1 -1
- package/dist/es/commands/UpdateChannelReadMarkerCommand.js +2 -33
- package/dist/es/commands/UpdateChannelReadMarkerCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -246
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListChannelBansPaginator.js +16 -28
- package/dist/es/pagination/ListChannelBansPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js +16 -28
- package/dist/es/pagination/ListChannelMembershipsForAppInstanceUserPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelMembershipsPaginator.js +16 -28
- package/dist/es/pagination/ListChannelMembershipsPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelMessagesPaginator.js +16 -28
- package/dist/es/pagination/ListChannelMessagesPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelModeratorsPaginator.js +16 -28
- package/dist/es/pagination/ListChannelModeratorsPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js +16 -28
- package/dist/es/pagination/ListChannelsModeratedByAppInstanceUserPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelsPaginator.js +16 -28
- package/dist/es/pagination/ListChannelsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +1079 -1084
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ChimeSDKMessagingClient.d.ts +2 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/ChimeSDKMessaging.d.ts +2 -1
- package/dist/types/ts3.4/ChimeSDKMessagingClient.d.ts +2 -1
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_restJson1.ts +17 -15
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
7
7
|
return __generator(this, function (_c) {
|
|
8
8
|
switch (_c.label) {
|
|
9
|
-
case 0: return [4
|
|
9
|
+
case 0: return [4, context.endpoint()];
|
|
10
10
|
case 1:
|
|
11
11
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
12
12
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -26,7 +26,7 @@ export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function
|
|
|
26
26
|
};
|
|
27
27
|
body = JSON.stringify(__assign(__assign({}, (input.MemberArns !== undefined &&
|
|
28
28
|
input.MemberArns !== null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
29
|
-
return [2
|
|
29
|
+
return [2, new __HttpRequest({
|
|
30
30
|
protocol: protocol,
|
|
31
31
|
hostname: hostname,
|
|
32
32
|
port: port,
|
|
@@ -44,7 +44,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
44
44
|
var _c;
|
|
45
45
|
return __generator(this, function (_d) {
|
|
46
46
|
switch (_d.label) {
|
|
47
|
-
case 0: return [4
|
|
47
|
+
case 0: return [4, context.endpoint()];
|
|
48
48
|
case 1:
|
|
49
49
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
50
50
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -52,7 +52,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
52
52
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !== undefined &&
|
|
53
53
|
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Privacy !== undefined && input.Privacy !== null && { Privacy: input.Privacy })), (input.Tags !== undefined &&
|
|
54
54
|
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
55
|
-
return [2
|
|
55
|
+
return [2, new __HttpRequest({
|
|
56
56
|
protocol: protocol,
|
|
57
57
|
hostname: hostname,
|
|
58
58
|
port: port,
|
|
@@ -68,7 +68,7 @@ export var serializeAws_restJson1CreateChannelBanCommand = function (input, cont
|
|
|
68
68
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
69
69
|
return __generator(this, function (_c) {
|
|
70
70
|
switch (_c.label) {
|
|
71
|
-
case 0: return [4
|
|
71
|
+
case 0: return [4, context.endpoint()];
|
|
72
72
|
case 1:
|
|
73
73
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
74
74
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -84,7 +84,7 @@ export var serializeAws_restJson1CreateChannelBanCommand = function (input, cont
|
|
|
84
84
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
85
85
|
}
|
|
86
86
|
body = JSON.stringify(__assign({}, (input.MemberArn !== undefined && input.MemberArn !== null && { MemberArn: input.MemberArn })));
|
|
87
|
-
return [2
|
|
87
|
+
return [2, new __HttpRequest({
|
|
88
88
|
protocol: protocol,
|
|
89
89
|
hostname: hostname,
|
|
90
90
|
port: port,
|
|
@@ -100,7 +100,7 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
|
|
|
100
100
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
101
101
|
return __generator(this, function (_c) {
|
|
102
102
|
switch (_c.label) {
|
|
103
|
-
case 0: return [4
|
|
103
|
+
case 0: return [4, context.endpoint()];
|
|
104
104
|
case 1:
|
|
105
105
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
106
106
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -116,7 +116,7 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
|
|
|
116
116
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
117
117
|
}
|
|
118
118
|
body = JSON.stringify(__assign(__assign({}, (input.MemberArn !== undefined && input.MemberArn !== null && { MemberArn: input.MemberArn })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
119
|
-
return [2
|
|
119
|
+
return [2, new __HttpRequest({
|
|
120
120
|
protocol: protocol,
|
|
121
121
|
hostname: hostname,
|
|
122
122
|
port: port,
|
|
@@ -132,7 +132,7 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
|
|
|
132
132
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
133
133
|
return __generator(this, function (_c) {
|
|
134
134
|
switch (_c.label) {
|
|
135
|
-
case 0: return [4
|
|
135
|
+
case 0: return [4, context.endpoint()];
|
|
136
136
|
case 1:
|
|
137
137
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
138
138
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -149,7 +149,7 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
|
|
|
149
149
|
}
|
|
150
150
|
body = JSON.stringify(__assign({}, (input.ChannelModeratorArn !== undefined &&
|
|
151
151
|
input.ChannelModeratorArn !== null && { ChannelModeratorArn: input.ChannelModeratorArn })));
|
|
152
|
-
return [2
|
|
152
|
+
return [2, new __HttpRequest({
|
|
153
153
|
protocol: protocol,
|
|
154
154
|
hostname: hostname,
|
|
155
155
|
port: port,
|
|
@@ -165,7 +165,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
165
165
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
166
166
|
return __generator(this, function (_c) {
|
|
167
167
|
switch (_c.label) {
|
|
168
|
-
case 0: return [4
|
|
168
|
+
case 0: return [4, context.endpoint()];
|
|
169
169
|
case 1:
|
|
170
170
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
171
171
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -180,7 +180,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
180
180
|
else {
|
|
181
181
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
182
182
|
}
|
|
183
|
-
return [2
|
|
183
|
+
return [2, new __HttpRequest({
|
|
184
184
|
protocol: protocol,
|
|
185
185
|
hostname: hostname,
|
|
186
186
|
port: port,
|
|
@@ -196,7 +196,7 @@ export var serializeAws_restJson1DeleteChannelBanCommand = function (input, cont
|
|
|
196
196
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
197
197
|
return __generator(this, function (_c) {
|
|
198
198
|
switch (_c.label) {
|
|
199
|
-
case 0: return [4
|
|
199
|
+
case 0: return [4, context.endpoint()];
|
|
200
200
|
case 1:
|
|
201
201
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
202
202
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -221,7 +221,7 @@ export var serializeAws_restJson1DeleteChannelBanCommand = function (input, cont
|
|
|
221
221
|
else {
|
|
222
222
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
223
223
|
}
|
|
224
|
-
return [2
|
|
224
|
+
return [2, new __HttpRequest({
|
|
225
225
|
protocol: protocol,
|
|
226
226
|
hostname: hostname,
|
|
227
227
|
port: port,
|
|
@@ -237,7 +237,7 @@ export var serializeAws_restJson1DeleteChannelMembershipCommand = function (inpu
|
|
|
237
237
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
238
238
|
return __generator(this, function (_c) {
|
|
239
239
|
switch (_c.label) {
|
|
240
|
-
case 0: return [4
|
|
240
|
+
case 0: return [4, context.endpoint()];
|
|
241
241
|
case 1:
|
|
242
242
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
243
243
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -263,7 +263,7 @@ export var serializeAws_restJson1DeleteChannelMembershipCommand = function (inpu
|
|
|
263
263
|
else {
|
|
264
264
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
265
265
|
}
|
|
266
|
-
return [2
|
|
266
|
+
return [2, new __HttpRequest({
|
|
267
267
|
protocol: protocol,
|
|
268
268
|
hostname: hostname,
|
|
269
269
|
port: port,
|
|
@@ -279,7 +279,7 @@ export var serializeAws_restJson1DeleteChannelMessageCommand = function (input,
|
|
|
279
279
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
280
280
|
return __generator(this, function (_c) {
|
|
281
281
|
switch (_c.label) {
|
|
282
|
-
case 0: return [4
|
|
282
|
+
case 0: return [4, context.endpoint()];
|
|
283
283
|
case 1:
|
|
284
284
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
285
285
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -305,7 +305,7 @@ export var serializeAws_restJson1DeleteChannelMessageCommand = function (input,
|
|
|
305
305
|
else {
|
|
306
306
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
307
307
|
}
|
|
308
|
-
return [2
|
|
308
|
+
return [2, new __HttpRequest({
|
|
309
309
|
protocol: protocol,
|
|
310
310
|
hostname: hostname,
|
|
311
311
|
port: port,
|
|
@@ -321,7 +321,7 @@ export var serializeAws_restJson1DeleteChannelModeratorCommand = function (input
|
|
|
321
321
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
322
322
|
return __generator(this, function (_c) {
|
|
323
323
|
switch (_c.label) {
|
|
324
|
-
case 0: return [4
|
|
324
|
+
case 0: return [4, context.endpoint()];
|
|
325
325
|
case 1:
|
|
326
326
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
327
327
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -347,7 +347,7 @@ export var serializeAws_restJson1DeleteChannelModeratorCommand = function (input
|
|
|
347
347
|
else {
|
|
348
348
|
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
349
349
|
}
|
|
350
|
-
return [2
|
|
350
|
+
return [2, new __HttpRequest({
|
|
351
351
|
protocol: protocol,
|
|
352
352
|
hostname: hostname,
|
|
353
353
|
port: port,
|
|
@@ -363,7 +363,7 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
|
|
|
363
363
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
364
364
|
return __generator(this, function (_c) {
|
|
365
365
|
switch (_c.label) {
|
|
366
|
-
case 0: return [4
|
|
366
|
+
case 0: return [4, context.endpoint()];
|
|
367
367
|
case 1:
|
|
368
368
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
369
369
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -378,7 +378,7 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
|
|
|
378
378
|
else {
|
|
379
379
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
380
380
|
}
|
|
381
|
-
return [2
|
|
381
|
+
return [2, new __HttpRequest({
|
|
382
382
|
protocol: protocol,
|
|
383
383
|
hostname: hostname,
|
|
384
384
|
port: port,
|
|
@@ -394,7 +394,7 @@ export var serializeAws_restJson1DescribeChannelBanCommand = function (input, co
|
|
|
394
394
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
395
395
|
return __generator(this, function (_c) {
|
|
396
396
|
switch (_c.label) {
|
|
397
|
-
case 0: return [4
|
|
397
|
+
case 0: return [4, context.endpoint()];
|
|
398
398
|
case 1:
|
|
399
399
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
400
400
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -419,7 +419,7 @@ export var serializeAws_restJson1DescribeChannelBanCommand = function (input, co
|
|
|
419
419
|
else {
|
|
420
420
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
421
421
|
}
|
|
422
|
-
return [2
|
|
422
|
+
return [2, new __HttpRequest({
|
|
423
423
|
protocol: protocol,
|
|
424
424
|
hostname: hostname,
|
|
425
425
|
port: port,
|
|
@@ -435,7 +435,7 @@ export var serializeAws_restJson1DescribeChannelMembershipCommand = function (in
|
|
|
435
435
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
436
436
|
return __generator(this, function (_c) {
|
|
437
437
|
switch (_c.label) {
|
|
438
|
-
case 0: return [4
|
|
438
|
+
case 0: return [4, context.endpoint()];
|
|
439
439
|
case 1:
|
|
440
440
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
441
441
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -461,7 +461,7 @@ export var serializeAws_restJson1DescribeChannelMembershipCommand = function (in
|
|
|
461
461
|
else {
|
|
462
462
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
463
463
|
}
|
|
464
|
-
return [2
|
|
464
|
+
return [2, new __HttpRequest({
|
|
465
465
|
protocol: protocol,
|
|
466
466
|
hostname: hostname,
|
|
467
467
|
port: port,
|
|
@@ -477,7 +477,7 @@ export var serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserComm
|
|
|
477
477
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
478
478
|
return __generator(this, function (_c) {
|
|
479
479
|
switch (_c.label) {
|
|
480
|
-
case 0: return [4
|
|
480
|
+
case 0: return [4, context.endpoint()];
|
|
481
481
|
case 1:
|
|
482
482
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
483
483
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -493,7 +493,7 @@ export var serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserComm
|
|
|
493
493
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
494
494
|
}
|
|
495
495
|
query = __assign({ scope: "app-instance-user-membership" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn }));
|
|
496
|
-
return [2
|
|
496
|
+
return [2, new __HttpRequest({
|
|
497
497
|
protocol: protocol,
|
|
498
498
|
hostname: hostname,
|
|
499
499
|
port: port,
|
|
@@ -510,7 +510,7 @@ export var serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComman
|
|
|
510
510
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
511
511
|
return __generator(this, function (_c) {
|
|
512
512
|
switch (_c.label) {
|
|
513
|
-
case 0: return [4
|
|
513
|
+
case 0: return [4, context.endpoint()];
|
|
514
514
|
case 1:
|
|
515
515
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
516
516
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -526,7 +526,7 @@ export var serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComman
|
|
|
526
526
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
527
527
|
}
|
|
528
528
|
query = __assign({ scope: "app-instance-user-moderated-channel" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn }));
|
|
529
|
-
return [2
|
|
529
|
+
return [2, new __HttpRequest({
|
|
530
530
|
protocol: protocol,
|
|
531
531
|
hostname: hostname,
|
|
532
532
|
port: port,
|
|
@@ -543,7 +543,7 @@ export var serializeAws_restJson1DescribeChannelModeratorCommand = function (inp
|
|
|
543
543
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
544
544
|
return __generator(this, function (_c) {
|
|
545
545
|
switch (_c.label) {
|
|
546
|
-
case 0: return [4
|
|
546
|
+
case 0: return [4, context.endpoint()];
|
|
547
547
|
case 1:
|
|
548
548
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
549
549
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -569,7 +569,7 @@ export var serializeAws_restJson1DescribeChannelModeratorCommand = function (inp
|
|
|
569
569
|
else {
|
|
570
570
|
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
571
571
|
}
|
|
572
|
-
return [2
|
|
572
|
+
return [2, new __HttpRequest({
|
|
573
573
|
protocol: protocol,
|
|
574
574
|
hostname: hostname,
|
|
575
575
|
port: port,
|
|
@@ -585,7 +585,7 @@ export var serializeAws_restJson1GetChannelMessageCommand = function (input, con
|
|
|
585
585
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
586
586
|
return __generator(this, function (_c) {
|
|
587
587
|
switch (_c.label) {
|
|
588
|
-
case 0: return [4
|
|
588
|
+
case 0: return [4, context.endpoint()];
|
|
589
589
|
case 1:
|
|
590
590
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
591
591
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -611,7 +611,7 @@ export var serializeAws_restJson1GetChannelMessageCommand = function (input, con
|
|
|
611
611
|
else {
|
|
612
612
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
613
613
|
}
|
|
614
|
-
return [2
|
|
614
|
+
return [2, new __HttpRequest({
|
|
615
615
|
protocol: protocol,
|
|
616
616
|
hostname: hostname,
|
|
617
617
|
port: port,
|
|
@@ -627,7 +627,7 @@ export var serializeAws_restJson1GetMessagingSessionEndpointCommand = function (
|
|
|
627
627
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
628
628
|
return __generator(this, function (_c) {
|
|
629
629
|
switch (_c.label) {
|
|
630
|
-
case 0: return [4
|
|
630
|
+
case 0: return [4, context.endpoint()];
|
|
631
631
|
case 1:
|
|
632
632
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
633
633
|
headers = {
|
|
@@ -635,7 +635,7 @@ export var serializeAws_restJson1GetMessagingSessionEndpointCommand = function (
|
|
|
635
635
|
};
|
|
636
636
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/endpoints/messaging-session";
|
|
637
637
|
body = "";
|
|
638
|
-
return [2
|
|
638
|
+
return [2, new __HttpRequest({
|
|
639
639
|
protocol: protocol,
|
|
640
640
|
hostname: hostname,
|
|
641
641
|
port: port,
|
|
@@ -651,7 +651,7 @@ export var serializeAws_restJson1ListChannelBansCommand = function (input, conte
|
|
|
651
651
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
652
652
|
return __generator(this, function (_c) {
|
|
653
653
|
switch (_c.label) {
|
|
654
|
-
case 0: return [4
|
|
654
|
+
case 0: return [4, context.endpoint()];
|
|
655
655
|
case 1:
|
|
656
656
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
657
657
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -667,7 +667,7 @@ export var serializeAws_restJson1ListChannelBansCommand = function (input, conte
|
|
|
667
667
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
668
668
|
}
|
|
669
669
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
670
|
-
return [2
|
|
670
|
+
return [2, new __HttpRequest({
|
|
671
671
|
protocol: protocol,
|
|
672
672
|
hostname: hostname,
|
|
673
673
|
port: port,
|
|
@@ -684,7 +684,7 @@ export var serializeAws_restJson1ListChannelMembershipsCommand = function (input
|
|
|
684
684
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
685
685
|
return __generator(this, function (_c) {
|
|
686
686
|
switch (_c.label) {
|
|
687
|
-
case 0: return [4
|
|
687
|
+
case 0: return [4, context.endpoint()];
|
|
688
688
|
case 1:
|
|
689
689
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
690
690
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -700,7 +700,7 @@ export var serializeAws_restJson1ListChannelMembershipsCommand = function (input
|
|
|
700
700
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
701
701
|
}
|
|
702
702
|
query = __assign(__assign(__assign({}, (input.Type !== undefined && { type: input.Type })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
703
|
-
return [2
|
|
703
|
+
return [2, new __HttpRequest({
|
|
704
704
|
protocol: protocol,
|
|
705
705
|
hostname: hostname,
|
|
706
706
|
port: port,
|
|
@@ -717,13 +717,13 @@ export var serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand
|
|
|
717
717
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
718
718
|
return __generator(this, function (_c) {
|
|
719
719
|
switch (_c.label) {
|
|
720
|
-
case 0: return [4
|
|
720
|
+
case 0: return [4, context.endpoint()];
|
|
721
721
|
case 1:
|
|
722
722
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
723
723
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
724
724
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
725
725
|
query = __assign(__assign(__assign({ scope: "app-instance-user-memberships" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
726
|
-
return [2
|
|
726
|
+
return [2, new __HttpRequest({
|
|
727
727
|
protocol: protocol,
|
|
728
728
|
hostname: hostname,
|
|
729
729
|
port: port,
|
|
@@ -740,7 +740,7 @@ export var serializeAws_restJson1ListChannelMessagesCommand = function (input, c
|
|
|
740
740
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
741
741
|
return __generator(this, function (_c) {
|
|
742
742
|
switch (_c.label) {
|
|
743
|
-
case 0: return [4
|
|
743
|
+
case 0: return [4, context.endpoint()];
|
|
744
744
|
case 1:
|
|
745
745
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
746
746
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -758,7 +758,7 @@ export var serializeAws_restJson1ListChannelMessagesCommand = function (input, c
|
|
|
758
758
|
query = __assign(__assign(__assign(__assign(__assign({}, (input.SortOrder !== undefined && { "sort-order": input.SortOrder })), (input.NotBefore !== undefined && {
|
|
759
759
|
"not-before": (input.NotBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
760
760
|
})), (input.NotAfter !== undefined && { "not-after": (input.NotAfter.toISOString().split(".")[0] + "Z").toString() })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
761
|
-
return [2
|
|
761
|
+
return [2, new __HttpRequest({
|
|
762
762
|
protocol: protocol,
|
|
763
763
|
hostname: hostname,
|
|
764
764
|
port: port,
|
|
@@ -775,7 +775,7 @@ export var serializeAws_restJson1ListChannelModeratorsCommand = function (input,
|
|
|
775
775
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
776
776
|
return __generator(this, function (_c) {
|
|
777
777
|
switch (_c.label) {
|
|
778
|
-
case 0: return [4
|
|
778
|
+
case 0: return [4, context.endpoint()];
|
|
779
779
|
case 1:
|
|
780
780
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
781
781
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -791,7 +791,7 @@ export var serializeAws_restJson1ListChannelModeratorsCommand = function (input,
|
|
|
791
791
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
792
792
|
}
|
|
793
793
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
794
|
-
return [2
|
|
794
|
+
return [2, new __HttpRequest({
|
|
795
795
|
protocol: protocol,
|
|
796
796
|
hostname: hostname,
|
|
797
797
|
port: port,
|
|
@@ -808,13 +808,13 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
|
|
|
808
808
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
809
809
|
return __generator(this, function (_c) {
|
|
810
810
|
switch (_c.label) {
|
|
811
|
-
case 0: return [4
|
|
811
|
+
case 0: return [4, context.endpoint()];
|
|
812
812
|
case 1:
|
|
813
813
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
814
814
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
815
815
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
816
816
|
query = __assign(__assign(__assign(__assign({}, (input.AppInstanceArn !== undefined && { "app-instance-arn": input.AppInstanceArn })), (input.Privacy !== undefined && { privacy: input.Privacy })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
817
|
-
return [2
|
|
817
|
+
return [2, new __HttpRequest({
|
|
818
818
|
protocol: protocol,
|
|
819
819
|
hostname: hostname,
|
|
820
820
|
port: port,
|
|
@@ -831,13 +831,13 @@ export var serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand =
|
|
|
831
831
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
832
832
|
return __generator(this, function (_c) {
|
|
833
833
|
switch (_c.label) {
|
|
834
|
-
case 0: return [4
|
|
834
|
+
case 0: return [4, context.endpoint()];
|
|
835
835
|
case 1:
|
|
836
836
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
837
837
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
838
838
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
839
839
|
query = __assign(__assign(__assign({ scope: "app-instance-user-moderated-channels" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
840
|
-
return [2
|
|
840
|
+
return [2, new __HttpRequest({
|
|
841
841
|
protocol: protocol,
|
|
842
842
|
hostname: hostname,
|
|
843
843
|
port: port,
|
|
@@ -854,7 +854,7 @@ export var serializeAws_restJson1RedactChannelMessageCommand = function (input,
|
|
|
854
854
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
855
855
|
return __generator(this, function (_c) {
|
|
856
856
|
switch (_c.label) {
|
|
857
|
-
case 0: return [4
|
|
857
|
+
case 0: return [4, context.endpoint()];
|
|
858
858
|
case 1:
|
|
859
859
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
860
860
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -883,7 +883,7 @@ export var serializeAws_restJson1RedactChannelMessageCommand = function (input,
|
|
|
883
883
|
query = {
|
|
884
884
|
operation: "redact",
|
|
885
885
|
};
|
|
886
|
-
return [2
|
|
886
|
+
return [2, new __HttpRequest({
|
|
887
887
|
protocol: protocol,
|
|
888
888
|
hostname: hostname,
|
|
889
889
|
port: port,
|
|
@@ -901,7 +901,7 @@ export var serializeAws_restJson1SendChannelMessageCommand = function (input, co
|
|
|
901
901
|
var _c;
|
|
902
902
|
return __generator(this, function (_d) {
|
|
903
903
|
switch (_d.label) {
|
|
904
|
-
case 0: return [4
|
|
904
|
+
case 0: return [4, context.endpoint()];
|
|
905
905
|
case 1:
|
|
906
906
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
907
907
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -917,7 +917,7 @@ export var serializeAws_restJson1SendChannelMessageCommand = function (input, co
|
|
|
917
917
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
918
918
|
}
|
|
919
919
|
body = JSON.stringify(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content !== undefined && input.Content !== null && { Content: input.Content })), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Persistence !== undefined && input.Persistence !== null && { Persistence: input.Persistence })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
920
|
-
return [2
|
|
920
|
+
return [2, new __HttpRequest({
|
|
921
921
|
protocol: protocol,
|
|
922
922
|
hostname: hostname,
|
|
923
923
|
port: port,
|
|
@@ -933,7 +933,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
933
933
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
934
934
|
return __generator(this, function (_c) {
|
|
935
935
|
switch (_c.label) {
|
|
936
|
-
case 0: return [4
|
|
936
|
+
case 0: return [4, context.endpoint()];
|
|
937
937
|
case 1:
|
|
938
938
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
939
939
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -949,7 +949,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
949
949
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
950
950
|
}
|
|
951
951
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
952
|
-
return [2
|
|
952
|
+
return [2, new __HttpRequest({
|
|
953
953
|
protocol: protocol,
|
|
954
954
|
hostname: hostname,
|
|
955
955
|
port: port,
|
|
@@ -965,7 +965,7 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
|
|
|
965
965
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
966
966
|
return __generator(this, function (_c) {
|
|
967
967
|
switch (_c.label) {
|
|
968
|
-
case 0: return [4
|
|
968
|
+
case 0: return [4, context.endpoint()];
|
|
969
969
|
case 1:
|
|
970
970
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
971
971
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -992,7 +992,7 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
|
|
|
992
992
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
993
993
|
}
|
|
994
994
|
body = JSON.stringify(__assign(__assign({}, (input.Content !== undefined && input.Content !== null && { Content: input.Content })), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })));
|
|
995
|
-
return [2
|
|
995
|
+
return [2, new __HttpRequest({
|
|
996
996
|
protocol: protocol,
|
|
997
997
|
hostname: hostname,
|
|
998
998
|
port: port,
|
|
@@ -1008,7 +1008,7 @@ export var serializeAws_restJson1UpdateChannelReadMarkerCommand = function (inpu
|
|
|
1008
1008
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1009
1009
|
return __generator(this, function (_c) {
|
|
1010
1010
|
switch (_c.label) {
|
|
1011
|
-
case 0: return [4
|
|
1011
|
+
case 0: return [4, context.endpoint()];
|
|
1012
1012
|
case 1:
|
|
1013
1013
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1014
1014
|
headers = __assign({}, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
@@ -1023,7 +1023,7 @@ export var serializeAws_restJson1UpdateChannelReadMarkerCommand = function (inpu
|
|
|
1023
1023
|
else {
|
|
1024
1024
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1025
1025
|
}
|
|
1026
|
-
return [2
|
|
1026
|
+
return [2, new __HttpRequest({
|
|
1027
1027
|
protocol: protocol,
|
|
1028
1028
|
hostname: hostname,
|
|
1029
1029
|
port: port,
|
|
@@ -1041,7 +1041,7 @@ export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = functio
|
|
|
1041
1041
|
switch (_c.label) {
|
|
1042
1042
|
case 0:
|
|
1043
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return [2
|
|
1044
|
+
return [2, deserializeAws_restJson1BatchCreateChannelMembershipCommandError(output, context)];
|
|
1045
1045
|
}
|
|
1046
1046
|
contents = {
|
|
1047
1047
|
$metadata: deserializeMetadata(output),
|
|
@@ -1050,7 +1050,7 @@ export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = functio
|
|
|
1050
1050
|
};
|
|
1051
1051
|
_a = __expectNonNull;
|
|
1052
1052
|
_b = __expectObject;
|
|
1053
|
-
return [4
|
|
1053
|
+
return [4, parseBody(output.body, context)];
|
|
1054
1054
|
case 1:
|
|
1055
1055
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1056
1056
|
if (data.BatchChannelMemberships !== undefined && data.BatchChannelMemberships !== null) {
|
|
@@ -1059,7 +1059,7 @@ export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = functio
|
|
|
1059
1059
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
1060
1060
|
contents.Errors = deserializeAws_restJson1BatchCreateChannelMembershipErrors(data.Errors, context);
|
|
1061
1061
|
}
|
|
1062
|
-
return [2
|
|
1062
|
+
return [2, Promise.resolve(contents)];
|
|
1063
1063
|
}
|
|
1064
1064
|
});
|
|
1065
1065
|
}); };
|
|
@@ -1071,63 +1071,63 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
|
|
|
1071
1071
|
case 0:
|
|
1072
1072
|
_a = [__assign({}, output)];
|
|
1073
1073
|
_j = {};
|
|
1074
|
-
return [4
|
|
1074
|
+
return [4, parseBody(output.body, context)];
|
|
1075
1075
|
case 1:
|
|
1076
1076
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1077
1077
|
errorCode = "UnknownError";
|
|
1078
1078
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
_b = errorCode;
|
|
1080
1080
|
switch (_b) {
|
|
1081
|
-
case "BadRequestException": return [3
|
|
1082
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1083
|
-
case "ForbiddenException": return [3
|
|
1084
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1085
|
-
case "ServiceFailureException": return [3
|
|
1086
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1087
|
-
case "ServiceUnavailableException": return [3
|
|
1088
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1089
|
-
case "ThrottledClientException": return [3
|
|
1090
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1091
|
-
case "UnauthorizedClientException": return [3
|
|
1092
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1093
|
-
}
|
|
1094
|
-
return [3
|
|
1081
|
+
case "BadRequestException": return [3, 2];
|
|
1082
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1083
|
+
case "ForbiddenException": return [3, 4];
|
|
1084
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
1085
|
+
case "ServiceFailureException": return [3, 6];
|
|
1086
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
1087
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1088
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
1089
|
+
case "ThrottledClientException": return [3, 10];
|
|
1090
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
1091
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1092
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
1093
|
+
}
|
|
1094
|
+
return [3, 14];
|
|
1095
1095
|
case 2:
|
|
1096
1096
|
_c = [{}];
|
|
1097
|
-
return [4
|
|
1097
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1098
1098
|
case 3:
|
|
1099
1099
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1100
|
-
return [3
|
|
1100
|
+
return [3, 15];
|
|
1101
1101
|
case 4:
|
|
1102
1102
|
_d = [{}];
|
|
1103
|
-
return [4
|
|
1103
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1104
1104
|
case 5:
|
|
1105
1105
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1106
|
-
return [3
|
|
1106
|
+
return [3, 15];
|
|
1107
1107
|
case 6:
|
|
1108
1108
|
_e = [{}];
|
|
1109
|
-
return [4
|
|
1109
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1110
1110
|
case 7:
|
|
1111
1111
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1112
|
-
return [3
|
|
1112
|
+
return [3, 15];
|
|
1113
1113
|
case 8:
|
|
1114
1114
|
_f = [{}];
|
|
1115
|
-
return [4
|
|
1115
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1116
1116
|
case 9:
|
|
1117
1117
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1118
|
-
return [3
|
|
1118
|
+
return [3, 15];
|
|
1119
1119
|
case 10:
|
|
1120
1120
|
_g = [{}];
|
|
1121
|
-
return [4
|
|
1121
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1122
1122
|
case 11:
|
|
1123
1123
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1124
|
-
return [3
|
|
1124
|
+
return [3, 15];
|
|
1125
1125
|
case 12:
|
|
1126
1126
|
_h = [{}];
|
|
1127
|
-
return [4
|
|
1127
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1128
1128
|
case 13:
|
|
1129
1129
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1130
|
-
return [3
|
|
1130
|
+
return [3, 15];
|
|
1131
1131
|
case 14:
|
|
1132
1132
|
parsedBody = parsedOutput.body;
|
|
1133
1133
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1137,7 +1137,7 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
|
|
|
1137
1137
|
message = response.message || response.Message || errorCode;
|
|
1138
1138
|
response.message = message;
|
|
1139
1139
|
delete response.Message;
|
|
1140
|
-
return [2
|
|
1140
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1141
1141
|
}
|
|
1142
1142
|
});
|
|
1143
1143
|
}); };
|
|
@@ -1147,7 +1147,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1147
1147
|
switch (_c.label) {
|
|
1148
1148
|
case 0:
|
|
1149
1149
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1150
|
-
return [2
|
|
1150
|
+
return [2, deserializeAws_restJson1CreateChannelCommandError(output, context)];
|
|
1151
1151
|
}
|
|
1152
1152
|
contents = {
|
|
1153
1153
|
$metadata: deserializeMetadata(output),
|
|
@@ -1155,13 +1155,13 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1155
1155
|
};
|
|
1156
1156
|
_a = __expectNonNull;
|
|
1157
1157
|
_b = __expectObject;
|
|
1158
|
-
return [4
|
|
1158
|
+
return [4, parseBody(output.body, context)];
|
|
1159
1159
|
case 1:
|
|
1160
1160
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1161
1161
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
1162
1162
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1163
1163
|
}
|
|
1164
|
-
return [2
|
|
1164
|
+
return [2, Promise.resolve(contents)];
|
|
1165
1165
|
}
|
|
1166
1166
|
});
|
|
1167
1167
|
}); };
|
|
@@ -1173,79 +1173,79 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1173
1173
|
case 0:
|
|
1174
1174
|
_a = [__assign({}, output)];
|
|
1175
1175
|
_l = {};
|
|
1176
|
-
return [4
|
|
1176
|
+
return [4, parseBody(output.body, context)];
|
|
1177
1177
|
case 1:
|
|
1178
1178
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1179
1179
|
errorCode = "UnknownError";
|
|
1180
1180
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
1181
|
_b = errorCode;
|
|
1182
1182
|
switch (_b) {
|
|
1183
|
-
case "BadRequestException": return [3
|
|
1184
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1185
|
-
case "ConflictException": return [3
|
|
1186
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
1187
|
-
case "ForbiddenException": return [3
|
|
1188
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1189
|
-
case "ResourceLimitExceededException": return [3
|
|
1190
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3
|
|
1191
|
-
case "ServiceFailureException": return [3
|
|
1192
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1193
|
-
case "ServiceUnavailableException": return [3
|
|
1194
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1195
|
-
case "ThrottledClientException": return [3
|
|
1196
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1197
|
-
case "UnauthorizedClientException": return [3
|
|
1198
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1199
|
-
}
|
|
1200
|
-
return [3
|
|
1183
|
+
case "BadRequestException": return [3, 2];
|
|
1184
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1185
|
+
case "ConflictException": return [3, 4];
|
|
1186
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
1187
|
+
case "ForbiddenException": return [3, 6];
|
|
1188
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
1189
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1190
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 8];
|
|
1191
|
+
case "ServiceFailureException": return [3, 10];
|
|
1192
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 10];
|
|
1193
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1194
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 12];
|
|
1195
|
+
case "ThrottledClientException": return [3, 14];
|
|
1196
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 14];
|
|
1197
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1198
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 16];
|
|
1199
|
+
}
|
|
1200
|
+
return [3, 18];
|
|
1201
1201
|
case 2:
|
|
1202
1202
|
_c = [{}];
|
|
1203
|
-
return [4
|
|
1203
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1204
1204
|
case 3:
|
|
1205
1205
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1206
|
-
return [3
|
|
1206
|
+
return [3, 19];
|
|
1207
1207
|
case 4:
|
|
1208
1208
|
_d = [{}];
|
|
1209
|
-
return [4
|
|
1209
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1210
1210
|
case 5:
|
|
1211
1211
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1212
|
-
return [3
|
|
1212
|
+
return [3, 19];
|
|
1213
1213
|
case 6:
|
|
1214
1214
|
_e = [{}];
|
|
1215
|
-
return [4
|
|
1215
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1216
1216
|
case 7:
|
|
1217
1217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1218
|
-
return [3
|
|
1218
|
+
return [3, 19];
|
|
1219
1219
|
case 8:
|
|
1220
1220
|
_f = [{}];
|
|
1221
|
-
return [4
|
|
1221
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1222
1222
|
case 9:
|
|
1223
1223
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1224
|
-
return [3
|
|
1224
|
+
return [3, 19];
|
|
1225
1225
|
case 10:
|
|
1226
1226
|
_g = [{}];
|
|
1227
|
-
return [4
|
|
1227
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1228
1228
|
case 11:
|
|
1229
1229
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1230
|
-
return [3
|
|
1230
|
+
return [3, 19];
|
|
1231
1231
|
case 12:
|
|
1232
1232
|
_h = [{}];
|
|
1233
|
-
return [4
|
|
1233
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1234
1234
|
case 13:
|
|
1235
1235
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1236
|
-
return [3
|
|
1236
|
+
return [3, 19];
|
|
1237
1237
|
case 14:
|
|
1238
1238
|
_j = [{}];
|
|
1239
|
-
return [4
|
|
1239
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1240
1240
|
case 15:
|
|
1241
1241
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1242
|
-
return [3
|
|
1242
|
+
return [3, 19];
|
|
1243
1243
|
case 16:
|
|
1244
1244
|
_k = [{}];
|
|
1245
|
-
return [4
|
|
1245
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1246
1246
|
case 17:
|
|
1247
1247
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1248
|
-
return [3
|
|
1248
|
+
return [3, 19];
|
|
1249
1249
|
case 18:
|
|
1250
1250
|
parsedBody = parsedOutput.body;
|
|
1251
1251
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1255,7 +1255,7 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1255
1255
|
message = response.message || response.Message || errorCode;
|
|
1256
1256
|
response.message = message;
|
|
1257
1257
|
delete response.Message;
|
|
1258
|
-
return [2
|
|
1258
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
1261
|
}); };
|
|
@@ -1265,7 +1265,7 @@ export var deserializeAws_restJson1CreateChannelBanCommand = function (output, c
|
|
|
1265
1265
|
switch (_c.label) {
|
|
1266
1266
|
case 0:
|
|
1267
1267
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1268
|
-
return [2
|
|
1268
|
+
return [2, deserializeAws_restJson1CreateChannelBanCommandError(output, context)];
|
|
1269
1269
|
}
|
|
1270
1270
|
contents = {
|
|
1271
1271
|
$metadata: deserializeMetadata(output),
|
|
@@ -1274,7 +1274,7 @@ export var deserializeAws_restJson1CreateChannelBanCommand = function (output, c
|
|
|
1274
1274
|
};
|
|
1275
1275
|
_a = __expectNonNull;
|
|
1276
1276
|
_b = __expectObject;
|
|
1277
|
-
return [4
|
|
1277
|
+
return [4, parseBody(output.body, context)];
|
|
1278
1278
|
case 1:
|
|
1279
1279
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1280
1280
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -1283,7 +1283,7 @@ export var deserializeAws_restJson1CreateChannelBanCommand = function (output, c
|
|
|
1283
1283
|
if (data.Member !== undefined && data.Member !== null) {
|
|
1284
1284
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
1285
1285
|
}
|
|
1286
|
-
return [2
|
|
1286
|
+
return [2, Promise.resolve(contents)];
|
|
1287
1287
|
}
|
|
1288
1288
|
});
|
|
1289
1289
|
}); };
|
|
@@ -1295,79 +1295,79 @@ var deserializeAws_restJson1CreateChannelBanCommandError = function (output, con
|
|
|
1295
1295
|
case 0:
|
|
1296
1296
|
_a = [__assign({}, output)];
|
|
1297
1297
|
_l = {};
|
|
1298
|
-
return [4
|
|
1298
|
+
return [4, parseBody(output.body, context)];
|
|
1299
1299
|
case 1:
|
|
1300
1300
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1301
1301
|
errorCode = "UnknownError";
|
|
1302
1302
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1303
1303
|
_b = errorCode;
|
|
1304
1304
|
switch (_b) {
|
|
1305
|
-
case "BadRequestException": return [3
|
|
1306
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1307
|
-
case "ConflictException": return [3
|
|
1308
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
1309
|
-
case "ForbiddenException": return [3
|
|
1310
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1311
|
-
case "ResourceLimitExceededException": return [3
|
|
1312
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3
|
|
1313
|
-
case "ServiceFailureException": return [3
|
|
1314
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1315
|
-
case "ServiceUnavailableException": return [3
|
|
1316
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1317
|
-
case "ThrottledClientException": return [3
|
|
1318
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1319
|
-
case "UnauthorizedClientException": return [3
|
|
1320
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1321
|
-
}
|
|
1322
|
-
return [3
|
|
1305
|
+
case "BadRequestException": return [3, 2];
|
|
1306
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1307
|
+
case "ConflictException": return [3, 4];
|
|
1308
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
1309
|
+
case "ForbiddenException": return [3, 6];
|
|
1310
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
1311
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1312
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 8];
|
|
1313
|
+
case "ServiceFailureException": return [3, 10];
|
|
1314
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 10];
|
|
1315
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1316
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 12];
|
|
1317
|
+
case "ThrottledClientException": return [3, 14];
|
|
1318
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 14];
|
|
1319
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1320
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 16];
|
|
1321
|
+
}
|
|
1322
|
+
return [3, 18];
|
|
1323
1323
|
case 2:
|
|
1324
1324
|
_c = [{}];
|
|
1325
|
-
return [4
|
|
1325
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1326
1326
|
case 3:
|
|
1327
1327
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
-
return [3
|
|
1328
|
+
return [3, 19];
|
|
1329
1329
|
case 4:
|
|
1330
1330
|
_d = [{}];
|
|
1331
|
-
return [4
|
|
1331
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1332
1332
|
case 5:
|
|
1333
1333
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1334
|
-
return [3
|
|
1334
|
+
return [3, 19];
|
|
1335
1335
|
case 6:
|
|
1336
1336
|
_e = [{}];
|
|
1337
|
-
return [4
|
|
1337
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1338
1338
|
case 7:
|
|
1339
1339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
-
return [3
|
|
1340
|
+
return [3, 19];
|
|
1341
1341
|
case 8:
|
|
1342
1342
|
_f = [{}];
|
|
1343
|
-
return [4
|
|
1343
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1344
1344
|
case 9:
|
|
1345
1345
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1346
|
-
return [3
|
|
1346
|
+
return [3, 19];
|
|
1347
1347
|
case 10:
|
|
1348
1348
|
_g = [{}];
|
|
1349
|
-
return [4
|
|
1349
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1350
1350
|
case 11:
|
|
1351
1351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1352
|
-
return [3
|
|
1352
|
+
return [3, 19];
|
|
1353
1353
|
case 12:
|
|
1354
1354
|
_h = [{}];
|
|
1355
|
-
return [4
|
|
1355
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1356
1356
|
case 13:
|
|
1357
1357
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1358
|
-
return [3
|
|
1358
|
+
return [3, 19];
|
|
1359
1359
|
case 14:
|
|
1360
1360
|
_j = [{}];
|
|
1361
|
-
return [4
|
|
1361
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1362
1362
|
case 15:
|
|
1363
1363
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1364
|
-
return [3
|
|
1364
|
+
return [3, 19];
|
|
1365
1365
|
case 16:
|
|
1366
1366
|
_k = [{}];
|
|
1367
|
-
return [4
|
|
1367
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1368
1368
|
case 17:
|
|
1369
1369
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1370
|
-
return [3
|
|
1370
|
+
return [3, 19];
|
|
1371
1371
|
case 18:
|
|
1372
1372
|
parsedBody = parsedOutput.body;
|
|
1373
1373
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1377,7 +1377,7 @@ var deserializeAws_restJson1CreateChannelBanCommandError = function (output, con
|
|
|
1377
1377
|
message = response.message || response.Message || errorCode;
|
|
1378
1378
|
response.message = message;
|
|
1379
1379
|
delete response.Message;
|
|
1380
|
-
return [2
|
|
1380
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1381
1381
|
}
|
|
1382
1382
|
});
|
|
1383
1383
|
}); };
|
|
@@ -1387,7 +1387,7 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
|
|
|
1387
1387
|
switch (_c.label) {
|
|
1388
1388
|
case 0:
|
|
1389
1389
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1390
|
-
return [2
|
|
1390
|
+
return [2, deserializeAws_restJson1CreateChannelMembershipCommandError(output, context)];
|
|
1391
1391
|
}
|
|
1392
1392
|
contents = {
|
|
1393
1393
|
$metadata: deserializeMetadata(output),
|
|
@@ -1396,7 +1396,7 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
|
|
|
1396
1396
|
};
|
|
1397
1397
|
_a = __expectNonNull;
|
|
1398
1398
|
_b = __expectObject;
|
|
1399
|
-
return [4
|
|
1399
|
+
return [4, parseBody(output.body, context)];
|
|
1400
1400
|
case 1:
|
|
1401
1401
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1402
1402
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -1405,7 +1405,7 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
|
|
|
1405
1405
|
if (data.Member !== undefined && data.Member !== null) {
|
|
1406
1406
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
1407
1407
|
}
|
|
1408
|
-
return [2
|
|
1408
|
+
return [2, Promise.resolve(contents)];
|
|
1409
1409
|
}
|
|
1410
1410
|
});
|
|
1411
1411
|
}); };
|
|
@@ -1417,79 +1417,79 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
|
|
|
1417
1417
|
case 0:
|
|
1418
1418
|
_a = [__assign({}, output)];
|
|
1419
1419
|
_l = {};
|
|
1420
|
-
return [4
|
|
1420
|
+
return [4, parseBody(output.body, context)];
|
|
1421
1421
|
case 1:
|
|
1422
1422
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1423
1423
|
errorCode = "UnknownError";
|
|
1424
1424
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
1425
|
_b = errorCode;
|
|
1426
1426
|
switch (_b) {
|
|
1427
|
-
case "BadRequestException": return [3
|
|
1428
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1429
|
-
case "ConflictException": return [3
|
|
1430
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
1431
|
-
case "ForbiddenException": return [3
|
|
1432
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1433
|
-
case "ResourceLimitExceededException": return [3
|
|
1434
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3
|
|
1435
|
-
case "ServiceFailureException": return [3
|
|
1436
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1437
|
-
case "ServiceUnavailableException": return [3
|
|
1438
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1439
|
-
case "ThrottledClientException": return [3
|
|
1440
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1441
|
-
case "UnauthorizedClientException": return [3
|
|
1442
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1443
|
-
}
|
|
1444
|
-
return [3
|
|
1427
|
+
case "BadRequestException": return [3, 2];
|
|
1428
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1429
|
+
case "ConflictException": return [3, 4];
|
|
1430
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
1431
|
+
case "ForbiddenException": return [3, 6];
|
|
1432
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
1433
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1434
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 8];
|
|
1435
|
+
case "ServiceFailureException": return [3, 10];
|
|
1436
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 10];
|
|
1437
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1438
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 12];
|
|
1439
|
+
case "ThrottledClientException": return [3, 14];
|
|
1440
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 14];
|
|
1441
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1442
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 16];
|
|
1443
|
+
}
|
|
1444
|
+
return [3, 18];
|
|
1445
1445
|
case 2:
|
|
1446
1446
|
_c = [{}];
|
|
1447
|
-
return [4
|
|
1447
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1448
1448
|
case 3:
|
|
1449
1449
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1450
|
-
return [3
|
|
1450
|
+
return [3, 19];
|
|
1451
1451
|
case 4:
|
|
1452
1452
|
_d = [{}];
|
|
1453
|
-
return [4
|
|
1453
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1454
1454
|
case 5:
|
|
1455
1455
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1456
|
-
return [3
|
|
1456
|
+
return [3, 19];
|
|
1457
1457
|
case 6:
|
|
1458
1458
|
_e = [{}];
|
|
1459
|
-
return [4
|
|
1459
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1460
1460
|
case 7:
|
|
1461
1461
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1462
|
-
return [3
|
|
1462
|
+
return [3, 19];
|
|
1463
1463
|
case 8:
|
|
1464
1464
|
_f = [{}];
|
|
1465
|
-
return [4
|
|
1465
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1466
1466
|
case 9:
|
|
1467
1467
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1468
|
-
return [3
|
|
1468
|
+
return [3, 19];
|
|
1469
1469
|
case 10:
|
|
1470
1470
|
_g = [{}];
|
|
1471
|
-
return [4
|
|
1471
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1472
1472
|
case 11:
|
|
1473
1473
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1474
|
-
return [3
|
|
1474
|
+
return [3, 19];
|
|
1475
1475
|
case 12:
|
|
1476
1476
|
_h = [{}];
|
|
1477
|
-
return [4
|
|
1477
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1478
1478
|
case 13:
|
|
1479
1479
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1480
|
-
return [3
|
|
1480
|
+
return [3, 19];
|
|
1481
1481
|
case 14:
|
|
1482
1482
|
_j = [{}];
|
|
1483
|
-
return [4
|
|
1483
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1484
1484
|
case 15:
|
|
1485
1485
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1486
|
-
return [3
|
|
1486
|
+
return [3, 19];
|
|
1487
1487
|
case 16:
|
|
1488
1488
|
_k = [{}];
|
|
1489
|
-
return [4
|
|
1489
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1490
1490
|
case 17:
|
|
1491
1491
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1492
|
-
return [3
|
|
1492
|
+
return [3, 19];
|
|
1493
1493
|
case 18:
|
|
1494
1494
|
parsedBody = parsedOutput.body;
|
|
1495
1495
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1499,7 +1499,7 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
|
|
|
1499
1499
|
message = response.message || response.Message || errorCode;
|
|
1500
1500
|
response.message = message;
|
|
1501
1501
|
delete response.Message;
|
|
1502
|
-
return [2
|
|
1502
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1503
1503
|
}
|
|
1504
1504
|
});
|
|
1505
1505
|
}); };
|
|
@@ -1509,7 +1509,7 @@ export var deserializeAws_restJson1CreateChannelModeratorCommand = function (out
|
|
|
1509
1509
|
switch (_c.label) {
|
|
1510
1510
|
case 0:
|
|
1511
1511
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1512
|
-
return [2
|
|
1512
|
+
return [2, deserializeAws_restJson1CreateChannelModeratorCommandError(output, context)];
|
|
1513
1513
|
}
|
|
1514
1514
|
contents = {
|
|
1515
1515
|
$metadata: deserializeMetadata(output),
|
|
@@ -1518,7 +1518,7 @@ export var deserializeAws_restJson1CreateChannelModeratorCommand = function (out
|
|
|
1518
1518
|
};
|
|
1519
1519
|
_a = __expectNonNull;
|
|
1520
1520
|
_b = __expectObject;
|
|
1521
|
-
return [4
|
|
1521
|
+
return [4, parseBody(output.body, context)];
|
|
1522
1522
|
case 1:
|
|
1523
1523
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1524
1524
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -1527,7 +1527,7 @@ export var deserializeAws_restJson1CreateChannelModeratorCommand = function (out
|
|
|
1527
1527
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
1528
1528
|
contents.ChannelModerator = deserializeAws_restJson1Identity(data.ChannelModerator, context);
|
|
1529
1529
|
}
|
|
1530
|
-
return [2
|
|
1530
|
+
return [2, Promise.resolve(contents)];
|
|
1531
1531
|
}
|
|
1532
1532
|
});
|
|
1533
1533
|
}); };
|
|
@@ -1539,79 +1539,79 @@ var deserializeAws_restJson1CreateChannelModeratorCommandError = function (outpu
|
|
|
1539
1539
|
case 0:
|
|
1540
1540
|
_a = [__assign({}, output)];
|
|
1541
1541
|
_l = {};
|
|
1542
|
-
return [4
|
|
1542
|
+
return [4, parseBody(output.body, context)];
|
|
1543
1543
|
case 1:
|
|
1544
1544
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1545
1545
|
errorCode = "UnknownError";
|
|
1546
1546
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1547
|
_b = errorCode;
|
|
1548
1548
|
switch (_b) {
|
|
1549
|
-
case "BadRequestException": return [3
|
|
1550
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1551
|
-
case "ConflictException": return [3
|
|
1552
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
1553
|
-
case "ForbiddenException": return [3
|
|
1554
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1555
|
-
case "ResourceLimitExceededException": return [3
|
|
1556
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3
|
|
1557
|
-
case "ServiceFailureException": return [3
|
|
1558
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1559
|
-
case "ServiceUnavailableException": return [3
|
|
1560
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1561
|
-
case "ThrottledClientException": return [3
|
|
1562
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1563
|
-
case "UnauthorizedClientException": return [3
|
|
1564
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1565
|
-
}
|
|
1566
|
-
return [3
|
|
1549
|
+
case "BadRequestException": return [3, 2];
|
|
1550
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1551
|
+
case "ConflictException": return [3, 4];
|
|
1552
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
1553
|
+
case "ForbiddenException": return [3, 6];
|
|
1554
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
1555
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1556
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 8];
|
|
1557
|
+
case "ServiceFailureException": return [3, 10];
|
|
1558
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 10];
|
|
1559
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1560
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 12];
|
|
1561
|
+
case "ThrottledClientException": return [3, 14];
|
|
1562
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 14];
|
|
1563
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1564
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 16];
|
|
1565
|
+
}
|
|
1566
|
+
return [3, 18];
|
|
1567
1567
|
case 2:
|
|
1568
1568
|
_c = [{}];
|
|
1569
|
-
return [4
|
|
1569
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1570
1570
|
case 3:
|
|
1571
1571
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1572
|
-
return [3
|
|
1572
|
+
return [3, 19];
|
|
1573
1573
|
case 4:
|
|
1574
1574
|
_d = [{}];
|
|
1575
|
-
return [4
|
|
1575
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1576
1576
|
case 5:
|
|
1577
1577
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1578
|
-
return [3
|
|
1578
|
+
return [3, 19];
|
|
1579
1579
|
case 6:
|
|
1580
1580
|
_e = [{}];
|
|
1581
|
-
return [4
|
|
1581
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1582
1582
|
case 7:
|
|
1583
1583
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1584
|
-
return [3
|
|
1584
|
+
return [3, 19];
|
|
1585
1585
|
case 8:
|
|
1586
1586
|
_f = [{}];
|
|
1587
|
-
return [4
|
|
1587
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1588
1588
|
case 9:
|
|
1589
1589
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1590
|
-
return [3
|
|
1590
|
+
return [3, 19];
|
|
1591
1591
|
case 10:
|
|
1592
1592
|
_g = [{}];
|
|
1593
|
-
return [4
|
|
1593
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1594
1594
|
case 11:
|
|
1595
1595
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1596
|
-
return [3
|
|
1596
|
+
return [3, 19];
|
|
1597
1597
|
case 12:
|
|
1598
1598
|
_h = [{}];
|
|
1599
|
-
return [4
|
|
1599
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1600
1600
|
case 13:
|
|
1601
1601
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1602
|
-
return [3
|
|
1602
|
+
return [3, 19];
|
|
1603
1603
|
case 14:
|
|
1604
1604
|
_j = [{}];
|
|
1605
|
-
return [4
|
|
1605
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1606
1606
|
case 15:
|
|
1607
1607
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1608
|
-
return [3
|
|
1608
|
+
return [3, 19];
|
|
1609
1609
|
case 16:
|
|
1610
1610
|
_k = [{}];
|
|
1611
|
-
return [4
|
|
1611
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1612
1612
|
case 17:
|
|
1613
1613
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1614
|
-
return [3
|
|
1614
|
+
return [3, 19];
|
|
1615
1615
|
case 18:
|
|
1616
1616
|
parsedBody = parsedOutput.body;
|
|
1617
1617
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1621,7 +1621,7 @@ var deserializeAws_restJson1CreateChannelModeratorCommandError = function (outpu
|
|
|
1621
1621
|
message = response.message || response.Message || errorCode;
|
|
1622
1622
|
response.message = message;
|
|
1623
1623
|
delete response.Message;
|
|
1624
|
-
return [2
|
|
1624
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1625
1625
|
}
|
|
1626
1626
|
});
|
|
1627
1627
|
}); };
|
|
@@ -1631,15 +1631,15 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
|
|
|
1631
1631
|
switch (_a.label) {
|
|
1632
1632
|
case 0:
|
|
1633
1633
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1634
|
-
return [2
|
|
1634
|
+
return [2, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
|
|
1635
1635
|
}
|
|
1636
1636
|
contents = {
|
|
1637
1637
|
$metadata: deserializeMetadata(output),
|
|
1638
1638
|
};
|
|
1639
|
-
return [4
|
|
1639
|
+
return [4, collectBody(output.body, context)];
|
|
1640
1640
|
case 1:
|
|
1641
1641
|
_a.sent();
|
|
1642
|
-
return [2
|
|
1642
|
+
return [2, Promise.resolve(contents)];
|
|
1643
1643
|
}
|
|
1644
1644
|
});
|
|
1645
1645
|
}); };
|
|
@@ -1651,63 +1651,63 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
1651
1651
|
case 0:
|
|
1652
1652
|
_a = [__assign({}, output)];
|
|
1653
1653
|
_j = {};
|
|
1654
|
-
return [4
|
|
1654
|
+
return [4, parseBody(output.body, context)];
|
|
1655
1655
|
case 1:
|
|
1656
1656
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1657
1657
|
errorCode = "UnknownError";
|
|
1658
1658
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
1659
|
_b = errorCode;
|
|
1660
1660
|
switch (_b) {
|
|
1661
|
-
case "BadRequestException": return [3
|
|
1662
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1663
|
-
case "ForbiddenException": return [3
|
|
1664
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1665
|
-
case "ServiceFailureException": return [3
|
|
1666
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1667
|
-
case "ServiceUnavailableException": return [3
|
|
1668
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1669
|
-
case "ThrottledClientException": return [3
|
|
1670
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1671
|
-
case "UnauthorizedClientException": return [3
|
|
1672
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1673
|
-
}
|
|
1674
|
-
return [3
|
|
1661
|
+
case "BadRequestException": return [3, 2];
|
|
1662
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1663
|
+
case "ForbiddenException": return [3, 4];
|
|
1664
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
1665
|
+
case "ServiceFailureException": return [3, 6];
|
|
1666
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
1667
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1668
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
1669
|
+
case "ThrottledClientException": return [3, 10];
|
|
1670
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
1671
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1672
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
1673
|
+
}
|
|
1674
|
+
return [3, 14];
|
|
1675
1675
|
case 2:
|
|
1676
1676
|
_c = [{}];
|
|
1677
|
-
return [4
|
|
1677
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1678
1678
|
case 3:
|
|
1679
1679
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1680
|
-
return [3
|
|
1680
|
+
return [3, 15];
|
|
1681
1681
|
case 4:
|
|
1682
1682
|
_d = [{}];
|
|
1683
|
-
return [4
|
|
1683
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1684
1684
|
case 5:
|
|
1685
1685
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1686
|
-
return [3
|
|
1686
|
+
return [3, 15];
|
|
1687
1687
|
case 6:
|
|
1688
1688
|
_e = [{}];
|
|
1689
|
-
return [4
|
|
1689
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1690
1690
|
case 7:
|
|
1691
1691
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1692
|
-
return [3
|
|
1692
|
+
return [3, 15];
|
|
1693
1693
|
case 8:
|
|
1694
1694
|
_f = [{}];
|
|
1695
|
-
return [4
|
|
1695
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1696
1696
|
case 9:
|
|
1697
1697
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1698
|
-
return [3
|
|
1698
|
+
return [3, 15];
|
|
1699
1699
|
case 10:
|
|
1700
1700
|
_g = [{}];
|
|
1701
|
-
return [4
|
|
1701
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1702
1702
|
case 11:
|
|
1703
1703
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1704
|
-
return [3
|
|
1704
|
+
return [3, 15];
|
|
1705
1705
|
case 12:
|
|
1706
1706
|
_h = [{}];
|
|
1707
|
-
return [4
|
|
1707
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1708
1708
|
case 13:
|
|
1709
1709
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1710
|
-
return [3
|
|
1710
|
+
return [3, 15];
|
|
1711
1711
|
case 14:
|
|
1712
1712
|
parsedBody = parsedOutput.body;
|
|
1713
1713
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1717,7 +1717,7 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
1717
1717
|
message = response.message || response.Message || errorCode;
|
|
1718
1718
|
response.message = message;
|
|
1719
1719
|
delete response.Message;
|
|
1720
|
-
return [2
|
|
1720
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1721
1721
|
}
|
|
1722
1722
|
});
|
|
1723
1723
|
}); };
|
|
@@ -1727,15 +1727,15 @@ export var deserializeAws_restJson1DeleteChannelBanCommand = function (output, c
|
|
|
1727
1727
|
switch (_a.label) {
|
|
1728
1728
|
case 0:
|
|
1729
1729
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1730
|
-
return [2
|
|
1730
|
+
return [2, deserializeAws_restJson1DeleteChannelBanCommandError(output, context)];
|
|
1731
1731
|
}
|
|
1732
1732
|
contents = {
|
|
1733
1733
|
$metadata: deserializeMetadata(output),
|
|
1734
1734
|
};
|
|
1735
|
-
return [4
|
|
1735
|
+
return [4, collectBody(output.body, context)];
|
|
1736
1736
|
case 1:
|
|
1737
1737
|
_a.sent();
|
|
1738
|
-
return [2
|
|
1738
|
+
return [2, Promise.resolve(contents)];
|
|
1739
1739
|
}
|
|
1740
1740
|
});
|
|
1741
1741
|
}); };
|
|
@@ -1747,63 +1747,63 @@ var deserializeAws_restJson1DeleteChannelBanCommandError = function (output, con
|
|
|
1747
1747
|
case 0:
|
|
1748
1748
|
_a = [__assign({}, output)];
|
|
1749
1749
|
_j = {};
|
|
1750
|
-
return [4
|
|
1750
|
+
return [4, parseBody(output.body, context)];
|
|
1751
1751
|
case 1:
|
|
1752
1752
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1753
1753
|
errorCode = "UnknownError";
|
|
1754
1754
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
1755
|
_b = errorCode;
|
|
1756
1756
|
switch (_b) {
|
|
1757
|
-
case "BadRequestException": return [3
|
|
1758
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1759
|
-
case "ForbiddenException": return [3
|
|
1760
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1761
|
-
case "ServiceFailureException": return [3
|
|
1762
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1763
|
-
case "ServiceUnavailableException": return [3
|
|
1764
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1765
|
-
case "ThrottledClientException": return [3
|
|
1766
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1767
|
-
case "UnauthorizedClientException": return [3
|
|
1768
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1769
|
-
}
|
|
1770
|
-
return [3
|
|
1757
|
+
case "BadRequestException": return [3, 2];
|
|
1758
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1759
|
+
case "ForbiddenException": return [3, 4];
|
|
1760
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
1761
|
+
case "ServiceFailureException": return [3, 6];
|
|
1762
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
1763
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1764
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
1765
|
+
case "ThrottledClientException": return [3, 10];
|
|
1766
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
1767
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1768
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
1769
|
+
}
|
|
1770
|
+
return [3, 14];
|
|
1771
1771
|
case 2:
|
|
1772
1772
|
_c = [{}];
|
|
1773
|
-
return [4
|
|
1773
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1774
1774
|
case 3:
|
|
1775
1775
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1776
|
-
return [3
|
|
1776
|
+
return [3, 15];
|
|
1777
1777
|
case 4:
|
|
1778
1778
|
_d = [{}];
|
|
1779
|
-
return [4
|
|
1779
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1780
1780
|
case 5:
|
|
1781
1781
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1782
|
-
return [3
|
|
1782
|
+
return [3, 15];
|
|
1783
1783
|
case 6:
|
|
1784
1784
|
_e = [{}];
|
|
1785
|
-
return [4
|
|
1785
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1786
1786
|
case 7:
|
|
1787
1787
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1788
|
-
return [3
|
|
1788
|
+
return [3, 15];
|
|
1789
1789
|
case 8:
|
|
1790
1790
|
_f = [{}];
|
|
1791
|
-
return [4
|
|
1791
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1792
1792
|
case 9:
|
|
1793
1793
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1794
|
-
return [3
|
|
1794
|
+
return [3, 15];
|
|
1795
1795
|
case 10:
|
|
1796
1796
|
_g = [{}];
|
|
1797
|
-
return [4
|
|
1797
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1798
1798
|
case 11:
|
|
1799
1799
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1800
|
-
return [3
|
|
1800
|
+
return [3, 15];
|
|
1801
1801
|
case 12:
|
|
1802
1802
|
_h = [{}];
|
|
1803
|
-
return [4
|
|
1803
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1804
1804
|
case 13:
|
|
1805
1805
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1806
|
-
return [3
|
|
1806
|
+
return [3, 15];
|
|
1807
1807
|
case 14:
|
|
1808
1808
|
parsedBody = parsedOutput.body;
|
|
1809
1809
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1813,7 +1813,7 @@ var deserializeAws_restJson1DeleteChannelBanCommandError = function (output, con
|
|
|
1813
1813
|
message = response.message || response.Message || errorCode;
|
|
1814
1814
|
response.message = message;
|
|
1815
1815
|
delete response.Message;
|
|
1816
|
-
return [2
|
|
1816
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1817
1817
|
}
|
|
1818
1818
|
});
|
|
1819
1819
|
}); };
|
|
@@ -1823,15 +1823,15 @@ export var deserializeAws_restJson1DeleteChannelMembershipCommand = function (ou
|
|
|
1823
1823
|
switch (_a.label) {
|
|
1824
1824
|
case 0:
|
|
1825
1825
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1826
|
-
return [2
|
|
1826
|
+
return [2, deserializeAws_restJson1DeleteChannelMembershipCommandError(output, context)];
|
|
1827
1827
|
}
|
|
1828
1828
|
contents = {
|
|
1829
1829
|
$metadata: deserializeMetadata(output),
|
|
1830
1830
|
};
|
|
1831
|
-
return [4
|
|
1831
|
+
return [4, collectBody(output.body, context)];
|
|
1832
1832
|
case 1:
|
|
1833
1833
|
_a.sent();
|
|
1834
|
-
return [2
|
|
1834
|
+
return [2, Promise.resolve(contents)];
|
|
1835
1835
|
}
|
|
1836
1836
|
});
|
|
1837
1837
|
}); };
|
|
@@ -1843,71 +1843,71 @@ var deserializeAws_restJson1DeleteChannelMembershipCommandError = function (outp
|
|
|
1843
1843
|
case 0:
|
|
1844
1844
|
_a = [__assign({}, output)];
|
|
1845
1845
|
_k = {};
|
|
1846
|
-
return [4
|
|
1846
|
+
return [4, parseBody(output.body, context)];
|
|
1847
1847
|
case 1:
|
|
1848
1848
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1849
1849
|
errorCode = "UnknownError";
|
|
1850
1850
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
1851
|
_b = errorCode;
|
|
1852
1852
|
switch (_b) {
|
|
1853
|
-
case "BadRequestException": return [3
|
|
1854
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1855
|
-
case "ConflictException": return [3
|
|
1856
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
1857
|
-
case "ForbiddenException": return [3
|
|
1858
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1859
|
-
case "ServiceFailureException": return [3
|
|
1860
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1861
|
-
case "ServiceUnavailableException": return [3
|
|
1862
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1863
|
-
case "ThrottledClientException": return [3
|
|
1864
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1865
|
-
case "UnauthorizedClientException": return [3
|
|
1866
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1867
|
-
}
|
|
1868
|
-
return [3
|
|
1853
|
+
case "BadRequestException": return [3, 2];
|
|
1854
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1855
|
+
case "ConflictException": return [3, 4];
|
|
1856
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
1857
|
+
case "ForbiddenException": return [3, 6];
|
|
1858
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
1859
|
+
case "ServiceFailureException": return [3, 8];
|
|
1860
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
1861
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1862
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
1863
|
+
case "ThrottledClientException": return [3, 12];
|
|
1864
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
1865
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
1866
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
1867
|
+
}
|
|
1868
|
+
return [3, 16];
|
|
1869
1869
|
case 2:
|
|
1870
1870
|
_c = [{}];
|
|
1871
|
-
return [4
|
|
1871
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1872
1872
|
case 3:
|
|
1873
1873
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1874
|
-
return [3
|
|
1874
|
+
return [3, 17];
|
|
1875
1875
|
case 4:
|
|
1876
1876
|
_d = [{}];
|
|
1877
|
-
return [4
|
|
1877
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1878
1878
|
case 5:
|
|
1879
1879
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1880
|
-
return [3
|
|
1880
|
+
return [3, 17];
|
|
1881
1881
|
case 6:
|
|
1882
1882
|
_e = [{}];
|
|
1883
|
-
return [4
|
|
1883
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1884
1884
|
case 7:
|
|
1885
1885
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1886
|
-
return [3
|
|
1886
|
+
return [3, 17];
|
|
1887
1887
|
case 8:
|
|
1888
1888
|
_f = [{}];
|
|
1889
|
-
return [4
|
|
1889
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1890
1890
|
case 9:
|
|
1891
1891
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1892
|
-
return [3
|
|
1892
|
+
return [3, 17];
|
|
1893
1893
|
case 10:
|
|
1894
1894
|
_g = [{}];
|
|
1895
|
-
return [4
|
|
1895
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1896
1896
|
case 11:
|
|
1897
1897
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1898
|
-
return [3
|
|
1898
|
+
return [3, 17];
|
|
1899
1899
|
case 12:
|
|
1900
1900
|
_h = [{}];
|
|
1901
|
-
return [4
|
|
1901
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1902
1902
|
case 13:
|
|
1903
1903
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1904
|
-
return [3
|
|
1904
|
+
return [3, 17];
|
|
1905
1905
|
case 14:
|
|
1906
1906
|
_j = [{}];
|
|
1907
|
-
return [4
|
|
1907
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1908
1908
|
case 15:
|
|
1909
1909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1910
|
-
return [3
|
|
1910
|
+
return [3, 17];
|
|
1911
1911
|
case 16:
|
|
1912
1912
|
parsedBody = parsedOutput.body;
|
|
1913
1913
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1917,7 +1917,7 @@ var deserializeAws_restJson1DeleteChannelMembershipCommandError = function (outp
|
|
|
1917
1917
|
message = response.message || response.Message || errorCode;
|
|
1918
1918
|
response.message = message;
|
|
1919
1919
|
delete response.Message;
|
|
1920
|
-
return [2
|
|
1920
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1921
1921
|
}
|
|
1922
1922
|
});
|
|
1923
1923
|
}); };
|
|
@@ -1927,15 +1927,15 @@ export var deserializeAws_restJson1DeleteChannelMessageCommand = function (outpu
|
|
|
1927
1927
|
switch (_a.label) {
|
|
1928
1928
|
case 0:
|
|
1929
1929
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1930
|
-
return [2
|
|
1930
|
+
return [2, deserializeAws_restJson1DeleteChannelMessageCommandError(output, context)];
|
|
1931
1931
|
}
|
|
1932
1932
|
contents = {
|
|
1933
1933
|
$metadata: deserializeMetadata(output),
|
|
1934
1934
|
};
|
|
1935
|
-
return [4
|
|
1935
|
+
return [4, collectBody(output.body, context)];
|
|
1936
1936
|
case 1:
|
|
1937
1937
|
_a.sent();
|
|
1938
|
-
return [2
|
|
1938
|
+
return [2, Promise.resolve(contents)];
|
|
1939
1939
|
}
|
|
1940
1940
|
});
|
|
1941
1941
|
}); };
|
|
@@ -1947,63 +1947,63 @@ var deserializeAws_restJson1DeleteChannelMessageCommandError = function (output,
|
|
|
1947
1947
|
case 0:
|
|
1948
1948
|
_a = [__assign({}, output)];
|
|
1949
1949
|
_j = {};
|
|
1950
|
-
return [4
|
|
1950
|
+
return [4, parseBody(output.body, context)];
|
|
1951
1951
|
case 1:
|
|
1952
1952
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1953
1953
|
errorCode = "UnknownError";
|
|
1954
1954
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1955
1955
|
_b = errorCode;
|
|
1956
1956
|
switch (_b) {
|
|
1957
|
-
case "BadRequestException": return [3
|
|
1958
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
1959
|
-
case "ForbiddenException": return [3
|
|
1960
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
1961
|
-
case "ServiceFailureException": return [3
|
|
1962
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
1963
|
-
case "ServiceUnavailableException": return [3
|
|
1964
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
1965
|
-
case "ThrottledClientException": return [3
|
|
1966
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
1967
|
-
case "UnauthorizedClientException": return [3
|
|
1968
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
1969
|
-
}
|
|
1970
|
-
return [3
|
|
1957
|
+
case "BadRequestException": return [3, 2];
|
|
1958
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1959
|
+
case "ForbiddenException": return [3, 4];
|
|
1960
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
1961
|
+
case "ServiceFailureException": return [3, 6];
|
|
1962
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
1963
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1964
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
1965
|
+
case "ThrottledClientException": return [3, 10];
|
|
1966
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
1967
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
1968
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
1969
|
+
}
|
|
1970
|
+
return [3, 14];
|
|
1971
1971
|
case 2:
|
|
1972
1972
|
_c = [{}];
|
|
1973
|
-
return [4
|
|
1973
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1974
1974
|
case 3:
|
|
1975
1975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1976
|
-
return [3
|
|
1976
|
+
return [3, 15];
|
|
1977
1977
|
case 4:
|
|
1978
1978
|
_d = [{}];
|
|
1979
|
-
return [4
|
|
1979
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1980
1980
|
case 5:
|
|
1981
1981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1982
|
-
return [3
|
|
1982
|
+
return [3, 15];
|
|
1983
1983
|
case 6:
|
|
1984
1984
|
_e = [{}];
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1986
1986
|
case 7:
|
|
1987
1987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1988
|
-
return [3
|
|
1988
|
+
return [3, 15];
|
|
1989
1989
|
case 8:
|
|
1990
1990
|
_f = [{}];
|
|
1991
|
-
return [4
|
|
1991
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1992
1992
|
case 9:
|
|
1993
1993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1994
|
-
return [3
|
|
1994
|
+
return [3, 15];
|
|
1995
1995
|
case 10:
|
|
1996
1996
|
_g = [{}];
|
|
1997
|
-
return [4
|
|
1997
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1998
1998
|
case 11:
|
|
1999
1999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2000
|
-
return [3
|
|
2000
|
+
return [3, 15];
|
|
2001
2001
|
case 12:
|
|
2002
2002
|
_h = [{}];
|
|
2003
|
-
return [4
|
|
2003
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2004
2004
|
case 13:
|
|
2005
2005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2006
|
-
return [3
|
|
2006
|
+
return [3, 15];
|
|
2007
2007
|
case 14:
|
|
2008
2008
|
parsedBody = parsedOutput.body;
|
|
2009
2009
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2013,7 +2013,7 @@ var deserializeAws_restJson1DeleteChannelMessageCommandError = function (output,
|
|
|
2013
2013
|
message = response.message || response.Message || errorCode;
|
|
2014
2014
|
response.message = message;
|
|
2015
2015
|
delete response.Message;
|
|
2016
|
-
return [2
|
|
2016
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2017
2017
|
}
|
|
2018
2018
|
});
|
|
2019
2019
|
}); };
|
|
@@ -2023,15 +2023,15 @@ export var deserializeAws_restJson1DeleteChannelModeratorCommand = function (out
|
|
|
2023
2023
|
switch (_a.label) {
|
|
2024
2024
|
case 0:
|
|
2025
2025
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2026
|
-
return [2
|
|
2026
|
+
return [2, deserializeAws_restJson1DeleteChannelModeratorCommandError(output, context)];
|
|
2027
2027
|
}
|
|
2028
2028
|
contents = {
|
|
2029
2029
|
$metadata: deserializeMetadata(output),
|
|
2030
2030
|
};
|
|
2031
|
-
return [4
|
|
2031
|
+
return [4, collectBody(output.body, context)];
|
|
2032
2032
|
case 1:
|
|
2033
2033
|
_a.sent();
|
|
2034
|
-
return [2
|
|
2034
|
+
return [2, Promise.resolve(contents)];
|
|
2035
2035
|
}
|
|
2036
2036
|
});
|
|
2037
2037
|
}); };
|
|
@@ -2043,63 +2043,63 @@ var deserializeAws_restJson1DeleteChannelModeratorCommandError = function (outpu
|
|
|
2043
2043
|
case 0:
|
|
2044
2044
|
_a = [__assign({}, output)];
|
|
2045
2045
|
_j = {};
|
|
2046
|
-
return [4
|
|
2046
|
+
return [4, parseBody(output.body, context)];
|
|
2047
2047
|
case 1:
|
|
2048
2048
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2049
2049
|
errorCode = "UnknownError";
|
|
2050
2050
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2051
2051
|
_b = errorCode;
|
|
2052
2052
|
switch (_b) {
|
|
2053
|
-
case "BadRequestException": return [3
|
|
2054
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2055
|
-
case "ForbiddenException": return [3
|
|
2056
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2057
|
-
case "ServiceFailureException": return [3
|
|
2058
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2059
|
-
case "ServiceUnavailableException": return [3
|
|
2060
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2061
|
-
case "ThrottledClientException": return [3
|
|
2062
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2063
|
-
case "UnauthorizedClientException": return [3
|
|
2064
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2065
|
-
}
|
|
2066
|
-
return [3
|
|
2053
|
+
case "BadRequestException": return [3, 2];
|
|
2054
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2055
|
+
case "ForbiddenException": return [3, 4];
|
|
2056
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2057
|
+
case "ServiceFailureException": return [3, 6];
|
|
2058
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
2059
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2060
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
2061
|
+
case "ThrottledClientException": return [3, 10];
|
|
2062
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
2063
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
2064
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
2065
|
+
}
|
|
2066
|
+
return [3, 14];
|
|
2067
2067
|
case 2:
|
|
2068
2068
|
_c = [{}];
|
|
2069
|
-
return [4
|
|
2069
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2070
2070
|
case 3:
|
|
2071
2071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2072
|
-
return [3
|
|
2072
|
+
return [3, 15];
|
|
2073
2073
|
case 4:
|
|
2074
2074
|
_d = [{}];
|
|
2075
|
-
return [4
|
|
2075
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2076
2076
|
case 5:
|
|
2077
2077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2078
|
-
return [3
|
|
2078
|
+
return [3, 15];
|
|
2079
2079
|
case 6:
|
|
2080
2080
|
_e = [{}];
|
|
2081
|
-
return [4
|
|
2081
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2082
2082
|
case 7:
|
|
2083
2083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2084
|
-
return [3
|
|
2084
|
+
return [3, 15];
|
|
2085
2085
|
case 8:
|
|
2086
2086
|
_f = [{}];
|
|
2087
|
-
return [4
|
|
2087
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2088
2088
|
case 9:
|
|
2089
2089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2090
|
-
return [3
|
|
2090
|
+
return [3, 15];
|
|
2091
2091
|
case 10:
|
|
2092
2092
|
_g = [{}];
|
|
2093
|
-
return [4
|
|
2093
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2094
2094
|
case 11:
|
|
2095
2095
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2096
|
-
return [3
|
|
2096
|
+
return [3, 15];
|
|
2097
2097
|
case 12:
|
|
2098
2098
|
_h = [{}];
|
|
2099
|
-
return [4
|
|
2099
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2100
2100
|
case 13:
|
|
2101
2101
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2102
|
-
return [3
|
|
2102
|
+
return [3, 15];
|
|
2103
2103
|
case 14:
|
|
2104
2104
|
parsedBody = parsedOutput.body;
|
|
2105
2105
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2109,7 +2109,7 @@ var deserializeAws_restJson1DeleteChannelModeratorCommandError = function (outpu
|
|
|
2109
2109
|
message = response.message || response.Message || errorCode;
|
|
2110
2110
|
response.message = message;
|
|
2111
2111
|
delete response.Message;
|
|
2112
|
-
return [2
|
|
2112
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2113
2113
|
}
|
|
2114
2114
|
});
|
|
2115
2115
|
}); };
|
|
@@ -2119,7 +2119,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2119
2119
|
switch (_c.label) {
|
|
2120
2120
|
case 0:
|
|
2121
2121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2122
|
-
return [2
|
|
2122
|
+
return [2, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
|
|
2123
2123
|
}
|
|
2124
2124
|
contents = {
|
|
2125
2125
|
$metadata: deserializeMetadata(output),
|
|
@@ -2127,13 +2127,13 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2127
2127
|
};
|
|
2128
2128
|
_a = __expectNonNull;
|
|
2129
2129
|
_b = __expectObject;
|
|
2130
|
-
return [4
|
|
2130
|
+
return [4, parseBody(output.body, context)];
|
|
2131
2131
|
case 1:
|
|
2132
2132
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2133
2133
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2134
2134
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
2135
2135
|
}
|
|
2136
|
-
return [2
|
|
2136
|
+
return [2, Promise.resolve(contents)];
|
|
2137
2137
|
}
|
|
2138
2138
|
});
|
|
2139
2139
|
}); };
|
|
@@ -2145,63 +2145,63 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2145
2145
|
case 0:
|
|
2146
2146
|
_a = [__assign({}, output)];
|
|
2147
2147
|
_j = {};
|
|
2148
|
-
return [4
|
|
2148
|
+
return [4, parseBody(output.body, context)];
|
|
2149
2149
|
case 1:
|
|
2150
2150
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2151
2151
|
errorCode = "UnknownError";
|
|
2152
2152
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2153
2153
|
_b = errorCode;
|
|
2154
2154
|
switch (_b) {
|
|
2155
|
-
case "BadRequestException": return [3
|
|
2156
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2157
|
-
case "ForbiddenException": return [3
|
|
2158
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2159
|
-
case "ServiceFailureException": return [3
|
|
2160
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2161
|
-
case "ServiceUnavailableException": return [3
|
|
2162
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2163
|
-
case "ThrottledClientException": return [3
|
|
2164
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2165
|
-
case "UnauthorizedClientException": return [3
|
|
2166
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2167
|
-
}
|
|
2168
|
-
return [3
|
|
2155
|
+
case "BadRequestException": return [3, 2];
|
|
2156
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2157
|
+
case "ForbiddenException": return [3, 4];
|
|
2158
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2159
|
+
case "ServiceFailureException": return [3, 6];
|
|
2160
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
2161
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2162
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
2163
|
+
case "ThrottledClientException": return [3, 10];
|
|
2164
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
2165
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
2166
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
2167
|
+
}
|
|
2168
|
+
return [3, 14];
|
|
2169
2169
|
case 2:
|
|
2170
2170
|
_c = [{}];
|
|
2171
|
-
return [4
|
|
2171
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2172
2172
|
case 3:
|
|
2173
2173
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2174
|
-
return [3
|
|
2174
|
+
return [3, 15];
|
|
2175
2175
|
case 4:
|
|
2176
2176
|
_d = [{}];
|
|
2177
|
-
return [4
|
|
2177
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2178
2178
|
case 5:
|
|
2179
2179
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2180
|
-
return [3
|
|
2180
|
+
return [3, 15];
|
|
2181
2181
|
case 6:
|
|
2182
2182
|
_e = [{}];
|
|
2183
|
-
return [4
|
|
2183
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2184
2184
|
case 7:
|
|
2185
2185
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2186
|
-
return [3
|
|
2186
|
+
return [3, 15];
|
|
2187
2187
|
case 8:
|
|
2188
2188
|
_f = [{}];
|
|
2189
|
-
return [4
|
|
2189
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2190
2190
|
case 9:
|
|
2191
2191
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2192
|
-
return [3
|
|
2192
|
+
return [3, 15];
|
|
2193
2193
|
case 10:
|
|
2194
2194
|
_g = [{}];
|
|
2195
|
-
return [4
|
|
2195
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2196
2196
|
case 11:
|
|
2197
2197
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2198
|
-
return [3
|
|
2198
|
+
return [3, 15];
|
|
2199
2199
|
case 12:
|
|
2200
2200
|
_h = [{}];
|
|
2201
|
-
return [4
|
|
2201
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2202
2202
|
case 13:
|
|
2203
2203
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2204
|
-
return [3
|
|
2204
|
+
return [3, 15];
|
|
2205
2205
|
case 14:
|
|
2206
2206
|
parsedBody = parsedOutput.body;
|
|
2207
2207
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2211,7 +2211,7 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2211
2211
|
message = response.message || response.Message || errorCode;
|
|
2212
2212
|
response.message = message;
|
|
2213
2213
|
delete response.Message;
|
|
2214
|
-
return [2
|
|
2214
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2215
2215
|
}
|
|
2216
2216
|
});
|
|
2217
2217
|
}); };
|
|
@@ -2221,7 +2221,7 @@ export var deserializeAws_restJson1DescribeChannelBanCommand = function (output,
|
|
|
2221
2221
|
switch (_c.label) {
|
|
2222
2222
|
case 0:
|
|
2223
2223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2224
|
-
return [2
|
|
2224
|
+
return [2, deserializeAws_restJson1DescribeChannelBanCommandError(output, context)];
|
|
2225
2225
|
}
|
|
2226
2226
|
contents = {
|
|
2227
2227
|
$metadata: deserializeMetadata(output),
|
|
@@ -2229,13 +2229,13 @@ export var deserializeAws_restJson1DescribeChannelBanCommand = function (output,
|
|
|
2229
2229
|
};
|
|
2230
2230
|
_a = __expectNonNull;
|
|
2231
2231
|
_b = __expectObject;
|
|
2232
|
-
return [4
|
|
2232
|
+
return [4, parseBody(output.body, context)];
|
|
2233
2233
|
case 1:
|
|
2234
2234
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2235
2235
|
if (data.ChannelBan !== undefined && data.ChannelBan !== null) {
|
|
2236
2236
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
2237
2237
|
}
|
|
2238
|
-
return [2
|
|
2238
|
+
return [2, Promise.resolve(contents)];
|
|
2239
2239
|
}
|
|
2240
2240
|
});
|
|
2241
2241
|
}); };
|
|
@@ -2247,71 +2247,71 @@ var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, c
|
|
|
2247
2247
|
case 0:
|
|
2248
2248
|
_a = [__assign({}, output)];
|
|
2249
2249
|
_k = {};
|
|
2250
|
-
return [4
|
|
2250
|
+
return [4, parseBody(output.body, context)];
|
|
2251
2251
|
case 1:
|
|
2252
2252
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2253
2253
|
errorCode = "UnknownError";
|
|
2254
2254
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2255
2255
|
_b = errorCode;
|
|
2256
2256
|
switch (_b) {
|
|
2257
|
-
case "BadRequestException": return [3
|
|
2258
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2259
|
-
case "ForbiddenException": return [3
|
|
2260
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2261
|
-
case "NotFoundException": return [3
|
|
2262
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3
|
|
2263
|
-
case "ServiceFailureException": return [3
|
|
2264
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2265
|
-
case "ServiceUnavailableException": return [3
|
|
2266
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2267
|
-
case "ThrottledClientException": return [3
|
|
2268
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2269
|
-
case "UnauthorizedClientException": return [3
|
|
2270
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2271
|
-
}
|
|
2272
|
-
return [3
|
|
2257
|
+
case "BadRequestException": return [3, 2];
|
|
2258
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2259
|
+
case "ForbiddenException": return [3, 4];
|
|
2260
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2261
|
+
case "NotFoundException": return [3, 6];
|
|
2262
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 6];
|
|
2263
|
+
case "ServiceFailureException": return [3, 8];
|
|
2264
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
2265
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2266
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
2267
|
+
case "ThrottledClientException": return [3, 12];
|
|
2268
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
2269
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2270
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
2271
|
+
}
|
|
2272
|
+
return [3, 16];
|
|
2273
2273
|
case 2:
|
|
2274
2274
|
_c = [{}];
|
|
2275
|
-
return [4
|
|
2275
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2276
2276
|
case 3:
|
|
2277
2277
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2278
|
-
return [3
|
|
2278
|
+
return [3, 17];
|
|
2279
2279
|
case 4:
|
|
2280
2280
|
_d = [{}];
|
|
2281
|
-
return [4
|
|
2281
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2282
2282
|
case 5:
|
|
2283
2283
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2284
|
-
return [3
|
|
2284
|
+
return [3, 17];
|
|
2285
2285
|
case 6:
|
|
2286
2286
|
_e = [{}];
|
|
2287
|
-
return [4
|
|
2287
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2288
2288
|
case 7:
|
|
2289
2289
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2290
|
-
return [3
|
|
2290
|
+
return [3, 17];
|
|
2291
2291
|
case 8:
|
|
2292
2292
|
_f = [{}];
|
|
2293
|
-
return [4
|
|
2293
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2294
2294
|
case 9:
|
|
2295
2295
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2296
|
-
return [3
|
|
2296
|
+
return [3, 17];
|
|
2297
2297
|
case 10:
|
|
2298
2298
|
_g = [{}];
|
|
2299
|
-
return [4
|
|
2299
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2300
2300
|
case 11:
|
|
2301
2301
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2302
|
-
return [3
|
|
2302
|
+
return [3, 17];
|
|
2303
2303
|
case 12:
|
|
2304
2304
|
_h = [{}];
|
|
2305
|
-
return [4
|
|
2305
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2306
2306
|
case 13:
|
|
2307
2307
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2308
|
-
return [3
|
|
2308
|
+
return [3, 17];
|
|
2309
2309
|
case 14:
|
|
2310
2310
|
_j = [{}];
|
|
2311
|
-
return [4
|
|
2311
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2312
2312
|
case 15:
|
|
2313
2313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2314
|
-
return [3
|
|
2314
|
+
return [3, 17];
|
|
2315
2315
|
case 16:
|
|
2316
2316
|
parsedBody = parsedOutput.body;
|
|
2317
2317
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2321,7 +2321,7 @@ var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, c
|
|
|
2321
2321
|
message = response.message || response.Message || errorCode;
|
|
2322
2322
|
response.message = message;
|
|
2323
2323
|
delete response.Message;
|
|
2324
|
-
return [2
|
|
2324
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2325
2325
|
}
|
|
2326
2326
|
});
|
|
2327
2327
|
}); };
|
|
@@ -2331,7 +2331,7 @@ export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (
|
|
|
2331
2331
|
switch (_c.label) {
|
|
2332
2332
|
case 0:
|
|
2333
2333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2334
|
-
return [2
|
|
2334
|
+
return [2, deserializeAws_restJson1DescribeChannelMembershipCommandError(output, context)];
|
|
2335
2335
|
}
|
|
2336
2336
|
contents = {
|
|
2337
2337
|
$metadata: deserializeMetadata(output),
|
|
@@ -2339,13 +2339,13 @@ export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (
|
|
|
2339
2339
|
};
|
|
2340
2340
|
_a = __expectNonNull;
|
|
2341
2341
|
_b = __expectObject;
|
|
2342
|
-
return [4
|
|
2342
|
+
return [4, parseBody(output.body, context)];
|
|
2343
2343
|
case 1:
|
|
2344
2344
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2345
2345
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2346
2346
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
2347
2347
|
}
|
|
2348
|
-
return [2
|
|
2348
|
+
return [2, Promise.resolve(contents)];
|
|
2349
2349
|
}
|
|
2350
2350
|
});
|
|
2351
2351
|
}); };
|
|
@@ -2357,71 +2357,71 @@ var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (ou
|
|
|
2357
2357
|
case 0:
|
|
2358
2358
|
_a = [__assign({}, output)];
|
|
2359
2359
|
_k = {};
|
|
2360
|
-
return [4
|
|
2360
|
+
return [4, parseBody(output.body, context)];
|
|
2361
2361
|
case 1:
|
|
2362
2362
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2363
2363
|
errorCode = "UnknownError";
|
|
2364
2364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2365
2365
|
_b = errorCode;
|
|
2366
2366
|
switch (_b) {
|
|
2367
|
-
case "BadRequestException": return [3
|
|
2368
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2369
|
-
case "ForbiddenException": return [3
|
|
2370
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2371
|
-
case "NotFoundException": return [3
|
|
2372
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3
|
|
2373
|
-
case "ServiceFailureException": return [3
|
|
2374
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2375
|
-
case "ServiceUnavailableException": return [3
|
|
2376
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2377
|
-
case "ThrottledClientException": return [3
|
|
2378
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2379
|
-
case "UnauthorizedClientException": return [3
|
|
2380
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2381
|
-
}
|
|
2382
|
-
return [3
|
|
2367
|
+
case "BadRequestException": return [3, 2];
|
|
2368
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2369
|
+
case "ForbiddenException": return [3, 4];
|
|
2370
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2371
|
+
case "NotFoundException": return [3, 6];
|
|
2372
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 6];
|
|
2373
|
+
case "ServiceFailureException": return [3, 8];
|
|
2374
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
2375
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2376
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
2377
|
+
case "ThrottledClientException": return [3, 12];
|
|
2378
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
2379
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2380
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
2381
|
+
}
|
|
2382
|
+
return [3, 16];
|
|
2383
2383
|
case 2:
|
|
2384
2384
|
_c = [{}];
|
|
2385
|
-
return [4
|
|
2385
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2386
2386
|
case 3:
|
|
2387
2387
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2388
|
-
return [3
|
|
2388
|
+
return [3, 17];
|
|
2389
2389
|
case 4:
|
|
2390
2390
|
_d = [{}];
|
|
2391
|
-
return [4
|
|
2391
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2392
2392
|
case 5:
|
|
2393
2393
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2394
|
-
return [3
|
|
2394
|
+
return [3, 17];
|
|
2395
2395
|
case 6:
|
|
2396
2396
|
_e = [{}];
|
|
2397
|
-
return [4
|
|
2397
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2398
2398
|
case 7:
|
|
2399
2399
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2400
|
-
return [3
|
|
2400
|
+
return [3, 17];
|
|
2401
2401
|
case 8:
|
|
2402
2402
|
_f = [{}];
|
|
2403
|
-
return [4
|
|
2403
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2404
2404
|
case 9:
|
|
2405
2405
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2406
|
-
return [3
|
|
2406
|
+
return [3, 17];
|
|
2407
2407
|
case 10:
|
|
2408
2408
|
_g = [{}];
|
|
2409
|
-
return [4
|
|
2409
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2410
2410
|
case 11:
|
|
2411
2411
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2412
|
-
return [3
|
|
2412
|
+
return [3, 17];
|
|
2413
2413
|
case 12:
|
|
2414
2414
|
_h = [{}];
|
|
2415
|
-
return [4
|
|
2415
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2416
2416
|
case 13:
|
|
2417
2417
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2418
|
-
return [3
|
|
2418
|
+
return [3, 17];
|
|
2419
2419
|
case 14:
|
|
2420
2420
|
_j = [{}];
|
|
2421
|
-
return [4
|
|
2421
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2422
2422
|
case 15:
|
|
2423
2423
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2424
|
-
return [3
|
|
2424
|
+
return [3, 17];
|
|
2425
2425
|
case 16:
|
|
2426
2426
|
parsedBody = parsedOutput.body;
|
|
2427
2427
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2431,7 +2431,7 @@ var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (ou
|
|
|
2431
2431
|
message = response.message || response.Message || errorCode;
|
|
2432
2432
|
response.message = message;
|
|
2433
2433
|
delete response.Message;
|
|
2434
|
-
return [2
|
|
2434
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2435
2435
|
}
|
|
2436
2436
|
});
|
|
2437
2437
|
}); };
|
|
@@ -2441,7 +2441,7 @@ export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCo
|
|
|
2441
2441
|
switch (_c.label) {
|
|
2442
2442
|
case 0:
|
|
2443
2443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2444
|
-
return [2
|
|
2444
|
+
return [2, deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError(output, context)];
|
|
2445
2445
|
}
|
|
2446
2446
|
contents = {
|
|
2447
2447
|
$metadata: deserializeMetadata(output),
|
|
@@ -2449,13 +2449,13 @@ export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCo
|
|
|
2449
2449
|
};
|
|
2450
2450
|
_a = __expectNonNull;
|
|
2451
2451
|
_b = __expectObject;
|
|
2452
|
-
return [4
|
|
2452
|
+
return [4, parseBody(output.body, context)];
|
|
2453
2453
|
case 1:
|
|
2454
2454
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2455
2455
|
if (data.ChannelMembership !== undefined && data.ChannelMembership !== null) {
|
|
2456
2456
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
2457
2457
|
}
|
|
2458
|
-
return [2
|
|
2458
|
+
return [2, Promise.resolve(contents)];
|
|
2459
2459
|
}
|
|
2460
2460
|
});
|
|
2461
2461
|
}); };
|
|
@@ -2467,63 +2467,63 @@ var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandEr
|
|
|
2467
2467
|
case 0:
|
|
2468
2468
|
_a = [__assign({}, output)];
|
|
2469
2469
|
_j = {};
|
|
2470
|
-
return [4
|
|
2470
|
+
return [4, parseBody(output.body, context)];
|
|
2471
2471
|
case 1:
|
|
2472
2472
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2473
2473
|
errorCode = "UnknownError";
|
|
2474
2474
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2475
2475
|
_b = errorCode;
|
|
2476
2476
|
switch (_b) {
|
|
2477
|
-
case "BadRequestException": return [3
|
|
2478
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2479
|
-
case "ForbiddenException": return [3
|
|
2480
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2481
|
-
case "ServiceFailureException": return [3
|
|
2482
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2483
|
-
case "ServiceUnavailableException": return [3
|
|
2484
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2485
|
-
case "ThrottledClientException": return [3
|
|
2486
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2487
|
-
case "UnauthorizedClientException": return [3
|
|
2488
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2489
|
-
}
|
|
2490
|
-
return [3
|
|
2477
|
+
case "BadRequestException": return [3, 2];
|
|
2478
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2479
|
+
case "ForbiddenException": return [3, 4];
|
|
2480
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2481
|
+
case "ServiceFailureException": return [3, 6];
|
|
2482
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
2483
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2484
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
2485
|
+
case "ThrottledClientException": return [3, 10];
|
|
2486
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
2487
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
2488
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
2489
|
+
}
|
|
2490
|
+
return [3, 14];
|
|
2491
2491
|
case 2:
|
|
2492
2492
|
_c = [{}];
|
|
2493
|
-
return [4
|
|
2493
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2494
2494
|
case 3:
|
|
2495
2495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2496
|
-
return [3
|
|
2496
|
+
return [3, 15];
|
|
2497
2497
|
case 4:
|
|
2498
2498
|
_d = [{}];
|
|
2499
|
-
return [4
|
|
2499
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2500
2500
|
case 5:
|
|
2501
2501
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2502
|
-
return [3
|
|
2502
|
+
return [3, 15];
|
|
2503
2503
|
case 6:
|
|
2504
2504
|
_e = [{}];
|
|
2505
|
-
return [4
|
|
2505
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2506
2506
|
case 7:
|
|
2507
2507
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2508
|
-
return [3
|
|
2508
|
+
return [3, 15];
|
|
2509
2509
|
case 8:
|
|
2510
2510
|
_f = [{}];
|
|
2511
|
-
return [4
|
|
2511
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2512
2512
|
case 9:
|
|
2513
2513
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2514
|
-
return [3
|
|
2514
|
+
return [3, 15];
|
|
2515
2515
|
case 10:
|
|
2516
2516
|
_g = [{}];
|
|
2517
|
-
return [4
|
|
2517
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2518
2518
|
case 11:
|
|
2519
2519
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2520
|
-
return [3
|
|
2520
|
+
return [3, 15];
|
|
2521
2521
|
case 12:
|
|
2522
2522
|
_h = [{}];
|
|
2523
|
-
return [4
|
|
2523
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2524
2524
|
case 13:
|
|
2525
2525
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2526
|
-
return [3
|
|
2526
|
+
return [3, 15];
|
|
2527
2527
|
case 14:
|
|
2528
2528
|
parsedBody = parsedOutput.body;
|
|
2529
2529
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2533,7 +2533,7 @@ var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandEr
|
|
|
2533
2533
|
message = response.message || response.Message || errorCode;
|
|
2534
2534
|
response.message = message;
|
|
2535
2535
|
delete response.Message;
|
|
2536
|
-
return [2
|
|
2536
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2537
2537
|
}
|
|
2538
2538
|
});
|
|
2539
2539
|
}); };
|
|
@@ -2543,7 +2543,7 @@ export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComm
|
|
|
2543
2543
|
switch (_c.label) {
|
|
2544
2544
|
case 0:
|
|
2545
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2546
|
-
return [2
|
|
2546
|
+
return [2, deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError(output, context)];
|
|
2547
2547
|
}
|
|
2548
2548
|
contents = {
|
|
2549
2549
|
$metadata: deserializeMetadata(output),
|
|
@@ -2551,13 +2551,13 @@ export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComm
|
|
|
2551
2551
|
};
|
|
2552
2552
|
_a = __expectNonNull;
|
|
2553
2553
|
_b = __expectObject;
|
|
2554
|
-
return [4
|
|
2554
|
+
return [4, parseBody(output.body, context)];
|
|
2555
2555
|
case 1:
|
|
2556
2556
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2557
2557
|
if (data.Channel !== undefined && data.Channel !== null) {
|
|
2558
2558
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
2559
2559
|
}
|
|
2560
|
-
return [2
|
|
2560
|
+
return [2, Promise.resolve(contents)];
|
|
2561
2561
|
}
|
|
2562
2562
|
});
|
|
2563
2563
|
}); };
|
|
@@ -2569,63 +2569,63 @@ var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandErro
|
|
|
2569
2569
|
case 0:
|
|
2570
2570
|
_a = [__assign({}, output)];
|
|
2571
2571
|
_j = {};
|
|
2572
|
-
return [4
|
|
2572
|
+
return [4, parseBody(output.body, context)];
|
|
2573
2573
|
case 1:
|
|
2574
2574
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2575
2575
|
errorCode = "UnknownError";
|
|
2576
2576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2577
|
_b = errorCode;
|
|
2578
2578
|
switch (_b) {
|
|
2579
|
-
case "BadRequestException": return [3
|
|
2580
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2581
|
-
case "ForbiddenException": return [3
|
|
2582
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2583
|
-
case "ServiceFailureException": return [3
|
|
2584
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2585
|
-
case "ServiceUnavailableException": return [3
|
|
2586
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2587
|
-
case "ThrottledClientException": return [3
|
|
2588
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2589
|
-
case "UnauthorizedClientException": return [3
|
|
2590
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2591
|
-
}
|
|
2592
|
-
return [3
|
|
2579
|
+
case "BadRequestException": return [3, 2];
|
|
2580
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2581
|
+
case "ForbiddenException": return [3, 4];
|
|
2582
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2583
|
+
case "ServiceFailureException": return [3, 6];
|
|
2584
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
2585
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
2586
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
2587
|
+
case "ThrottledClientException": return [3, 10];
|
|
2588
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
2589
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
2590
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
2591
|
+
}
|
|
2592
|
+
return [3, 14];
|
|
2593
2593
|
case 2:
|
|
2594
2594
|
_c = [{}];
|
|
2595
|
-
return [4
|
|
2595
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2596
2596
|
case 3:
|
|
2597
2597
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2598
|
-
return [3
|
|
2598
|
+
return [3, 15];
|
|
2599
2599
|
case 4:
|
|
2600
2600
|
_d = [{}];
|
|
2601
|
-
return [4
|
|
2601
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2602
2602
|
case 5:
|
|
2603
2603
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2604
|
-
return [3
|
|
2604
|
+
return [3, 15];
|
|
2605
2605
|
case 6:
|
|
2606
2606
|
_e = [{}];
|
|
2607
|
-
return [4
|
|
2607
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2608
2608
|
case 7:
|
|
2609
2609
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2610
|
-
return [3
|
|
2610
|
+
return [3, 15];
|
|
2611
2611
|
case 8:
|
|
2612
2612
|
_f = [{}];
|
|
2613
|
-
return [4
|
|
2613
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2614
2614
|
case 9:
|
|
2615
2615
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2616
|
-
return [3
|
|
2616
|
+
return [3, 15];
|
|
2617
2617
|
case 10:
|
|
2618
2618
|
_g = [{}];
|
|
2619
|
-
return [4
|
|
2619
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2620
2620
|
case 11:
|
|
2621
2621
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2622
|
-
return [3
|
|
2622
|
+
return [3, 15];
|
|
2623
2623
|
case 12:
|
|
2624
2624
|
_h = [{}];
|
|
2625
|
-
return [4
|
|
2625
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2626
2626
|
case 13:
|
|
2627
2627
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2628
|
-
return [3
|
|
2628
|
+
return [3, 15];
|
|
2629
2629
|
case 14:
|
|
2630
2630
|
parsedBody = parsedOutput.body;
|
|
2631
2631
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2635,7 +2635,7 @@ var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandErro
|
|
|
2635
2635
|
message = response.message || response.Message || errorCode;
|
|
2636
2636
|
response.message = message;
|
|
2637
2637
|
delete response.Message;
|
|
2638
|
-
return [2
|
|
2638
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2639
2639
|
}
|
|
2640
2640
|
});
|
|
2641
2641
|
}); };
|
|
@@ -2645,7 +2645,7 @@ export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (o
|
|
|
2645
2645
|
switch (_c.label) {
|
|
2646
2646
|
case 0:
|
|
2647
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2648
|
-
return [2
|
|
2648
|
+
return [2, deserializeAws_restJson1DescribeChannelModeratorCommandError(output, context)];
|
|
2649
2649
|
}
|
|
2650
2650
|
contents = {
|
|
2651
2651
|
$metadata: deserializeMetadata(output),
|
|
@@ -2653,13 +2653,13 @@ export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (o
|
|
|
2653
2653
|
};
|
|
2654
2654
|
_a = __expectNonNull;
|
|
2655
2655
|
_b = __expectObject;
|
|
2656
|
-
return [4
|
|
2656
|
+
return [4, parseBody(output.body, context)];
|
|
2657
2657
|
case 1:
|
|
2658
2658
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2659
2659
|
if (data.ChannelModerator !== undefined && data.ChannelModerator !== null) {
|
|
2660
2660
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
2661
2661
|
}
|
|
2662
|
-
return [2
|
|
2662
|
+
return [2, Promise.resolve(contents)];
|
|
2663
2663
|
}
|
|
2664
2664
|
});
|
|
2665
2665
|
}); };
|
|
@@ -2671,71 +2671,71 @@ var deserializeAws_restJson1DescribeChannelModeratorCommandError = function (out
|
|
|
2671
2671
|
case 0:
|
|
2672
2672
|
_a = [__assign({}, output)];
|
|
2673
2673
|
_k = {};
|
|
2674
|
-
return [4
|
|
2674
|
+
return [4, parseBody(output.body, context)];
|
|
2675
2675
|
case 1:
|
|
2676
2676
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2677
2677
|
errorCode = "UnknownError";
|
|
2678
2678
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
2679
|
_b = errorCode;
|
|
2680
2680
|
switch (_b) {
|
|
2681
|
-
case "BadRequestException": return [3
|
|
2682
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2683
|
-
case "ForbiddenException": return [3
|
|
2684
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2685
|
-
case "NotFoundException": return [3
|
|
2686
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3
|
|
2687
|
-
case "ServiceFailureException": return [3
|
|
2688
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2689
|
-
case "ServiceUnavailableException": return [3
|
|
2690
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2691
|
-
case "ThrottledClientException": return [3
|
|
2692
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2693
|
-
case "UnauthorizedClientException": return [3
|
|
2694
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2695
|
-
}
|
|
2696
|
-
return [3
|
|
2681
|
+
case "BadRequestException": return [3, 2];
|
|
2682
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2683
|
+
case "ForbiddenException": return [3, 4];
|
|
2684
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2685
|
+
case "NotFoundException": return [3, 6];
|
|
2686
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 6];
|
|
2687
|
+
case "ServiceFailureException": return [3, 8];
|
|
2688
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
2689
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2690
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
2691
|
+
case "ThrottledClientException": return [3, 12];
|
|
2692
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
2693
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2694
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
2695
|
+
}
|
|
2696
|
+
return [3, 16];
|
|
2697
2697
|
case 2:
|
|
2698
2698
|
_c = [{}];
|
|
2699
|
-
return [4
|
|
2699
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2700
2700
|
case 3:
|
|
2701
2701
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2702
|
-
return [3
|
|
2702
|
+
return [3, 17];
|
|
2703
2703
|
case 4:
|
|
2704
2704
|
_d = [{}];
|
|
2705
|
-
return [4
|
|
2705
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2706
2706
|
case 5:
|
|
2707
2707
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2708
|
-
return [3
|
|
2708
|
+
return [3, 17];
|
|
2709
2709
|
case 6:
|
|
2710
2710
|
_e = [{}];
|
|
2711
|
-
return [4
|
|
2711
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2712
2712
|
case 7:
|
|
2713
2713
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2714
|
-
return [3
|
|
2714
|
+
return [3, 17];
|
|
2715
2715
|
case 8:
|
|
2716
2716
|
_f = [{}];
|
|
2717
|
-
return [4
|
|
2717
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2718
2718
|
case 9:
|
|
2719
2719
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2720
|
-
return [3
|
|
2720
|
+
return [3, 17];
|
|
2721
2721
|
case 10:
|
|
2722
2722
|
_g = [{}];
|
|
2723
|
-
return [4
|
|
2723
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2724
2724
|
case 11:
|
|
2725
2725
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2726
|
-
return [3
|
|
2726
|
+
return [3, 17];
|
|
2727
2727
|
case 12:
|
|
2728
2728
|
_h = [{}];
|
|
2729
|
-
return [4
|
|
2729
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2730
2730
|
case 13:
|
|
2731
2731
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2732
|
-
return [3
|
|
2732
|
+
return [3, 17];
|
|
2733
2733
|
case 14:
|
|
2734
2734
|
_j = [{}];
|
|
2735
|
-
return [4
|
|
2735
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2736
2736
|
case 15:
|
|
2737
2737
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2738
|
-
return [3
|
|
2738
|
+
return [3, 17];
|
|
2739
2739
|
case 16:
|
|
2740
2740
|
parsedBody = parsedOutput.body;
|
|
2741
2741
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2745,7 +2745,7 @@ var deserializeAws_restJson1DescribeChannelModeratorCommandError = function (out
|
|
|
2745
2745
|
message = response.message || response.Message || errorCode;
|
|
2746
2746
|
response.message = message;
|
|
2747
2747
|
delete response.Message;
|
|
2748
|
-
return [2
|
|
2748
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2749
2749
|
}
|
|
2750
2750
|
});
|
|
2751
2751
|
}); };
|
|
@@ -2755,7 +2755,7 @@ export var deserializeAws_restJson1GetChannelMessageCommand = function (output,
|
|
|
2755
2755
|
switch (_c.label) {
|
|
2756
2756
|
case 0:
|
|
2757
2757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2758
|
-
return [2
|
|
2758
|
+
return [2, deserializeAws_restJson1GetChannelMessageCommandError(output, context)];
|
|
2759
2759
|
}
|
|
2760
2760
|
contents = {
|
|
2761
2761
|
$metadata: deserializeMetadata(output),
|
|
@@ -2763,13 +2763,13 @@ export var deserializeAws_restJson1GetChannelMessageCommand = function (output,
|
|
|
2763
2763
|
};
|
|
2764
2764
|
_a = __expectNonNull;
|
|
2765
2765
|
_b = __expectObject;
|
|
2766
|
-
return [4
|
|
2766
|
+
return [4, parseBody(output.body, context)];
|
|
2767
2767
|
case 1:
|
|
2768
2768
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2769
2769
|
if (data.ChannelMessage !== undefined && data.ChannelMessage !== null) {
|
|
2770
2770
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
2771
2771
|
}
|
|
2772
|
-
return [2
|
|
2772
|
+
return [2, Promise.resolve(contents)];
|
|
2773
2773
|
}
|
|
2774
2774
|
});
|
|
2775
2775
|
}); };
|
|
@@ -2781,71 +2781,71 @@ var deserializeAws_restJson1GetChannelMessageCommandError = function (output, co
|
|
|
2781
2781
|
case 0:
|
|
2782
2782
|
_a = [__assign({}, output)];
|
|
2783
2783
|
_k = {};
|
|
2784
|
-
return [4
|
|
2784
|
+
return [4, parseBody(output.body, context)];
|
|
2785
2785
|
case 1:
|
|
2786
2786
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2787
2787
|
errorCode = "UnknownError";
|
|
2788
2788
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
2789
|
_b = errorCode;
|
|
2790
2790
|
switch (_b) {
|
|
2791
|
-
case "BadRequestException": return [3
|
|
2792
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
2793
|
-
case "ForbiddenException": return [3
|
|
2794
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2795
|
-
case "NotFoundException": return [3
|
|
2796
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3
|
|
2797
|
-
case "ServiceFailureException": return [3
|
|
2798
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2799
|
-
case "ServiceUnavailableException": return [3
|
|
2800
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2801
|
-
case "ThrottledClientException": return [3
|
|
2802
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2803
|
-
case "UnauthorizedClientException": return [3
|
|
2804
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2805
|
-
}
|
|
2806
|
-
return [3
|
|
2791
|
+
case "BadRequestException": return [3, 2];
|
|
2792
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
2793
|
+
case "ForbiddenException": return [3, 4];
|
|
2794
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
2795
|
+
case "NotFoundException": return [3, 6];
|
|
2796
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 6];
|
|
2797
|
+
case "ServiceFailureException": return [3, 8];
|
|
2798
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
2799
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
2800
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
2801
|
+
case "ThrottledClientException": return [3, 12];
|
|
2802
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
2803
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
2804
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
2805
|
+
}
|
|
2806
|
+
return [3, 16];
|
|
2807
2807
|
case 2:
|
|
2808
2808
|
_c = [{}];
|
|
2809
|
-
return [4
|
|
2809
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2810
2810
|
case 3:
|
|
2811
2811
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2812
|
-
return [3
|
|
2812
|
+
return [3, 17];
|
|
2813
2813
|
case 4:
|
|
2814
2814
|
_d = [{}];
|
|
2815
|
-
return [4
|
|
2815
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2816
2816
|
case 5:
|
|
2817
2817
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2818
|
-
return [3
|
|
2818
|
+
return [3, 17];
|
|
2819
2819
|
case 6:
|
|
2820
2820
|
_e = [{}];
|
|
2821
|
-
return [4
|
|
2821
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2822
2822
|
case 7:
|
|
2823
2823
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2824
|
-
return [3
|
|
2824
|
+
return [3, 17];
|
|
2825
2825
|
case 8:
|
|
2826
2826
|
_f = [{}];
|
|
2827
|
-
return [4
|
|
2827
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2828
2828
|
case 9:
|
|
2829
2829
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2830
|
-
return [3
|
|
2830
|
+
return [3, 17];
|
|
2831
2831
|
case 10:
|
|
2832
2832
|
_g = [{}];
|
|
2833
|
-
return [4
|
|
2833
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2834
2834
|
case 11:
|
|
2835
2835
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2836
|
-
return [3
|
|
2836
|
+
return [3, 17];
|
|
2837
2837
|
case 12:
|
|
2838
2838
|
_h = [{}];
|
|
2839
|
-
return [4
|
|
2839
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2840
2840
|
case 13:
|
|
2841
2841
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2842
|
-
return [3
|
|
2842
|
+
return [3, 17];
|
|
2843
2843
|
case 14:
|
|
2844
2844
|
_j = [{}];
|
|
2845
|
-
return [4
|
|
2845
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2846
2846
|
case 15:
|
|
2847
2847
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2848
|
-
return [3
|
|
2848
|
+
return [3, 17];
|
|
2849
2849
|
case 16:
|
|
2850
2850
|
parsedBody = parsedOutput.body;
|
|
2851
2851
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2855,7 +2855,7 @@ var deserializeAws_restJson1GetChannelMessageCommandError = function (output, co
|
|
|
2855
2855
|
message = response.message || response.Message || errorCode;
|
|
2856
2856
|
response.message = message;
|
|
2857
2857
|
delete response.Message;
|
|
2858
|
-
return [2
|
|
2858
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2859
2859
|
}
|
|
2860
2860
|
});
|
|
2861
2861
|
}); };
|
|
@@ -2865,7 +2865,7 @@ export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function
|
|
|
2865
2865
|
switch (_c.label) {
|
|
2866
2866
|
case 0:
|
|
2867
2867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
-
return [2
|
|
2868
|
+
return [2, deserializeAws_restJson1GetMessagingSessionEndpointCommandError(output, context)];
|
|
2869
2869
|
}
|
|
2870
2870
|
contents = {
|
|
2871
2871
|
$metadata: deserializeMetadata(output),
|
|
@@ -2873,13 +2873,13 @@ export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function
|
|
|
2873
2873
|
};
|
|
2874
2874
|
_a = __expectNonNull;
|
|
2875
2875
|
_b = __expectObject;
|
|
2876
|
-
return [4
|
|
2876
|
+
return [4, parseBody(output.body, context)];
|
|
2877
2877
|
case 1:
|
|
2878
2878
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2879
2879
|
if (data.Endpoint !== undefined && data.Endpoint !== null) {
|
|
2880
2880
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
2881
2881
|
}
|
|
2882
|
-
return [2
|
|
2882
|
+
return [2, Promise.resolve(contents)];
|
|
2883
2883
|
}
|
|
2884
2884
|
});
|
|
2885
2885
|
}); };
|
|
@@ -2891,55 +2891,55 @@ var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (
|
|
|
2891
2891
|
case 0:
|
|
2892
2892
|
_a = [__assign({}, output)];
|
|
2893
2893
|
_h = {};
|
|
2894
|
-
return [4
|
|
2894
|
+
return [4, parseBody(output.body, context)];
|
|
2895
2895
|
case 1:
|
|
2896
2896
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2897
2897
|
errorCode = "UnknownError";
|
|
2898
2898
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
2899
|
_b = errorCode;
|
|
2900
2900
|
switch (_b) {
|
|
2901
|
-
case "ForbiddenException": return [3
|
|
2902
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
2903
|
-
case "ServiceFailureException": return [3
|
|
2904
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
2905
|
-
case "ServiceUnavailableException": return [3
|
|
2906
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
2907
|
-
case "ThrottledClientException": return [3
|
|
2908
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
2909
|
-
case "UnauthorizedClientException": return [3
|
|
2910
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
2911
|
-
}
|
|
2912
|
-
return [3
|
|
2901
|
+
case "ForbiddenException": return [3, 2];
|
|
2902
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 2];
|
|
2903
|
+
case "ServiceFailureException": return [3, 4];
|
|
2904
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 4];
|
|
2905
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
2906
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 6];
|
|
2907
|
+
case "ThrottledClientException": return [3, 8];
|
|
2908
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 8];
|
|
2909
|
+
case "UnauthorizedClientException": return [3, 10];
|
|
2910
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 10];
|
|
2911
|
+
}
|
|
2912
|
+
return [3, 12];
|
|
2913
2913
|
case 2:
|
|
2914
2914
|
_c = [{}];
|
|
2915
|
-
return [4
|
|
2915
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2916
2916
|
case 3:
|
|
2917
2917
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2918
|
-
return [3
|
|
2918
|
+
return [3, 13];
|
|
2919
2919
|
case 4:
|
|
2920
2920
|
_d = [{}];
|
|
2921
|
-
return [4
|
|
2921
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2922
2922
|
case 5:
|
|
2923
2923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2924
|
-
return [3
|
|
2924
|
+
return [3, 13];
|
|
2925
2925
|
case 6:
|
|
2926
2926
|
_e = [{}];
|
|
2927
|
-
return [4
|
|
2927
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2928
2928
|
case 7:
|
|
2929
2929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2930
|
-
return [3
|
|
2930
|
+
return [3, 13];
|
|
2931
2931
|
case 8:
|
|
2932
2932
|
_f = [{}];
|
|
2933
|
-
return [4
|
|
2933
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2934
2934
|
case 9:
|
|
2935
2935
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2936
|
-
return [3
|
|
2936
|
+
return [3, 13];
|
|
2937
2937
|
case 10:
|
|
2938
2938
|
_g = [{}];
|
|
2939
|
-
return [4
|
|
2939
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
2940
2940
|
case 11:
|
|
2941
2941
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2942
|
-
return [3
|
|
2942
|
+
return [3, 13];
|
|
2943
2943
|
case 12:
|
|
2944
2944
|
parsedBody = parsedOutput.body;
|
|
2945
2945
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2949,7 +2949,7 @@ var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (
|
|
|
2949
2949
|
message = response.message || response.Message || errorCode;
|
|
2950
2950
|
response.message = message;
|
|
2951
2951
|
delete response.Message;
|
|
2952
|
-
return [2
|
|
2952
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2953
2953
|
}
|
|
2954
2954
|
});
|
|
2955
2955
|
}); };
|
|
@@ -2959,7 +2959,7 @@ export var deserializeAws_restJson1ListChannelBansCommand = function (output, co
|
|
|
2959
2959
|
switch (_c.label) {
|
|
2960
2960
|
case 0:
|
|
2961
2961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2962
|
-
return [2
|
|
2962
|
+
return [2, deserializeAws_restJson1ListChannelBansCommandError(output, context)];
|
|
2963
2963
|
}
|
|
2964
2964
|
contents = {
|
|
2965
2965
|
$metadata: deserializeMetadata(output),
|
|
@@ -2969,7 +2969,7 @@ export var deserializeAws_restJson1ListChannelBansCommand = function (output, co
|
|
|
2969
2969
|
};
|
|
2970
2970
|
_a = __expectNonNull;
|
|
2971
2971
|
_b = __expectObject;
|
|
2972
|
-
return [4
|
|
2972
|
+
return [4, parseBody(output.body, context)];
|
|
2973
2973
|
case 1:
|
|
2974
2974
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2975
2975
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -2981,7 +2981,7 @@ export var deserializeAws_restJson1ListChannelBansCommand = function (output, co
|
|
|
2981
2981
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2982
2982
|
contents.NextToken = __expectString(data.NextToken);
|
|
2983
2983
|
}
|
|
2984
|
-
return [2
|
|
2984
|
+
return [2, Promise.resolve(contents)];
|
|
2985
2985
|
}
|
|
2986
2986
|
});
|
|
2987
2987
|
}); };
|
|
@@ -2993,63 +2993,63 @@ var deserializeAws_restJson1ListChannelBansCommandError = function (output, cont
|
|
|
2993
2993
|
case 0:
|
|
2994
2994
|
_a = [__assign({}, output)];
|
|
2995
2995
|
_j = {};
|
|
2996
|
-
return [4
|
|
2996
|
+
return [4, parseBody(output.body, context)];
|
|
2997
2997
|
case 1:
|
|
2998
2998
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2999
2999
|
errorCode = "UnknownError";
|
|
3000
3000
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3001
3001
|
_b = errorCode;
|
|
3002
3002
|
switch (_b) {
|
|
3003
|
-
case "BadRequestException": return [3
|
|
3004
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3005
|
-
case "ForbiddenException": return [3
|
|
3006
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3007
|
-
case "ServiceFailureException": return [3
|
|
3008
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3009
|
-
case "ServiceUnavailableException": return [3
|
|
3010
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3011
|
-
case "ThrottledClientException": return [3
|
|
3012
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3013
|
-
case "UnauthorizedClientException": return [3
|
|
3014
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3015
|
-
}
|
|
3016
|
-
return [3
|
|
3003
|
+
case "BadRequestException": return [3, 2];
|
|
3004
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3005
|
+
case "ForbiddenException": return [3, 4];
|
|
3006
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3007
|
+
case "ServiceFailureException": return [3, 6];
|
|
3008
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3009
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3010
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3011
|
+
case "ThrottledClientException": return [3, 10];
|
|
3012
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3013
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3014
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3015
|
+
}
|
|
3016
|
+
return [3, 14];
|
|
3017
3017
|
case 2:
|
|
3018
3018
|
_c = [{}];
|
|
3019
|
-
return [4
|
|
3019
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3020
3020
|
case 3:
|
|
3021
3021
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3022
|
-
return [3
|
|
3022
|
+
return [3, 15];
|
|
3023
3023
|
case 4:
|
|
3024
3024
|
_d = [{}];
|
|
3025
|
-
return [4
|
|
3025
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3026
3026
|
case 5:
|
|
3027
3027
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3028
|
-
return [3
|
|
3028
|
+
return [3, 15];
|
|
3029
3029
|
case 6:
|
|
3030
3030
|
_e = [{}];
|
|
3031
|
-
return [4
|
|
3031
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3032
3032
|
case 7:
|
|
3033
3033
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3034
|
-
return [3
|
|
3034
|
+
return [3, 15];
|
|
3035
3035
|
case 8:
|
|
3036
3036
|
_f = [{}];
|
|
3037
|
-
return [4
|
|
3037
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3038
3038
|
case 9:
|
|
3039
3039
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3040
|
-
return [3
|
|
3040
|
+
return [3, 15];
|
|
3041
3041
|
case 10:
|
|
3042
3042
|
_g = [{}];
|
|
3043
|
-
return [4
|
|
3043
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3044
3044
|
case 11:
|
|
3045
3045
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3046
|
-
return [3
|
|
3046
|
+
return [3, 15];
|
|
3047
3047
|
case 12:
|
|
3048
3048
|
_h = [{}];
|
|
3049
|
-
return [4
|
|
3049
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3050
3050
|
case 13:
|
|
3051
3051
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3052
|
-
return [3
|
|
3052
|
+
return [3, 15];
|
|
3053
3053
|
case 14:
|
|
3054
3054
|
parsedBody = parsedOutput.body;
|
|
3055
3055
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3059,7 +3059,7 @@ var deserializeAws_restJson1ListChannelBansCommandError = function (output, cont
|
|
|
3059
3059
|
message = response.message || response.Message || errorCode;
|
|
3060
3060
|
response.message = message;
|
|
3061
3061
|
delete response.Message;
|
|
3062
|
-
return [2
|
|
3062
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3063
3063
|
}
|
|
3064
3064
|
});
|
|
3065
3065
|
}); };
|
|
@@ -3069,7 +3069,7 @@ export var deserializeAws_restJson1ListChannelMembershipsCommand = function (out
|
|
|
3069
3069
|
switch (_c.label) {
|
|
3070
3070
|
case 0:
|
|
3071
3071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3072
|
-
return [2
|
|
3072
|
+
return [2, deserializeAws_restJson1ListChannelMembershipsCommandError(output, context)];
|
|
3073
3073
|
}
|
|
3074
3074
|
contents = {
|
|
3075
3075
|
$metadata: deserializeMetadata(output),
|
|
@@ -3079,7 +3079,7 @@ export var deserializeAws_restJson1ListChannelMembershipsCommand = function (out
|
|
|
3079
3079
|
};
|
|
3080
3080
|
_a = __expectNonNull;
|
|
3081
3081
|
_b = __expectObject;
|
|
3082
|
-
return [4
|
|
3082
|
+
return [4, parseBody(output.body, context)];
|
|
3083
3083
|
case 1:
|
|
3084
3084
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3085
3085
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -3091,7 +3091,7 @@ export var deserializeAws_restJson1ListChannelMembershipsCommand = function (out
|
|
|
3091
3091
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3092
3092
|
contents.NextToken = __expectString(data.NextToken);
|
|
3093
3093
|
}
|
|
3094
|
-
return [2
|
|
3094
|
+
return [2, Promise.resolve(contents)];
|
|
3095
3095
|
}
|
|
3096
3096
|
});
|
|
3097
3097
|
}); };
|
|
@@ -3103,63 +3103,63 @@ var deserializeAws_restJson1ListChannelMembershipsCommandError = function (outpu
|
|
|
3103
3103
|
case 0:
|
|
3104
3104
|
_a = [__assign({}, output)];
|
|
3105
3105
|
_j = {};
|
|
3106
|
-
return [4
|
|
3106
|
+
return [4, parseBody(output.body, context)];
|
|
3107
3107
|
case 1:
|
|
3108
3108
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3109
3109
|
errorCode = "UnknownError";
|
|
3110
3110
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3111
3111
|
_b = errorCode;
|
|
3112
3112
|
switch (_b) {
|
|
3113
|
-
case "BadRequestException": return [3
|
|
3114
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3115
|
-
case "ForbiddenException": return [3
|
|
3116
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3117
|
-
case "ServiceFailureException": return [3
|
|
3118
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3119
|
-
case "ServiceUnavailableException": return [3
|
|
3120
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3121
|
-
case "ThrottledClientException": return [3
|
|
3122
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3123
|
-
case "UnauthorizedClientException": return [3
|
|
3124
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3125
|
-
}
|
|
3126
|
-
return [3
|
|
3113
|
+
case "BadRequestException": return [3, 2];
|
|
3114
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3115
|
+
case "ForbiddenException": return [3, 4];
|
|
3116
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3117
|
+
case "ServiceFailureException": return [3, 6];
|
|
3118
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3119
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3120
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3121
|
+
case "ThrottledClientException": return [3, 10];
|
|
3122
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3123
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3124
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3125
|
+
}
|
|
3126
|
+
return [3, 14];
|
|
3127
3127
|
case 2:
|
|
3128
3128
|
_c = [{}];
|
|
3129
|
-
return [4
|
|
3129
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3130
3130
|
case 3:
|
|
3131
3131
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3132
|
-
return [3
|
|
3132
|
+
return [3, 15];
|
|
3133
3133
|
case 4:
|
|
3134
3134
|
_d = [{}];
|
|
3135
|
-
return [4
|
|
3135
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3136
3136
|
case 5:
|
|
3137
3137
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3138
|
-
return [3
|
|
3138
|
+
return [3, 15];
|
|
3139
3139
|
case 6:
|
|
3140
3140
|
_e = [{}];
|
|
3141
|
-
return [4
|
|
3141
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3142
3142
|
case 7:
|
|
3143
3143
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3144
|
-
return [3
|
|
3144
|
+
return [3, 15];
|
|
3145
3145
|
case 8:
|
|
3146
3146
|
_f = [{}];
|
|
3147
|
-
return [4
|
|
3147
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3148
3148
|
case 9:
|
|
3149
3149
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3150
|
-
return [3
|
|
3150
|
+
return [3, 15];
|
|
3151
3151
|
case 10:
|
|
3152
3152
|
_g = [{}];
|
|
3153
|
-
return [4
|
|
3153
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3154
3154
|
case 11:
|
|
3155
3155
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3156
|
-
return [3
|
|
3156
|
+
return [3, 15];
|
|
3157
3157
|
case 12:
|
|
3158
3158
|
_h = [{}];
|
|
3159
|
-
return [4
|
|
3159
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3160
3160
|
case 13:
|
|
3161
3161
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3162
|
-
return [3
|
|
3162
|
+
return [3, 15];
|
|
3163
3163
|
case 14:
|
|
3164
3164
|
parsedBody = parsedOutput.body;
|
|
3165
3165
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3169,7 +3169,7 @@ var deserializeAws_restJson1ListChannelMembershipsCommandError = function (outpu
|
|
|
3169
3169
|
message = response.message || response.Message || errorCode;
|
|
3170
3170
|
response.message = message;
|
|
3171
3171
|
delete response.Message;
|
|
3172
|
-
return [2
|
|
3172
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3173
3173
|
}
|
|
3174
3174
|
});
|
|
3175
3175
|
}); };
|
|
@@ -3179,7 +3179,7 @@ export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
|
|
|
3179
3179
|
switch (_c.label) {
|
|
3180
3180
|
case 0:
|
|
3181
3181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3182
|
-
return [2
|
|
3182
|
+
return [2, deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError(output, context)];
|
|
3183
3183
|
}
|
|
3184
3184
|
contents = {
|
|
3185
3185
|
$metadata: deserializeMetadata(output),
|
|
@@ -3188,7 +3188,7 @@ export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
|
|
|
3188
3188
|
};
|
|
3189
3189
|
_a = __expectNonNull;
|
|
3190
3190
|
_b = __expectObject;
|
|
3191
|
-
return [4
|
|
3191
|
+
return [4, parseBody(output.body, context)];
|
|
3192
3192
|
case 1:
|
|
3193
3193
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3194
3194
|
if (data.ChannelMemberships !== undefined && data.ChannelMemberships !== null) {
|
|
@@ -3197,7 +3197,7 @@ export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
|
|
|
3197
3197
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3198
3198
|
contents.NextToken = __expectString(data.NextToken);
|
|
3199
3199
|
}
|
|
3200
|
-
return [2
|
|
3200
|
+
return [2, Promise.resolve(contents)];
|
|
3201
3201
|
}
|
|
3202
3202
|
});
|
|
3203
3203
|
}); };
|
|
@@ -3209,63 +3209,63 @@ var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError
|
|
|
3209
3209
|
case 0:
|
|
3210
3210
|
_a = [__assign({}, output)];
|
|
3211
3211
|
_j = {};
|
|
3212
|
-
return [4
|
|
3212
|
+
return [4, parseBody(output.body, context)];
|
|
3213
3213
|
case 1:
|
|
3214
3214
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3215
3215
|
errorCode = "UnknownError";
|
|
3216
3216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3217
3217
|
_b = errorCode;
|
|
3218
3218
|
switch (_b) {
|
|
3219
|
-
case "BadRequestException": return [3
|
|
3220
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3221
|
-
case "ForbiddenException": return [3
|
|
3222
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3223
|
-
case "ServiceFailureException": return [3
|
|
3224
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3225
|
-
case "ServiceUnavailableException": return [3
|
|
3226
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3227
|
-
case "ThrottledClientException": return [3
|
|
3228
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3229
|
-
case "UnauthorizedClientException": return [3
|
|
3230
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3231
|
-
}
|
|
3232
|
-
return [3
|
|
3219
|
+
case "BadRequestException": return [3, 2];
|
|
3220
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3221
|
+
case "ForbiddenException": return [3, 4];
|
|
3222
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3223
|
+
case "ServiceFailureException": return [3, 6];
|
|
3224
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3225
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3226
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3227
|
+
case "ThrottledClientException": return [3, 10];
|
|
3228
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3229
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3230
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3231
|
+
}
|
|
3232
|
+
return [3, 14];
|
|
3233
3233
|
case 2:
|
|
3234
3234
|
_c = [{}];
|
|
3235
|
-
return [4
|
|
3235
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3236
3236
|
case 3:
|
|
3237
3237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3238
|
-
return [3
|
|
3238
|
+
return [3, 15];
|
|
3239
3239
|
case 4:
|
|
3240
3240
|
_d = [{}];
|
|
3241
|
-
return [4
|
|
3241
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3242
3242
|
case 5:
|
|
3243
3243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3244
|
-
return [3
|
|
3244
|
+
return [3, 15];
|
|
3245
3245
|
case 6:
|
|
3246
3246
|
_e = [{}];
|
|
3247
|
-
return [4
|
|
3247
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3248
3248
|
case 7:
|
|
3249
3249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3250
|
-
return [3
|
|
3250
|
+
return [3, 15];
|
|
3251
3251
|
case 8:
|
|
3252
3252
|
_f = [{}];
|
|
3253
|
-
return [4
|
|
3253
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3254
3254
|
case 9:
|
|
3255
3255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3256
|
-
return [3
|
|
3256
|
+
return [3, 15];
|
|
3257
3257
|
case 10:
|
|
3258
3258
|
_g = [{}];
|
|
3259
|
-
return [4
|
|
3259
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3260
3260
|
case 11:
|
|
3261
3261
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3262
|
-
return [3
|
|
3262
|
+
return [3, 15];
|
|
3263
3263
|
case 12:
|
|
3264
3264
|
_h = [{}];
|
|
3265
|
-
return [4
|
|
3265
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3266
3266
|
case 13:
|
|
3267
3267
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3268
|
-
return [3
|
|
3268
|
+
return [3, 15];
|
|
3269
3269
|
case 14:
|
|
3270
3270
|
parsedBody = parsedOutput.body;
|
|
3271
3271
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3275,7 +3275,7 @@ var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError
|
|
|
3275
3275
|
message = response.message || response.Message || errorCode;
|
|
3276
3276
|
response.message = message;
|
|
3277
3277
|
delete response.Message;
|
|
3278
|
-
return [2
|
|
3278
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3279
3279
|
}
|
|
3280
3280
|
});
|
|
3281
3281
|
}); };
|
|
@@ -3285,7 +3285,7 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
|
|
|
3285
3285
|
switch (_c.label) {
|
|
3286
3286
|
case 0:
|
|
3287
3287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3288
|
-
return [2
|
|
3288
|
+
return [2, deserializeAws_restJson1ListChannelMessagesCommandError(output, context)];
|
|
3289
3289
|
}
|
|
3290
3290
|
contents = {
|
|
3291
3291
|
$metadata: deserializeMetadata(output),
|
|
@@ -3295,7 +3295,7 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
|
|
|
3295
3295
|
};
|
|
3296
3296
|
_a = __expectNonNull;
|
|
3297
3297
|
_b = __expectObject;
|
|
3298
|
-
return [4
|
|
3298
|
+
return [4, parseBody(output.body, context)];
|
|
3299
3299
|
case 1:
|
|
3300
3300
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3301
3301
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -3307,7 +3307,7 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
|
|
|
3307
3307
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3308
3308
|
contents.NextToken = __expectString(data.NextToken);
|
|
3309
3309
|
}
|
|
3310
|
-
return [2
|
|
3310
|
+
return [2, Promise.resolve(contents)];
|
|
3311
3311
|
}
|
|
3312
3312
|
});
|
|
3313
3313
|
}); };
|
|
@@ -3319,63 +3319,63 @@ var deserializeAws_restJson1ListChannelMessagesCommandError = function (output,
|
|
|
3319
3319
|
case 0:
|
|
3320
3320
|
_a = [__assign({}, output)];
|
|
3321
3321
|
_j = {};
|
|
3322
|
-
return [4
|
|
3322
|
+
return [4, parseBody(output.body, context)];
|
|
3323
3323
|
case 1:
|
|
3324
3324
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3325
3325
|
errorCode = "UnknownError";
|
|
3326
3326
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3327
3327
|
_b = errorCode;
|
|
3328
3328
|
switch (_b) {
|
|
3329
|
-
case "BadRequestException": return [3
|
|
3330
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3331
|
-
case "ForbiddenException": return [3
|
|
3332
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3333
|
-
case "ServiceFailureException": return [3
|
|
3334
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3335
|
-
case "ServiceUnavailableException": return [3
|
|
3336
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3337
|
-
case "ThrottledClientException": return [3
|
|
3338
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3339
|
-
case "UnauthorizedClientException": return [3
|
|
3340
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3341
|
-
}
|
|
3342
|
-
return [3
|
|
3329
|
+
case "BadRequestException": return [3, 2];
|
|
3330
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3331
|
+
case "ForbiddenException": return [3, 4];
|
|
3332
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3333
|
+
case "ServiceFailureException": return [3, 6];
|
|
3334
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3335
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3336
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3337
|
+
case "ThrottledClientException": return [3, 10];
|
|
3338
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3339
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3340
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3341
|
+
}
|
|
3342
|
+
return [3, 14];
|
|
3343
3343
|
case 2:
|
|
3344
3344
|
_c = [{}];
|
|
3345
|
-
return [4
|
|
3345
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3346
3346
|
case 3:
|
|
3347
3347
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3348
|
-
return [3
|
|
3348
|
+
return [3, 15];
|
|
3349
3349
|
case 4:
|
|
3350
3350
|
_d = [{}];
|
|
3351
|
-
return [4
|
|
3351
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3352
3352
|
case 5:
|
|
3353
3353
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3354
|
-
return [3
|
|
3354
|
+
return [3, 15];
|
|
3355
3355
|
case 6:
|
|
3356
3356
|
_e = [{}];
|
|
3357
|
-
return [4
|
|
3357
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3358
3358
|
case 7:
|
|
3359
3359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3360
|
-
return [3
|
|
3360
|
+
return [3, 15];
|
|
3361
3361
|
case 8:
|
|
3362
3362
|
_f = [{}];
|
|
3363
|
-
return [4
|
|
3363
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3364
3364
|
case 9:
|
|
3365
3365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3366
|
-
return [3
|
|
3366
|
+
return [3, 15];
|
|
3367
3367
|
case 10:
|
|
3368
3368
|
_g = [{}];
|
|
3369
|
-
return [4
|
|
3369
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3370
3370
|
case 11:
|
|
3371
3371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3372
|
-
return [3
|
|
3372
|
+
return [3, 15];
|
|
3373
3373
|
case 12:
|
|
3374
3374
|
_h = [{}];
|
|
3375
|
-
return [4
|
|
3375
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3376
3376
|
case 13:
|
|
3377
3377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3378
|
-
return [3
|
|
3378
|
+
return [3, 15];
|
|
3379
3379
|
case 14:
|
|
3380
3380
|
parsedBody = parsedOutput.body;
|
|
3381
3381
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3385,7 +3385,7 @@ var deserializeAws_restJson1ListChannelMessagesCommandError = function (output,
|
|
|
3385
3385
|
message = response.message || response.Message || errorCode;
|
|
3386
3386
|
response.message = message;
|
|
3387
3387
|
delete response.Message;
|
|
3388
|
-
return [2
|
|
3388
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3389
3389
|
}
|
|
3390
3390
|
});
|
|
3391
3391
|
}); };
|
|
@@ -3395,7 +3395,7 @@ export var deserializeAws_restJson1ListChannelModeratorsCommand = function (outp
|
|
|
3395
3395
|
switch (_c.label) {
|
|
3396
3396
|
case 0:
|
|
3397
3397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3398
|
-
return [2
|
|
3398
|
+
return [2, deserializeAws_restJson1ListChannelModeratorsCommandError(output, context)];
|
|
3399
3399
|
}
|
|
3400
3400
|
contents = {
|
|
3401
3401
|
$metadata: deserializeMetadata(output),
|
|
@@ -3405,7 +3405,7 @@ export var deserializeAws_restJson1ListChannelModeratorsCommand = function (outp
|
|
|
3405
3405
|
};
|
|
3406
3406
|
_a = __expectNonNull;
|
|
3407
3407
|
_b = __expectObject;
|
|
3408
|
-
return [4
|
|
3408
|
+
return [4, parseBody(output.body, context)];
|
|
3409
3409
|
case 1:
|
|
3410
3410
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3411
3411
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -3417,7 +3417,7 @@ export var deserializeAws_restJson1ListChannelModeratorsCommand = function (outp
|
|
|
3417
3417
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3418
3418
|
contents.NextToken = __expectString(data.NextToken);
|
|
3419
3419
|
}
|
|
3420
|
-
return [2
|
|
3420
|
+
return [2, Promise.resolve(contents)];
|
|
3421
3421
|
}
|
|
3422
3422
|
});
|
|
3423
3423
|
}); };
|
|
@@ -3429,63 +3429,63 @@ var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output
|
|
|
3429
3429
|
case 0:
|
|
3430
3430
|
_a = [__assign({}, output)];
|
|
3431
3431
|
_j = {};
|
|
3432
|
-
return [4
|
|
3432
|
+
return [4, parseBody(output.body, context)];
|
|
3433
3433
|
case 1:
|
|
3434
3434
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3435
3435
|
errorCode = "UnknownError";
|
|
3436
3436
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3437
3437
|
_b = errorCode;
|
|
3438
3438
|
switch (_b) {
|
|
3439
|
-
case "BadRequestException": return [3
|
|
3440
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3441
|
-
case "ForbiddenException": return [3
|
|
3442
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3443
|
-
case "ServiceFailureException": return [3
|
|
3444
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3445
|
-
case "ServiceUnavailableException": return [3
|
|
3446
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3447
|
-
case "ThrottledClientException": return [3
|
|
3448
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3449
|
-
case "UnauthorizedClientException": return [3
|
|
3450
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3451
|
-
}
|
|
3452
|
-
return [3
|
|
3439
|
+
case "BadRequestException": return [3, 2];
|
|
3440
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3441
|
+
case "ForbiddenException": return [3, 4];
|
|
3442
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3443
|
+
case "ServiceFailureException": return [3, 6];
|
|
3444
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3445
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3446
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3447
|
+
case "ThrottledClientException": return [3, 10];
|
|
3448
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3449
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3450
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3451
|
+
}
|
|
3452
|
+
return [3, 14];
|
|
3453
3453
|
case 2:
|
|
3454
3454
|
_c = [{}];
|
|
3455
|
-
return [4
|
|
3455
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3456
3456
|
case 3:
|
|
3457
3457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3458
|
-
return [3
|
|
3458
|
+
return [3, 15];
|
|
3459
3459
|
case 4:
|
|
3460
3460
|
_d = [{}];
|
|
3461
|
-
return [4
|
|
3461
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3462
3462
|
case 5:
|
|
3463
3463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3464
|
-
return [3
|
|
3464
|
+
return [3, 15];
|
|
3465
3465
|
case 6:
|
|
3466
3466
|
_e = [{}];
|
|
3467
|
-
return [4
|
|
3467
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3468
3468
|
case 7:
|
|
3469
3469
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3470
|
-
return [3
|
|
3470
|
+
return [3, 15];
|
|
3471
3471
|
case 8:
|
|
3472
3472
|
_f = [{}];
|
|
3473
|
-
return [4
|
|
3473
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3474
3474
|
case 9:
|
|
3475
3475
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3476
|
-
return [3
|
|
3476
|
+
return [3, 15];
|
|
3477
3477
|
case 10:
|
|
3478
3478
|
_g = [{}];
|
|
3479
|
-
return [4
|
|
3479
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3480
3480
|
case 11:
|
|
3481
3481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3482
|
-
return [3
|
|
3482
|
+
return [3, 15];
|
|
3483
3483
|
case 12:
|
|
3484
3484
|
_h = [{}];
|
|
3485
|
-
return [4
|
|
3485
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3486
3486
|
case 13:
|
|
3487
3487
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3488
|
-
return [3
|
|
3488
|
+
return [3, 15];
|
|
3489
3489
|
case 14:
|
|
3490
3490
|
parsedBody = parsedOutput.body;
|
|
3491
3491
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3495,7 +3495,7 @@ var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output
|
|
|
3495
3495
|
message = response.message || response.Message || errorCode;
|
|
3496
3496
|
response.message = message;
|
|
3497
3497
|
delete response.Message;
|
|
3498
|
-
return [2
|
|
3498
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3499
3499
|
}
|
|
3500
3500
|
});
|
|
3501
3501
|
}); };
|
|
@@ -3505,7 +3505,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
3505
3505
|
switch (_c.label) {
|
|
3506
3506
|
case 0:
|
|
3507
3507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3508
|
-
return [2
|
|
3508
|
+
return [2, deserializeAws_restJson1ListChannelsCommandError(output, context)];
|
|
3509
3509
|
}
|
|
3510
3510
|
contents = {
|
|
3511
3511
|
$metadata: deserializeMetadata(output),
|
|
@@ -3514,7 +3514,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
3514
3514
|
};
|
|
3515
3515
|
_a = __expectNonNull;
|
|
3516
3516
|
_b = __expectObject;
|
|
3517
|
-
return [4
|
|
3517
|
+
return [4, parseBody(output.body, context)];
|
|
3518
3518
|
case 1:
|
|
3519
3519
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3520
3520
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
@@ -3523,7 +3523,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
3523
3523
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3524
3524
|
contents.NextToken = __expectString(data.NextToken);
|
|
3525
3525
|
}
|
|
3526
|
-
return [2
|
|
3526
|
+
return [2, Promise.resolve(contents)];
|
|
3527
3527
|
}
|
|
3528
3528
|
});
|
|
3529
3529
|
}); };
|
|
@@ -3535,63 +3535,63 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
3535
3535
|
case 0:
|
|
3536
3536
|
_a = [__assign({}, output)];
|
|
3537
3537
|
_j = {};
|
|
3538
|
-
return [4
|
|
3538
|
+
return [4, parseBody(output.body, context)];
|
|
3539
3539
|
case 1:
|
|
3540
3540
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3541
3541
|
errorCode = "UnknownError";
|
|
3542
3542
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3543
3543
|
_b = errorCode;
|
|
3544
3544
|
switch (_b) {
|
|
3545
|
-
case "BadRequestException": return [3
|
|
3546
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3547
|
-
case "ForbiddenException": return [3
|
|
3548
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3549
|
-
case "ServiceFailureException": return [3
|
|
3550
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3551
|
-
case "ServiceUnavailableException": return [3
|
|
3552
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3553
|
-
case "ThrottledClientException": return [3
|
|
3554
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3555
|
-
case "UnauthorizedClientException": return [3
|
|
3556
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3557
|
-
}
|
|
3558
|
-
return [3
|
|
3545
|
+
case "BadRequestException": return [3, 2];
|
|
3546
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3547
|
+
case "ForbiddenException": return [3, 4];
|
|
3548
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3549
|
+
case "ServiceFailureException": return [3, 6];
|
|
3550
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3551
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3552
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3553
|
+
case "ThrottledClientException": return [3, 10];
|
|
3554
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3555
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3556
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3557
|
+
}
|
|
3558
|
+
return [3, 14];
|
|
3559
3559
|
case 2:
|
|
3560
3560
|
_c = [{}];
|
|
3561
|
-
return [4
|
|
3561
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3562
3562
|
case 3:
|
|
3563
3563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3564
|
-
return [3
|
|
3564
|
+
return [3, 15];
|
|
3565
3565
|
case 4:
|
|
3566
3566
|
_d = [{}];
|
|
3567
|
-
return [4
|
|
3567
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3568
3568
|
case 5:
|
|
3569
3569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3570
|
-
return [3
|
|
3570
|
+
return [3, 15];
|
|
3571
3571
|
case 6:
|
|
3572
3572
|
_e = [{}];
|
|
3573
|
-
return [4
|
|
3573
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3574
3574
|
case 7:
|
|
3575
3575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3576
|
-
return [3
|
|
3576
|
+
return [3, 15];
|
|
3577
3577
|
case 8:
|
|
3578
3578
|
_f = [{}];
|
|
3579
|
-
return [4
|
|
3579
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3580
3580
|
case 9:
|
|
3581
3581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3582
|
-
return [3
|
|
3582
|
+
return [3, 15];
|
|
3583
3583
|
case 10:
|
|
3584
3584
|
_g = [{}];
|
|
3585
|
-
return [4
|
|
3585
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3586
3586
|
case 11:
|
|
3587
3587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3588
|
-
return [3
|
|
3588
|
+
return [3, 15];
|
|
3589
3589
|
case 12:
|
|
3590
3590
|
_h = [{}];
|
|
3591
|
-
return [4
|
|
3591
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3592
3592
|
case 13:
|
|
3593
3593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3594
|
-
return [3
|
|
3594
|
+
return [3, 15];
|
|
3595
3595
|
case 14:
|
|
3596
3596
|
parsedBody = parsedOutput.body;
|
|
3597
3597
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3601,7 +3601,7 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
3601
3601
|
message = response.message || response.Message || errorCode;
|
|
3602
3602
|
response.message = message;
|
|
3603
3603
|
delete response.Message;
|
|
3604
|
-
return [2
|
|
3604
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3605
3605
|
}
|
|
3606
3606
|
});
|
|
3607
3607
|
}); };
|
|
@@ -3611,7 +3611,7 @@ export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
|
|
|
3611
3611
|
switch (_c.label) {
|
|
3612
3612
|
case 0:
|
|
3613
3613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3614
|
-
return [2
|
|
3614
|
+
return [2, deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError(output, context)];
|
|
3615
3615
|
}
|
|
3616
3616
|
contents = {
|
|
3617
3617
|
$metadata: deserializeMetadata(output),
|
|
@@ -3620,7 +3620,7 @@ export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
|
|
|
3620
3620
|
};
|
|
3621
3621
|
_a = __expectNonNull;
|
|
3622
3622
|
_b = __expectObject;
|
|
3623
|
-
return [4
|
|
3623
|
+
return [4, parseBody(output.body, context)];
|
|
3624
3624
|
case 1:
|
|
3625
3625
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3626
3626
|
if (data.Channels !== undefined && data.Channels !== null) {
|
|
@@ -3629,7 +3629,7 @@ export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
|
|
|
3629
3629
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3630
3630
|
contents.NextToken = __expectString(data.NextToken);
|
|
3631
3631
|
}
|
|
3632
|
-
return [2
|
|
3632
|
+
return [2, Promise.resolve(contents)];
|
|
3633
3633
|
}
|
|
3634
3634
|
});
|
|
3635
3635
|
}); };
|
|
@@ -3641,63 +3641,63 @@ var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError =
|
|
|
3641
3641
|
case 0:
|
|
3642
3642
|
_a = [__assign({}, output)];
|
|
3643
3643
|
_j = {};
|
|
3644
|
-
return [4
|
|
3644
|
+
return [4, parseBody(output.body, context)];
|
|
3645
3645
|
case 1:
|
|
3646
3646
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3647
3647
|
errorCode = "UnknownError";
|
|
3648
3648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3649
3649
|
_b = errorCode;
|
|
3650
3650
|
switch (_b) {
|
|
3651
|
-
case "BadRequestException": return [3
|
|
3652
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3653
|
-
case "ForbiddenException": return [3
|
|
3654
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3655
|
-
case "ServiceFailureException": return [3
|
|
3656
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3657
|
-
case "ServiceUnavailableException": return [3
|
|
3658
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3659
|
-
case "ThrottledClientException": return [3
|
|
3660
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3661
|
-
case "UnauthorizedClientException": return [3
|
|
3662
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3663
|
-
}
|
|
3664
|
-
return [3
|
|
3651
|
+
case "BadRequestException": return [3, 2];
|
|
3652
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3653
|
+
case "ForbiddenException": return [3, 4];
|
|
3654
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3655
|
+
case "ServiceFailureException": return [3, 6];
|
|
3656
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3657
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3658
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3659
|
+
case "ThrottledClientException": return [3, 10];
|
|
3660
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3661
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3662
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3663
|
+
}
|
|
3664
|
+
return [3, 14];
|
|
3665
3665
|
case 2:
|
|
3666
3666
|
_c = [{}];
|
|
3667
|
-
return [4
|
|
3667
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3668
3668
|
case 3:
|
|
3669
3669
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3670
|
-
return [3
|
|
3670
|
+
return [3, 15];
|
|
3671
3671
|
case 4:
|
|
3672
3672
|
_d = [{}];
|
|
3673
|
-
return [4
|
|
3673
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3674
3674
|
case 5:
|
|
3675
3675
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3676
|
-
return [3
|
|
3676
|
+
return [3, 15];
|
|
3677
3677
|
case 6:
|
|
3678
3678
|
_e = [{}];
|
|
3679
|
-
return [4
|
|
3679
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3680
3680
|
case 7:
|
|
3681
3681
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3682
|
-
return [3
|
|
3682
|
+
return [3, 15];
|
|
3683
3683
|
case 8:
|
|
3684
3684
|
_f = [{}];
|
|
3685
|
-
return [4
|
|
3685
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3686
3686
|
case 9:
|
|
3687
3687
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3688
|
-
return [3
|
|
3688
|
+
return [3, 15];
|
|
3689
3689
|
case 10:
|
|
3690
3690
|
_g = [{}];
|
|
3691
|
-
return [4
|
|
3691
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3692
3692
|
case 11:
|
|
3693
3693
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3694
|
-
return [3
|
|
3694
|
+
return [3, 15];
|
|
3695
3695
|
case 12:
|
|
3696
3696
|
_h = [{}];
|
|
3697
|
-
return [4
|
|
3697
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3698
3698
|
case 13:
|
|
3699
3699
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3700
|
-
return [3
|
|
3700
|
+
return [3, 15];
|
|
3701
3701
|
case 14:
|
|
3702
3702
|
parsedBody = parsedOutput.body;
|
|
3703
3703
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3707,7 +3707,7 @@ var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError =
|
|
|
3707
3707
|
message = response.message || response.Message || errorCode;
|
|
3708
3708
|
response.message = message;
|
|
3709
3709
|
delete response.Message;
|
|
3710
|
-
return [2
|
|
3710
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3711
3711
|
}
|
|
3712
3712
|
});
|
|
3713
3713
|
}); };
|
|
@@ -3717,7 +3717,7 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
|
|
|
3717
3717
|
switch (_c.label) {
|
|
3718
3718
|
case 0:
|
|
3719
3719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3720
|
-
return [2
|
|
3720
|
+
return [2, deserializeAws_restJson1RedactChannelMessageCommandError(output, context)];
|
|
3721
3721
|
}
|
|
3722
3722
|
contents = {
|
|
3723
3723
|
$metadata: deserializeMetadata(output),
|
|
@@ -3726,7 +3726,7 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
|
|
|
3726
3726
|
};
|
|
3727
3727
|
_a = __expectNonNull;
|
|
3728
3728
|
_b = __expectObject;
|
|
3729
|
-
return [4
|
|
3729
|
+
return [4, parseBody(output.body, context)];
|
|
3730
3730
|
case 1:
|
|
3731
3731
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3732
3732
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -3735,7 +3735,7 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
|
|
|
3735
3735
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3736
3736
|
contents.MessageId = __expectString(data.MessageId);
|
|
3737
3737
|
}
|
|
3738
|
-
return [2
|
|
3738
|
+
return [2, Promise.resolve(contents)];
|
|
3739
3739
|
}
|
|
3740
3740
|
});
|
|
3741
3741
|
}); };
|
|
@@ -3747,63 +3747,63 @@ var deserializeAws_restJson1RedactChannelMessageCommandError = function (output,
|
|
|
3747
3747
|
case 0:
|
|
3748
3748
|
_a = [__assign({}, output)];
|
|
3749
3749
|
_j = {};
|
|
3750
|
-
return [4
|
|
3750
|
+
return [4, parseBody(output.body, context)];
|
|
3751
3751
|
case 1:
|
|
3752
3752
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3753
3753
|
errorCode = "UnknownError";
|
|
3754
3754
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3755
3755
|
_b = errorCode;
|
|
3756
3756
|
switch (_b) {
|
|
3757
|
-
case "BadRequestException": return [3
|
|
3758
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3759
|
-
case "ForbiddenException": return [3
|
|
3760
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3761
|
-
case "ServiceFailureException": return [3
|
|
3762
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3763
|
-
case "ServiceUnavailableException": return [3
|
|
3764
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3765
|
-
case "ThrottledClientException": return [3
|
|
3766
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3767
|
-
case "UnauthorizedClientException": return [3
|
|
3768
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3769
|
-
}
|
|
3770
|
-
return [3
|
|
3757
|
+
case "BadRequestException": return [3, 2];
|
|
3758
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3759
|
+
case "ForbiddenException": return [3, 4];
|
|
3760
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
3761
|
+
case "ServiceFailureException": return [3, 6];
|
|
3762
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
3763
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
3764
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
3765
|
+
case "ThrottledClientException": return [3, 10];
|
|
3766
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
3767
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
3768
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
3769
|
+
}
|
|
3770
|
+
return [3, 14];
|
|
3771
3771
|
case 2:
|
|
3772
3772
|
_c = [{}];
|
|
3773
|
-
return [4
|
|
3773
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3774
3774
|
case 3:
|
|
3775
3775
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3776
|
-
return [3
|
|
3776
|
+
return [3, 15];
|
|
3777
3777
|
case 4:
|
|
3778
3778
|
_d = [{}];
|
|
3779
|
-
return [4
|
|
3779
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3780
3780
|
case 5:
|
|
3781
3781
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3782
|
-
return [3
|
|
3782
|
+
return [3, 15];
|
|
3783
3783
|
case 6:
|
|
3784
3784
|
_e = [{}];
|
|
3785
|
-
return [4
|
|
3785
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3786
3786
|
case 7:
|
|
3787
3787
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3788
|
-
return [3
|
|
3788
|
+
return [3, 15];
|
|
3789
3789
|
case 8:
|
|
3790
3790
|
_f = [{}];
|
|
3791
|
-
return [4
|
|
3791
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3792
3792
|
case 9:
|
|
3793
3793
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3794
|
-
return [3
|
|
3794
|
+
return [3, 15];
|
|
3795
3795
|
case 10:
|
|
3796
3796
|
_g = [{}];
|
|
3797
|
-
return [4
|
|
3797
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3798
3798
|
case 11:
|
|
3799
3799
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3800
|
-
return [3
|
|
3800
|
+
return [3, 15];
|
|
3801
3801
|
case 12:
|
|
3802
3802
|
_h = [{}];
|
|
3803
|
-
return [4
|
|
3803
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3804
3804
|
case 13:
|
|
3805
3805
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3806
|
-
return [3
|
|
3806
|
+
return [3, 15];
|
|
3807
3807
|
case 14:
|
|
3808
3808
|
parsedBody = parsedOutput.body;
|
|
3809
3809
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3813,7 +3813,7 @@ var deserializeAws_restJson1RedactChannelMessageCommandError = function (output,
|
|
|
3813
3813
|
message = response.message || response.Message || errorCode;
|
|
3814
3814
|
response.message = message;
|
|
3815
3815
|
delete response.Message;
|
|
3816
|
-
return [2
|
|
3816
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3817
3817
|
}
|
|
3818
3818
|
});
|
|
3819
3819
|
}); };
|
|
@@ -3823,7 +3823,7 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
|
|
|
3823
3823
|
switch (_c.label) {
|
|
3824
3824
|
case 0:
|
|
3825
3825
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3826
|
-
return [2
|
|
3826
|
+
return [2, deserializeAws_restJson1SendChannelMessageCommandError(output, context)];
|
|
3827
3827
|
}
|
|
3828
3828
|
contents = {
|
|
3829
3829
|
$metadata: deserializeMetadata(output),
|
|
@@ -3832,7 +3832,7 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
|
|
|
3832
3832
|
};
|
|
3833
3833
|
_a = __expectNonNull;
|
|
3834
3834
|
_b = __expectObject;
|
|
3835
|
-
return [4
|
|
3835
|
+
return [4, parseBody(output.body, context)];
|
|
3836
3836
|
case 1:
|
|
3837
3837
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3838
3838
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -3841,7 +3841,7 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
|
|
|
3841
3841
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
3842
3842
|
contents.MessageId = __expectString(data.MessageId);
|
|
3843
3843
|
}
|
|
3844
|
-
return [2
|
|
3844
|
+
return [2, Promise.resolve(contents)];
|
|
3845
3845
|
}
|
|
3846
3846
|
});
|
|
3847
3847
|
}); };
|
|
@@ -3853,71 +3853,71 @@ var deserializeAws_restJson1SendChannelMessageCommandError = function (output, c
|
|
|
3853
3853
|
case 0:
|
|
3854
3854
|
_a = [__assign({}, output)];
|
|
3855
3855
|
_k = {};
|
|
3856
|
-
return [4
|
|
3856
|
+
return [4, parseBody(output.body, context)];
|
|
3857
3857
|
case 1:
|
|
3858
3858
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
3859
3859
|
errorCode = "UnknownError";
|
|
3860
3860
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3861
3861
|
_b = errorCode;
|
|
3862
3862
|
switch (_b) {
|
|
3863
|
-
case "BadRequestException": return [3
|
|
3864
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3865
|
-
case "ConflictException": return [3
|
|
3866
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
3867
|
-
case "ForbiddenException": return [3
|
|
3868
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3869
|
-
case "ServiceFailureException": return [3
|
|
3870
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3871
|
-
case "ServiceUnavailableException": return [3
|
|
3872
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3873
|
-
case "ThrottledClientException": return [3
|
|
3874
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3875
|
-
case "UnauthorizedClientException": return [3
|
|
3876
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3877
|
-
}
|
|
3878
|
-
return [3
|
|
3863
|
+
case "BadRequestException": return [3, 2];
|
|
3864
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3865
|
+
case "ConflictException": return [3, 4];
|
|
3866
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
3867
|
+
case "ForbiddenException": return [3, 6];
|
|
3868
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
3869
|
+
case "ServiceFailureException": return [3, 8];
|
|
3870
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
3871
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3872
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
3873
|
+
case "ThrottledClientException": return [3, 12];
|
|
3874
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
3875
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
3876
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
3877
|
+
}
|
|
3878
|
+
return [3, 16];
|
|
3879
3879
|
case 2:
|
|
3880
3880
|
_c = [{}];
|
|
3881
|
-
return [4
|
|
3881
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3882
3882
|
case 3:
|
|
3883
3883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3884
|
-
return [3
|
|
3884
|
+
return [3, 17];
|
|
3885
3885
|
case 4:
|
|
3886
3886
|
_d = [{}];
|
|
3887
|
-
return [4
|
|
3887
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3888
3888
|
case 5:
|
|
3889
3889
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3890
|
-
return [3
|
|
3890
|
+
return [3, 17];
|
|
3891
3891
|
case 6:
|
|
3892
3892
|
_e = [{}];
|
|
3893
|
-
return [4
|
|
3893
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
3894
3894
|
case 7:
|
|
3895
3895
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3896
|
-
return [3
|
|
3896
|
+
return [3, 17];
|
|
3897
3897
|
case 8:
|
|
3898
3898
|
_f = [{}];
|
|
3899
|
-
return [4
|
|
3899
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
3900
3900
|
case 9:
|
|
3901
3901
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3902
|
-
return [3
|
|
3902
|
+
return [3, 17];
|
|
3903
3903
|
case 10:
|
|
3904
3904
|
_g = [{}];
|
|
3905
|
-
return [4
|
|
3905
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
3906
3906
|
case 11:
|
|
3907
3907
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3908
|
-
return [3
|
|
3908
|
+
return [3, 17];
|
|
3909
3909
|
case 12:
|
|
3910
3910
|
_h = [{}];
|
|
3911
|
-
return [4
|
|
3911
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
3912
3912
|
case 13:
|
|
3913
3913
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3914
|
-
return [3
|
|
3914
|
+
return [3, 17];
|
|
3915
3915
|
case 14:
|
|
3916
3916
|
_j = [{}];
|
|
3917
|
-
return [4
|
|
3917
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
3918
3918
|
case 15:
|
|
3919
3919
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3920
|
-
return [3
|
|
3920
|
+
return [3, 17];
|
|
3921
3921
|
case 16:
|
|
3922
3922
|
parsedBody = parsedOutput.body;
|
|
3923
3923
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3927,7 +3927,7 @@ var deserializeAws_restJson1SendChannelMessageCommandError = function (output, c
|
|
|
3927
3927
|
message = response.message || response.Message || errorCode;
|
|
3928
3928
|
response.message = message;
|
|
3929
3929
|
delete response.Message;
|
|
3930
|
-
return [2
|
|
3930
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3931
3931
|
}
|
|
3932
3932
|
});
|
|
3933
3933
|
}); };
|
|
@@ -3937,7 +3937,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
3937
3937
|
switch (_c.label) {
|
|
3938
3938
|
case 0:
|
|
3939
3939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3940
|
-
return [2
|
|
3940
|
+
return [2, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
|
|
3941
3941
|
}
|
|
3942
3942
|
contents = {
|
|
3943
3943
|
$metadata: deserializeMetadata(output),
|
|
@@ -3945,13 +3945,13 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
3945
3945
|
};
|
|
3946
3946
|
_a = __expectNonNull;
|
|
3947
3947
|
_b = __expectObject;
|
|
3948
|
-
return [4
|
|
3948
|
+
return [4, parseBody(output.body, context)];
|
|
3949
3949
|
case 1:
|
|
3950
3950
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3951
3951
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
3952
3952
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3953
3953
|
}
|
|
3954
|
-
return [2
|
|
3954
|
+
return [2, Promise.resolve(contents)];
|
|
3955
3955
|
}
|
|
3956
3956
|
});
|
|
3957
3957
|
}); };
|
|
@@ -3963,71 +3963,71 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
3963
3963
|
case 0:
|
|
3964
3964
|
_a = [__assign({}, output)];
|
|
3965
3965
|
_k = {};
|
|
3966
|
-
return [4
|
|
3966
|
+
return [4, parseBody(output.body, context)];
|
|
3967
3967
|
case 1:
|
|
3968
3968
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
3969
3969
|
errorCode = "UnknownError";
|
|
3970
3970
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3971
3971
|
_b = errorCode;
|
|
3972
3972
|
switch (_b) {
|
|
3973
|
-
case "BadRequestException": return [3
|
|
3974
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
3975
|
-
case "ConflictException": return [3
|
|
3976
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
3977
|
-
case "ForbiddenException": return [3
|
|
3978
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
3979
|
-
case "ServiceFailureException": return [3
|
|
3980
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
3981
|
-
case "ServiceUnavailableException": return [3
|
|
3982
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
3983
|
-
case "ThrottledClientException": return [3
|
|
3984
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
3985
|
-
case "UnauthorizedClientException": return [3
|
|
3986
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
3987
|
-
}
|
|
3988
|
-
return [3
|
|
3973
|
+
case "BadRequestException": return [3, 2];
|
|
3974
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
3975
|
+
case "ConflictException": return [3, 4];
|
|
3976
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
3977
|
+
case "ForbiddenException": return [3, 6];
|
|
3978
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
3979
|
+
case "ServiceFailureException": return [3, 8];
|
|
3980
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
3981
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
3982
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
3983
|
+
case "ThrottledClientException": return [3, 12];
|
|
3984
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
3985
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
3986
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
3987
|
+
}
|
|
3988
|
+
return [3, 16];
|
|
3989
3989
|
case 2:
|
|
3990
3990
|
_c = [{}];
|
|
3991
|
-
return [4
|
|
3991
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3992
3992
|
case 3:
|
|
3993
3993
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3994
|
-
return [3
|
|
3994
|
+
return [3, 17];
|
|
3995
3995
|
case 4:
|
|
3996
3996
|
_d = [{}];
|
|
3997
|
-
return [4
|
|
3997
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3998
3998
|
case 5:
|
|
3999
3999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4000
|
-
return [3
|
|
4000
|
+
return [3, 17];
|
|
4001
4001
|
case 6:
|
|
4002
4002
|
_e = [{}];
|
|
4003
|
-
return [4
|
|
4003
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
4004
4004
|
case 7:
|
|
4005
4005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4006
|
-
return [3
|
|
4006
|
+
return [3, 17];
|
|
4007
4007
|
case 8:
|
|
4008
4008
|
_f = [{}];
|
|
4009
|
-
return [4
|
|
4009
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
4010
4010
|
case 9:
|
|
4011
4011
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4012
|
-
return [3
|
|
4012
|
+
return [3, 17];
|
|
4013
4013
|
case 10:
|
|
4014
4014
|
_g = [{}];
|
|
4015
|
-
return [4
|
|
4015
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4016
4016
|
case 11:
|
|
4017
4017
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4018
|
-
return [3
|
|
4018
|
+
return [3, 17];
|
|
4019
4019
|
case 12:
|
|
4020
4020
|
_h = [{}];
|
|
4021
|
-
return [4
|
|
4021
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
4022
4022
|
case 13:
|
|
4023
4023
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4024
|
-
return [3
|
|
4024
|
+
return [3, 17];
|
|
4025
4025
|
case 14:
|
|
4026
4026
|
_j = [{}];
|
|
4027
|
-
return [4
|
|
4027
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
4028
4028
|
case 15:
|
|
4029
4029
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4030
|
-
return [3
|
|
4030
|
+
return [3, 17];
|
|
4031
4031
|
case 16:
|
|
4032
4032
|
parsedBody = parsedOutput.body;
|
|
4033
4033
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4037,7 +4037,7 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
4037
4037
|
message = response.message || response.Message || errorCode;
|
|
4038
4038
|
response.message = message;
|
|
4039
4039
|
delete response.Message;
|
|
4040
|
-
return [2
|
|
4040
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4041
4041
|
}
|
|
4042
4042
|
});
|
|
4043
4043
|
}); };
|
|
@@ -4047,7 +4047,7 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
|
|
|
4047
4047
|
switch (_c.label) {
|
|
4048
4048
|
case 0:
|
|
4049
4049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4050
|
-
return [2
|
|
4050
|
+
return [2, deserializeAws_restJson1UpdateChannelMessageCommandError(output, context)];
|
|
4051
4051
|
}
|
|
4052
4052
|
contents = {
|
|
4053
4053
|
$metadata: deserializeMetadata(output),
|
|
@@ -4056,7 +4056,7 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
|
|
|
4056
4056
|
};
|
|
4057
4057
|
_a = __expectNonNull;
|
|
4058
4058
|
_b = __expectObject;
|
|
4059
|
-
return [4
|
|
4059
|
+
return [4, parseBody(output.body, context)];
|
|
4060
4060
|
case 1:
|
|
4061
4061
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4062
4062
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
@@ -4065,7 +4065,7 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
|
|
|
4065
4065
|
if (data.MessageId !== undefined && data.MessageId !== null) {
|
|
4066
4066
|
contents.MessageId = __expectString(data.MessageId);
|
|
4067
4067
|
}
|
|
4068
|
-
return [2
|
|
4068
|
+
return [2, Promise.resolve(contents)];
|
|
4069
4069
|
}
|
|
4070
4070
|
});
|
|
4071
4071
|
}); };
|
|
@@ -4077,71 +4077,71 @@ var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output,
|
|
|
4077
4077
|
case 0:
|
|
4078
4078
|
_a = [__assign({}, output)];
|
|
4079
4079
|
_k = {};
|
|
4080
|
-
return [4
|
|
4080
|
+
return [4, parseBody(output.body, context)];
|
|
4081
4081
|
case 1:
|
|
4082
4082
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
4083
4083
|
errorCode = "UnknownError";
|
|
4084
4084
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4085
4085
|
_b = errorCode;
|
|
4086
4086
|
switch (_b) {
|
|
4087
|
-
case "BadRequestException": return [3
|
|
4088
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
4089
|
-
case "ConflictException": return [3
|
|
4090
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
4091
|
-
case "ForbiddenException": return [3
|
|
4092
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
4093
|
-
case "ServiceFailureException": return [3
|
|
4094
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
4095
|
-
case "ServiceUnavailableException": return [3
|
|
4096
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
4097
|
-
case "ThrottledClientException": return [3
|
|
4098
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
4099
|
-
case "UnauthorizedClientException": return [3
|
|
4100
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
4101
|
-
}
|
|
4102
|
-
return [3
|
|
4087
|
+
case "BadRequestException": return [3, 2];
|
|
4088
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
4089
|
+
case "ConflictException": return [3, 4];
|
|
4090
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
4091
|
+
case "ForbiddenException": return [3, 6];
|
|
4092
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
4093
|
+
case "ServiceFailureException": return [3, 8];
|
|
4094
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
4095
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
4096
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
4097
|
+
case "ThrottledClientException": return [3, 12];
|
|
4098
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
4099
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
4100
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
4101
|
+
}
|
|
4102
|
+
return [3, 16];
|
|
4103
4103
|
case 2:
|
|
4104
4104
|
_c = [{}];
|
|
4105
|
-
return [4
|
|
4105
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4106
4106
|
case 3:
|
|
4107
4107
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4108
|
-
return [3
|
|
4108
|
+
return [3, 17];
|
|
4109
4109
|
case 4:
|
|
4110
4110
|
_d = [{}];
|
|
4111
|
-
return [4
|
|
4111
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
4112
4112
|
case 5:
|
|
4113
4113
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4114
|
-
return [3
|
|
4114
|
+
return [3, 17];
|
|
4115
4115
|
case 6:
|
|
4116
4116
|
_e = [{}];
|
|
4117
|
-
return [4
|
|
4117
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
4118
4118
|
case 7:
|
|
4119
4119
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4120
|
-
return [3
|
|
4120
|
+
return [3, 17];
|
|
4121
4121
|
case 8:
|
|
4122
4122
|
_f = [{}];
|
|
4123
|
-
return [4
|
|
4123
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
4124
4124
|
case 9:
|
|
4125
4125
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4126
|
-
return [3
|
|
4126
|
+
return [3, 17];
|
|
4127
4127
|
case 10:
|
|
4128
4128
|
_g = [{}];
|
|
4129
|
-
return [4
|
|
4129
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4130
4130
|
case 11:
|
|
4131
4131
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4132
|
-
return [3
|
|
4132
|
+
return [3, 17];
|
|
4133
4133
|
case 12:
|
|
4134
4134
|
_h = [{}];
|
|
4135
|
-
return [4
|
|
4135
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
4136
4136
|
case 13:
|
|
4137
4137
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4138
|
-
return [3
|
|
4138
|
+
return [3, 17];
|
|
4139
4139
|
case 14:
|
|
4140
4140
|
_j = [{}];
|
|
4141
|
-
return [4
|
|
4141
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
4142
4142
|
case 15:
|
|
4143
4143
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4144
|
-
return [3
|
|
4144
|
+
return [3, 17];
|
|
4145
4145
|
case 16:
|
|
4146
4146
|
parsedBody = parsedOutput.body;
|
|
4147
4147
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4151,7 +4151,7 @@ var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output,
|
|
|
4151
4151
|
message = response.message || response.Message || errorCode;
|
|
4152
4152
|
response.message = message;
|
|
4153
4153
|
delete response.Message;
|
|
4154
|
-
return [2
|
|
4154
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4155
4155
|
}
|
|
4156
4156
|
});
|
|
4157
4157
|
}); };
|
|
@@ -4161,7 +4161,7 @@ export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (ou
|
|
|
4161
4161
|
switch (_c.label) {
|
|
4162
4162
|
case 0:
|
|
4163
4163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4164
|
-
return [2
|
|
4164
|
+
return [2, deserializeAws_restJson1UpdateChannelReadMarkerCommandError(output, context)];
|
|
4165
4165
|
}
|
|
4166
4166
|
contents = {
|
|
4167
4167
|
$metadata: deserializeMetadata(output),
|
|
@@ -4169,13 +4169,13 @@ export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (ou
|
|
|
4169
4169
|
};
|
|
4170
4170
|
_a = __expectNonNull;
|
|
4171
4171
|
_b = __expectObject;
|
|
4172
|
-
return [4
|
|
4172
|
+
return [4, parseBody(output.body, context)];
|
|
4173
4173
|
case 1:
|
|
4174
4174
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4175
4175
|
if (data.ChannelArn !== undefined && data.ChannelArn !== null) {
|
|
4176
4176
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4177
4177
|
}
|
|
4178
|
-
return [2
|
|
4178
|
+
return [2, Promise.resolve(contents)];
|
|
4179
4179
|
}
|
|
4180
4180
|
});
|
|
4181
4181
|
}); };
|
|
@@ -4187,71 +4187,71 @@ var deserializeAws_restJson1UpdateChannelReadMarkerCommandError = function (outp
|
|
|
4187
4187
|
case 0:
|
|
4188
4188
|
_a = [__assign({}, output)];
|
|
4189
4189
|
_k = {};
|
|
4190
|
-
return [4
|
|
4190
|
+
return [4, parseBody(output.body, context)];
|
|
4191
4191
|
case 1:
|
|
4192
4192
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
4193
4193
|
errorCode = "UnknownError";
|
|
4194
4194
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4195
4195
|
_b = errorCode;
|
|
4196
4196
|
switch (_b) {
|
|
4197
|
-
case "BadRequestException": return [3
|
|
4198
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3
|
|
4199
|
-
case "ConflictException": return [3
|
|
4200
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3
|
|
4201
|
-
case "ForbiddenException": return [3
|
|
4202
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3
|
|
4203
|
-
case "ServiceFailureException": return [3
|
|
4204
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3
|
|
4205
|
-
case "ServiceUnavailableException": return [3
|
|
4206
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3
|
|
4207
|
-
case "ThrottledClientException": return [3
|
|
4208
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3
|
|
4209
|
-
case "UnauthorizedClientException": return [3
|
|
4210
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3
|
|
4211
|
-
}
|
|
4212
|
-
return [3
|
|
4197
|
+
case "BadRequestException": return [3, 2];
|
|
4198
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
4199
|
+
case "ConflictException": return [3, 4];
|
|
4200
|
+
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
4201
|
+
case "ForbiddenException": return [3, 6];
|
|
4202
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
4203
|
+
case "ServiceFailureException": return [3, 8];
|
|
4204
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 8];
|
|
4205
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
4206
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 10];
|
|
4207
|
+
case "ThrottledClientException": return [3, 12];
|
|
4208
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 12];
|
|
4209
|
+
case "UnauthorizedClientException": return [3, 14];
|
|
4210
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 14];
|
|
4211
|
+
}
|
|
4212
|
+
return [3, 16];
|
|
4213
4213
|
case 2:
|
|
4214
4214
|
_c = [{}];
|
|
4215
|
-
return [4
|
|
4215
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4216
4216
|
case 3:
|
|
4217
4217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4218
|
-
return [3
|
|
4218
|
+
return [3, 17];
|
|
4219
4219
|
case 4:
|
|
4220
4220
|
_d = [{}];
|
|
4221
|
-
return [4
|
|
4221
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
4222
4222
|
case 5:
|
|
4223
4223
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4224
|
-
return [3
|
|
4224
|
+
return [3, 17];
|
|
4225
4225
|
case 6:
|
|
4226
4226
|
_e = [{}];
|
|
4227
|
-
return [4
|
|
4227
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
4228
4228
|
case 7:
|
|
4229
4229
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4230
|
-
return [3
|
|
4230
|
+
return [3, 17];
|
|
4231
4231
|
case 8:
|
|
4232
4232
|
_f = [{}];
|
|
4233
|
-
return [4
|
|
4233
|
+
return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
4234
4234
|
case 9:
|
|
4235
4235
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4236
|
-
return [3
|
|
4236
|
+
return [3, 17];
|
|
4237
4237
|
case 10:
|
|
4238
4238
|
_g = [{}];
|
|
4239
|
-
return [4
|
|
4239
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4240
4240
|
case 11:
|
|
4241
4241
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4242
|
-
return [3
|
|
4242
|
+
return [3, 17];
|
|
4243
4243
|
case 12:
|
|
4244
4244
|
_h = [{}];
|
|
4245
|
-
return [4
|
|
4245
|
+
return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
4246
4246
|
case 13:
|
|
4247
4247
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4248
|
-
return [3
|
|
4248
|
+
return [3, 17];
|
|
4249
4249
|
case 14:
|
|
4250
4250
|
_j = [{}];
|
|
4251
|
-
return [4
|
|
4251
|
+
return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
4252
4252
|
case 15:
|
|
4253
4253
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4254
|
-
return [3
|
|
4254
|
+
return [3, 17];
|
|
4255
4255
|
case 16:
|
|
4256
4256
|
parsedBody = parsedOutput.body;
|
|
4257
4257
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4261,7 +4261,7 @@ var deserializeAws_restJson1UpdateChannelReadMarkerCommandError = function (outp
|
|
|
4261
4261
|
message = response.message || response.Message || errorCode;
|
|
4262
4262
|
response.message = message;
|
|
4263
4263
|
delete response.Message;
|
|
4264
|
-
return [2
|
|
4264
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4265
4265
|
}
|
|
4266
4266
|
});
|
|
4267
4267
|
}); };
|
|
@@ -4282,7 +4282,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
4282
4282
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4283
4283
|
contents.Message = __expectString(data.Message);
|
|
4284
4284
|
}
|
|
4285
|
-
return [2
|
|
4285
|
+
return [2, contents];
|
|
4286
4286
|
});
|
|
4287
4287
|
}); };
|
|
4288
4288
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4302,7 +4302,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
4302
4302
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4303
4303
|
contents.Message = __expectString(data.Message);
|
|
4304
4304
|
}
|
|
4305
|
-
return [2
|
|
4305
|
+
return [2, contents];
|
|
4306
4306
|
});
|
|
4307
4307
|
}); };
|
|
4308
4308
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4322,7 +4322,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
4322
4322
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4323
4323
|
contents.Message = __expectString(data.Message);
|
|
4324
4324
|
}
|
|
4325
|
-
return [2
|
|
4325
|
+
return [2, contents];
|
|
4326
4326
|
});
|
|
4327
4327
|
}); };
|
|
4328
4328
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4342,7 +4342,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
4342
4342
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4343
4343
|
contents.Message = __expectString(data.Message);
|
|
4344
4344
|
}
|
|
4345
|
-
return [2
|
|
4345
|
+
return [2, contents];
|
|
4346
4346
|
});
|
|
4347
4347
|
}); };
|
|
4348
4348
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4362,7 +4362,7 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
4362
4362
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4363
4363
|
contents.Message = __expectString(data.Message);
|
|
4364
4364
|
}
|
|
4365
|
-
return [2
|
|
4365
|
+
return [2, contents];
|
|
4366
4366
|
});
|
|
4367
4367
|
}); };
|
|
4368
4368
|
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4382,7 +4382,7 @@ var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOu
|
|
|
4382
4382
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4383
4383
|
contents.Message = __expectString(data.Message);
|
|
4384
4384
|
}
|
|
4385
|
-
return [2
|
|
4385
|
+
return [2, contents];
|
|
4386
4386
|
});
|
|
4387
4387
|
}); };
|
|
4388
4388
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4402,7 +4402,7 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
4402
4402
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4403
4403
|
contents.Message = __expectString(data.Message);
|
|
4404
4404
|
}
|
|
4405
|
-
return [2
|
|
4405
|
+
return [2, contents];
|
|
4406
4406
|
});
|
|
4407
4407
|
}); };
|
|
4408
4408
|
var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4422,7 +4422,7 @@ var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedO
|
|
|
4422
4422
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4423
4423
|
contents.Message = __expectString(data.Message);
|
|
4424
4424
|
}
|
|
4425
|
-
return [2
|
|
4425
|
+
return [2, contents];
|
|
4426
4426
|
});
|
|
4427
4427
|
}); };
|
|
4428
4428
|
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -4442,7 +4442,7 @@ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (pars
|
|
|
4442
4442
|
if (data.Message !== undefined && data.Message !== null) {
|
|
4443
4443
|
contents.Message = __expectString(data.Message);
|
|
4444
4444
|
}
|
|
4445
|
-
return [2
|
|
4445
|
+
return [2, contents];
|
|
4446
4446
|
});
|
|
4447
4447
|
}); };
|
|
4448
4448
|
var serializeAws_restJson1MemberArns = function (input, context) {
|
|
@@ -4471,7 +4471,7 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
4471
4471
|
var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output, context) {
|
|
4472
4472
|
return {
|
|
4473
4473
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
|
|
4474
|
-
?
|
|
4474
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
|
|
4475
4475
|
: undefined,
|
|
4476
4476
|
Type: __expectString(output.Type),
|
|
4477
4477
|
};
|
|
@@ -4512,13 +4512,13 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
4512
4512
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4513
4513
|
: undefined,
|
|
4514
4514
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4515
|
-
?
|
|
4515
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4516
4516
|
: undefined,
|
|
4517
4517
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4518
|
-
?
|
|
4518
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
4519
4519
|
: undefined,
|
|
4520
4520
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4521
|
-
?
|
|
4521
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4522
4522
|
: undefined,
|
|
4523
4523
|
Metadata: __expectString(output.Metadata),
|
|
4524
4524
|
Mode: __expectString(output.Mode),
|
|
@@ -4533,7 +4533,7 @@ var deserializeAws_restJson1ChannelBan = function (output, context) {
|
|
|
4533
4533
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4534
4534
|
: undefined,
|
|
4535
4535
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4536
|
-
?
|
|
4536
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4537
4537
|
: undefined,
|
|
4538
4538
|
Member: output.Member !== undefined && output.Member !== null
|
|
4539
4539
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -4561,13 +4561,13 @@ var deserializeAws_restJson1ChannelMembership = function (output, context) {
|
|
|
4561
4561
|
return {
|
|
4562
4562
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4563
4563
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4564
|
-
?
|
|
4564
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4565
4565
|
: undefined,
|
|
4566
4566
|
InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
|
|
4567
4567
|
? deserializeAws_restJson1Identity(output.InvitedBy, context)
|
|
4568
4568
|
: undefined,
|
|
4569
4569
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4570
|
-
?
|
|
4570
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4571
4571
|
: undefined,
|
|
4572
4572
|
Member: output.Member !== undefined && output.Member !== null
|
|
4573
4573
|
? deserializeAws_restJson1Identity(output.Member, context)
|
|
@@ -4617,13 +4617,13 @@ var deserializeAws_restJson1ChannelMessage = function (output, context) {
|
|
|
4617
4617
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4618
4618
|
Content: __expectString(output.Content),
|
|
4619
4619
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4620
|
-
?
|
|
4620
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4621
4621
|
: undefined,
|
|
4622
4622
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4623
|
-
?
|
|
4623
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
4624
4624
|
: undefined,
|
|
4625
4625
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4626
|
-
?
|
|
4626
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4627
4627
|
: undefined,
|
|
4628
4628
|
MessageId: __expectString(output.MessageId),
|
|
4629
4629
|
Metadata: __expectString(output.Metadata),
|
|
@@ -4639,13 +4639,13 @@ var deserializeAws_restJson1ChannelMessageSummary = function (output, context) {
|
|
|
4639
4639
|
return {
|
|
4640
4640
|
Content: __expectString(output.Content),
|
|
4641
4641
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4642
|
-
?
|
|
4642
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4643
4643
|
: undefined,
|
|
4644
4644
|
LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
|
|
4645
|
-
?
|
|
4645
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
4646
4646
|
: undefined,
|
|
4647
4647
|
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
4648
|
-
?
|
|
4648
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
4649
4649
|
: undefined,
|
|
4650
4650
|
MessageId: __expectString(output.MessageId),
|
|
4651
4651
|
Metadata: __expectString(output.Metadata),
|
|
@@ -4690,7 +4690,7 @@ var deserializeAws_restJson1ChannelModerator = function (output, context) {
|
|
|
4690
4690
|
? deserializeAws_restJson1Identity(output.CreatedBy, context)
|
|
4691
4691
|
: undefined,
|
|
4692
4692
|
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4693
|
-
?
|
|
4693
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
4694
4694
|
: undefined,
|
|
4695
4695
|
Moderator: output.Moderator !== undefined && output.Moderator !== null
|
|
4696
4696
|
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
@@ -4718,7 +4718,7 @@ var deserializeAws_restJson1ChannelSummary = function (output, context) {
|
|
|
4718
4718
|
return {
|
|
4719
4719
|
ChannelArn: __expectString(output.ChannelArn),
|
|
4720
4720
|
LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
|
|
4721
|
-
?
|
|
4721
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
4722
4722
|
: undefined,
|
|
4723
4723
|
Metadata: __expectString(output.Metadata),
|
|
4724
4724
|
Mode: __expectString(output.Mode),
|
|
@@ -4766,7 +4766,6 @@ var deserializeMetadata = function (output) {
|
|
|
4766
4766
|
cfId: output.headers["x-amz-cf-id"],
|
|
4767
4767
|
});
|
|
4768
4768
|
};
|
|
4769
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4770
4769
|
var collectBody = function (streamBody, context) {
|
|
4771
4770
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4772
4771
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4774,7 +4773,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4774
4773
|
}
|
|
4775
4774
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4776
4775
|
};
|
|
4777
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4778
4776
|
var collectBodyString = function (streamBody, context) {
|
|
4779
4777
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4780
4778
|
};
|
|
@@ -4793,9 +4791,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4793
4791
|
return {};
|
|
4794
4792
|
});
|
|
4795
4793
|
};
|
|
4796
|
-
/**
|
|
4797
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4798
|
-
*/
|
|
4799
4794
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4800
4795
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4801
4796
|
var sanitizeErrorCode = function (rawValue) {
|