@aws-sdk/client-chime-sdk-messaging 3.141.0 → 3.149.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 +30 -0
- package/dist-cjs/ChimeSDKMessaging.js +15 -0
- package/dist-cjs/commands/ListSubChannelsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +36 -18
- package/dist-cjs/pagination/ListSubChannelsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +895 -1364
- package/dist-es/ChimeSDKMessaging.js +15 -0
- package/dist-es/commands/ListSubChannelsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +18 -14
- package/dist-es/pagination/ListSubChannelsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +1134 -1311
- package/dist-types/ChimeSDKMessaging.d.ts +7 -0
- package/dist-types/ChimeSDKMessagingClient.d.ts +3 -2
- package/dist-types/commands/ListSubChannelsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +232 -13
- package/dist-types/pagination/ListSubChannelsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/ChimeSDKMessaging.d.ts +5 -0
- package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/ListSubChannelsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +105 -9
- package/dist-types/ts3.4/pagination/ListSubChannelsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +11 -6
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { ChimeSDKMessagingServiceException as __BaseException } from "../models/ChimeSDKMessagingServiceException";
|
|
6
6
|
import { BadRequestException, ConflictException, ForbiddenException, NotFoundException, ResourceLimitExceededException, ServiceFailureException, ServiceUnavailableException, ThrottledClientException, UnauthorizedClientException, } from "../models/models_0";
|
|
7
7
|
export var serializeAws_restJson1AssociateChannelFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
9
|
return __generator(this, function (_c) {
|
|
10
10
|
switch (_c.label) {
|
|
11
11
|
case 0: return [4, context.endpoint()];
|
|
12
12
|
case 1:
|
|
13
13
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
14
|
-
headers =
|
|
14
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
15
|
+
"content-type": "application/json",
|
|
16
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
17
|
+
});
|
|
15
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/channel-flow";
|
|
16
|
-
|
|
17
|
-
labelValue = input.ChannelArn;
|
|
18
|
-
if (labelValue.length <= 0) {
|
|
19
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
20
|
-
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
25
|
-
}
|
|
19
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
26
20
|
body = JSON.stringify(__assign({}, (input.ChannelFlowArn != null && { ChannelFlowArn: input.ChannelFlowArn })));
|
|
27
21
|
return [2, new __HttpRequest({
|
|
28
22
|
protocol: protocol,
|
|
@@ -37,28 +31,22 @@ export var serializeAws_restJson1AssociateChannelFlowCommand = function (input,
|
|
|
37
31
|
});
|
|
38
32
|
}); };
|
|
39
33
|
export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
34
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
41
35
|
return __generator(this, function (_c) {
|
|
42
36
|
switch (_c.label) {
|
|
43
37
|
case 0: return [4, context.endpoint()];
|
|
44
38
|
case 1:
|
|
45
39
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
46
|
-
headers =
|
|
40
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
41
|
+
"content-type": "application/json",
|
|
42
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
43
|
+
});
|
|
47
44
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
57
|
-
}
|
|
58
|
-
query = {
|
|
59
|
-
operation: "batch-create",
|
|
60
|
-
};
|
|
61
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type != null && { Type: input.Type })));
|
|
45
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
46
|
+
query = map({
|
|
47
|
+
operation: [, "batch-create"],
|
|
48
|
+
});
|
|
49
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })), (input.Type != null && { Type: input.Type })));
|
|
62
50
|
return [2, new __HttpRequest({
|
|
63
51
|
protocol: protocol,
|
|
64
52
|
hostname: hostname,
|
|
@@ -73,7 +61,7 @@ export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function
|
|
|
73
61
|
});
|
|
74
62
|
}); };
|
|
75
63
|
export var serializeAws_restJson1ChannelFlowCallbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
64
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
77
65
|
var _c;
|
|
78
66
|
return __generator(this, function (_d) {
|
|
79
67
|
switch (_d.label) {
|
|
@@ -84,19 +72,10 @@ export var serializeAws_restJson1ChannelFlowCallbackCommand = function (input, c
|
|
|
84
72
|
"content-type": "application/json",
|
|
85
73
|
};
|
|
86
74
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
96
|
-
}
|
|
97
|
-
query = {
|
|
98
|
-
operation: "channel-flow-callback",
|
|
99
|
-
};
|
|
75
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
76
|
+
query = map({
|
|
77
|
+
operation: [, "channel-flow-callback"],
|
|
78
|
+
});
|
|
100
79
|
body = JSON.stringify(__assign(__assign({ CallbackId: (_c = input.CallbackId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ChannelMessage != null && {
|
|
101
80
|
ChannelMessage: serializeAws_restJson1ChannelMessageCallback(input.ChannelMessage, context),
|
|
102
81
|
})), (input.DeleteResource != null && { DeleteResource: input.DeleteResource })));
|
|
@@ -121,9 +100,14 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
121
100
|
case 0: return [4, context.endpoint()];
|
|
122
101
|
case 1:
|
|
123
102
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
|
-
headers =
|
|
103
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
104
|
+
"content-type": "application/json",
|
|
105
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
106
|
+
});
|
|
125
107
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
126
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId != null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.
|
|
108
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId != null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ElasticChannelConfiguration != null && {
|
|
109
|
+
ElasticChannelConfiguration: serializeAws_restJson1ElasticChannelConfiguration(input.ElasticChannelConfiguration, context),
|
|
110
|
+
})), (input.MemberArns != null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) })), (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.ModeratorArns != null && {
|
|
127
111
|
ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
|
|
128
112
|
})), (input.Name != null && { Name: input.Name })), (input.Privacy != null && { Privacy: input.Privacy })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
129
113
|
return [2, new __HttpRequest({
|
|
@@ -139,24 +123,18 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
139
123
|
});
|
|
140
124
|
}); };
|
|
141
125
|
export var serializeAws_restJson1CreateChannelBanCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
142
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
126
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
143
127
|
return __generator(this, function (_c) {
|
|
144
128
|
switch (_c.label) {
|
|
145
129
|
case 0: return [4, context.endpoint()];
|
|
146
130
|
case 1:
|
|
147
131
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
148
|
-
headers =
|
|
132
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
133
|
+
"content-type": "application/json",
|
|
134
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
135
|
+
});
|
|
149
136
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans";
|
|
150
|
-
|
|
151
|
-
labelValue = input.ChannelArn;
|
|
152
|
-
if (labelValue.length <= 0) {
|
|
153
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
154
|
-
}
|
|
155
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
159
|
-
}
|
|
137
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
160
138
|
body = JSON.stringify(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })));
|
|
161
139
|
return [2, new __HttpRequest({
|
|
162
140
|
protocol: protocol,
|
|
@@ -195,25 +173,19 @@ export var serializeAws_restJson1CreateChannelFlowCommand = function (input, con
|
|
|
195
173
|
});
|
|
196
174
|
}); };
|
|
197
175
|
export var serializeAws_restJson1CreateChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
198
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
176
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
199
177
|
return __generator(this, function (_c) {
|
|
200
178
|
switch (_c.label) {
|
|
201
179
|
case 0: return [4, context.endpoint()];
|
|
202
180
|
case 1:
|
|
203
181
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
204
|
-
headers =
|
|
182
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
183
|
+
"content-type": "application/json",
|
|
184
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
185
|
+
});
|
|
205
186
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
if (labelValue.length <= 0) {
|
|
209
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
210
|
-
}
|
|
211
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
215
|
-
}
|
|
216
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })), (input.Type != null && { Type: input.Type })));
|
|
187
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
188
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })), (input.Type != null && { Type: input.Type })));
|
|
217
189
|
return [2, new __HttpRequest({
|
|
218
190
|
protocol: protocol,
|
|
219
191
|
hostname: hostname,
|
|
@@ -227,24 +199,18 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
|
|
|
227
199
|
});
|
|
228
200
|
}); };
|
|
229
201
|
export var serializeAws_restJson1CreateChannelModeratorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
230
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
202
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
231
203
|
return __generator(this, function (_c) {
|
|
232
204
|
switch (_c.label) {
|
|
233
205
|
case 0: return [4, context.endpoint()];
|
|
234
206
|
case 1:
|
|
235
207
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
236
|
-
headers =
|
|
208
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
209
|
+
"content-type": "application/json",
|
|
210
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
211
|
+
});
|
|
237
212
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/moderators";
|
|
238
|
-
|
|
239
|
-
labelValue = input.ChannelArn;
|
|
240
|
-
if (labelValue.length <= 0) {
|
|
241
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
242
|
-
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
247
|
-
}
|
|
213
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
248
214
|
body = JSON.stringify(__assign({}, (input.ChannelModeratorArn != null && { ChannelModeratorArn: input.ChannelModeratorArn })));
|
|
249
215
|
return [2, new __HttpRequest({
|
|
250
216
|
protocol: protocol,
|
|
@@ -259,24 +225,20 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
|
|
|
259
225
|
});
|
|
260
226
|
}); };
|
|
261
227
|
export var serializeAws_restJson1DeleteChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
262
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
228
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
263
229
|
return __generator(this, function (_c) {
|
|
264
230
|
switch (_c.label) {
|
|
265
231
|
case 0: return [4, context.endpoint()];
|
|
266
232
|
case 1:
|
|
267
233
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
268
|
-
headers =
|
|
234
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
235
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
236
|
+
});
|
|
269
237
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
279
|
-
}
|
|
238
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
239
|
+
query = map({
|
|
240
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
241
|
+
});
|
|
280
242
|
return [2, new __HttpRequest({
|
|
281
243
|
protocol: protocol,
|
|
282
244
|
hostname: hostname,
|
|
@@ -284,40 +246,25 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
284
246
|
method: "DELETE",
|
|
285
247
|
headers: headers,
|
|
286
248
|
path: resolvedPath,
|
|
249
|
+
query: query,
|
|
287
250
|
body: body,
|
|
288
251
|
})];
|
|
289
252
|
}
|
|
290
253
|
});
|
|
291
254
|
}); };
|
|
292
255
|
export var serializeAws_restJson1DeleteChannelBanCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
293
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
256
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
294
257
|
return __generator(this, function (_c) {
|
|
295
258
|
switch (_c.label) {
|
|
296
259
|
case 0: return [4, context.endpoint()];
|
|
297
260
|
case 1:
|
|
298
261
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
299
|
-
headers =
|
|
262
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
263
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
264
|
+
});
|
|
300
265
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans/{MemberArn}";
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if (labelValue.length <= 0) {
|
|
304
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
305
|
-
}
|
|
306
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
310
|
-
}
|
|
311
|
-
if (input.MemberArn !== undefined) {
|
|
312
|
-
labelValue = input.MemberArn;
|
|
313
|
-
if (labelValue.length <= 0) {
|
|
314
|
-
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
315
|
-
}
|
|
316
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", __extendedEncodeURIComponent(labelValue));
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
320
|
-
}
|
|
266
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
267
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
321
268
|
return [2, new __HttpRequest({
|
|
322
269
|
protocol: protocol,
|
|
323
270
|
hostname: hostname,
|
|
@@ -331,7 +278,7 @@ export var serializeAws_restJson1DeleteChannelBanCommand = function (input, cont
|
|
|
331
278
|
});
|
|
332
279
|
}); };
|
|
333
280
|
export var serializeAws_restJson1DeleteChannelFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
334
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
281
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
335
282
|
return __generator(this, function (_c) {
|
|
336
283
|
switch (_c.label) {
|
|
337
284
|
case 0: return [4, context.endpoint()];
|
|
@@ -339,16 +286,7 @@ export var serializeAws_restJson1DeleteChannelFlowCommand = function (input, con
|
|
|
339
286
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
340
287
|
headers = {};
|
|
341
288
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
|
|
342
|
-
|
|
343
|
-
labelValue = input.ChannelFlowArn;
|
|
344
|
-
if (labelValue.length <= 0) {
|
|
345
|
-
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
346
|
-
}
|
|
347
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
351
|
-
}
|
|
289
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
352
290
|
return [2, new __HttpRequest({
|
|
353
291
|
protocol: protocol,
|
|
354
292
|
hostname: hostname,
|
|
@@ -362,35 +300,22 @@ export var serializeAws_restJson1DeleteChannelFlowCommand = function (input, con
|
|
|
362
300
|
});
|
|
363
301
|
}); };
|
|
364
302
|
export var serializeAws_restJson1DeleteChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
365
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
303
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
366
304
|
return __generator(this, function (_c) {
|
|
367
305
|
switch (_c.label) {
|
|
368
306
|
case 0: return [4, context.endpoint()];
|
|
369
307
|
case 1:
|
|
370
308
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
371
|
-
headers =
|
|
309
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
310
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
311
|
+
});
|
|
372
312
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
373
313
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
382
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
383
|
-
}
|
|
384
|
-
if (input.MemberArn !== undefined) {
|
|
385
|
-
labelValue = input.MemberArn;
|
|
386
|
-
if (labelValue.length <= 0) {
|
|
387
|
-
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
388
|
-
}
|
|
389
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", __extendedEncodeURIComponent(labelValue));
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
393
|
-
}
|
|
314
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
315
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
316
|
+
query = map({
|
|
317
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
318
|
+
});
|
|
394
319
|
return [2, new __HttpRequest({
|
|
395
320
|
protocol: protocol,
|
|
396
321
|
hostname: hostname,
|
|
@@ -398,41 +323,29 @@ export var serializeAws_restJson1DeleteChannelMembershipCommand = function (inpu
|
|
|
398
323
|
method: "DELETE",
|
|
399
324
|
headers: headers,
|
|
400
325
|
path: resolvedPath,
|
|
326
|
+
query: query,
|
|
401
327
|
body: body,
|
|
402
328
|
})];
|
|
403
329
|
}
|
|
404
330
|
});
|
|
405
331
|
}); };
|
|
406
332
|
export var serializeAws_restJson1DeleteChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
407
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
333
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
408
334
|
return __generator(this, function (_c) {
|
|
409
335
|
switch (_c.label) {
|
|
410
336
|
case 0: return [4, context.endpoint()];
|
|
411
337
|
case 1:
|
|
412
338
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
413
|
-
headers =
|
|
339
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
340
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
341
|
+
});
|
|
414
342
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
415
343
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
425
|
-
}
|
|
426
|
-
if (input.MessageId !== undefined) {
|
|
427
|
-
labelValue = input.MessageId;
|
|
428
|
-
if (labelValue.length <= 0) {
|
|
429
|
-
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
430
|
-
}
|
|
431
|
-
resolvedPath = resolvedPath.replace("{MessageId}", __extendedEncodeURIComponent(labelValue));
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
435
|
-
}
|
|
344
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
345
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
346
|
+
query = map({
|
|
347
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
348
|
+
});
|
|
436
349
|
return [2, new __HttpRequest({
|
|
437
350
|
protocol: protocol,
|
|
438
351
|
hostname: hostname,
|
|
@@ -440,41 +353,26 @@ export var serializeAws_restJson1DeleteChannelMessageCommand = function (input,
|
|
|
440
353
|
method: "DELETE",
|
|
441
354
|
headers: headers,
|
|
442
355
|
path: resolvedPath,
|
|
356
|
+
query: query,
|
|
443
357
|
body: body,
|
|
444
358
|
})];
|
|
445
359
|
}
|
|
446
360
|
});
|
|
447
361
|
}); };
|
|
448
362
|
export var serializeAws_restJson1DeleteChannelModeratorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
449
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
363
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
450
364
|
return __generator(this, function (_c) {
|
|
451
365
|
switch (_c.label) {
|
|
452
366
|
case 0: return [4, context.endpoint()];
|
|
453
367
|
case 1:
|
|
454
368
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
455
|
-
headers =
|
|
369
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
370
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
371
|
+
});
|
|
456
372
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
457
373
|
"/channels/{ChannelArn}/moderators/{ChannelModeratorArn}";
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
if (labelValue.length <= 0) {
|
|
461
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
462
|
-
}
|
|
463
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
464
|
-
}
|
|
465
|
-
else {
|
|
466
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
467
|
-
}
|
|
468
|
-
if (input.ChannelModeratorArn !== undefined) {
|
|
469
|
-
labelValue = input.ChannelModeratorArn;
|
|
470
|
-
if (labelValue.length <= 0) {
|
|
471
|
-
throw new Error("Empty value provided for input HTTP label: ChannelModeratorArn.");
|
|
472
|
-
}
|
|
473
|
-
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", __extendedEncodeURIComponent(labelValue));
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
477
|
-
}
|
|
374
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
375
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelModeratorArn", function () { return input.ChannelModeratorArn; }, "{ChannelModeratorArn}", false);
|
|
478
376
|
return [2, new __HttpRequest({
|
|
479
377
|
protocol: protocol,
|
|
480
378
|
hostname: hostname,
|
|
@@ -488,24 +386,17 @@ export var serializeAws_restJson1DeleteChannelModeratorCommand = function (input
|
|
|
488
386
|
});
|
|
489
387
|
}); };
|
|
490
388
|
export var serializeAws_restJson1DescribeChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
491
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
389
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
492
390
|
return __generator(this, function (_c) {
|
|
493
391
|
switch (_c.label) {
|
|
494
392
|
case 0: return [4, context.endpoint()];
|
|
495
393
|
case 1:
|
|
496
394
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
497
|
-
headers =
|
|
395
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
396
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
397
|
+
});
|
|
498
398
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
499
|
-
|
|
500
|
-
labelValue = input.ChannelArn;
|
|
501
|
-
if (labelValue.length <= 0) {
|
|
502
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
503
|
-
}
|
|
504
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
505
|
-
}
|
|
506
|
-
else {
|
|
507
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
508
|
-
}
|
|
399
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
509
400
|
return [2, new __HttpRequest({
|
|
510
401
|
protocol: protocol,
|
|
511
402
|
hostname: hostname,
|
|
@@ -519,34 +410,18 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
|
|
|
519
410
|
});
|
|
520
411
|
}); };
|
|
521
412
|
export var serializeAws_restJson1DescribeChannelBanCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
522
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
413
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
523
414
|
return __generator(this, function (_c) {
|
|
524
415
|
switch (_c.label) {
|
|
525
416
|
case 0: return [4, context.endpoint()];
|
|
526
417
|
case 1:
|
|
527
418
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
528
|
-
headers =
|
|
419
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
420
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
421
|
+
});
|
|
529
422
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans/{MemberArn}";
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
if (labelValue.length <= 0) {
|
|
533
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
534
|
-
}
|
|
535
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
539
|
-
}
|
|
540
|
-
if (input.MemberArn !== undefined) {
|
|
541
|
-
labelValue = input.MemberArn;
|
|
542
|
-
if (labelValue.length <= 0) {
|
|
543
|
-
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
544
|
-
}
|
|
545
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", __extendedEncodeURIComponent(labelValue));
|
|
546
|
-
}
|
|
547
|
-
else {
|
|
548
|
-
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
549
|
-
}
|
|
423
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
424
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
550
425
|
return [2, new __HttpRequest({
|
|
551
426
|
protocol: protocol,
|
|
552
427
|
hostname: hostname,
|
|
@@ -560,7 +435,7 @@ export var serializeAws_restJson1DescribeChannelBanCommand = function (input, co
|
|
|
560
435
|
});
|
|
561
436
|
}); };
|
|
562
437
|
export var serializeAws_restJson1DescribeChannelFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
563
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
438
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
564
439
|
return __generator(this, function (_c) {
|
|
565
440
|
switch (_c.label) {
|
|
566
441
|
case 0: return [4, context.endpoint()];
|
|
@@ -568,16 +443,7 @@ export var serializeAws_restJson1DescribeChannelFlowCommand = function (input, c
|
|
|
568
443
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
569
444
|
headers = {};
|
|
570
445
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
|
|
571
|
-
|
|
572
|
-
labelValue = input.ChannelFlowArn;
|
|
573
|
-
if (labelValue.length <= 0) {
|
|
574
|
-
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
575
|
-
}
|
|
576
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
577
|
-
}
|
|
578
|
-
else {
|
|
579
|
-
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
580
|
-
}
|
|
446
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
581
447
|
return [2, new __HttpRequest({
|
|
582
448
|
protocol: protocol,
|
|
583
449
|
hostname: hostname,
|
|
@@ -591,35 +457,22 @@ export var serializeAws_restJson1DescribeChannelFlowCommand = function (input, c
|
|
|
591
457
|
});
|
|
592
458
|
}); };
|
|
593
459
|
export var serializeAws_restJson1DescribeChannelMembershipCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
594
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
460
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
595
461
|
return __generator(this, function (_c) {
|
|
596
462
|
switch (_c.label) {
|
|
597
463
|
case 0: return [4, context.endpoint()];
|
|
598
464
|
case 1:
|
|
599
465
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
600
|
-
headers =
|
|
466
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
467
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
468
|
+
});
|
|
601
469
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
602
470
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
609
|
-
}
|
|
610
|
-
else {
|
|
611
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
612
|
-
}
|
|
613
|
-
if (input.MemberArn !== undefined) {
|
|
614
|
-
labelValue = input.MemberArn;
|
|
615
|
-
if (labelValue.length <= 0) {
|
|
616
|
-
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
617
|
-
}
|
|
618
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", __extendedEncodeURIComponent(labelValue));
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
622
|
-
}
|
|
471
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
472
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
473
|
+
query = map({
|
|
474
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
475
|
+
});
|
|
623
476
|
return [2, new __HttpRequest({
|
|
624
477
|
protocol: protocol,
|
|
625
478
|
hostname: hostname,
|
|
@@ -627,31 +480,28 @@ export var serializeAws_restJson1DescribeChannelMembershipCommand = function (in
|
|
|
627
480
|
method: "GET",
|
|
628
481
|
headers: headers,
|
|
629
482
|
path: resolvedPath,
|
|
483
|
+
query: query,
|
|
630
484
|
body: body,
|
|
631
485
|
})];
|
|
632
486
|
}
|
|
633
487
|
});
|
|
634
488
|
}); };
|
|
635
489
|
export var serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
636
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
490
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
637
491
|
return __generator(this, function (_c) {
|
|
638
492
|
switch (_c.label) {
|
|
639
493
|
case 0: return [4, context.endpoint()];
|
|
640
494
|
case 1:
|
|
641
495
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
642
|
-
headers =
|
|
496
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
497
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
498
|
+
});
|
|
643
499
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
650
|
-
}
|
|
651
|
-
else {
|
|
652
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
653
|
-
}
|
|
654
|
-
query = __assign({ scope: "app-instance-user-membership" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn }));
|
|
500
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
501
|
+
query = map({
|
|
502
|
+
scope: [, "app-instance-user-membership"],
|
|
503
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
504
|
+
});
|
|
655
505
|
return [2, new __HttpRequest({
|
|
656
506
|
protocol: protocol,
|
|
657
507
|
hostname: hostname,
|
|
@@ -666,25 +516,21 @@ export var serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserComm
|
|
|
666
516
|
});
|
|
667
517
|
}); };
|
|
668
518
|
export var serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
669
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
519
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
670
520
|
return __generator(this, function (_c) {
|
|
671
521
|
switch (_c.label) {
|
|
672
522
|
case 0: return [4, context.endpoint()];
|
|
673
523
|
case 1:
|
|
674
524
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
675
|
-
headers =
|
|
525
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
526
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
527
|
+
});
|
|
676
528
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
683
|
-
}
|
|
684
|
-
else {
|
|
685
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
686
|
-
}
|
|
687
|
-
query = __assign({ scope: "app-instance-user-moderated-channel" }, (input.AppInstanceUserArn !== undefined && { "app-instance-user-arn": input.AppInstanceUserArn }));
|
|
529
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
530
|
+
query = map({
|
|
531
|
+
scope: [, "app-instance-user-moderated-channel"],
|
|
532
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
533
|
+
});
|
|
688
534
|
return [2, new __HttpRequest({
|
|
689
535
|
protocol: protocol,
|
|
690
536
|
hostname: hostname,
|
|
@@ -699,35 +545,19 @@ export var serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComman
|
|
|
699
545
|
});
|
|
700
546
|
}); };
|
|
701
547
|
export var serializeAws_restJson1DescribeChannelModeratorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
702
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
548
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
703
549
|
return __generator(this, function (_c) {
|
|
704
550
|
switch (_c.label) {
|
|
705
551
|
case 0: return [4, context.endpoint()];
|
|
706
552
|
case 1:
|
|
707
553
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
708
|
-
headers =
|
|
554
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
555
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
556
|
+
});
|
|
709
557
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
710
558
|
"/channels/{ChannelArn}/moderators/{ChannelModeratorArn}";
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
if (labelValue.length <= 0) {
|
|
714
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
715
|
-
}
|
|
716
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
717
|
-
}
|
|
718
|
-
else {
|
|
719
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
720
|
-
}
|
|
721
|
-
if (input.ChannelModeratorArn !== undefined) {
|
|
722
|
-
labelValue = input.ChannelModeratorArn;
|
|
723
|
-
if (labelValue.length <= 0) {
|
|
724
|
-
throw new Error("Empty value provided for input HTTP label: ChannelModeratorArn.");
|
|
725
|
-
}
|
|
726
|
-
resolvedPath = resolvedPath.replace("{ChannelModeratorArn}", __extendedEncodeURIComponent(labelValue));
|
|
727
|
-
}
|
|
728
|
-
else {
|
|
729
|
-
throw new Error("No value provided for input HTTP label: ChannelModeratorArn.");
|
|
730
|
-
}
|
|
559
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
560
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelModeratorArn", function () { return input.ChannelModeratorArn; }, "{ChannelModeratorArn}", false);
|
|
731
561
|
return [2, new __HttpRequest({
|
|
732
562
|
protocol: protocol,
|
|
733
563
|
hostname: hostname,
|
|
@@ -741,35 +571,19 @@ export var serializeAws_restJson1DescribeChannelModeratorCommand = function (inp
|
|
|
741
571
|
});
|
|
742
572
|
}); };
|
|
743
573
|
export var serializeAws_restJson1DisassociateChannelFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
744
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
574
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
745
575
|
return __generator(this, function (_c) {
|
|
746
576
|
switch (_c.label) {
|
|
747
577
|
case 0: return [4, context.endpoint()];
|
|
748
578
|
case 1:
|
|
749
579
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
750
|
-
headers =
|
|
580
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
581
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
582
|
+
});
|
|
751
583
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
752
584
|
"/channels/{ChannelArn}/channel-flow/{ChannelFlowArn}";
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
if (labelValue.length <= 0) {
|
|
756
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
757
|
-
}
|
|
758
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
759
|
-
}
|
|
760
|
-
else {
|
|
761
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
762
|
-
}
|
|
763
|
-
if (input.ChannelFlowArn !== undefined) {
|
|
764
|
-
labelValue = input.ChannelFlowArn;
|
|
765
|
-
if (labelValue.length <= 0) {
|
|
766
|
-
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
767
|
-
}
|
|
768
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
769
|
-
}
|
|
770
|
-
else {
|
|
771
|
-
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
772
|
-
}
|
|
585
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
586
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
773
587
|
return [2, new __HttpRequest({
|
|
774
588
|
protocol: protocol,
|
|
775
589
|
hostname: hostname,
|
|
@@ -783,35 +597,19 @@ export var serializeAws_restJson1DisassociateChannelFlowCommand = function (inpu
|
|
|
783
597
|
});
|
|
784
598
|
}); };
|
|
785
599
|
export var serializeAws_restJson1GetChannelMembershipPreferencesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
786
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
600
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
787
601
|
return __generator(this, function (_c) {
|
|
788
602
|
switch (_c.label) {
|
|
789
603
|
case 0: return [4, context.endpoint()];
|
|
790
604
|
case 1:
|
|
791
605
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
792
|
-
headers =
|
|
606
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
607
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
608
|
+
});
|
|
793
609
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
794
610
|
"/channels/{ChannelArn}/memberships/{MemberArn}/preferences";
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
if (labelValue.length <= 0) {
|
|
798
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
799
|
-
}
|
|
800
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
801
|
-
}
|
|
802
|
-
else {
|
|
803
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
804
|
-
}
|
|
805
|
-
if (input.MemberArn !== undefined) {
|
|
806
|
-
labelValue = input.MemberArn;
|
|
807
|
-
if (labelValue.length <= 0) {
|
|
808
|
-
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
809
|
-
}
|
|
810
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", __extendedEncodeURIComponent(labelValue));
|
|
811
|
-
}
|
|
812
|
-
else {
|
|
813
|
-
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
814
|
-
}
|
|
611
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
612
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
815
613
|
return [2, new __HttpRequest({
|
|
816
614
|
protocol: protocol,
|
|
817
615
|
hostname: hostname,
|
|
@@ -825,35 +623,22 @@ export var serializeAws_restJson1GetChannelMembershipPreferencesCommand = functi
|
|
|
825
623
|
});
|
|
826
624
|
}); };
|
|
827
625
|
export var serializeAws_restJson1GetChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
828
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
626
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
829
627
|
return __generator(this, function (_c) {
|
|
830
628
|
switch (_c.label) {
|
|
831
629
|
case 0: return [4, context.endpoint()];
|
|
832
630
|
case 1:
|
|
833
631
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
834
|
-
headers =
|
|
632
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
633
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
634
|
+
});
|
|
835
635
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
836
636
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
843
|
-
}
|
|
844
|
-
else {
|
|
845
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
846
|
-
}
|
|
847
|
-
if (input.MessageId !== undefined) {
|
|
848
|
-
labelValue = input.MessageId;
|
|
849
|
-
if (labelValue.length <= 0) {
|
|
850
|
-
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
851
|
-
}
|
|
852
|
-
resolvedPath = resolvedPath.replace("{MessageId}", __extendedEncodeURIComponent(labelValue));
|
|
853
|
-
}
|
|
854
|
-
else {
|
|
855
|
-
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
856
|
-
}
|
|
637
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
638
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
639
|
+
query = map({
|
|
640
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
641
|
+
});
|
|
857
642
|
return [2, new __HttpRequest({
|
|
858
643
|
protocol: protocol,
|
|
859
644
|
hostname: hostname,
|
|
@@ -861,44 +646,30 @@ export var serializeAws_restJson1GetChannelMessageCommand = function (input, con
|
|
|
861
646
|
method: "GET",
|
|
862
647
|
headers: headers,
|
|
863
648
|
path: resolvedPath,
|
|
649
|
+
query: query,
|
|
864
650
|
body: body,
|
|
865
651
|
})];
|
|
866
652
|
}
|
|
867
653
|
});
|
|
868
654
|
}); };
|
|
869
655
|
export var serializeAws_restJson1GetChannelMessageStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
870
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
656
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
871
657
|
return __generator(this, function (_c) {
|
|
872
658
|
switch (_c.label) {
|
|
873
659
|
case 0: return [4, context.endpoint()];
|
|
874
660
|
case 1:
|
|
875
661
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
876
|
-
headers =
|
|
662
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
663
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
664
|
+
});
|
|
877
665
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
878
666
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
}
|
|
886
|
-
else {
|
|
887
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
888
|
-
}
|
|
889
|
-
if (input.MessageId !== undefined) {
|
|
890
|
-
labelValue = input.MessageId;
|
|
891
|
-
if (labelValue.length <= 0) {
|
|
892
|
-
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
893
|
-
}
|
|
894
|
-
resolvedPath = resolvedPath.replace("{MessageId}", __extendedEncodeURIComponent(labelValue));
|
|
895
|
-
}
|
|
896
|
-
else {
|
|
897
|
-
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
898
|
-
}
|
|
899
|
-
query = {
|
|
900
|
-
scope: "message-status",
|
|
901
|
-
};
|
|
667
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
668
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
669
|
+
query = map({
|
|
670
|
+
scope: [, "message-status"],
|
|
671
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
672
|
+
});
|
|
902
673
|
return [2, new __HttpRequest({
|
|
903
674
|
protocol: protocol,
|
|
904
675
|
hostname: hostname,
|
|
@@ -937,25 +708,21 @@ export var serializeAws_restJson1GetMessagingSessionEndpointCommand = function (
|
|
|
937
708
|
});
|
|
938
709
|
}); };
|
|
939
710
|
export var serializeAws_restJson1ListChannelBansCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
940
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
711
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
941
712
|
return __generator(this, function (_c) {
|
|
942
713
|
switch (_c.label) {
|
|
943
714
|
case 0: return [4, context.endpoint()];
|
|
944
715
|
case 1:
|
|
945
716
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
946
|
-
headers =
|
|
717
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
718
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
719
|
+
});
|
|
947
720
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/bans";
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
954
|
-
}
|
|
955
|
-
else {
|
|
956
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
957
|
-
}
|
|
958
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
721
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
722
|
+
query = map({
|
|
723
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
724
|
+
"next-token": [, input.NextToken],
|
|
725
|
+
});
|
|
959
726
|
return [2, new __HttpRequest({
|
|
960
727
|
protocol: protocol,
|
|
961
728
|
hostname: hostname,
|
|
@@ -978,7 +745,11 @@ export var serializeAws_restJson1ListChannelFlowsCommand = function (input, cont
|
|
|
978
745
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
979
746
|
headers = {};
|
|
980
747
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows";
|
|
981
|
-
query =
|
|
748
|
+
query = map({
|
|
749
|
+
"app-instance-arn": [, input.AppInstanceArn],
|
|
750
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
751
|
+
"next-token": [, input.NextToken],
|
|
752
|
+
});
|
|
982
753
|
return [2, new __HttpRequest({
|
|
983
754
|
protocol: protocol,
|
|
984
755
|
hostname: hostname,
|
|
@@ -993,25 +764,23 @@ export var serializeAws_restJson1ListChannelFlowsCommand = function (input, cont
|
|
|
993
764
|
});
|
|
994
765
|
}); };
|
|
995
766
|
export var serializeAws_restJson1ListChannelMembershipsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
996
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
767
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
997
768
|
return __generator(this, function (_c) {
|
|
998
769
|
switch (_c.label) {
|
|
999
770
|
case 0: return [4, context.endpoint()];
|
|
1000
771
|
case 1:
|
|
1001
772
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1002
|
-
headers =
|
|
773
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
774
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
775
|
+
});
|
|
1003
776
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
}
|
|
1011
|
-
else {
|
|
1012
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1013
|
-
}
|
|
1014
|
-
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 }));
|
|
777
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
778
|
+
query = map({
|
|
779
|
+
type: [, input.Type],
|
|
780
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
781
|
+
"next-token": [, input.NextToken],
|
|
782
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
783
|
+
});
|
|
1015
784
|
return [2, new __HttpRequest({
|
|
1016
785
|
protocol: protocol,
|
|
1017
786
|
hostname: hostname,
|
|
@@ -1032,9 +801,16 @@ export var serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand
|
|
|
1032
801
|
case 0: return [4, context.endpoint()];
|
|
1033
802
|
case 1:
|
|
1034
803
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1035
|
-
headers =
|
|
804
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
805
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
806
|
+
});
|
|
1036
807
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1037
|
-
query =
|
|
808
|
+
query = map({
|
|
809
|
+
scope: [, "app-instance-user-memberships"],
|
|
810
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
811
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
812
|
+
"next-token": [, input.NextToken],
|
|
813
|
+
});
|
|
1038
814
|
return [2, new __HttpRequest({
|
|
1039
815
|
protocol: protocol,
|
|
1040
816
|
hostname: hostname,
|
|
@@ -1049,27 +825,31 @@ export var serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand
|
|
|
1049
825
|
});
|
|
1050
826
|
}); };
|
|
1051
827
|
export var serializeAws_restJson1ListChannelMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1052
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
828
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1053
829
|
return __generator(this, function (_c) {
|
|
1054
830
|
switch (_c.label) {
|
|
1055
831
|
case 0: return [4, context.endpoint()];
|
|
1056
832
|
case 1:
|
|
1057
833
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1058
|
-
headers =
|
|
834
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
835
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
836
|
+
});
|
|
1059
837
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
"
|
|
1072
|
-
|
|
838
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
839
|
+
query = map({
|
|
840
|
+
"sort-order": [, input.SortOrder],
|
|
841
|
+
"not-before": [
|
|
842
|
+
function () { return input.NotBefore !== void 0; },
|
|
843
|
+
function () { return (input.NotBefore.toISOString().split(".")[0] + "Z").toString(); },
|
|
844
|
+
],
|
|
845
|
+
"not-after": [
|
|
846
|
+
function () { return input.NotAfter !== void 0; },
|
|
847
|
+
function () { return (input.NotAfter.toISOString().split(".")[0] + "Z").toString(); },
|
|
848
|
+
],
|
|
849
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
850
|
+
"next-token": [, input.NextToken],
|
|
851
|
+
"sub-channel-id": [, input.SubChannelId],
|
|
852
|
+
});
|
|
1073
853
|
return [2, new __HttpRequest({
|
|
1074
854
|
protocol: protocol,
|
|
1075
855
|
hostname: hostname,
|
|
@@ -1084,25 +864,21 @@ export var serializeAws_restJson1ListChannelMessagesCommand = function (input, c
|
|
|
1084
864
|
});
|
|
1085
865
|
}); };
|
|
1086
866
|
export var serializeAws_restJson1ListChannelModeratorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1087
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
867
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1088
868
|
return __generator(this, function (_c) {
|
|
1089
869
|
switch (_c.label) {
|
|
1090
870
|
case 0: return [4, context.endpoint()];
|
|
1091
871
|
case 1:
|
|
1092
872
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1093
|
-
headers =
|
|
873
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
874
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
875
|
+
});
|
|
1094
876
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/moderators";
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
1101
|
-
}
|
|
1102
|
-
else {
|
|
1103
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1104
|
-
}
|
|
1105
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
877
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
878
|
+
query = map({
|
|
879
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
880
|
+
"next-token": [, input.NextToken],
|
|
881
|
+
});
|
|
1106
882
|
return [2, new __HttpRequest({
|
|
1107
883
|
protocol: protocol,
|
|
1108
884
|
hostname: hostname,
|
|
@@ -1123,9 +899,16 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
|
|
|
1123
899
|
case 0: return [4, context.endpoint()];
|
|
1124
900
|
case 1:
|
|
1125
901
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1126
|
-
headers =
|
|
902
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
903
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
904
|
+
});
|
|
1127
905
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1128
|
-
query =
|
|
906
|
+
query = map({
|
|
907
|
+
"app-instance-arn": [, input.AppInstanceArn],
|
|
908
|
+
privacy: [, input.Privacy],
|
|
909
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
910
|
+
"next-token": [, input.NextToken],
|
|
911
|
+
});
|
|
1129
912
|
return [2, new __HttpRequest({
|
|
1130
913
|
protocol: protocol,
|
|
1131
914
|
hostname: hostname,
|
|
@@ -1148,7 +931,12 @@ export var serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand =
|
|
|
1148
931
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1149
932
|
headers = {};
|
|
1150
933
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1151
|
-
query =
|
|
934
|
+
query = map({
|
|
935
|
+
scope: [, "channel-flow-associations"],
|
|
936
|
+
"channel-flow-arn": [, input.ChannelFlowArn],
|
|
937
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
938
|
+
"next-token": [, input.NextToken],
|
|
939
|
+
});
|
|
1152
940
|
return [2, new __HttpRequest({
|
|
1153
941
|
protocol: protocol,
|
|
1154
942
|
hostname: hostname,
|
|
@@ -1169,9 +957,45 @@ export var serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand =
|
|
|
1169
957
|
case 0: return [4, context.endpoint()];
|
|
1170
958
|
case 1:
|
|
1171
959
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1172
|
-
headers =
|
|
960
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
961
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
962
|
+
});
|
|
1173
963
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1174
|
-
query =
|
|
964
|
+
query = map({
|
|
965
|
+
scope: [, "app-instance-user-moderated-channels"],
|
|
966
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
967
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
968
|
+
"next-token": [, input.NextToken],
|
|
969
|
+
});
|
|
970
|
+
return [2, new __HttpRequest({
|
|
971
|
+
protocol: protocol,
|
|
972
|
+
hostname: hostname,
|
|
973
|
+
port: port,
|
|
974
|
+
method: "GET",
|
|
975
|
+
headers: headers,
|
|
976
|
+
path: resolvedPath,
|
|
977
|
+
query: query,
|
|
978
|
+
body: body,
|
|
979
|
+
})];
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
}); };
|
|
983
|
+
export var serializeAws_restJson1ListSubChannelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
984
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
985
|
+
return __generator(this, function (_c) {
|
|
986
|
+
switch (_c.label) {
|
|
987
|
+
case 0: return [4, context.endpoint()];
|
|
988
|
+
case 1:
|
|
989
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
990
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
991
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
992
|
+
});
|
|
993
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/subchannels";
|
|
994
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
995
|
+
query = map({
|
|
996
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
997
|
+
"next-token": [, input.NextToken],
|
|
998
|
+
});
|
|
1175
999
|
return [2, new __HttpRequest({
|
|
1176
1000
|
protocol: protocol,
|
|
1177
1001
|
hostname: hostname,
|
|
@@ -1194,7 +1018,9 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1194
1018
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1195
1019
|
headers = {};
|
|
1196
1020
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
1197
|
-
query =
|
|
1021
|
+
query = map({
|
|
1022
|
+
arn: [, input.ResourceARN],
|
|
1023
|
+
});
|
|
1198
1024
|
return [2, new __HttpRequest({
|
|
1199
1025
|
protocol: protocol,
|
|
1200
1026
|
hostname: hostname,
|
|
@@ -1209,35 +1035,20 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1209
1035
|
});
|
|
1210
1036
|
}); };
|
|
1211
1037
|
export var serializeAws_restJson1PutChannelMembershipPreferencesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1212
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1038
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1213
1039
|
return __generator(this, function (_c) {
|
|
1214
1040
|
switch (_c.label) {
|
|
1215
1041
|
case 0: return [4, context.endpoint()];
|
|
1216
1042
|
case 1:
|
|
1217
1043
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1218
|
-
headers =
|
|
1044
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1045
|
+
"content-type": "application/json",
|
|
1046
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1047
|
+
});
|
|
1219
1048
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1220
1049
|
"/channels/{ChannelArn}/memberships/{MemberArn}/preferences";
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
if (labelValue.length <= 0) {
|
|
1224
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1225
|
-
}
|
|
1226
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
1227
|
-
}
|
|
1228
|
-
else {
|
|
1229
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1230
|
-
}
|
|
1231
|
-
if (input.MemberArn !== undefined) {
|
|
1232
|
-
labelValue = input.MemberArn;
|
|
1233
|
-
if (labelValue.length <= 0) {
|
|
1234
|
-
throw new Error("Empty value provided for input HTTP label: MemberArn.");
|
|
1235
|
-
}
|
|
1236
|
-
resolvedPath = resolvedPath.replace("{MemberArn}", __extendedEncodeURIComponent(labelValue));
|
|
1237
|
-
}
|
|
1238
|
-
else {
|
|
1239
|
-
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
1240
|
-
}
|
|
1050
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1051
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
1241
1052
|
body = JSON.stringify(__assign({}, (input.Preferences != null && {
|
|
1242
1053
|
Preferences: serializeAws_restJson1ChannelMembershipPreferences(input.Preferences, context),
|
|
1243
1054
|
})));
|
|
@@ -1254,38 +1065,24 @@ export var serializeAws_restJson1PutChannelMembershipPreferencesCommand = functi
|
|
|
1254
1065
|
});
|
|
1255
1066
|
}); };
|
|
1256
1067
|
export var serializeAws_restJson1RedactChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1257
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1068
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1258
1069
|
return __generator(this, function (_c) {
|
|
1259
1070
|
switch (_c.label) {
|
|
1260
1071
|
case 0: return [4, context.endpoint()];
|
|
1261
1072
|
case 1:
|
|
1262
1073
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1263
|
-
headers =
|
|
1074
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1075
|
+
"content-type": "application/json",
|
|
1076
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1077
|
+
});
|
|
1264
1078
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1265
1079
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
}
|
|
1273
|
-
else {
|
|
1274
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1275
|
-
}
|
|
1276
|
-
if (input.MessageId !== undefined) {
|
|
1277
|
-
labelValue = input.MessageId;
|
|
1278
|
-
if (labelValue.length <= 0) {
|
|
1279
|
-
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
1280
|
-
}
|
|
1281
|
-
resolvedPath = resolvedPath.replace("{MessageId}", __extendedEncodeURIComponent(labelValue));
|
|
1282
|
-
}
|
|
1283
|
-
else {
|
|
1284
|
-
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
1285
|
-
}
|
|
1286
|
-
query = {
|
|
1287
|
-
operation: "redact",
|
|
1288
|
-
};
|
|
1080
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1081
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
1082
|
+
query = map({
|
|
1083
|
+
operation: [, "redact"],
|
|
1084
|
+
});
|
|
1085
|
+
body = JSON.stringify(__assign({}, (input.SubChannelId != null && { SubChannelId: input.SubChannelId })));
|
|
1289
1086
|
return [2, new __HttpRequest({
|
|
1290
1087
|
protocol: protocol,
|
|
1291
1088
|
hostname: hostname,
|
|
@@ -1306,9 +1103,16 @@ export var serializeAws_restJson1SearchChannelsCommand = function (input, contex
|
|
|
1306
1103
|
case 0: return [4, context.endpoint()];
|
|
1307
1104
|
case 1:
|
|
1308
1105
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1309
|
-
headers =
|
|
1106
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1107
|
+
"content-type": "application/json",
|
|
1108
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1109
|
+
});
|
|
1310
1110
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1311
|
-
query =
|
|
1111
|
+
query = map({
|
|
1112
|
+
operation: [, "search"],
|
|
1113
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
1114
|
+
"next-token": [, input.NextToken],
|
|
1115
|
+
});
|
|
1312
1116
|
body = JSON.stringify(__assign({}, (input.Fields != null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) })));
|
|
1313
1117
|
return [2, new __HttpRequest({
|
|
1314
1118
|
protocol: protocol,
|
|
@@ -1324,30 +1128,24 @@ export var serializeAws_restJson1SearchChannelsCommand = function (input, contex
|
|
|
1324
1128
|
});
|
|
1325
1129
|
}); };
|
|
1326
1130
|
export var serializeAws_restJson1SendChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1327
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1131
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1328
1132
|
var _c;
|
|
1329
1133
|
return __generator(this, function (_d) {
|
|
1330
1134
|
switch (_d.label) {
|
|
1331
1135
|
case 0: return [4, context.endpoint()];
|
|
1332
1136
|
case 1:
|
|
1333
1137
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1334
|
-
headers =
|
|
1138
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1139
|
+
"content-type": "application/json",
|
|
1140
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1141
|
+
});
|
|
1335
1142
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
if (labelValue.length <= 0) {
|
|
1339
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1340
|
-
}
|
|
1341
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
1342
|
-
}
|
|
1343
|
-
else {
|
|
1344
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1345
|
-
}
|
|
1346
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
1143
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1144
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
1347
1145
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
1348
1146
|
})), (input.Metadata != null && { Metadata: input.Metadata })), (input.Persistence != null && { Persistence: input.Persistence })), (input.PushNotification != null && {
|
|
1349
1147
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
1350
|
-
})), (input.Type != null && { Type: input.Type })));
|
|
1148
|
+
})), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })), (input.Type != null && { Type: input.Type })));
|
|
1351
1149
|
return [2, new __HttpRequest({
|
|
1352
1150
|
protocol: protocol,
|
|
1353
1151
|
hostname: hostname,
|
|
@@ -1371,9 +1169,9 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1371
1169
|
"content-type": "application/json",
|
|
1372
1170
|
};
|
|
1373
1171
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
1374
|
-
query = {
|
|
1375
|
-
operation: "tag-resource",
|
|
1376
|
-
};
|
|
1172
|
+
query = map({
|
|
1173
|
+
operation: [, "tag-resource"],
|
|
1174
|
+
});
|
|
1377
1175
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
1378
1176
|
return [2, new __HttpRequest({
|
|
1379
1177
|
protocol: protocol,
|
|
@@ -1399,9 +1197,9 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1399
1197
|
"content-type": "application/json",
|
|
1400
1198
|
};
|
|
1401
1199
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
1402
|
-
query = {
|
|
1403
|
-
operation: "untag-resource",
|
|
1404
|
-
};
|
|
1200
|
+
query = map({
|
|
1201
|
+
operation: [, "untag-resource"],
|
|
1202
|
+
});
|
|
1405
1203
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
1406
1204
|
return [2, new __HttpRequest({
|
|
1407
1205
|
protocol: protocol,
|
|
@@ -1417,24 +1215,18 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1417
1215
|
});
|
|
1418
1216
|
}); };
|
|
1419
1217
|
export var serializeAws_restJson1UpdateChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1420
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1218
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1421
1219
|
return __generator(this, function (_c) {
|
|
1422
1220
|
switch (_c.label) {
|
|
1423
1221
|
case 0: return [4, context.endpoint()];
|
|
1424
1222
|
case 1:
|
|
1425
1223
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1426
|
-
headers =
|
|
1224
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1225
|
+
"content-type": "application/json",
|
|
1226
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1227
|
+
});
|
|
1427
1228
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
1428
|
-
|
|
1429
|
-
labelValue = input.ChannelArn;
|
|
1430
|
-
if (labelValue.length <= 0) {
|
|
1431
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1432
|
-
}
|
|
1433
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
1434
|
-
}
|
|
1435
|
-
else {
|
|
1436
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1437
|
-
}
|
|
1229
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1438
1230
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.Name != null && { Name: input.Name })));
|
|
1439
1231
|
return [2, new __HttpRequest({
|
|
1440
1232
|
protocol: protocol,
|
|
@@ -1449,7 +1241,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
1449
1241
|
});
|
|
1450
1242
|
}); };
|
|
1451
1243
|
export var serializeAws_restJson1UpdateChannelFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1452
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1244
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1453
1245
|
return __generator(this, function (_c) {
|
|
1454
1246
|
switch (_c.label) {
|
|
1455
1247
|
case 0: return [4, context.endpoint()];
|
|
@@ -1459,16 +1251,7 @@ export var serializeAws_restJson1UpdateChannelFlowCommand = function (input, con
|
|
|
1459
1251
|
"content-type": "application/json",
|
|
1460
1252
|
};
|
|
1461
1253
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows/{ChannelFlowArn}";
|
|
1462
|
-
|
|
1463
|
-
labelValue = input.ChannelFlowArn;
|
|
1464
|
-
if (labelValue.length <= 0) {
|
|
1465
|
-
throw new Error("Empty value provided for input HTTP label: ChannelFlowArn.");
|
|
1466
|
-
}
|
|
1467
|
-
resolvedPath = resolvedPath.replace("{ChannelFlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
1468
|
-
}
|
|
1469
|
-
else {
|
|
1470
|
-
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
1471
|
-
}
|
|
1254
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
1472
1255
|
body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) })));
|
|
1473
1256
|
return [2, new __HttpRequest({
|
|
1474
1257
|
protocol: protocol,
|
|
@@ -1483,36 +1266,21 @@ export var serializeAws_restJson1UpdateChannelFlowCommand = function (input, con
|
|
|
1483
1266
|
});
|
|
1484
1267
|
}); };
|
|
1485
1268
|
export var serializeAws_restJson1UpdateChannelMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1486
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1269
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1487
1270
|
return __generator(this, function (_c) {
|
|
1488
1271
|
switch (_c.label) {
|
|
1489
1272
|
case 0: return [4, context.endpoint()];
|
|
1490
1273
|
case 1:
|
|
1491
1274
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1492
|
-
headers =
|
|
1275
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1276
|
+
"content-type": "application/json",
|
|
1277
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1278
|
+
});
|
|
1493
1279
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1494
1280
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1499
|
-
}
|
|
1500
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
1501
|
-
}
|
|
1502
|
-
else {
|
|
1503
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1504
|
-
}
|
|
1505
|
-
if (input.MessageId !== undefined) {
|
|
1506
|
-
labelValue = input.MessageId;
|
|
1507
|
-
if (labelValue.length <= 0) {
|
|
1508
|
-
throw new Error("Empty value provided for input HTTP label: MessageId.");
|
|
1509
|
-
}
|
|
1510
|
-
resolvedPath = resolvedPath.replace("{MessageId}", __extendedEncodeURIComponent(labelValue));
|
|
1511
|
-
}
|
|
1512
|
-
else {
|
|
1513
|
-
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
1514
|
-
}
|
|
1515
|
-
body = JSON.stringify(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })));
|
|
1281
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1282
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
1283
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })), (input.SubChannelId != null && { SubChannelId: input.SubChannelId })));
|
|
1516
1284
|
return [2, new __HttpRequest({
|
|
1517
1285
|
protocol: protocol,
|
|
1518
1286
|
hostname: hostname,
|
|
@@ -1526,24 +1294,19 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
|
|
|
1526
1294
|
});
|
|
1527
1295
|
}); };
|
|
1528
1296
|
export var serializeAws_restJson1UpdateChannelReadMarkerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1529
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1297
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1530
1298
|
return __generator(this, function (_c) {
|
|
1531
1299
|
switch (_c.label) {
|
|
1532
1300
|
case 0: return [4, context.endpoint()];
|
|
1533
1301
|
case 1:
|
|
1534
1302
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1535
|
-
headers =
|
|
1303
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1304
|
+
"content-type": "application/json",
|
|
1305
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1306
|
+
});
|
|
1536
1307
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/readMarker";
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
if (labelValue.length <= 0) {
|
|
1540
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
1541
|
-
}
|
|
1542
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
1543
|
-
}
|
|
1544
|
-
else {
|
|
1545
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1546
|
-
}
|
|
1308
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1309
|
+
body = JSON.stringify(__assign({}, (input.SubChannelId != null && { SubChannelId: input.SubChannelId })));
|
|
1547
1310
|
return [2, new __HttpRequest({
|
|
1548
1311
|
protocol: protocol,
|
|
1549
1312
|
hostname: hostname,
|
|
@@ -1564,18 +1327,18 @@ export var deserializeAws_restJson1AssociateChannelFlowCommand = function (outpu
|
|
|
1564
1327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
1328
|
return [2, deserializeAws_restJson1AssociateChannelFlowCommandError(output, context)];
|
|
1566
1329
|
}
|
|
1567
|
-
contents = {
|
|
1330
|
+
contents = map({
|
|
1568
1331
|
$metadata: deserializeMetadata(output),
|
|
1569
|
-
};
|
|
1332
|
+
});
|
|
1570
1333
|
return [4, collectBody(output.body, context)];
|
|
1571
1334
|
case 1:
|
|
1572
1335
|
_a.sent();
|
|
1573
|
-
return [2,
|
|
1336
|
+
return [2, contents];
|
|
1574
1337
|
}
|
|
1575
1338
|
});
|
|
1576
1339
|
}); };
|
|
1577
1340
|
var deserializeAws_restJson1AssociateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1578
|
-
var parsedOutput, _a,
|
|
1341
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1579
1342
|
var _c;
|
|
1580
1343
|
return __generator(this, function (_d) {
|
|
1581
1344
|
switch (_d.label) {
|
|
@@ -1624,14 +1387,14 @@ var deserializeAws_restJson1AssociateChannelFlowCommandError = function (output,
|
|
|
1624
1387
|
case 17: throw _d.sent();
|
|
1625
1388
|
case 18:
|
|
1626
1389
|
parsedBody = parsedOutput.body;
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
$metadata: $metadata,
|
|
1390
|
+
throwDefaultError({
|
|
1391
|
+
output: output,
|
|
1392
|
+
parsedBody: parsedBody,
|
|
1393
|
+
exceptionCtor: __BaseException,
|
|
1394
|
+
errorCode: errorCode,
|
|
1633
1395
|
});
|
|
1634
|
-
|
|
1396
|
+
_d.label = 19;
|
|
1397
|
+
case 19: return [2];
|
|
1635
1398
|
}
|
|
1636
1399
|
});
|
|
1637
1400
|
}); };
|
|
@@ -1643,28 +1406,26 @@ export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = functio
|
|
|
1643
1406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1644
1407
|
return [2, deserializeAws_restJson1BatchCreateChannelMembershipCommandError(output, context)];
|
|
1645
1408
|
}
|
|
1646
|
-
contents = {
|
|
1409
|
+
contents = map({
|
|
1647
1410
|
$metadata: deserializeMetadata(output),
|
|
1648
|
-
|
|
1649
|
-
Errors: undefined,
|
|
1650
|
-
};
|
|
1411
|
+
});
|
|
1651
1412
|
_a = __expectNonNull;
|
|
1652
1413
|
_b = __expectObject;
|
|
1653
1414
|
return [4, parseBody(output.body, context)];
|
|
1654
1415
|
case 1:
|
|
1655
1416
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1656
|
-
if (data.BatchChannelMemberships
|
|
1417
|
+
if (data.BatchChannelMemberships != null) {
|
|
1657
1418
|
contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
|
|
1658
1419
|
}
|
|
1659
|
-
if (data.Errors
|
|
1420
|
+
if (data.Errors != null) {
|
|
1660
1421
|
contents.Errors = deserializeAws_restJson1BatchCreateChannelMembershipErrors(data.Errors, context);
|
|
1661
1422
|
}
|
|
1662
|
-
return [2,
|
|
1423
|
+
return [2, contents];
|
|
1663
1424
|
}
|
|
1664
1425
|
});
|
|
1665
1426
|
}); };
|
|
1666
1427
|
var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1667
|
-
var parsedOutput, _a,
|
|
1428
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1668
1429
|
var _c;
|
|
1669
1430
|
return __generator(this, function (_d) {
|
|
1670
1431
|
switch (_d.label) {
|
|
@@ -1681,38 +1442,46 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
|
|
|
1681
1442
|
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
1682
1443
|
case "ForbiddenException": return [3, 4];
|
|
1683
1444
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
1684
|
-
case "
|
|
1685
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1686
|
-
case "
|
|
1687
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1688
|
-
case "
|
|
1689
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1690
|
-
case "
|
|
1691
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
1445
|
+
case "NotFoundException": return [3, 6];
|
|
1446
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 6];
|
|
1447
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1448
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 8];
|
|
1449
|
+
case "ServiceFailureException": return [3, 10];
|
|
1450
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 10];
|
|
1451
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1452
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 12];
|
|
1453
|
+
case "ThrottledClientException": return [3, 14];
|
|
1454
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 14];
|
|
1455
|
+
case "UnauthorizedClientException": return [3, 16];
|
|
1456
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 16];
|
|
1692
1457
|
}
|
|
1693
|
-
return [3,
|
|
1458
|
+
return [3, 18];
|
|
1694
1459
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1695
1460
|
case 3: throw _d.sent();
|
|
1696
1461
|
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1697
1462
|
case 5: throw _d.sent();
|
|
1698
|
-
case 6: return [4,
|
|
1463
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1699
1464
|
case 7: throw _d.sent();
|
|
1700
|
-
case 8: return [4,
|
|
1465
|
+
case 8: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1701
1466
|
case 9: throw _d.sent();
|
|
1702
|
-
case 10: return [4,
|
|
1467
|
+
case 10: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
1703
1468
|
case 11: throw _d.sent();
|
|
1704
|
-
case 12: return [4,
|
|
1469
|
+
case 12: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1705
1470
|
case 13: throw _d.sent();
|
|
1706
|
-
case 14:
|
|
1471
|
+
case 14: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
1472
|
+
case 15: throw _d.sent();
|
|
1473
|
+
case 16: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1474
|
+
case 17: throw _d.sent();
|
|
1475
|
+
case 18:
|
|
1707
1476
|
parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
$metadata: $metadata,
|
|
1477
|
+
throwDefaultError({
|
|
1478
|
+
output: output,
|
|
1479
|
+
parsedBody: parsedBody,
|
|
1480
|
+
exceptionCtor: __BaseException,
|
|
1481
|
+
errorCode: errorCode,
|
|
1714
1482
|
});
|
|
1715
|
-
|
|
1483
|
+
_d.label = 19;
|
|
1484
|
+
case 19: return [2];
|
|
1716
1485
|
}
|
|
1717
1486
|
});
|
|
1718
1487
|
}); };
|
|
@@ -1724,28 +1493,26 @@ export var deserializeAws_restJson1ChannelFlowCallbackCommand = function (output
|
|
|
1724
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1725
1494
|
return [2, deserializeAws_restJson1ChannelFlowCallbackCommandError(output, context)];
|
|
1726
1495
|
}
|
|
1727
|
-
contents = {
|
|
1496
|
+
contents = map({
|
|
1728
1497
|
$metadata: deserializeMetadata(output),
|
|
1729
|
-
|
|
1730
|
-
ChannelArn: undefined,
|
|
1731
|
-
};
|
|
1498
|
+
});
|
|
1732
1499
|
_a = __expectNonNull;
|
|
1733
1500
|
_b = __expectObject;
|
|
1734
1501
|
return [4, parseBody(output.body, context)];
|
|
1735
1502
|
case 1:
|
|
1736
1503
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1737
|
-
if (data.CallbackId
|
|
1504
|
+
if (data.CallbackId != null) {
|
|
1738
1505
|
contents.CallbackId = __expectString(data.CallbackId);
|
|
1739
1506
|
}
|
|
1740
|
-
if (data.ChannelArn
|
|
1507
|
+
if (data.ChannelArn != null) {
|
|
1741
1508
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1742
1509
|
}
|
|
1743
|
-
return [2,
|
|
1510
|
+
return [2, contents];
|
|
1744
1511
|
}
|
|
1745
1512
|
});
|
|
1746
1513
|
}); };
|
|
1747
1514
|
var deserializeAws_restJson1ChannelFlowCallbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var parsedOutput, _a,
|
|
1515
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1749
1516
|
var _c;
|
|
1750
1517
|
return __generator(this, function (_d) {
|
|
1751
1518
|
switch (_d.label) {
|
|
@@ -1790,14 +1557,14 @@ var deserializeAws_restJson1ChannelFlowCallbackCommandError = function (output,
|
|
|
1790
1557
|
case 15: throw _d.sent();
|
|
1791
1558
|
case 16:
|
|
1792
1559
|
parsedBody = parsedOutput.body;
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
$metadata: $metadata,
|
|
1560
|
+
throwDefaultError({
|
|
1561
|
+
output: output,
|
|
1562
|
+
parsedBody: parsedBody,
|
|
1563
|
+
exceptionCtor: __BaseException,
|
|
1564
|
+
errorCode: errorCode,
|
|
1799
1565
|
});
|
|
1800
|
-
|
|
1566
|
+
_d.label = 17;
|
|
1567
|
+
case 17: return [2];
|
|
1801
1568
|
}
|
|
1802
1569
|
});
|
|
1803
1570
|
}); };
|
|
@@ -1809,24 +1576,23 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1809
1576
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1810
1577
|
return [2, deserializeAws_restJson1CreateChannelCommandError(output, context)];
|
|
1811
1578
|
}
|
|
1812
|
-
contents = {
|
|
1579
|
+
contents = map({
|
|
1813
1580
|
$metadata: deserializeMetadata(output),
|
|
1814
|
-
|
|
1815
|
-
};
|
|
1581
|
+
});
|
|
1816
1582
|
_a = __expectNonNull;
|
|
1817
1583
|
_b = __expectObject;
|
|
1818
1584
|
return [4, parseBody(output.body, context)];
|
|
1819
1585
|
case 1:
|
|
1820
1586
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1821
|
-
if (data.ChannelArn
|
|
1587
|
+
if (data.ChannelArn != null) {
|
|
1822
1588
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1823
1589
|
}
|
|
1824
|
-
return [2,
|
|
1590
|
+
return [2, contents];
|
|
1825
1591
|
}
|
|
1826
1592
|
});
|
|
1827
1593
|
}); };
|
|
1828
1594
|
var deserializeAws_restJson1CreateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1829
|
-
var parsedOutput, _a,
|
|
1595
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1830
1596
|
var _c;
|
|
1831
1597
|
return __generator(this, function (_d) {
|
|
1832
1598
|
switch (_d.label) {
|
|
@@ -1875,14 +1641,14 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1875
1641
|
case 17: throw _d.sent();
|
|
1876
1642
|
case 18:
|
|
1877
1643
|
parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
$metadata: $metadata,
|
|
1644
|
+
throwDefaultError({
|
|
1645
|
+
output: output,
|
|
1646
|
+
parsedBody: parsedBody,
|
|
1647
|
+
exceptionCtor: __BaseException,
|
|
1648
|
+
errorCode: errorCode,
|
|
1884
1649
|
});
|
|
1885
|
-
|
|
1650
|
+
_d.label = 19;
|
|
1651
|
+
case 19: return [2];
|
|
1886
1652
|
}
|
|
1887
1653
|
});
|
|
1888
1654
|
}); };
|
|
@@ -1894,28 +1660,26 @@ export var deserializeAws_restJson1CreateChannelBanCommand = function (output, c
|
|
|
1894
1660
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1895
1661
|
return [2, deserializeAws_restJson1CreateChannelBanCommandError(output, context)];
|
|
1896
1662
|
}
|
|
1897
|
-
contents = {
|
|
1663
|
+
contents = map({
|
|
1898
1664
|
$metadata: deserializeMetadata(output),
|
|
1899
|
-
|
|
1900
|
-
Member: undefined,
|
|
1901
|
-
};
|
|
1665
|
+
});
|
|
1902
1666
|
_a = __expectNonNull;
|
|
1903
1667
|
_b = __expectObject;
|
|
1904
1668
|
return [4, parseBody(output.body, context)];
|
|
1905
1669
|
case 1:
|
|
1906
1670
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1907
|
-
if (data.ChannelArn
|
|
1671
|
+
if (data.ChannelArn != null) {
|
|
1908
1672
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1909
1673
|
}
|
|
1910
|
-
if (data.Member
|
|
1674
|
+
if (data.Member != null) {
|
|
1911
1675
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
1912
1676
|
}
|
|
1913
|
-
return [2,
|
|
1677
|
+
return [2, contents];
|
|
1914
1678
|
}
|
|
1915
1679
|
});
|
|
1916
1680
|
}); };
|
|
1917
1681
|
var deserializeAws_restJson1CreateChannelBanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1918
|
-
var parsedOutput, _a,
|
|
1682
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1919
1683
|
var _c;
|
|
1920
1684
|
return __generator(this, function (_d) {
|
|
1921
1685
|
switch (_d.label) {
|
|
@@ -1964,14 +1728,14 @@ var deserializeAws_restJson1CreateChannelBanCommandError = function (output, con
|
|
|
1964
1728
|
case 17: throw _d.sent();
|
|
1965
1729
|
case 18:
|
|
1966
1730
|
parsedBody = parsedOutput.body;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
$metadata: $metadata,
|
|
1731
|
+
throwDefaultError({
|
|
1732
|
+
output: output,
|
|
1733
|
+
parsedBody: parsedBody,
|
|
1734
|
+
exceptionCtor: __BaseException,
|
|
1735
|
+
errorCode: errorCode,
|
|
1973
1736
|
});
|
|
1974
|
-
|
|
1737
|
+
_d.label = 19;
|
|
1738
|
+
case 19: return [2];
|
|
1975
1739
|
}
|
|
1976
1740
|
});
|
|
1977
1741
|
}); };
|
|
@@ -1983,24 +1747,23 @@ export var deserializeAws_restJson1CreateChannelFlowCommand = function (output,
|
|
|
1983
1747
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1984
1748
|
return [2, deserializeAws_restJson1CreateChannelFlowCommandError(output, context)];
|
|
1985
1749
|
}
|
|
1986
|
-
contents = {
|
|
1750
|
+
contents = map({
|
|
1987
1751
|
$metadata: deserializeMetadata(output),
|
|
1988
|
-
|
|
1989
|
-
};
|
|
1752
|
+
});
|
|
1990
1753
|
_a = __expectNonNull;
|
|
1991
1754
|
_b = __expectObject;
|
|
1992
1755
|
return [4, parseBody(output.body, context)];
|
|
1993
1756
|
case 1:
|
|
1994
1757
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1995
|
-
if (data.ChannelFlowArn
|
|
1758
|
+
if (data.ChannelFlowArn != null) {
|
|
1996
1759
|
contents.ChannelFlowArn = __expectString(data.ChannelFlowArn);
|
|
1997
1760
|
}
|
|
1998
|
-
return [2,
|
|
1761
|
+
return [2, contents];
|
|
1999
1762
|
}
|
|
2000
1763
|
});
|
|
2001
1764
|
}); };
|
|
2002
1765
|
var deserializeAws_restJson1CreateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2003
|
-
var parsedOutput, _a,
|
|
1766
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2004
1767
|
var _c;
|
|
2005
1768
|
return __generator(this, function (_d) {
|
|
2006
1769
|
switch (_d.label) {
|
|
@@ -2049,14 +1812,14 @@ var deserializeAws_restJson1CreateChannelFlowCommandError = function (output, co
|
|
|
2049
1812
|
case 17: throw _d.sent();
|
|
2050
1813
|
case 18:
|
|
2051
1814
|
parsedBody = parsedOutput.body;
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
$metadata: $metadata,
|
|
1815
|
+
throwDefaultError({
|
|
1816
|
+
output: output,
|
|
1817
|
+
parsedBody: parsedBody,
|
|
1818
|
+
exceptionCtor: __BaseException,
|
|
1819
|
+
errorCode: errorCode,
|
|
2058
1820
|
});
|
|
2059
|
-
|
|
1821
|
+
_d.label = 19;
|
|
1822
|
+
case 19: return [2];
|
|
2060
1823
|
}
|
|
2061
1824
|
});
|
|
2062
1825
|
}); };
|
|
@@ -2068,28 +1831,29 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
|
|
|
2068
1831
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2069
1832
|
return [2, deserializeAws_restJson1CreateChannelMembershipCommandError(output, context)];
|
|
2070
1833
|
}
|
|
2071
|
-
contents = {
|
|
1834
|
+
contents = map({
|
|
2072
1835
|
$metadata: deserializeMetadata(output),
|
|
2073
|
-
|
|
2074
|
-
Member: undefined,
|
|
2075
|
-
};
|
|
1836
|
+
});
|
|
2076
1837
|
_a = __expectNonNull;
|
|
2077
1838
|
_b = __expectObject;
|
|
2078
1839
|
return [4, parseBody(output.body, context)];
|
|
2079
1840
|
case 1:
|
|
2080
1841
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2081
|
-
if (data.ChannelArn
|
|
1842
|
+
if (data.ChannelArn != null) {
|
|
2082
1843
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
2083
1844
|
}
|
|
2084
|
-
if (data.Member
|
|
1845
|
+
if (data.Member != null) {
|
|
2085
1846
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
2086
1847
|
}
|
|
2087
|
-
|
|
1848
|
+
if (data.SubChannelId != null) {
|
|
1849
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
1850
|
+
}
|
|
1851
|
+
return [2, contents];
|
|
2088
1852
|
}
|
|
2089
1853
|
});
|
|
2090
1854
|
}); };
|
|
2091
1855
|
var deserializeAws_restJson1CreateChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2092
|
-
var parsedOutput, _a,
|
|
1856
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2093
1857
|
var _c;
|
|
2094
1858
|
return __generator(this, function (_d) {
|
|
2095
1859
|
switch (_d.label) {
|
|
@@ -2108,44 +1872,48 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
|
|
|
2108
1872
|
case "com.amazonaws.chimesdkmessaging#ConflictException": return [3, 4];
|
|
2109
1873
|
case "ForbiddenException": return [3, 6];
|
|
2110
1874
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 6];
|
|
2111
|
-
case "
|
|
2112
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
2113
|
-
case "
|
|
2114
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
2115
|
-
case "
|
|
2116
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
2117
|
-
case "
|
|
2118
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
2119
|
-
case "
|
|
2120
|
-
case "com.amazonaws.chimesdkmessaging#
|
|
2121
|
-
|
|
2122
|
-
|
|
1875
|
+
case "NotFoundException": return [3, 8];
|
|
1876
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException": return [3, 8];
|
|
1877
|
+
case "ResourceLimitExceededException": return [3, 10];
|
|
1878
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException": return [3, 10];
|
|
1879
|
+
case "ServiceFailureException": return [3, 12];
|
|
1880
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 12];
|
|
1881
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1882
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 14];
|
|
1883
|
+
case "ThrottledClientException": return [3, 16];
|
|
1884
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 16];
|
|
1885
|
+
case "UnauthorizedClientException": return [3, 18];
|
|
1886
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 18];
|
|
1887
|
+
}
|
|
1888
|
+
return [3, 20];
|
|
2123
1889
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2124
1890
|
case 3: throw _d.sent();
|
|
2125
1891
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2126
1892
|
case 5: throw _d.sent();
|
|
2127
1893
|
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2128
1894
|
case 7: throw _d.sent();
|
|
2129
|
-
case 8: return [4,
|
|
1895
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2130
1896
|
case 9: throw _d.sent();
|
|
2131
|
-
case 10: return [4,
|
|
1897
|
+
case 10: return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2132
1898
|
case 11: throw _d.sent();
|
|
2133
|
-
case 12: return [4,
|
|
1899
|
+
case 12: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
2134
1900
|
case 13: throw _d.sent();
|
|
2135
|
-
case 14: return [4,
|
|
1901
|
+
case 14: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
2136
1902
|
case 15: throw _d.sent();
|
|
2137
|
-
case 16: return [4,
|
|
1903
|
+
case 16: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
2138
1904
|
case 17: throw _d.sent();
|
|
2139
|
-
case 18:
|
|
1905
|
+
case 18: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
1906
|
+
case 19: throw _d.sent();
|
|
1907
|
+
case 20:
|
|
2140
1908
|
parsedBody = parsedOutput.body;
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
$metadata: $metadata,
|
|
1909
|
+
throwDefaultError({
|
|
1910
|
+
output: output,
|
|
1911
|
+
parsedBody: parsedBody,
|
|
1912
|
+
exceptionCtor: __BaseException,
|
|
1913
|
+
errorCode: errorCode,
|
|
2147
1914
|
});
|
|
2148
|
-
|
|
1915
|
+
_d.label = 21;
|
|
1916
|
+
case 21: return [2];
|
|
2149
1917
|
}
|
|
2150
1918
|
});
|
|
2151
1919
|
}); };
|
|
@@ -2157,28 +1925,26 @@ export var deserializeAws_restJson1CreateChannelModeratorCommand = function (out
|
|
|
2157
1925
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2158
1926
|
return [2, deserializeAws_restJson1CreateChannelModeratorCommandError(output, context)];
|
|
2159
1927
|
}
|
|
2160
|
-
contents = {
|
|
1928
|
+
contents = map({
|
|
2161
1929
|
$metadata: deserializeMetadata(output),
|
|
2162
|
-
|
|
2163
|
-
ChannelModerator: undefined,
|
|
2164
|
-
};
|
|
1930
|
+
});
|
|
2165
1931
|
_a = __expectNonNull;
|
|
2166
1932
|
_b = __expectObject;
|
|
2167
1933
|
return [4, parseBody(output.body, context)];
|
|
2168
1934
|
case 1:
|
|
2169
1935
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2170
|
-
if (data.ChannelArn
|
|
1936
|
+
if (data.ChannelArn != null) {
|
|
2171
1937
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
2172
1938
|
}
|
|
2173
|
-
if (data.ChannelModerator
|
|
1939
|
+
if (data.ChannelModerator != null) {
|
|
2174
1940
|
contents.ChannelModerator = deserializeAws_restJson1Identity(data.ChannelModerator, context);
|
|
2175
1941
|
}
|
|
2176
|
-
return [2,
|
|
1942
|
+
return [2, contents];
|
|
2177
1943
|
}
|
|
2178
1944
|
});
|
|
2179
1945
|
}); };
|
|
2180
1946
|
var deserializeAws_restJson1CreateChannelModeratorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2181
|
-
var parsedOutput, _a,
|
|
1947
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2182
1948
|
var _c;
|
|
2183
1949
|
return __generator(this, function (_d) {
|
|
2184
1950
|
switch (_d.label) {
|
|
@@ -2227,14 +1993,14 @@ var deserializeAws_restJson1CreateChannelModeratorCommandError = function (outpu
|
|
|
2227
1993
|
case 17: throw _d.sent();
|
|
2228
1994
|
case 18:
|
|
2229
1995
|
parsedBody = parsedOutput.body;
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
$metadata: $metadata,
|
|
1996
|
+
throwDefaultError({
|
|
1997
|
+
output: output,
|
|
1998
|
+
parsedBody: parsedBody,
|
|
1999
|
+
exceptionCtor: __BaseException,
|
|
2000
|
+
errorCode: errorCode,
|
|
2236
2001
|
});
|
|
2237
|
-
|
|
2002
|
+
_d.label = 19;
|
|
2003
|
+
case 19: return [2];
|
|
2238
2004
|
}
|
|
2239
2005
|
});
|
|
2240
2006
|
}); };
|
|
@@ -2246,18 +2012,18 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
|
|
|
2246
2012
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2247
2013
|
return [2, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
|
|
2248
2014
|
}
|
|
2249
|
-
contents = {
|
|
2015
|
+
contents = map({
|
|
2250
2016
|
$metadata: deserializeMetadata(output),
|
|
2251
|
-
};
|
|
2017
|
+
});
|
|
2252
2018
|
return [4, collectBody(output.body, context)];
|
|
2253
2019
|
case 1:
|
|
2254
2020
|
_a.sent();
|
|
2255
|
-
return [2,
|
|
2021
|
+
return [2, contents];
|
|
2256
2022
|
}
|
|
2257
2023
|
});
|
|
2258
2024
|
}); };
|
|
2259
2025
|
var deserializeAws_restJson1DeleteChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2260
|
-
var parsedOutput, _a,
|
|
2026
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2261
2027
|
var _c;
|
|
2262
2028
|
return __generator(this, function (_d) {
|
|
2263
2029
|
switch (_d.label) {
|
|
@@ -2298,14 +2064,14 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
2298
2064
|
case 13: throw _d.sent();
|
|
2299
2065
|
case 14:
|
|
2300
2066
|
parsedBody = parsedOutput.body;
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
$metadata: $metadata,
|
|
2067
|
+
throwDefaultError({
|
|
2068
|
+
output: output,
|
|
2069
|
+
parsedBody: parsedBody,
|
|
2070
|
+
exceptionCtor: __BaseException,
|
|
2071
|
+
errorCode: errorCode,
|
|
2307
2072
|
});
|
|
2308
|
-
|
|
2073
|
+
_d.label = 15;
|
|
2074
|
+
case 15: return [2];
|
|
2309
2075
|
}
|
|
2310
2076
|
});
|
|
2311
2077
|
}); };
|
|
@@ -2317,18 +2083,18 @@ export var deserializeAws_restJson1DeleteChannelBanCommand = function (output, c
|
|
|
2317
2083
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2318
2084
|
return [2, deserializeAws_restJson1DeleteChannelBanCommandError(output, context)];
|
|
2319
2085
|
}
|
|
2320
|
-
contents = {
|
|
2086
|
+
contents = map({
|
|
2321
2087
|
$metadata: deserializeMetadata(output),
|
|
2322
|
-
};
|
|
2088
|
+
});
|
|
2323
2089
|
return [4, collectBody(output.body, context)];
|
|
2324
2090
|
case 1:
|
|
2325
2091
|
_a.sent();
|
|
2326
|
-
return [2,
|
|
2092
|
+
return [2, contents];
|
|
2327
2093
|
}
|
|
2328
2094
|
});
|
|
2329
2095
|
}); };
|
|
2330
2096
|
var deserializeAws_restJson1DeleteChannelBanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2331
|
-
var parsedOutput, _a,
|
|
2097
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2332
2098
|
var _c;
|
|
2333
2099
|
return __generator(this, function (_d) {
|
|
2334
2100
|
switch (_d.label) {
|
|
@@ -2369,14 +2135,14 @@ var deserializeAws_restJson1DeleteChannelBanCommandError = function (output, con
|
|
|
2369
2135
|
case 13: throw _d.sent();
|
|
2370
2136
|
case 14:
|
|
2371
2137
|
parsedBody = parsedOutput.body;
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
$metadata: $metadata,
|
|
2138
|
+
throwDefaultError({
|
|
2139
|
+
output: output,
|
|
2140
|
+
parsedBody: parsedBody,
|
|
2141
|
+
exceptionCtor: __BaseException,
|
|
2142
|
+
errorCode: errorCode,
|
|
2378
2143
|
});
|
|
2379
|
-
|
|
2144
|
+
_d.label = 15;
|
|
2145
|
+
case 15: return [2];
|
|
2380
2146
|
}
|
|
2381
2147
|
});
|
|
2382
2148
|
}); };
|
|
@@ -2388,18 +2154,18 @@ export var deserializeAws_restJson1DeleteChannelFlowCommand = function (output,
|
|
|
2388
2154
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2389
2155
|
return [2, deserializeAws_restJson1DeleteChannelFlowCommandError(output, context)];
|
|
2390
2156
|
}
|
|
2391
|
-
contents = {
|
|
2157
|
+
contents = map({
|
|
2392
2158
|
$metadata: deserializeMetadata(output),
|
|
2393
|
-
};
|
|
2159
|
+
});
|
|
2394
2160
|
return [4, collectBody(output.body, context)];
|
|
2395
2161
|
case 1:
|
|
2396
2162
|
_a.sent();
|
|
2397
|
-
return [2,
|
|
2163
|
+
return [2, contents];
|
|
2398
2164
|
}
|
|
2399
2165
|
});
|
|
2400
2166
|
}); };
|
|
2401
2167
|
var deserializeAws_restJson1DeleteChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2402
|
-
var parsedOutput, _a,
|
|
2168
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2403
2169
|
var _c;
|
|
2404
2170
|
return __generator(this, function (_d) {
|
|
2405
2171
|
switch (_d.label) {
|
|
@@ -2444,14 +2210,14 @@ var deserializeAws_restJson1DeleteChannelFlowCommandError = function (output, co
|
|
|
2444
2210
|
case 15: throw _d.sent();
|
|
2445
2211
|
case 16:
|
|
2446
2212
|
parsedBody = parsedOutput.body;
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
$metadata: $metadata,
|
|
2213
|
+
throwDefaultError({
|
|
2214
|
+
output: output,
|
|
2215
|
+
parsedBody: parsedBody,
|
|
2216
|
+
exceptionCtor: __BaseException,
|
|
2217
|
+
errorCode: errorCode,
|
|
2453
2218
|
});
|
|
2454
|
-
|
|
2219
|
+
_d.label = 17;
|
|
2220
|
+
case 17: return [2];
|
|
2455
2221
|
}
|
|
2456
2222
|
});
|
|
2457
2223
|
}); };
|
|
@@ -2463,18 +2229,18 @@ export var deserializeAws_restJson1DeleteChannelMembershipCommand = function (ou
|
|
|
2463
2229
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2464
2230
|
return [2, deserializeAws_restJson1DeleteChannelMembershipCommandError(output, context)];
|
|
2465
2231
|
}
|
|
2466
|
-
contents = {
|
|
2232
|
+
contents = map({
|
|
2467
2233
|
$metadata: deserializeMetadata(output),
|
|
2468
|
-
};
|
|
2234
|
+
});
|
|
2469
2235
|
return [4, collectBody(output.body, context)];
|
|
2470
2236
|
case 1:
|
|
2471
2237
|
_a.sent();
|
|
2472
|
-
return [2,
|
|
2238
|
+
return [2, contents];
|
|
2473
2239
|
}
|
|
2474
2240
|
});
|
|
2475
2241
|
}); };
|
|
2476
2242
|
var deserializeAws_restJson1DeleteChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2477
|
-
var parsedOutput, _a,
|
|
2243
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2478
2244
|
var _c;
|
|
2479
2245
|
return __generator(this, function (_d) {
|
|
2480
2246
|
switch (_d.label) {
|
|
@@ -2519,14 +2285,14 @@ var deserializeAws_restJson1DeleteChannelMembershipCommandError = function (outp
|
|
|
2519
2285
|
case 15: throw _d.sent();
|
|
2520
2286
|
case 16:
|
|
2521
2287
|
parsedBody = parsedOutput.body;
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
$metadata: $metadata,
|
|
2288
|
+
throwDefaultError({
|
|
2289
|
+
output: output,
|
|
2290
|
+
parsedBody: parsedBody,
|
|
2291
|
+
exceptionCtor: __BaseException,
|
|
2292
|
+
errorCode: errorCode,
|
|
2528
2293
|
});
|
|
2529
|
-
|
|
2294
|
+
_d.label = 17;
|
|
2295
|
+
case 17: return [2];
|
|
2530
2296
|
}
|
|
2531
2297
|
});
|
|
2532
2298
|
}); };
|
|
@@ -2538,18 +2304,18 @@ export var deserializeAws_restJson1DeleteChannelMessageCommand = function (outpu
|
|
|
2538
2304
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2539
2305
|
return [2, deserializeAws_restJson1DeleteChannelMessageCommandError(output, context)];
|
|
2540
2306
|
}
|
|
2541
|
-
contents = {
|
|
2307
|
+
contents = map({
|
|
2542
2308
|
$metadata: deserializeMetadata(output),
|
|
2543
|
-
};
|
|
2309
|
+
});
|
|
2544
2310
|
return [4, collectBody(output.body, context)];
|
|
2545
2311
|
case 1:
|
|
2546
2312
|
_a.sent();
|
|
2547
|
-
return [2,
|
|
2313
|
+
return [2, contents];
|
|
2548
2314
|
}
|
|
2549
2315
|
});
|
|
2550
2316
|
}); };
|
|
2551
2317
|
var deserializeAws_restJson1DeleteChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2552
|
-
var parsedOutput, _a,
|
|
2318
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2553
2319
|
var _c;
|
|
2554
2320
|
return __generator(this, function (_d) {
|
|
2555
2321
|
switch (_d.label) {
|
|
@@ -2590,14 +2356,14 @@ var deserializeAws_restJson1DeleteChannelMessageCommandError = function (output,
|
|
|
2590
2356
|
case 13: throw _d.sent();
|
|
2591
2357
|
case 14:
|
|
2592
2358
|
parsedBody = parsedOutput.body;
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
$metadata: $metadata,
|
|
2359
|
+
throwDefaultError({
|
|
2360
|
+
output: output,
|
|
2361
|
+
parsedBody: parsedBody,
|
|
2362
|
+
exceptionCtor: __BaseException,
|
|
2363
|
+
errorCode: errorCode,
|
|
2599
2364
|
});
|
|
2600
|
-
|
|
2365
|
+
_d.label = 15;
|
|
2366
|
+
case 15: return [2];
|
|
2601
2367
|
}
|
|
2602
2368
|
});
|
|
2603
2369
|
}); };
|
|
@@ -2609,18 +2375,18 @@ export var deserializeAws_restJson1DeleteChannelModeratorCommand = function (out
|
|
|
2609
2375
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2610
2376
|
return [2, deserializeAws_restJson1DeleteChannelModeratorCommandError(output, context)];
|
|
2611
2377
|
}
|
|
2612
|
-
contents = {
|
|
2378
|
+
contents = map({
|
|
2613
2379
|
$metadata: deserializeMetadata(output),
|
|
2614
|
-
};
|
|
2380
|
+
});
|
|
2615
2381
|
return [4, collectBody(output.body, context)];
|
|
2616
2382
|
case 1:
|
|
2617
2383
|
_a.sent();
|
|
2618
|
-
return [2,
|
|
2384
|
+
return [2, contents];
|
|
2619
2385
|
}
|
|
2620
2386
|
});
|
|
2621
2387
|
}); };
|
|
2622
2388
|
var deserializeAws_restJson1DeleteChannelModeratorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2623
|
-
var parsedOutput, _a,
|
|
2389
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2624
2390
|
var _c;
|
|
2625
2391
|
return __generator(this, function (_d) {
|
|
2626
2392
|
switch (_d.label) {
|
|
@@ -2661,14 +2427,14 @@ var deserializeAws_restJson1DeleteChannelModeratorCommandError = function (outpu
|
|
|
2661
2427
|
case 13: throw _d.sent();
|
|
2662
2428
|
case 14:
|
|
2663
2429
|
parsedBody = parsedOutput.body;
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
$metadata: $metadata,
|
|
2430
|
+
throwDefaultError({
|
|
2431
|
+
output: output,
|
|
2432
|
+
parsedBody: parsedBody,
|
|
2433
|
+
exceptionCtor: __BaseException,
|
|
2434
|
+
errorCode: errorCode,
|
|
2670
2435
|
});
|
|
2671
|
-
|
|
2436
|
+
_d.label = 15;
|
|
2437
|
+
case 15: return [2];
|
|
2672
2438
|
}
|
|
2673
2439
|
});
|
|
2674
2440
|
}); };
|
|
@@ -2680,24 +2446,23 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2680
2446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2681
2447
|
return [2, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
|
|
2682
2448
|
}
|
|
2683
|
-
contents = {
|
|
2449
|
+
contents = map({
|
|
2684
2450
|
$metadata: deserializeMetadata(output),
|
|
2685
|
-
|
|
2686
|
-
};
|
|
2451
|
+
});
|
|
2687
2452
|
_a = __expectNonNull;
|
|
2688
2453
|
_b = __expectObject;
|
|
2689
2454
|
return [4, parseBody(output.body, context)];
|
|
2690
2455
|
case 1:
|
|
2691
2456
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2692
|
-
if (data.Channel
|
|
2457
|
+
if (data.Channel != null) {
|
|
2693
2458
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
2694
2459
|
}
|
|
2695
|
-
return [2,
|
|
2460
|
+
return [2, contents];
|
|
2696
2461
|
}
|
|
2697
2462
|
});
|
|
2698
2463
|
}); };
|
|
2699
2464
|
var deserializeAws_restJson1DescribeChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2700
|
-
var parsedOutput, _a,
|
|
2465
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2701
2466
|
var _c;
|
|
2702
2467
|
return __generator(this, function (_d) {
|
|
2703
2468
|
switch (_d.label) {
|
|
@@ -2738,14 +2503,14 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2738
2503
|
case 13: throw _d.sent();
|
|
2739
2504
|
case 14:
|
|
2740
2505
|
parsedBody = parsedOutput.body;
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
$metadata: $metadata,
|
|
2506
|
+
throwDefaultError({
|
|
2507
|
+
output: output,
|
|
2508
|
+
parsedBody: parsedBody,
|
|
2509
|
+
exceptionCtor: __BaseException,
|
|
2510
|
+
errorCode: errorCode,
|
|
2747
2511
|
});
|
|
2748
|
-
|
|
2512
|
+
_d.label = 15;
|
|
2513
|
+
case 15: return [2];
|
|
2749
2514
|
}
|
|
2750
2515
|
});
|
|
2751
2516
|
}); };
|
|
@@ -2757,24 +2522,23 @@ export var deserializeAws_restJson1DescribeChannelBanCommand = function (output,
|
|
|
2757
2522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2758
2523
|
return [2, deserializeAws_restJson1DescribeChannelBanCommandError(output, context)];
|
|
2759
2524
|
}
|
|
2760
|
-
contents = {
|
|
2525
|
+
contents = map({
|
|
2761
2526
|
$metadata: deserializeMetadata(output),
|
|
2762
|
-
|
|
2763
|
-
};
|
|
2527
|
+
});
|
|
2764
2528
|
_a = __expectNonNull;
|
|
2765
2529
|
_b = __expectObject;
|
|
2766
2530
|
return [4, parseBody(output.body, context)];
|
|
2767
2531
|
case 1:
|
|
2768
2532
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2769
|
-
if (data.ChannelBan
|
|
2533
|
+
if (data.ChannelBan != null) {
|
|
2770
2534
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
2771
2535
|
}
|
|
2772
|
-
return [2,
|
|
2536
|
+
return [2, contents];
|
|
2773
2537
|
}
|
|
2774
2538
|
});
|
|
2775
2539
|
}); };
|
|
2776
2540
|
var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2777
|
-
var parsedOutput, _a,
|
|
2541
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2778
2542
|
var _c;
|
|
2779
2543
|
return __generator(this, function (_d) {
|
|
2780
2544
|
switch (_d.label) {
|
|
@@ -2819,14 +2583,14 @@ var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, c
|
|
|
2819
2583
|
case 15: throw _d.sent();
|
|
2820
2584
|
case 16:
|
|
2821
2585
|
parsedBody = parsedOutput.body;
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
$metadata: $metadata,
|
|
2586
|
+
throwDefaultError({
|
|
2587
|
+
output: output,
|
|
2588
|
+
parsedBody: parsedBody,
|
|
2589
|
+
exceptionCtor: __BaseException,
|
|
2590
|
+
errorCode: errorCode,
|
|
2828
2591
|
});
|
|
2829
|
-
|
|
2592
|
+
_d.label = 17;
|
|
2593
|
+
case 17: return [2];
|
|
2830
2594
|
}
|
|
2831
2595
|
});
|
|
2832
2596
|
}); };
|
|
@@ -2838,24 +2602,23 @@ export var deserializeAws_restJson1DescribeChannelFlowCommand = function (output
|
|
|
2838
2602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2839
2603
|
return [2, deserializeAws_restJson1DescribeChannelFlowCommandError(output, context)];
|
|
2840
2604
|
}
|
|
2841
|
-
contents = {
|
|
2605
|
+
contents = map({
|
|
2842
2606
|
$metadata: deserializeMetadata(output),
|
|
2843
|
-
|
|
2844
|
-
};
|
|
2607
|
+
});
|
|
2845
2608
|
_a = __expectNonNull;
|
|
2846
2609
|
_b = __expectObject;
|
|
2847
2610
|
return [4, parseBody(output.body, context)];
|
|
2848
2611
|
case 1:
|
|
2849
2612
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2850
|
-
if (data.ChannelFlow
|
|
2613
|
+
if (data.ChannelFlow != null) {
|
|
2851
2614
|
contents.ChannelFlow = deserializeAws_restJson1ChannelFlow(data.ChannelFlow, context);
|
|
2852
2615
|
}
|
|
2853
|
-
return [2,
|
|
2616
|
+
return [2, contents];
|
|
2854
2617
|
}
|
|
2855
2618
|
});
|
|
2856
2619
|
}); };
|
|
2857
2620
|
var deserializeAws_restJson1DescribeChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2858
|
-
var parsedOutput, _a,
|
|
2621
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2859
2622
|
var _c;
|
|
2860
2623
|
return __generator(this, function (_d) {
|
|
2861
2624
|
switch (_d.label) {
|
|
@@ -2896,14 +2659,14 @@ var deserializeAws_restJson1DescribeChannelFlowCommandError = function (output,
|
|
|
2896
2659
|
case 13: throw _d.sent();
|
|
2897
2660
|
case 14:
|
|
2898
2661
|
parsedBody = parsedOutput.body;
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
$metadata: $metadata,
|
|
2662
|
+
throwDefaultError({
|
|
2663
|
+
output: output,
|
|
2664
|
+
parsedBody: parsedBody,
|
|
2665
|
+
exceptionCtor: __BaseException,
|
|
2666
|
+
errorCode: errorCode,
|
|
2905
2667
|
});
|
|
2906
|
-
|
|
2668
|
+
_d.label = 15;
|
|
2669
|
+
case 15: return [2];
|
|
2907
2670
|
}
|
|
2908
2671
|
});
|
|
2909
2672
|
}); };
|
|
@@ -2915,24 +2678,23 @@ export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (
|
|
|
2915
2678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2916
2679
|
return [2, deserializeAws_restJson1DescribeChannelMembershipCommandError(output, context)];
|
|
2917
2680
|
}
|
|
2918
|
-
contents = {
|
|
2681
|
+
contents = map({
|
|
2919
2682
|
$metadata: deserializeMetadata(output),
|
|
2920
|
-
|
|
2921
|
-
};
|
|
2683
|
+
});
|
|
2922
2684
|
_a = __expectNonNull;
|
|
2923
2685
|
_b = __expectObject;
|
|
2924
2686
|
return [4, parseBody(output.body, context)];
|
|
2925
2687
|
case 1:
|
|
2926
2688
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2927
|
-
if (data.ChannelMembership
|
|
2689
|
+
if (data.ChannelMembership != null) {
|
|
2928
2690
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
2929
2691
|
}
|
|
2930
|
-
return [2,
|
|
2692
|
+
return [2, contents];
|
|
2931
2693
|
}
|
|
2932
2694
|
});
|
|
2933
2695
|
}); };
|
|
2934
2696
|
var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2935
|
-
var parsedOutput, _a,
|
|
2697
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2936
2698
|
var _c;
|
|
2937
2699
|
return __generator(this, function (_d) {
|
|
2938
2700
|
switch (_d.label) {
|
|
@@ -2977,14 +2739,14 @@ var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (ou
|
|
|
2977
2739
|
case 15: throw _d.sent();
|
|
2978
2740
|
case 16:
|
|
2979
2741
|
parsedBody = parsedOutput.body;
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
$metadata: $metadata,
|
|
2742
|
+
throwDefaultError({
|
|
2743
|
+
output: output,
|
|
2744
|
+
parsedBody: parsedBody,
|
|
2745
|
+
exceptionCtor: __BaseException,
|
|
2746
|
+
errorCode: errorCode,
|
|
2986
2747
|
});
|
|
2987
|
-
|
|
2748
|
+
_d.label = 17;
|
|
2749
|
+
case 17: return [2];
|
|
2988
2750
|
}
|
|
2989
2751
|
});
|
|
2990
2752
|
}); };
|
|
@@ -2996,24 +2758,23 @@ export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCo
|
|
|
2996
2758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2997
2759
|
return [2, deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError(output, context)];
|
|
2998
2760
|
}
|
|
2999
|
-
contents = {
|
|
2761
|
+
contents = map({
|
|
3000
2762
|
$metadata: deserializeMetadata(output),
|
|
3001
|
-
|
|
3002
|
-
};
|
|
2763
|
+
});
|
|
3003
2764
|
_a = __expectNonNull;
|
|
3004
2765
|
_b = __expectObject;
|
|
3005
2766
|
return [4, parseBody(output.body, context)];
|
|
3006
2767
|
case 1:
|
|
3007
2768
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3008
|
-
if (data.ChannelMembership
|
|
2769
|
+
if (data.ChannelMembership != null) {
|
|
3009
2770
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
3010
2771
|
}
|
|
3011
|
-
return [2,
|
|
2772
|
+
return [2, contents];
|
|
3012
2773
|
}
|
|
3013
2774
|
});
|
|
3014
2775
|
}); };
|
|
3015
2776
|
var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3016
|
-
var parsedOutput, _a,
|
|
2777
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3017
2778
|
var _c;
|
|
3018
2779
|
return __generator(this, function (_d) {
|
|
3019
2780
|
switch (_d.label) {
|
|
@@ -3054,14 +2815,14 @@ var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandEr
|
|
|
3054
2815
|
case 13: throw _d.sent();
|
|
3055
2816
|
case 14:
|
|
3056
2817
|
parsedBody = parsedOutput.body;
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
$metadata: $metadata,
|
|
2818
|
+
throwDefaultError({
|
|
2819
|
+
output: output,
|
|
2820
|
+
parsedBody: parsedBody,
|
|
2821
|
+
exceptionCtor: __BaseException,
|
|
2822
|
+
errorCode: errorCode,
|
|
3063
2823
|
});
|
|
3064
|
-
|
|
2824
|
+
_d.label = 15;
|
|
2825
|
+
case 15: return [2];
|
|
3065
2826
|
}
|
|
3066
2827
|
});
|
|
3067
2828
|
}); };
|
|
@@ -3073,24 +2834,23 @@ export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComm
|
|
|
3073
2834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3074
2835
|
return [2, deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError(output, context)];
|
|
3075
2836
|
}
|
|
3076
|
-
contents = {
|
|
2837
|
+
contents = map({
|
|
3077
2838
|
$metadata: deserializeMetadata(output),
|
|
3078
|
-
|
|
3079
|
-
};
|
|
2839
|
+
});
|
|
3080
2840
|
_a = __expectNonNull;
|
|
3081
2841
|
_b = __expectObject;
|
|
3082
2842
|
return [4, parseBody(output.body, context)];
|
|
3083
2843
|
case 1:
|
|
3084
2844
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3085
|
-
if (data.Channel
|
|
2845
|
+
if (data.Channel != null) {
|
|
3086
2846
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
3087
2847
|
}
|
|
3088
|
-
return [2,
|
|
2848
|
+
return [2, contents];
|
|
3089
2849
|
}
|
|
3090
2850
|
});
|
|
3091
2851
|
}); };
|
|
3092
2852
|
var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3093
|
-
var parsedOutput, _a,
|
|
2853
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3094
2854
|
var _c;
|
|
3095
2855
|
return __generator(this, function (_d) {
|
|
3096
2856
|
switch (_d.label) {
|
|
@@ -3131,14 +2891,14 @@ var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandErro
|
|
|
3131
2891
|
case 13: throw _d.sent();
|
|
3132
2892
|
case 14:
|
|
3133
2893
|
parsedBody = parsedOutput.body;
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
$metadata: $metadata,
|
|
2894
|
+
throwDefaultError({
|
|
2895
|
+
output: output,
|
|
2896
|
+
parsedBody: parsedBody,
|
|
2897
|
+
exceptionCtor: __BaseException,
|
|
2898
|
+
errorCode: errorCode,
|
|
3140
2899
|
});
|
|
3141
|
-
|
|
2900
|
+
_d.label = 15;
|
|
2901
|
+
case 15: return [2];
|
|
3142
2902
|
}
|
|
3143
2903
|
});
|
|
3144
2904
|
}); };
|
|
@@ -3150,24 +2910,23 @@ export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (o
|
|
|
3150
2910
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3151
2911
|
return [2, deserializeAws_restJson1DescribeChannelModeratorCommandError(output, context)];
|
|
3152
2912
|
}
|
|
3153
|
-
contents = {
|
|
2913
|
+
contents = map({
|
|
3154
2914
|
$metadata: deserializeMetadata(output),
|
|
3155
|
-
|
|
3156
|
-
};
|
|
2915
|
+
});
|
|
3157
2916
|
_a = __expectNonNull;
|
|
3158
2917
|
_b = __expectObject;
|
|
3159
2918
|
return [4, parseBody(output.body, context)];
|
|
3160
2919
|
case 1:
|
|
3161
2920
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3162
|
-
if (data.ChannelModerator
|
|
2921
|
+
if (data.ChannelModerator != null) {
|
|
3163
2922
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
3164
2923
|
}
|
|
3165
|
-
return [2,
|
|
2924
|
+
return [2, contents];
|
|
3166
2925
|
}
|
|
3167
2926
|
});
|
|
3168
2927
|
}); };
|
|
3169
2928
|
var deserializeAws_restJson1DescribeChannelModeratorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3170
|
-
var parsedOutput, _a,
|
|
2929
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3171
2930
|
var _c;
|
|
3172
2931
|
return __generator(this, function (_d) {
|
|
3173
2932
|
switch (_d.label) {
|
|
@@ -3212,14 +2971,14 @@ var deserializeAws_restJson1DescribeChannelModeratorCommandError = function (out
|
|
|
3212
2971
|
case 15: throw _d.sent();
|
|
3213
2972
|
case 16:
|
|
3214
2973
|
parsedBody = parsedOutput.body;
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
$metadata: $metadata,
|
|
2974
|
+
throwDefaultError({
|
|
2975
|
+
output: output,
|
|
2976
|
+
parsedBody: parsedBody,
|
|
2977
|
+
exceptionCtor: __BaseException,
|
|
2978
|
+
errorCode: errorCode,
|
|
3221
2979
|
});
|
|
3222
|
-
|
|
2980
|
+
_d.label = 17;
|
|
2981
|
+
case 17: return [2];
|
|
3223
2982
|
}
|
|
3224
2983
|
});
|
|
3225
2984
|
}); };
|
|
@@ -3231,18 +2990,18 @@ export var deserializeAws_restJson1DisassociateChannelFlowCommand = function (ou
|
|
|
3231
2990
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3232
2991
|
return [2, deserializeAws_restJson1DisassociateChannelFlowCommandError(output, context)];
|
|
3233
2992
|
}
|
|
3234
|
-
contents = {
|
|
2993
|
+
contents = map({
|
|
3235
2994
|
$metadata: deserializeMetadata(output),
|
|
3236
|
-
};
|
|
2995
|
+
});
|
|
3237
2996
|
return [4, collectBody(output.body, context)];
|
|
3238
2997
|
case 1:
|
|
3239
2998
|
_a.sent();
|
|
3240
|
-
return [2,
|
|
2999
|
+
return [2, contents];
|
|
3241
3000
|
}
|
|
3242
3001
|
});
|
|
3243
3002
|
}); };
|
|
3244
3003
|
var deserializeAws_restJson1DisassociateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3245
|
-
var parsedOutput, _a,
|
|
3004
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3246
3005
|
var _c;
|
|
3247
3006
|
return __generator(this, function (_d) {
|
|
3248
3007
|
switch (_d.label) {
|
|
@@ -3291,14 +3050,14 @@ var deserializeAws_restJson1DisassociateChannelFlowCommandError = function (outp
|
|
|
3291
3050
|
case 17: throw _d.sent();
|
|
3292
3051
|
case 18:
|
|
3293
3052
|
parsedBody = parsedOutput.body;
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
$metadata: $metadata,
|
|
3053
|
+
throwDefaultError({
|
|
3054
|
+
output: output,
|
|
3055
|
+
parsedBody: parsedBody,
|
|
3056
|
+
exceptionCtor: __BaseException,
|
|
3057
|
+
errorCode: errorCode,
|
|
3300
3058
|
});
|
|
3301
|
-
|
|
3059
|
+
_d.label = 19;
|
|
3060
|
+
case 19: return [2];
|
|
3302
3061
|
}
|
|
3303
3062
|
});
|
|
3304
3063
|
}); };
|
|
@@ -3310,32 +3069,29 @@ export var deserializeAws_restJson1GetChannelMembershipPreferencesCommand = func
|
|
|
3310
3069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3311
3070
|
return [2, deserializeAws_restJson1GetChannelMembershipPreferencesCommandError(output, context)];
|
|
3312
3071
|
}
|
|
3313
|
-
contents = {
|
|
3072
|
+
contents = map({
|
|
3314
3073
|
$metadata: deserializeMetadata(output),
|
|
3315
|
-
|
|
3316
|
-
Member: undefined,
|
|
3317
|
-
Preferences: undefined,
|
|
3318
|
-
};
|
|
3074
|
+
});
|
|
3319
3075
|
_a = __expectNonNull;
|
|
3320
3076
|
_b = __expectObject;
|
|
3321
3077
|
return [4, parseBody(output.body, context)];
|
|
3322
3078
|
case 1:
|
|
3323
3079
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3324
|
-
if (data.ChannelArn
|
|
3080
|
+
if (data.ChannelArn != null) {
|
|
3325
3081
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3326
3082
|
}
|
|
3327
|
-
if (data.Member
|
|
3083
|
+
if (data.Member != null) {
|
|
3328
3084
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
3329
3085
|
}
|
|
3330
|
-
if (data.Preferences
|
|
3086
|
+
if (data.Preferences != null) {
|
|
3331
3087
|
contents.Preferences = deserializeAws_restJson1ChannelMembershipPreferences(data.Preferences, context);
|
|
3332
3088
|
}
|
|
3333
|
-
return [2,
|
|
3089
|
+
return [2, contents];
|
|
3334
3090
|
}
|
|
3335
3091
|
});
|
|
3336
3092
|
}); };
|
|
3337
3093
|
var deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3338
|
-
var parsedOutput, _a,
|
|
3094
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3339
3095
|
var _c;
|
|
3340
3096
|
return __generator(this, function (_d) {
|
|
3341
3097
|
switch (_d.label) {
|
|
@@ -3376,14 +3132,14 @@ var deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = functi
|
|
|
3376
3132
|
case 13: throw _d.sent();
|
|
3377
3133
|
case 14:
|
|
3378
3134
|
parsedBody = parsedOutput.body;
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
$metadata: $metadata,
|
|
3135
|
+
throwDefaultError({
|
|
3136
|
+
output: output,
|
|
3137
|
+
parsedBody: parsedBody,
|
|
3138
|
+
exceptionCtor: __BaseException,
|
|
3139
|
+
errorCode: errorCode,
|
|
3385
3140
|
});
|
|
3386
|
-
|
|
3141
|
+
_d.label = 15;
|
|
3142
|
+
case 15: return [2];
|
|
3387
3143
|
}
|
|
3388
3144
|
});
|
|
3389
3145
|
}); };
|
|
@@ -3395,24 +3151,23 @@ export var deserializeAws_restJson1GetChannelMessageCommand = function (output,
|
|
|
3395
3151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3396
3152
|
return [2, deserializeAws_restJson1GetChannelMessageCommandError(output, context)];
|
|
3397
3153
|
}
|
|
3398
|
-
contents = {
|
|
3154
|
+
contents = map({
|
|
3399
3155
|
$metadata: deserializeMetadata(output),
|
|
3400
|
-
|
|
3401
|
-
};
|
|
3156
|
+
});
|
|
3402
3157
|
_a = __expectNonNull;
|
|
3403
3158
|
_b = __expectObject;
|
|
3404
3159
|
return [4, parseBody(output.body, context)];
|
|
3405
3160
|
case 1:
|
|
3406
3161
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3407
|
-
if (data.ChannelMessage
|
|
3162
|
+
if (data.ChannelMessage != null) {
|
|
3408
3163
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
3409
3164
|
}
|
|
3410
|
-
return [2,
|
|
3165
|
+
return [2, contents];
|
|
3411
3166
|
}
|
|
3412
3167
|
});
|
|
3413
3168
|
}); };
|
|
3414
3169
|
var deserializeAws_restJson1GetChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3415
|
-
var parsedOutput, _a,
|
|
3170
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3416
3171
|
var _c;
|
|
3417
3172
|
return __generator(this, function (_d) {
|
|
3418
3173
|
switch (_d.label) {
|
|
@@ -3457,14 +3212,14 @@ var deserializeAws_restJson1GetChannelMessageCommandError = function (output, co
|
|
|
3457
3212
|
case 15: throw _d.sent();
|
|
3458
3213
|
case 16:
|
|
3459
3214
|
parsedBody = parsedOutput.body;
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
$metadata: $metadata,
|
|
3215
|
+
throwDefaultError({
|
|
3216
|
+
output: output,
|
|
3217
|
+
parsedBody: parsedBody,
|
|
3218
|
+
exceptionCtor: __BaseException,
|
|
3219
|
+
errorCode: errorCode,
|
|
3466
3220
|
});
|
|
3467
|
-
|
|
3221
|
+
_d.label = 17;
|
|
3222
|
+
case 17: return [2];
|
|
3468
3223
|
}
|
|
3469
3224
|
});
|
|
3470
3225
|
}); };
|
|
@@ -3476,24 +3231,23 @@ export var deserializeAws_restJson1GetChannelMessageStatusCommand = function (ou
|
|
|
3476
3231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3477
3232
|
return [2, deserializeAws_restJson1GetChannelMessageStatusCommandError(output, context)];
|
|
3478
3233
|
}
|
|
3479
|
-
contents = {
|
|
3234
|
+
contents = map({
|
|
3480
3235
|
$metadata: deserializeMetadata(output),
|
|
3481
|
-
|
|
3482
|
-
};
|
|
3236
|
+
});
|
|
3483
3237
|
_a = __expectNonNull;
|
|
3484
3238
|
_b = __expectObject;
|
|
3485
3239
|
return [4, parseBody(output.body, context)];
|
|
3486
3240
|
case 1:
|
|
3487
3241
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3488
|
-
if (data.Status
|
|
3242
|
+
if (data.Status != null) {
|
|
3489
3243
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
3490
3244
|
}
|
|
3491
|
-
return [2,
|
|
3245
|
+
return [2, contents];
|
|
3492
3246
|
}
|
|
3493
3247
|
});
|
|
3494
3248
|
}); };
|
|
3495
3249
|
var deserializeAws_restJson1GetChannelMessageStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3496
|
-
var parsedOutput, _a,
|
|
3250
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3497
3251
|
var _c;
|
|
3498
3252
|
return __generator(this, function (_d) {
|
|
3499
3253
|
switch (_d.label) {
|
|
@@ -3534,14 +3288,14 @@ var deserializeAws_restJson1GetChannelMessageStatusCommandError = function (outp
|
|
|
3534
3288
|
case 13: throw _d.sent();
|
|
3535
3289
|
case 14:
|
|
3536
3290
|
parsedBody = parsedOutput.body;
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
$metadata: $metadata,
|
|
3291
|
+
throwDefaultError({
|
|
3292
|
+
output: output,
|
|
3293
|
+
parsedBody: parsedBody,
|
|
3294
|
+
exceptionCtor: __BaseException,
|
|
3295
|
+
errorCode: errorCode,
|
|
3543
3296
|
});
|
|
3544
|
-
|
|
3297
|
+
_d.label = 15;
|
|
3298
|
+
case 15: return [2];
|
|
3545
3299
|
}
|
|
3546
3300
|
});
|
|
3547
3301
|
}); };
|
|
@@ -3553,24 +3307,23 @@ export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function
|
|
|
3553
3307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3554
3308
|
return [2, deserializeAws_restJson1GetMessagingSessionEndpointCommandError(output, context)];
|
|
3555
3309
|
}
|
|
3556
|
-
contents = {
|
|
3310
|
+
contents = map({
|
|
3557
3311
|
$metadata: deserializeMetadata(output),
|
|
3558
|
-
|
|
3559
|
-
};
|
|
3312
|
+
});
|
|
3560
3313
|
_a = __expectNonNull;
|
|
3561
3314
|
_b = __expectObject;
|
|
3562
3315
|
return [4, parseBody(output.body, context)];
|
|
3563
3316
|
case 1:
|
|
3564
3317
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3565
|
-
if (data.Endpoint
|
|
3318
|
+
if (data.Endpoint != null) {
|
|
3566
3319
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
3567
3320
|
}
|
|
3568
|
-
return [2,
|
|
3321
|
+
return [2, contents];
|
|
3569
3322
|
}
|
|
3570
3323
|
});
|
|
3571
3324
|
}); };
|
|
3572
3325
|
var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3573
|
-
var parsedOutput, _a,
|
|
3326
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3574
3327
|
var _c;
|
|
3575
3328
|
return __generator(this, function (_d) {
|
|
3576
3329
|
switch (_d.label) {
|
|
@@ -3607,14 +3360,14 @@ var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (
|
|
|
3607
3360
|
case 11: throw _d.sent();
|
|
3608
3361
|
case 12:
|
|
3609
3362
|
parsedBody = parsedOutput.body;
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
$metadata: $metadata,
|
|
3363
|
+
throwDefaultError({
|
|
3364
|
+
output: output,
|
|
3365
|
+
parsedBody: parsedBody,
|
|
3366
|
+
exceptionCtor: __BaseException,
|
|
3367
|
+
errorCode: errorCode,
|
|
3616
3368
|
});
|
|
3617
|
-
|
|
3369
|
+
_d.label = 13;
|
|
3370
|
+
case 13: return [2];
|
|
3618
3371
|
}
|
|
3619
3372
|
});
|
|
3620
3373
|
}); };
|
|
@@ -3626,32 +3379,29 @@ export var deserializeAws_restJson1ListChannelBansCommand = function (output, co
|
|
|
3626
3379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3627
3380
|
return [2, deserializeAws_restJson1ListChannelBansCommandError(output, context)];
|
|
3628
3381
|
}
|
|
3629
|
-
contents = {
|
|
3382
|
+
contents = map({
|
|
3630
3383
|
$metadata: deserializeMetadata(output),
|
|
3631
|
-
|
|
3632
|
-
ChannelBans: undefined,
|
|
3633
|
-
NextToken: undefined,
|
|
3634
|
-
};
|
|
3384
|
+
});
|
|
3635
3385
|
_a = __expectNonNull;
|
|
3636
3386
|
_b = __expectObject;
|
|
3637
3387
|
return [4, parseBody(output.body, context)];
|
|
3638
3388
|
case 1:
|
|
3639
3389
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3640
|
-
if (data.ChannelArn
|
|
3390
|
+
if (data.ChannelArn != null) {
|
|
3641
3391
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3642
3392
|
}
|
|
3643
|
-
if (data.ChannelBans
|
|
3393
|
+
if (data.ChannelBans != null) {
|
|
3644
3394
|
contents.ChannelBans = deserializeAws_restJson1ChannelBanSummaryList(data.ChannelBans, context);
|
|
3645
3395
|
}
|
|
3646
|
-
if (data.NextToken
|
|
3396
|
+
if (data.NextToken != null) {
|
|
3647
3397
|
contents.NextToken = __expectString(data.NextToken);
|
|
3648
3398
|
}
|
|
3649
|
-
return [2,
|
|
3399
|
+
return [2, contents];
|
|
3650
3400
|
}
|
|
3651
3401
|
});
|
|
3652
3402
|
}); };
|
|
3653
3403
|
var deserializeAws_restJson1ListChannelBansCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3654
|
-
var parsedOutput, _a,
|
|
3404
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3655
3405
|
var _c;
|
|
3656
3406
|
return __generator(this, function (_d) {
|
|
3657
3407
|
switch (_d.label) {
|
|
@@ -3692,14 +3442,14 @@ var deserializeAws_restJson1ListChannelBansCommandError = function (output, cont
|
|
|
3692
3442
|
case 13: throw _d.sent();
|
|
3693
3443
|
case 14:
|
|
3694
3444
|
parsedBody = parsedOutput.body;
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
$metadata: $metadata,
|
|
3445
|
+
throwDefaultError({
|
|
3446
|
+
output: output,
|
|
3447
|
+
parsedBody: parsedBody,
|
|
3448
|
+
exceptionCtor: __BaseException,
|
|
3449
|
+
errorCode: errorCode,
|
|
3701
3450
|
});
|
|
3702
|
-
|
|
3451
|
+
_d.label = 15;
|
|
3452
|
+
case 15: return [2];
|
|
3703
3453
|
}
|
|
3704
3454
|
});
|
|
3705
3455
|
}); };
|
|
@@ -3711,28 +3461,26 @@ export var deserializeAws_restJson1ListChannelFlowsCommand = function (output, c
|
|
|
3711
3461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3712
3462
|
return [2, deserializeAws_restJson1ListChannelFlowsCommandError(output, context)];
|
|
3713
3463
|
}
|
|
3714
|
-
contents = {
|
|
3464
|
+
contents = map({
|
|
3715
3465
|
$metadata: deserializeMetadata(output),
|
|
3716
|
-
|
|
3717
|
-
NextToken: undefined,
|
|
3718
|
-
};
|
|
3466
|
+
});
|
|
3719
3467
|
_a = __expectNonNull;
|
|
3720
3468
|
_b = __expectObject;
|
|
3721
3469
|
return [4, parseBody(output.body, context)];
|
|
3722
3470
|
case 1:
|
|
3723
3471
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3724
|
-
if (data.ChannelFlows
|
|
3472
|
+
if (data.ChannelFlows != null) {
|
|
3725
3473
|
contents.ChannelFlows = deserializeAws_restJson1ChannelFlowSummaryList(data.ChannelFlows, context);
|
|
3726
3474
|
}
|
|
3727
|
-
if (data.NextToken
|
|
3475
|
+
if (data.NextToken != null) {
|
|
3728
3476
|
contents.NextToken = __expectString(data.NextToken);
|
|
3729
3477
|
}
|
|
3730
|
-
return [2,
|
|
3478
|
+
return [2, contents];
|
|
3731
3479
|
}
|
|
3732
3480
|
});
|
|
3733
3481
|
}); };
|
|
3734
3482
|
var deserializeAws_restJson1ListChannelFlowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3735
|
-
var parsedOutput, _a,
|
|
3483
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3736
3484
|
var _c;
|
|
3737
3485
|
return __generator(this, function (_d) {
|
|
3738
3486
|
switch (_d.label) {
|
|
@@ -3773,14 +3521,14 @@ var deserializeAws_restJson1ListChannelFlowsCommandError = function (output, con
|
|
|
3773
3521
|
case 13: throw _d.sent();
|
|
3774
3522
|
case 14:
|
|
3775
3523
|
parsedBody = parsedOutput.body;
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
$metadata: $metadata,
|
|
3524
|
+
throwDefaultError({
|
|
3525
|
+
output: output,
|
|
3526
|
+
parsedBody: parsedBody,
|
|
3527
|
+
exceptionCtor: __BaseException,
|
|
3528
|
+
errorCode: errorCode,
|
|
3782
3529
|
});
|
|
3783
|
-
|
|
3530
|
+
_d.label = 15;
|
|
3531
|
+
case 15: return [2];
|
|
3784
3532
|
}
|
|
3785
3533
|
});
|
|
3786
3534
|
}); };
|
|
@@ -3792,32 +3540,29 @@ export var deserializeAws_restJson1ListChannelMembershipsCommand = function (out
|
|
|
3792
3540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3793
3541
|
return [2, deserializeAws_restJson1ListChannelMembershipsCommandError(output, context)];
|
|
3794
3542
|
}
|
|
3795
|
-
contents = {
|
|
3543
|
+
contents = map({
|
|
3796
3544
|
$metadata: deserializeMetadata(output),
|
|
3797
|
-
|
|
3798
|
-
ChannelMemberships: undefined,
|
|
3799
|
-
NextToken: undefined,
|
|
3800
|
-
};
|
|
3545
|
+
});
|
|
3801
3546
|
_a = __expectNonNull;
|
|
3802
3547
|
_b = __expectObject;
|
|
3803
3548
|
return [4, parseBody(output.body, context)];
|
|
3804
3549
|
case 1:
|
|
3805
3550
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3806
|
-
if (data.ChannelArn
|
|
3551
|
+
if (data.ChannelArn != null) {
|
|
3807
3552
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3808
3553
|
}
|
|
3809
|
-
if (data.ChannelMemberships
|
|
3554
|
+
if (data.ChannelMemberships != null) {
|
|
3810
3555
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipSummaryList(data.ChannelMemberships, context);
|
|
3811
3556
|
}
|
|
3812
|
-
if (data.NextToken
|
|
3557
|
+
if (data.NextToken != null) {
|
|
3813
3558
|
contents.NextToken = __expectString(data.NextToken);
|
|
3814
3559
|
}
|
|
3815
|
-
return [2,
|
|
3560
|
+
return [2, contents];
|
|
3816
3561
|
}
|
|
3817
3562
|
});
|
|
3818
3563
|
}); };
|
|
3819
3564
|
var deserializeAws_restJson1ListChannelMembershipsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3820
|
-
var parsedOutput, _a,
|
|
3565
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3821
3566
|
var _c;
|
|
3822
3567
|
return __generator(this, function (_d) {
|
|
3823
3568
|
switch (_d.label) {
|
|
@@ -3858,14 +3603,14 @@ var deserializeAws_restJson1ListChannelMembershipsCommandError = function (outpu
|
|
|
3858
3603
|
case 13: throw _d.sent();
|
|
3859
3604
|
case 14:
|
|
3860
3605
|
parsedBody = parsedOutput.body;
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
$metadata: $metadata,
|
|
3606
|
+
throwDefaultError({
|
|
3607
|
+
output: output,
|
|
3608
|
+
parsedBody: parsedBody,
|
|
3609
|
+
exceptionCtor: __BaseException,
|
|
3610
|
+
errorCode: errorCode,
|
|
3867
3611
|
});
|
|
3868
|
-
|
|
3612
|
+
_d.label = 15;
|
|
3613
|
+
case 15: return [2];
|
|
3869
3614
|
}
|
|
3870
3615
|
});
|
|
3871
3616
|
}); };
|
|
@@ -3877,28 +3622,26 @@ export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
|
|
|
3877
3622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3878
3623
|
return [2, deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError(output, context)];
|
|
3879
3624
|
}
|
|
3880
|
-
contents = {
|
|
3625
|
+
contents = map({
|
|
3881
3626
|
$metadata: deserializeMetadata(output),
|
|
3882
|
-
|
|
3883
|
-
NextToken: undefined,
|
|
3884
|
-
};
|
|
3627
|
+
});
|
|
3885
3628
|
_a = __expectNonNull;
|
|
3886
3629
|
_b = __expectObject;
|
|
3887
3630
|
return [4, parseBody(output.body, context)];
|
|
3888
3631
|
case 1:
|
|
3889
3632
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3890
|
-
if (data.ChannelMemberships
|
|
3633
|
+
if (data.ChannelMemberships != null) {
|
|
3891
3634
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
|
|
3892
3635
|
}
|
|
3893
|
-
if (data.NextToken
|
|
3636
|
+
if (data.NextToken != null) {
|
|
3894
3637
|
contents.NextToken = __expectString(data.NextToken);
|
|
3895
3638
|
}
|
|
3896
|
-
return [2,
|
|
3639
|
+
return [2, contents];
|
|
3897
3640
|
}
|
|
3898
3641
|
});
|
|
3899
3642
|
}); };
|
|
3900
3643
|
var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3901
|
-
var parsedOutput, _a,
|
|
3644
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3902
3645
|
var _c;
|
|
3903
3646
|
return __generator(this, function (_d) {
|
|
3904
3647
|
switch (_d.label) {
|
|
@@ -3939,14 +3682,14 @@ var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError
|
|
|
3939
3682
|
case 13: throw _d.sent();
|
|
3940
3683
|
case 14:
|
|
3941
3684
|
parsedBody = parsedOutput.body;
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
$metadata: $metadata,
|
|
3685
|
+
throwDefaultError({
|
|
3686
|
+
output: output,
|
|
3687
|
+
parsedBody: parsedBody,
|
|
3688
|
+
exceptionCtor: __BaseException,
|
|
3689
|
+
errorCode: errorCode,
|
|
3948
3690
|
});
|
|
3949
|
-
|
|
3691
|
+
_d.label = 15;
|
|
3692
|
+
case 15: return [2];
|
|
3950
3693
|
}
|
|
3951
3694
|
});
|
|
3952
3695
|
}); };
|
|
@@ -3958,32 +3701,32 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
|
|
|
3958
3701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3959
3702
|
return [2, deserializeAws_restJson1ListChannelMessagesCommandError(output, context)];
|
|
3960
3703
|
}
|
|
3961
|
-
contents = {
|
|
3704
|
+
contents = map({
|
|
3962
3705
|
$metadata: deserializeMetadata(output),
|
|
3963
|
-
|
|
3964
|
-
ChannelMessages: undefined,
|
|
3965
|
-
NextToken: undefined,
|
|
3966
|
-
};
|
|
3706
|
+
});
|
|
3967
3707
|
_a = __expectNonNull;
|
|
3968
3708
|
_b = __expectObject;
|
|
3969
3709
|
return [4, parseBody(output.body, context)];
|
|
3970
3710
|
case 1:
|
|
3971
3711
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3972
|
-
if (data.ChannelArn
|
|
3712
|
+
if (data.ChannelArn != null) {
|
|
3973
3713
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3974
3714
|
}
|
|
3975
|
-
if (data.ChannelMessages
|
|
3715
|
+
if (data.ChannelMessages != null) {
|
|
3976
3716
|
contents.ChannelMessages = deserializeAws_restJson1ChannelMessageSummaryList(data.ChannelMessages, context);
|
|
3977
3717
|
}
|
|
3978
|
-
if (data.NextToken
|
|
3718
|
+
if (data.NextToken != null) {
|
|
3979
3719
|
contents.NextToken = __expectString(data.NextToken);
|
|
3980
3720
|
}
|
|
3981
|
-
|
|
3721
|
+
if (data.SubChannelId != null) {
|
|
3722
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
3723
|
+
}
|
|
3724
|
+
return [2, contents];
|
|
3982
3725
|
}
|
|
3983
3726
|
});
|
|
3984
3727
|
}); };
|
|
3985
3728
|
var deserializeAws_restJson1ListChannelMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3986
|
-
var parsedOutput, _a,
|
|
3729
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3987
3730
|
var _c;
|
|
3988
3731
|
return __generator(this, function (_d) {
|
|
3989
3732
|
switch (_d.label) {
|
|
@@ -4024,14 +3767,14 @@ var deserializeAws_restJson1ListChannelMessagesCommandError = function (output,
|
|
|
4024
3767
|
case 13: throw _d.sent();
|
|
4025
3768
|
case 14:
|
|
4026
3769
|
parsedBody = parsedOutput.body;
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
$metadata: $metadata,
|
|
3770
|
+
throwDefaultError({
|
|
3771
|
+
output: output,
|
|
3772
|
+
parsedBody: parsedBody,
|
|
3773
|
+
exceptionCtor: __BaseException,
|
|
3774
|
+
errorCode: errorCode,
|
|
4033
3775
|
});
|
|
4034
|
-
|
|
3776
|
+
_d.label = 15;
|
|
3777
|
+
case 15: return [2];
|
|
4035
3778
|
}
|
|
4036
3779
|
});
|
|
4037
3780
|
}); };
|
|
@@ -4043,32 +3786,29 @@ export var deserializeAws_restJson1ListChannelModeratorsCommand = function (outp
|
|
|
4043
3786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4044
3787
|
return [2, deserializeAws_restJson1ListChannelModeratorsCommandError(output, context)];
|
|
4045
3788
|
}
|
|
4046
|
-
contents = {
|
|
3789
|
+
contents = map({
|
|
4047
3790
|
$metadata: deserializeMetadata(output),
|
|
4048
|
-
|
|
4049
|
-
ChannelModerators: undefined,
|
|
4050
|
-
NextToken: undefined,
|
|
4051
|
-
};
|
|
3791
|
+
});
|
|
4052
3792
|
_a = __expectNonNull;
|
|
4053
3793
|
_b = __expectObject;
|
|
4054
3794
|
return [4, parseBody(output.body, context)];
|
|
4055
3795
|
case 1:
|
|
4056
3796
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4057
|
-
if (data.ChannelArn
|
|
3797
|
+
if (data.ChannelArn != null) {
|
|
4058
3798
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4059
3799
|
}
|
|
4060
|
-
if (data.ChannelModerators
|
|
3800
|
+
if (data.ChannelModerators != null) {
|
|
4061
3801
|
contents.ChannelModerators = deserializeAws_restJson1ChannelModeratorSummaryList(data.ChannelModerators, context);
|
|
4062
3802
|
}
|
|
4063
|
-
if (data.NextToken
|
|
3803
|
+
if (data.NextToken != null) {
|
|
4064
3804
|
contents.NextToken = __expectString(data.NextToken);
|
|
4065
3805
|
}
|
|
4066
|
-
return [2,
|
|
3806
|
+
return [2, contents];
|
|
4067
3807
|
}
|
|
4068
3808
|
});
|
|
4069
3809
|
}); };
|
|
4070
3810
|
var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4071
|
-
var parsedOutput, _a,
|
|
3811
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4072
3812
|
var _c;
|
|
4073
3813
|
return __generator(this, function (_d) {
|
|
4074
3814
|
switch (_d.label) {
|
|
@@ -4109,14 +3849,14 @@ var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output
|
|
|
4109
3849
|
case 13: throw _d.sent();
|
|
4110
3850
|
case 14:
|
|
4111
3851
|
parsedBody = parsedOutput.body;
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
$metadata: $metadata,
|
|
3852
|
+
throwDefaultError({
|
|
3853
|
+
output: output,
|
|
3854
|
+
parsedBody: parsedBody,
|
|
3855
|
+
exceptionCtor: __BaseException,
|
|
3856
|
+
errorCode: errorCode,
|
|
4118
3857
|
});
|
|
4119
|
-
|
|
3858
|
+
_d.label = 15;
|
|
3859
|
+
case 15: return [2];
|
|
4120
3860
|
}
|
|
4121
3861
|
});
|
|
4122
3862
|
}); };
|
|
@@ -4128,28 +3868,26 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
4128
3868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4129
3869
|
return [2, deserializeAws_restJson1ListChannelsCommandError(output, context)];
|
|
4130
3870
|
}
|
|
4131
|
-
contents = {
|
|
3871
|
+
contents = map({
|
|
4132
3872
|
$metadata: deserializeMetadata(output),
|
|
4133
|
-
|
|
4134
|
-
NextToken: undefined,
|
|
4135
|
-
};
|
|
3873
|
+
});
|
|
4136
3874
|
_a = __expectNonNull;
|
|
4137
3875
|
_b = __expectObject;
|
|
4138
3876
|
return [4, parseBody(output.body, context)];
|
|
4139
3877
|
case 1:
|
|
4140
3878
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4141
|
-
if (data.Channels
|
|
3879
|
+
if (data.Channels != null) {
|
|
4142
3880
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
4143
3881
|
}
|
|
4144
|
-
if (data.NextToken
|
|
3882
|
+
if (data.NextToken != null) {
|
|
4145
3883
|
contents.NextToken = __expectString(data.NextToken);
|
|
4146
3884
|
}
|
|
4147
|
-
return [2,
|
|
3885
|
+
return [2, contents];
|
|
4148
3886
|
}
|
|
4149
3887
|
});
|
|
4150
3888
|
}); };
|
|
4151
3889
|
var deserializeAws_restJson1ListChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4152
|
-
var parsedOutput, _a,
|
|
3890
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4153
3891
|
var _c;
|
|
4154
3892
|
return __generator(this, function (_d) {
|
|
4155
3893
|
switch (_d.label) {
|
|
@@ -4190,14 +3928,14 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
4190
3928
|
case 13: throw _d.sent();
|
|
4191
3929
|
case 14:
|
|
4192
3930
|
parsedBody = parsedOutput.body;
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
$metadata: $metadata,
|
|
3931
|
+
throwDefaultError({
|
|
3932
|
+
output: output,
|
|
3933
|
+
parsedBody: parsedBody,
|
|
3934
|
+
exceptionCtor: __BaseException,
|
|
3935
|
+
errorCode: errorCode,
|
|
4199
3936
|
});
|
|
4200
|
-
|
|
3937
|
+
_d.label = 15;
|
|
3938
|
+
case 15: return [2];
|
|
4201
3939
|
}
|
|
4202
3940
|
});
|
|
4203
3941
|
}); };
|
|
@@ -4209,28 +3947,26 @@ export var deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand
|
|
|
4209
3947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4210
3948
|
return [2, deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError(output, context)];
|
|
4211
3949
|
}
|
|
4212
|
-
contents = {
|
|
3950
|
+
contents = map({
|
|
4213
3951
|
$metadata: deserializeMetadata(output),
|
|
4214
|
-
|
|
4215
|
-
NextToken: undefined,
|
|
4216
|
-
};
|
|
3952
|
+
});
|
|
4217
3953
|
_a = __expectNonNull;
|
|
4218
3954
|
_b = __expectObject;
|
|
4219
3955
|
return [4, parseBody(output.body, context)];
|
|
4220
3956
|
case 1:
|
|
4221
3957
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4222
|
-
if (data.Channels
|
|
3958
|
+
if (data.Channels != null) {
|
|
4223
3959
|
contents.Channels = deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList(data.Channels, context);
|
|
4224
3960
|
}
|
|
4225
|
-
if (data.NextToken
|
|
3961
|
+
if (data.NextToken != null) {
|
|
4226
3962
|
contents.NextToken = __expectString(data.NextToken);
|
|
4227
3963
|
}
|
|
4228
|
-
return [2,
|
|
3964
|
+
return [2, contents];
|
|
4229
3965
|
}
|
|
4230
3966
|
});
|
|
4231
3967
|
}); };
|
|
4232
3968
|
var deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4233
|
-
var parsedOutput, _a,
|
|
3969
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4234
3970
|
var _c;
|
|
4235
3971
|
return __generator(this, function (_d) {
|
|
4236
3972
|
switch (_d.label) {
|
|
@@ -4271,14 +4007,14 @@ var deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError =
|
|
|
4271
4007
|
case 13: throw _d.sent();
|
|
4272
4008
|
case 14:
|
|
4273
4009
|
parsedBody = parsedOutput.body;
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
$metadata: $metadata,
|
|
4010
|
+
throwDefaultError({
|
|
4011
|
+
output: output,
|
|
4012
|
+
parsedBody: parsedBody,
|
|
4013
|
+
exceptionCtor: __BaseException,
|
|
4014
|
+
errorCode: errorCode,
|
|
4280
4015
|
});
|
|
4281
|
-
|
|
4016
|
+
_d.label = 15;
|
|
4017
|
+
case 15: return [2];
|
|
4282
4018
|
}
|
|
4283
4019
|
});
|
|
4284
4020
|
}); };
|
|
@@ -4290,28 +4026,108 @@ export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
|
|
|
4290
4026
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4291
4027
|
return [2, deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError(output, context)];
|
|
4292
4028
|
}
|
|
4293
|
-
contents = {
|
|
4029
|
+
contents = map({
|
|
4294
4030
|
$metadata: deserializeMetadata(output),
|
|
4295
|
-
|
|
4296
|
-
NextToken: undefined,
|
|
4297
|
-
};
|
|
4031
|
+
});
|
|
4298
4032
|
_a = __expectNonNull;
|
|
4299
4033
|
_b = __expectObject;
|
|
4300
4034
|
return [4, parseBody(output.body, context)];
|
|
4301
4035
|
case 1:
|
|
4302
4036
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4303
|
-
if (data.Channels
|
|
4037
|
+
if (data.Channels != null) {
|
|
4304
4038
|
contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
4305
4039
|
}
|
|
4306
|
-
if (data.NextToken
|
|
4040
|
+
if (data.NextToken != null) {
|
|
4307
4041
|
contents.NextToken = __expectString(data.NextToken);
|
|
4308
4042
|
}
|
|
4309
|
-
return [2,
|
|
4043
|
+
return [2, contents];
|
|
4310
4044
|
}
|
|
4311
4045
|
});
|
|
4312
4046
|
}); };
|
|
4313
4047
|
var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4314
|
-
var parsedOutput, _a,
|
|
4048
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4049
|
+
var _c;
|
|
4050
|
+
return __generator(this, function (_d) {
|
|
4051
|
+
switch (_d.label) {
|
|
4052
|
+
case 0:
|
|
4053
|
+
_a = [__assign({}, output)];
|
|
4054
|
+
_c = {};
|
|
4055
|
+
return [4, parseBody(output.body, context)];
|
|
4056
|
+
case 1:
|
|
4057
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4058
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4059
|
+
_b = errorCode;
|
|
4060
|
+
switch (_b) {
|
|
4061
|
+
case "BadRequestException": return [3, 2];
|
|
4062
|
+
case "com.amazonaws.chimesdkmessaging#BadRequestException": return [3, 2];
|
|
4063
|
+
case "ForbiddenException": return [3, 4];
|
|
4064
|
+
case "com.amazonaws.chimesdkmessaging#ForbiddenException": return [3, 4];
|
|
4065
|
+
case "ServiceFailureException": return [3, 6];
|
|
4066
|
+
case "com.amazonaws.chimesdkmessaging#ServiceFailureException": return [3, 6];
|
|
4067
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
4068
|
+
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException": return [3, 8];
|
|
4069
|
+
case "ThrottledClientException": return [3, 10];
|
|
4070
|
+
case "com.amazonaws.chimesdkmessaging#ThrottledClientException": return [3, 10];
|
|
4071
|
+
case "UnauthorizedClientException": return [3, 12];
|
|
4072
|
+
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException": return [3, 12];
|
|
4073
|
+
}
|
|
4074
|
+
return [3, 14];
|
|
4075
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4076
|
+
case 3: throw _d.sent();
|
|
4077
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
4078
|
+
case 5: throw _d.sent();
|
|
4079
|
+
case 6: return [4, deserializeAws_restJson1ServiceFailureExceptionResponse(parsedOutput, context)];
|
|
4080
|
+
case 7: throw _d.sent();
|
|
4081
|
+
case 8: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4082
|
+
case 9: throw _d.sent();
|
|
4083
|
+
case 10: return [4, deserializeAws_restJson1ThrottledClientExceptionResponse(parsedOutput, context)];
|
|
4084
|
+
case 11: throw _d.sent();
|
|
4085
|
+
case 12: return [4, deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context)];
|
|
4086
|
+
case 13: throw _d.sent();
|
|
4087
|
+
case 14:
|
|
4088
|
+
parsedBody = parsedOutput.body;
|
|
4089
|
+
throwDefaultError({
|
|
4090
|
+
output: output,
|
|
4091
|
+
parsedBody: parsedBody,
|
|
4092
|
+
exceptionCtor: __BaseException,
|
|
4093
|
+
errorCode: errorCode,
|
|
4094
|
+
});
|
|
4095
|
+
_d.label = 15;
|
|
4096
|
+
case 15: return [2];
|
|
4097
|
+
}
|
|
4098
|
+
});
|
|
4099
|
+
}); };
|
|
4100
|
+
export var deserializeAws_restJson1ListSubChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4101
|
+
var contents, data, _a, _b;
|
|
4102
|
+
return __generator(this, function (_c) {
|
|
4103
|
+
switch (_c.label) {
|
|
4104
|
+
case 0:
|
|
4105
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4106
|
+
return [2, deserializeAws_restJson1ListSubChannelsCommandError(output, context)];
|
|
4107
|
+
}
|
|
4108
|
+
contents = map({
|
|
4109
|
+
$metadata: deserializeMetadata(output),
|
|
4110
|
+
});
|
|
4111
|
+
_a = __expectNonNull;
|
|
4112
|
+
_b = __expectObject;
|
|
4113
|
+
return [4, parseBody(output.body, context)];
|
|
4114
|
+
case 1:
|
|
4115
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4116
|
+
if (data.ChannelArn != null) {
|
|
4117
|
+
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4118
|
+
}
|
|
4119
|
+
if (data.NextToken != null) {
|
|
4120
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
4121
|
+
}
|
|
4122
|
+
if (data.SubChannels != null) {
|
|
4123
|
+
contents.SubChannels = deserializeAws_restJson1SubChannelSummaryList(data.SubChannels, context);
|
|
4124
|
+
}
|
|
4125
|
+
return [2, contents];
|
|
4126
|
+
}
|
|
4127
|
+
});
|
|
4128
|
+
}); };
|
|
4129
|
+
var deserializeAws_restJson1ListSubChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4130
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4315
4131
|
var _c;
|
|
4316
4132
|
return __generator(this, function (_d) {
|
|
4317
4133
|
switch (_d.label) {
|
|
@@ -4352,14 +4168,14 @@ var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError =
|
|
|
4352
4168
|
case 13: throw _d.sent();
|
|
4353
4169
|
case 14:
|
|
4354
4170
|
parsedBody = parsedOutput.body;
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
$metadata: $metadata,
|
|
4171
|
+
throwDefaultError({
|
|
4172
|
+
output: output,
|
|
4173
|
+
parsedBody: parsedBody,
|
|
4174
|
+
exceptionCtor: __BaseException,
|
|
4175
|
+
errorCode: errorCode,
|
|
4361
4176
|
});
|
|
4362
|
-
|
|
4177
|
+
_d.label = 15;
|
|
4178
|
+
case 15: return [2];
|
|
4363
4179
|
}
|
|
4364
4180
|
});
|
|
4365
4181
|
}); };
|
|
@@ -4371,24 +4187,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
4371
4187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4372
4188
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
4373
4189
|
}
|
|
4374
|
-
contents = {
|
|
4190
|
+
contents = map({
|
|
4375
4191
|
$metadata: deserializeMetadata(output),
|
|
4376
|
-
|
|
4377
|
-
};
|
|
4192
|
+
});
|
|
4378
4193
|
_a = __expectNonNull;
|
|
4379
4194
|
_b = __expectObject;
|
|
4380
4195
|
return [4, parseBody(output.body, context)];
|
|
4381
4196
|
case 1:
|
|
4382
4197
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4383
|
-
if (data.Tags
|
|
4198
|
+
if (data.Tags != null) {
|
|
4384
4199
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
4385
4200
|
}
|
|
4386
|
-
return [2,
|
|
4201
|
+
return [2, contents];
|
|
4387
4202
|
}
|
|
4388
4203
|
});
|
|
4389
4204
|
}); };
|
|
4390
4205
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4391
|
-
var parsedOutput, _a,
|
|
4206
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4392
4207
|
var _c;
|
|
4393
4208
|
return __generator(this, function (_d) {
|
|
4394
4209
|
switch (_d.label) {
|
|
@@ -4429,14 +4244,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4429
4244
|
case 13: throw _d.sent();
|
|
4430
4245
|
case 14:
|
|
4431
4246
|
parsedBody = parsedOutput.body;
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
$metadata: $metadata,
|
|
4247
|
+
throwDefaultError({
|
|
4248
|
+
output: output,
|
|
4249
|
+
parsedBody: parsedBody,
|
|
4250
|
+
exceptionCtor: __BaseException,
|
|
4251
|
+
errorCode: errorCode,
|
|
4438
4252
|
});
|
|
4439
|
-
|
|
4253
|
+
_d.label = 15;
|
|
4254
|
+
case 15: return [2];
|
|
4440
4255
|
}
|
|
4441
4256
|
});
|
|
4442
4257
|
}); };
|
|
@@ -4448,32 +4263,29 @@ export var deserializeAws_restJson1PutChannelMembershipPreferencesCommand = func
|
|
|
4448
4263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4449
4264
|
return [2, deserializeAws_restJson1PutChannelMembershipPreferencesCommandError(output, context)];
|
|
4450
4265
|
}
|
|
4451
|
-
contents = {
|
|
4266
|
+
contents = map({
|
|
4452
4267
|
$metadata: deserializeMetadata(output),
|
|
4453
|
-
|
|
4454
|
-
Member: undefined,
|
|
4455
|
-
Preferences: undefined,
|
|
4456
|
-
};
|
|
4268
|
+
});
|
|
4457
4269
|
_a = __expectNonNull;
|
|
4458
4270
|
_b = __expectObject;
|
|
4459
4271
|
return [4, parseBody(output.body, context)];
|
|
4460
4272
|
case 1:
|
|
4461
4273
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4462
|
-
if (data.ChannelArn
|
|
4274
|
+
if (data.ChannelArn != null) {
|
|
4463
4275
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4464
4276
|
}
|
|
4465
|
-
if (data.Member
|
|
4277
|
+
if (data.Member != null) {
|
|
4466
4278
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
4467
4279
|
}
|
|
4468
|
-
if (data.Preferences
|
|
4280
|
+
if (data.Preferences != null) {
|
|
4469
4281
|
contents.Preferences = deserializeAws_restJson1ChannelMembershipPreferences(data.Preferences, context);
|
|
4470
4282
|
}
|
|
4471
|
-
return [2,
|
|
4283
|
+
return [2, contents];
|
|
4472
4284
|
}
|
|
4473
4285
|
});
|
|
4474
4286
|
}); };
|
|
4475
4287
|
var deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4476
|
-
var parsedOutput, _a,
|
|
4288
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4477
4289
|
var _c;
|
|
4478
4290
|
return __generator(this, function (_d) {
|
|
4479
4291
|
switch (_d.label) {
|
|
@@ -4518,14 +4330,14 @@ var deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = functi
|
|
|
4518
4330
|
case 15: throw _d.sent();
|
|
4519
4331
|
case 16:
|
|
4520
4332
|
parsedBody = parsedOutput.body;
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
$metadata: $metadata,
|
|
4333
|
+
throwDefaultError({
|
|
4334
|
+
output: output,
|
|
4335
|
+
parsedBody: parsedBody,
|
|
4336
|
+
exceptionCtor: __BaseException,
|
|
4337
|
+
errorCode: errorCode,
|
|
4527
4338
|
});
|
|
4528
|
-
|
|
4339
|
+
_d.label = 17;
|
|
4340
|
+
case 17: return [2];
|
|
4529
4341
|
}
|
|
4530
4342
|
});
|
|
4531
4343
|
}); };
|
|
@@ -4537,28 +4349,29 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
|
|
|
4537
4349
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4538
4350
|
return [2, deserializeAws_restJson1RedactChannelMessageCommandError(output, context)];
|
|
4539
4351
|
}
|
|
4540
|
-
contents = {
|
|
4352
|
+
contents = map({
|
|
4541
4353
|
$metadata: deserializeMetadata(output),
|
|
4542
|
-
|
|
4543
|
-
MessageId: undefined,
|
|
4544
|
-
};
|
|
4354
|
+
});
|
|
4545
4355
|
_a = __expectNonNull;
|
|
4546
4356
|
_b = __expectObject;
|
|
4547
4357
|
return [4, parseBody(output.body, context)];
|
|
4548
4358
|
case 1:
|
|
4549
4359
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4550
|
-
if (data.ChannelArn
|
|
4360
|
+
if (data.ChannelArn != null) {
|
|
4551
4361
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4552
4362
|
}
|
|
4553
|
-
if (data.MessageId
|
|
4363
|
+
if (data.MessageId != null) {
|
|
4554
4364
|
contents.MessageId = __expectString(data.MessageId);
|
|
4555
4365
|
}
|
|
4556
|
-
|
|
4366
|
+
if (data.SubChannelId != null) {
|
|
4367
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
4368
|
+
}
|
|
4369
|
+
return [2, contents];
|
|
4557
4370
|
}
|
|
4558
4371
|
});
|
|
4559
4372
|
}); };
|
|
4560
4373
|
var deserializeAws_restJson1RedactChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4561
|
-
var parsedOutput, _a,
|
|
4374
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4562
4375
|
var _c;
|
|
4563
4376
|
return __generator(this, function (_d) {
|
|
4564
4377
|
switch (_d.label) {
|
|
@@ -4603,14 +4416,14 @@ var deserializeAws_restJson1RedactChannelMessageCommandError = function (output,
|
|
|
4603
4416
|
case 15: throw _d.sent();
|
|
4604
4417
|
case 16:
|
|
4605
4418
|
parsedBody = parsedOutput.body;
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
$metadata: $metadata,
|
|
4419
|
+
throwDefaultError({
|
|
4420
|
+
output: output,
|
|
4421
|
+
parsedBody: parsedBody,
|
|
4422
|
+
exceptionCtor: __BaseException,
|
|
4423
|
+
errorCode: errorCode,
|
|
4612
4424
|
});
|
|
4613
|
-
|
|
4425
|
+
_d.label = 17;
|
|
4426
|
+
case 17: return [2];
|
|
4614
4427
|
}
|
|
4615
4428
|
});
|
|
4616
4429
|
}); };
|
|
@@ -4622,28 +4435,26 @@ export var deserializeAws_restJson1SearchChannelsCommand = function (output, con
|
|
|
4622
4435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4623
4436
|
return [2, deserializeAws_restJson1SearchChannelsCommandError(output, context)];
|
|
4624
4437
|
}
|
|
4625
|
-
contents = {
|
|
4438
|
+
contents = map({
|
|
4626
4439
|
$metadata: deserializeMetadata(output),
|
|
4627
|
-
|
|
4628
|
-
NextToken: undefined,
|
|
4629
|
-
};
|
|
4440
|
+
});
|
|
4630
4441
|
_a = __expectNonNull;
|
|
4631
4442
|
_b = __expectObject;
|
|
4632
4443
|
return [4, parseBody(output.body, context)];
|
|
4633
4444
|
case 1:
|
|
4634
4445
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4635
|
-
if (data.Channels
|
|
4446
|
+
if (data.Channels != null) {
|
|
4636
4447
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
4637
4448
|
}
|
|
4638
|
-
if (data.NextToken
|
|
4449
|
+
if (data.NextToken != null) {
|
|
4639
4450
|
contents.NextToken = __expectString(data.NextToken);
|
|
4640
4451
|
}
|
|
4641
|
-
return [2,
|
|
4452
|
+
return [2, contents];
|
|
4642
4453
|
}
|
|
4643
4454
|
});
|
|
4644
4455
|
}); };
|
|
4645
4456
|
var deserializeAws_restJson1SearchChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4646
|
-
var parsedOutput, _a,
|
|
4457
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4647
4458
|
var _c;
|
|
4648
4459
|
return __generator(this, function (_d) {
|
|
4649
4460
|
switch (_d.label) {
|
|
@@ -4684,14 +4495,14 @@ var deserializeAws_restJson1SearchChannelsCommandError = function (output, conte
|
|
|
4684
4495
|
case 13: throw _d.sent();
|
|
4685
4496
|
case 14:
|
|
4686
4497
|
parsedBody = parsedOutput.body;
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
$metadata: $metadata,
|
|
4498
|
+
throwDefaultError({
|
|
4499
|
+
output: output,
|
|
4500
|
+
parsedBody: parsedBody,
|
|
4501
|
+
exceptionCtor: __BaseException,
|
|
4502
|
+
errorCode: errorCode,
|
|
4693
4503
|
});
|
|
4694
|
-
|
|
4504
|
+
_d.label = 15;
|
|
4505
|
+
case 15: return [2];
|
|
4695
4506
|
}
|
|
4696
4507
|
});
|
|
4697
4508
|
}); };
|
|
@@ -4703,32 +4514,32 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
|
|
|
4703
4514
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4704
4515
|
return [2, deserializeAws_restJson1SendChannelMessageCommandError(output, context)];
|
|
4705
4516
|
}
|
|
4706
|
-
contents = {
|
|
4517
|
+
contents = map({
|
|
4707
4518
|
$metadata: deserializeMetadata(output),
|
|
4708
|
-
|
|
4709
|
-
MessageId: undefined,
|
|
4710
|
-
Status: undefined,
|
|
4711
|
-
};
|
|
4519
|
+
});
|
|
4712
4520
|
_a = __expectNonNull;
|
|
4713
4521
|
_b = __expectObject;
|
|
4714
4522
|
return [4, parseBody(output.body, context)];
|
|
4715
4523
|
case 1:
|
|
4716
4524
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4717
|
-
if (data.ChannelArn
|
|
4525
|
+
if (data.ChannelArn != null) {
|
|
4718
4526
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4719
4527
|
}
|
|
4720
|
-
if (data.MessageId
|
|
4528
|
+
if (data.MessageId != null) {
|
|
4721
4529
|
contents.MessageId = __expectString(data.MessageId);
|
|
4722
4530
|
}
|
|
4723
|
-
if (data.Status
|
|
4531
|
+
if (data.Status != null) {
|
|
4724
4532
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
4725
4533
|
}
|
|
4726
|
-
|
|
4534
|
+
if (data.SubChannelId != null) {
|
|
4535
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
4536
|
+
}
|
|
4537
|
+
return [2, contents];
|
|
4727
4538
|
}
|
|
4728
4539
|
});
|
|
4729
4540
|
}); };
|
|
4730
4541
|
var deserializeAws_restJson1SendChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4731
|
-
var parsedOutput, _a,
|
|
4542
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4732
4543
|
var _c;
|
|
4733
4544
|
return __generator(this, function (_d) {
|
|
4734
4545
|
switch (_d.label) {
|
|
@@ -4773,14 +4584,14 @@ var deserializeAws_restJson1SendChannelMessageCommandError = function (output, c
|
|
|
4773
4584
|
case 15: throw _d.sent();
|
|
4774
4585
|
case 16:
|
|
4775
4586
|
parsedBody = parsedOutput.body;
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
$metadata: $metadata,
|
|
4587
|
+
throwDefaultError({
|
|
4588
|
+
output: output,
|
|
4589
|
+
parsedBody: parsedBody,
|
|
4590
|
+
exceptionCtor: __BaseException,
|
|
4591
|
+
errorCode: errorCode,
|
|
4782
4592
|
});
|
|
4783
|
-
|
|
4593
|
+
_d.label = 17;
|
|
4594
|
+
case 17: return [2];
|
|
4784
4595
|
}
|
|
4785
4596
|
});
|
|
4786
4597
|
}); };
|
|
@@ -4792,18 +4603,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4792
4603
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4793
4604
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
4794
4605
|
}
|
|
4795
|
-
contents = {
|
|
4606
|
+
contents = map({
|
|
4796
4607
|
$metadata: deserializeMetadata(output),
|
|
4797
|
-
};
|
|
4608
|
+
});
|
|
4798
4609
|
return [4, collectBody(output.body, context)];
|
|
4799
4610
|
case 1:
|
|
4800
4611
|
_a.sent();
|
|
4801
|
-
return [2,
|
|
4612
|
+
return [2, contents];
|
|
4802
4613
|
}
|
|
4803
4614
|
});
|
|
4804
4615
|
}); };
|
|
4805
4616
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4806
|
-
var parsedOutput, _a,
|
|
4617
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4807
4618
|
var _c;
|
|
4808
4619
|
return __generator(this, function (_d) {
|
|
4809
4620
|
switch (_d.label) {
|
|
@@ -4848,14 +4659,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4848
4659
|
case 15: throw _d.sent();
|
|
4849
4660
|
case 16:
|
|
4850
4661
|
parsedBody = parsedOutput.body;
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
$metadata: $metadata,
|
|
4662
|
+
throwDefaultError({
|
|
4663
|
+
output: output,
|
|
4664
|
+
parsedBody: parsedBody,
|
|
4665
|
+
exceptionCtor: __BaseException,
|
|
4666
|
+
errorCode: errorCode,
|
|
4857
4667
|
});
|
|
4858
|
-
|
|
4668
|
+
_d.label = 17;
|
|
4669
|
+
case 17: return [2];
|
|
4859
4670
|
}
|
|
4860
4671
|
});
|
|
4861
4672
|
}); };
|
|
@@ -4867,18 +4678,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4867
4678
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4868
4679
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
4869
4680
|
}
|
|
4870
|
-
contents = {
|
|
4681
|
+
contents = map({
|
|
4871
4682
|
$metadata: deserializeMetadata(output),
|
|
4872
|
-
};
|
|
4683
|
+
});
|
|
4873
4684
|
return [4, collectBody(output.body, context)];
|
|
4874
4685
|
case 1:
|
|
4875
4686
|
_a.sent();
|
|
4876
|
-
return [2,
|
|
4687
|
+
return [2, contents];
|
|
4877
4688
|
}
|
|
4878
4689
|
});
|
|
4879
4690
|
}); };
|
|
4880
4691
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4881
|
-
var parsedOutput, _a,
|
|
4692
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4882
4693
|
var _c;
|
|
4883
4694
|
return __generator(this, function (_d) {
|
|
4884
4695
|
switch (_d.label) {
|
|
@@ -4919,14 +4730,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4919
4730
|
case 13: throw _d.sent();
|
|
4920
4731
|
case 14:
|
|
4921
4732
|
parsedBody = parsedOutput.body;
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
$metadata: $metadata,
|
|
4733
|
+
throwDefaultError({
|
|
4734
|
+
output: output,
|
|
4735
|
+
parsedBody: parsedBody,
|
|
4736
|
+
exceptionCtor: __BaseException,
|
|
4737
|
+
errorCode: errorCode,
|
|
4928
4738
|
});
|
|
4929
|
-
|
|
4739
|
+
_d.label = 15;
|
|
4740
|
+
case 15: return [2];
|
|
4930
4741
|
}
|
|
4931
4742
|
});
|
|
4932
4743
|
}); };
|
|
@@ -4938,24 +4749,23 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
4938
4749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4939
4750
|
return [2, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
|
|
4940
4751
|
}
|
|
4941
|
-
contents = {
|
|
4752
|
+
contents = map({
|
|
4942
4753
|
$metadata: deserializeMetadata(output),
|
|
4943
|
-
|
|
4944
|
-
};
|
|
4754
|
+
});
|
|
4945
4755
|
_a = __expectNonNull;
|
|
4946
4756
|
_b = __expectObject;
|
|
4947
4757
|
return [4, parseBody(output.body, context)];
|
|
4948
4758
|
case 1:
|
|
4949
4759
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4950
|
-
if (data.ChannelArn
|
|
4760
|
+
if (data.ChannelArn != null) {
|
|
4951
4761
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4952
4762
|
}
|
|
4953
|
-
return [2,
|
|
4763
|
+
return [2, contents];
|
|
4954
4764
|
}
|
|
4955
4765
|
});
|
|
4956
4766
|
}); };
|
|
4957
4767
|
var deserializeAws_restJson1UpdateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4958
|
-
var parsedOutput, _a,
|
|
4768
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4959
4769
|
var _c;
|
|
4960
4770
|
return __generator(this, function (_d) {
|
|
4961
4771
|
switch (_d.label) {
|
|
@@ -5000,14 +4810,14 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
5000
4810
|
case 15: throw _d.sent();
|
|
5001
4811
|
case 16:
|
|
5002
4812
|
parsedBody = parsedOutput.body;
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
$metadata: $metadata,
|
|
4813
|
+
throwDefaultError({
|
|
4814
|
+
output: output,
|
|
4815
|
+
parsedBody: parsedBody,
|
|
4816
|
+
exceptionCtor: __BaseException,
|
|
4817
|
+
errorCode: errorCode,
|
|
5009
4818
|
});
|
|
5010
|
-
|
|
4819
|
+
_d.label = 17;
|
|
4820
|
+
case 17: return [2];
|
|
5011
4821
|
}
|
|
5012
4822
|
});
|
|
5013
4823
|
}); };
|
|
@@ -5019,24 +4829,23 @@ export var deserializeAws_restJson1UpdateChannelFlowCommand = function (output,
|
|
|
5019
4829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5020
4830
|
return [2, deserializeAws_restJson1UpdateChannelFlowCommandError(output, context)];
|
|
5021
4831
|
}
|
|
5022
|
-
contents = {
|
|
4832
|
+
contents = map({
|
|
5023
4833
|
$metadata: deserializeMetadata(output),
|
|
5024
|
-
|
|
5025
|
-
};
|
|
4834
|
+
});
|
|
5026
4835
|
_a = __expectNonNull;
|
|
5027
4836
|
_b = __expectObject;
|
|
5028
4837
|
return [4, parseBody(output.body, context)];
|
|
5029
4838
|
case 1:
|
|
5030
4839
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5031
|
-
if (data.ChannelFlowArn
|
|
4840
|
+
if (data.ChannelFlowArn != null) {
|
|
5032
4841
|
contents.ChannelFlowArn = __expectString(data.ChannelFlowArn);
|
|
5033
4842
|
}
|
|
5034
|
-
return [2,
|
|
4843
|
+
return [2, contents];
|
|
5035
4844
|
}
|
|
5036
4845
|
});
|
|
5037
4846
|
}); };
|
|
5038
4847
|
var deserializeAws_restJson1UpdateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5039
|
-
var parsedOutput, _a,
|
|
4848
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5040
4849
|
var _c;
|
|
5041
4850
|
return __generator(this, function (_d) {
|
|
5042
4851
|
switch (_d.label) {
|
|
@@ -5081,14 +4890,14 @@ var deserializeAws_restJson1UpdateChannelFlowCommandError = function (output, co
|
|
|
5081
4890
|
case 15: throw _d.sent();
|
|
5082
4891
|
case 16:
|
|
5083
4892
|
parsedBody = parsedOutput.body;
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
$metadata: $metadata,
|
|
4893
|
+
throwDefaultError({
|
|
4894
|
+
output: output,
|
|
4895
|
+
parsedBody: parsedBody,
|
|
4896
|
+
exceptionCtor: __BaseException,
|
|
4897
|
+
errorCode: errorCode,
|
|
5090
4898
|
});
|
|
5091
|
-
|
|
4899
|
+
_d.label = 17;
|
|
4900
|
+
case 17: return [2];
|
|
5092
4901
|
}
|
|
5093
4902
|
});
|
|
5094
4903
|
}); };
|
|
@@ -5100,32 +4909,32 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
|
|
|
5100
4909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5101
4910
|
return [2, deserializeAws_restJson1UpdateChannelMessageCommandError(output, context)];
|
|
5102
4911
|
}
|
|
5103
|
-
contents = {
|
|
4912
|
+
contents = map({
|
|
5104
4913
|
$metadata: deserializeMetadata(output),
|
|
5105
|
-
|
|
5106
|
-
MessageId: undefined,
|
|
5107
|
-
Status: undefined,
|
|
5108
|
-
};
|
|
4914
|
+
});
|
|
5109
4915
|
_a = __expectNonNull;
|
|
5110
4916
|
_b = __expectObject;
|
|
5111
4917
|
return [4, parseBody(output.body, context)];
|
|
5112
4918
|
case 1:
|
|
5113
4919
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5114
|
-
if (data.ChannelArn
|
|
4920
|
+
if (data.ChannelArn != null) {
|
|
5115
4921
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
5116
4922
|
}
|
|
5117
|
-
if (data.MessageId
|
|
4923
|
+
if (data.MessageId != null) {
|
|
5118
4924
|
contents.MessageId = __expectString(data.MessageId);
|
|
5119
4925
|
}
|
|
5120
|
-
if (data.Status
|
|
4926
|
+
if (data.Status != null) {
|
|
5121
4927
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
5122
4928
|
}
|
|
5123
|
-
|
|
4929
|
+
if (data.SubChannelId != null) {
|
|
4930
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
4931
|
+
}
|
|
4932
|
+
return [2, contents];
|
|
5124
4933
|
}
|
|
5125
4934
|
});
|
|
5126
4935
|
}); };
|
|
5127
4936
|
var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5128
|
-
var parsedOutput, _a,
|
|
4937
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5129
4938
|
var _c;
|
|
5130
4939
|
return __generator(this, function (_d) {
|
|
5131
4940
|
switch (_d.label) {
|
|
@@ -5170,14 +4979,14 @@ var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output,
|
|
|
5170
4979
|
case 15: throw _d.sent();
|
|
5171
4980
|
case 16:
|
|
5172
4981
|
parsedBody = parsedOutput.body;
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
$metadata: $metadata,
|
|
4982
|
+
throwDefaultError({
|
|
4983
|
+
output: output,
|
|
4984
|
+
parsedBody: parsedBody,
|
|
4985
|
+
exceptionCtor: __BaseException,
|
|
4986
|
+
errorCode: errorCode,
|
|
5179
4987
|
});
|
|
5180
|
-
|
|
4988
|
+
_d.label = 17;
|
|
4989
|
+
case 17: return [2];
|
|
5181
4990
|
}
|
|
5182
4991
|
});
|
|
5183
4992
|
}); };
|
|
@@ -5189,24 +4998,26 @@ export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (ou
|
|
|
5189
4998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5190
4999
|
return [2, deserializeAws_restJson1UpdateChannelReadMarkerCommandError(output, context)];
|
|
5191
5000
|
}
|
|
5192
|
-
contents = {
|
|
5001
|
+
contents = map({
|
|
5193
5002
|
$metadata: deserializeMetadata(output),
|
|
5194
|
-
|
|
5195
|
-
};
|
|
5003
|
+
});
|
|
5196
5004
|
_a = __expectNonNull;
|
|
5197
5005
|
_b = __expectObject;
|
|
5198
5006
|
return [4, parseBody(output.body, context)];
|
|
5199
5007
|
case 1:
|
|
5200
5008
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5201
|
-
if (data.ChannelArn
|
|
5009
|
+
if (data.ChannelArn != null) {
|
|
5202
5010
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
5203
5011
|
}
|
|
5204
|
-
|
|
5012
|
+
if (data.SubChannelId != null) {
|
|
5013
|
+
contents.SubChannelId = __expectString(data.SubChannelId);
|
|
5014
|
+
}
|
|
5015
|
+
return [2, contents];
|
|
5205
5016
|
}
|
|
5206
5017
|
});
|
|
5207
5018
|
}); };
|
|
5208
5019
|
var deserializeAws_restJson1UpdateChannelReadMarkerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5209
|
-
var parsedOutput, _a,
|
|
5020
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5210
5021
|
var _c;
|
|
5211
5022
|
return __generator(this, function (_d) {
|
|
5212
5023
|
switch (_d.label) {
|
|
@@ -5251,26 +5062,27 @@ var deserializeAws_restJson1UpdateChannelReadMarkerCommandError = function (outp
|
|
|
5251
5062
|
case 15: throw _d.sent();
|
|
5252
5063
|
case 16:
|
|
5253
5064
|
parsedBody = parsedOutput.body;
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
$metadata: $metadata,
|
|
5065
|
+
throwDefaultError({
|
|
5066
|
+
output: output,
|
|
5067
|
+
parsedBody: parsedBody,
|
|
5068
|
+
exceptionCtor: __BaseException,
|
|
5069
|
+
errorCode: errorCode,
|
|
5260
5070
|
});
|
|
5261
|
-
|
|
5071
|
+
_d.label = 17;
|
|
5072
|
+
case 17: return [2];
|
|
5262
5073
|
}
|
|
5263
5074
|
});
|
|
5264
5075
|
}); };
|
|
5076
|
+
var map = __map;
|
|
5265
5077
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5266
5078
|
var contents, data, exception;
|
|
5267
5079
|
return __generator(this, function (_a) {
|
|
5268
|
-
contents = {};
|
|
5080
|
+
contents = map({});
|
|
5269
5081
|
data = parsedOutput.body;
|
|
5270
|
-
if (data.Code
|
|
5082
|
+
if (data.Code != null) {
|
|
5271
5083
|
contents.Code = __expectString(data.Code);
|
|
5272
5084
|
}
|
|
5273
|
-
if (data.Message
|
|
5085
|
+
if (data.Message != null) {
|
|
5274
5086
|
contents.Message = __expectString(data.Message);
|
|
5275
5087
|
}
|
|
5276
5088
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5280,12 +5092,12 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
5280
5092
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5281
5093
|
var contents, data, exception;
|
|
5282
5094
|
return __generator(this, function (_a) {
|
|
5283
|
-
contents = {};
|
|
5095
|
+
contents = map({});
|
|
5284
5096
|
data = parsedOutput.body;
|
|
5285
|
-
if (data.Code
|
|
5097
|
+
if (data.Code != null) {
|
|
5286
5098
|
contents.Code = __expectString(data.Code);
|
|
5287
5099
|
}
|
|
5288
|
-
if (data.Message
|
|
5100
|
+
if (data.Message != null) {
|
|
5289
5101
|
contents.Message = __expectString(data.Message);
|
|
5290
5102
|
}
|
|
5291
5103
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5295,12 +5107,12 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
5295
5107
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5296
5108
|
var contents, data, exception;
|
|
5297
5109
|
return __generator(this, function (_a) {
|
|
5298
|
-
contents = {};
|
|
5110
|
+
contents = map({});
|
|
5299
5111
|
data = parsedOutput.body;
|
|
5300
|
-
if (data.Code
|
|
5112
|
+
if (data.Code != null) {
|
|
5301
5113
|
contents.Code = __expectString(data.Code);
|
|
5302
5114
|
}
|
|
5303
|
-
if (data.Message
|
|
5115
|
+
if (data.Message != null) {
|
|
5304
5116
|
contents.Message = __expectString(data.Message);
|
|
5305
5117
|
}
|
|
5306
5118
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5310,12 +5122,12 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
5310
5122
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5311
5123
|
var contents, data, exception;
|
|
5312
5124
|
return __generator(this, function (_a) {
|
|
5313
|
-
contents = {};
|
|
5125
|
+
contents = map({});
|
|
5314
5126
|
data = parsedOutput.body;
|
|
5315
|
-
if (data.Code
|
|
5127
|
+
if (data.Code != null) {
|
|
5316
5128
|
contents.Code = __expectString(data.Code);
|
|
5317
5129
|
}
|
|
5318
|
-
if (data.Message
|
|
5130
|
+
if (data.Message != null) {
|
|
5319
5131
|
contents.Message = __expectString(data.Message);
|
|
5320
5132
|
}
|
|
5321
5133
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5325,12 +5137,12 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
5325
5137
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5326
5138
|
var contents, data, exception;
|
|
5327
5139
|
return __generator(this, function (_a) {
|
|
5328
|
-
contents = {};
|
|
5140
|
+
contents = map({});
|
|
5329
5141
|
data = parsedOutput.body;
|
|
5330
|
-
if (data.Code
|
|
5142
|
+
if (data.Code != null) {
|
|
5331
5143
|
contents.Code = __expectString(data.Code);
|
|
5332
5144
|
}
|
|
5333
|
-
if (data.Message
|
|
5145
|
+
if (data.Message != null) {
|
|
5334
5146
|
contents.Message = __expectString(data.Message);
|
|
5335
5147
|
}
|
|
5336
5148
|
exception = new ResourceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5340,12 +5152,12 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
5340
5152
|
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5341
5153
|
var contents, data, exception;
|
|
5342
5154
|
return __generator(this, function (_a) {
|
|
5343
|
-
contents = {};
|
|
5155
|
+
contents = map({});
|
|
5344
5156
|
data = parsedOutput.body;
|
|
5345
|
-
if (data.Code
|
|
5157
|
+
if (data.Code != null) {
|
|
5346
5158
|
contents.Code = __expectString(data.Code);
|
|
5347
5159
|
}
|
|
5348
|
-
if (data.Message
|
|
5160
|
+
if (data.Message != null) {
|
|
5349
5161
|
contents.Message = __expectString(data.Message);
|
|
5350
5162
|
}
|
|
5351
5163
|
exception = new ServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5355,12 +5167,12 @@ var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOu
|
|
|
5355
5167
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5356
5168
|
var contents, data, exception;
|
|
5357
5169
|
return __generator(this, function (_a) {
|
|
5358
|
-
contents = {};
|
|
5170
|
+
contents = map({});
|
|
5359
5171
|
data = parsedOutput.body;
|
|
5360
|
-
if (data.Code
|
|
5172
|
+
if (data.Code != null) {
|
|
5361
5173
|
contents.Code = __expectString(data.Code);
|
|
5362
5174
|
}
|
|
5363
|
-
if (data.Message
|
|
5175
|
+
if (data.Message != null) {
|
|
5364
5176
|
contents.Message = __expectString(data.Message);
|
|
5365
5177
|
}
|
|
5366
5178
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5370,12 +5182,12 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
5370
5182
|
var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5371
5183
|
var contents, data, exception;
|
|
5372
5184
|
return __generator(this, function (_a) {
|
|
5373
|
-
contents = {};
|
|
5185
|
+
contents = map({});
|
|
5374
5186
|
data = parsedOutput.body;
|
|
5375
|
-
if (data.Code
|
|
5187
|
+
if (data.Code != null) {
|
|
5376
5188
|
contents.Code = __expectString(data.Code);
|
|
5377
5189
|
}
|
|
5378
|
-
if (data.Message
|
|
5190
|
+
if (data.Message != null) {
|
|
5379
5191
|
contents.Message = __expectString(data.Message);
|
|
5380
5192
|
}
|
|
5381
5193
|
exception = new ThrottledClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5385,12 +5197,12 @@ var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedO
|
|
|
5385
5197
|
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5386
5198
|
var contents, data, exception;
|
|
5387
5199
|
return __generator(this, function (_a) {
|
|
5388
|
-
contents = {};
|
|
5200
|
+
contents = map({});
|
|
5389
5201
|
data = parsedOutput.body;
|
|
5390
|
-
if (data.Code
|
|
5202
|
+
if (data.Code != null) {
|
|
5391
5203
|
contents.Code = __expectString(data.Code);
|
|
5392
5204
|
}
|
|
5393
|
-
if (data.Message
|
|
5205
|
+
if (data.Message != null) {
|
|
5394
5206
|
contents.Message = __expectString(data.Message);
|
|
5395
5207
|
}
|
|
5396
5208
|
exception = new UnauthorizedClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5401,9 +5213,6 @@ var serializeAws_restJson1ChannelMemberArns = function (input, context) {
|
|
|
5401
5213
|
return input
|
|
5402
5214
|
.filter(function (e) { return e != null; })
|
|
5403
5215
|
.map(function (entry) {
|
|
5404
|
-
if (entry === null) {
|
|
5405
|
-
return null;
|
|
5406
|
-
}
|
|
5407
5216
|
return entry;
|
|
5408
5217
|
});
|
|
5409
5218
|
};
|
|
@@ -5413,22 +5222,26 @@ var serializeAws_restJson1ChannelMembershipPreferences = function (input, contex
|
|
|
5413
5222
|
}));
|
|
5414
5223
|
};
|
|
5415
5224
|
var serializeAws_restJson1ChannelMessageCallback = function (input, context) {
|
|
5416
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
5225
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
5417
5226
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
5418
5227
|
})), (input.MessageId != null && { MessageId: input.MessageId })), (input.Metadata != null && { Metadata: input.Metadata })), (input.PushNotification != null && {
|
|
5419
5228
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
5420
|
-
}));
|
|
5229
|
+
})), (input.SubChannelId != null && { SubChannelId: input.SubChannelId }));
|
|
5421
5230
|
};
|
|
5422
5231
|
var serializeAws_restJson1ChannelModeratorArns = function (input, context) {
|
|
5423
5232
|
return input
|
|
5424
5233
|
.filter(function (e) { return e != null; })
|
|
5425
5234
|
.map(function (entry) {
|
|
5426
|
-
if (entry === null) {
|
|
5427
|
-
return null;
|
|
5428
|
-
}
|
|
5429
5235
|
return entry;
|
|
5430
5236
|
});
|
|
5431
5237
|
};
|
|
5238
|
+
var serializeAws_restJson1ElasticChannelConfiguration = function (input, context) {
|
|
5239
|
+
return __assign(__assign(__assign({}, (input.MaximumSubChannels != null && { MaximumSubChannels: input.MaximumSubChannels })), (input.MinimumMembershipPercentage != null && {
|
|
5240
|
+
MinimumMembershipPercentage: input.MinimumMembershipPercentage,
|
|
5241
|
+
})), (input.TargetMembershipsPerSubChannel != null && {
|
|
5242
|
+
TargetMembershipsPerSubChannel: input.TargetMembershipsPerSubChannel,
|
|
5243
|
+
}));
|
|
5244
|
+
};
|
|
5432
5245
|
var serializeAws_restJson1LambdaConfiguration = function (input, context) {
|
|
5433
5246
|
return __assign(__assign({}, (input.InvocationType != null && { InvocationType: input.InvocationType })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5434
5247
|
};
|
|
@@ -5436,9 +5249,6 @@ var serializeAws_restJson1MemberArns = function (input, context) {
|
|
|
5436
5249
|
return input
|
|
5437
5250
|
.filter(function (e) { return e != null; })
|
|
5438
5251
|
.map(function (entry) {
|
|
5439
|
-
if (entry === null) {
|
|
5440
|
-
return null;
|
|
5441
|
-
}
|
|
5442
5252
|
return entry;
|
|
5443
5253
|
});
|
|
5444
5254
|
};
|
|
@@ -5456,9 +5266,6 @@ var serializeAws_restJson1MessageAttributeStringValues = function (input, contex
|
|
|
5456
5266
|
return input
|
|
5457
5267
|
.filter(function (e) { return e != null; })
|
|
5458
5268
|
.map(function (entry) {
|
|
5459
|
-
if (entry === null) {
|
|
5460
|
-
return null;
|
|
5461
|
-
}
|
|
5462
5269
|
return entry;
|
|
5463
5270
|
});
|
|
5464
5271
|
};
|
|
@@ -5479,9 +5286,6 @@ var serializeAws_restJson1ProcessorList = function (input, context) {
|
|
|
5479
5286
|
return input
|
|
5480
5287
|
.filter(function (e) { return e != null; })
|
|
5481
5288
|
.map(function (entry) {
|
|
5482
|
-
if (entry === null) {
|
|
5483
|
-
return null;
|
|
5484
|
-
}
|
|
5485
5289
|
return serializeAws_restJson1Processor(entry, context);
|
|
5486
5290
|
});
|
|
5487
5291
|
};
|
|
@@ -5498,9 +5302,6 @@ var serializeAws_restJson1SearchFields = function (input, context) {
|
|
|
5498
5302
|
return input
|
|
5499
5303
|
.filter(function (e) { return e != null; })
|
|
5500
5304
|
.map(function (entry) {
|
|
5501
|
-
if (entry === null) {
|
|
5502
|
-
return null;
|
|
5503
|
-
}
|
|
5504
5305
|
return serializeAws_restJson1SearchField(entry, context);
|
|
5505
5306
|
});
|
|
5506
5307
|
};
|
|
@@ -5508,9 +5309,6 @@ var serializeAws_restJson1SearchFieldValues = function (input, context) {
|
|
|
5508
5309
|
return input
|
|
5509
5310
|
.filter(function (e) { return e != null; })
|
|
5510
5311
|
.map(function (entry) {
|
|
5511
|
-
if (entry === null) {
|
|
5512
|
-
return null;
|
|
5513
|
-
}
|
|
5514
5312
|
return entry;
|
|
5515
5313
|
});
|
|
5516
5314
|
};
|
|
@@ -5521,9 +5319,6 @@ var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
|
5521
5319
|
return input
|
|
5522
5320
|
.filter(function (e) { return e != null; })
|
|
5523
5321
|
.map(function (entry) {
|
|
5524
|
-
if (entry === null) {
|
|
5525
|
-
return null;
|
|
5526
|
-
}
|
|
5527
5322
|
return entry;
|
|
5528
5323
|
});
|
|
5529
5324
|
};
|
|
@@ -5531,9 +5326,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
5531
5326
|
return input
|
|
5532
5327
|
.filter(function (e) { return e != null; })
|
|
5533
5328
|
.map(function (entry) {
|
|
5534
|
-
if (entry === null) {
|
|
5535
|
-
return null;
|
|
5536
|
-
}
|
|
5537
5329
|
return serializeAws_restJson1Tag(entry, context);
|
|
5538
5330
|
});
|
|
5539
5331
|
};
|
|
@@ -5542,6 +5334,7 @@ var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output,
|
|
|
5542
5334
|
ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
|
|
5543
5335
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
|
|
5544
5336
|
: undefined,
|
|
5337
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5545
5338
|
Type: __expectString(output.Type),
|
|
5546
5339
|
};
|
|
5547
5340
|
};
|
|
@@ -5550,6 +5343,7 @@ var deserializeAws_restJson1BatchChannelMemberships = function (output, context)
|
|
|
5550
5343
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5551
5344
|
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
5552
5345
|
Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
|
|
5346
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5553
5347
|
Type: __expectString(output.Type),
|
|
5554
5348
|
};
|
|
5555
5349
|
};
|
|
@@ -5579,6 +5373,9 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
5579
5373
|
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5580
5374
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5581
5375
|
: undefined,
|
|
5376
|
+
ElasticChannelConfiguration: output.ElasticChannelConfiguration != null
|
|
5377
|
+
? deserializeAws_restJson1ElasticChannelConfiguration(output.ElasticChannelConfiguration, context)
|
|
5378
|
+
: undefined,
|
|
5582
5379
|
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
5583
5380
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
5584
5381
|
: undefined,
|
|
@@ -5679,6 +5476,7 @@ var deserializeAws_restJson1ChannelMembership = function (output, context) {
|
|
|
5679
5476
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5680
5477
|
: undefined,
|
|
5681
5478
|
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
5479
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5682
5480
|
Type: __expectString(output.Type),
|
|
5683
5481
|
};
|
|
5684
5482
|
};
|
|
@@ -5748,6 +5546,7 @@ var deserializeAws_restJson1ChannelMessage = function (output, context) {
|
|
|
5748
5546
|
Redacted: __expectBoolean(output.Redacted),
|
|
5749
5547
|
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
5750
5548
|
Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
5549
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5751
5550
|
Type: __expectString(output.Type),
|
|
5752
5551
|
};
|
|
5753
5552
|
};
|
|
@@ -5858,6 +5657,13 @@ var deserializeAws_restJson1ChannelSummaryList = function (output, context) {
|
|
|
5858
5657
|
});
|
|
5859
5658
|
return retVal;
|
|
5860
5659
|
};
|
|
5660
|
+
var deserializeAws_restJson1ElasticChannelConfiguration = function (output, context) {
|
|
5661
|
+
return {
|
|
5662
|
+
MaximumSubChannels: __expectInt32(output.MaximumSubChannels),
|
|
5663
|
+
MinimumMembershipPercentage: __expectInt32(output.MinimumMembershipPercentage),
|
|
5664
|
+
TargetMembershipsPerSubChannel: __expectInt32(output.TargetMembershipsPerSubChannel),
|
|
5665
|
+
};
|
|
5666
|
+
};
|
|
5861
5667
|
var deserializeAws_restJson1Identity = function (output, context) {
|
|
5862
5668
|
return {
|
|
5863
5669
|
Arn: __expectString(output.Arn),
|
|
@@ -5946,6 +5752,23 @@ var deserializeAws_restJson1PushNotificationPreferences = function (output, cont
|
|
|
5946
5752
|
FilterRule: __expectString(output.FilterRule),
|
|
5947
5753
|
};
|
|
5948
5754
|
};
|
|
5755
|
+
var deserializeAws_restJson1SubChannelSummary = function (output, context) {
|
|
5756
|
+
return {
|
|
5757
|
+
MembershipCount: __expectInt32(output.MembershipCount),
|
|
5758
|
+
SubChannelId: __expectString(output.SubChannelId),
|
|
5759
|
+
};
|
|
5760
|
+
};
|
|
5761
|
+
var deserializeAws_restJson1SubChannelSummaryList = function (output, context) {
|
|
5762
|
+
var retVal = (output || [])
|
|
5763
|
+
.filter(function (e) { return e != null; })
|
|
5764
|
+
.map(function (entry) {
|
|
5765
|
+
if (entry === null) {
|
|
5766
|
+
return null;
|
|
5767
|
+
}
|
|
5768
|
+
return deserializeAws_restJson1SubChannelSummary(entry, context);
|
|
5769
|
+
});
|
|
5770
|
+
return retVal;
|
|
5771
|
+
};
|
|
5949
5772
|
var deserializeAws_restJson1Tag = function (output, context) {
|
|
5950
5773
|
return {
|
|
5951
5774
|
Key: __expectString(output.Key),
|