@aws-sdk/client-chime-sdk-messaging 3.310.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +601 -1202
- package/dist-es/protocols/Aws_restJson1.js +480 -1081
- package/package.json +6 -6
|
@@ -10,16 +10,16 @@ const ChimeSDKMessagingServiceException_1 = require("../models/ChimeSDKMessaging
|
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const se_AssociateChannelFlowCommand = async (input, context) => {
|
|
12
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
13
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
16
16
|
});
|
|
17
17
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/channel-flow";
|
|
18
18
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify({
|
|
21
|
-
|
|
22
|
-
});
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
21
|
+
ChannelFlowArn: [],
|
|
22
|
+
}));
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
24
24
|
protocol,
|
|
25
25
|
hostname,
|
|
@@ -33,21 +33,21 @@ const se_AssociateChannelFlowCommand = async (input, context) => {
|
|
|
33
33
|
exports.se_AssociateChannelFlowCommand = se_AssociateChannelFlowCommand;
|
|
34
34
|
const se_BatchCreateChannelMembershipCommand = async (input, context) => {
|
|
35
35
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
36
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
37
37
|
"content-type": "application/json",
|
|
38
38
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
39
39
|
});
|
|
40
40
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships";
|
|
41
41
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
42
|
-
const query = map({
|
|
42
|
+
const query = (0, smithy_client_1.map)({
|
|
43
43
|
operation: [, "batch-create"],
|
|
44
44
|
});
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
47
|
+
MemberArns: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
+
SubChannelId: [],
|
|
49
|
+
Type: [],
|
|
50
|
+
}));
|
|
51
51
|
return new protocol_http_1.HttpRequest({
|
|
52
52
|
protocol,
|
|
53
53
|
hostname,
|
|
@@ -67,15 +67,15 @@ const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
|
67
67
|
};
|
|
68
68
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
69
69
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
70
|
-
const query = map({
|
|
70
|
+
const query = (0, smithy_client_1.map)({
|
|
71
71
|
operation: [, "channel-flow-callback"],
|
|
72
72
|
});
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify({
|
|
75
|
-
CallbackId:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
});
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
|
+
CallbackId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
76
|
+
ChannelMessage: (_) => (0, smithy_client_1._json)(_),
|
|
77
|
+
DeleteResource: [],
|
|
78
|
+
}));
|
|
79
79
|
return new protocol_http_1.HttpRequest({
|
|
80
80
|
protocol,
|
|
81
81
|
hostname,
|
|
@@ -90,30 +90,26 @@ const se_ChannelFlowCallbackCommand = async (input, context) => {
|
|
|
90
90
|
exports.se_ChannelFlowCallbackCommand = se_ChannelFlowCallbackCommand;
|
|
91
91
|
const se_CreateChannelCommand = async (input, context) => {
|
|
92
92
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
93
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
94
94
|
"content-type": "application/json",
|
|
95
95
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
96
96
|
});
|
|
97
97
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
98
98
|
let body;
|
|
99
|
-
body = JSON.stringify({
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
ClientRequestToken:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
...(input.Name != null && { Name: input.Name }),
|
|
114
|
-
...(input.Privacy != null && { Privacy: input.Privacy }),
|
|
115
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
116
|
-
});
|
|
99
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
100
|
+
AppInstanceArn: [],
|
|
101
|
+
ChannelId: [],
|
|
102
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
103
|
+
ElasticChannelConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
104
|
+
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
105
|
+
MemberArns: (_) => (0, smithy_client_1._json)(_),
|
|
106
|
+
Metadata: [],
|
|
107
|
+
Mode: [],
|
|
108
|
+
ModeratorArns: (_) => (0, smithy_client_1._json)(_),
|
|
109
|
+
Name: [],
|
|
110
|
+
Privacy: [],
|
|
111
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
112
|
+
}));
|
|
117
113
|
return new protocol_http_1.HttpRequest({
|
|
118
114
|
protocol,
|
|
119
115
|
hostname,
|
|
@@ -127,16 +123,16 @@ const se_CreateChannelCommand = async (input, context) => {
|
|
|
127
123
|
exports.se_CreateChannelCommand = se_CreateChannelCommand;
|
|
128
124
|
const se_CreateChannelBanCommand = async (input, context) => {
|
|
129
125
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
126
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
131
127
|
"content-type": "application/json",
|
|
132
128
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
133
129
|
});
|
|
134
130
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans";
|
|
135
131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
136
132
|
let body;
|
|
137
|
-
body = JSON.stringify({
|
|
138
|
-
|
|
139
|
-
});
|
|
133
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
134
|
+
MemberArn: [],
|
|
135
|
+
}));
|
|
140
136
|
return new protocol_http_1.HttpRequest({
|
|
141
137
|
protocol,
|
|
142
138
|
hostname,
|
|
@@ -155,13 +151,13 @@ const se_CreateChannelFlowCommand = async (input, context) => {
|
|
|
155
151
|
};
|
|
156
152
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
|
|
157
153
|
let body;
|
|
158
|
-
body = JSON.stringify({
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
});
|
|
154
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
155
|
+
AppInstanceArn: [],
|
|
156
|
+
ClientRequestToken: [],
|
|
157
|
+
Name: [],
|
|
158
|
+
Processors: (_) => (0, smithy_client_1._json)(_),
|
|
159
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
160
|
+
}));
|
|
165
161
|
return new protocol_http_1.HttpRequest({
|
|
166
162
|
protocol,
|
|
167
163
|
hostname,
|
|
@@ -175,18 +171,18 @@ const se_CreateChannelFlowCommand = async (input, context) => {
|
|
|
175
171
|
exports.se_CreateChannelFlowCommand = se_CreateChannelFlowCommand;
|
|
176
172
|
const se_CreateChannelMembershipCommand = async (input, context) => {
|
|
177
173
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
178
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
174
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
179
175
|
"content-type": "application/json",
|
|
180
176
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
181
177
|
});
|
|
182
178
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships";
|
|
183
179
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
184
180
|
let body;
|
|
185
|
-
body = JSON.stringify({
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
});
|
|
181
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
182
|
+
MemberArn: [],
|
|
183
|
+
SubChannelId: [],
|
|
184
|
+
Type: [],
|
|
185
|
+
}));
|
|
190
186
|
return new protocol_http_1.HttpRequest({
|
|
191
187
|
protocol,
|
|
192
188
|
hostname,
|
|
@@ -200,16 +196,16 @@ const se_CreateChannelMembershipCommand = async (input, context) => {
|
|
|
200
196
|
exports.se_CreateChannelMembershipCommand = se_CreateChannelMembershipCommand;
|
|
201
197
|
const se_CreateChannelModeratorCommand = async (input, context) => {
|
|
202
198
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
203
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
199
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
204
200
|
"content-type": "application/json",
|
|
205
201
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
206
202
|
});
|
|
207
203
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators";
|
|
208
204
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
209
205
|
let body;
|
|
210
|
-
body = JSON.stringify({
|
|
211
|
-
|
|
212
|
-
});
|
|
206
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
207
|
+
ChannelModeratorArn: [],
|
|
208
|
+
}));
|
|
213
209
|
return new protocol_http_1.HttpRequest({
|
|
214
210
|
protocol,
|
|
215
211
|
hostname,
|
|
@@ -223,12 +219,12 @@ const se_CreateChannelModeratorCommand = async (input, context) => {
|
|
|
223
219
|
exports.se_CreateChannelModeratorCommand = se_CreateChannelModeratorCommand;
|
|
224
220
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
225
221
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
222
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
227
223
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
228
224
|
});
|
|
229
225
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
230
226
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
231
|
-
const query = map({
|
|
227
|
+
const query = (0, smithy_client_1.map)({
|
|
232
228
|
"sub-channel-id": [, input.SubChannelId],
|
|
233
229
|
});
|
|
234
230
|
let body;
|
|
@@ -246,7 +242,7 @@ const se_DeleteChannelCommand = async (input, context) => {
|
|
|
246
242
|
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
247
243
|
const se_DeleteChannelBanCommand = async (input, context) => {
|
|
248
244
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
249
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
245
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
250
246
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
251
247
|
});
|
|
252
248
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}";
|
|
@@ -283,14 +279,14 @@ const se_DeleteChannelFlowCommand = async (input, context) => {
|
|
|
283
279
|
exports.se_DeleteChannelFlowCommand = se_DeleteChannelFlowCommand;
|
|
284
280
|
const se_DeleteChannelMembershipCommand = async (input, context) => {
|
|
285
281
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
286
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
282
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
287
283
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
288
284
|
});
|
|
289
285
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
290
286
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
291
287
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
292
288
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
293
|
-
const query = map({
|
|
289
|
+
const query = (0, smithy_client_1.map)({
|
|
294
290
|
"sub-channel-id": [, input.SubChannelId],
|
|
295
291
|
});
|
|
296
292
|
let body;
|
|
@@ -308,14 +304,14 @@ const se_DeleteChannelMembershipCommand = async (input, context) => {
|
|
|
308
304
|
exports.se_DeleteChannelMembershipCommand = se_DeleteChannelMembershipCommand;
|
|
309
305
|
const se_DeleteChannelMessageCommand = async (input, context) => {
|
|
310
306
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
311
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
307
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
312
308
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
313
309
|
});
|
|
314
310
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
315
311
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
316
312
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
317
313
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
318
|
-
const query = map({
|
|
314
|
+
const query = (0, smithy_client_1.map)({
|
|
319
315
|
"sub-channel-id": [, input.SubChannelId],
|
|
320
316
|
});
|
|
321
317
|
let body;
|
|
@@ -333,7 +329,7 @@ const se_DeleteChannelMessageCommand = async (input, context) => {
|
|
|
333
329
|
exports.se_DeleteChannelMessageCommand = se_DeleteChannelMessageCommand;
|
|
334
330
|
const se_DeleteChannelModeratorCommand = async (input, context) => {
|
|
335
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
336
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
332
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
337
333
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
338
334
|
});
|
|
339
335
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -372,7 +368,7 @@ const se_DeleteMessagingStreamingConfigurationsCommand = async (input, context)
|
|
|
372
368
|
exports.se_DeleteMessagingStreamingConfigurationsCommand = se_DeleteMessagingStreamingConfigurationsCommand;
|
|
373
369
|
const se_DescribeChannelCommand = async (input, context) => {
|
|
374
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
375
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
371
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
376
372
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
377
373
|
});
|
|
378
374
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
@@ -391,7 +387,7 @@ const se_DescribeChannelCommand = async (input, context) => {
|
|
|
391
387
|
exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
|
|
392
388
|
const se_DescribeChannelBanCommand = async (input, context) => {
|
|
393
389
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
390
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
395
391
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
396
392
|
});
|
|
397
393
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans/{MemberArn}";
|
|
@@ -428,14 +424,14 @@ const se_DescribeChannelFlowCommand = async (input, context) => {
|
|
|
428
424
|
exports.se_DescribeChannelFlowCommand = se_DescribeChannelFlowCommand;
|
|
429
425
|
const se_DescribeChannelMembershipCommand = async (input, context) => {
|
|
430
426
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
431
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
427
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
432
428
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
433
429
|
});
|
|
434
430
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
435
431
|
"/channels/{ChannelArn}/memberships/{MemberArn}";
|
|
436
432
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
437
433
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
438
|
-
const query = map({
|
|
434
|
+
const query = (0, smithy_client_1.map)({
|
|
439
435
|
"sub-channel-id": [, input.SubChannelId],
|
|
440
436
|
});
|
|
441
437
|
let body;
|
|
@@ -453,12 +449,12 @@ const se_DescribeChannelMembershipCommand = async (input, context) => {
|
|
|
453
449
|
exports.se_DescribeChannelMembershipCommand = se_DescribeChannelMembershipCommand;
|
|
454
450
|
const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, context) => {
|
|
455
451
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
456
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
452
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
457
453
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
458
454
|
});
|
|
459
455
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
460
456
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
461
|
-
const query = map({
|
|
457
|
+
const query = (0, smithy_client_1.map)({
|
|
462
458
|
scope: [, "app-instance-user-membership"],
|
|
463
459
|
"app-instance-user-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceUserArn, `AppInstanceUserArn`)],
|
|
464
460
|
});
|
|
@@ -477,12 +473,12 @@ const se_DescribeChannelMembershipForAppInstanceUserCommand = async (input, cont
|
|
|
477
473
|
exports.se_DescribeChannelMembershipForAppInstanceUserCommand = se_DescribeChannelMembershipForAppInstanceUserCommand;
|
|
478
474
|
const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
479
475
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
480
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
476
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
481
477
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
482
478
|
});
|
|
483
479
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
484
480
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
485
|
-
const query = map({
|
|
481
|
+
const query = (0, smithy_client_1.map)({
|
|
486
482
|
scope: [, "app-instance-user-moderated-channel"],
|
|
487
483
|
"app-instance-user-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceUserArn, `AppInstanceUserArn`)],
|
|
488
484
|
});
|
|
@@ -501,7 +497,7 @@ const se_DescribeChannelModeratedByAppInstanceUserCommand = async (input, contex
|
|
|
501
497
|
exports.se_DescribeChannelModeratedByAppInstanceUserCommand = se_DescribeChannelModeratedByAppInstanceUserCommand;
|
|
502
498
|
const se_DescribeChannelModeratorCommand = async (input, context) => {
|
|
503
499
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
504
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
500
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
505
501
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
506
502
|
});
|
|
507
503
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -522,7 +518,7 @@ const se_DescribeChannelModeratorCommand = async (input, context) => {
|
|
|
522
518
|
exports.se_DescribeChannelModeratorCommand = se_DescribeChannelModeratorCommand;
|
|
523
519
|
const se_DisassociateChannelFlowCommand = async (input, context) => {
|
|
524
520
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
525
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
521
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
526
522
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
527
523
|
});
|
|
528
524
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -543,7 +539,7 @@ const se_DisassociateChannelFlowCommand = async (input, context) => {
|
|
|
543
539
|
exports.se_DisassociateChannelFlowCommand = se_DisassociateChannelFlowCommand;
|
|
544
540
|
const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
|
|
545
541
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
542
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
547
543
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
548
544
|
});
|
|
549
545
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -564,14 +560,14 @@ const se_GetChannelMembershipPreferencesCommand = async (input, context) => {
|
|
|
564
560
|
exports.se_GetChannelMembershipPreferencesCommand = se_GetChannelMembershipPreferencesCommand;
|
|
565
561
|
const se_GetChannelMessageCommand = async (input, context) => {
|
|
566
562
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
567
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
563
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
568
564
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
569
565
|
});
|
|
570
566
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
571
567
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
572
568
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
573
569
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
574
|
-
const query = map({
|
|
570
|
+
const query = (0, smithy_client_1.map)({
|
|
575
571
|
"sub-channel-id": [, input.SubChannelId],
|
|
576
572
|
});
|
|
577
573
|
let body;
|
|
@@ -589,14 +585,14 @@ const se_GetChannelMessageCommand = async (input, context) => {
|
|
|
589
585
|
exports.se_GetChannelMessageCommand = se_GetChannelMessageCommand;
|
|
590
586
|
const se_GetChannelMessageStatusCommand = async (input, context) => {
|
|
591
587
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
592
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
588
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
593
589
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
594
590
|
});
|
|
595
591
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
596
592
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
597
593
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
598
594
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
599
|
-
const query = map({
|
|
595
|
+
const query = (0, smithy_client_1.map)({
|
|
600
596
|
scope: [, "message-status"],
|
|
601
597
|
"sub-channel-id": [, input.SubChannelId],
|
|
602
598
|
});
|
|
@@ -652,12 +648,12 @@ const se_GetMessagingStreamingConfigurationsCommand = async (input, context) =>
|
|
|
652
648
|
exports.se_GetMessagingStreamingConfigurationsCommand = se_GetMessagingStreamingConfigurationsCommand;
|
|
653
649
|
const se_ListChannelBansCommand = async (input, context) => {
|
|
654
650
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
655
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
651
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
656
652
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
657
653
|
});
|
|
658
654
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/bans";
|
|
659
655
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
660
|
-
const query = map({
|
|
656
|
+
const query = (0, smithy_client_1.map)({
|
|
661
657
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
662
658
|
"next-token": [, input.NextToken],
|
|
663
659
|
});
|
|
@@ -678,7 +674,7 @@ const se_ListChannelFlowsCommand = async (input, context) => {
|
|
|
678
674
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
679
675
|
const headers = {};
|
|
680
676
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows";
|
|
681
|
-
const query = map({
|
|
677
|
+
const query = (0, smithy_client_1.map)({
|
|
682
678
|
"app-instance-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceArn, `AppInstanceArn`)],
|
|
683
679
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
684
680
|
"next-token": [, input.NextToken],
|
|
@@ -698,12 +694,12 @@ const se_ListChannelFlowsCommand = async (input, context) => {
|
|
|
698
694
|
exports.se_ListChannelFlowsCommand = se_ListChannelFlowsCommand;
|
|
699
695
|
const se_ListChannelMembershipsCommand = async (input, context) => {
|
|
700
696
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
701
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
697
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
702
698
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
703
699
|
});
|
|
704
700
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/memberships";
|
|
705
701
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
706
|
-
const query = map({
|
|
702
|
+
const query = (0, smithy_client_1.map)({
|
|
707
703
|
type: [, input.Type],
|
|
708
704
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
709
705
|
"next-token": [, input.NextToken],
|
|
@@ -724,11 +720,11 @@ const se_ListChannelMembershipsCommand = async (input, context) => {
|
|
|
724
720
|
exports.se_ListChannelMembershipsCommand = se_ListChannelMembershipsCommand;
|
|
725
721
|
const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context) => {
|
|
726
722
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
727
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
723
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
728
724
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
729
725
|
});
|
|
730
726
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
731
|
-
const query = map({
|
|
727
|
+
const query = (0, smithy_client_1.map)({
|
|
732
728
|
scope: [, "app-instance-user-memberships"],
|
|
733
729
|
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
734
730
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -749,12 +745,12 @@ const se_ListChannelMembershipsForAppInstanceUserCommand = async (input, context
|
|
|
749
745
|
exports.se_ListChannelMembershipsForAppInstanceUserCommand = se_ListChannelMembershipsForAppInstanceUserCommand;
|
|
750
746
|
const se_ListChannelMessagesCommand = async (input, context) => {
|
|
751
747
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
752
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
748
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
753
749
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
754
750
|
});
|
|
755
751
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages";
|
|
756
752
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
757
|
-
const query = map({
|
|
753
|
+
const query = (0, smithy_client_1.map)({
|
|
758
754
|
"sort-order": [, input.SortOrder],
|
|
759
755
|
"not-before": [
|
|
760
756
|
() => input.NotBefore !== void 0,
|
|
@@ -783,12 +779,12 @@ const se_ListChannelMessagesCommand = async (input, context) => {
|
|
|
783
779
|
exports.se_ListChannelMessagesCommand = se_ListChannelMessagesCommand;
|
|
784
780
|
const se_ListChannelModeratorsCommand = async (input, context) => {
|
|
785
781
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
786
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
782
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
787
783
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
788
784
|
});
|
|
789
785
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/moderators";
|
|
790
786
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
791
|
-
const query = map({
|
|
787
|
+
const query = (0, smithy_client_1.map)({
|
|
792
788
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
793
789
|
"next-token": [, input.NextToken],
|
|
794
790
|
});
|
|
@@ -807,11 +803,11 @@ const se_ListChannelModeratorsCommand = async (input, context) => {
|
|
|
807
803
|
exports.se_ListChannelModeratorsCommand = se_ListChannelModeratorsCommand;
|
|
808
804
|
const se_ListChannelsCommand = async (input, context) => {
|
|
809
805
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
810
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
806
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
811
807
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
812
808
|
});
|
|
813
809
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
814
|
-
const query = map({
|
|
810
|
+
const query = (0, smithy_client_1.map)({
|
|
815
811
|
"app-instance-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceArn, `AppInstanceArn`)],
|
|
816
812
|
privacy: [, input.Privacy],
|
|
817
813
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -834,7 +830,7 @@ const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) =
|
|
|
834
830
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
835
831
|
const headers = {};
|
|
836
832
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
837
|
-
const query = map({
|
|
833
|
+
const query = (0, smithy_client_1.map)({
|
|
838
834
|
scope: [, "channel-flow-associations"],
|
|
839
835
|
"channel-flow-arn": [, (0, smithy_client_1.expectNonNull)(input.ChannelFlowArn, `ChannelFlowArn`)],
|
|
840
836
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -855,11 +851,11 @@ const se_ListChannelsAssociatedWithChannelFlowCommand = async (input, context) =
|
|
|
855
851
|
exports.se_ListChannelsAssociatedWithChannelFlowCommand = se_ListChannelsAssociatedWithChannelFlowCommand;
|
|
856
852
|
const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context) => {
|
|
857
853
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
858
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
854
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
859
855
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
860
856
|
});
|
|
861
857
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
862
|
-
const query = map({
|
|
858
|
+
const query = (0, smithy_client_1.map)({
|
|
863
859
|
scope: [, "app-instance-user-moderated-channels"],
|
|
864
860
|
"app-instance-user-arn": [, input.AppInstanceUserArn],
|
|
865
861
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -880,12 +876,12 @@ const se_ListChannelsModeratedByAppInstanceUserCommand = async (input, context)
|
|
|
880
876
|
exports.se_ListChannelsModeratedByAppInstanceUserCommand = se_ListChannelsModeratedByAppInstanceUserCommand;
|
|
881
877
|
const se_ListSubChannelsCommand = async (input, context) => {
|
|
882
878
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
883
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
879
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
884
880
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
885
881
|
});
|
|
886
882
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/subchannels";
|
|
887
883
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
888
|
-
const query = map({
|
|
884
|
+
const query = (0, smithy_client_1.map)({
|
|
889
885
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
890
886
|
"next-token": [, input.NextToken],
|
|
891
887
|
});
|
|
@@ -906,7 +902,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
906
902
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
907
903
|
const headers = {};
|
|
908
904
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
909
|
-
const query = map({
|
|
905
|
+
const query = (0, smithy_client_1.map)({
|
|
910
906
|
arn: [, (0, smithy_client_1.expectNonNull)(input.ResourceARN, `ResourceARN`)],
|
|
911
907
|
});
|
|
912
908
|
let body;
|
|
@@ -924,7 +920,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
924
920
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
925
921
|
const se_PutChannelExpirationSettingsCommand = async (input, context) => {
|
|
926
922
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
927
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
923
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
928
924
|
"content-type": "application/json",
|
|
929
925
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
930
926
|
});
|
|
@@ -932,11 +928,9 @@ const se_PutChannelExpirationSettingsCommand = async (input, context) => {
|
|
|
932
928
|
"/channels/{ChannelArn}/expiration-settings";
|
|
933
929
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
934
930
|
let body;
|
|
935
|
-
body = JSON.stringify({
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
}),
|
|
939
|
-
});
|
|
931
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
932
|
+
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
933
|
+
}));
|
|
940
934
|
return new protocol_http_1.HttpRequest({
|
|
941
935
|
protocol,
|
|
942
936
|
hostname,
|
|
@@ -950,7 +944,7 @@ const se_PutChannelExpirationSettingsCommand = async (input, context) => {
|
|
|
950
944
|
exports.se_PutChannelExpirationSettingsCommand = se_PutChannelExpirationSettingsCommand;
|
|
951
945
|
const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
|
|
952
946
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
953
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
947
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
954
948
|
"content-type": "application/json",
|
|
955
949
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
956
950
|
});
|
|
@@ -959,9 +953,9 @@ const se_PutChannelMembershipPreferencesCommand = async (input, context) => {
|
|
|
959
953
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
960
954
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MemberArn", () => input.MemberArn, "{MemberArn}", false);
|
|
961
955
|
let body;
|
|
962
|
-
body = JSON.stringify({
|
|
963
|
-
|
|
964
|
-
});
|
|
956
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
957
|
+
Preferences: (_) => (0, smithy_client_1._json)(_),
|
|
958
|
+
}));
|
|
965
959
|
return new protocol_http_1.HttpRequest({
|
|
966
960
|
protocol,
|
|
967
961
|
hostname,
|
|
@@ -982,11 +976,9 @@ const se_PutMessagingStreamingConfigurationsCommand = async (input, context) =>
|
|
|
982
976
|
"/app-instances/{AppInstanceArn}/streaming-configurations";
|
|
983
977
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
984
978
|
let body;
|
|
985
|
-
body = JSON.stringify({
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}),
|
|
989
|
-
});
|
|
979
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
980
|
+
StreamingConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
981
|
+
}));
|
|
990
982
|
return new protocol_http_1.HttpRequest({
|
|
991
983
|
protocol,
|
|
992
984
|
hostname,
|
|
@@ -1000,7 +992,7 @@ const se_PutMessagingStreamingConfigurationsCommand = async (input, context) =>
|
|
|
1000
992
|
exports.se_PutMessagingStreamingConfigurationsCommand = se_PutMessagingStreamingConfigurationsCommand;
|
|
1001
993
|
const se_RedactChannelMessageCommand = async (input, context) => {
|
|
1002
994
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1003
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
995
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1004
996
|
"content-type": "application/json",
|
|
1005
997
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1006
998
|
});
|
|
@@ -1008,13 +1000,13 @@ const se_RedactChannelMessageCommand = async (input, context) => {
|
|
|
1008
1000
|
"/channels/{ChannelArn}/messages/{MessageId}";
|
|
1009
1001
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1010
1002
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
1011
|
-
const query = map({
|
|
1003
|
+
const query = (0, smithy_client_1.map)({
|
|
1012
1004
|
operation: [, "redact"],
|
|
1013
1005
|
});
|
|
1014
1006
|
let body;
|
|
1015
|
-
body = JSON.stringify({
|
|
1016
|
-
|
|
1017
|
-
});
|
|
1007
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1008
|
+
SubChannelId: [],
|
|
1009
|
+
}));
|
|
1018
1010
|
return new protocol_http_1.HttpRequest({
|
|
1019
1011
|
protocol,
|
|
1020
1012
|
hostname,
|
|
@@ -1029,20 +1021,20 @@ const se_RedactChannelMessageCommand = async (input, context) => {
|
|
|
1029
1021
|
exports.se_RedactChannelMessageCommand = se_RedactChannelMessageCommand;
|
|
1030
1022
|
const se_SearchChannelsCommand = async (input, context) => {
|
|
1031
1023
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1032
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1024
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1033
1025
|
"content-type": "application/json",
|
|
1034
1026
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1035
1027
|
});
|
|
1036
1028
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
1037
|
-
const query = map({
|
|
1029
|
+
const query = (0, smithy_client_1.map)({
|
|
1038
1030
|
operation: [, "search"],
|
|
1039
1031
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1040
1032
|
"next-token": [, input.NextToken],
|
|
1041
1033
|
});
|
|
1042
1034
|
let body;
|
|
1043
|
-
body = JSON.stringify({
|
|
1044
|
-
|
|
1045
|
-
});
|
|
1035
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1036
|
+
Fields: (_) => (0, smithy_client_1._json)(_),
|
|
1037
|
+
}));
|
|
1046
1038
|
return new protocol_http_1.HttpRequest({
|
|
1047
1039
|
protocol,
|
|
1048
1040
|
hostname,
|
|
@@ -1057,28 +1049,24 @@ const se_SearchChannelsCommand = async (input, context) => {
|
|
|
1057
1049
|
exports.se_SearchChannelsCommand = se_SearchChannelsCommand;
|
|
1058
1050
|
const se_SendChannelMessageCommand = async (input, context) => {
|
|
1059
1051
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1060
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1052
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1061
1053
|
"content-type": "application/json",
|
|
1062
1054
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1063
1055
|
});
|
|
1064
1056
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/messages";
|
|
1065
1057
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1066
1058
|
let body;
|
|
1067
|
-
body = JSON.stringify({
|
|
1068
|
-
ClientRequestToken:
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
}),
|
|
1079
|
-
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
1080
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1081
|
-
});
|
|
1059
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1060
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1061
|
+
Content: [],
|
|
1062
|
+
ContentType: [],
|
|
1063
|
+
MessageAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
1064
|
+
Metadata: [],
|
|
1065
|
+
Persistence: [],
|
|
1066
|
+
PushNotification: (_) => (0, smithy_client_1._json)(_),
|
|
1067
|
+
SubChannelId: [],
|
|
1068
|
+
Type: [],
|
|
1069
|
+
}));
|
|
1082
1070
|
return new protocol_http_1.HttpRequest({
|
|
1083
1071
|
protocol,
|
|
1084
1072
|
hostname,
|
|
@@ -1096,14 +1084,14 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
1096
1084
|
"content-type": "application/json",
|
|
1097
1085
|
};
|
|
1098
1086
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1099
|
-
const query = map({
|
|
1087
|
+
const query = (0, smithy_client_1.map)({
|
|
1100
1088
|
operation: [, "tag-resource"],
|
|
1101
1089
|
});
|
|
1102
1090
|
let body;
|
|
1103
|
-
body = JSON.stringify({
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
});
|
|
1091
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1092
|
+
ResourceARN: [],
|
|
1093
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
1094
|
+
}));
|
|
1107
1095
|
return new protocol_http_1.HttpRequest({
|
|
1108
1096
|
protocol,
|
|
1109
1097
|
hostname,
|
|
@@ -1122,14 +1110,14 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
1122
1110
|
"content-type": "application/json",
|
|
1123
1111
|
};
|
|
1124
1112
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
1125
|
-
const query = map({
|
|
1113
|
+
const query = (0, smithy_client_1.map)({
|
|
1126
1114
|
operation: [, "untag-resource"],
|
|
1127
1115
|
});
|
|
1128
1116
|
let body;
|
|
1129
|
-
body = JSON.stringify({
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
});
|
|
1117
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1118
|
+
ResourceARN: [],
|
|
1119
|
+
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
1120
|
+
}));
|
|
1133
1121
|
return new protocol_http_1.HttpRequest({
|
|
1134
1122
|
protocol,
|
|
1135
1123
|
hostname,
|
|
@@ -1144,18 +1132,18 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
1144
1132
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1145
1133
|
const se_UpdateChannelCommand = async (input, context) => {
|
|
1146
1134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1147
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1135
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1148
1136
|
"content-type": "application/json",
|
|
1149
1137
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1150
1138
|
});
|
|
1151
1139
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}";
|
|
1152
1140
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1153
1141
|
let body;
|
|
1154
|
-
body = JSON.stringify({
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
});
|
|
1142
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1143
|
+
Metadata: [],
|
|
1144
|
+
Mode: [],
|
|
1145
|
+
Name: [],
|
|
1146
|
+
}));
|
|
1159
1147
|
return new protocol_http_1.HttpRequest({
|
|
1160
1148
|
protocol,
|
|
1161
1149
|
hostname,
|
|
@@ -1175,10 +1163,10 @@ const se_UpdateChannelFlowCommand = async (input, context) => {
|
|
|
1175
1163
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel-flows/{ChannelFlowArn}";
|
|
1176
1164
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelFlowArn", () => input.ChannelFlowArn, "{ChannelFlowArn}", false);
|
|
1177
1165
|
let body;
|
|
1178
|
-
body = JSON.stringify({
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
});
|
|
1166
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1167
|
+
Name: [],
|
|
1168
|
+
Processors: (_) => (0, smithy_client_1._json)(_),
|
|
1169
|
+
}));
|
|
1182
1170
|
return new protocol_http_1.HttpRequest({
|
|
1183
1171
|
protocol,
|
|
1184
1172
|
hostname,
|
|
@@ -1192,7 +1180,7 @@ const se_UpdateChannelFlowCommand = async (input, context) => {
|
|
|
1192
1180
|
exports.se_UpdateChannelFlowCommand = se_UpdateChannelFlowCommand;
|
|
1193
1181
|
const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
1194
1182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1195
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1183
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1196
1184
|
"content-type": "application/json",
|
|
1197
1185
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1198
1186
|
});
|
|
@@ -1201,12 +1189,12 @@ const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
|
1201
1189
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1202
1190
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
|
|
1203
1191
|
let body;
|
|
1204
|
-
body = JSON.stringify({
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
});
|
|
1192
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1193
|
+
Content: [],
|
|
1194
|
+
ContentType: [],
|
|
1195
|
+
Metadata: [],
|
|
1196
|
+
SubChannelId: [],
|
|
1197
|
+
}));
|
|
1210
1198
|
return new protocol_http_1.HttpRequest({
|
|
1211
1199
|
protocol,
|
|
1212
1200
|
hostname,
|
|
@@ -1220,16 +1208,16 @@ const se_UpdateChannelMessageCommand = async (input, context) => {
|
|
|
1220
1208
|
exports.se_UpdateChannelMessageCommand = se_UpdateChannelMessageCommand;
|
|
1221
1209
|
const se_UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
1222
1210
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1223
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
1211
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
1224
1212
|
"content-type": "application/json",
|
|
1225
1213
|
"x-amz-chime-bearer": input.ChimeBearer,
|
|
1226
1214
|
});
|
|
1227
1215
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels/{ChannelArn}/readMarker";
|
|
1228
1216
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelArn", () => input.ChannelArn, "{ChannelArn}", false);
|
|
1229
1217
|
let body;
|
|
1230
|
-
body = JSON.stringify({
|
|
1231
|
-
|
|
1232
|
-
});
|
|
1218
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1219
|
+
SubChannelId: [],
|
|
1220
|
+
}));
|
|
1233
1221
|
return new protocol_http_1.HttpRequest({
|
|
1234
1222
|
protocol,
|
|
1235
1223
|
hostname,
|
|
@@ -1245,7 +1233,7 @@ const de_AssociateChannelFlowCommand = async (output, context) => {
|
|
|
1245
1233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1246
1234
|
return de_AssociateChannelFlowCommandError(output, context);
|
|
1247
1235
|
}
|
|
1248
|
-
const contents = map({
|
|
1236
|
+
const contents = (0, smithy_client_1.map)({
|
|
1249
1237
|
$metadata: deserializeMetadata(output),
|
|
1250
1238
|
});
|
|
1251
1239
|
await collectBody(output.body, context);
|
|
@@ -1285,10 +1273,9 @@ const de_AssociateChannelFlowCommandError = async (output, context) => {
|
|
|
1285
1273
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1286
1274
|
default:
|
|
1287
1275
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
|
|
1276
|
+
return throwDefaultError({
|
|
1289
1277
|
output,
|
|
1290
1278
|
parsedBody,
|
|
1291
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1292
1279
|
errorCode,
|
|
1293
1280
|
});
|
|
1294
1281
|
}
|
|
@@ -1297,16 +1284,15 @@ const de_BatchCreateChannelMembershipCommand = async (output, context) => {
|
|
|
1297
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
1285
|
return de_BatchCreateChannelMembershipCommandError(output, context);
|
|
1299
1286
|
}
|
|
1300
|
-
const contents = map({
|
|
1287
|
+
const contents = (0, smithy_client_1.map)({
|
|
1301
1288
|
$metadata: deserializeMetadata(output),
|
|
1302
1289
|
});
|
|
1303
1290
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
}
|
|
1291
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1292
|
+
BatchChannelMemberships: smithy_client_1._json,
|
|
1293
|
+
Errors: smithy_client_1._json,
|
|
1294
|
+
});
|
|
1295
|
+
Object.assign(contents, doc);
|
|
1310
1296
|
return contents;
|
|
1311
1297
|
};
|
|
1312
1298
|
exports.de_BatchCreateChannelMembershipCommand = de_BatchCreateChannelMembershipCommand;
|
|
@@ -1343,10 +1329,9 @@ const de_BatchCreateChannelMembershipCommandError = async (output, context) => {
|
|
|
1343
1329
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1344
1330
|
default:
|
|
1345
1331
|
const parsedBody = parsedOutput.body;
|
|
1346
|
-
|
|
1332
|
+
return throwDefaultError({
|
|
1347
1333
|
output,
|
|
1348
1334
|
parsedBody,
|
|
1349
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1350
1335
|
errorCode,
|
|
1351
1336
|
});
|
|
1352
1337
|
}
|
|
@@ -1355,16 +1340,15 @@ const de_ChannelFlowCallbackCommand = async (output, context) => {
|
|
|
1355
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1356
1341
|
return de_ChannelFlowCallbackCommandError(output, context);
|
|
1357
1342
|
}
|
|
1358
|
-
const contents = map({
|
|
1343
|
+
const contents = (0, smithy_client_1.map)({
|
|
1359
1344
|
$metadata: deserializeMetadata(output),
|
|
1360
1345
|
});
|
|
1361
1346
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1347
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1348
|
+
CallbackId: smithy_client_1.expectString,
|
|
1349
|
+
ChannelArn: smithy_client_1.expectString,
|
|
1350
|
+
});
|
|
1351
|
+
Object.assign(contents, doc);
|
|
1368
1352
|
return contents;
|
|
1369
1353
|
};
|
|
1370
1354
|
exports.de_ChannelFlowCallbackCommand = de_ChannelFlowCallbackCommand;
|
|
@@ -1398,10 +1382,9 @@ const de_ChannelFlowCallbackCommandError = async (output, context) => {
|
|
|
1398
1382
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1399
1383
|
default:
|
|
1400
1384
|
const parsedBody = parsedOutput.body;
|
|
1401
|
-
|
|
1385
|
+
return throwDefaultError({
|
|
1402
1386
|
output,
|
|
1403
1387
|
parsedBody,
|
|
1404
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1405
1388
|
errorCode,
|
|
1406
1389
|
});
|
|
1407
1390
|
}
|
|
@@ -1410,13 +1393,14 @@ const de_CreateChannelCommand = async (output, context) => {
|
|
|
1410
1393
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1411
1394
|
return de_CreateChannelCommandError(output, context);
|
|
1412
1395
|
}
|
|
1413
|
-
const contents = map({
|
|
1396
|
+
const contents = (0, smithy_client_1.map)({
|
|
1414
1397
|
$metadata: deserializeMetadata(output),
|
|
1415
1398
|
});
|
|
1416
1399
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1400
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1401
|
+
ChannelArn: smithy_client_1.expectString,
|
|
1402
|
+
});
|
|
1403
|
+
Object.assign(contents, doc);
|
|
1420
1404
|
return contents;
|
|
1421
1405
|
};
|
|
1422
1406
|
exports.de_CreateChannelCommand = de_CreateChannelCommand;
|
|
@@ -1453,10 +1437,9 @@ const de_CreateChannelCommandError = async (output, context) => {
|
|
|
1453
1437
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1454
1438
|
default:
|
|
1455
1439
|
const parsedBody = parsedOutput.body;
|
|
1456
|
-
|
|
1440
|
+
return throwDefaultError({
|
|
1457
1441
|
output,
|
|
1458
1442
|
parsedBody,
|
|
1459
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1460
1443
|
errorCode,
|
|
1461
1444
|
});
|
|
1462
1445
|
}
|
|
@@ -1465,16 +1448,15 @@ const de_CreateChannelBanCommand = async (output, context) => {
|
|
|
1465
1448
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1466
1449
|
return de_CreateChannelBanCommandError(output, context);
|
|
1467
1450
|
}
|
|
1468
|
-
const contents = map({
|
|
1451
|
+
const contents = (0, smithy_client_1.map)({
|
|
1469
1452
|
$metadata: deserializeMetadata(output),
|
|
1470
1453
|
});
|
|
1471
1454
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
}
|
|
1455
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1456
|
+
ChannelArn: smithy_client_1.expectString,
|
|
1457
|
+
Member: smithy_client_1._json,
|
|
1458
|
+
});
|
|
1459
|
+
Object.assign(contents, doc);
|
|
1478
1460
|
return contents;
|
|
1479
1461
|
};
|
|
1480
1462
|
exports.de_CreateChannelBanCommand = de_CreateChannelBanCommand;
|
|
@@ -1511,10 +1493,9 @@ const de_CreateChannelBanCommandError = async (output, context) => {
|
|
|
1511
1493
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1512
1494
|
default:
|
|
1513
1495
|
const parsedBody = parsedOutput.body;
|
|
1514
|
-
|
|
1496
|
+
return throwDefaultError({
|
|
1515
1497
|
output,
|
|
1516
1498
|
parsedBody,
|
|
1517
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1518
1499
|
errorCode,
|
|
1519
1500
|
});
|
|
1520
1501
|
}
|
|
@@ -1523,13 +1504,14 @@ const de_CreateChannelFlowCommand = async (output, context) => {
|
|
|
1523
1504
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1524
1505
|
return de_CreateChannelFlowCommandError(output, context);
|
|
1525
1506
|
}
|
|
1526
|
-
const contents = map({
|
|
1507
|
+
const contents = (0, smithy_client_1.map)({
|
|
1527
1508
|
$metadata: deserializeMetadata(output),
|
|
1528
1509
|
});
|
|
1529
1510
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
}
|
|
1511
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1512
|
+
ChannelFlowArn: smithy_client_1.expectString,
|
|
1513
|
+
});
|
|
1514
|
+
Object.assign(contents, doc);
|
|
1533
1515
|
return contents;
|
|
1534
1516
|
};
|
|
1535
1517
|
exports.de_CreateChannelFlowCommand = de_CreateChannelFlowCommand;
|
|
@@ -1566,10 +1548,9 @@ const de_CreateChannelFlowCommandError = async (output, context) => {
|
|
|
1566
1548
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1567
1549
|
default:
|
|
1568
1550
|
const parsedBody = parsedOutput.body;
|
|
1569
|
-
|
|
1551
|
+
return throwDefaultError({
|
|
1570
1552
|
output,
|
|
1571
1553
|
parsedBody,
|
|
1572
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1573
1554
|
errorCode,
|
|
1574
1555
|
});
|
|
1575
1556
|
}
|
|
@@ -1578,19 +1559,16 @@ const de_CreateChannelMembershipCommand = async (output, context) => {
|
|
|
1578
1559
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1579
1560
|
return de_CreateChannelMembershipCommandError(output, context);
|
|
1580
1561
|
}
|
|
1581
|
-
const contents = map({
|
|
1562
|
+
const contents = (0, smithy_client_1.map)({
|
|
1582
1563
|
$metadata: deserializeMetadata(output),
|
|
1583
1564
|
});
|
|
1584
1565
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
if (data.SubChannelId != null) {
|
|
1592
|
-
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
1593
|
-
}
|
|
1566
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1567
|
+
ChannelArn: smithy_client_1.expectString,
|
|
1568
|
+
Member: smithy_client_1._json,
|
|
1569
|
+
SubChannelId: smithy_client_1.expectString,
|
|
1570
|
+
});
|
|
1571
|
+
Object.assign(contents, doc);
|
|
1594
1572
|
return contents;
|
|
1595
1573
|
};
|
|
1596
1574
|
exports.de_CreateChannelMembershipCommand = de_CreateChannelMembershipCommand;
|
|
@@ -1630,10 +1608,9 @@ const de_CreateChannelMembershipCommandError = async (output, context) => {
|
|
|
1630
1608
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1631
1609
|
default:
|
|
1632
1610
|
const parsedBody = parsedOutput.body;
|
|
1633
|
-
|
|
1611
|
+
return throwDefaultError({
|
|
1634
1612
|
output,
|
|
1635
1613
|
parsedBody,
|
|
1636
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1637
1614
|
errorCode,
|
|
1638
1615
|
});
|
|
1639
1616
|
}
|
|
@@ -1642,16 +1619,15 @@ const de_CreateChannelModeratorCommand = async (output, context) => {
|
|
|
1642
1619
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1643
1620
|
return de_CreateChannelModeratorCommandError(output, context);
|
|
1644
1621
|
}
|
|
1645
|
-
const contents = map({
|
|
1622
|
+
const contents = (0, smithy_client_1.map)({
|
|
1646
1623
|
$metadata: deserializeMetadata(output),
|
|
1647
1624
|
});
|
|
1648
1625
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1626
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1627
|
+
ChannelArn: smithy_client_1.expectString,
|
|
1628
|
+
ChannelModerator: smithy_client_1._json,
|
|
1629
|
+
});
|
|
1630
|
+
Object.assign(contents, doc);
|
|
1655
1631
|
return contents;
|
|
1656
1632
|
};
|
|
1657
1633
|
exports.de_CreateChannelModeratorCommand = de_CreateChannelModeratorCommand;
|
|
@@ -1688,10 +1664,9 @@ const de_CreateChannelModeratorCommandError = async (output, context) => {
|
|
|
1688
1664
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1689
1665
|
default:
|
|
1690
1666
|
const parsedBody = parsedOutput.body;
|
|
1691
|
-
|
|
1667
|
+
return throwDefaultError({
|
|
1692
1668
|
output,
|
|
1693
1669
|
parsedBody,
|
|
1694
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1695
1670
|
errorCode,
|
|
1696
1671
|
});
|
|
1697
1672
|
}
|
|
@@ -1700,7 +1675,7 @@ const de_DeleteChannelCommand = async (output, context) => {
|
|
|
1700
1675
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1701
1676
|
return de_DeleteChannelCommandError(output, context);
|
|
1702
1677
|
}
|
|
1703
|
-
const contents = map({
|
|
1678
|
+
const contents = (0, smithy_client_1.map)({
|
|
1704
1679
|
$metadata: deserializeMetadata(output),
|
|
1705
1680
|
});
|
|
1706
1681
|
await collectBody(output.body, context);
|
|
@@ -1734,10 +1709,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
1734
1709
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1735
1710
|
default:
|
|
1736
1711
|
const parsedBody = parsedOutput.body;
|
|
1737
|
-
|
|
1712
|
+
return throwDefaultError({
|
|
1738
1713
|
output,
|
|
1739
1714
|
parsedBody,
|
|
1740
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1741
1715
|
errorCode,
|
|
1742
1716
|
});
|
|
1743
1717
|
}
|
|
@@ -1746,7 +1720,7 @@ const de_DeleteChannelBanCommand = async (output, context) => {
|
|
|
1746
1720
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1747
1721
|
return de_DeleteChannelBanCommandError(output, context);
|
|
1748
1722
|
}
|
|
1749
|
-
const contents = map({
|
|
1723
|
+
const contents = (0, smithy_client_1.map)({
|
|
1750
1724
|
$metadata: deserializeMetadata(output),
|
|
1751
1725
|
});
|
|
1752
1726
|
await collectBody(output.body, context);
|
|
@@ -1780,10 +1754,9 @@ const de_DeleteChannelBanCommandError = async (output, context) => {
|
|
|
1780
1754
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1781
1755
|
default:
|
|
1782
1756
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1757
|
+
return throwDefaultError({
|
|
1784
1758
|
output,
|
|
1785
1759
|
parsedBody,
|
|
1786
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1787
1760
|
errorCode,
|
|
1788
1761
|
});
|
|
1789
1762
|
}
|
|
@@ -1792,7 +1765,7 @@ const de_DeleteChannelFlowCommand = async (output, context) => {
|
|
|
1792
1765
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1793
1766
|
return de_DeleteChannelFlowCommandError(output, context);
|
|
1794
1767
|
}
|
|
1795
|
-
const contents = map({
|
|
1768
|
+
const contents = (0, smithy_client_1.map)({
|
|
1796
1769
|
$metadata: deserializeMetadata(output),
|
|
1797
1770
|
});
|
|
1798
1771
|
await collectBody(output.body, context);
|
|
@@ -1829,10 +1802,9 @@ const de_DeleteChannelFlowCommandError = async (output, context) => {
|
|
|
1829
1802
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1830
1803
|
default:
|
|
1831
1804
|
const parsedBody = parsedOutput.body;
|
|
1832
|
-
|
|
1805
|
+
return throwDefaultError({
|
|
1833
1806
|
output,
|
|
1834
1807
|
parsedBody,
|
|
1835
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1836
1808
|
errorCode,
|
|
1837
1809
|
});
|
|
1838
1810
|
}
|
|
@@ -1841,7 +1813,7 @@ const de_DeleteChannelMembershipCommand = async (output, context) => {
|
|
|
1841
1813
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1842
1814
|
return de_DeleteChannelMembershipCommandError(output, context);
|
|
1843
1815
|
}
|
|
1844
|
-
const contents = map({
|
|
1816
|
+
const contents = (0, smithy_client_1.map)({
|
|
1845
1817
|
$metadata: deserializeMetadata(output),
|
|
1846
1818
|
});
|
|
1847
1819
|
await collectBody(output.body, context);
|
|
@@ -1878,10 +1850,9 @@ const de_DeleteChannelMembershipCommandError = async (output, context) => {
|
|
|
1878
1850
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1879
1851
|
default:
|
|
1880
1852
|
const parsedBody = parsedOutput.body;
|
|
1881
|
-
|
|
1853
|
+
return throwDefaultError({
|
|
1882
1854
|
output,
|
|
1883
1855
|
parsedBody,
|
|
1884
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1885
1856
|
errorCode,
|
|
1886
1857
|
});
|
|
1887
1858
|
}
|
|
@@ -1890,7 +1861,7 @@ const de_DeleteChannelMessageCommand = async (output, context) => {
|
|
|
1890
1861
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1891
1862
|
return de_DeleteChannelMessageCommandError(output, context);
|
|
1892
1863
|
}
|
|
1893
|
-
const contents = map({
|
|
1864
|
+
const contents = (0, smithy_client_1.map)({
|
|
1894
1865
|
$metadata: deserializeMetadata(output),
|
|
1895
1866
|
});
|
|
1896
1867
|
await collectBody(output.body, context);
|
|
@@ -1924,10 +1895,9 @@ const de_DeleteChannelMessageCommandError = async (output, context) => {
|
|
|
1924
1895
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1925
1896
|
default:
|
|
1926
1897
|
const parsedBody = parsedOutput.body;
|
|
1927
|
-
|
|
1898
|
+
return throwDefaultError({
|
|
1928
1899
|
output,
|
|
1929
1900
|
parsedBody,
|
|
1930
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1931
1901
|
errorCode,
|
|
1932
1902
|
});
|
|
1933
1903
|
}
|
|
@@ -1936,7 +1906,7 @@ const de_DeleteChannelModeratorCommand = async (output, context) => {
|
|
|
1936
1906
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1937
1907
|
return de_DeleteChannelModeratorCommandError(output, context);
|
|
1938
1908
|
}
|
|
1939
|
-
const contents = map({
|
|
1909
|
+
const contents = (0, smithy_client_1.map)({
|
|
1940
1910
|
$metadata: deserializeMetadata(output),
|
|
1941
1911
|
});
|
|
1942
1912
|
await collectBody(output.body, context);
|
|
@@ -1970,10 +1940,9 @@ const de_DeleteChannelModeratorCommandError = async (output, context) => {
|
|
|
1970
1940
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1971
1941
|
default:
|
|
1972
1942
|
const parsedBody = parsedOutput.body;
|
|
1973
|
-
|
|
1943
|
+
return throwDefaultError({
|
|
1974
1944
|
output,
|
|
1975
1945
|
parsedBody,
|
|
1976
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
1977
1946
|
errorCode,
|
|
1978
1947
|
});
|
|
1979
1948
|
}
|
|
@@ -1982,7 +1951,7 @@ const de_DeleteMessagingStreamingConfigurationsCommand = async (output, context)
|
|
|
1982
1951
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1983
1952
|
return de_DeleteMessagingStreamingConfigurationsCommandError(output, context);
|
|
1984
1953
|
}
|
|
1985
|
-
const contents = map({
|
|
1954
|
+
const contents = (0, smithy_client_1.map)({
|
|
1986
1955
|
$metadata: deserializeMetadata(output),
|
|
1987
1956
|
});
|
|
1988
1957
|
await collectBody(output.body, context);
|
|
@@ -2013,10 +1982,9 @@ const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, con
|
|
|
2013
1982
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2014
1983
|
default:
|
|
2015
1984
|
const parsedBody = parsedOutput.body;
|
|
2016
|
-
|
|
1985
|
+
return throwDefaultError({
|
|
2017
1986
|
output,
|
|
2018
1987
|
parsedBody,
|
|
2019
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2020
1988
|
errorCode,
|
|
2021
1989
|
});
|
|
2022
1990
|
}
|
|
@@ -2025,13 +1993,14 @@ const de_DescribeChannelCommand = async (output, context) => {
|
|
|
2025
1993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2026
1994
|
return de_DescribeChannelCommandError(output, context);
|
|
2027
1995
|
}
|
|
2028
|
-
const contents = map({
|
|
1996
|
+
const contents = (0, smithy_client_1.map)({
|
|
2029
1997
|
$metadata: deserializeMetadata(output),
|
|
2030
1998
|
});
|
|
2031
1999
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
}
|
|
2000
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2001
|
+
Channel: (_) => de_Channel(_, context),
|
|
2002
|
+
});
|
|
2003
|
+
Object.assign(contents, doc);
|
|
2035
2004
|
return contents;
|
|
2036
2005
|
};
|
|
2037
2006
|
exports.de_DescribeChannelCommand = de_DescribeChannelCommand;
|
|
@@ -2062,10 +2031,9 @@ const de_DescribeChannelCommandError = async (output, context) => {
|
|
|
2062
2031
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2063
2032
|
default:
|
|
2064
2033
|
const parsedBody = parsedOutput.body;
|
|
2065
|
-
|
|
2034
|
+
return throwDefaultError({
|
|
2066
2035
|
output,
|
|
2067
2036
|
parsedBody,
|
|
2068
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2069
2037
|
errorCode,
|
|
2070
2038
|
});
|
|
2071
2039
|
}
|
|
@@ -2074,13 +2042,14 @@ const de_DescribeChannelBanCommand = async (output, context) => {
|
|
|
2074
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2075
2043
|
return de_DescribeChannelBanCommandError(output, context);
|
|
2076
2044
|
}
|
|
2077
|
-
const contents = map({
|
|
2045
|
+
const contents = (0, smithy_client_1.map)({
|
|
2078
2046
|
$metadata: deserializeMetadata(output),
|
|
2079
2047
|
});
|
|
2080
2048
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
}
|
|
2049
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2050
|
+
ChannelBan: (_) => de_ChannelBan(_, context),
|
|
2051
|
+
});
|
|
2052
|
+
Object.assign(contents, doc);
|
|
2084
2053
|
return contents;
|
|
2085
2054
|
};
|
|
2086
2055
|
exports.de_DescribeChannelBanCommand = de_DescribeChannelBanCommand;
|
|
@@ -2114,10 +2083,9 @@ const de_DescribeChannelBanCommandError = async (output, context) => {
|
|
|
2114
2083
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2115
2084
|
default:
|
|
2116
2085
|
const parsedBody = parsedOutput.body;
|
|
2117
|
-
|
|
2086
|
+
return throwDefaultError({
|
|
2118
2087
|
output,
|
|
2119
2088
|
parsedBody,
|
|
2120
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2121
2089
|
errorCode,
|
|
2122
2090
|
});
|
|
2123
2091
|
}
|
|
@@ -2126,13 +2094,14 @@ const de_DescribeChannelFlowCommand = async (output, context) => {
|
|
|
2126
2094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2127
2095
|
return de_DescribeChannelFlowCommandError(output, context);
|
|
2128
2096
|
}
|
|
2129
|
-
const contents = map({
|
|
2097
|
+
const contents = (0, smithy_client_1.map)({
|
|
2130
2098
|
$metadata: deserializeMetadata(output),
|
|
2131
2099
|
});
|
|
2132
2100
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
}
|
|
2101
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2102
|
+
ChannelFlow: (_) => de_ChannelFlow(_, context),
|
|
2103
|
+
});
|
|
2104
|
+
Object.assign(contents, doc);
|
|
2136
2105
|
return contents;
|
|
2137
2106
|
};
|
|
2138
2107
|
exports.de_DescribeChannelFlowCommand = de_DescribeChannelFlowCommand;
|
|
@@ -2163,10 +2132,9 @@ const de_DescribeChannelFlowCommandError = async (output, context) => {
|
|
|
2163
2132
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2164
2133
|
default:
|
|
2165
2134
|
const parsedBody = parsedOutput.body;
|
|
2166
|
-
|
|
2135
|
+
return throwDefaultError({
|
|
2167
2136
|
output,
|
|
2168
2137
|
parsedBody,
|
|
2169
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2170
2138
|
errorCode,
|
|
2171
2139
|
});
|
|
2172
2140
|
}
|
|
@@ -2175,13 +2143,14 @@ const de_DescribeChannelMembershipCommand = async (output, context) => {
|
|
|
2175
2143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2176
2144
|
return de_DescribeChannelMembershipCommandError(output, context);
|
|
2177
2145
|
}
|
|
2178
|
-
const contents = map({
|
|
2146
|
+
const contents = (0, smithy_client_1.map)({
|
|
2179
2147
|
$metadata: deserializeMetadata(output),
|
|
2180
2148
|
});
|
|
2181
2149
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
}
|
|
2150
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2151
|
+
ChannelMembership: (_) => de_ChannelMembership(_, context),
|
|
2152
|
+
});
|
|
2153
|
+
Object.assign(contents, doc);
|
|
2185
2154
|
return contents;
|
|
2186
2155
|
};
|
|
2187
2156
|
exports.de_DescribeChannelMembershipCommand = de_DescribeChannelMembershipCommand;
|
|
@@ -2215,10 +2184,9 @@ const de_DescribeChannelMembershipCommandError = async (output, context) => {
|
|
|
2215
2184
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2216
2185
|
default:
|
|
2217
2186
|
const parsedBody = parsedOutput.body;
|
|
2218
|
-
|
|
2187
|
+
return throwDefaultError({
|
|
2219
2188
|
output,
|
|
2220
2189
|
parsedBody,
|
|
2221
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2222
2190
|
errorCode,
|
|
2223
2191
|
});
|
|
2224
2192
|
}
|
|
@@ -2227,13 +2195,14 @@ const de_DescribeChannelMembershipForAppInstanceUserCommand = async (output, con
|
|
|
2227
2195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2228
2196
|
return de_DescribeChannelMembershipForAppInstanceUserCommandError(output, context);
|
|
2229
2197
|
}
|
|
2230
|
-
const contents = map({
|
|
2198
|
+
const contents = (0, smithy_client_1.map)({
|
|
2231
2199
|
$metadata: deserializeMetadata(output),
|
|
2232
2200
|
});
|
|
2233
2201
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
}
|
|
2202
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2203
|
+
ChannelMembership: (_) => de_ChannelMembershipForAppInstanceUserSummary(_, context),
|
|
2204
|
+
});
|
|
2205
|
+
Object.assign(contents, doc);
|
|
2237
2206
|
return contents;
|
|
2238
2207
|
};
|
|
2239
2208
|
exports.de_DescribeChannelMembershipForAppInstanceUserCommand = de_DescribeChannelMembershipForAppInstanceUserCommand;
|
|
@@ -2264,10 +2233,9 @@ const de_DescribeChannelMembershipForAppInstanceUserCommandError = async (output
|
|
|
2264
2233
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2265
2234
|
default:
|
|
2266
2235
|
const parsedBody = parsedOutput.body;
|
|
2267
|
-
|
|
2236
|
+
return throwDefaultError({
|
|
2268
2237
|
output,
|
|
2269
2238
|
parsedBody,
|
|
2270
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2271
2239
|
errorCode,
|
|
2272
2240
|
});
|
|
2273
2241
|
}
|
|
@@ -2276,13 +2244,14 @@ const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output, conte
|
|
|
2276
2244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2277
2245
|
return de_DescribeChannelModeratedByAppInstanceUserCommandError(output, context);
|
|
2278
2246
|
}
|
|
2279
|
-
const contents = map({
|
|
2247
|
+
const contents = (0, smithy_client_1.map)({
|
|
2280
2248
|
$metadata: deserializeMetadata(output),
|
|
2281
2249
|
});
|
|
2282
2250
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
}
|
|
2251
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2252
|
+
Channel: (_) => de_ChannelModeratedByAppInstanceUserSummary(_, context),
|
|
2253
|
+
});
|
|
2254
|
+
Object.assign(contents, doc);
|
|
2286
2255
|
return contents;
|
|
2287
2256
|
};
|
|
2288
2257
|
exports.de_DescribeChannelModeratedByAppInstanceUserCommand = de_DescribeChannelModeratedByAppInstanceUserCommand;
|
|
@@ -2313,10 +2282,9 @@ const de_DescribeChannelModeratedByAppInstanceUserCommandError = async (output,
|
|
|
2313
2282
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2314
2283
|
default:
|
|
2315
2284
|
const parsedBody = parsedOutput.body;
|
|
2316
|
-
|
|
2285
|
+
return throwDefaultError({
|
|
2317
2286
|
output,
|
|
2318
2287
|
parsedBody,
|
|
2319
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2320
2288
|
errorCode,
|
|
2321
2289
|
});
|
|
2322
2290
|
}
|
|
@@ -2325,13 +2293,14 @@ const de_DescribeChannelModeratorCommand = async (output, context) => {
|
|
|
2325
2293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2326
2294
|
return de_DescribeChannelModeratorCommandError(output, context);
|
|
2327
2295
|
}
|
|
2328
|
-
const contents = map({
|
|
2296
|
+
const contents = (0, smithy_client_1.map)({
|
|
2329
2297
|
$metadata: deserializeMetadata(output),
|
|
2330
2298
|
});
|
|
2331
2299
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
}
|
|
2300
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2301
|
+
ChannelModerator: (_) => de_ChannelModerator(_, context),
|
|
2302
|
+
});
|
|
2303
|
+
Object.assign(contents, doc);
|
|
2335
2304
|
return contents;
|
|
2336
2305
|
};
|
|
2337
2306
|
exports.de_DescribeChannelModeratorCommand = de_DescribeChannelModeratorCommand;
|
|
@@ -2365,10 +2334,9 @@ const de_DescribeChannelModeratorCommandError = async (output, context) => {
|
|
|
2365
2334
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2366
2335
|
default:
|
|
2367
2336
|
const parsedBody = parsedOutput.body;
|
|
2368
|
-
|
|
2337
|
+
return throwDefaultError({
|
|
2369
2338
|
output,
|
|
2370
2339
|
parsedBody,
|
|
2371
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2372
2340
|
errorCode,
|
|
2373
2341
|
});
|
|
2374
2342
|
}
|
|
@@ -2377,7 +2345,7 @@ const de_DisassociateChannelFlowCommand = async (output, context) => {
|
|
|
2377
2345
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2378
2346
|
return de_DisassociateChannelFlowCommandError(output, context);
|
|
2379
2347
|
}
|
|
2380
|
-
const contents = map({
|
|
2348
|
+
const contents = (0, smithy_client_1.map)({
|
|
2381
2349
|
$metadata: deserializeMetadata(output),
|
|
2382
2350
|
});
|
|
2383
2351
|
await collectBody(output.body, context);
|
|
@@ -2417,10 +2385,9 @@ const de_DisassociateChannelFlowCommandError = async (output, context) => {
|
|
|
2417
2385
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2418
2386
|
default:
|
|
2419
2387
|
const parsedBody = parsedOutput.body;
|
|
2420
|
-
|
|
2388
|
+
return throwDefaultError({
|
|
2421
2389
|
output,
|
|
2422
2390
|
parsedBody,
|
|
2423
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2424
2391
|
errorCode,
|
|
2425
2392
|
});
|
|
2426
2393
|
}
|
|
@@ -2429,19 +2396,16 @@ const de_GetChannelMembershipPreferencesCommand = async (output, context) => {
|
|
|
2429
2396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2430
2397
|
return de_GetChannelMembershipPreferencesCommandError(output, context);
|
|
2431
2398
|
}
|
|
2432
|
-
const contents = map({
|
|
2399
|
+
const contents = (0, smithy_client_1.map)({
|
|
2433
2400
|
$metadata: deserializeMetadata(output),
|
|
2434
2401
|
});
|
|
2435
2402
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
if (data.Preferences != null) {
|
|
2443
|
-
contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
|
|
2444
|
-
}
|
|
2403
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2404
|
+
ChannelArn: smithy_client_1.expectString,
|
|
2405
|
+
Member: smithy_client_1._json,
|
|
2406
|
+
Preferences: smithy_client_1._json,
|
|
2407
|
+
});
|
|
2408
|
+
Object.assign(contents, doc);
|
|
2445
2409
|
return contents;
|
|
2446
2410
|
};
|
|
2447
2411
|
exports.de_GetChannelMembershipPreferencesCommand = de_GetChannelMembershipPreferencesCommand;
|
|
@@ -2472,10 +2436,9 @@ const de_GetChannelMembershipPreferencesCommandError = async (output, context) =
|
|
|
2472
2436
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2473
2437
|
default:
|
|
2474
2438
|
const parsedBody = parsedOutput.body;
|
|
2475
|
-
|
|
2439
|
+
return throwDefaultError({
|
|
2476
2440
|
output,
|
|
2477
2441
|
parsedBody,
|
|
2478
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2479
2442
|
errorCode,
|
|
2480
2443
|
});
|
|
2481
2444
|
}
|
|
@@ -2484,13 +2447,14 @@ const de_GetChannelMessageCommand = async (output, context) => {
|
|
|
2484
2447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2485
2448
|
return de_GetChannelMessageCommandError(output, context);
|
|
2486
2449
|
}
|
|
2487
|
-
const contents = map({
|
|
2450
|
+
const contents = (0, smithy_client_1.map)({
|
|
2488
2451
|
$metadata: deserializeMetadata(output),
|
|
2489
2452
|
});
|
|
2490
2453
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
}
|
|
2454
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2455
|
+
ChannelMessage: (_) => de_ChannelMessage(_, context),
|
|
2456
|
+
});
|
|
2457
|
+
Object.assign(contents, doc);
|
|
2494
2458
|
return contents;
|
|
2495
2459
|
};
|
|
2496
2460
|
exports.de_GetChannelMessageCommand = de_GetChannelMessageCommand;
|
|
@@ -2524,10 +2488,9 @@ const de_GetChannelMessageCommandError = async (output, context) => {
|
|
|
2524
2488
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2525
2489
|
default:
|
|
2526
2490
|
const parsedBody = parsedOutput.body;
|
|
2527
|
-
|
|
2491
|
+
return throwDefaultError({
|
|
2528
2492
|
output,
|
|
2529
2493
|
parsedBody,
|
|
2530
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2531
2494
|
errorCode,
|
|
2532
2495
|
});
|
|
2533
2496
|
}
|
|
@@ -2536,13 +2499,14 @@ const de_GetChannelMessageStatusCommand = async (output, context) => {
|
|
|
2536
2499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2537
2500
|
return de_GetChannelMessageStatusCommandError(output, context);
|
|
2538
2501
|
}
|
|
2539
|
-
const contents = map({
|
|
2502
|
+
const contents = (0, smithy_client_1.map)({
|
|
2540
2503
|
$metadata: deserializeMetadata(output),
|
|
2541
2504
|
});
|
|
2542
2505
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
}
|
|
2506
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2507
|
+
Status: smithy_client_1._json,
|
|
2508
|
+
});
|
|
2509
|
+
Object.assign(contents, doc);
|
|
2546
2510
|
return contents;
|
|
2547
2511
|
};
|
|
2548
2512
|
exports.de_GetChannelMessageStatusCommand = de_GetChannelMessageStatusCommand;
|
|
@@ -2573,10 +2537,9 @@ const de_GetChannelMessageStatusCommandError = async (output, context) => {
|
|
|
2573
2537
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2574
2538
|
default:
|
|
2575
2539
|
const parsedBody = parsedOutput.body;
|
|
2576
|
-
|
|
2540
|
+
return throwDefaultError({
|
|
2577
2541
|
output,
|
|
2578
2542
|
parsedBody,
|
|
2579
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2580
2543
|
errorCode,
|
|
2581
2544
|
});
|
|
2582
2545
|
}
|
|
@@ -2585,13 +2548,14 @@ const de_GetMessagingSessionEndpointCommand = async (output, context) => {
|
|
|
2585
2548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2586
2549
|
return de_GetMessagingSessionEndpointCommandError(output, context);
|
|
2587
2550
|
}
|
|
2588
|
-
const contents = map({
|
|
2551
|
+
const contents = (0, smithy_client_1.map)({
|
|
2589
2552
|
$metadata: deserializeMetadata(output),
|
|
2590
2553
|
});
|
|
2591
2554
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
}
|
|
2555
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2556
|
+
Endpoint: smithy_client_1._json,
|
|
2557
|
+
});
|
|
2558
|
+
Object.assign(contents, doc);
|
|
2595
2559
|
return contents;
|
|
2596
2560
|
};
|
|
2597
2561
|
exports.de_GetMessagingSessionEndpointCommand = de_GetMessagingSessionEndpointCommand;
|
|
@@ -2619,10 +2583,9 @@ const de_GetMessagingSessionEndpointCommandError = async (output, context) => {
|
|
|
2619
2583
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2620
2584
|
default:
|
|
2621
2585
|
const parsedBody = parsedOutput.body;
|
|
2622
|
-
|
|
2586
|
+
return throwDefaultError({
|
|
2623
2587
|
output,
|
|
2624
2588
|
parsedBody,
|
|
2625
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2626
2589
|
errorCode,
|
|
2627
2590
|
});
|
|
2628
2591
|
}
|
|
@@ -2631,13 +2594,14 @@ const de_GetMessagingStreamingConfigurationsCommand = async (output, context) =>
|
|
|
2631
2594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2632
2595
|
return de_GetMessagingStreamingConfigurationsCommandError(output, context);
|
|
2633
2596
|
}
|
|
2634
|
-
const contents = map({
|
|
2597
|
+
const contents = (0, smithy_client_1.map)({
|
|
2635
2598
|
$metadata: deserializeMetadata(output),
|
|
2636
2599
|
});
|
|
2637
2600
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
}
|
|
2601
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2602
|
+
StreamingConfigurations: smithy_client_1._json,
|
|
2603
|
+
});
|
|
2604
|
+
Object.assign(contents, doc);
|
|
2641
2605
|
return contents;
|
|
2642
2606
|
};
|
|
2643
2607
|
exports.de_GetMessagingStreamingConfigurationsCommand = de_GetMessagingStreamingConfigurationsCommand;
|
|
@@ -2671,10 +2635,9 @@ const de_GetMessagingStreamingConfigurationsCommandError = async (output, contex
|
|
|
2671
2635
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2672
2636
|
default:
|
|
2673
2637
|
const parsedBody = parsedOutput.body;
|
|
2674
|
-
|
|
2638
|
+
return throwDefaultError({
|
|
2675
2639
|
output,
|
|
2676
2640
|
parsedBody,
|
|
2677
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2678
2641
|
errorCode,
|
|
2679
2642
|
});
|
|
2680
2643
|
}
|
|
@@ -2683,19 +2646,16 @@ const de_ListChannelBansCommand = async (output, context) => {
|
|
|
2683
2646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2684
2647
|
return de_ListChannelBansCommandError(output, context);
|
|
2685
2648
|
}
|
|
2686
|
-
const contents = map({
|
|
2649
|
+
const contents = (0, smithy_client_1.map)({
|
|
2687
2650
|
$metadata: deserializeMetadata(output),
|
|
2688
2651
|
});
|
|
2689
2652
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
if (data.NextToken != null) {
|
|
2697
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2698
|
-
}
|
|
2653
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2654
|
+
ChannelArn: smithy_client_1.expectString,
|
|
2655
|
+
ChannelBans: smithy_client_1._json,
|
|
2656
|
+
NextToken: smithy_client_1.expectString,
|
|
2657
|
+
});
|
|
2658
|
+
Object.assign(contents, doc);
|
|
2699
2659
|
return contents;
|
|
2700
2660
|
};
|
|
2701
2661
|
exports.de_ListChannelBansCommand = de_ListChannelBansCommand;
|
|
@@ -2726,10 +2686,9 @@ const de_ListChannelBansCommandError = async (output, context) => {
|
|
|
2726
2686
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2727
2687
|
default:
|
|
2728
2688
|
const parsedBody = parsedOutput.body;
|
|
2729
|
-
|
|
2689
|
+
return throwDefaultError({
|
|
2730
2690
|
output,
|
|
2731
2691
|
parsedBody,
|
|
2732
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2733
2692
|
errorCode,
|
|
2734
2693
|
});
|
|
2735
2694
|
}
|
|
@@ -2738,16 +2697,15 @@ const de_ListChannelFlowsCommand = async (output, context) => {
|
|
|
2738
2697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2739
2698
|
return de_ListChannelFlowsCommandError(output, context);
|
|
2740
2699
|
}
|
|
2741
|
-
const contents = map({
|
|
2700
|
+
const contents = (0, smithy_client_1.map)({
|
|
2742
2701
|
$metadata: deserializeMetadata(output),
|
|
2743
2702
|
});
|
|
2744
2703
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
}
|
|
2704
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2705
|
+
ChannelFlows: smithy_client_1._json,
|
|
2706
|
+
NextToken: smithy_client_1.expectString,
|
|
2707
|
+
});
|
|
2708
|
+
Object.assign(contents, doc);
|
|
2751
2709
|
return contents;
|
|
2752
2710
|
};
|
|
2753
2711
|
exports.de_ListChannelFlowsCommand = de_ListChannelFlowsCommand;
|
|
@@ -2778,10 +2736,9 @@ const de_ListChannelFlowsCommandError = async (output, context) => {
|
|
|
2778
2736
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2779
2737
|
default:
|
|
2780
2738
|
const parsedBody = parsedOutput.body;
|
|
2781
|
-
|
|
2739
|
+
return throwDefaultError({
|
|
2782
2740
|
output,
|
|
2783
2741
|
parsedBody,
|
|
2784
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2785
2742
|
errorCode,
|
|
2786
2743
|
});
|
|
2787
2744
|
}
|
|
@@ -2790,19 +2747,16 @@ const de_ListChannelMembershipsCommand = async (output, context) => {
|
|
|
2790
2747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2791
2748
|
return de_ListChannelMembershipsCommandError(output, context);
|
|
2792
2749
|
}
|
|
2793
|
-
const contents = map({
|
|
2750
|
+
const contents = (0, smithy_client_1.map)({
|
|
2794
2751
|
$metadata: deserializeMetadata(output),
|
|
2795
2752
|
});
|
|
2796
2753
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
if (data.NextToken != null) {
|
|
2804
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2805
|
-
}
|
|
2754
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2755
|
+
ChannelArn: smithy_client_1.expectString,
|
|
2756
|
+
ChannelMemberships: smithy_client_1._json,
|
|
2757
|
+
NextToken: smithy_client_1.expectString,
|
|
2758
|
+
});
|
|
2759
|
+
Object.assign(contents, doc);
|
|
2806
2760
|
return contents;
|
|
2807
2761
|
};
|
|
2808
2762
|
exports.de_ListChannelMembershipsCommand = de_ListChannelMembershipsCommand;
|
|
@@ -2833,10 +2787,9 @@ const de_ListChannelMembershipsCommandError = async (output, context) => {
|
|
|
2833
2787
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2834
2788
|
default:
|
|
2835
2789
|
const parsedBody = parsedOutput.body;
|
|
2836
|
-
|
|
2790
|
+
return throwDefaultError({
|
|
2837
2791
|
output,
|
|
2838
2792
|
parsedBody,
|
|
2839
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2840
2793
|
errorCode,
|
|
2841
2794
|
});
|
|
2842
2795
|
}
|
|
@@ -2845,16 +2798,15 @@ const de_ListChannelMembershipsForAppInstanceUserCommand = async (output, contex
|
|
|
2845
2798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2846
2799
|
return de_ListChannelMembershipsForAppInstanceUserCommandError(output, context);
|
|
2847
2800
|
}
|
|
2848
|
-
const contents = map({
|
|
2801
|
+
const contents = (0, smithy_client_1.map)({
|
|
2849
2802
|
$metadata: deserializeMetadata(output),
|
|
2850
2803
|
});
|
|
2851
2804
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
}
|
|
2805
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2806
|
+
ChannelMemberships: (_) => de_ChannelMembershipForAppInstanceUserSummaryList(_, context),
|
|
2807
|
+
NextToken: smithy_client_1.expectString,
|
|
2808
|
+
});
|
|
2809
|
+
Object.assign(contents, doc);
|
|
2858
2810
|
return contents;
|
|
2859
2811
|
};
|
|
2860
2812
|
exports.de_ListChannelMembershipsForAppInstanceUserCommand = de_ListChannelMembershipsForAppInstanceUserCommand;
|
|
@@ -2885,10 +2837,9 @@ const de_ListChannelMembershipsForAppInstanceUserCommandError = async (output, c
|
|
|
2885
2837
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2886
2838
|
default:
|
|
2887
2839
|
const parsedBody = parsedOutput.body;
|
|
2888
|
-
|
|
2840
|
+
return throwDefaultError({
|
|
2889
2841
|
output,
|
|
2890
2842
|
parsedBody,
|
|
2891
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2892
2843
|
errorCode,
|
|
2893
2844
|
});
|
|
2894
2845
|
}
|
|
@@ -2897,22 +2848,17 @@ const de_ListChannelMessagesCommand = async (output, context) => {
|
|
|
2897
2848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2898
2849
|
return de_ListChannelMessagesCommandError(output, context);
|
|
2899
2850
|
}
|
|
2900
|
-
const contents = map({
|
|
2851
|
+
const contents = (0, smithy_client_1.map)({
|
|
2901
2852
|
$metadata: deserializeMetadata(output),
|
|
2902
2853
|
});
|
|
2903
2854
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2912
|
-
}
|
|
2913
|
-
if (data.SubChannelId != null) {
|
|
2914
|
-
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
2915
|
-
}
|
|
2855
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2856
|
+
ChannelArn: smithy_client_1.expectString,
|
|
2857
|
+
ChannelMessages: (_) => de_ChannelMessageSummaryList(_, context),
|
|
2858
|
+
NextToken: smithy_client_1.expectString,
|
|
2859
|
+
SubChannelId: smithy_client_1.expectString,
|
|
2860
|
+
});
|
|
2861
|
+
Object.assign(contents, doc);
|
|
2916
2862
|
return contents;
|
|
2917
2863
|
};
|
|
2918
2864
|
exports.de_ListChannelMessagesCommand = de_ListChannelMessagesCommand;
|
|
@@ -2943,10 +2889,9 @@ const de_ListChannelMessagesCommandError = async (output, context) => {
|
|
|
2943
2889
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2944
2890
|
default:
|
|
2945
2891
|
const parsedBody = parsedOutput.body;
|
|
2946
|
-
|
|
2892
|
+
return throwDefaultError({
|
|
2947
2893
|
output,
|
|
2948
2894
|
parsedBody,
|
|
2949
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
2950
2895
|
errorCode,
|
|
2951
2896
|
});
|
|
2952
2897
|
}
|
|
@@ -2955,19 +2900,16 @@ const de_ListChannelModeratorsCommand = async (output, context) => {
|
|
|
2955
2900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2956
2901
|
return de_ListChannelModeratorsCommandError(output, context);
|
|
2957
2902
|
}
|
|
2958
|
-
const contents = map({
|
|
2903
|
+
const contents = (0, smithy_client_1.map)({
|
|
2959
2904
|
$metadata: deserializeMetadata(output),
|
|
2960
2905
|
});
|
|
2961
2906
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
if (data.NextToken != null) {
|
|
2969
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2970
|
-
}
|
|
2907
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2908
|
+
ChannelArn: smithy_client_1.expectString,
|
|
2909
|
+
ChannelModerators: smithy_client_1._json,
|
|
2910
|
+
NextToken: smithy_client_1.expectString,
|
|
2911
|
+
});
|
|
2912
|
+
Object.assign(contents, doc);
|
|
2971
2913
|
return contents;
|
|
2972
2914
|
};
|
|
2973
2915
|
exports.de_ListChannelModeratorsCommand = de_ListChannelModeratorsCommand;
|
|
@@ -2998,10 +2940,9 @@ const de_ListChannelModeratorsCommandError = async (output, context) => {
|
|
|
2998
2940
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2999
2941
|
default:
|
|
3000
2942
|
const parsedBody = parsedOutput.body;
|
|
3001
|
-
|
|
2943
|
+
return throwDefaultError({
|
|
3002
2944
|
output,
|
|
3003
2945
|
parsedBody,
|
|
3004
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3005
2946
|
errorCode,
|
|
3006
2947
|
});
|
|
3007
2948
|
}
|
|
@@ -3010,16 +2951,15 @@ const de_ListChannelsCommand = async (output, context) => {
|
|
|
3010
2951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3011
2952
|
return de_ListChannelsCommandError(output, context);
|
|
3012
2953
|
}
|
|
3013
|
-
const contents = map({
|
|
2954
|
+
const contents = (0, smithy_client_1.map)({
|
|
3014
2955
|
$metadata: deserializeMetadata(output),
|
|
3015
2956
|
});
|
|
3016
2957
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
}
|
|
2958
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2959
|
+
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
2960
|
+
NextToken: smithy_client_1.expectString,
|
|
2961
|
+
});
|
|
2962
|
+
Object.assign(contents, doc);
|
|
3023
2963
|
return contents;
|
|
3024
2964
|
};
|
|
3025
2965
|
exports.de_ListChannelsCommand = de_ListChannelsCommand;
|
|
@@ -3050,10 +2990,9 @@ const de_ListChannelsCommandError = async (output, context) => {
|
|
|
3050
2990
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3051
2991
|
default:
|
|
3052
2992
|
const parsedBody = parsedOutput.body;
|
|
3053
|
-
|
|
2993
|
+
return throwDefaultError({
|
|
3054
2994
|
output,
|
|
3055
2995
|
parsedBody,
|
|
3056
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3057
2996
|
errorCode,
|
|
3058
2997
|
});
|
|
3059
2998
|
}
|
|
@@ -3062,16 +3001,15 @@ const de_ListChannelsAssociatedWithChannelFlowCommand = async (output, context)
|
|
|
3062
3001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3063
3002
|
return de_ListChannelsAssociatedWithChannelFlowCommandError(output, context);
|
|
3064
3003
|
}
|
|
3065
|
-
const contents = map({
|
|
3004
|
+
const contents = (0, smithy_client_1.map)({
|
|
3066
3005
|
$metadata: deserializeMetadata(output),
|
|
3067
3006
|
});
|
|
3068
3007
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
}
|
|
3008
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3009
|
+
Channels: smithy_client_1._json,
|
|
3010
|
+
NextToken: smithy_client_1.expectString,
|
|
3011
|
+
});
|
|
3012
|
+
Object.assign(contents, doc);
|
|
3075
3013
|
return contents;
|
|
3076
3014
|
};
|
|
3077
3015
|
exports.de_ListChannelsAssociatedWithChannelFlowCommand = de_ListChannelsAssociatedWithChannelFlowCommand;
|
|
@@ -3102,10 +3040,9 @@ const de_ListChannelsAssociatedWithChannelFlowCommandError = async (output, cont
|
|
|
3102
3040
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3103
3041
|
default:
|
|
3104
3042
|
const parsedBody = parsedOutput.body;
|
|
3105
|
-
|
|
3043
|
+
return throwDefaultError({
|
|
3106
3044
|
output,
|
|
3107
3045
|
parsedBody,
|
|
3108
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3109
3046
|
errorCode,
|
|
3110
3047
|
});
|
|
3111
3048
|
}
|
|
@@ -3114,16 +3051,15 @@ const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, context)
|
|
|
3114
3051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3115
3052
|
return de_ListChannelsModeratedByAppInstanceUserCommandError(output, context);
|
|
3116
3053
|
}
|
|
3117
|
-
const contents = map({
|
|
3054
|
+
const contents = (0, smithy_client_1.map)({
|
|
3118
3055
|
$metadata: deserializeMetadata(output),
|
|
3119
3056
|
});
|
|
3120
3057
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
}
|
|
3058
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3059
|
+
Channels: (_) => de_ChannelModeratedByAppInstanceUserSummaryList(_, context),
|
|
3060
|
+
NextToken: smithy_client_1.expectString,
|
|
3061
|
+
});
|
|
3062
|
+
Object.assign(contents, doc);
|
|
3127
3063
|
return contents;
|
|
3128
3064
|
};
|
|
3129
3065
|
exports.de_ListChannelsModeratedByAppInstanceUserCommand = de_ListChannelsModeratedByAppInstanceUserCommand;
|
|
@@ -3154,10 +3090,9 @@ const de_ListChannelsModeratedByAppInstanceUserCommandError = async (output, con
|
|
|
3154
3090
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3155
3091
|
default:
|
|
3156
3092
|
const parsedBody = parsedOutput.body;
|
|
3157
|
-
|
|
3093
|
+
return throwDefaultError({
|
|
3158
3094
|
output,
|
|
3159
3095
|
parsedBody,
|
|
3160
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3161
3096
|
errorCode,
|
|
3162
3097
|
});
|
|
3163
3098
|
}
|
|
@@ -3166,19 +3101,16 @@ const de_ListSubChannelsCommand = async (output, context) => {
|
|
|
3166
3101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3167
3102
|
return de_ListSubChannelsCommandError(output, context);
|
|
3168
3103
|
}
|
|
3169
|
-
const contents = map({
|
|
3104
|
+
const contents = (0, smithy_client_1.map)({
|
|
3170
3105
|
$metadata: deserializeMetadata(output),
|
|
3171
3106
|
});
|
|
3172
3107
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
if (data.SubChannels != null) {
|
|
3180
|
-
contents.SubChannels = de_SubChannelSummaryList(data.SubChannels, context);
|
|
3181
|
-
}
|
|
3108
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3109
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3110
|
+
NextToken: smithy_client_1.expectString,
|
|
3111
|
+
SubChannels: smithy_client_1._json,
|
|
3112
|
+
});
|
|
3113
|
+
Object.assign(contents, doc);
|
|
3182
3114
|
return contents;
|
|
3183
3115
|
};
|
|
3184
3116
|
exports.de_ListSubChannelsCommand = de_ListSubChannelsCommand;
|
|
@@ -3209,10 +3141,9 @@ const de_ListSubChannelsCommandError = async (output, context) => {
|
|
|
3209
3141
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3210
3142
|
default:
|
|
3211
3143
|
const parsedBody = parsedOutput.body;
|
|
3212
|
-
|
|
3144
|
+
return throwDefaultError({
|
|
3213
3145
|
output,
|
|
3214
3146
|
parsedBody,
|
|
3215
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3216
3147
|
errorCode,
|
|
3217
3148
|
});
|
|
3218
3149
|
}
|
|
@@ -3221,13 +3152,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3221
3152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3222
3153
|
return de_ListTagsForResourceCommandError(output, context);
|
|
3223
3154
|
}
|
|
3224
|
-
const contents = map({
|
|
3155
|
+
const contents = (0, smithy_client_1.map)({
|
|
3225
3156
|
$metadata: deserializeMetadata(output),
|
|
3226
3157
|
});
|
|
3227
3158
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
}
|
|
3159
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3160
|
+
Tags: smithy_client_1._json,
|
|
3161
|
+
});
|
|
3162
|
+
Object.assign(contents, doc);
|
|
3231
3163
|
return contents;
|
|
3232
3164
|
};
|
|
3233
3165
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -3258,10 +3190,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
3258
3190
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3259
3191
|
default:
|
|
3260
3192
|
const parsedBody = parsedOutput.body;
|
|
3261
|
-
|
|
3193
|
+
return throwDefaultError({
|
|
3262
3194
|
output,
|
|
3263
3195
|
parsedBody,
|
|
3264
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3265
3196
|
errorCode,
|
|
3266
3197
|
});
|
|
3267
3198
|
}
|
|
@@ -3270,16 +3201,15 @@ const de_PutChannelExpirationSettingsCommand = async (output, context) => {
|
|
|
3270
3201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3271
3202
|
return de_PutChannelExpirationSettingsCommandError(output, context);
|
|
3272
3203
|
}
|
|
3273
|
-
const contents = map({
|
|
3204
|
+
const contents = (0, smithy_client_1.map)({
|
|
3274
3205
|
$metadata: deserializeMetadata(output),
|
|
3275
3206
|
});
|
|
3276
3207
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
}
|
|
3208
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3209
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3210
|
+
ExpirationSettings: smithy_client_1._json,
|
|
3211
|
+
});
|
|
3212
|
+
Object.assign(contents, doc);
|
|
3283
3213
|
return contents;
|
|
3284
3214
|
};
|
|
3285
3215
|
exports.de_PutChannelExpirationSettingsCommand = de_PutChannelExpirationSettingsCommand;
|
|
@@ -3313,10 +3243,9 @@ const de_PutChannelExpirationSettingsCommandError = async (output, context) => {
|
|
|
3313
3243
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3314
3244
|
default:
|
|
3315
3245
|
const parsedBody = parsedOutput.body;
|
|
3316
|
-
|
|
3246
|
+
return throwDefaultError({
|
|
3317
3247
|
output,
|
|
3318
3248
|
parsedBody,
|
|
3319
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3320
3249
|
errorCode,
|
|
3321
3250
|
});
|
|
3322
3251
|
}
|
|
@@ -3325,19 +3254,16 @@ const de_PutChannelMembershipPreferencesCommand = async (output, context) => {
|
|
|
3325
3254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3326
3255
|
return de_PutChannelMembershipPreferencesCommandError(output, context);
|
|
3327
3256
|
}
|
|
3328
|
-
const contents = map({
|
|
3257
|
+
const contents = (0, smithy_client_1.map)({
|
|
3329
3258
|
$metadata: deserializeMetadata(output),
|
|
3330
3259
|
});
|
|
3331
3260
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
if (data.Preferences != null) {
|
|
3339
|
-
contents.Preferences = de_ChannelMembershipPreferences(data.Preferences, context);
|
|
3340
|
-
}
|
|
3261
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3262
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3263
|
+
Member: smithy_client_1._json,
|
|
3264
|
+
Preferences: smithy_client_1._json,
|
|
3265
|
+
});
|
|
3266
|
+
Object.assign(contents, doc);
|
|
3341
3267
|
return contents;
|
|
3342
3268
|
};
|
|
3343
3269
|
exports.de_PutChannelMembershipPreferencesCommand = de_PutChannelMembershipPreferencesCommand;
|
|
@@ -3371,10 +3297,9 @@ const de_PutChannelMembershipPreferencesCommandError = async (output, context) =
|
|
|
3371
3297
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3372
3298
|
default:
|
|
3373
3299
|
const parsedBody = parsedOutput.body;
|
|
3374
|
-
|
|
3300
|
+
return throwDefaultError({
|
|
3375
3301
|
output,
|
|
3376
3302
|
parsedBody,
|
|
3377
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3378
3303
|
errorCode,
|
|
3379
3304
|
});
|
|
3380
3305
|
}
|
|
@@ -3383,13 +3308,14 @@ const de_PutMessagingStreamingConfigurationsCommand = async (output, context) =>
|
|
|
3383
3308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3384
3309
|
return de_PutMessagingStreamingConfigurationsCommandError(output, context);
|
|
3385
3310
|
}
|
|
3386
|
-
const contents = map({
|
|
3311
|
+
const contents = (0, smithy_client_1.map)({
|
|
3387
3312
|
$metadata: deserializeMetadata(output),
|
|
3388
3313
|
});
|
|
3389
3314
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
}
|
|
3315
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3316
|
+
StreamingConfigurations: smithy_client_1._json,
|
|
3317
|
+
});
|
|
3318
|
+
Object.assign(contents, doc);
|
|
3393
3319
|
return contents;
|
|
3394
3320
|
};
|
|
3395
3321
|
exports.de_PutMessagingStreamingConfigurationsCommand = de_PutMessagingStreamingConfigurationsCommand;
|
|
@@ -3426,10 +3352,9 @@ const de_PutMessagingStreamingConfigurationsCommandError = async (output, contex
|
|
|
3426
3352
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3427
3353
|
default:
|
|
3428
3354
|
const parsedBody = parsedOutput.body;
|
|
3429
|
-
|
|
3355
|
+
return throwDefaultError({
|
|
3430
3356
|
output,
|
|
3431
3357
|
parsedBody,
|
|
3432
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3433
3358
|
errorCode,
|
|
3434
3359
|
});
|
|
3435
3360
|
}
|
|
@@ -3438,19 +3363,16 @@ const de_RedactChannelMessageCommand = async (output, context) => {
|
|
|
3438
3363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3439
3364
|
return de_RedactChannelMessageCommandError(output, context);
|
|
3440
3365
|
}
|
|
3441
|
-
const contents = map({
|
|
3366
|
+
const contents = (0, smithy_client_1.map)({
|
|
3442
3367
|
$metadata: deserializeMetadata(output),
|
|
3443
3368
|
});
|
|
3444
3369
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
if (data.SubChannelId != null) {
|
|
3452
|
-
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3453
|
-
}
|
|
3370
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3371
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3372
|
+
MessageId: smithy_client_1.expectString,
|
|
3373
|
+
SubChannelId: smithy_client_1.expectString,
|
|
3374
|
+
});
|
|
3375
|
+
Object.assign(contents, doc);
|
|
3454
3376
|
return contents;
|
|
3455
3377
|
};
|
|
3456
3378
|
exports.de_RedactChannelMessageCommand = de_RedactChannelMessageCommand;
|
|
@@ -3484,10 +3406,9 @@ const de_RedactChannelMessageCommandError = async (output, context) => {
|
|
|
3484
3406
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3485
3407
|
default:
|
|
3486
3408
|
const parsedBody = parsedOutput.body;
|
|
3487
|
-
|
|
3409
|
+
return throwDefaultError({
|
|
3488
3410
|
output,
|
|
3489
3411
|
parsedBody,
|
|
3490
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3491
3412
|
errorCode,
|
|
3492
3413
|
});
|
|
3493
3414
|
}
|
|
@@ -3496,16 +3417,15 @@ const de_SearchChannelsCommand = async (output, context) => {
|
|
|
3496
3417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3497
3418
|
return de_SearchChannelsCommandError(output, context);
|
|
3498
3419
|
}
|
|
3499
|
-
const contents = map({
|
|
3420
|
+
const contents = (0, smithy_client_1.map)({
|
|
3500
3421
|
$metadata: deserializeMetadata(output),
|
|
3501
3422
|
});
|
|
3502
3423
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
}
|
|
3424
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3425
|
+
Channels: (_) => de_ChannelSummaryList(_, context),
|
|
3426
|
+
NextToken: smithy_client_1.expectString,
|
|
3427
|
+
});
|
|
3428
|
+
Object.assign(contents, doc);
|
|
3509
3429
|
return contents;
|
|
3510
3430
|
};
|
|
3511
3431
|
exports.de_SearchChannelsCommand = de_SearchChannelsCommand;
|
|
@@ -3536,10 +3456,9 @@ const de_SearchChannelsCommandError = async (output, context) => {
|
|
|
3536
3456
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3537
3457
|
default:
|
|
3538
3458
|
const parsedBody = parsedOutput.body;
|
|
3539
|
-
|
|
3459
|
+
return throwDefaultError({
|
|
3540
3460
|
output,
|
|
3541
3461
|
parsedBody,
|
|
3542
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3543
3462
|
errorCode,
|
|
3544
3463
|
});
|
|
3545
3464
|
}
|
|
@@ -3548,22 +3467,17 @@ const de_SendChannelMessageCommand = async (output, context) => {
|
|
|
3548
3467
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3549
3468
|
return de_SendChannelMessageCommandError(output, context);
|
|
3550
3469
|
}
|
|
3551
|
-
const contents = map({
|
|
3470
|
+
const contents = (0, smithy_client_1.map)({
|
|
3552
3471
|
$metadata: deserializeMetadata(output),
|
|
3553
3472
|
});
|
|
3554
3473
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
}
|
|
3561
|
-
|
|
3562
|
-
contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
|
|
3563
|
-
}
|
|
3564
|
-
if (data.SubChannelId != null) {
|
|
3565
|
-
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3566
|
-
}
|
|
3474
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3475
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3476
|
+
MessageId: smithy_client_1.expectString,
|
|
3477
|
+
Status: smithy_client_1._json,
|
|
3478
|
+
SubChannelId: smithy_client_1.expectString,
|
|
3479
|
+
});
|
|
3480
|
+
Object.assign(contents, doc);
|
|
3567
3481
|
return contents;
|
|
3568
3482
|
};
|
|
3569
3483
|
exports.de_SendChannelMessageCommand = de_SendChannelMessageCommand;
|
|
@@ -3597,10 +3511,9 @@ const de_SendChannelMessageCommandError = async (output, context) => {
|
|
|
3597
3511
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3598
3512
|
default:
|
|
3599
3513
|
const parsedBody = parsedOutput.body;
|
|
3600
|
-
|
|
3514
|
+
return throwDefaultError({
|
|
3601
3515
|
output,
|
|
3602
3516
|
parsedBody,
|
|
3603
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3604
3517
|
errorCode,
|
|
3605
3518
|
});
|
|
3606
3519
|
}
|
|
@@ -3609,7 +3522,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
3609
3522
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3610
3523
|
return de_TagResourceCommandError(output, context);
|
|
3611
3524
|
}
|
|
3612
|
-
const contents = map({
|
|
3525
|
+
const contents = (0, smithy_client_1.map)({
|
|
3613
3526
|
$metadata: deserializeMetadata(output),
|
|
3614
3527
|
});
|
|
3615
3528
|
await collectBody(output.body, context);
|
|
@@ -3646,10 +3559,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
3646
3559
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3647
3560
|
default:
|
|
3648
3561
|
const parsedBody = parsedOutput.body;
|
|
3649
|
-
|
|
3562
|
+
return throwDefaultError({
|
|
3650
3563
|
output,
|
|
3651
3564
|
parsedBody,
|
|
3652
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3653
3565
|
errorCode,
|
|
3654
3566
|
});
|
|
3655
3567
|
}
|
|
@@ -3658,7 +3570,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3658
3570
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3659
3571
|
return de_UntagResourceCommandError(output, context);
|
|
3660
3572
|
}
|
|
3661
|
-
const contents = map({
|
|
3573
|
+
const contents = (0, smithy_client_1.map)({
|
|
3662
3574
|
$metadata: deserializeMetadata(output),
|
|
3663
3575
|
});
|
|
3664
3576
|
await collectBody(output.body, context);
|
|
@@ -3692,10 +3604,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
3692
3604
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3693
3605
|
default:
|
|
3694
3606
|
const parsedBody = parsedOutput.body;
|
|
3695
|
-
|
|
3607
|
+
return throwDefaultError({
|
|
3696
3608
|
output,
|
|
3697
3609
|
parsedBody,
|
|
3698
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3699
3610
|
errorCode,
|
|
3700
3611
|
});
|
|
3701
3612
|
}
|
|
@@ -3704,13 +3615,14 @@ const de_UpdateChannelCommand = async (output, context) => {
|
|
|
3704
3615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3705
3616
|
return de_UpdateChannelCommandError(output, context);
|
|
3706
3617
|
}
|
|
3707
|
-
const contents = map({
|
|
3618
|
+
const contents = (0, smithy_client_1.map)({
|
|
3708
3619
|
$metadata: deserializeMetadata(output),
|
|
3709
3620
|
});
|
|
3710
3621
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
}
|
|
3622
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3623
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3624
|
+
});
|
|
3625
|
+
Object.assign(contents, doc);
|
|
3714
3626
|
return contents;
|
|
3715
3627
|
};
|
|
3716
3628
|
exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
|
|
@@ -3744,10 +3656,9 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
3744
3656
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3745
3657
|
default:
|
|
3746
3658
|
const parsedBody = parsedOutput.body;
|
|
3747
|
-
|
|
3659
|
+
return throwDefaultError({
|
|
3748
3660
|
output,
|
|
3749
3661
|
parsedBody,
|
|
3750
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3751
3662
|
errorCode,
|
|
3752
3663
|
});
|
|
3753
3664
|
}
|
|
@@ -3756,13 +3667,14 @@ const de_UpdateChannelFlowCommand = async (output, context) => {
|
|
|
3756
3667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3757
3668
|
return de_UpdateChannelFlowCommandError(output, context);
|
|
3758
3669
|
}
|
|
3759
|
-
const contents = map({
|
|
3670
|
+
const contents = (0, smithy_client_1.map)({
|
|
3760
3671
|
$metadata: deserializeMetadata(output),
|
|
3761
3672
|
});
|
|
3762
3673
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
}
|
|
3674
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3675
|
+
ChannelFlowArn: smithy_client_1.expectString,
|
|
3676
|
+
});
|
|
3677
|
+
Object.assign(contents, doc);
|
|
3766
3678
|
return contents;
|
|
3767
3679
|
};
|
|
3768
3680
|
exports.de_UpdateChannelFlowCommand = de_UpdateChannelFlowCommand;
|
|
@@ -3796,10 +3708,9 @@ const de_UpdateChannelFlowCommandError = async (output, context) => {
|
|
|
3796
3708
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3797
3709
|
default:
|
|
3798
3710
|
const parsedBody = parsedOutput.body;
|
|
3799
|
-
|
|
3711
|
+
return throwDefaultError({
|
|
3800
3712
|
output,
|
|
3801
3713
|
parsedBody,
|
|
3802
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3803
3714
|
errorCode,
|
|
3804
3715
|
});
|
|
3805
3716
|
}
|
|
@@ -3808,22 +3719,17 @@ const de_UpdateChannelMessageCommand = async (output, context) => {
|
|
|
3808
3719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3809
3720
|
return de_UpdateChannelMessageCommandError(output, context);
|
|
3810
3721
|
}
|
|
3811
|
-
const contents = map({
|
|
3722
|
+
const contents = (0, smithy_client_1.map)({
|
|
3812
3723
|
$metadata: deserializeMetadata(output),
|
|
3813
3724
|
});
|
|
3814
3725
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
}
|
|
3821
|
-
|
|
3822
|
-
contents.Status = de_ChannelMessageStatusStructure(data.Status, context);
|
|
3823
|
-
}
|
|
3824
|
-
if (data.SubChannelId != null) {
|
|
3825
|
-
contents.SubChannelId = (0, smithy_client_1.expectString)(data.SubChannelId);
|
|
3826
|
-
}
|
|
3726
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3727
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3728
|
+
MessageId: smithy_client_1.expectString,
|
|
3729
|
+
Status: smithy_client_1._json,
|
|
3730
|
+
SubChannelId: smithy_client_1.expectString,
|
|
3731
|
+
});
|
|
3732
|
+
Object.assign(contents, doc);
|
|
3827
3733
|
return contents;
|
|
3828
3734
|
};
|
|
3829
3735
|
exports.de_UpdateChannelMessageCommand = de_UpdateChannelMessageCommand;
|
|
@@ -3857,10 +3763,9 @@ const de_UpdateChannelMessageCommandError = async (output, context) => {
|
|
|
3857
3763
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3858
3764
|
default:
|
|
3859
3765
|
const parsedBody = parsedOutput.body;
|
|
3860
|
-
|
|
3766
|
+
return throwDefaultError({
|
|
3861
3767
|
output,
|
|
3862
3768
|
parsedBody,
|
|
3863
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3864
3769
|
errorCode,
|
|
3865
3770
|
});
|
|
3866
3771
|
}
|
|
@@ -3869,16 +3774,15 @@ const de_UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
|
3869
3774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3870
3775
|
return de_UpdateChannelReadMarkerCommandError(output, context);
|
|
3871
3776
|
}
|
|
3872
|
-
const contents = map({
|
|
3777
|
+
const contents = (0, smithy_client_1.map)({
|
|
3873
3778
|
$metadata: deserializeMetadata(output),
|
|
3874
3779
|
});
|
|
3875
3780
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
}
|
|
3781
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3782
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3783
|
+
SubChannelId: smithy_client_1.expectString,
|
|
3784
|
+
});
|
|
3785
|
+
Object.assign(contents, doc);
|
|
3882
3786
|
return contents;
|
|
3883
3787
|
};
|
|
3884
3788
|
exports.de_UpdateChannelReadMarkerCommand = de_UpdateChannelReadMarkerCommand;
|
|
@@ -3912,24 +3816,22 @@ const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
|
3912
3816
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3913
3817
|
default:
|
|
3914
3818
|
const parsedBody = parsedOutput.body;
|
|
3915
|
-
|
|
3819
|
+
return throwDefaultError({
|
|
3916
3820
|
output,
|
|
3917
3821
|
parsedBody,
|
|
3918
|
-
exceptionCtor: ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException,
|
|
3919
3822
|
errorCode,
|
|
3920
3823
|
});
|
|
3921
3824
|
}
|
|
3922
3825
|
};
|
|
3923
|
-
const
|
|
3826
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ChimeSDKMessagingServiceException_1.ChimeSDKMessagingServiceException);
|
|
3924
3827
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3925
|
-
const contents = map({});
|
|
3828
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3926
3829
|
const data = parsedOutput.body;
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
}
|
|
3830
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3831
|
+
Code: smithy_client_1.expectString,
|
|
3832
|
+
Message: smithy_client_1.expectString,
|
|
3833
|
+
});
|
|
3834
|
+
Object.assign(contents, doc);
|
|
3933
3835
|
const exception = new models_0_1.BadRequestException({
|
|
3934
3836
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3935
3837
|
...contents,
|
|
@@ -3937,14 +3839,13 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
3937
3839
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3938
3840
|
};
|
|
3939
3841
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3940
|
-
const contents = map({});
|
|
3842
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3941
3843
|
const data = parsedOutput.body;
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
}
|
|
3844
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3845
|
+
Code: smithy_client_1.expectString,
|
|
3846
|
+
Message: smithy_client_1.expectString,
|
|
3847
|
+
});
|
|
3848
|
+
Object.assign(contents, doc);
|
|
3948
3849
|
const exception = new models_0_1.ConflictException({
|
|
3949
3850
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3950
3851
|
...contents,
|
|
@@ -3952,14 +3853,13 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3952
3853
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3953
3854
|
};
|
|
3954
3855
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
3955
|
-
const contents = map({});
|
|
3856
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3956
3857
|
const data = parsedOutput.body;
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
}
|
|
3858
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3859
|
+
Code: smithy_client_1.expectString,
|
|
3860
|
+
Message: smithy_client_1.expectString,
|
|
3861
|
+
});
|
|
3862
|
+
Object.assign(contents, doc);
|
|
3963
3863
|
const exception = new models_0_1.ForbiddenException({
|
|
3964
3864
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3965
3865
|
...contents,
|
|
@@ -3967,14 +3867,13 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
3967
3867
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3968
3868
|
};
|
|
3969
3869
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3970
|
-
const contents = map({});
|
|
3870
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3971
3871
|
const data = parsedOutput.body;
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
}
|
|
3872
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3873
|
+
Code: smithy_client_1.expectString,
|
|
3874
|
+
Message: smithy_client_1.expectString,
|
|
3875
|
+
});
|
|
3876
|
+
Object.assign(contents, doc);
|
|
3978
3877
|
const exception = new models_0_1.NotFoundException({
|
|
3979
3878
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3980
3879
|
...contents,
|
|
@@ -3982,14 +3881,13 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3982
3881
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3983
3882
|
};
|
|
3984
3883
|
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3985
|
-
const contents = map({});
|
|
3884
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3986
3885
|
const data = parsedOutput.body;
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
}
|
|
3886
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3887
|
+
Code: smithy_client_1.expectString,
|
|
3888
|
+
Message: smithy_client_1.expectString,
|
|
3889
|
+
});
|
|
3890
|
+
Object.assign(contents, doc);
|
|
3993
3891
|
const exception = new models_0_1.ResourceLimitExceededException({
|
|
3994
3892
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3995
3893
|
...contents,
|
|
@@ -3997,14 +3895,13 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3997
3895
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3998
3896
|
};
|
|
3999
3897
|
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
4000
|
-
const contents = map({});
|
|
3898
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4001
3899
|
const data = parsedOutput.body;
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
}
|
|
3900
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3901
|
+
Code: smithy_client_1.expectString,
|
|
3902
|
+
Message: smithy_client_1.expectString,
|
|
3903
|
+
});
|
|
3904
|
+
Object.assign(contents, doc);
|
|
4008
3905
|
const exception = new models_0_1.ServiceFailureException({
|
|
4009
3906
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4010
3907
|
...contents,
|
|
@@ -4012,14 +3909,13 @@ const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
4012
3909
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4013
3910
|
};
|
|
4014
3911
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
4015
|
-
const contents = map({});
|
|
3912
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4016
3913
|
const data = parsedOutput.body;
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
}
|
|
3914
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3915
|
+
Code: smithy_client_1.expectString,
|
|
3916
|
+
Message: smithy_client_1.expectString,
|
|
3917
|
+
});
|
|
3918
|
+
Object.assign(contents, doc);
|
|
4023
3919
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
4024
3920
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4025
3921
|
...contents,
|
|
@@ -4027,14 +3923,13 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
4027
3923
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4028
3924
|
};
|
|
4029
3925
|
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
4030
|
-
const contents = map({});
|
|
3926
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4031
3927
|
const data = parsedOutput.body;
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
}
|
|
3928
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3929
|
+
Code: smithy_client_1.expectString,
|
|
3930
|
+
Message: smithy_client_1.expectString,
|
|
3931
|
+
});
|
|
3932
|
+
Object.assign(contents, doc);
|
|
4038
3933
|
const exception = new models_0_1.ThrottledClientException({
|
|
4039
3934
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4040
3935
|
...contents,
|
|
@@ -4042,662 +3937,166 @@ const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
|
4042
3937
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4043
3938
|
};
|
|
4044
3939
|
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
4045
|
-
const contents = map({});
|
|
3940
|
+
const contents = (0, smithy_client_1.map)({});
|
|
4046
3941
|
const data = parsedOutput.body;
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
}
|
|
3942
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3943
|
+
Code: smithy_client_1.expectString,
|
|
3944
|
+
Message: smithy_client_1.expectString,
|
|
3945
|
+
});
|
|
3946
|
+
Object.assign(contents, doc);
|
|
4053
3947
|
const exception = new models_0_1.UnauthorizedClientException({
|
|
4054
3948
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4055
3949
|
...contents,
|
|
4056
3950
|
});
|
|
4057
3951
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4058
3952
|
};
|
|
4059
|
-
const se_ChannelMemberArns = (input, context) => {
|
|
4060
|
-
return input
|
|
4061
|
-
.filter((e) => e != null)
|
|
4062
|
-
.map((entry) => {
|
|
4063
|
-
return entry;
|
|
4064
|
-
});
|
|
4065
|
-
};
|
|
4066
|
-
const se_ChannelMembershipPreferences = (input, context) => {
|
|
4067
|
-
return {
|
|
4068
|
-
...(input.PushNotifications != null && {
|
|
4069
|
-
PushNotifications: se_PushNotificationPreferences(input.PushNotifications, context),
|
|
4070
|
-
}),
|
|
4071
|
-
};
|
|
4072
|
-
};
|
|
4073
|
-
const se_ChannelMessageCallback = (input, context) => {
|
|
4074
|
-
return {
|
|
4075
|
-
...(input.Content != null && { Content: input.Content }),
|
|
4076
|
-
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
4077
|
-
...(input.MessageAttributes != null && {
|
|
4078
|
-
MessageAttributes: se_MessageAttributeMap(input.MessageAttributes, context),
|
|
4079
|
-
}),
|
|
4080
|
-
...(input.MessageId != null && { MessageId: input.MessageId }),
|
|
4081
|
-
...(input.Metadata != null && { Metadata: input.Metadata }),
|
|
4082
|
-
...(input.PushNotification != null && {
|
|
4083
|
-
PushNotification: se_PushNotificationConfiguration(input.PushNotification, context),
|
|
4084
|
-
}),
|
|
4085
|
-
...(input.SubChannelId != null && { SubChannelId: input.SubChannelId }),
|
|
4086
|
-
};
|
|
4087
|
-
};
|
|
4088
|
-
const se_ChannelModeratorArns = (input, context) => {
|
|
4089
|
-
return input
|
|
4090
|
-
.filter((e) => e != null)
|
|
4091
|
-
.map((entry) => {
|
|
4092
|
-
return entry;
|
|
4093
|
-
});
|
|
4094
|
-
};
|
|
4095
|
-
const se_ElasticChannelConfiguration = (input, context) => {
|
|
4096
|
-
return {
|
|
4097
|
-
...(input.MaximumSubChannels != null && { MaximumSubChannels: input.MaximumSubChannels }),
|
|
4098
|
-
...(input.MinimumMembershipPercentage != null && {
|
|
4099
|
-
MinimumMembershipPercentage: input.MinimumMembershipPercentage,
|
|
4100
|
-
}),
|
|
4101
|
-
...(input.TargetMembershipsPerSubChannel != null && {
|
|
4102
|
-
TargetMembershipsPerSubChannel: input.TargetMembershipsPerSubChannel,
|
|
4103
|
-
}),
|
|
4104
|
-
};
|
|
4105
|
-
};
|
|
4106
|
-
const se_ExpirationSettings = (input, context) => {
|
|
4107
|
-
return {
|
|
4108
|
-
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
4109
|
-
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
4110
|
-
};
|
|
4111
|
-
};
|
|
4112
|
-
const se_LambdaConfiguration = (input, context) => {
|
|
4113
|
-
return {
|
|
4114
|
-
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
4115
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4116
|
-
};
|
|
4117
|
-
};
|
|
4118
|
-
const se_MemberArns = (input, context) => {
|
|
4119
|
-
return input
|
|
4120
|
-
.filter((e) => e != null)
|
|
4121
|
-
.map((entry) => {
|
|
4122
|
-
return entry;
|
|
4123
|
-
});
|
|
4124
|
-
};
|
|
4125
|
-
const se_MessageAttributeMap = (input, context) => {
|
|
4126
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4127
|
-
if (value === null) {
|
|
4128
|
-
return acc;
|
|
4129
|
-
}
|
|
4130
|
-
acc[key] = se_MessageAttributeValue(value, context);
|
|
4131
|
-
return acc;
|
|
4132
|
-
}, {});
|
|
4133
|
-
};
|
|
4134
|
-
const se_MessageAttributeStringValues = (input, context) => {
|
|
4135
|
-
return input
|
|
4136
|
-
.filter((e) => e != null)
|
|
4137
|
-
.map((entry) => {
|
|
4138
|
-
return entry;
|
|
4139
|
-
});
|
|
4140
|
-
};
|
|
4141
|
-
const se_MessageAttributeValue = (input, context) => {
|
|
4142
|
-
return {
|
|
4143
|
-
...(input.StringValues != null && { StringValues: se_MessageAttributeStringValues(input.StringValues, context) }),
|
|
4144
|
-
};
|
|
4145
|
-
};
|
|
4146
|
-
const se_Processor = (input, context) => {
|
|
4147
|
-
return {
|
|
4148
|
-
...(input.Configuration != null && { Configuration: se_ProcessorConfiguration(input.Configuration, context) }),
|
|
4149
|
-
...(input.ExecutionOrder != null && { ExecutionOrder: input.ExecutionOrder }),
|
|
4150
|
-
...(input.FallbackAction != null && { FallbackAction: input.FallbackAction }),
|
|
4151
|
-
...(input.Name != null && { Name: input.Name }),
|
|
4152
|
-
};
|
|
4153
|
-
};
|
|
4154
|
-
const se_ProcessorConfiguration = (input, context) => {
|
|
4155
|
-
return {
|
|
4156
|
-
...(input.Lambda != null && { Lambda: se_LambdaConfiguration(input.Lambda, context) }),
|
|
4157
|
-
};
|
|
4158
|
-
};
|
|
4159
|
-
const se_ProcessorList = (input, context) => {
|
|
4160
|
-
return input
|
|
4161
|
-
.filter((e) => e != null)
|
|
4162
|
-
.map((entry) => {
|
|
4163
|
-
return se_Processor(entry, context);
|
|
4164
|
-
});
|
|
4165
|
-
};
|
|
4166
|
-
const se_PushNotificationConfiguration = (input, context) => {
|
|
4167
|
-
return {
|
|
4168
|
-
...(input.Body != null && { Body: input.Body }),
|
|
4169
|
-
...(input.Title != null && { Title: input.Title }),
|
|
4170
|
-
...(input.Type != null && { Type: input.Type }),
|
|
4171
|
-
};
|
|
4172
|
-
};
|
|
4173
|
-
const se_PushNotificationPreferences = (input, context) => {
|
|
4174
|
-
return {
|
|
4175
|
-
...(input.AllowNotifications != null && { AllowNotifications: input.AllowNotifications }),
|
|
4176
|
-
...(input.FilterRule != null && { FilterRule: input.FilterRule }),
|
|
4177
|
-
};
|
|
4178
|
-
};
|
|
4179
|
-
const se_SearchField = (input, context) => {
|
|
4180
|
-
return {
|
|
4181
|
-
...(input.Key != null && { Key: input.Key }),
|
|
4182
|
-
...(input.Operator != null && { Operator: input.Operator }),
|
|
4183
|
-
...(input.Values != null && { Values: se_SearchFieldValues(input.Values, context) }),
|
|
4184
|
-
};
|
|
4185
|
-
};
|
|
4186
|
-
const se_SearchFields = (input, context) => {
|
|
4187
|
-
return input
|
|
4188
|
-
.filter((e) => e != null)
|
|
4189
|
-
.map((entry) => {
|
|
4190
|
-
return se_SearchField(entry, context);
|
|
4191
|
-
});
|
|
4192
|
-
};
|
|
4193
|
-
const se_SearchFieldValues = (input, context) => {
|
|
4194
|
-
return input
|
|
4195
|
-
.filter((e) => e != null)
|
|
4196
|
-
.map((entry) => {
|
|
4197
|
-
return entry;
|
|
4198
|
-
});
|
|
4199
|
-
};
|
|
4200
|
-
const se_StreamingConfiguration = (input, context) => {
|
|
4201
|
-
return {
|
|
4202
|
-
...(input.DataType != null && { DataType: input.DataType }),
|
|
4203
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4204
|
-
};
|
|
4205
|
-
};
|
|
4206
|
-
const se_StreamingConfigurationList = (input, context) => {
|
|
4207
|
-
return input
|
|
4208
|
-
.filter((e) => e != null)
|
|
4209
|
-
.map((entry) => {
|
|
4210
|
-
return se_StreamingConfiguration(entry, context);
|
|
4211
|
-
});
|
|
4212
|
-
};
|
|
4213
|
-
const se_Tag = (input, context) => {
|
|
4214
|
-
return {
|
|
4215
|
-
...(input.Key != null && { Key: input.Key }),
|
|
4216
|
-
...(input.Value != null && { Value: input.Value }),
|
|
4217
|
-
};
|
|
4218
|
-
};
|
|
4219
|
-
const se_TagKeyList = (input, context) => {
|
|
4220
|
-
return input
|
|
4221
|
-
.filter((e) => e != null)
|
|
4222
|
-
.map((entry) => {
|
|
4223
|
-
return entry;
|
|
4224
|
-
});
|
|
4225
|
-
};
|
|
4226
|
-
const se_TagList = (input, context) => {
|
|
4227
|
-
return input
|
|
4228
|
-
.filter((e) => e != null)
|
|
4229
|
-
.map((entry) => {
|
|
4230
|
-
return se_Tag(entry, context);
|
|
4231
|
-
});
|
|
4232
|
-
};
|
|
4233
3953
|
const de_AppInstanceUserMembershipSummary = (output, context) => {
|
|
4234
|
-
return {
|
|
4235
|
-
ReadMarkerTimestamp:
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4239
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4240
|
-
};
|
|
4241
|
-
};
|
|
4242
|
-
const de_BatchChannelMemberships = (output, context) => {
|
|
4243
|
-
return {
|
|
4244
|
-
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4245
|
-
InvitedBy: output.InvitedBy != null ? de_Identity(output.InvitedBy, context) : undefined,
|
|
4246
|
-
Members: output.Members != null ? de_Members(output.Members, context) : undefined,
|
|
4247
|
-
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4248
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4249
|
-
};
|
|
4250
|
-
};
|
|
4251
|
-
const de_BatchCreateChannelMembershipError = (output, context) => {
|
|
4252
|
-
return {
|
|
4253
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
4254
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
4255
|
-
MemberArn: (0, smithy_client_1.expectString)(output.MemberArn),
|
|
4256
|
-
};
|
|
4257
|
-
};
|
|
4258
|
-
const de_BatchCreateChannelMembershipErrors = (output, context) => {
|
|
4259
|
-
const retVal = (output || [])
|
|
4260
|
-
.filter((e) => e != null)
|
|
4261
|
-
.map((entry) => {
|
|
4262
|
-
if (entry === null) {
|
|
4263
|
-
return null;
|
|
4264
|
-
}
|
|
4265
|
-
return de_BatchCreateChannelMembershipError(entry, context);
|
|
3954
|
+
return (0, smithy_client_1.take)(output, {
|
|
3955
|
+
ReadMarkerTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3956
|
+
SubChannelId: smithy_client_1.expectString,
|
|
3957
|
+
Type: smithy_client_1.expectString,
|
|
4266
3958
|
});
|
|
4267
|
-
return retVal;
|
|
4268
3959
|
};
|
|
4269
3960
|
const de_Channel = (output, context) => {
|
|
4270
|
-
return {
|
|
4271
|
-
ChannelArn:
|
|
4272
|
-
ChannelFlowArn:
|
|
4273
|
-
CreatedBy:
|
|
4274
|
-
CreatedTimestamp:
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
: undefined,
|
|
4284
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4285
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4286
|
-
: undefined,
|
|
4287
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4288
|
-
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
4289
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4290
|
-
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4291
|
-
};
|
|
4292
|
-
};
|
|
4293
|
-
const de_ChannelAssociatedWithFlowSummary = (output, context) => {
|
|
4294
|
-
return {
|
|
4295
|
-
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
4296
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4297
|
-
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
4298
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4299
|
-
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4300
|
-
};
|
|
4301
|
-
};
|
|
4302
|
-
const de_ChannelAssociatedWithFlowSummaryList = (output, context) => {
|
|
4303
|
-
const retVal = (output || [])
|
|
4304
|
-
.filter((e) => e != null)
|
|
4305
|
-
.map((entry) => {
|
|
4306
|
-
if (entry === null) {
|
|
4307
|
-
return null;
|
|
4308
|
-
}
|
|
4309
|
-
return de_ChannelAssociatedWithFlowSummary(entry, context);
|
|
3961
|
+
return (0, smithy_client_1.take)(output, {
|
|
3962
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3963
|
+
ChannelFlowArn: smithy_client_1.expectString,
|
|
3964
|
+
CreatedBy: smithy_client_1._json,
|
|
3965
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3966
|
+
ElasticChannelConfiguration: smithy_client_1._json,
|
|
3967
|
+
ExpirationSettings: smithy_client_1._json,
|
|
3968
|
+
LastMessageTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3969
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3970
|
+
Metadata: smithy_client_1.expectString,
|
|
3971
|
+
Mode: smithy_client_1.expectString,
|
|
3972
|
+
Name: smithy_client_1.expectString,
|
|
3973
|
+
Privacy: smithy_client_1.expectString,
|
|
4310
3974
|
});
|
|
4311
|
-
return retVal;
|
|
4312
3975
|
};
|
|
4313
3976
|
const de_ChannelBan = (output, context) => {
|
|
4314
|
-
return {
|
|
4315
|
-
ChannelArn:
|
|
4316
|
-
CreatedBy:
|
|
4317
|
-
CreatedTimestamp:
|
|
4318
|
-
|
|
4319
|
-
: undefined,
|
|
4320
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4321
|
-
};
|
|
4322
|
-
};
|
|
4323
|
-
const de_ChannelBanSummary = (output, context) => {
|
|
4324
|
-
return {
|
|
4325
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4326
|
-
};
|
|
4327
|
-
};
|
|
4328
|
-
const de_ChannelBanSummaryList = (output, context) => {
|
|
4329
|
-
const retVal = (output || [])
|
|
4330
|
-
.filter((e) => e != null)
|
|
4331
|
-
.map((entry) => {
|
|
4332
|
-
if (entry === null) {
|
|
4333
|
-
return null;
|
|
4334
|
-
}
|
|
4335
|
-
return de_ChannelBanSummary(entry, context);
|
|
3977
|
+
return (0, smithy_client_1.take)(output, {
|
|
3978
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3979
|
+
CreatedBy: smithy_client_1._json,
|
|
3980
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3981
|
+
Member: smithy_client_1._json,
|
|
4336
3982
|
});
|
|
4337
|
-
return retVal;
|
|
4338
3983
|
};
|
|
4339
3984
|
const de_ChannelFlow = (output, context) => {
|
|
4340
|
-
return {
|
|
4341
|
-
ChannelFlowArn:
|
|
4342
|
-
CreatedTimestamp:
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4347
|
-
: undefined,
|
|
4348
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4349
|
-
Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
|
|
4350
|
-
};
|
|
4351
|
-
};
|
|
4352
|
-
const de_ChannelFlowSummary = (output, context) => {
|
|
4353
|
-
return {
|
|
4354
|
-
ChannelFlowArn: (0, smithy_client_1.expectString)(output.ChannelFlowArn),
|
|
4355
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4356
|
-
Processors: output.Processors != null ? de_ProcessorList(output.Processors, context) : undefined,
|
|
4357
|
-
};
|
|
4358
|
-
};
|
|
4359
|
-
const de_ChannelFlowSummaryList = (output, context) => {
|
|
4360
|
-
const retVal = (output || [])
|
|
4361
|
-
.filter((e) => e != null)
|
|
4362
|
-
.map((entry) => {
|
|
4363
|
-
if (entry === null) {
|
|
4364
|
-
return null;
|
|
4365
|
-
}
|
|
4366
|
-
return de_ChannelFlowSummary(entry, context);
|
|
3985
|
+
return (0, smithy_client_1.take)(output, {
|
|
3986
|
+
ChannelFlowArn: smithy_client_1.expectString,
|
|
3987
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3988
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3989
|
+
Name: smithy_client_1.expectString,
|
|
3990
|
+
Processors: smithy_client_1._json,
|
|
4367
3991
|
});
|
|
4368
|
-
return retVal;
|
|
4369
3992
|
};
|
|
4370
3993
|
const de_ChannelMembership = (output, context) => {
|
|
4371
|
-
return {
|
|
4372
|
-
ChannelArn:
|
|
4373
|
-
CreatedTimestamp:
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4381
|
-
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4382
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4383
|
-
};
|
|
3994
|
+
return (0, smithy_client_1.take)(output, {
|
|
3995
|
+
ChannelArn: smithy_client_1.expectString,
|
|
3996
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3997
|
+
InvitedBy: smithy_client_1._json,
|
|
3998
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3999
|
+
Member: smithy_client_1._json,
|
|
4000
|
+
SubChannelId: smithy_client_1.expectString,
|
|
4001
|
+
Type: smithy_client_1.expectString,
|
|
4002
|
+
});
|
|
4384
4003
|
};
|
|
4385
4004
|
const de_ChannelMembershipForAppInstanceUserSummary = (output, context) => {
|
|
4386
|
-
return {
|
|
4387
|
-
AppInstanceUserMembershipSummary:
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
ChannelSummary: output.ChannelSummary != null ? de_ChannelSummary(output.ChannelSummary, context) : undefined,
|
|
4391
|
-
};
|
|
4005
|
+
return (0, smithy_client_1.take)(output, {
|
|
4006
|
+
AppInstanceUserMembershipSummary: (_) => de_AppInstanceUserMembershipSummary(_, context),
|
|
4007
|
+
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
4008
|
+
});
|
|
4392
4009
|
};
|
|
4393
4010
|
const de_ChannelMembershipForAppInstanceUserSummaryList = (output, context) => {
|
|
4394
4011
|
const retVal = (output || [])
|
|
4395
4012
|
.filter((e) => e != null)
|
|
4396
4013
|
.map((entry) => {
|
|
4397
|
-
if (entry === null) {
|
|
4398
|
-
return null;
|
|
4399
|
-
}
|
|
4400
4014
|
return de_ChannelMembershipForAppInstanceUserSummary(entry, context);
|
|
4401
4015
|
});
|
|
4402
4016
|
return retVal;
|
|
4403
4017
|
};
|
|
4404
|
-
const de_ChannelMembershipPreferences = (output, context) => {
|
|
4405
|
-
return {
|
|
4406
|
-
PushNotifications: output.PushNotifications != null ? de_PushNotificationPreferences(output.PushNotifications, context) : undefined,
|
|
4407
|
-
};
|
|
4408
|
-
};
|
|
4409
|
-
const de_ChannelMembershipSummary = (output, context) => {
|
|
4410
|
-
return {
|
|
4411
|
-
Member: output.Member != null ? de_Identity(output.Member, context) : undefined,
|
|
4412
|
-
};
|
|
4413
|
-
};
|
|
4414
|
-
const de_ChannelMembershipSummaryList = (output, context) => {
|
|
4415
|
-
const retVal = (output || [])
|
|
4416
|
-
.filter((e) => e != null)
|
|
4417
|
-
.map((entry) => {
|
|
4418
|
-
if (entry === null) {
|
|
4419
|
-
return null;
|
|
4420
|
-
}
|
|
4421
|
-
return de_ChannelMembershipSummary(entry, context);
|
|
4422
|
-
});
|
|
4423
|
-
return retVal;
|
|
4424
|
-
};
|
|
4425
4018
|
const de_ChannelMessage = (output, context) => {
|
|
4426
|
-
return {
|
|
4427
|
-
ChannelArn:
|
|
4428
|
-
Content:
|
|
4429
|
-
ContentType:
|
|
4430
|
-
CreatedTimestamp:
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4444
|
-
Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
|
|
4445
|
-
Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4446
|
-
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4447
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4448
|
-
};
|
|
4449
|
-
};
|
|
4450
|
-
const de_ChannelMessageStatusStructure = (output, context) => {
|
|
4451
|
-
return {
|
|
4452
|
-
Detail: (0, smithy_client_1.expectString)(output.Detail),
|
|
4453
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4454
|
-
};
|
|
4019
|
+
return (0, smithy_client_1.take)(output, {
|
|
4020
|
+
ChannelArn: smithy_client_1.expectString,
|
|
4021
|
+
Content: smithy_client_1.expectString,
|
|
4022
|
+
ContentType: smithy_client_1.expectString,
|
|
4023
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4024
|
+
LastEditedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4025
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4026
|
+
MessageAttributes: smithy_client_1._json,
|
|
4027
|
+
MessageId: smithy_client_1.expectString,
|
|
4028
|
+
Metadata: smithy_client_1.expectString,
|
|
4029
|
+
Persistence: smithy_client_1.expectString,
|
|
4030
|
+
Redacted: smithy_client_1.expectBoolean,
|
|
4031
|
+
Sender: smithy_client_1._json,
|
|
4032
|
+
Status: smithy_client_1._json,
|
|
4033
|
+
SubChannelId: smithy_client_1.expectString,
|
|
4034
|
+
Type: smithy_client_1.expectString,
|
|
4035
|
+
});
|
|
4455
4036
|
};
|
|
4456
4037
|
const de_ChannelMessageSummary = (output, context) => {
|
|
4457
|
-
return {
|
|
4458
|
-
Content:
|
|
4459
|
-
ContentType:
|
|
4460
|
-
CreatedTimestamp:
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
4472
|
-
Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
|
|
4473
|
-
Sender: output.Sender != null ? de_Identity(output.Sender, context) : undefined,
|
|
4474
|
-
Status: output.Status != null ? de_ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
4475
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4476
|
-
};
|
|
4038
|
+
return (0, smithy_client_1.take)(output, {
|
|
4039
|
+
Content: smithy_client_1.expectString,
|
|
4040
|
+
ContentType: smithy_client_1.expectString,
|
|
4041
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4042
|
+
LastEditedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4043
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4044
|
+
MessageAttributes: smithy_client_1._json,
|
|
4045
|
+
MessageId: smithy_client_1.expectString,
|
|
4046
|
+
Metadata: smithy_client_1.expectString,
|
|
4047
|
+
Redacted: smithy_client_1.expectBoolean,
|
|
4048
|
+
Sender: smithy_client_1._json,
|
|
4049
|
+
Status: smithy_client_1._json,
|
|
4050
|
+
Type: smithy_client_1.expectString,
|
|
4051
|
+
});
|
|
4477
4052
|
};
|
|
4478
4053
|
const de_ChannelMessageSummaryList = (output, context) => {
|
|
4479
4054
|
const retVal = (output || [])
|
|
4480
4055
|
.filter((e) => e != null)
|
|
4481
4056
|
.map((entry) => {
|
|
4482
|
-
if (entry === null) {
|
|
4483
|
-
return null;
|
|
4484
|
-
}
|
|
4485
4057
|
return de_ChannelMessageSummary(entry, context);
|
|
4486
4058
|
});
|
|
4487
4059
|
return retVal;
|
|
4488
4060
|
};
|
|
4489
4061
|
const de_ChannelModeratedByAppInstanceUserSummary = (output, context) => {
|
|
4490
|
-
return {
|
|
4491
|
-
ChannelSummary:
|
|
4492
|
-
};
|
|
4062
|
+
return (0, smithy_client_1.take)(output, {
|
|
4063
|
+
ChannelSummary: (_) => de_ChannelSummary(_, context),
|
|
4064
|
+
});
|
|
4493
4065
|
};
|
|
4494
4066
|
const de_ChannelModeratedByAppInstanceUserSummaryList = (output, context) => {
|
|
4495
4067
|
const retVal = (output || [])
|
|
4496
4068
|
.filter((e) => e != null)
|
|
4497
4069
|
.map((entry) => {
|
|
4498
|
-
if (entry === null) {
|
|
4499
|
-
return null;
|
|
4500
|
-
}
|
|
4501
4070
|
return de_ChannelModeratedByAppInstanceUserSummary(entry, context);
|
|
4502
4071
|
});
|
|
4503
4072
|
return retVal;
|
|
4504
4073
|
};
|
|
4505
4074
|
const de_ChannelModerator = (output, context) => {
|
|
4506
|
-
return {
|
|
4507
|
-
ChannelArn:
|
|
4508
|
-
CreatedBy:
|
|
4509
|
-
CreatedTimestamp:
|
|
4510
|
-
|
|
4511
|
-
: undefined,
|
|
4512
|
-
Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
|
|
4513
|
-
};
|
|
4514
|
-
};
|
|
4515
|
-
const de_ChannelModeratorSummary = (output, context) => {
|
|
4516
|
-
return {
|
|
4517
|
-
Moderator: output.Moderator != null ? de_Identity(output.Moderator, context) : undefined,
|
|
4518
|
-
};
|
|
4519
|
-
};
|
|
4520
|
-
const de_ChannelModeratorSummaryList = (output, context) => {
|
|
4521
|
-
const retVal = (output || [])
|
|
4522
|
-
.filter((e) => e != null)
|
|
4523
|
-
.map((entry) => {
|
|
4524
|
-
if (entry === null) {
|
|
4525
|
-
return null;
|
|
4526
|
-
}
|
|
4527
|
-
return de_ChannelModeratorSummary(entry, context);
|
|
4075
|
+
return (0, smithy_client_1.take)(output, {
|
|
4076
|
+
ChannelArn: smithy_client_1.expectString,
|
|
4077
|
+
CreatedBy: smithy_client_1._json,
|
|
4078
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4079
|
+
Moderator: smithy_client_1._json,
|
|
4528
4080
|
});
|
|
4529
|
-
return retVal;
|
|
4530
4081
|
};
|
|
4531
4082
|
const de_ChannelSummary = (output, context) => {
|
|
4532
|
-
return {
|
|
4533
|
-
ChannelArn:
|
|
4534
|
-
LastMessageTimestamp:
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
Privacy: (0, smithy_client_1.expectString)(output.Privacy),
|
|
4541
|
-
};
|
|
4083
|
+
return (0, smithy_client_1.take)(output, {
|
|
4084
|
+
ChannelArn: smithy_client_1.expectString,
|
|
4085
|
+
LastMessageTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4086
|
+
Metadata: smithy_client_1.expectString,
|
|
4087
|
+
Mode: smithy_client_1.expectString,
|
|
4088
|
+
Name: smithy_client_1.expectString,
|
|
4089
|
+
Privacy: smithy_client_1.expectString,
|
|
4090
|
+
});
|
|
4542
4091
|
};
|
|
4543
4092
|
const de_ChannelSummaryList = (output, context) => {
|
|
4544
4093
|
const retVal = (output || [])
|
|
4545
4094
|
.filter((e) => e != null)
|
|
4546
4095
|
.map((entry) => {
|
|
4547
|
-
if (entry === null) {
|
|
4548
|
-
return null;
|
|
4549
|
-
}
|
|
4550
4096
|
return de_ChannelSummary(entry, context);
|
|
4551
4097
|
});
|
|
4552
4098
|
return retVal;
|
|
4553
4099
|
};
|
|
4554
|
-
const de_ElasticChannelConfiguration = (output, context) => {
|
|
4555
|
-
return {
|
|
4556
|
-
MaximumSubChannels: (0, smithy_client_1.expectInt32)(output.MaximumSubChannels),
|
|
4557
|
-
MinimumMembershipPercentage: (0, smithy_client_1.expectInt32)(output.MinimumMembershipPercentage),
|
|
4558
|
-
TargetMembershipsPerSubChannel: (0, smithy_client_1.expectInt32)(output.TargetMembershipsPerSubChannel),
|
|
4559
|
-
};
|
|
4560
|
-
};
|
|
4561
|
-
const de_ExpirationSettings = (output, context) => {
|
|
4562
|
-
return {
|
|
4563
|
-
ExpirationCriterion: (0, smithy_client_1.expectString)(output.ExpirationCriterion),
|
|
4564
|
-
ExpirationDays: (0, smithy_client_1.expectInt32)(output.ExpirationDays),
|
|
4565
|
-
};
|
|
4566
|
-
};
|
|
4567
|
-
const de_Identity = (output, context) => {
|
|
4568
|
-
return {
|
|
4569
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4570
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4571
|
-
};
|
|
4572
|
-
};
|
|
4573
|
-
const de_LambdaConfiguration = (output, context) => {
|
|
4574
|
-
return {
|
|
4575
|
-
InvocationType: (0, smithy_client_1.expectString)(output.InvocationType),
|
|
4576
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4577
|
-
};
|
|
4578
|
-
};
|
|
4579
|
-
const de_Members = (output, context) => {
|
|
4580
|
-
const retVal = (output || [])
|
|
4581
|
-
.filter((e) => e != null)
|
|
4582
|
-
.map((entry) => {
|
|
4583
|
-
if (entry === null) {
|
|
4584
|
-
return null;
|
|
4585
|
-
}
|
|
4586
|
-
return de_Identity(entry, context);
|
|
4587
|
-
});
|
|
4588
|
-
return retVal;
|
|
4589
|
-
};
|
|
4590
|
-
const de_MessageAttributeMap = (output, context) => {
|
|
4591
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4592
|
-
if (value === null) {
|
|
4593
|
-
return acc;
|
|
4594
|
-
}
|
|
4595
|
-
acc[key] = de_MessageAttributeValue(value, context);
|
|
4596
|
-
return acc;
|
|
4597
|
-
}, {});
|
|
4598
|
-
};
|
|
4599
|
-
const de_MessageAttributeStringValues = (output, context) => {
|
|
4600
|
-
const retVal = (output || [])
|
|
4601
|
-
.filter((e) => e != null)
|
|
4602
|
-
.map((entry) => {
|
|
4603
|
-
if (entry === null) {
|
|
4604
|
-
return null;
|
|
4605
|
-
}
|
|
4606
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4607
|
-
});
|
|
4608
|
-
return retVal;
|
|
4609
|
-
};
|
|
4610
|
-
const de_MessageAttributeValue = (output, context) => {
|
|
4611
|
-
return {
|
|
4612
|
-
StringValues: output.StringValues != null ? de_MessageAttributeStringValues(output.StringValues, context) : undefined,
|
|
4613
|
-
};
|
|
4614
|
-
};
|
|
4615
|
-
const de_MessagingSessionEndpoint = (output, context) => {
|
|
4616
|
-
return {
|
|
4617
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
4618
|
-
};
|
|
4619
|
-
};
|
|
4620
|
-
const de_Processor = (output, context) => {
|
|
4621
|
-
return {
|
|
4622
|
-
Configuration: output.Configuration != null ? de_ProcessorConfiguration(output.Configuration, context) : undefined,
|
|
4623
|
-
ExecutionOrder: (0, smithy_client_1.expectInt32)(output.ExecutionOrder),
|
|
4624
|
-
FallbackAction: (0, smithy_client_1.expectString)(output.FallbackAction),
|
|
4625
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4626
|
-
};
|
|
4627
|
-
};
|
|
4628
|
-
const de_ProcessorConfiguration = (output, context) => {
|
|
4629
|
-
return {
|
|
4630
|
-
Lambda: output.Lambda != null ? de_LambdaConfiguration(output.Lambda, context) : undefined,
|
|
4631
|
-
};
|
|
4632
|
-
};
|
|
4633
|
-
const de_ProcessorList = (output, context) => {
|
|
4634
|
-
const retVal = (output || [])
|
|
4635
|
-
.filter((e) => e != null)
|
|
4636
|
-
.map((entry) => {
|
|
4637
|
-
if (entry === null) {
|
|
4638
|
-
return null;
|
|
4639
|
-
}
|
|
4640
|
-
return de_Processor(entry, context);
|
|
4641
|
-
});
|
|
4642
|
-
return retVal;
|
|
4643
|
-
};
|
|
4644
|
-
const de_PushNotificationPreferences = (output, context) => {
|
|
4645
|
-
return {
|
|
4646
|
-
AllowNotifications: (0, smithy_client_1.expectString)(output.AllowNotifications),
|
|
4647
|
-
FilterRule: (0, smithy_client_1.expectString)(output.FilterRule),
|
|
4648
|
-
};
|
|
4649
|
-
};
|
|
4650
|
-
const de_StreamingConfiguration = (output, context) => {
|
|
4651
|
-
return {
|
|
4652
|
-
DataType: (0, smithy_client_1.expectString)(output.DataType),
|
|
4653
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
4654
|
-
};
|
|
4655
|
-
};
|
|
4656
|
-
const de_StreamingConfigurationList = (output, context) => {
|
|
4657
|
-
const retVal = (output || [])
|
|
4658
|
-
.filter((e) => e != null)
|
|
4659
|
-
.map((entry) => {
|
|
4660
|
-
if (entry === null) {
|
|
4661
|
-
return null;
|
|
4662
|
-
}
|
|
4663
|
-
return de_StreamingConfiguration(entry, context);
|
|
4664
|
-
});
|
|
4665
|
-
return retVal;
|
|
4666
|
-
};
|
|
4667
|
-
const de_SubChannelSummary = (output, context) => {
|
|
4668
|
-
return {
|
|
4669
|
-
MembershipCount: (0, smithy_client_1.expectInt32)(output.MembershipCount),
|
|
4670
|
-
SubChannelId: (0, smithy_client_1.expectString)(output.SubChannelId),
|
|
4671
|
-
};
|
|
4672
|
-
};
|
|
4673
|
-
const de_SubChannelSummaryList = (output, context) => {
|
|
4674
|
-
const retVal = (output || [])
|
|
4675
|
-
.filter((e) => e != null)
|
|
4676
|
-
.map((entry) => {
|
|
4677
|
-
if (entry === null) {
|
|
4678
|
-
return null;
|
|
4679
|
-
}
|
|
4680
|
-
return de_SubChannelSummary(entry, context);
|
|
4681
|
-
});
|
|
4682
|
-
return retVal;
|
|
4683
|
-
};
|
|
4684
|
-
const de_Tag = (output, context) => {
|
|
4685
|
-
return {
|
|
4686
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
4687
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4688
|
-
};
|
|
4689
|
-
};
|
|
4690
|
-
const de_TagList = (output, context) => {
|
|
4691
|
-
const retVal = (output || [])
|
|
4692
|
-
.filter((e) => e != null)
|
|
4693
|
-
.map((entry) => {
|
|
4694
|
-
if (entry === null) {
|
|
4695
|
-
return null;
|
|
4696
|
-
}
|
|
4697
|
-
return de_Tag(entry, context);
|
|
4698
|
-
});
|
|
4699
|
-
return retVal;
|
|
4700
|
-
};
|
|
4701
4100
|
const deserializeMetadata = (output) => ({
|
|
4702
4101
|
httpStatusCode: output.statusCode,
|
|
4703
4102
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|