@aws-sdk/client-chime-sdk-messaging 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssociateChannelFlowCommand.js +1 -1
- package/dist-cjs/commands/BatchCreateChannelMembershipCommand.js +2 -2
- package/dist-cjs/commands/ChannelFlowCallbackCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelBanCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelMembershipCommand.js +2 -2
- package/dist-cjs/commands/CreateChannelModeratorCommand.js +2 -2
- package/dist-cjs/commands/DeleteChannelBanCommand.js +1 -1
- package/dist-cjs/commands/DeleteChannelCommand.js +1 -1
- package/dist-cjs/commands/DeleteChannelFlowCommand.js +1 -1
- package/dist-cjs/commands/DeleteChannelMembershipCommand.js +1 -1
- package/dist-cjs/commands/DeleteChannelMessageCommand.js +1 -1
- package/dist-cjs/commands/DeleteChannelModeratorCommand.js +1 -1
- package/dist-cjs/commands/DescribeChannelBanCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelMembershipCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/DescribeChannelModeratorCommand.js +2 -2
- package/dist-cjs/commands/DisassociateChannelFlowCommand.js +1 -1
- package/dist-cjs/commands/GetChannelMembershipPreferencesCommand.js +2 -2
- package/dist-cjs/commands/GetChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/GetChannelMessageStatusCommand.js +2 -2
- package/dist-cjs/commands/GetMessagingSessionEndpointCommand.js +2 -2
- package/dist-cjs/commands/ListChannelBansCommand.js +2 -2
- package/dist-cjs/commands/ListChannelFlowsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelMembershipsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelMembershipsForAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/ListChannelMessagesCommand.js +2 -2
- package/dist-cjs/commands/ListChannelModeratorsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelsAssociatedWithChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/ListChannelsCommand.js +2 -2
- package/dist-cjs/commands/ListChannelsModeratedByAppInstanceUserCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutChannelMembershipPreferencesCommand.js +2 -2
- package/dist-cjs/commands/RedactChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/SearchChannelsCommand.js +2 -2
- package/dist-cjs/commands/SendChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +1 -1
- package/dist-cjs/commands/UntagResourceCommand.js +1 -1
- package/dist-cjs/commands/UpdateChannelCommand.js +2 -2
- package/dist-cjs/commands/UpdateChannelFlowCommand.js +2 -2
- package/dist-cjs/commands/UpdateChannelMessageCommand.js +2 -2
- package/dist-cjs/commands/UpdateChannelReadMarkerCommand.js +2 -2
- package/dist-cjs/models/models_0.js +613 -841
- package/dist-cjs/protocols/Aws_restJson1.js +702 -1358
- package/dist-es/commands/AssociateChannelFlowCommand.js +2 -2
- package/dist-es/commands/BatchCreateChannelMembershipCommand.js +3 -3
- package/dist-es/commands/ChannelFlowCallbackCommand.js +3 -3
- package/dist-es/commands/CreateChannelBanCommand.js +3 -3
- package/dist-es/commands/CreateChannelCommand.js +3 -3
- package/dist-es/commands/CreateChannelFlowCommand.js +3 -3
- package/dist-es/commands/CreateChannelMembershipCommand.js +3 -3
- package/dist-es/commands/CreateChannelModeratorCommand.js +3 -3
- package/dist-es/commands/DeleteChannelBanCommand.js +2 -2
- package/dist-es/commands/DeleteChannelCommand.js +2 -2
- package/dist-es/commands/DeleteChannelFlowCommand.js +2 -2
- package/dist-es/commands/DeleteChannelMembershipCommand.js +2 -2
- package/dist-es/commands/DeleteChannelMessageCommand.js +2 -2
- package/dist-es/commands/DeleteChannelModeratorCommand.js +2 -2
- package/dist-es/commands/DescribeChannelBanCommand.js +3 -3
- package/dist-es/commands/DescribeChannelCommand.js +3 -3
- package/dist-es/commands/DescribeChannelFlowCommand.js +3 -3
- package/dist-es/commands/DescribeChannelMembershipCommand.js +3 -3
- package/dist-es/commands/DescribeChannelMembershipForAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/DescribeChannelModeratedByAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/DescribeChannelModeratorCommand.js +3 -3
- package/dist-es/commands/DisassociateChannelFlowCommand.js +2 -2
- package/dist-es/commands/GetChannelMembershipPreferencesCommand.js +3 -3
- package/dist-es/commands/GetChannelMessageCommand.js +3 -3
- package/dist-es/commands/GetChannelMessageStatusCommand.js +3 -3
- package/dist-es/commands/GetMessagingSessionEndpointCommand.js +3 -3
- package/dist-es/commands/ListChannelBansCommand.js +3 -3
- package/dist-es/commands/ListChannelFlowsCommand.js +3 -3
- package/dist-es/commands/ListChannelMembershipsCommand.js +3 -3
- package/dist-es/commands/ListChannelMembershipsForAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/ListChannelMessagesCommand.js +3 -3
- package/dist-es/commands/ListChannelModeratorsCommand.js +3 -3
- package/dist-es/commands/ListChannelsAssociatedWithChannelFlowCommand.js +3 -3
- package/dist-es/commands/ListChannelsCommand.js +3 -3
- package/dist-es/commands/ListChannelsModeratedByAppInstanceUserCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutChannelMembershipPreferencesCommand.js +3 -3
- package/dist-es/commands/RedactChannelMessageCommand.js +3 -3
- package/dist-es/commands/SearchChannelsCommand.js +3 -3
- package/dist-es/commands/SendChannelMessageCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UpdateChannelCommand.js +3 -3
- package/dist-es/commands/UpdateChannelFlowCommand.js +3 -3
- package/dist-es/commands/UpdateChannelMessageCommand.js +3 -3
- package/dist-es/commands/UpdateChannelReadMarkerCommand.js +3 -3
- package/dist-es/models/models_0.js +161 -502
- package/dist-es/protocols/Aws_restJson1.js +886 -1271
- package/dist-types/models/models_0.d.ts +452 -678
- package/dist-types/ts3.4/models/models_0.d.ts +226 -452
- package/package.json +6 -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,27 +31,21 @@ 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
|
-
};
|
|
45
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
46
|
+
query = map({
|
|
47
|
+
operation: [, "batch-create"],
|
|
48
|
+
});
|
|
61
49
|
body = JSON.stringify(__assign(__assign({}, (input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type != null && { Type: input.Type })));
|
|
62
50
|
return [2, new __HttpRequest({
|
|
63
51
|
protocol: protocol,
|
|
@@ -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,7 +100,10 @@ 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
108
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId != null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.MemberArns != null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) })), (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.ModeratorArns != null && {
|
|
127
109
|
ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
|
|
@@ -139,24 +121,18 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
139
121
|
});
|
|
140
122
|
}); };
|
|
141
123
|
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,
|
|
124
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
143
125
|
return __generator(this, function (_c) {
|
|
144
126
|
switch (_c.label) {
|
|
145
127
|
case 0: return [4, context.endpoint()];
|
|
146
128
|
case 1:
|
|
147
129
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
148
|
-
headers =
|
|
130
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
131
|
+
"content-type": "application/json",
|
|
132
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
133
|
+
});
|
|
149
134
|
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
|
-
}
|
|
135
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
160
136
|
body = JSON.stringify(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })));
|
|
161
137
|
return [2, new __HttpRequest({
|
|
162
138
|
protocol: protocol,
|
|
@@ -195,24 +171,18 @@ export var serializeAws_restJson1CreateChannelFlowCommand = function (input, con
|
|
|
195
171
|
});
|
|
196
172
|
}); };
|
|
197
173
|
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,
|
|
174
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
199
175
|
return __generator(this, function (_c) {
|
|
200
176
|
switch (_c.label) {
|
|
201
177
|
case 0: return [4, context.endpoint()];
|
|
202
178
|
case 1:
|
|
203
179
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
204
|
-
headers =
|
|
180
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
181
|
+
"content-type": "application/json",
|
|
182
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
183
|
+
});
|
|
205
184
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/memberships";
|
|
206
|
-
|
|
207
|
-
labelValue = input.ChannelArn;
|
|
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
|
-
}
|
|
185
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
216
186
|
body = JSON.stringify(__assign(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })), (input.Type != null && { Type: input.Type })));
|
|
217
187
|
return [2, new __HttpRequest({
|
|
218
188
|
protocol: protocol,
|
|
@@ -227,24 +197,18 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
|
|
|
227
197
|
});
|
|
228
198
|
}); };
|
|
229
199
|
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,
|
|
200
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
231
201
|
return __generator(this, function (_c) {
|
|
232
202
|
switch (_c.label) {
|
|
233
203
|
case 0: return [4, context.endpoint()];
|
|
234
204
|
case 1:
|
|
235
205
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
236
|
-
headers =
|
|
206
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
207
|
+
"content-type": "application/json",
|
|
208
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
209
|
+
});
|
|
237
210
|
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
|
-
}
|
|
211
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
248
212
|
body = JSON.stringify(__assign({}, (input.ChannelModeratorArn != null && { ChannelModeratorArn: input.ChannelModeratorArn })));
|
|
249
213
|
return [2, new __HttpRequest({
|
|
250
214
|
protocol: protocol,
|
|
@@ -259,24 +223,17 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
|
|
|
259
223
|
});
|
|
260
224
|
}); };
|
|
261
225
|
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,
|
|
226
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
263
227
|
return __generator(this, function (_c) {
|
|
264
228
|
switch (_c.label) {
|
|
265
229
|
case 0: return [4, context.endpoint()];
|
|
266
230
|
case 1:
|
|
267
231
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
268
|
-
headers =
|
|
232
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
233
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
234
|
+
});
|
|
269
235
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}";
|
|
270
|
-
|
|
271
|
-
labelValue = input.ChannelArn;
|
|
272
|
-
if (labelValue.length <= 0) {
|
|
273
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
274
|
-
}
|
|
275
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
279
|
-
}
|
|
236
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
280
237
|
return [2, new __HttpRequest({
|
|
281
238
|
protocol: protocol,
|
|
282
239
|
hostname: hostname,
|
|
@@ -290,34 +247,18 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
|
|
|
290
247
|
});
|
|
291
248
|
}); };
|
|
292
249
|
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,
|
|
250
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
294
251
|
return __generator(this, function (_c) {
|
|
295
252
|
switch (_c.label) {
|
|
296
253
|
case 0: return [4, context.endpoint()];
|
|
297
254
|
case 1:
|
|
298
255
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
299
|
-
headers =
|
|
256
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
257
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
258
|
+
});
|
|
300
259
|
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
|
-
}
|
|
260
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
261
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
321
262
|
return [2, new __HttpRequest({
|
|
322
263
|
protocol: protocol,
|
|
323
264
|
hostname: hostname,
|
|
@@ -331,7 +272,7 @@ export var serializeAws_restJson1DeleteChannelBanCommand = function (input, cont
|
|
|
331
272
|
});
|
|
332
273
|
}); };
|
|
333
274
|
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,
|
|
275
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
335
276
|
return __generator(this, function (_c) {
|
|
336
277
|
switch (_c.label) {
|
|
337
278
|
case 0: return [4, context.endpoint()];
|
|
@@ -339,16 +280,7 @@ export var serializeAws_restJson1DeleteChannelFlowCommand = function (input, con
|
|
|
339
280
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
340
281
|
headers = {};
|
|
341
282
|
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
|
-
}
|
|
283
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
352
284
|
return [2, new __HttpRequest({
|
|
353
285
|
protocol: protocol,
|
|
354
286
|
hostname: hostname,
|
|
@@ -362,35 +294,19 @@ export var serializeAws_restJson1DeleteChannelFlowCommand = function (input, con
|
|
|
362
294
|
});
|
|
363
295
|
}); };
|
|
364
296
|
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,
|
|
297
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
366
298
|
return __generator(this, function (_c) {
|
|
367
299
|
switch (_c.label) {
|
|
368
300
|
case 0: return [4, context.endpoint()];
|
|
369
301
|
case 1:
|
|
370
302
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
371
|
-
headers =
|
|
303
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
304
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
305
|
+
});
|
|
372
306
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
373
307
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
if (labelValue.length <= 0) {
|
|
377
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
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
|
-
}
|
|
308
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
309
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
394
310
|
return [2, new __HttpRequest({
|
|
395
311
|
protocol: protocol,
|
|
396
312
|
hostname: hostname,
|
|
@@ -404,35 +320,19 @@ export var serializeAws_restJson1DeleteChannelMembershipCommand = function (inpu
|
|
|
404
320
|
});
|
|
405
321
|
}); };
|
|
406
322
|
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,
|
|
323
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
408
324
|
return __generator(this, function (_c) {
|
|
409
325
|
switch (_c.label) {
|
|
410
326
|
case 0: return [4, context.endpoint()];
|
|
411
327
|
case 1:
|
|
412
328
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
413
|
-
headers =
|
|
329
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
330
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
331
|
+
});
|
|
414
332
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
415
333
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
if (labelValue.length <= 0) {
|
|
419
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
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
|
-
}
|
|
334
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
335
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
436
336
|
return [2, new __HttpRequest({
|
|
437
337
|
protocol: protocol,
|
|
438
338
|
hostname: hostname,
|
|
@@ -446,35 +346,19 @@ export var serializeAws_restJson1DeleteChannelMessageCommand = function (input,
|
|
|
446
346
|
});
|
|
447
347
|
}); };
|
|
448
348
|
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,
|
|
349
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
450
350
|
return __generator(this, function (_c) {
|
|
451
351
|
switch (_c.label) {
|
|
452
352
|
case 0: return [4, context.endpoint()];
|
|
453
353
|
case 1:
|
|
454
354
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
455
|
-
headers =
|
|
355
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
356
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
357
|
+
});
|
|
456
358
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
457
359
|
"/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
|
-
}
|
|
360
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
361
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelModeratorArn", function () { return input.ChannelModeratorArn; }, "{ChannelModeratorArn}", false);
|
|
478
362
|
return [2, new __HttpRequest({
|
|
479
363
|
protocol: protocol,
|
|
480
364
|
hostname: hostname,
|
|
@@ -488,24 +372,17 @@ export var serializeAws_restJson1DeleteChannelModeratorCommand = function (input
|
|
|
488
372
|
});
|
|
489
373
|
}); };
|
|
490
374
|
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,
|
|
375
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
492
376
|
return __generator(this, function (_c) {
|
|
493
377
|
switch (_c.label) {
|
|
494
378
|
case 0: return [4, context.endpoint()];
|
|
495
379
|
case 1:
|
|
496
380
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
497
|
-
headers =
|
|
381
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
382
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
383
|
+
});
|
|
498
384
|
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
|
-
}
|
|
385
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
509
386
|
return [2, new __HttpRequest({
|
|
510
387
|
protocol: protocol,
|
|
511
388
|
hostname: hostname,
|
|
@@ -519,34 +396,18 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
|
|
|
519
396
|
});
|
|
520
397
|
}); };
|
|
521
398
|
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,
|
|
399
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
523
400
|
return __generator(this, function (_c) {
|
|
524
401
|
switch (_c.label) {
|
|
525
402
|
case 0: return [4, context.endpoint()];
|
|
526
403
|
case 1:
|
|
527
404
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
528
|
-
headers =
|
|
405
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
406
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
407
|
+
});
|
|
529
408
|
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
|
-
}
|
|
409
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
410
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
550
411
|
return [2, new __HttpRequest({
|
|
551
412
|
protocol: protocol,
|
|
552
413
|
hostname: hostname,
|
|
@@ -560,7 +421,7 @@ export var serializeAws_restJson1DescribeChannelBanCommand = function (input, co
|
|
|
560
421
|
});
|
|
561
422
|
}); };
|
|
562
423
|
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,
|
|
424
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
564
425
|
return __generator(this, function (_c) {
|
|
565
426
|
switch (_c.label) {
|
|
566
427
|
case 0: return [4, context.endpoint()];
|
|
@@ -568,16 +429,7 @@ export var serializeAws_restJson1DescribeChannelFlowCommand = function (input, c
|
|
|
568
429
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
569
430
|
headers = {};
|
|
570
431
|
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
|
-
}
|
|
432
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
581
433
|
return [2, new __HttpRequest({
|
|
582
434
|
protocol: protocol,
|
|
583
435
|
hostname: hostname,
|
|
@@ -591,35 +443,19 @@ export var serializeAws_restJson1DescribeChannelFlowCommand = function (input, c
|
|
|
591
443
|
});
|
|
592
444
|
}); };
|
|
593
445
|
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,
|
|
446
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
595
447
|
return __generator(this, function (_c) {
|
|
596
448
|
switch (_c.label) {
|
|
597
449
|
case 0: return [4, context.endpoint()];
|
|
598
450
|
case 1:
|
|
599
451
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
600
|
-
headers =
|
|
452
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
453
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
454
|
+
});
|
|
601
455
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
602
456
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
if (labelValue.length <= 0) {
|
|
606
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
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
|
-
}
|
|
457
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
458
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
623
459
|
return [2, new __HttpRequest({
|
|
624
460
|
protocol: protocol,
|
|
625
461
|
hostname: hostname,
|
|
@@ -633,25 +469,21 @@ export var serializeAws_restJson1DescribeChannelMembershipCommand = function (in
|
|
|
633
469
|
});
|
|
634
470
|
}); };
|
|
635
471
|
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,
|
|
472
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
637
473
|
return __generator(this, function (_c) {
|
|
638
474
|
switch (_c.label) {
|
|
639
475
|
case 0: return [4, context.endpoint()];
|
|
640
476
|
case 1:
|
|
641
477
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
642
|
-
headers =
|
|
478
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
479
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
480
|
+
});
|
|
643
481
|
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 }));
|
|
482
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
483
|
+
query = map({
|
|
484
|
+
scope: [, "app-instance-user-membership"],
|
|
485
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
486
|
+
});
|
|
655
487
|
return [2, new __HttpRequest({
|
|
656
488
|
protocol: protocol,
|
|
657
489
|
hostname: hostname,
|
|
@@ -666,25 +498,21 @@ export var serializeAws_restJson1DescribeChannelMembershipForAppInstanceUserComm
|
|
|
666
498
|
});
|
|
667
499
|
}); };
|
|
668
500
|
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,
|
|
501
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
670
502
|
return __generator(this, function (_c) {
|
|
671
503
|
switch (_c.label) {
|
|
672
504
|
case 0: return [4, context.endpoint()];
|
|
673
505
|
case 1:
|
|
674
506
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
675
|
-
headers =
|
|
507
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
508
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
509
|
+
});
|
|
676
510
|
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 }));
|
|
511
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
512
|
+
query = map({
|
|
513
|
+
scope: [, "app-instance-user-moderated-channel"],
|
|
514
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
515
|
+
});
|
|
688
516
|
return [2, new __HttpRequest({
|
|
689
517
|
protocol: protocol,
|
|
690
518
|
hostname: hostname,
|
|
@@ -699,35 +527,19 @@ export var serializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComman
|
|
|
699
527
|
});
|
|
700
528
|
}); };
|
|
701
529
|
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,
|
|
530
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
703
531
|
return __generator(this, function (_c) {
|
|
704
532
|
switch (_c.label) {
|
|
705
533
|
case 0: return [4, context.endpoint()];
|
|
706
534
|
case 1:
|
|
707
535
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
708
|
-
headers =
|
|
536
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
537
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
538
|
+
});
|
|
709
539
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
710
540
|
"/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
|
-
}
|
|
541
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
542
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelModeratorArn", function () { return input.ChannelModeratorArn; }, "{ChannelModeratorArn}", false);
|
|
731
543
|
return [2, new __HttpRequest({
|
|
732
544
|
protocol: protocol,
|
|
733
545
|
hostname: hostname,
|
|
@@ -741,35 +553,19 @@ export var serializeAws_restJson1DescribeChannelModeratorCommand = function (inp
|
|
|
741
553
|
});
|
|
742
554
|
}); };
|
|
743
555
|
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,
|
|
556
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
745
557
|
return __generator(this, function (_c) {
|
|
746
558
|
switch (_c.label) {
|
|
747
559
|
case 0: return [4, context.endpoint()];
|
|
748
560
|
case 1:
|
|
749
561
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
750
|
-
headers =
|
|
562
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
563
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
564
|
+
});
|
|
751
565
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
752
566
|
"/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
|
-
}
|
|
567
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
568
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
773
569
|
return [2, new __HttpRequest({
|
|
774
570
|
protocol: protocol,
|
|
775
571
|
hostname: hostname,
|
|
@@ -783,35 +579,19 @@ export var serializeAws_restJson1DisassociateChannelFlowCommand = function (inpu
|
|
|
783
579
|
});
|
|
784
580
|
}); };
|
|
785
581
|
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,
|
|
582
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
787
583
|
return __generator(this, function (_c) {
|
|
788
584
|
switch (_c.label) {
|
|
789
585
|
case 0: return [4, context.endpoint()];
|
|
790
586
|
case 1:
|
|
791
587
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
792
|
-
headers =
|
|
588
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
589
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
590
|
+
});
|
|
793
591
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
794
592
|
"/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
|
-
}
|
|
593
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
594
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
815
595
|
return [2, new __HttpRequest({
|
|
816
596
|
protocol: protocol,
|
|
817
597
|
hostname: hostname,
|
|
@@ -825,35 +605,19 @@ export var serializeAws_restJson1GetChannelMembershipPreferencesCommand = functi
|
|
|
825
605
|
});
|
|
826
606
|
}); };
|
|
827
607
|
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,
|
|
608
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
829
609
|
return __generator(this, function (_c) {
|
|
830
610
|
switch (_c.label) {
|
|
831
611
|
case 0: return [4, context.endpoint()];
|
|
832
612
|
case 1:
|
|
833
613
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
834
|
-
headers =
|
|
614
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
615
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
616
|
+
});
|
|
835
617
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
836
618
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
if (labelValue.length <= 0) {
|
|
840
|
-
throw new Error("Empty value provided for input HTTP label: ChannelArn.");
|
|
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
|
-
}
|
|
619
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
620
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
857
621
|
return [2, new __HttpRequest({
|
|
858
622
|
protocol: protocol,
|
|
859
623
|
hostname: hostname,
|
|
@@ -867,38 +631,22 @@ export var serializeAws_restJson1GetChannelMessageCommand = function (input, con
|
|
|
867
631
|
});
|
|
868
632
|
}); };
|
|
869
633
|
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,
|
|
634
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
871
635
|
return __generator(this, function (_c) {
|
|
872
636
|
switch (_c.label) {
|
|
873
637
|
case 0: return [4, context.endpoint()];
|
|
874
638
|
case 1:
|
|
875
639
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
876
|
-
headers =
|
|
640
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
641
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
642
|
+
});
|
|
877
643
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
878
644
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
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
|
-
};
|
|
645
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
646
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
647
|
+
query = map({
|
|
648
|
+
scope: [, "message-status"],
|
|
649
|
+
});
|
|
902
650
|
return [2, new __HttpRequest({
|
|
903
651
|
protocol: protocol,
|
|
904
652
|
hostname: hostname,
|
|
@@ -937,25 +685,21 @@ export var serializeAws_restJson1GetMessagingSessionEndpointCommand = function (
|
|
|
937
685
|
});
|
|
938
686
|
}); };
|
|
939
687
|
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,
|
|
688
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
941
689
|
return __generator(this, function (_c) {
|
|
942
690
|
switch (_c.label) {
|
|
943
691
|
case 0: return [4, context.endpoint()];
|
|
944
692
|
case 1:
|
|
945
693
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
946
|
-
headers =
|
|
694
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
695
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
696
|
+
});
|
|
947
697
|
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 }));
|
|
698
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
699
|
+
query = map({
|
|
700
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
701
|
+
"next-token": [, input.NextToken],
|
|
702
|
+
});
|
|
959
703
|
return [2, new __HttpRequest({
|
|
960
704
|
protocol: protocol,
|
|
961
705
|
hostname: hostname,
|
|
@@ -978,7 +722,11 @@ export var serializeAws_restJson1ListChannelFlowsCommand = function (input, cont
|
|
|
978
722
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
979
723
|
headers = {};
|
|
980
724
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows";
|
|
981
|
-
query =
|
|
725
|
+
query = map({
|
|
726
|
+
"app-instance-arn": [, input.AppInstanceArn],
|
|
727
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
728
|
+
"next-token": [, input.NextToken],
|
|
729
|
+
});
|
|
982
730
|
return [2, new __HttpRequest({
|
|
983
731
|
protocol: protocol,
|
|
984
732
|
hostname: hostname,
|
|
@@ -993,25 +741,22 @@ export var serializeAws_restJson1ListChannelFlowsCommand = function (input, cont
|
|
|
993
741
|
});
|
|
994
742
|
}); };
|
|
995
743
|
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,
|
|
744
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
997
745
|
return __generator(this, function (_c) {
|
|
998
746
|
switch (_c.label) {
|
|
999
747
|
case 0: return [4, context.endpoint()];
|
|
1000
748
|
case 1:
|
|
1001
749
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1002
|
-
headers =
|
|
750
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
751
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
752
|
+
});
|
|
1003
753
|
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 }));
|
|
754
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
755
|
+
query = map({
|
|
756
|
+
type: [, input.Type],
|
|
757
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
758
|
+
"next-token": [, input.NextToken],
|
|
759
|
+
});
|
|
1015
760
|
return [2, new __HttpRequest({
|
|
1016
761
|
protocol: protocol,
|
|
1017
762
|
hostname: hostname,
|
|
@@ -1032,9 +777,16 @@ export var serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand
|
|
|
1032
777
|
case 0: return [4, context.endpoint()];
|
|
1033
778
|
case 1:
|
|
1034
779
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1035
|
-
headers =
|
|
780
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
781
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
782
|
+
});
|
|
1036
783
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1037
|
-
query =
|
|
784
|
+
query = map({
|
|
785
|
+
scope: [, "app-instance-user-memberships"],
|
|
786
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
787
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
788
|
+
"next-token": [, input.NextToken],
|
|
789
|
+
});
|
|
1038
790
|
return [2, new __HttpRequest({
|
|
1039
791
|
protocol: protocol,
|
|
1040
792
|
hostname: hostname,
|
|
@@ -1049,27 +801,30 @@ export var serializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommand
|
|
|
1049
801
|
});
|
|
1050
802
|
}); };
|
|
1051
803
|
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,
|
|
804
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1053
805
|
return __generator(this, function (_c) {
|
|
1054
806
|
switch (_c.label) {
|
|
1055
807
|
case 0: return [4, context.endpoint()];
|
|
1056
808
|
case 1:
|
|
1057
809
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1058
|
-
headers =
|
|
810
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
811
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
812
|
+
});
|
|
1059
813
|
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
|
-
|
|
814
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
815
|
+
query = map({
|
|
816
|
+
"sort-order": [, input.SortOrder],
|
|
817
|
+
"not-before": [
|
|
818
|
+
function () { return input.NotBefore !== void 0; },
|
|
819
|
+
function () { return (input.NotBefore.toISOString().split(".")[0] + "Z").toString(); },
|
|
820
|
+
],
|
|
821
|
+
"not-after": [
|
|
822
|
+
function () { return input.NotAfter !== void 0; },
|
|
823
|
+
function () { return (input.NotAfter.toISOString().split(".")[0] + "Z").toString(); },
|
|
824
|
+
],
|
|
825
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
826
|
+
"next-token": [, input.NextToken],
|
|
827
|
+
});
|
|
1073
828
|
return [2, new __HttpRequest({
|
|
1074
829
|
protocol: protocol,
|
|
1075
830
|
hostname: hostname,
|
|
@@ -1084,25 +839,21 @@ export var serializeAws_restJson1ListChannelMessagesCommand = function (input, c
|
|
|
1084
839
|
});
|
|
1085
840
|
}); };
|
|
1086
841
|
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,
|
|
842
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1088
843
|
return __generator(this, function (_c) {
|
|
1089
844
|
switch (_c.label) {
|
|
1090
845
|
case 0: return [4, context.endpoint()];
|
|
1091
846
|
case 1:
|
|
1092
847
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1093
|
-
headers =
|
|
848
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
849
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
850
|
+
});
|
|
1094
851
|
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 }));
|
|
852
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
853
|
+
query = map({
|
|
854
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
855
|
+
"next-token": [, input.NextToken],
|
|
856
|
+
});
|
|
1106
857
|
return [2, new __HttpRequest({
|
|
1107
858
|
protocol: protocol,
|
|
1108
859
|
hostname: hostname,
|
|
@@ -1123,9 +874,16 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
|
|
|
1123
874
|
case 0: return [4, context.endpoint()];
|
|
1124
875
|
case 1:
|
|
1125
876
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1126
|
-
headers =
|
|
877
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
878
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
879
|
+
});
|
|
1127
880
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1128
|
-
query =
|
|
881
|
+
query = map({
|
|
882
|
+
"app-instance-arn": [, input.AppInstanceArn],
|
|
883
|
+
privacy: [, input.Privacy],
|
|
884
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
885
|
+
"next-token": [, input.NextToken],
|
|
886
|
+
});
|
|
1129
887
|
return [2, new __HttpRequest({
|
|
1130
888
|
protocol: protocol,
|
|
1131
889
|
hostname: hostname,
|
|
@@ -1148,7 +906,12 @@ export var serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand =
|
|
|
1148
906
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1149
907
|
headers = {};
|
|
1150
908
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1151
|
-
query =
|
|
909
|
+
query = map({
|
|
910
|
+
scope: [, "channel-flow-associations"],
|
|
911
|
+
"channel-flow-arn": [, input.ChannelFlowArn],
|
|
912
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
913
|
+
"next-token": [, input.NextToken],
|
|
914
|
+
});
|
|
1152
915
|
return [2, new __HttpRequest({
|
|
1153
916
|
protocol: protocol,
|
|
1154
917
|
hostname: hostname,
|
|
@@ -1169,9 +932,16 @@ export var serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand =
|
|
|
1169
932
|
case 0: return [4, context.endpoint()];
|
|
1170
933
|
case 1:
|
|
1171
934
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1172
|
-
headers =
|
|
935
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
936
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
937
|
+
});
|
|
1173
938
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1174
|
-
query =
|
|
939
|
+
query = map({
|
|
940
|
+
scope: [, "app-instance-user-moderated-channels"],
|
|
941
|
+
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
942
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
943
|
+
"next-token": [, input.NextToken],
|
|
944
|
+
});
|
|
1175
945
|
return [2, new __HttpRequest({
|
|
1176
946
|
protocol: protocol,
|
|
1177
947
|
hostname: hostname,
|
|
@@ -1194,7 +964,9 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1194
964
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1195
965
|
headers = {};
|
|
1196
966
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
1197
|
-
query =
|
|
967
|
+
query = map({
|
|
968
|
+
arn: [, input.ResourceARN],
|
|
969
|
+
});
|
|
1198
970
|
return [2, new __HttpRequest({
|
|
1199
971
|
protocol: protocol,
|
|
1200
972
|
hostname: hostname,
|
|
@@ -1209,35 +981,20 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1209
981
|
});
|
|
1210
982
|
}); };
|
|
1211
983
|
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,
|
|
984
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1213
985
|
return __generator(this, function (_c) {
|
|
1214
986
|
switch (_c.label) {
|
|
1215
987
|
case 0: return [4, context.endpoint()];
|
|
1216
988
|
case 1:
|
|
1217
989
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1218
|
-
headers =
|
|
990
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
991
|
+
"content-type": "application/json",
|
|
992
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
993
|
+
});
|
|
1219
994
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1220
995
|
"/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
|
-
}
|
|
996
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
997
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MemberArn", function () { return input.MemberArn; }, "{MemberArn}", false);
|
|
1241
998
|
body = JSON.stringify(__assign({}, (input.Preferences != null && {
|
|
1242
999
|
Preferences: serializeAws_restJson1ChannelMembershipPreferences(input.Preferences, context),
|
|
1243
1000
|
})));
|
|
@@ -1254,38 +1011,22 @@ export var serializeAws_restJson1PutChannelMembershipPreferencesCommand = functi
|
|
|
1254
1011
|
});
|
|
1255
1012
|
}); };
|
|
1256
1013
|
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,
|
|
1014
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1258
1015
|
return __generator(this, function (_c) {
|
|
1259
1016
|
switch (_c.label) {
|
|
1260
1017
|
case 0: return [4, context.endpoint()];
|
|
1261
1018
|
case 1:
|
|
1262
1019
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1263
|
-
headers =
|
|
1020
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1021
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1022
|
+
});
|
|
1264
1023
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1265
1024
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
resolvedPath = resolvedPath.replace("{ChannelArn}", __extendedEncodeURIComponent(labelValue));
|
|
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
|
-
};
|
|
1025
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1026
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
1027
|
+
query = map({
|
|
1028
|
+
operation: [, "redact"],
|
|
1029
|
+
});
|
|
1289
1030
|
return [2, new __HttpRequest({
|
|
1290
1031
|
protocol: protocol,
|
|
1291
1032
|
hostname: hostname,
|
|
@@ -1306,9 +1047,16 @@ export var serializeAws_restJson1SearchChannelsCommand = function (input, contex
|
|
|
1306
1047
|
case 0: return [4, context.endpoint()];
|
|
1307
1048
|
case 1:
|
|
1308
1049
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1309
|
-
headers =
|
|
1050
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1051
|
+
"content-type": "application/json",
|
|
1052
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1053
|
+
});
|
|
1310
1054
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1311
|
-
query =
|
|
1055
|
+
query = map({
|
|
1056
|
+
operation: [, "search"],
|
|
1057
|
+
"max-results": [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
1058
|
+
"next-token": [, input.NextToken],
|
|
1059
|
+
});
|
|
1312
1060
|
body = JSON.stringify(__assign({}, (input.Fields != null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) })));
|
|
1313
1061
|
return [2, new __HttpRequest({
|
|
1314
1062
|
protocol: protocol,
|
|
@@ -1324,25 +1072,19 @@ export var serializeAws_restJson1SearchChannelsCommand = function (input, contex
|
|
|
1324
1072
|
});
|
|
1325
1073
|
}); };
|
|
1326
1074
|
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,
|
|
1075
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1328
1076
|
var _c;
|
|
1329
1077
|
return __generator(this, function (_d) {
|
|
1330
1078
|
switch (_d.label) {
|
|
1331
1079
|
case 0: return [4, context.endpoint()];
|
|
1332
1080
|
case 1:
|
|
1333
1081
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1334
|
-
headers =
|
|
1082
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1083
|
+
"content-type": "application/json",
|
|
1084
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1085
|
+
});
|
|
1335
1086
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/messages";
|
|
1336
|
-
|
|
1337
|
-
labelValue = input.ChannelArn;
|
|
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
|
-
}
|
|
1087
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1346
1088
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
1347
1089
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
1348
1090
|
})), (input.Metadata != null && { Metadata: input.Metadata })), (input.Persistence != null && { Persistence: input.Persistence })), (input.PushNotification != null && {
|
|
@@ -1371,9 +1113,9 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1371
1113
|
"content-type": "application/json",
|
|
1372
1114
|
};
|
|
1373
1115
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
1374
|
-
query = {
|
|
1375
|
-
operation: "tag-resource",
|
|
1376
|
-
};
|
|
1116
|
+
query = map({
|
|
1117
|
+
operation: [, "tag-resource"],
|
|
1118
|
+
});
|
|
1377
1119
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
1378
1120
|
return [2, new __HttpRequest({
|
|
1379
1121
|
protocol: protocol,
|
|
@@ -1399,9 +1141,9 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1399
1141
|
"content-type": "application/json",
|
|
1400
1142
|
};
|
|
1401
1143
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
1402
|
-
query = {
|
|
1403
|
-
operation: "untag-resource",
|
|
1404
|
-
};
|
|
1144
|
+
query = map({
|
|
1145
|
+
operation: [, "untag-resource"],
|
|
1146
|
+
});
|
|
1405
1147
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
1406
1148
|
return [2, new __HttpRequest({
|
|
1407
1149
|
protocol: protocol,
|
|
@@ -1417,24 +1159,18 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1417
1159
|
});
|
|
1418
1160
|
}); };
|
|
1419
1161
|
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,
|
|
1162
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1421
1163
|
return __generator(this, function (_c) {
|
|
1422
1164
|
switch (_c.label) {
|
|
1423
1165
|
case 0: return [4, context.endpoint()];
|
|
1424
1166
|
case 1:
|
|
1425
1167
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1426
|
-
headers =
|
|
1168
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1169
|
+
"content-type": "application/json",
|
|
1170
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1171
|
+
});
|
|
1427
1172
|
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
|
-
}
|
|
1173
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1438
1174
|
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
1175
|
return [2, new __HttpRequest({
|
|
1440
1176
|
protocol: protocol,
|
|
@@ -1449,7 +1185,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
1449
1185
|
});
|
|
1450
1186
|
}); };
|
|
1451
1187
|
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,
|
|
1188
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1453
1189
|
return __generator(this, function (_c) {
|
|
1454
1190
|
switch (_c.label) {
|
|
1455
1191
|
case 0: return [4, context.endpoint()];
|
|
@@ -1459,16 +1195,7 @@ export var serializeAws_restJson1UpdateChannelFlowCommand = function (input, con
|
|
|
1459
1195
|
"content-type": "application/json",
|
|
1460
1196
|
};
|
|
1461
1197
|
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
|
-
}
|
|
1198
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelFlowArn", function () { return input.ChannelFlowArn; }, "{ChannelFlowArn}", false);
|
|
1472
1199
|
body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) })));
|
|
1473
1200
|
return [2, new __HttpRequest({
|
|
1474
1201
|
protocol: protocol,
|
|
@@ -1483,35 +1210,20 @@ export var serializeAws_restJson1UpdateChannelFlowCommand = function (input, con
|
|
|
1483
1210
|
});
|
|
1484
1211
|
}); };
|
|
1485
1212
|
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,
|
|
1213
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1487
1214
|
return __generator(this, function (_c) {
|
|
1488
1215
|
switch (_c.label) {
|
|
1489
1216
|
case 0: return [4, context.endpoint()];
|
|
1490
1217
|
case 1:
|
|
1491
1218
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1492
|
-
headers =
|
|
1219
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1220
|
+
"content-type": "application/json",
|
|
1221
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1222
|
+
});
|
|
1493
1223
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1494
1224
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
if (labelValue.length <= 0) {
|
|
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
|
-
}
|
|
1225
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1226
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MessageId", function () { return input.MessageId; }, "{MessageId}", false);
|
|
1515
1227
|
body = JSON.stringify(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })));
|
|
1516
1228
|
return [2, new __HttpRequest({
|
|
1517
1229
|
protocol: protocol,
|
|
@@ -1526,24 +1238,17 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
|
|
|
1526
1238
|
});
|
|
1527
1239
|
}); };
|
|
1528
1240
|
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,
|
|
1241
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1530
1242
|
return __generator(this, function (_c) {
|
|
1531
1243
|
switch (_c.label) {
|
|
1532
1244
|
case 0: return [4, context.endpoint()];
|
|
1533
1245
|
case 1:
|
|
1534
1246
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1535
|
-
headers =
|
|
1247
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1248
|
+
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1249
|
+
});
|
|
1536
1250
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{ChannelArn}/readMarker";
|
|
1537
|
-
|
|
1538
|
-
labelValue = input.ChannelArn;
|
|
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
|
-
}
|
|
1251
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ChannelArn", function () { return input.ChannelArn; }, "{ChannelArn}", false);
|
|
1547
1252
|
return [2, new __HttpRequest({
|
|
1548
1253
|
protocol: protocol,
|
|
1549
1254
|
hostname: hostname,
|
|
@@ -1564,18 +1269,18 @@ export var deserializeAws_restJson1AssociateChannelFlowCommand = function (outpu
|
|
|
1564
1269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
1270
|
return [2, deserializeAws_restJson1AssociateChannelFlowCommandError(output, context)];
|
|
1566
1271
|
}
|
|
1567
|
-
contents = {
|
|
1272
|
+
contents = map({
|
|
1568
1273
|
$metadata: deserializeMetadata(output),
|
|
1569
|
-
};
|
|
1274
|
+
});
|
|
1570
1275
|
return [4, collectBody(output.body, context)];
|
|
1571
1276
|
case 1:
|
|
1572
1277
|
_a.sent();
|
|
1573
|
-
return [2,
|
|
1278
|
+
return [2, contents];
|
|
1574
1279
|
}
|
|
1575
1280
|
});
|
|
1576
1281
|
}); };
|
|
1577
1282
|
var deserializeAws_restJson1AssociateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1578
|
-
var parsedOutput, _a,
|
|
1283
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1579
1284
|
var _c;
|
|
1580
1285
|
return __generator(this, function (_d) {
|
|
1581
1286
|
switch (_d.label) {
|
|
@@ -1624,14 +1329,14 @@ var deserializeAws_restJson1AssociateChannelFlowCommandError = function (output,
|
|
|
1624
1329
|
case 17: throw _d.sent();
|
|
1625
1330
|
case 18:
|
|
1626
1331
|
parsedBody = parsedOutput.body;
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
$metadata: $metadata,
|
|
1332
|
+
throwDefaultError({
|
|
1333
|
+
output: output,
|
|
1334
|
+
parsedBody: parsedBody,
|
|
1335
|
+
exceptionCtor: __BaseException,
|
|
1336
|
+
errorCode: errorCode,
|
|
1633
1337
|
});
|
|
1634
|
-
|
|
1338
|
+
_d.label = 19;
|
|
1339
|
+
case 19: return [2];
|
|
1635
1340
|
}
|
|
1636
1341
|
});
|
|
1637
1342
|
}); };
|
|
@@ -1643,28 +1348,26 @@ export var deserializeAws_restJson1BatchCreateChannelMembershipCommand = functio
|
|
|
1643
1348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1644
1349
|
return [2, deserializeAws_restJson1BatchCreateChannelMembershipCommandError(output, context)];
|
|
1645
1350
|
}
|
|
1646
|
-
contents = {
|
|
1351
|
+
contents = map({
|
|
1647
1352
|
$metadata: deserializeMetadata(output),
|
|
1648
|
-
|
|
1649
|
-
Errors: undefined,
|
|
1650
|
-
};
|
|
1353
|
+
});
|
|
1651
1354
|
_a = __expectNonNull;
|
|
1652
1355
|
_b = __expectObject;
|
|
1653
1356
|
return [4, parseBody(output.body, context)];
|
|
1654
1357
|
case 1:
|
|
1655
1358
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1656
|
-
if (data.BatchChannelMemberships
|
|
1359
|
+
if (data.BatchChannelMemberships != null) {
|
|
1657
1360
|
contents.BatchChannelMemberships = deserializeAws_restJson1BatchChannelMemberships(data.BatchChannelMemberships, context);
|
|
1658
1361
|
}
|
|
1659
|
-
if (data.Errors
|
|
1362
|
+
if (data.Errors != null) {
|
|
1660
1363
|
contents.Errors = deserializeAws_restJson1BatchCreateChannelMembershipErrors(data.Errors, context);
|
|
1661
1364
|
}
|
|
1662
|
-
return [2,
|
|
1365
|
+
return [2, contents];
|
|
1663
1366
|
}
|
|
1664
1367
|
});
|
|
1665
1368
|
}); };
|
|
1666
1369
|
var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1667
|
-
var parsedOutput, _a,
|
|
1370
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1668
1371
|
var _c;
|
|
1669
1372
|
return __generator(this, function (_d) {
|
|
1670
1373
|
switch (_d.label) {
|
|
@@ -1705,14 +1408,14 @@ var deserializeAws_restJson1BatchCreateChannelMembershipCommandError = function
|
|
|
1705
1408
|
case 13: throw _d.sent();
|
|
1706
1409
|
case 14:
|
|
1707
1410
|
parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
$metadata: $metadata,
|
|
1411
|
+
throwDefaultError({
|
|
1412
|
+
output: output,
|
|
1413
|
+
parsedBody: parsedBody,
|
|
1414
|
+
exceptionCtor: __BaseException,
|
|
1415
|
+
errorCode: errorCode,
|
|
1714
1416
|
});
|
|
1715
|
-
|
|
1417
|
+
_d.label = 15;
|
|
1418
|
+
case 15: return [2];
|
|
1716
1419
|
}
|
|
1717
1420
|
});
|
|
1718
1421
|
}); };
|
|
@@ -1724,28 +1427,26 @@ export var deserializeAws_restJson1ChannelFlowCallbackCommand = function (output
|
|
|
1724
1427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1725
1428
|
return [2, deserializeAws_restJson1ChannelFlowCallbackCommandError(output, context)];
|
|
1726
1429
|
}
|
|
1727
|
-
contents = {
|
|
1430
|
+
contents = map({
|
|
1728
1431
|
$metadata: deserializeMetadata(output),
|
|
1729
|
-
|
|
1730
|
-
ChannelArn: undefined,
|
|
1731
|
-
};
|
|
1432
|
+
});
|
|
1732
1433
|
_a = __expectNonNull;
|
|
1733
1434
|
_b = __expectObject;
|
|
1734
1435
|
return [4, parseBody(output.body, context)];
|
|
1735
1436
|
case 1:
|
|
1736
1437
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1737
|
-
if (data.CallbackId
|
|
1438
|
+
if (data.CallbackId != null) {
|
|
1738
1439
|
contents.CallbackId = __expectString(data.CallbackId);
|
|
1739
1440
|
}
|
|
1740
|
-
if (data.ChannelArn
|
|
1441
|
+
if (data.ChannelArn != null) {
|
|
1741
1442
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1742
1443
|
}
|
|
1743
|
-
return [2,
|
|
1444
|
+
return [2, contents];
|
|
1744
1445
|
}
|
|
1745
1446
|
});
|
|
1746
1447
|
}); };
|
|
1747
1448
|
var deserializeAws_restJson1ChannelFlowCallbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var parsedOutput, _a,
|
|
1449
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1749
1450
|
var _c;
|
|
1750
1451
|
return __generator(this, function (_d) {
|
|
1751
1452
|
switch (_d.label) {
|
|
@@ -1790,14 +1491,14 @@ var deserializeAws_restJson1ChannelFlowCallbackCommandError = function (output,
|
|
|
1790
1491
|
case 15: throw _d.sent();
|
|
1791
1492
|
case 16:
|
|
1792
1493
|
parsedBody = parsedOutput.body;
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
$metadata: $metadata,
|
|
1494
|
+
throwDefaultError({
|
|
1495
|
+
output: output,
|
|
1496
|
+
parsedBody: parsedBody,
|
|
1497
|
+
exceptionCtor: __BaseException,
|
|
1498
|
+
errorCode: errorCode,
|
|
1799
1499
|
});
|
|
1800
|
-
|
|
1500
|
+
_d.label = 17;
|
|
1501
|
+
case 17: return [2];
|
|
1801
1502
|
}
|
|
1802
1503
|
});
|
|
1803
1504
|
}); };
|
|
@@ -1809,24 +1510,23 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1809
1510
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1810
1511
|
return [2, deserializeAws_restJson1CreateChannelCommandError(output, context)];
|
|
1811
1512
|
}
|
|
1812
|
-
contents = {
|
|
1513
|
+
contents = map({
|
|
1813
1514
|
$metadata: deserializeMetadata(output),
|
|
1814
|
-
|
|
1815
|
-
};
|
|
1515
|
+
});
|
|
1816
1516
|
_a = __expectNonNull;
|
|
1817
1517
|
_b = __expectObject;
|
|
1818
1518
|
return [4, parseBody(output.body, context)];
|
|
1819
1519
|
case 1:
|
|
1820
1520
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1821
|
-
if (data.ChannelArn
|
|
1521
|
+
if (data.ChannelArn != null) {
|
|
1822
1522
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1823
1523
|
}
|
|
1824
|
-
return [2,
|
|
1524
|
+
return [2, contents];
|
|
1825
1525
|
}
|
|
1826
1526
|
});
|
|
1827
1527
|
}); };
|
|
1828
1528
|
var deserializeAws_restJson1CreateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1829
|
-
var parsedOutput, _a,
|
|
1529
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1830
1530
|
var _c;
|
|
1831
1531
|
return __generator(this, function (_d) {
|
|
1832
1532
|
switch (_d.label) {
|
|
@@ -1875,14 +1575,14 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1875
1575
|
case 17: throw _d.sent();
|
|
1876
1576
|
case 18:
|
|
1877
1577
|
parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
$metadata: $metadata,
|
|
1578
|
+
throwDefaultError({
|
|
1579
|
+
output: output,
|
|
1580
|
+
parsedBody: parsedBody,
|
|
1581
|
+
exceptionCtor: __BaseException,
|
|
1582
|
+
errorCode: errorCode,
|
|
1884
1583
|
});
|
|
1885
|
-
|
|
1584
|
+
_d.label = 19;
|
|
1585
|
+
case 19: return [2];
|
|
1886
1586
|
}
|
|
1887
1587
|
});
|
|
1888
1588
|
}); };
|
|
@@ -1894,28 +1594,26 @@ export var deserializeAws_restJson1CreateChannelBanCommand = function (output, c
|
|
|
1894
1594
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1895
1595
|
return [2, deserializeAws_restJson1CreateChannelBanCommandError(output, context)];
|
|
1896
1596
|
}
|
|
1897
|
-
contents = {
|
|
1597
|
+
contents = map({
|
|
1898
1598
|
$metadata: deserializeMetadata(output),
|
|
1899
|
-
|
|
1900
|
-
Member: undefined,
|
|
1901
|
-
};
|
|
1599
|
+
});
|
|
1902
1600
|
_a = __expectNonNull;
|
|
1903
1601
|
_b = __expectObject;
|
|
1904
1602
|
return [4, parseBody(output.body, context)];
|
|
1905
1603
|
case 1:
|
|
1906
1604
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1907
|
-
if (data.ChannelArn
|
|
1605
|
+
if (data.ChannelArn != null) {
|
|
1908
1606
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
1909
1607
|
}
|
|
1910
|
-
if (data.Member
|
|
1608
|
+
if (data.Member != null) {
|
|
1911
1609
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
1912
1610
|
}
|
|
1913
|
-
return [2,
|
|
1611
|
+
return [2, contents];
|
|
1914
1612
|
}
|
|
1915
1613
|
});
|
|
1916
1614
|
}); };
|
|
1917
1615
|
var deserializeAws_restJson1CreateChannelBanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1918
|
-
var parsedOutput, _a,
|
|
1616
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1919
1617
|
var _c;
|
|
1920
1618
|
return __generator(this, function (_d) {
|
|
1921
1619
|
switch (_d.label) {
|
|
@@ -1964,14 +1662,14 @@ var deserializeAws_restJson1CreateChannelBanCommandError = function (output, con
|
|
|
1964
1662
|
case 17: throw _d.sent();
|
|
1965
1663
|
case 18:
|
|
1966
1664
|
parsedBody = parsedOutput.body;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
$metadata: $metadata,
|
|
1665
|
+
throwDefaultError({
|
|
1666
|
+
output: output,
|
|
1667
|
+
parsedBody: parsedBody,
|
|
1668
|
+
exceptionCtor: __BaseException,
|
|
1669
|
+
errorCode: errorCode,
|
|
1973
1670
|
});
|
|
1974
|
-
|
|
1671
|
+
_d.label = 19;
|
|
1672
|
+
case 19: return [2];
|
|
1975
1673
|
}
|
|
1976
1674
|
});
|
|
1977
1675
|
}); };
|
|
@@ -1983,24 +1681,23 @@ export var deserializeAws_restJson1CreateChannelFlowCommand = function (output,
|
|
|
1983
1681
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1984
1682
|
return [2, deserializeAws_restJson1CreateChannelFlowCommandError(output, context)];
|
|
1985
1683
|
}
|
|
1986
|
-
contents = {
|
|
1684
|
+
contents = map({
|
|
1987
1685
|
$metadata: deserializeMetadata(output),
|
|
1988
|
-
|
|
1989
|
-
};
|
|
1686
|
+
});
|
|
1990
1687
|
_a = __expectNonNull;
|
|
1991
1688
|
_b = __expectObject;
|
|
1992
1689
|
return [4, parseBody(output.body, context)];
|
|
1993
1690
|
case 1:
|
|
1994
1691
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1995
|
-
if (data.ChannelFlowArn
|
|
1692
|
+
if (data.ChannelFlowArn != null) {
|
|
1996
1693
|
contents.ChannelFlowArn = __expectString(data.ChannelFlowArn);
|
|
1997
1694
|
}
|
|
1998
|
-
return [2,
|
|
1695
|
+
return [2, contents];
|
|
1999
1696
|
}
|
|
2000
1697
|
});
|
|
2001
1698
|
}); };
|
|
2002
1699
|
var deserializeAws_restJson1CreateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2003
|
-
var parsedOutput, _a,
|
|
1700
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2004
1701
|
var _c;
|
|
2005
1702
|
return __generator(this, function (_d) {
|
|
2006
1703
|
switch (_d.label) {
|
|
@@ -2049,14 +1746,14 @@ var deserializeAws_restJson1CreateChannelFlowCommandError = function (output, co
|
|
|
2049
1746
|
case 17: throw _d.sent();
|
|
2050
1747
|
case 18:
|
|
2051
1748
|
parsedBody = parsedOutput.body;
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
$metadata: $metadata,
|
|
1749
|
+
throwDefaultError({
|
|
1750
|
+
output: output,
|
|
1751
|
+
parsedBody: parsedBody,
|
|
1752
|
+
exceptionCtor: __BaseException,
|
|
1753
|
+
errorCode: errorCode,
|
|
2058
1754
|
});
|
|
2059
|
-
|
|
1755
|
+
_d.label = 19;
|
|
1756
|
+
case 19: return [2];
|
|
2060
1757
|
}
|
|
2061
1758
|
});
|
|
2062
1759
|
}); };
|
|
@@ -2068,28 +1765,26 @@ export var deserializeAws_restJson1CreateChannelMembershipCommand = function (ou
|
|
|
2068
1765
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2069
1766
|
return [2, deserializeAws_restJson1CreateChannelMembershipCommandError(output, context)];
|
|
2070
1767
|
}
|
|
2071
|
-
contents = {
|
|
1768
|
+
contents = map({
|
|
2072
1769
|
$metadata: deserializeMetadata(output),
|
|
2073
|
-
|
|
2074
|
-
Member: undefined,
|
|
2075
|
-
};
|
|
1770
|
+
});
|
|
2076
1771
|
_a = __expectNonNull;
|
|
2077
1772
|
_b = __expectObject;
|
|
2078
1773
|
return [4, parseBody(output.body, context)];
|
|
2079
1774
|
case 1:
|
|
2080
1775
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2081
|
-
if (data.ChannelArn
|
|
1776
|
+
if (data.ChannelArn != null) {
|
|
2082
1777
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
2083
1778
|
}
|
|
2084
|
-
if (data.Member
|
|
1779
|
+
if (data.Member != null) {
|
|
2085
1780
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
2086
1781
|
}
|
|
2087
|
-
return [2,
|
|
1782
|
+
return [2, contents];
|
|
2088
1783
|
}
|
|
2089
1784
|
});
|
|
2090
1785
|
}); };
|
|
2091
1786
|
var deserializeAws_restJson1CreateChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2092
|
-
var parsedOutput, _a,
|
|
1787
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2093
1788
|
var _c;
|
|
2094
1789
|
return __generator(this, function (_d) {
|
|
2095
1790
|
switch (_d.label) {
|
|
@@ -2138,14 +1833,14 @@ var deserializeAws_restJson1CreateChannelMembershipCommandError = function (outp
|
|
|
2138
1833
|
case 17: throw _d.sent();
|
|
2139
1834
|
case 18:
|
|
2140
1835
|
parsedBody = parsedOutput.body;
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
$metadata: $metadata,
|
|
1836
|
+
throwDefaultError({
|
|
1837
|
+
output: output,
|
|
1838
|
+
parsedBody: parsedBody,
|
|
1839
|
+
exceptionCtor: __BaseException,
|
|
1840
|
+
errorCode: errorCode,
|
|
2147
1841
|
});
|
|
2148
|
-
|
|
1842
|
+
_d.label = 19;
|
|
1843
|
+
case 19: return [2];
|
|
2149
1844
|
}
|
|
2150
1845
|
});
|
|
2151
1846
|
}); };
|
|
@@ -2157,28 +1852,26 @@ export var deserializeAws_restJson1CreateChannelModeratorCommand = function (out
|
|
|
2157
1852
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2158
1853
|
return [2, deserializeAws_restJson1CreateChannelModeratorCommandError(output, context)];
|
|
2159
1854
|
}
|
|
2160
|
-
contents = {
|
|
1855
|
+
contents = map({
|
|
2161
1856
|
$metadata: deserializeMetadata(output),
|
|
2162
|
-
|
|
2163
|
-
ChannelModerator: undefined,
|
|
2164
|
-
};
|
|
1857
|
+
});
|
|
2165
1858
|
_a = __expectNonNull;
|
|
2166
1859
|
_b = __expectObject;
|
|
2167
1860
|
return [4, parseBody(output.body, context)];
|
|
2168
1861
|
case 1:
|
|
2169
1862
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2170
|
-
if (data.ChannelArn
|
|
1863
|
+
if (data.ChannelArn != null) {
|
|
2171
1864
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
2172
1865
|
}
|
|
2173
|
-
if (data.ChannelModerator
|
|
1866
|
+
if (data.ChannelModerator != null) {
|
|
2174
1867
|
contents.ChannelModerator = deserializeAws_restJson1Identity(data.ChannelModerator, context);
|
|
2175
1868
|
}
|
|
2176
|
-
return [2,
|
|
1869
|
+
return [2, contents];
|
|
2177
1870
|
}
|
|
2178
1871
|
});
|
|
2179
1872
|
}); };
|
|
2180
1873
|
var deserializeAws_restJson1CreateChannelModeratorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2181
|
-
var parsedOutput, _a,
|
|
1874
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2182
1875
|
var _c;
|
|
2183
1876
|
return __generator(this, function (_d) {
|
|
2184
1877
|
switch (_d.label) {
|
|
@@ -2227,14 +1920,14 @@ var deserializeAws_restJson1CreateChannelModeratorCommandError = function (outpu
|
|
|
2227
1920
|
case 17: throw _d.sent();
|
|
2228
1921
|
case 18:
|
|
2229
1922
|
parsedBody = parsedOutput.body;
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
$metadata: $metadata,
|
|
1923
|
+
throwDefaultError({
|
|
1924
|
+
output: output,
|
|
1925
|
+
parsedBody: parsedBody,
|
|
1926
|
+
exceptionCtor: __BaseException,
|
|
1927
|
+
errorCode: errorCode,
|
|
2236
1928
|
});
|
|
2237
|
-
|
|
1929
|
+
_d.label = 19;
|
|
1930
|
+
case 19: return [2];
|
|
2238
1931
|
}
|
|
2239
1932
|
});
|
|
2240
1933
|
}); };
|
|
@@ -2246,18 +1939,18 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
|
|
|
2246
1939
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2247
1940
|
return [2, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
|
|
2248
1941
|
}
|
|
2249
|
-
contents = {
|
|
1942
|
+
contents = map({
|
|
2250
1943
|
$metadata: deserializeMetadata(output),
|
|
2251
|
-
};
|
|
1944
|
+
});
|
|
2252
1945
|
return [4, collectBody(output.body, context)];
|
|
2253
1946
|
case 1:
|
|
2254
1947
|
_a.sent();
|
|
2255
|
-
return [2,
|
|
1948
|
+
return [2, contents];
|
|
2256
1949
|
}
|
|
2257
1950
|
});
|
|
2258
1951
|
}); };
|
|
2259
1952
|
var deserializeAws_restJson1DeleteChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2260
|
-
var parsedOutput, _a,
|
|
1953
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2261
1954
|
var _c;
|
|
2262
1955
|
return __generator(this, function (_d) {
|
|
2263
1956
|
switch (_d.label) {
|
|
@@ -2298,14 +1991,14 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
2298
1991
|
case 13: throw _d.sent();
|
|
2299
1992
|
case 14:
|
|
2300
1993
|
parsedBody = parsedOutput.body;
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
$metadata: $metadata,
|
|
1994
|
+
throwDefaultError({
|
|
1995
|
+
output: output,
|
|
1996
|
+
parsedBody: parsedBody,
|
|
1997
|
+
exceptionCtor: __BaseException,
|
|
1998
|
+
errorCode: errorCode,
|
|
2307
1999
|
});
|
|
2308
|
-
|
|
2000
|
+
_d.label = 15;
|
|
2001
|
+
case 15: return [2];
|
|
2309
2002
|
}
|
|
2310
2003
|
});
|
|
2311
2004
|
}); };
|
|
@@ -2317,18 +2010,18 @@ export var deserializeAws_restJson1DeleteChannelBanCommand = function (output, c
|
|
|
2317
2010
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2318
2011
|
return [2, deserializeAws_restJson1DeleteChannelBanCommandError(output, context)];
|
|
2319
2012
|
}
|
|
2320
|
-
contents = {
|
|
2013
|
+
contents = map({
|
|
2321
2014
|
$metadata: deserializeMetadata(output),
|
|
2322
|
-
};
|
|
2015
|
+
});
|
|
2323
2016
|
return [4, collectBody(output.body, context)];
|
|
2324
2017
|
case 1:
|
|
2325
2018
|
_a.sent();
|
|
2326
|
-
return [2,
|
|
2019
|
+
return [2, contents];
|
|
2327
2020
|
}
|
|
2328
2021
|
});
|
|
2329
2022
|
}); };
|
|
2330
2023
|
var deserializeAws_restJson1DeleteChannelBanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2331
|
-
var parsedOutput, _a,
|
|
2024
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2332
2025
|
var _c;
|
|
2333
2026
|
return __generator(this, function (_d) {
|
|
2334
2027
|
switch (_d.label) {
|
|
@@ -2369,14 +2062,14 @@ var deserializeAws_restJson1DeleteChannelBanCommandError = function (output, con
|
|
|
2369
2062
|
case 13: throw _d.sent();
|
|
2370
2063
|
case 14:
|
|
2371
2064
|
parsedBody = parsedOutput.body;
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
$metadata: $metadata,
|
|
2065
|
+
throwDefaultError({
|
|
2066
|
+
output: output,
|
|
2067
|
+
parsedBody: parsedBody,
|
|
2068
|
+
exceptionCtor: __BaseException,
|
|
2069
|
+
errorCode: errorCode,
|
|
2378
2070
|
});
|
|
2379
|
-
|
|
2071
|
+
_d.label = 15;
|
|
2072
|
+
case 15: return [2];
|
|
2380
2073
|
}
|
|
2381
2074
|
});
|
|
2382
2075
|
}); };
|
|
@@ -2388,18 +2081,18 @@ export var deserializeAws_restJson1DeleteChannelFlowCommand = function (output,
|
|
|
2388
2081
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2389
2082
|
return [2, deserializeAws_restJson1DeleteChannelFlowCommandError(output, context)];
|
|
2390
2083
|
}
|
|
2391
|
-
contents = {
|
|
2084
|
+
contents = map({
|
|
2392
2085
|
$metadata: deserializeMetadata(output),
|
|
2393
|
-
};
|
|
2086
|
+
});
|
|
2394
2087
|
return [4, collectBody(output.body, context)];
|
|
2395
2088
|
case 1:
|
|
2396
2089
|
_a.sent();
|
|
2397
|
-
return [2,
|
|
2090
|
+
return [2, contents];
|
|
2398
2091
|
}
|
|
2399
2092
|
});
|
|
2400
2093
|
}); };
|
|
2401
2094
|
var deserializeAws_restJson1DeleteChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2402
|
-
var parsedOutput, _a,
|
|
2095
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2403
2096
|
var _c;
|
|
2404
2097
|
return __generator(this, function (_d) {
|
|
2405
2098
|
switch (_d.label) {
|
|
@@ -2444,14 +2137,14 @@ var deserializeAws_restJson1DeleteChannelFlowCommandError = function (output, co
|
|
|
2444
2137
|
case 15: throw _d.sent();
|
|
2445
2138
|
case 16:
|
|
2446
2139
|
parsedBody = parsedOutput.body;
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
$metadata: $metadata,
|
|
2140
|
+
throwDefaultError({
|
|
2141
|
+
output: output,
|
|
2142
|
+
parsedBody: parsedBody,
|
|
2143
|
+
exceptionCtor: __BaseException,
|
|
2144
|
+
errorCode: errorCode,
|
|
2453
2145
|
});
|
|
2454
|
-
|
|
2146
|
+
_d.label = 17;
|
|
2147
|
+
case 17: return [2];
|
|
2455
2148
|
}
|
|
2456
2149
|
});
|
|
2457
2150
|
}); };
|
|
@@ -2463,18 +2156,18 @@ export var deserializeAws_restJson1DeleteChannelMembershipCommand = function (ou
|
|
|
2463
2156
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2464
2157
|
return [2, deserializeAws_restJson1DeleteChannelMembershipCommandError(output, context)];
|
|
2465
2158
|
}
|
|
2466
|
-
contents = {
|
|
2159
|
+
contents = map({
|
|
2467
2160
|
$metadata: deserializeMetadata(output),
|
|
2468
|
-
};
|
|
2161
|
+
});
|
|
2469
2162
|
return [4, collectBody(output.body, context)];
|
|
2470
2163
|
case 1:
|
|
2471
2164
|
_a.sent();
|
|
2472
|
-
return [2,
|
|
2165
|
+
return [2, contents];
|
|
2473
2166
|
}
|
|
2474
2167
|
});
|
|
2475
2168
|
}); };
|
|
2476
2169
|
var deserializeAws_restJson1DeleteChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2477
|
-
var parsedOutput, _a,
|
|
2170
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2478
2171
|
var _c;
|
|
2479
2172
|
return __generator(this, function (_d) {
|
|
2480
2173
|
switch (_d.label) {
|
|
@@ -2519,14 +2212,14 @@ var deserializeAws_restJson1DeleteChannelMembershipCommandError = function (outp
|
|
|
2519
2212
|
case 15: throw _d.sent();
|
|
2520
2213
|
case 16:
|
|
2521
2214
|
parsedBody = parsedOutput.body;
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
$metadata: $metadata,
|
|
2215
|
+
throwDefaultError({
|
|
2216
|
+
output: output,
|
|
2217
|
+
parsedBody: parsedBody,
|
|
2218
|
+
exceptionCtor: __BaseException,
|
|
2219
|
+
errorCode: errorCode,
|
|
2528
2220
|
});
|
|
2529
|
-
|
|
2221
|
+
_d.label = 17;
|
|
2222
|
+
case 17: return [2];
|
|
2530
2223
|
}
|
|
2531
2224
|
});
|
|
2532
2225
|
}); };
|
|
@@ -2538,18 +2231,18 @@ export var deserializeAws_restJson1DeleteChannelMessageCommand = function (outpu
|
|
|
2538
2231
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2539
2232
|
return [2, deserializeAws_restJson1DeleteChannelMessageCommandError(output, context)];
|
|
2540
2233
|
}
|
|
2541
|
-
contents = {
|
|
2234
|
+
contents = map({
|
|
2542
2235
|
$metadata: deserializeMetadata(output),
|
|
2543
|
-
};
|
|
2236
|
+
});
|
|
2544
2237
|
return [4, collectBody(output.body, context)];
|
|
2545
2238
|
case 1:
|
|
2546
2239
|
_a.sent();
|
|
2547
|
-
return [2,
|
|
2240
|
+
return [2, contents];
|
|
2548
2241
|
}
|
|
2549
2242
|
});
|
|
2550
2243
|
}); };
|
|
2551
2244
|
var deserializeAws_restJson1DeleteChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2552
|
-
var parsedOutput, _a,
|
|
2245
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2553
2246
|
var _c;
|
|
2554
2247
|
return __generator(this, function (_d) {
|
|
2555
2248
|
switch (_d.label) {
|
|
@@ -2590,14 +2283,14 @@ var deserializeAws_restJson1DeleteChannelMessageCommandError = function (output,
|
|
|
2590
2283
|
case 13: throw _d.sent();
|
|
2591
2284
|
case 14:
|
|
2592
2285
|
parsedBody = parsedOutput.body;
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
$metadata: $metadata,
|
|
2286
|
+
throwDefaultError({
|
|
2287
|
+
output: output,
|
|
2288
|
+
parsedBody: parsedBody,
|
|
2289
|
+
exceptionCtor: __BaseException,
|
|
2290
|
+
errorCode: errorCode,
|
|
2599
2291
|
});
|
|
2600
|
-
|
|
2292
|
+
_d.label = 15;
|
|
2293
|
+
case 15: return [2];
|
|
2601
2294
|
}
|
|
2602
2295
|
});
|
|
2603
2296
|
}); };
|
|
@@ -2609,18 +2302,18 @@ export var deserializeAws_restJson1DeleteChannelModeratorCommand = function (out
|
|
|
2609
2302
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2610
2303
|
return [2, deserializeAws_restJson1DeleteChannelModeratorCommandError(output, context)];
|
|
2611
2304
|
}
|
|
2612
|
-
contents = {
|
|
2305
|
+
contents = map({
|
|
2613
2306
|
$metadata: deserializeMetadata(output),
|
|
2614
|
-
};
|
|
2307
|
+
});
|
|
2615
2308
|
return [4, collectBody(output.body, context)];
|
|
2616
2309
|
case 1:
|
|
2617
2310
|
_a.sent();
|
|
2618
|
-
return [2,
|
|
2311
|
+
return [2, contents];
|
|
2619
2312
|
}
|
|
2620
2313
|
});
|
|
2621
2314
|
}); };
|
|
2622
2315
|
var deserializeAws_restJson1DeleteChannelModeratorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2623
|
-
var parsedOutput, _a,
|
|
2316
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2624
2317
|
var _c;
|
|
2625
2318
|
return __generator(this, function (_d) {
|
|
2626
2319
|
switch (_d.label) {
|
|
@@ -2661,14 +2354,14 @@ var deserializeAws_restJson1DeleteChannelModeratorCommandError = function (outpu
|
|
|
2661
2354
|
case 13: throw _d.sent();
|
|
2662
2355
|
case 14:
|
|
2663
2356
|
parsedBody = parsedOutput.body;
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
$metadata: $metadata,
|
|
2357
|
+
throwDefaultError({
|
|
2358
|
+
output: output,
|
|
2359
|
+
parsedBody: parsedBody,
|
|
2360
|
+
exceptionCtor: __BaseException,
|
|
2361
|
+
errorCode: errorCode,
|
|
2670
2362
|
});
|
|
2671
|
-
|
|
2363
|
+
_d.label = 15;
|
|
2364
|
+
case 15: return [2];
|
|
2672
2365
|
}
|
|
2673
2366
|
});
|
|
2674
2367
|
}); };
|
|
@@ -2680,24 +2373,23 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2680
2373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2681
2374
|
return [2, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
|
|
2682
2375
|
}
|
|
2683
|
-
contents = {
|
|
2376
|
+
contents = map({
|
|
2684
2377
|
$metadata: deserializeMetadata(output),
|
|
2685
|
-
|
|
2686
|
-
};
|
|
2378
|
+
});
|
|
2687
2379
|
_a = __expectNonNull;
|
|
2688
2380
|
_b = __expectObject;
|
|
2689
2381
|
return [4, parseBody(output.body, context)];
|
|
2690
2382
|
case 1:
|
|
2691
2383
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2692
|
-
if (data.Channel
|
|
2384
|
+
if (data.Channel != null) {
|
|
2693
2385
|
contents.Channel = deserializeAws_restJson1Channel(data.Channel, context);
|
|
2694
2386
|
}
|
|
2695
|
-
return [2,
|
|
2387
|
+
return [2, contents];
|
|
2696
2388
|
}
|
|
2697
2389
|
});
|
|
2698
2390
|
}); };
|
|
2699
2391
|
var deserializeAws_restJson1DescribeChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2700
|
-
var parsedOutput, _a,
|
|
2392
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2701
2393
|
var _c;
|
|
2702
2394
|
return __generator(this, function (_d) {
|
|
2703
2395
|
switch (_d.label) {
|
|
@@ -2738,14 +2430,14 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2738
2430
|
case 13: throw _d.sent();
|
|
2739
2431
|
case 14:
|
|
2740
2432
|
parsedBody = parsedOutput.body;
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
$metadata: $metadata,
|
|
2433
|
+
throwDefaultError({
|
|
2434
|
+
output: output,
|
|
2435
|
+
parsedBody: parsedBody,
|
|
2436
|
+
exceptionCtor: __BaseException,
|
|
2437
|
+
errorCode: errorCode,
|
|
2747
2438
|
});
|
|
2748
|
-
|
|
2439
|
+
_d.label = 15;
|
|
2440
|
+
case 15: return [2];
|
|
2749
2441
|
}
|
|
2750
2442
|
});
|
|
2751
2443
|
}); };
|
|
@@ -2757,24 +2449,23 @@ export var deserializeAws_restJson1DescribeChannelBanCommand = function (output,
|
|
|
2757
2449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2758
2450
|
return [2, deserializeAws_restJson1DescribeChannelBanCommandError(output, context)];
|
|
2759
2451
|
}
|
|
2760
|
-
contents = {
|
|
2452
|
+
contents = map({
|
|
2761
2453
|
$metadata: deserializeMetadata(output),
|
|
2762
|
-
|
|
2763
|
-
};
|
|
2454
|
+
});
|
|
2764
2455
|
_a = __expectNonNull;
|
|
2765
2456
|
_b = __expectObject;
|
|
2766
2457
|
return [4, parseBody(output.body, context)];
|
|
2767
2458
|
case 1:
|
|
2768
2459
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2769
|
-
if (data.ChannelBan
|
|
2460
|
+
if (data.ChannelBan != null) {
|
|
2770
2461
|
contents.ChannelBan = deserializeAws_restJson1ChannelBan(data.ChannelBan, context);
|
|
2771
2462
|
}
|
|
2772
|
-
return [2,
|
|
2463
|
+
return [2, contents];
|
|
2773
2464
|
}
|
|
2774
2465
|
});
|
|
2775
2466
|
}); };
|
|
2776
2467
|
var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2777
|
-
var parsedOutput, _a,
|
|
2468
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2778
2469
|
var _c;
|
|
2779
2470
|
return __generator(this, function (_d) {
|
|
2780
2471
|
switch (_d.label) {
|
|
@@ -2819,14 +2510,14 @@ var deserializeAws_restJson1DescribeChannelBanCommandError = function (output, c
|
|
|
2819
2510
|
case 15: throw _d.sent();
|
|
2820
2511
|
case 16:
|
|
2821
2512
|
parsedBody = parsedOutput.body;
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
$metadata: $metadata,
|
|
2513
|
+
throwDefaultError({
|
|
2514
|
+
output: output,
|
|
2515
|
+
parsedBody: parsedBody,
|
|
2516
|
+
exceptionCtor: __BaseException,
|
|
2517
|
+
errorCode: errorCode,
|
|
2828
2518
|
});
|
|
2829
|
-
|
|
2519
|
+
_d.label = 17;
|
|
2520
|
+
case 17: return [2];
|
|
2830
2521
|
}
|
|
2831
2522
|
});
|
|
2832
2523
|
}); };
|
|
@@ -2838,24 +2529,23 @@ export var deserializeAws_restJson1DescribeChannelFlowCommand = function (output
|
|
|
2838
2529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2839
2530
|
return [2, deserializeAws_restJson1DescribeChannelFlowCommandError(output, context)];
|
|
2840
2531
|
}
|
|
2841
|
-
contents = {
|
|
2532
|
+
contents = map({
|
|
2842
2533
|
$metadata: deserializeMetadata(output),
|
|
2843
|
-
|
|
2844
|
-
};
|
|
2534
|
+
});
|
|
2845
2535
|
_a = __expectNonNull;
|
|
2846
2536
|
_b = __expectObject;
|
|
2847
2537
|
return [4, parseBody(output.body, context)];
|
|
2848
2538
|
case 1:
|
|
2849
2539
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2850
|
-
if (data.ChannelFlow
|
|
2540
|
+
if (data.ChannelFlow != null) {
|
|
2851
2541
|
contents.ChannelFlow = deserializeAws_restJson1ChannelFlow(data.ChannelFlow, context);
|
|
2852
2542
|
}
|
|
2853
|
-
return [2,
|
|
2543
|
+
return [2, contents];
|
|
2854
2544
|
}
|
|
2855
2545
|
});
|
|
2856
2546
|
}); };
|
|
2857
2547
|
var deserializeAws_restJson1DescribeChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2858
|
-
var parsedOutput, _a,
|
|
2548
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2859
2549
|
var _c;
|
|
2860
2550
|
return __generator(this, function (_d) {
|
|
2861
2551
|
switch (_d.label) {
|
|
@@ -2896,14 +2586,14 @@ var deserializeAws_restJson1DescribeChannelFlowCommandError = function (output,
|
|
|
2896
2586
|
case 13: throw _d.sent();
|
|
2897
2587
|
case 14:
|
|
2898
2588
|
parsedBody = parsedOutput.body;
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
$metadata: $metadata,
|
|
2589
|
+
throwDefaultError({
|
|
2590
|
+
output: output,
|
|
2591
|
+
parsedBody: parsedBody,
|
|
2592
|
+
exceptionCtor: __BaseException,
|
|
2593
|
+
errorCode: errorCode,
|
|
2905
2594
|
});
|
|
2906
|
-
|
|
2595
|
+
_d.label = 15;
|
|
2596
|
+
case 15: return [2];
|
|
2907
2597
|
}
|
|
2908
2598
|
});
|
|
2909
2599
|
}); };
|
|
@@ -2915,24 +2605,23 @@ export var deserializeAws_restJson1DescribeChannelMembershipCommand = function (
|
|
|
2915
2605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2916
2606
|
return [2, deserializeAws_restJson1DescribeChannelMembershipCommandError(output, context)];
|
|
2917
2607
|
}
|
|
2918
|
-
contents = {
|
|
2608
|
+
contents = map({
|
|
2919
2609
|
$metadata: deserializeMetadata(output),
|
|
2920
|
-
|
|
2921
|
-
};
|
|
2610
|
+
});
|
|
2922
2611
|
_a = __expectNonNull;
|
|
2923
2612
|
_b = __expectObject;
|
|
2924
2613
|
return [4, parseBody(output.body, context)];
|
|
2925
2614
|
case 1:
|
|
2926
2615
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2927
|
-
if (data.ChannelMembership
|
|
2616
|
+
if (data.ChannelMembership != null) {
|
|
2928
2617
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembership(data.ChannelMembership, context);
|
|
2929
2618
|
}
|
|
2930
|
-
return [2,
|
|
2619
|
+
return [2, contents];
|
|
2931
2620
|
}
|
|
2932
2621
|
});
|
|
2933
2622
|
}); };
|
|
2934
2623
|
var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2935
|
-
var parsedOutput, _a,
|
|
2624
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2936
2625
|
var _c;
|
|
2937
2626
|
return __generator(this, function (_d) {
|
|
2938
2627
|
switch (_d.label) {
|
|
@@ -2977,14 +2666,14 @@ var deserializeAws_restJson1DescribeChannelMembershipCommandError = function (ou
|
|
|
2977
2666
|
case 15: throw _d.sent();
|
|
2978
2667
|
case 16:
|
|
2979
2668
|
parsedBody = parsedOutput.body;
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
$metadata: $metadata,
|
|
2669
|
+
throwDefaultError({
|
|
2670
|
+
output: output,
|
|
2671
|
+
parsedBody: parsedBody,
|
|
2672
|
+
exceptionCtor: __BaseException,
|
|
2673
|
+
errorCode: errorCode,
|
|
2986
2674
|
});
|
|
2987
|
-
|
|
2675
|
+
_d.label = 17;
|
|
2676
|
+
case 17: return [2];
|
|
2988
2677
|
}
|
|
2989
2678
|
});
|
|
2990
2679
|
}); };
|
|
@@ -2996,24 +2685,23 @@ export var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCo
|
|
|
2996
2685
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2997
2686
|
return [2, deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError(output, context)];
|
|
2998
2687
|
}
|
|
2999
|
-
contents = {
|
|
2688
|
+
contents = map({
|
|
3000
2689
|
$metadata: deserializeMetadata(output),
|
|
3001
|
-
|
|
3002
|
-
};
|
|
2690
|
+
});
|
|
3003
2691
|
_a = __expectNonNull;
|
|
3004
2692
|
_b = __expectObject;
|
|
3005
2693
|
return [4, parseBody(output.body, context)];
|
|
3006
2694
|
case 1:
|
|
3007
2695
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3008
|
-
if (data.ChannelMembership
|
|
2696
|
+
if (data.ChannelMembership != null) {
|
|
3009
2697
|
contents.ChannelMembership = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary(data.ChannelMembership, context);
|
|
3010
2698
|
}
|
|
3011
|
-
return [2,
|
|
2699
|
+
return [2, contents];
|
|
3012
2700
|
}
|
|
3013
2701
|
});
|
|
3014
2702
|
}); };
|
|
3015
2703
|
var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3016
|
-
var parsedOutput, _a,
|
|
2704
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3017
2705
|
var _c;
|
|
3018
2706
|
return __generator(this, function (_d) {
|
|
3019
2707
|
switch (_d.label) {
|
|
@@ -3054,14 +2742,14 @@ var deserializeAws_restJson1DescribeChannelMembershipForAppInstanceUserCommandEr
|
|
|
3054
2742
|
case 13: throw _d.sent();
|
|
3055
2743
|
case 14:
|
|
3056
2744
|
parsedBody = parsedOutput.body;
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
$metadata: $metadata,
|
|
2745
|
+
throwDefaultError({
|
|
2746
|
+
output: output,
|
|
2747
|
+
parsedBody: parsedBody,
|
|
2748
|
+
exceptionCtor: __BaseException,
|
|
2749
|
+
errorCode: errorCode,
|
|
3063
2750
|
});
|
|
3064
|
-
|
|
2751
|
+
_d.label = 15;
|
|
2752
|
+
case 15: return [2];
|
|
3065
2753
|
}
|
|
3066
2754
|
});
|
|
3067
2755
|
}); };
|
|
@@ -3073,24 +2761,23 @@ export var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserComm
|
|
|
3073
2761
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3074
2762
|
return [2, deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError(output, context)];
|
|
3075
2763
|
}
|
|
3076
|
-
contents = {
|
|
2764
|
+
contents = map({
|
|
3077
2765
|
$metadata: deserializeMetadata(output),
|
|
3078
|
-
|
|
3079
|
-
};
|
|
2766
|
+
});
|
|
3080
2767
|
_a = __expectNonNull;
|
|
3081
2768
|
_b = __expectObject;
|
|
3082
2769
|
return [4, parseBody(output.body, context)];
|
|
3083
2770
|
case 1:
|
|
3084
2771
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3085
|
-
if (data.Channel
|
|
2772
|
+
if (data.Channel != null) {
|
|
3086
2773
|
contents.Channel = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary(data.Channel, context);
|
|
3087
2774
|
}
|
|
3088
|
-
return [2,
|
|
2775
|
+
return [2, contents];
|
|
3089
2776
|
}
|
|
3090
2777
|
});
|
|
3091
2778
|
}); };
|
|
3092
2779
|
var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3093
|
-
var parsedOutput, _a,
|
|
2780
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3094
2781
|
var _c;
|
|
3095
2782
|
return __generator(this, function (_d) {
|
|
3096
2783
|
switch (_d.label) {
|
|
@@ -3131,14 +2818,14 @@ var deserializeAws_restJson1DescribeChannelModeratedByAppInstanceUserCommandErro
|
|
|
3131
2818
|
case 13: throw _d.sent();
|
|
3132
2819
|
case 14:
|
|
3133
2820
|
parsedBody = parsedOutput.body;
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
$metadata: $metadata,
|
|
2821
|
+
throwDefaultError({
|
|
2822
|
+
output: output,
|
|
2823
|
+
parsedBody: parsedBody,
|
|
2824
|
+
exceptionCtor: __BaseException,
|
|
2825
|
+
errorCode: errorCode,
|
|
3140
2826
|
});
|
|
3141
|
-
|
|
2827
|
+
_d.label = 15;
|
|
2828
|
+
case 15: return [2];
|
|
3142
2829
|
}
|
|
3143
2830
|
});
|
|
3144
2831
|
}); };
|
|
@@ -3150,24 +2837,23 @@ export var deserializeAws_restJson1DescribeChannelModeratorCommand = function (o
|
|
|
3150
2837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3151
2838
|
return [2, deserializeAws_restJson1DescribeChannelModeratorCommandError(output, context)];
|
|
3152
2839
|
}
|
|
3153
|
-
contents = {
|
|
2840
|
+
contents = map({
|
|
3154
2841
|
$metadata: deserializeMetadata(output),
|
|
3155
|
-
|
|
3156
|
-
};
|
|
2842
|
+
});
|
|
3157
2843
|
_a = __expectNonNull;
|
|
3158
2844
|
_b = __expectObject;
|
|
3159
2845
|
return [4, parseBody(output.body, context)];
|
|
3160
2846
|
case 1:
|
|
3161
2847
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3162
|
-
if (data.ChannelModerator
|
|
2848
|
+
if (data.ChannelModerator != null) {
|
|
3163
2849
|
contents.ChannelModerator = deserializeAws_restJson1ChannelModerator(data.ChannelModerator, context);
|
|
3164
2850
|
}
|
|
3165
|
-
return [2,
|
|
2851
|
+
return [2, contents];
|
|
3166
2852
|
}
|
|
3167
2853
|
});
|
|
3168
2854
|
}); };
|
|
3169
2855
|
var deserializeAws_restJson1DescribeChannelModeratorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3170
|
-
var parsedOutput, _a,
|
|
2856
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3171
2857
|
var _c;
|
|
3172
2858
|
return __generator(this, function (_d) {
|
|
3173
2859
|
switch (_d.label) {
|
|
@@ -3212,14 +2898,14 @@ var deserializeAws_restJson1DescribeChannelModeratorCommandError = function (out
|
|
|
3212
2898
|
case 15: throw _d.sent();
|
|
3213
2899
|
case 16:
|
|
3214
2900
|
parsedBody = parsedOutput.body;
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
$metadata: $metadata,
|
|
2901
|
+
throwDefaultError({
|
|
2902
|
+
output: output,
|
|
2903
|
+
parsedBody: parsedBody,
|
|
2904
|
+
exceptionCtor: __BaseException,
|
|
2905
|
+
errorCode: errorCode,
|
|
3221
2906
|
});
|
|
3222
|
-
|
|
2907
|
+
_d.label = 17;
|
|
2908
|
+
case 17: return [2];
|
|
3223
2909
|
}
|
|
3224
2910
|
});
|
|
3225
2911
|
}); };
|
|
@@ -3231,18 +2917,18 @@ export var deserializeAws_restJson1DisassociateChannelFlowCommand = function (ou
|
|
|
3231
2917
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3232
2918
|
return [2, deserializeAws_restJson1DisassociateChannelFlowCommandError(output, context)];
|
|
3233
2919
|
}
|
|
3234
|
-
contents = {
|
|
2920
|
+
contents = map({
|
|
3235
2921
|
$metadata: deserializeMetadata(output),
|
|
3236
|
-
};
|
|
2922
|
+
});
|
|
3237
2923
|
return [4, collectBody(output.body, context)];
|
|
3238
2924
|
case 1:
|
|
3239
2925
|
_a.sent();
|
|
3240
|
-
return [2,
|
|
2926
|
+
return [2, contents];
|
|
3241
2927
|
}
|
|
3242
2928
|
});
|
|
3243
2929
|
}); };
|
|
3244
2930
|
var deserializeAws_restJson1DisassociateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3245
|
-
var parsedOutput, _a,
|
|
2931
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3246
2932
|
var _c;
|
|
3247
2933
|
return __generator(this, function (_d) {
|
|
3248
2934
|
switch (_d.label) {
|
|
@@ -3291,14 +2977,14 @@ var deserializeAws_restJson1DisassociateChannelFlowCommandError = function (outp
|
|
|
3291
2977
|
case 17: throw _d.sent();
|
|
3292
2978
|
case 18:
|
|
3293
2979
|
parsedBody = parsedOutput.body;
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
$metadata: $metadata,
|
|
2980
|
+
throwDefaultError({
|
|
2981
|
+
output: output,
|
|
2982
|
+
parsedBody: parsedBody,
|
|
2983
|
+
exceptionCtor: __BaseException,
|
|
2984
|
+
errorCode: errorCode,
|
|
3300
2985
|
});
|
|
3301
|
-
|
|
2986
|
+
_d.label = 19;
|
|
2987
|
+
case 19: return [2];
|
|
3302
2988
|
}
|
|
3303
2989
|
});
|
|
3304
2990
|
}); };
|
|
@@ -3310,32 +2996,29 @@ export var deserializeAws_restJson1GetChannelMembershipPreferencesCommand = func
|
|
|
3310
2996
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3311
2997
|
return [2, deserializeAws_restJson1GetChannelMembershipPreferencesCommandError(output, context)];
|
|
3312
2998
|
}
|
|
3313
|
-
contents = {
|
|
2999
|
+
contents = map({
|
|
3314
3000
|
$metadata: deserializeMetadata(output),
|
|
3315
|
-
|
|
3316
|
-
Member: undefined,
|
|
3317
|
-
Preferences: undefined,
|
|
3318
|
-
};
|
|
3001
|
+
});
|
|
3319
3002
|
_a = __expectNonNull;
|
|
3320
3003
|
_b = __expectObject;
|
|
3321
3004
|
return [4, parseBody(output.body, context)];
|
|
3322
3005
|
case 1:
|
|
3323
3006
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3324
|
-
if (data.ChannelArn
|
|
3007
|
+
if (data.ChannelArn != null) {
|
|
3325
3008
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3326
3009
|
}
|
|
3327
|
-
if (data.Member
|
|
3010
|
+
if (data.Member != null) {
|
|
3328
3011
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
3329
3012
|
}
|
|
3330
|
-
if (data.Preferences
|
|
3013
|
+
if (data.Preferences != null) {
|
|
3331
3014
|
contents.Preferences = deserializeAws_restJson1ChannelMembershipPreferences(data.Preferences, context);
|
|
3332
3015
|
}
|
|
3333
|
-
return [2,
|
|
3016
|
+
return [2, contents];
|
|
3334
3017
|
}
|
|
3335
3018
|
});
|
|
3336
3019
|
}); };
|
|
3337
3020
|
var deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3338
|
-
var parsedOutput, _a,
|
|
3021
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3339
3022
|
var _c;
|
|
3340
3023
|
return __generator(this, function (_d) {
|
|
3341
3024
|
switch (_d.label) {
|
|
@@ -3376,14 +3059,14 @@ var deserializeAws_restJson1GetChannelMembershipPreferencesCommandError = functi
|
|
|
3376
3059
|
case 13: throw _d.sent();
|
|
3377
3060
|
case 14:
|
|
3378
3061
|
parsedBody = parsedOutput.body;
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
$metadata: $metadata,
|
|
3062
|
+
throwDefaultError({
|
|
3063
|
+
output: output,
|
|
3064
|
+
parsedBody: parsedBody,
|
|
3065
|
+
exceptionCtor: __BaseException,
|
|
3066
|
+
errorCode: errorCode,
|
|
3385
3067
|
});
|
|
3386
|
-
|
|
3068
|
+
_d.label = 15;
|
|
3069
|
+
case 15: return [2];
|
|
3387
3070
|
}
|
|
3388
3071
|
});
|
|
3389
3072
|
}); };
|
|
@@ -3395,24 +3078,23 @@ export var deserializeAws_restJson1GetChannelMessageCommand = function (output,
|
|
|
3395
3078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3396
3079
|
return [2, deserializeAws_restJson1GetChannelMessageCommandError(output, context)];
|
|
3397
3080
|
}
|
|
3398
|
-
contents = {
|
|
3081
|
+
contents = map({
|
|
3399
3082
|
$metadata: deserializeMetadata(output),
|
|
3400
|
-
|
|
3401
|
-
};
|
|
3083
|
+
});
|
|
3402
3084
|
_a = __expectNonNull;
|
|
3403
3085
|
_b = __expectObject;
|
|
3404
3086
|
return [4, parseBody(output.body, context)];
|
|
3405
3087
|
case 1:
|
|
3406
3088
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3407
|
-
if (data.ChannelMessage
|
|
3089
|
+
if (data.ChannelMessage != null) {
|
|
3408
3090
|
contents.ChannelMessage = deserializeAws_restJson1ChannelMessage(data.ChannelMessage, context);
|
|
3409
3091
|
}
|
|
3410
|
-
return [2,
|
|
3092
|
+
return [2, contents];
|
|
3411
3093
|
}
|
|
3412
3094
|
});
|
|
3413
3095
|
}); };
|
|
3414
3096
|
var deserializeAws_restJson1GetChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3415
|
-
var parsedOutput, _a,
|
|
3097
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3416
3098
|
var _c;
|
|
3417
3099
|
return __generator(this, function (_d) {
|
|
3418
3100
|
switch (_d.label) {
|
|
@@ -3457,14 +3139,14 @@ var deserializeAws_restJson1GetChannelMessageCommandError = function (output, co
|
|
|
3457
3139
|
case 15: throw _d.sent();
|
|
3458
3140
|
case 16:
|
|
3459
3141
|
parsedBody = parsedOutput.body;
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
$metadata: $metadata,
|
|
3142
|
+
throwDefaultError({
|
|
3143
|
+
output: output,
|
|
3144
|
+
parsedBody: parsedBody,
|
|
3145
|
+
exceptionCtor: __BaseException,
|
|
3146
|
+
errorCode: errorCode,
|
|
3466
3147
|
});
|
|
3467
|
-
|
|
3148
|
+
_d.label = 17;
|
|
3149
|
+
case 17: return [2];
|
|
3468
3150
|
}
|
|
3469
3151
|
});
|
|
3470
3152
|
}); };
|
|
@@ -3476,24 +3158,23 @@ export var deserializeAws_restJson1GetChannelMessageStatusCommand = function (ou
|
|
|
3476
3158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3477
3159
|
return [2, deserializeAws_restJson1GetChannelMessageStatusCommandError(output, context)];
|
|
3478
3160
|
}
|
|
3479
|
-
contents = {
|
|
3161
|
+
contents = map({
|
|
3480
3162
|
$metadata: deserializeMetadata(output),
|
|
3481
|
-
|
|
3482
|
-
};
|
|
3163
|
+
});
|
|
3483
3164
|
_a = __expectNonNull;
|
|
3484
3165
|
_b = __expectObject;
|
|
3485
3166
|
return [4, parseBody(output.body, context)];
|
|
3486
3167
|
case 1:
|
|
3487
3168
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3488
|
-
if (data.Status
|
|
3169
|
+
if (data.Status != null) {
|
|
3489
3170
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
3490
3171
|
}
|
|
3491
|
-
return [2,
|
|
3172
|
+
return [2, contents];
|
|
3492
3173
|
}
|
|
3493
3174
|
});
|
|
3494
3175
|
}); };
|
|
3495
3176
|
var deserializeAws_restJson1GetChannelMessageStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3496
|
-
var parsedOutput, _a,
|
|
3177
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3497
3178
|
var _c;
|
|
3498
3179
|
return __generator(this, function (_d) {
|
|
3499
3180
|
switch (_d.label) {
|
|
@@ -3534,14 +3215,14 @@ var deserializeAws_restJson1GetChannelMessageStatusCommandError = function (outp
|
|
|
3534
3215
|
case 13: throw _d.sent();
|
|
3535
3216
|
case 14:
|
|
3536
3217
|
parsedBody = parsedOutput.body;
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
$metadata: $metadata,
|
|
3218
|
+
throwDefaultError({
|
|
3219
|
+
output: output,
|
|
3220
|
+
parsedBody: parsedBody,
|
|
3221
|
+
exceptionCtor: __BaseException,
|
|
3222
|
+
errorCode: errorCode,
|
|
3543
3223
|
});
|
|
3544
|
-
|
|
3224
|
+
_d.label = 15;
|
|
3225
|
+
case 15: return [2];
|
|
3545
3226
|
}
|
|
3546
3227
|
});
|
|
3547
3228
|
}); };
|
|
@@ -3553,24 +3234,23 @@ export var deserializeAws_restJson1GetMessagingSessionEndpointCommand = function
|
|
|
3553
3234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3554
3235
|
return [2, deserializeAws_restJson1GetMessagingSessionEndpointCommandError(output, context)];
|
|
3555
3236
|
}
|
|
3556
|
-
contents = {
|
|
3237
|
+
contents = map({
|
|
3557
3238
|
$metadata: deserializeMetadata(output),
|
|
3558
|
-
|
|
3559
|
-
};
|
|
3239
|
+
});
|
|
3560
3240
|
_a = __expectNonNull;
|
|
3561
3241
|
_b = __expectObject;
|
|
3562
3242
|
return [4, parseBody(output.body, context)];
|
|
3563
3243
|
case 1:
|
|
3564
3244
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3565
|
-
if (data.Endpoint
|
|
3245
|
+
if (data.Endpoint != null) {
|
|
3566
3246
|
contents.Endpoint = deserializeAws_restJson1MessagingSessionEndpoint(data.Endpoint, context);
|
|
3567
3247
|
}
|
|
3568
|
-
return [2,
|
|
3248
|
+
return [2, contents];
|
|
3569
3249
|
}
|
|
3570
3250
|
});
|
|
3571
3251
|
}); };
|
|
3572
3252
|
var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3573
|
-
var parsedOutput, _a,
|
|
3253
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3574
3254
|
var _c;
|
|
3575
3255
|
return __generator(this, function (_d) {
|
|
3576
3256
|
switch (_d.label) {
|
|
@@ -3607,14 +3287,14 @@ var deserializeAws_restJson1GetMessagingSessionEndpointCommandError = function (
|
|
|
3607
3287
|
case 11: throw _d.sent();
|
|
3608
3288
|
case 12:
|
|
3609
3289
|
parsedBody = parsedOutput.body;
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
$metadata: $metadata,
|
|
3290
|
+
throwDefaultError({
|
|
3291
|
+
output: output,
|
|
3292
|
+
parsedBody: parsedBody,
|
|
3293
|
+
exceptionCtor: __BaseException,
|
|
3294
|
+
errorCode: errorCode,
|
|
3616
3295
|
});
|
|
3617
|
-
|
|
3296
|
+
_d.label = 13;
|
|
3297
|
+
case 13: return [2];
|
|
3618
3298
|
}
|
|
3619
3299
|
});
|
|
3620
3300
|
}); };
|
|
@@ -3626,32 +3306,29 @@ export var deserializeAws_restJson1ListChannelBansCommand = function (output, co
|
|
|
3626
3306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3627
3307
|
return [2, deserializeAws_restJson1ListChannelBansCommandError(output, context)];
|
|
3628
3308
|
}
|
|
3629
|
-
contents = {
|
|
3309
|
+
contents = map({
|
|
3630
3310
|
$metadata: deserializeMetadata(output),
|
|
3631
|
-
|
|
3632
|
-
ChannelBans: undefined,
|
|
3633
|
-
NextToken: undefined,
|
|
3634
|
-
};
|
|
3311
|
+
});
|
|
3635
3312
|
_a = __expectNonNull;
|
|
3636
3313
|
_b = __expectObject;
|
|
3637
3314
|
return [4, parseBody(output.body, context)];
|
|
3638
3315
|
case 1:
|
|
3639
3316
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3640
|
-
if (data.ChannelArn
|
|
3317
|
+
if (data.ChannelArn != null) {
|
|
3641
3318
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3642
3319
|
}
|
|
3643
|
-
if (data.ChannelBans
|
|
3320
|
+
if (data.ChannelBans != null) {
|
|
3644
3321
|
contents.ChannelBans = deserializeAws_restJson1ChannelBanSummaryList(data.ChannelBans, context);
|
|
3645
3322
|
}
|
|
3646
|
-
if (data.NextToken
|
|
3323
|
+
if (data.NextToken != null) {
|
|
3647
3324
|
contents.NextToken = __expectString(data.NextToken);
|
|
3648
3325
|
}
|
|
3649
|
-
return [2,
|
|
3326
|
+
return [2, contents];
|
|
3650
3327
|
}
|
|
3651
3328
|
});
|
|
3652
3329
|
}); };
|
|
3653
3330
|
var deserializeAws_restJson1ListChannelBansCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3654
|
-
var parsedOutput, _a,
|
|
3331
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3655
3332
|
var _c;
|
|
3656
3333
|
return __generator(this, function (_d) {
|
|
3657
3334
|
switch (_d.label) {
|
|
@@ -3692,14 +3369,14 @@ var deserializeAws_restJson1ListChannelBansCommandError = function (output, cont
|
|
|
3692
3369
|
case 13: throw _d.sent();
|
|
3693
3370
|
case 14:
|
|
3694
3371
|
parsedBody = parsedOutput.body;
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
$metadata: $metadata,
|
|
3372
|
+
throwDefaultError({
|
|
3373
|
+
output: output,
|
|
3374
|
+
parsedBody: parsedBody,
|
|
3375
|
+
exceptionCtor: __BaseException,
|
|
3376
|
+
errorCode: errorCode,
|
|
3701
3377
|
});
|
|
3702
|
-
|
|
3378
|
+
_d.label = 15;
|
|
3379
|
+
case 15: return [2];
|
|
3703
3380
|
}
|
|
3704
3381
|
});
|
|
3705
3382
|
}); };
|
|
@@ -3711,28 +3388,26 @@ export var deserializeAws_restJson1ListChannelFlowsCommand = function (output, c
|
|
|
3711
3388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3712
3389
|
return [2, deserializeAws_restJson1ListChannelFlowsCommandError(output, context)];
|
|
3713
3390
|
}
|
|
3714
|
-
contents = {
|
|
3391
|
+
contents = map({
|
|
3715
3392
|
$metadata: deserializeMetadata(output),
|
|
3716
|
-
|
|
3717
|
-
NextToken: undefined,
|
|
3718
|
-
};
|
|
3393
|
+
});
|
|
3719
3394
|
_a = __expectNonNull;
|
|
3720
3395
|
_b = __expectObject;
|
|
3721
3396
|
return [4, parseBody(output.body, context)];
|
|
3722
3397
|
case 1:
|
|
3723
3398
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3724
|
-
if (data.ChannelFlows
|
|
3399
|
+
if (data.ChannelFlows != null) {
|
|
3725
3400
|
contents.ChannelFlows = deserializeAws_restJson1ChannelFlowSummaryList(data.ChannelFlows, context);
|
|
3726
3401
|
}
|
|
3727
|
-
if (data.NextToken
|
|
3402
|
+
if (data.NextToken != null) {
|
|
3728
3403
|
contents.NextToken = __expectString(data.NextToken);
|
|
3729
3404
|
}
|
|
3730
|
-
return [2,
|
|
3405
|
+
return [2, contents];
|
|
3731
3406
|
}
|
|
3732
3407
|
});
|
|
3733
3408
|
}); };
|
|
3734
3409
|
var deserializeAws_restJson1ListChannelFlowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3735
|
-
var parsedOutput, _a,
|
|
3410
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3736
3411
|
var _c;
|
|
3737
3412
|
return __generator(this, function (_d) {
|
|
3738
3413
|
switch (_d.label) {
|
|
@@ -3773,14 +3448,14 @@ var deserializeAws_restJson1ListChannelFlowsCommandError = function (output, con
|
|
|
3773
3448
|
case 13: throw _d.sent();
|
|
3774
3449
|
case 14:
|
|
3775
3450
|
parsedBody = parsedOutput.body;
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
$metadata: $metadata,
|
|
3451
|
+
throwDefaultError({
|
|
3452
|
+
output: output,
|
|
3453
|
+
parsedBody: parsedBody,
|
|
3454
|
+
exceptionCtor: __BaseException,
|
|
3455
|
+
errorCode: errorCode,
|
|
3782
3456
|
});
|
|
3783
|
-
|
|
3457
|
+
_d.label = 15;
|
|
3458
|
+
case 15: return [2];
|
|
3784
3459
|
}
|
|
3785
3460
|
});
|
|
3786
3461
|
}); };
|
|
@@ -3792,32 +3467,29 @@ export var deserializeAws_restJson1ListChannelMembershipsCommand = function (out
|
|
|
3792
3467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3793
3468
|
return [2, deserializeAws_restJson1ListChannelMembershipsCommandError(output, context)];
|
|
3794
3469
|
}
|
|
3795
|
-
contents = {
|
|
3470
|
+
contents = map({
|
|
3796
3471
|
$metadata: deserializeMetadata(output),
|
|
3797
|
-
|
|
3798
|
-
ChannelMemberships: undefined,
|
|
3799
|
-
NextToken: undefined,
|
|
3800
|
-
};
|
|
3472
|
+
});
|
|
3801
3473
|
_a = __expectNonNull;
|
|
3802
3474
|
_b = __expectObject;
|
|
3803
3475
|
return [4, parseBody(output.body, context)];
|
|
3804
3476
|
case 1:
|
|
3805
3477
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3806
|
-
if (data.ChannelArn
|
|
3478
|
+
if (data.ChannelArn != null) {
|
|
3807
3479
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3808
3480
|
}
|
|
3809
|
-
if (data.ChannelMemberships
|
|
3481
|
+
if (data.ChannelMemberships != null) {
|
|
3810
3482
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipSummaryList(data.ChannelMemberships, context);
|
|
3811
3483
|
}
|
|
3812
|
-
if (data.NextToken
|
|
3484
|
+
if (data.NextToken != null) {
|
|
3813
3485
|
contents.NextToken = __expectString(data.NextToken);
|
|
3814
3486
|
}
|
|
3815
|
-
return [2,
|
|
3487
|
+
return [2, contents];
|
|
3816
3488
|
}
|
|
3817
3489
|
});
|
|
3818
3490
|
}); };
|
|
3819
3491
|
var deserializeAws_restJson1ListChannelMembershipsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3820
|
-
var parsedOutput, _a,
|
|
3492
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3821
3493
|
var _c;
|
|
3822
3494
|
return __generator(this, function (_d) {
|
|
3823
3495
|
switch (_d.label) {
|
|
@@ -3858,14 +3530,14 @@ var deserializeAws_restJson1ListChannelMembershipsCommandError = function (outpu
|
|
|
3858
3530
|
case 13: throw _d.sent();
|
|
3859
3531
|
case 14:
|
|
3860
3532
|
parsedBody = parsedOutput.body;
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
$metadata: $metadata,
|
|
3533
|
+
throwDefaultError({
|
|
3534
|
+
output: output,
|
|
3535
|
+
parsedBody: parsedBody,
|
|
3536
|
+
exceptionCtor: __BaseException,
|
|
3537
|
+
errorCode: errorCode,
|
|
3867
3538
|
});
|
|
3868
|
-
|
|
3539
|
+
_d.label = 15;
|
|
3540
|
+
case 15: return [2];
|
|
3869
3541
|
}
|
|
3870
3542
|
});
|
|
3871
3543
|
}); };
|
|
@@ -3877,28 +3549,26 @@ export var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserComma
|
|
|
3877
3549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3878
3550
|
return [2, deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError(output, context)];
|
|
3879
3551
|
}
|
|
3880
|
-
contents = {
|
|
3552
|
+
contents = map({
|
|
3881
3553
|
$metadata: deserializeMetadata(output),
|
|
3882
|
-
|
|
3883
|
-
NextToken: undefined,
|
|
3884
|
-
};
|
|
3554
|
+
});
|
|
3885
3555
|
_a = __expectNonNull;
|
|
3886
3556
|
_b = __expectObject;
|
|
3887
3557
|
return [4, parseBody(output.body, context)];
|
|
3888
3558
|
case 1:
|
|
3889
3559
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3890
|
-
if (data.ChannelMemberships
|
|
3560
|
+
if (data.ChannelMemberships != null) {
|
|
3891
3561
|
contents.ChannelMemberships = deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList(data.ChannelMemberships, context);
|
|
3892
3562
|
}
|
|
3893
|
-
if (data.NextToken
|
|
3563
|
+
if (data.NextToken != null) {
|
|
3894
3564
|
contents.NextToken = __expectString(data.NextToken);
|
|
3895
3565
|
}
|
|
3896
|
-
return [2,
|
|
3566
|
+
return [2, contents];
|
|
3897
3567
|
}
|
|
3898
3568
|
});
|
|
3899
3569
|
}); };
|
|
3900
3570
|
var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3901
|
-
var parsedOutput, _a,
|
|
3571
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3902
3572
|
var _c;
|
|
3903
3573
|
return __generator(this, function (_d) {
|
|
3904
3574
|
switch (_d.label) {
|
|
@@ -3939,14 +3609,14 @@ var deserializeAws_restJson1ListChannelMembershipsForAppInstanceUserCommandError
|
|
|
3939
3609
|
case 13: throw _d.sent();
|
|
3940
3610
|
case 14:
|
|
3941
3611
|
parsedBody = parsedOutput.body;
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
$metadata: $metadata,
|
|
3612
|
+
throwDefaultError({
|
|
3613
|
+
output: output,
|
|
3614
|
+
parsedBody: parsedBody,
|
|
3615
|
+
exceptionCtor: __BaseException,
|
|
3616
|
+
errorCode: errorCode,
|
|
3948
3617
|
});
|
|
3949
|
-
|
|
3618
|
+
_d.label = 15;
|
|
3619
|
+
case 15: return [2];
|
|
3950
3620
|
}
|
|
3951
3621
|
});
|
|
3952
3622
|
}); };
|
|
@@ -3958,32 +3628,29 @@ export var deserializeAws_restJson1ListChannelMessagesCommand = function (output
|
|
|
3958
3628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3959
3629
|
return [2, deserializeAws_restJson1ListChannelMessagesCommandError(output, context)];
|
|
3960
3630
|
}
|
|
3961
|
-
contents = {
|
|
3631
|
+
contents = map({
|
|
3962
3632
|
$metadata: deserializeMetadata(output),
|
|
3963
|
-
|
|
3964
|
-
ChannelMessages: undefined,
|
|
3965
|
-
NextToken: undefined,
|
|
3966
|
-
};
|
|
3633
|
+
});
|
|
3967
3634
|
_a = __expectNonNull;
|
|
3968
3635
|
_b = __expectObject;
|
|
3969
3636
|
return [4, parseBody(output.body, context)];
|
|
3970
3637
|
case 1:
|
|
3971
3638
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3972
|
-
if (data.ChannelArn
|
|
3639
|
+
if (data.ChannelArn != null) {
|
|
3973
3640
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
3974
3641
|
}
|
|
3975
|
-
if (data.ChannelMessages
|
|
3642
|
+
if (data.ChannelMessages != null) {
|
|
3976
3643
|
contents.ChannelMessages = deserializeAws_restJson1ChannelMessageSummaryList(data.ChannelMessages, context);
|
|
3977
3644
|
}
|
|
3978
|
-
if (data.NextToken
|
|
3645
|
+
if (data.NextToken != null) {
|
|
3979
3646
|
contents.NextToken = __expectString(data.NextToken);
|
|
3980
3647
|
}
|
|
3981
|
-
return [2,
|
|
3648
|
+
return [2, contents];
|
|
3982
3649
|
}
|
|
3983
3650
|
});
|
|
3984
3651
|
}); };
|
|
3985
3652
|
var deserializeAws_restJson1ListChannelMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3986
|
-
var parsedOutput, _a,
|
|
3653
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3987
3654
|
var _c;
|
|
3988
3655
|
return __generator(this, function (_d) {
|
|
3989
3656
|
switch (_d.label) {
|
|
@@ -4024,14 +3691,14 @@ var deserializeAws_restJson1ListChannelMessagesCommandError = function (output,
|
|
|
4024
3691
|
case 13: throw _d.sent();
|
|
4025
3692
|
case 14:
|
|
4026
3693
|
parsedBody = parsedOutput.body;
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
$metadata: $metadata,
|
|
3694
|
+
throwDefaultError({
|
|
3695
|
+
output: output,
|
|
3696
|
+
parsedBody: parsedBody,
|
|
3697
|
+
exceptionCtor: __BaseException,
|
|
3698
|
+
errorCode: errorCode,
|
|
4033
3699
|
});
|
|
4034
|
-
|
|
3700
|
+
_d.label = 15;
|
|
3701
|
+
case 15: return [2];
|
|
4035
3702
|
}
|
|
4036
3703
|
});
|
|
4037
3704
|
}); };
|
|
@@ -4043,32 +3710,29 @@ export var deserializeAws_restJson1ListChannelModeratorsCommand = function (outp
|
|
|
4043
3710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4044
3711
|
return [2, deserializeAws_restJson1ListChannelModeratorsCommandError(output, context)];
|
|
4045
3712
|
}
|
|
4046
|
-
contents = {
|
|
3713
|
+
contents = map({
|
|
4047
3714
|
$metadata: deserializeMetadata(output),
|
|
4048
|
-
|
|
4049
|
-
ChannelModerators: undefined,
|
|
4050
|
-
NextToken: undefined,
|
|
4051
|
-
};
|
|
3715
|
+
});
|
|
4052
3716
|
_a = __expectNonNull;
|
|
4053
3717
|
_b = __expectObject;
|
|
4054
3718
|
return [4, parseBody(output.body, context)];
|
|
4055
3719
|
case 1:
|
|
4056
3720
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4057
|
-
if (data.ChannelArn
|
|
3721
|
+
if (data.ChannelArn != null) {
|
|
4058
3722
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4059
3723
|
}
|
|
4060
|
-
if (data.ChannelModerators
|
|
3724
|
+
if (data.ChannelModerators != null) {
|
|
4061
3725
|
contents.ChannelModerators = deserializeAws_restJson1ChannelModeratorSummaryList(data.ChannelModerators, context);
|
|
4062
3726
|
}
|
|
4063
|
-
if (data.NextToken
|
|
3727
|
+
if (data.NextToken != null) {
|
|
4064
3728
|
contents.NextToken = __expectString(data.NextToken);
|
|
4065
3729
|
}
|
|
4066
|
-
return [2,
|
|
3730
|
+
return [2, contents];
|
|
4067
3731
|
}
|
|
4068
3732
|
});
|
|
4069
3733
|
}); };
|
|
4070
3734
|
var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4071
|
-
var parsedOutput, _a,
|
|
3735
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4072
3736
|
var _c;
|
|
4073
3737
|
return __generator(this, function (_d) {
|
|
4074
3738
|
switch (_d.label) {
|
|
@@ -4109,14 +3773,14 @@ var deserializeAws_restJson1ListChannelModeratorsCommandError = function (output
|
|
|
4109
3773
|
case 13: throw _d.sent();
|
|
4110
3774
|
case 14:
|
|
4111
3775
|
parsedBody = parsedOutput.body;
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
$metadata: $metadata,
|
|
3776
|
+
throwDefaultError({
|
|
3777
|
+
output: output,
|
|
3778
|
+
parsedBody: parsedBody,
|
|
3779
|
+
exceptionCtor: __BaseException,
|
|
3780
|
+
errorCode: errorCode,
|
|
4118
3781
|
});
|
|
4119
|
-
|
|
3782
|
+
_d.label = 15;
|
|
3783
|
+
case 15: return [2];
|
|
4120
3784
|
}
|
|
4121
3785
|
});
|
|
4122
3786
|
}); };
|
|
@@ -4128,28 +3792,26 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
4128
3792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4129
3793
|
return [2, deserializeAws_restJson1ListChannelsCommandError(output, context)];
|
|
4130
3794
|
}
|
|
4131
|
-
contents = {
|
|
3795
|
+
contents = map({
|
|
4132
3796
|
$metadata: deserializeMetadata(output),
|
|
4133
|
-
|
|
4134
|
-
NextToken: undefined,
|
|
4135
|
-
};
|
|
3797
|
+
});
|
|
4136
3798
|
_a = __expectNonNull;
|
|
4137
3799
|
_b = __expectObject;
|
|
4138
3800
|
return [4, parseBody(output.body, context)];
|
|
4139
3801
|
case 1:
|
|
4140
3802
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4141
|
-
if (data.Channels
|
|
3803
|
+
if (data.Channels != null) {
|
|
4142
3804
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
4143
3805
|
}
|
|
4144
|
-
if (data.NextToken
|
|
3806
|
+
if (data.NextToken != null) {
|
|
4145
3807
|
contents.NextToken = __expectString(data.NextToken);
|
|
4146
3808
|
}
|
|
4147
|
-
return [2,
|
|
3809
|
+
return [2, contents];
|
|
4148
3810
|
}
|
|
4149
3811
|
});
|
|
4150
3812
|
}); };
|
|
4151
3813
|
var deserializeAws_restJson1ListChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4152
|
-
var parsedOutput, _a,
|
|
3814
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4153
3815
|
var _c;
|
|
4154
3816
|
return __generator(this, function (_d) {
|
|
4155
3817
|
switch (_d.label) {
|
|
@@ -4190,14 +3852,14 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
4190
3852
|
case 13: throw _d.sent();
|
|
4191
3853
|
case 14:
|
|
4192
3854
|
parsedBody = parsedOutput.body;
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
$metadata: $metadata,
|
|
3855
|
+
throwDefaultError({
|
|
3856
|
+
output: output,
|
|
3857
|
+
parsedBody: parsedBody,
|
|
3858
|
+
exceptionCtor: __BaseException,
|
|
3859
|
+
errorCode: errorCode,
|
|
4199
3860
|
});
|
|
4200
|
-
|
|
3861
|
+
_d.label = 15;
|
|
3862
|
+
case 15: return [2];
|
|
4201
3863
|
}
|
|
4202
3864
|
});
|
|
4203
3865
|
}); };
|
|
@@ -4209,28 +3871,26 @@ export var deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand
|
|
|
4209
3871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4210
3872
|
return [2, deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError(output, context)];
|
|
4211
3873
|
}
|
|
4212
|
-
contents = {
|
|
3874
|
+
contents = map({
|
|
4213
3875
|
$metadata: deserializeMetadata(output),
|
|
4214
|
-
|
|
4215
|
-
NextToken: undefined,
|
|
4216
|
-
};
|
|
3876
|
+
});
|
|
4217
3877
|
_a = __expectNonNull;
|
|
4218
3878
|
_b = __expectObject;
|
|
4219
3879
|
return [4, parseBody(output.body, context)];
|
|
4220
3880
|
case 1:
|
|
4221
3881
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4222
|
-
if (data.Channels
|
|
3882
|
+
if (data.Channels != null) {
|
|
4223
3883
|
contents.Channels = deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList(data.Channels, context);
|
|
4224
3884
|
}
|
|
4225
|
-
if (data.NextToken
|
|
3885
|
+
if (data.NextToken != null) {
|
|
4226
3886
|
contents.NextToken = __expectString(data.NextToken);
|
|
4227
3887
|
}
|
|
4228
|
-
return [2,
|
|
3888
|
+
return [2, contents];
|
|
4229
3889
|
}
|
|
4230
3890
|
});
|
|
4231
3891
|
}); };
|
|
4232
3892
|
var deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4233
|
-
var parsedOutput, _a,
|
|
3893
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4234
3894
|
var _c;
|
|
4235
3895
|
return __generator(this, function (_d) {
|
|
4236
3896
|
switch (_d.label) {
|
|
@@ -4271,14 +3931,14 @@ var deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommandError =
|
|
|
4271
3931
|
case 13: throw _d.sent();
|
|
4272
3932
|
case 14:
|
|
4273
3933
|
parsedBody = parsedOutput.body;
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
$metadata: $metadata,
|
|
3934
|
+
throwDefaultError({
|
|
3935
|
+
output: output,
|
|
3936
|
+
parsedBody: parsedBody,
|
|
3937
|
+
exceptionCtor: __BaseException,
|
|
3938
|
+
errorCode: errorCode,
|
|
4280
3939
|
});
|
|
4281
|
-
|
|
3940
|
+
_d.label = 15;
|
|
3941
|
+
case 15: return [2];
|
|
4282
3942
|
}
|
|
4283
3943
|
});
|
|
4284
3944
|
}); };
|
|
@@ -4290,28 +3950,26 @@ export var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand
|
|
|
4290
3950
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4291
3951
|
return [2, deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError(output, context)];
|
|
4292
3952
|
}
|
|
4293
|
-
contents = {
|
|
3953
|
+
contents = map({
|
|
4294
3954
|
$metadata: deserializeMetadata(output),
|
|
4295
|
-
|
|
4296
|
-
NextToken: undefined,
|
|
4297
|
-
};
|
|
3955
|
+
});
|
|
4298
3956
|
_a = __expectNonNull;
|
|
4299
3957
|
_b = __expectObject;
|
|
4300
3958
|
return [4, parseBody(output.body, context)];
|
|
4301
3959
|
case 1:
|
|
4302
3960
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4303
|
-
if (data.Channels
|
|
3961
|
+
if (data.Channels != null) {
|
|
4304
3962
|
contents.Channels = deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList(data.Channels, context);
|
|
4305
3963
|
}
|
|
4306
|
-
if (data.NextToken
|
|
3964
|
+
if (data.NextToken != null) {
|
|
4307
3965
|
contents.NextToken = __expectString(data.NextToken);
|
|
4308
3966
|
}
|
|
4309
|
-
return [2,
|
|
3967
|
+
return [2, contents];
|
|
4310
3968
|
}
|
|
4311
3969
|
});
|
|
4312
3970
|
}); };
|
|
4313
3971
|
var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4314
|
-
var parsedOutput, _a,
|
|
3972
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4315
3973
|
var _c;
|
|
4316
3974
|
return __generator(this, function (_d) {
|
|
4317
3975
|
switch (_d.label) {
|
|
@@ -4352,14 +4010,14 @@ var deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommandError =
|
|
|
4352
4010
|
case 13: throw _d.sent();
|
|
4353
4011
|
case 14:
|
|
4354
4012
|
parsedBody = parsedOutput.body;
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
$metadata: $metadata,
|
|
4013
|
+
throwDefaultError({
|
|
4014
|
+
output: output,
|
|
4015
|
+
parsedBody: parsedBody,
|
|
4016
|
+
exceptionCtor: __BaseException,
|
|
4017
|
+
errorCode: errorCode,
|
|
4361
4018
|
});
|
|
4362
|
-
|
|
4019
|
+
_d.label = 15;
|
|
4020
|
+
case 15: return [2];
|
|
4363
4021
|
}
|
|
4364
4022
|
});
|
|
4365
4023
|
}); };
|
|
@@ -4371,24 +4029,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
4371
4029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4372
4030
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
4373
4031
|
}
|
|
4374
|
-
contents = {
|
|
4032
|
+
contents = map({
|
|
4375
4033
|
$metadata: deserializeMetadata(output),
|
|
4376
|
-
|
|
4377
|
-
};
|
|
4034
|
+
});
|
|
4378
4035
|
_a = __expectNonNull;
|
|
4379
4036
|
_b = __expectObject;
|
|
4380
4037
|
return [4, parseBody(output.body, context)];
|
|
4381
4038
|
case 1:
|
|
4382
4039
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4383
|
-
if (data.Tags
|
|
4040
|
+
if (data.Tags != null) {
|
|
4384
4041
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
4385
4042
|
}
|
|
4386
|
-
return [2,
|
|
4043
|
+
return [2, contents];
|
|
4387
4044
|
}
|
|
4388
4045
|
});
|
|
4389
4046
|
}); };
|
|
4390
4047
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4391
|
-
var parsedOutput, _a,
|
|
4048
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4392
4049
|
var _c;
|
|
4393
4050
|
return __generator(this, function (_d) {
|
|
4394
4051
|
switch (_d.label) {
|
|
@@ -4429,14 +4086,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4429
4086
|
case 13: throw _d.sent();
|
|
4430
4087
|
case 14:
|
|
4431
4088
|
parsedBody = parsedOutput.body;
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
$metadata: $metadata,
|
|
4089
|
+
throwDefaultError({
|
|
4090
|
+
output: output,
|
|
4091
|
+
parsedBody: parsedBody,
|
|
4092
|
+
exceptionCtor: __BaseException,
|
|
4093
|
+
errorCode: errorCode,
|
|
4438
4094
|
});
|
|
4439
|
-
|
|
4095
|
+
_d.label = 15;
|
|
4096
|
+
case 15: return [2];
|
|
4440
4097
|
}
|
|
4441
4098
|
});
|
|
4442
4099
|
}); };
|
|
@@ -4448,32 +4105,29 @@ export var deserializeAws_restJson1PutChannelMembershipPreferencesCommand = func
|
|
|
4448
4105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4449
4106
|
return [2, deserializeAws_restJson1PutChannelMembershipPreferencesCommandError(output, context)];
|
|
4450
4107
|
}
|
|
4451
|
-
contents = {
|
|
4108
|
+
contents = map({
|
|
4452
4109
|
$metadata: deserializeMetadata(output),
|
|
4453
|
-
|
|
4454
|
-
Member: undefined,
|
|
4455
|
-
Preferences: undefined,
|
|
4456
|
-
};
|
|
4110
|
+
});
|
|
4457
4111
|
_a = __expectNonNull;
|
|
4458
4112
|
_b = __expectObject;
|
|
4459
4113
|
return [4, parseBody(output.body, context)];
|
|
4460
4114
|
case 1:
|
|
4461
4115
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4462
|
-
if (data.ChannelArn
|
|
4116
|
+
if (data.ChannelArn != null) {
|
|
4463
4117
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4464
4118
|
}
|
|
4465
|
-
if (data.Member
|
|
4119
|
+
if (data.Member != null) {
|
|
4466
4120
|
contents.Member = deserializeAws_restJson1Identity(data.Member, context);
|
|
4467
4121
|
}
|
|
4468
|
-
if (data.Preferences
|
|
4122
|
+
if (data.Preferences != null) {
|
|
4469
4123
|
contents.Preferences = deserializeAws_restJson1ChannelMembershipPreferences(data.Preferences, context);
|
|
4470
4124
|
}
|
|
4471
|
-
return [2,
|
|
4125
|
+
return [2, contents];
|
|
4472
4126
|
}
|
|
4473
4127
|
});
|
|
4474
4128
|
}); };
|
|
4475
4129
|
var deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4476
|
-
var parsedOutput, _a,
|
|
4130
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4477
4131
|
var _c;
|
|
4478
4132
|
return __generator(this, function (_d) {
|
|
4479
4133
|
switch (_d.label) {
|
|
@@ -4518,14 +4172,14 @@ var deserializeAws_restJson1PutChannelMembershipPreferencesCommandError = functi
|
|
|
4518
4172
|
case 15: throw _d.sent();
|
|
4519
4173
|
case 16:
|
|
4520
4174
|
parsedBody = parsedOutput.body;
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
$metadata: $metadata,
|
|
4175
|
+
throwDefaultError({
|
|
4176
|
+
output: output,
|
|
4177
|
+
parsedBody: parsedBody,
|
|
4178
|
+
exceptionCtor: __BaseException,
|
|
4179
|
+
errorCode: errorCode,
|
|
4527
4180
|
});
|
|
4528
|
-
|
|
4181
|
+
_d.label = 17;
|
|
4182
|
+
case 17: return [2];
|
|
4529
4183
|
}
|
|
4530
4184
|
});
|
|
4531
4185
|
}); };
|
|
@@ -4537,28 +4191,26 @@ export var deserializeAws_restJson1RedactChannelMessageCommand = function (outpu
|
|
|
4537
4191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4538
4192
|
return [2, deserializeAws_restJson1RedactChannelMessageCommandError(output, context)];
|
|
4539
4193
|
}
|
|
4540
|
-
contents = {
|
|
4194
|
+
contents = map({
|
|
4541
4195
|
$metadata: deserializeMetadata(output),
|
|
4542
|
-
|
|
4543
|
-
MessageId: undefined,
|
|
4544
|
-
};
|
|
4196
|
+
});
|
|
4545
4197
|
_a = __expectNonNull;
|
|
4546
4198
|
_b = __expectObject;
|
|
4547
4199
|
return [4, parseBody(output.body, context)];
|
|
4548
4200
|
case 1:
|
|
4549
4201
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4550
|
-
if (data.ChannelArn
|
|
4202
|
+
if (data.ChannelArn != null) {
|
|
4551
4203
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4552
4204
|
}
|
|
4553
|
-
if (data.MessageId
|
|
4205
|
+
if (data.MessageId != null) {
|
|
4554
4206
|
contents.MessageId = __expectString(data.MessageId);
|
|
4555
4207
|
}
|
|
4556
|
-
return [2,
|
|
4208
|
+
return [2, contents];
|
|
4557
4209
|
}
|
|
4558
4210
|
});
|
|
4559
4211
|
}); };
|
|
4560
4212
|
var deserializeAws_restJson1RedactChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4561
|
-
var parsedOutput, _a,
|
|
4213
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4562
4214
|
var _c;
|
|
4563
4215
|
return __generator(this, function (_d) {
|
|
4564
4216
|
switch (_d.label) {
|
|
@@ -4603,14 +4255,14 @@ var deserializeAws_restJson1RedactChannelMessageCommandError = function (output,
|
|
|
4603
4255
|
case 15: throw _d.sent();
|
|
4604
4256
|
case 16:
|
|
4605
4257
|
parsedBody = parsedOutput.body;
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
$metadata: $metadata,
|
|
4258
|
+
throwDefaultError({
|
|
4259
|
+
output: output,
|
|
4260
|
+
parsedBody: parsedBody,
|
|
4261
|
+
exceptionCtor: __BaseException,
|
|
4262
|
+
errorCode: errorCode,
|
|
4612
4263
|
});
|
|
4613
|
-
|
|
4264
|
+
_d.label = 17;
|
|
4265
|
+
case 17: return [2];
|
|
4614
4266
|
}
|
|
4615
4267
|
});
|
|
4616
4268
|
}); };
|
|
@@ -4622,28 +4274,26 @@ export var deserializeAws_restJson1SearchChannelsCommand = function (output, con
|
|
|
4622
4274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4623
4275
|
return [2, deserializeAws_restJson1SearchChannelsCommandError(output, context)];
|
|
4624
4276
|
}
|
|
4625
|
-
contents = {
|
|
4277
|
+
contents = map({
|
|
4626
4278
|
$metadata: deserializeMetadata(output),
|
|
4627
|
-
|
|
4628
|
-
NextToken: undefined,
|
|
4629
|
-
};
|
|
4279
|
+
});
|
|
4630
4280
|
_a = __expectNonNull;
|
|
4631
4281
|
_b = __expectObject;
|
|
4632
4282
|
return [4, parseBody(output.body, context)];
|
|
4633
4283
|
case 1:
|
|
4634
4284
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4635
|
-
if (data.Channels
|
|
4285
|
+
if (data.Channels != null) {
|
|
4636
4286
|
contents.Channels = deserializeAws_restJson1ChannelSummaryList(data.Channels, context);
|
|
4637
4287
|
}
|
|
4638
|
-
if (data.NextToken
|
|
4288
|
+
if (data.NextToken != null) {
|
|
4639
4289
|
contents.NextToken = __expectString(data.NextToken);
|
|
4640
4290
|
}
|
|
4641
|
-
return [2,
|
|
4291
|
+
return [2, contents];
|
|
4642
4292
|
}
|
|
4643
4293
|
});
|
|
4644
4294
|
}); };
|
|
4645
4295
|
var deserializeAws_restJson1SearchChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4646
|
-
var parsedOutput, _a,
|
|
4296
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4647
4297
|
var _c;
|
|
4648
4298
|
return __generator(this, function (_d) {
|
|
4649
4299
|
switch (_d.label) {
|
|
@@ -4684,14 +4334,14 @@ var deserializeAws_restJson1SearchChannelsCommandError = function (output, conte
|
|
|
4684
4334
|
case 13: throw _d.sent();
|
|
4685
4335
|
case 14:
|
|
4686
4336
|
parsedBody = parsedOutput.body;
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
$metadata: $metadata,
|
|
4337
|
+
throwDefaultError({
|
|
4338
|
+
output: output,
|
|
4339
|
+
parsedBody: parsedBody,
|
|
4340
|
+
exceptionCtor: __BaseException,
|
|
4341
|
+
errorCode: errorCode,
|
|
4693
4342
|
});
|
|
4694
|
-
|
|
4343
|
+
_d.label = 15;
|
|
4344
|
+
case 15: return [2];
|
|
4695
4345
|
}
|
|
4696
4346
|
});
|
|
4697
4347
|
}); };
|
|
@@ -4703,32 +4353,29 @@ export var deserializeAws_restJson1SendChannelMessageCommand = function (output,
|
|
|
4703
4353
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4704
4354
|
return [2, deserializeAws_restJson1SendChannelMessageCommandError(output, context)];
|
|
4705
4355
|
}
|
|
4706
|
-
contents = {
|
|
4356
|
+
contents = map({
|
|
4707
4357
|
$metadata: deserializeMetadata(output),
|
|
4708
|
-
|
|
4709
|
-
MessageId: undefined,
|
|
4710
|
-
Status: undefined,
|
|
4711
|
-
};
|
|
4358
|
+
});
|
|
4712
4359
|
_a = __expectNonNull;
|
|
4713
4360
|
_b = __expectObject;
|
|
4714
4361
|
return [4, parseBody(output.body, context)];
|
|
4715
4362
|
case 1:
|
|
4716
4363
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4717
|
-
if (data.ChannelArn
|
|
4364
|
+
if (data.ChannelArn != null) {
|
|
4718
4365
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4719
4366
|
}
|
|
4720
|
-
if (data.MessageId
|
|
4367
|
+
if (data.MessageId != null) {
|
|
4721
4368
|
contents.MessageId = __expectString(data.MessageId);
|
|
4722
4369
|
}
|
|
4723
|
-
if (data.Status
|
|
4370
|
+
if (data.Status != null) {
|
|
4724
4371
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
4725
4372
|
}
|
|
4726
|
-
return [2,
|
|
4373
|
+
return [2, contents];
|
|
4727
4374
|
}
|
|
4728
4375
|
});
|
|
4729
4376
|
}); };
|
|
4730
4377
|
var deserializeAws_restJson1SendChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4731
|
-
var parsedOutput, _a,
|
|
4378
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4732
4379
|
var _c;
|
|
4733
4380
|
return __generator(this, function (_d) {
|
|
4734
4381
|
switch (_d.label) {
|
|
@@ -4773,14 +4420,14 @@ var deserializeAws_restJson1SendChannelMessageCommandError = function (output, c
|
|
|
4773
4420
|
case 15: throw _d.sent();
|
|
4774
4421
|
case 16:
|
|
4775
4422
|
parsedBody = parsedOutput.body;
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
$metadata: $metadata,
|
|
4423
|
+
throwDefaultError({
|
|
4424
|
+
output: output,
|
|
4425
|
+
parsedBody: parsedBody,
|
|
4426
|
+
exceptionCtor: __BaseException,
|
|
4427
|
+
errorCode: errorCode,
|
|
4782
4428
|
});
|
|
4783
|
-
|
|
4429
|
+
_d.label = 17;
|
|
4430
|
+
case 17: return [2];
|
|
4784
4431
|
}
|
|
4785
4432
|
});
|
|
4786
4433
|
}); };
|
|
@@ -4792,18 +4439,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
4792
4439
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4793
4440
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
4794
4441
|
}
|
|
4795
|
-
contents = {
|
|
4442
|
+
contents = map({
|
|
4796
4443
|
$metadata: deserializeMetadata(output),
|
|
4797
|
-
};
|
|
4444
|
+
});
|
|
4798
4445
|
return [4, collectBody(output.body, context)];
|
|
4799
4446
|
case 1:
|
|
4800
4447
|
_a.sent();
|
|
4801
|
-
return [2,
|
|
4448
|
+
return [2, contents];
|
|
4802
4449
|
}
|
|
4803
4450
|
});
|
|
4804
4451
|
}); };
|
|
4805
4452
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4806
|
-
var parsedOutput, _a,
|
|
4453
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4807
4454
|
var _c;
|
|
4808
4455
|
return __generator(this, function (_d) {
|
|
4809
4456
|
switch (_d.label) {
|
|
@@ -4848,14 +4495,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
4848
4495
|
case 15: throw _d.sent();
|
|
4849
4496
|
case 16:
|
|
4850
4497
|
parsedBody = parsedOutput.body;
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
$metadata: $metadata,
|
|
4498
|
+
throwDefaultError({
|
|
4499
|
+
output: output,
|
|
4500
|
+
parsedBody: parsedBody,
|
|
4501
|
+
exceptionCtor: __BaseException,
|
|
4502
|
+
errorCode: errorCode,
|
|
4857
4503
|
});
|
|
4858
|
-
|
|
4504
|
+
_d.label = 17;
|
|
4505
|
+
case 17: return [2];
|
|
4859
4506
|
}
|
|
4860
4507
|
});
|
|
4861
4508
|
}); };
|
|
@@ -4867,18 +4514,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
4867
4514
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4868
4515
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
4869
4516
|
}
|
|
4870
|
-
contents = {
|
|
4517
|
+
contents = map({
|
|
4871
4518
|
$metadata: deserializeMetadata(output),
|
|
4872
|
-
};
|
|
4519
|
+
});
|
|
4873
4520
|
return [4, collectBody(output.body, context)];
|
|
4874
4521
|
case 1:
|
|
4875
4522
|
_a.sent();
|
|
4876
|
-
return [2,
|
|
4523
|
+
return [2, contents];
|
|
4877
4524
|
}
|
|
4878
4525
|
});
|
|
4879
4526
|
}); };
|
|
4880
4527
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4881
|
-
var parsedOutput, _a,
|
|
4528
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4882
4529
|
var _c;
|
|
4883
4530
|
return __generator(this, function (_d) {
|
|
4884
4531
|
switch (_d.label) {
|
|
@@ -4919,14 +4566,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
4919
4566
|
case 13: throw _d.sent();
|
|
4920
4567
|
case 14:
|
|
4921
4568
|
parsedBody = parsedOutput.body;
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
$metadata: $metadata,
|
|
4569
|
+
throwDefaultError({
|
|
4570
|
+
output: output,
|
|
4571
|
+
parsedBody: parsedBody,
|
|
4572
|
+
exceptionCtor: __BaseException,
|
|
4573
|
+
errorCode: errorCode,
|
|
4928
4574
|
});
|
|
4929
|
-
|
|
4575
|
+
_d.label = 15;
|
|
4576
|
+
case 15: return [2];
|
|
4930
4577
|
}
|
|
4931
4578
|
});
|
|
4932
4579
|
}); };
|
|
@@ -4938,24 +4585,23 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
4938
4585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4939
4586
|
return [2, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
|
|
4940
4587
|
}
|
|
4941
|
-
contents = {
|
|
4588
|
+
contents = map({
|
|
4942
4589
|
$metadata: deserializeMetadata(output),
|
|
4943
|
-
|
|
4944
|
-
};
|
|
4590
|
+
});
|
|
4945
4591
|
_a = __expectNonNull;
|
|
4946
4592
|
_b = __expectObject;
|
|
4947
4593
|
return [4, parseBody(output.body, context)];
|
|
4948
4594
|
case 1:
|
|
4949
4595
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4950
|
-
if (data.ChannelArn
|
|
4596
|
+
if (data.ChannelArn != null) {
|
|
4951
4597
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
4952
4598
|
}
|
|
4953
|
-
return [2,
|
|
4599
|
+
return [2, contents];
|
|
4954
4600
|
}
|
|
4955
4601
|
});
|
|
4956
4602
|
}); };
|
|
4957
4603
|
var deserializeAws_restJson1UpdateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4958
|
-
var parsedOutput, _a,
|
|
4604
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4959
4605
|
var _c;
|
|
4960
4606
|
return __generator(this, function (_d) {
|
|
4961
4607
|
switch (_d.label) {
|
|
@@ -5000,14 +4646,14 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
5000
4646
|
case 15: throw _d.sent();
|
|
5001
4647
|
case 16:
|
|
5002
4648
|
parsedBody = parsedOutput.body;
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
$metadata: $metadata,
|
|
4649
|
+
throwDefaultError({
|
|
4650
|
+
output: output,
|
|
4651
|
+
parsedBody: parsedBody,
|
|
4652
|
+
exceptionCtor: __BaseException,
|
|
4653
|
+
errorCode: errorCode,
|
|
5009
4654
|
});
|
|
5010
|
-
|
|
4655
|
+
_d.label = 17;
|
|
4656
|
+
case 17: return [2];
|
|
5011
4657
|
}
|
|
5012
4658
|
});
|
|
5013
4659
|
}); };
|
|
@@ -5019,24 +4665,23 @@ export var deserializeAws_restJson1UpdateChannelFlowCommand = function (output,
|
|
|
5019
4665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5020
4666
|
return [2, deserializeAws_restJson1UpdateChannelFlowCommandError(output, context)];
|
|
5021
4667
|
}
|
|
5022
|
-
contents = {
|
|
4668
|
+
contents = map({
|
|
5023
4669
|
$metadata: deserializeMetadata(output),
|
|
5024
|
-
|
|
5025
|
-
};
|
|
4670
|
+
});
|
|
5026
4671
|
_a = __expectNonNull;
|
|
5027
4672
|
_b = __expectObject;
|
|
5028
4673
|
return [4, parseBody(output.body, context)];
|
|
5029
4674
|
case 1:
|
|
5030
4675
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5031
|
-
if (data.ChannelFlowArn
|
|
4676
|
+
if (data.ChannelFlowArn != null) {
|
|
5032
4677
|
contents.ChannelFlowArn = __expectString(data.ChannelFlowArn);
|
|
5033
4678
|
}
|
|
5034
|
-
return [2,
|
|
4679
|
+
return [2, contents];
|
|
5035
4680
|
}
|
|
5036
4681
|
});
|
|
5037
4682
|
}); };
|
|
5038
4683
|
var deserializeAws_restJson1UpdateChannelFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5039
|
-
var parsedOutput, _a,
|
|
4684
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5040
4685
|
var _c;
|
|
5041
4686
|
return __generator(this, function (_d) {
|
|
5042
4687
|
switch (_d.label) {
|
|
@@ -5081,14 +4726,14 @@ var deserializeAws_restJson1UpdateChannelFlowCommandError = function (output, co
|
|
|
5081
4726
|
case 15: throw _d.sent();
|
|
5082
4727
|
case 16:
|
|
5083
4728
|
parsedBody = parsedOutput.body;
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
$metadata: $metadata,
|
|
4729
|
+
throwDefaultError({
|
|
4730
|
+
output: output,
|
|
4731
|
+
parsedBody: parsedBody,
|
|
4732
|
+
exceptionCtor: __BaseException,
|
|
4733
|
+
errorCode: errorCode,
|
|
5090
4734
|
});
|
|
5091
|
-
|
|
4735
|
+
_d.label = 17;
|
|
4736
|
+
case 17: return [2];
|
|
5092
4737
|
}
|
|
5093
4738
|
});
|
|
5094
4739
|
}); };
|
|
@@ -5100,32 +4745,29 @@ export var deserializeAws_restJson1UpdateChannelMessageCommand = function (outpu
|
|
|
5100
4745
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5101
4746
|
return [2, deserializeAws_restJson1UpdateChannelMessageCommandError(output, context)];
|
|
5102
4747
|
}
|
|
5103
|
-
contents = {
|
|
4748
|
+
contents = map({
|
|
5104
4749
|
$metadata: deserializeMetadata(output),
|
|
5105
|
-
|
|
5106
|
-
MessageId: undefined,
|
|
5107
|
-
Status: undefined,
|
|
5108
|
-
};
|
|
4750
|
+
});
|
|
5109
4751
|
_a = __expectNonNull;
|
|
5110
4752
|
_b = __expectObject;
|
|
5111
4753
|
return [4, parseBody(output.body, context)];
|
|
5112
4754
|
case 1:
|
|
5113
4755
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5114
|
-
if (data.ChannelArn
|
|
4756
|
+
if (data.ChannelArn != null) {
|
|
5115
4757
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
5116
4758
|
}
|
|
5117
|
-
if (data.MessageId
|
|
4759
|
+
if (data.MessageId != null) {
|
|
5118
4760
|
contents.MessageId = __expectString(data.MessageId);
|
|
5119
4761
|
}
|
|
5120
|
-
if (data.Status
|
|
4762
|
+
if (data.Status != null) {
|
|
5121
4763
|
contents.Status = deserializeAws_restJson1ChannelMessageStatusStructure(data.Status, context);
|
|
5122
4764
|
}
|
|
5123
|
-
return [2,
|
|
4765
|
+
return [2, contents];
|
|
5124
4766
|
}
|
|
5125
4767
|
});
|
|
5126
4768
|
}); };
|
|
5127
4769
|
var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5128
|
-
var parsedOutput, _a,
|
|
4770
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5129
4771
|
var _c;
|
|
5130
4772
|
return __generator(this, function (_d) {
|
|
5131
4773
|
switch (_d.label) {
|
|
@@ -5170,14 +4812,14 @@ var deserializeAws_restJson1UpdateChannelMessageCommandError = function (output,
|
|
|
5170
4812
|
case 15: throw _d.sent();
|
|
5171
4813
|
case 16:
|
|
5172
4814
|
parsedBody = parsedOutput.body;
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
$metadata: $metadata,
|
|
4815
|
+
throwDefaultError({
|
|
4816
|
+
output: output,
|
|
4817
|
+
parsedBody: parsedBody,
|
|
4818
|
+
exceptionCtor: __BaseException,
|
|
4819
|
+
errorCode: errorCode,
|
|
5179
4820
|
});
|
|
5180
|
-
|
|
4821
|
+
_d.label = 17;
|
|
4822
|
+
case 17: return [2];
|
|
5181
4823
|
}
|
|
5182
4824
|
});
|
|
5183
4825
|
}); };
|
|
@@ -5189,24 +4831,23 @@ export var deserializeAws_restJson1UpdateChannelReadMarkerCommand = function (ou
|
|
|
5189
4831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5190
4832
|
return [2, deserializeAws_restJson1UpdateChannelReadMarkerCommandError(output, context)];
|
|
5191
4833
|
}
|
|
5192
|
-
contents = {
|
|
4834
|
+
contents = map({
|
|
5193
4835
|
$metadata: deserializeMetadata(output),
|
|
5194
|
-
|
|
5195
|
-
};
|
|
4836
|
+
});
|
|
5196
4837
|
_a = __expectNonNull;
|
|
5197
4838
|
_b = __expectObject;
|
|
5198
4839
|
return [4, parseBody(output.body, context)];
|
|
5199
4840
|
case 1:
|
|
5200
4841
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5201
|
-
if (data.ChannelArn
|
|
4842
|
+
if (data.ChannelArn != null) {
|
|
5202
4843
|
contents.ChannelArn = __expectString(data.ChannelArn);
|
|
5203
4844
|
}
|
|
5204
|
-
return [2,
|
|
4845
|
+
return [2, contents];
|
|
5205
4846
|
}
|
|
5206
4847
|
});
|
|
5207
4848
|
}); };
|
|
5208
4849
|
var deserializeAws_restJson1UpdateChannelReadMarkerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5209
|
-
var parsedOutput, _a,
|
|
4850
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5210
4851
|
var _c;
|
|
5211
4852
|
return __generator(this, function (_d) {
|
|
5212
4853
|
switch (_d.label) {
|
|
@@ -5251,26 +4892,27 @@ var deserializeAws_restJson1UpdateChannelReadMarkerCommandError = function (outp
|
|
|
5251
4892
|
case 15: throw _d.sent();
|
|
5252
4893
|
case 16:
|
|
5253
4894
|
parsedBody = parsedOutput.body;
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
$metadata: $metadata,
|
|
4895
|
+
throwDefaultError({
|
|
4896
|
+
output: output,
|
|
4897
|
+
parsedBody: parsedBody,
|
|
4898
|
+
exceptionCtor: __BaseException,
|
|
4899
|
+
errorCode: errorCode,
|
|
5260
4900
|
});
|
|
5261
|
-
|
|
4901
|
+
_d.label = 17;
|
|
4902
|
+
case 17: return [2];
|
|
5262
4903
|
}
|
|
5263
4904
|
});
|
|
5264
4905
|
}); };
|
|
4906
|
+
var map = __map;
|
|
5265
4907
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5266
4908
|
var contents, data, exception;
|
|
5267
4909
|
return __generator(this, function (_a) {
|
|
5268
|
-
contents = {};
|
|
4910
|
+
contents = map({});
|
|
5269
4911
|
data = parsedOutput.body;
|
|
5270
|
-
if (data.Code
|
|
4912
|
+
if (data.Code != null) {
|
|
5271
4913
|
contents.Code = __expectString(data.Code);
|
|
5272
4914
|
}
|
|
5273
|
-
if (data.Message
|
|
4915
|
+
if (data.Message != null) {
|
|
5274
4916
|
contents.Message = __expectString(data.Message);
|
|
5275
4917
|
}
|
|
5276
4918
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5280,12 +4922,12 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
5280
4922
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5281
4923
|
var contents, data, exception;
|
|
5282
4924
|
return __generator(this, function (_a) {
|
|
5283
|
-
contents = {};
|
|
4925
|
+
contents = map({});
|
|
5284
4926
|
data = parsedOutput.body;
|
|
5285
|
-
if (data.Code
|
|
4927
|
+
if (data.Code != null) {
|
|
5286
4928
|
contents.Code = __expectString(data.Code);
|
|
5287
4929
|
}
|
|
5288
|
-
if (data.Message
|
|
4930
|
+
if (data.Message != null) {
|
|
5289
4931
|
contents.Message = __expectString(data.Message);
|
|
5290
4932
|
}
|
|
5291
4933
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5295,12 +4937,12 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
5295
4937
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5296
4938
|
var contents, data, exception;
|
|
5297
4939
|
return __generator(this, function (_a) {
|
|
5298
|
-
contents = {};
|
|
4940
|
+
contents = map({});
|
|
5299
4941
|
data = parsedOutput.body;
|
|
5300
|
-
if (data.Code
|
|
4942
|
+
if (data.Code != null) {
|
|
5301
4943
|
contents.Code = __expectString(data.Code);
|
|
5302
4944
|
}
|
|
5303
|
-
if (data.Message
|
|
4945
|
+
if (data.Message != null) {
|
|
5304
4946
|
contents.Message = __expectString(data.Message);
|
|
5305
4947
|
}
|
|
5306
4948
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5310,12 +4952,12 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
5310
4952
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5311
4953
|
var contents, data, exception;
|
|
5312
4954
|
return __generator(this, function (_a) {
|
|
5313
|
-
contents = {};
|
|
4955
|
+
contents = map({});
|
|
5314
4956
|
data = parsedOutput.body;
|
|
5315
|
-
if (data.Code
|
|
4957
|
+
if (data.Code != null) {
|
|
5316
4958
|
contents.Code = __expectString(data.Code);
|
|
5317
4959
|
}
|
|
5318
|
-
if (data.Message
|
|
4960
|
+
if (data.Message != null) {
|
|
5319
4961
|
contents.Message = __expectString(data.Message);
|
|
5320
4962
|
}
|
|
5321
4963
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5325,12 +4967,12 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
5325
4967
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5326
4968
|
var contents, data, exception;
|
|
5327
4969
|
return __generator(this, function (_a) {
|
|
5328
|
-
contents = {};
|
|
4970
|
+
contents = map({});
|
|
5329
4971
|
data = parsedOutput.body;
|
|
5330
|
-
if (data.Code
|
|
4972
|
+
if (data.Code != null) {
|
|
5331
4973
|
contents.Code = __expectString(data.Code);
|
|
5332
4974
|
}
|
|
5333
|
-
if (data.Message
|
|
4975
|
+
if (data.Message != null) {
|
|
5334
4976
|
contents.Message = __expectString(data.Message);
|
|
5335
4977
|
}
|
|
5336
4978
|
exception = new ResourceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5340,12 +4982,12 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
5340
4982
|
var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5341
4983
|
var contents, data, exception;
|
|
5342
4984
|
return __generator(this, function (_a) {
|
|
5343
|
-
contents = {};
|
|
4985
|
+
contents = map({});
|
|
5344
4986
|
data = parsedOutput.body;
|
|
5345
|
-
if (data.Code
|
|
4987
|
+
if (data.Code != null) {
|
|
5346
4988
|
contents.Code = __expectString(data.Code);
|
|
5347
4989
|
}
|
|
5348
|
-
if (data.Message
|
|
4990
|
+
if (data.Message != null) {
|
|
5349
4991
|
contents.Message = __expectString(data.Message);
|
|
5350
4992
|
}
|
|
5351
4993
|
exception = new ServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5355,12 +4997,12 @@ var deserializeAws_restJson1ServiceFailureExceptionResponse = function (parsedOu
|
|
|
5355
4997
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5356
4998
|
var contents, data, exception;
|
|
5357
4999
|
return __generator(this, function (_a) {
|
|
5358
|
-
contents = {};
|
|
5000
|
+
contents = map({});
|
|
5359
5001
|
data = parsedOutput.body;
|
|
5360
|
-
if (data.Code
|
|
5002
|
+
if (data.Code != null) {
|
|
5361
5003
|
contents.Code = __expectString(data.Code);
|
|
5362
5004
|
}
|
|
5363
|
-
if (data.Message
|
|
5005
|
+
if (data.Message != null) {
|
|
5364
5006
|
contents.Message = __expectString(data.Message);
|
|
5365
5007
|
}
|
|
5366
5008
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5370,12 +5012,12 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
5370
5012
|
var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5371
5013
|
var contents, data, exception;
|
|
5372
5014
|
return __generator(this, function (_a) {
|
|
5373
|
-
contents = {};
|
|
5015
|
+
contents = map({});
|
|
5374
5016
|
data = parsedOutput.body;
|
|
5375
|
-
if (data.Code
|
|
5017
|
+
if (data.Code != null) {
|
|
5376
5018
|
contents.Code = __expectString(data.Code);
|
|
5377
5019
|
}
|
|
5378
|
-
if (data.Message
|
|
5020
|
+
if (data.Message != null) {
|
|
5379
5021
|
contents.Message = __expectString(data.Message);
|
|
5380
5022
|
}
|
|
5381
5023
|
exception = new ThrottledClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5385,12 +5027,12 @@ var deserializeAws_restJson1ThrottledClientExceptionResponse = function (parsedO
|
|
|
5385
5027
|
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5386
5028
|
var contents, data, exception;
|
|
5387
5029
|
return __generator(this, function (_a) {
|
|
5388
|
-
contents = {};
|
|
5030
|
+
contents = map({});
|
|
5389
5031
|
data = parsedOutput.body;
|
|
5390
|
-
if (data.Code
|
|
5032
|
+
if (data.Code != null) {
|
|
5391
5033
|
contents.Code = __expectString(data.Code);
|
|
5392
5034
|
}
|
|
5393
|
-
if (data.Message
|
|
5035
|
+
if (data.Message != null) {
|
|
5394
5036
|
contents.Message = __expectString(data.Message);
|
|
5395
5037
|
}
|
|
5396
5038
|
exception = new UnauthorizedClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -5401,9 +5043,6 @@ var serializeAws_restJson1ChannelMemberArns = function (input, context) {
|
|
|
5401
5043
|
return input
|
|
5402
5044
|
.filter(function (e) { return e != null; })
|
|
5403
5045
|
.map(function (entry) {
|
|
5404
|
-
if (entry === null) {
|
|
5405
|
-
return null;
|
|
5406
|
-
}
|
|
5407
5046
|
return entry;
|
|
5408
5047
|
});
|
|
5409
5048
|
};
|
|
@@ -5423,9 +5062,6 @@ var serializeAws_restJson1ChannelModeratorArns = function (input, context) {
|
|
|
5423
5062
|
return input
|
|
5424
5063
|
.filter(function (e) { return e != null; })
|
|
5425
5064
|
.map(function (entry) {
|
|
5426
|
-
if (entry === null) {
|
|
5427
|
-
return null;
|
|
5428
|
-
}
|
|
5429
5065
|
return entry;
|
|
5430
5066
|
});
|
|
5431
5067
|
};
|
|
@@ -5436,9 +5072,6 @@ var serializeAws_restJson1MemberArns = function (input, context) {
|
|
|
5436
5072
|
return input
|
|
5437
5073
|
.filter(function (e) { return e != null; })
|
|
5438
5074
|
.map(function (entry) {
|
|
5439
|
-
if (entry === null) {
|
|
5440
|
-
return null;
|
|
5441
|
-
}
|
|
5442
5075
|
return entry;
|
|
5443
5076
|
});
|
|
5444
5077
|
};
|
|
@@ -5456,9 +5089,6 @@ var serializeAws_restJson1MessageAttributeStringValues = function (input, contex
|
|
|
5456
5089
|
return input
|
|
5457
5090
|
.filter(function (e) { return e != null; })
|
|
5458
5091
|
.map(function (entry) {
|
|
5459
|
-
if (entry === null) {
|
|
5460
|
-
return null;
|
|
5461
|
-
}
|
|
5462
5092
|
return entry;
|
|
5463
5093
|
});
|
|
5464
5094
|
};
|
|
@@ -5479,9 +5109,6 @@ var serializeAws_restJson1ProcessorList = function (input, context) {
|
|
|
5479
5109
|
return input
|
|
5480
5110
|
.filter(function (e) { return e != null; })
|
|
5481
5111
|
.map(function (entry) {
|
|
5482
|
-
if (entry === null) {
|
|
5483
|
-
return null;
|
|
5484
|
-
}
|
|
5485
5112
|
return serializeAws_restJson1Processor(entry, context);
|
|
5486
5113
|
});
|
|
5487
5114
|
};
|
|
@@ -5498,9 +5125,6 @@ var serializeAws_restJson1SearchFields = function (input, context) {
|
|
|
5498
5125
|
return input
|
|
5499
5126
|
.filter(function (e) { return e != null; })
|
|
5500
5127
|
.map(function (entry) {
|
|
5501
|
-
if (entry === null) {
|
|
5502
|
-
return null;
|
|
5503
|
-
}
|
|
5504
5128
|
return serializeAws_restJson1SearchField(entry, context);
|
|
5505
5129
|
});
|
|
5506
5130
|
};
|
|
@@ -5508,9 +5132,6 @@ var serializeAws_restJson1SearchFieldValues = function (input, context) {
|
|
|
5508
5132
|
return input
|
|
5509
5133
|
.filter(function (e) { return e != null; })
|
|
5510
5134
|
.map(function (entry) {
|
|
5511
|
-
if (entry === null) {
|
|
5512
|
-
return null;
|
|
5513
|
-
}
|
|
5514
5135
|
return entry;
|
|
5515
5136
|
});
|
|
5516
5137
|
};
|
|
@@ -5521,9 +5142,6 @@ var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
|
5521
5142
|
return input
|
|
5522
5143
|
.filter(function (e) { return e != null; })
|
|
5523
5144
|
.map(function (entry) {
|
|
5524
|
-
if (entry === null) {
|
|
5525
|
-
return null;
|
|
5526
|
-
}
|
|
5527
5145
|
return entry;
|
|
5528
5146
|
});
|
|
5529
5147
|
};
|
|
@@ -5531,9 +5149,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
5531
5149
|
return input
|
|
5532
5150
|
.filter(function (e) { return e != null; })
|
|
5533
5151
|
.map(function (entry) {
|
|
5534
|
-
if (entry === null) {
|
|
5535
|
-
return null;
|
|
5536
|
-
}
|
|
5537
5152
|
return serializeAws_restJson1Tag(entry, context);
|
|
5538
5153
|
});
|
|
5539
5154
|
};
|