@aws-sdk/client-chime-sdk-meetings 3.141.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +192 -381
- package/dist-es/protocols/Aws_restJson1.js +243 -390
- package/package.json +6 -6
|
@@ -12,19 +12,10 @@ const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context)
|
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
14
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
24
|
-
}
|
|
25
|
-
const query = {
|
|
26
|
-
operation: "batch-create",
|
|
27
|
-
};
|
|
15
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
16
|
+
const query = map({
|
|
17
|
+
operation: [, "batch-create"],
|
|
18
|
+
});
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify({
|
|
30
21
|
...(input.Attendees != null && {
|
|
@@ -50,19 +41,10 @@ const serializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async
|
|
|
50
41
|
};
|
|
51
42
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
52
43
|
"/meetings/{MeetingId}/attendees/capabilities";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
62
|
-
}
|
|
63
|
-
const query = {
|
|
64
|
-
operation: "batch-update-except",
|
|
65
|
-
};
|
|
44
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
45
|
+
const query = map({
|
|
46
|
+
operation: [, "batch-update-except"],
|
|
47
|
+
});
|
|
66
48
|
let body;
|
|
67
49
|
body = JSON.stringify({
|
|
68
50
|
...(input.Capabilities != null && {
|
|
@@ -90,16 +72,7 @@ const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
|
|
|
90
72
|
"content-type": "application/json",
|
|
91
73
|
};
|
|
92
74
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
93
|
-
|
|
94
|
-
const labelValue = input.MeetingId;
|
|
95
|
-
if (labelValue.length <= 0) {
|
|
96
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
97
|
-
}
|
|
98
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
102
|
-
}
|
|
75
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
103
76
|
let body;
|
|
104
77
|
body = JSON.stringify({
|
|
105
78
|
...(input.Capabilities != null && {
|
|
@@ -158,9 +131,9 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
|
|
|
158
131
|
"content-type": "application/json",
|
|
159
132
|
};
|
|
160
133
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings";
|
|
161
|
-
const query = {
|
|
162
|
-
operation: "create-attendees",
|
|
163
|
-
};
|
|
134
|
+
const query = map({
|
|
135
|
+
operation: [, "create-attendees"],
|
|
136
|
+
});
|
|
164
137
|
let body;
|
|
165
138
|
body = JSON.stringify({
|
|
166
139
|
...(input.Attendees != null && {
|
|
@@ -196,26 +169,8 @@ const serializeAws_restJson1DeleteAttendeeCommand = async (input, context) => {
|
|
|
196
169
|
const headers = {};
|
|
197
170
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
198
171
|
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (labelValue.length <= 0) {
|
|
202
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
203
|
-
}
|
|
204
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
208
|
-
}
|
|
209
|
-
if (input.AttendeeId !== undefined) {
|
|
210
|
-
const labelValue = input.AttendeeId;
|
|
211
|
-
if (labelValue.length <= 0) {
|
|
212
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
213
|
-
}
|
|
214
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
218
|
-
}
|
|
172
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
173
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
219
174
|
let body;
|
|
220
175
|
return new protocol_http_1.HttpRequest({
|
|
221
176
|
protocol,
|
|
@@ -232,16 +187,7 @@ const serializeAws_restJson1DeleteMeetingCommand = async (input, context) => {
|
|
|
232
187
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
233
188
|
const headers = {};
|
|
234
189
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}";
|
|
235
|
-
|
|
236
|
-
const labelValue = input.MeetingId;
|
|
237
|
-
if (labelValue.length <= 0) {
|
|
238
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
239
|
-
}
|
|
240
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
244
|
-
}
|
|
190
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
245
191
|
let body;
|
|
246
192
|
return new protocol_http_1.HttpRequest({
|
|
247
193
|
protocol,
|
|
@@ -259,26 +205,8 @@ const serializeAws_restJson1GetAttendeeCommand = async (input, context) => {
|
|
|
259
205
|
const headers = {};
|
|
260
206
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
261
207
|
"/meetings/{MeetingId}/attendees/{AttendeeId}";
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if (labelValue.length <= 0) {
|
|
265
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
266
|
-
}
|
|
267
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
271
|
-
}
|
|
272
|
-
if (input.AttendeeId !== undefined) {
|
|
273
|
-
const labelValue = input.AttendeeId;
|
|
274
|
-
if (labelValue.length <= 0) {
|
|
275
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
276
|
-
}
|
|
277
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
281
|
-
}
|
|
208
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
209
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
282
210
|
let body;
|
|
283
211
|
return new protocol_http_1.HttpRequest({
|
|
284
212
|
protocol,
|
|
@@ -295,16 +223,7 @@ const serializeAws_restJson1GetMeetingCommand = async (input, context) => {
|
|
|
295
223
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
296
224
|
const headers = {};
|
|
297
225
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}";
|
|
298
|
-
|
|
299
|
-
const labelValue = input.MeetingId;
|
|
300
|
-
if (labelValue.length <= 0) {
|
|
301
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
302
|
-
}
|
|
303
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
307
|
-
}
|
|
226
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
308
227
|
let body;
|
|
309
228
|
return new protocol_http_1.HttpRequest({
|
|
310
229
|
protocol,
|
|
@@ -321,20 +240,11 @@ const serializeAws_restJson1ListAttendeesCommand = async (input, context) => {
|
|
|
321
240
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
322
241
|
const headers = {};
|
|
323
242
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/attendees";
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
333
|
-
}
|
|
334
|
-
const query = {
|
|
335
|
-
...(input.NextToken !== undefined && { "next-token": input.NextToken }),
|
|
336
|
-
...(input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }),
|
|
337
|
-
};
|
|
243
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
244
|
+
const query = map({
|
|
245
|
+
"next-token": [, input.NextToken],
|
|
246
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
247
|
+
});
|
|
338
248
|
let body;
|
|
339
249
|
return new protocol_http_1.HttpRequest({
|
|
340
250
|
protocol,
|
|
@@ -354,19 +264,10 @@ const serializeAws_restJson1StartMeetingTranscriptionCommand = async (input, con
|
|
|
354
264
|
"content-type": "application/json",
|
|
355
265
|
};
|
|
356
266
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription";
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
366
|
-
}
|
|
367
|
-
const query = {
|
|
368
|
-
operation: "start",
|
|
369
|
-
};
|
|
267
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
268
|
+
const query = map({
|
|
269
|
+
operation: [, "start"],
|
|
270
|
+
});
|
|
370
271
|
let body;
|
|
371
272
|
body = JSON.stringify({
|
|
372
273
|
...(input.TranscriptionConfiguration != null && {
|
|
@@ -389,19 +290,10 @@ const serializeAws_restJson1StopMeetingTranscriptionCommand = async (input, cont
|
|
|
389
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
291
|
const headers = {};
|
|
391
292
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings/{MeetingId}/transcription";
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
401
|
-
}
|
|
402
|
-
const query = {
|
|
403
|
-
operation: "stop",
|
|
404
|
-
};
|
|
293
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
294
|
+
const query = map({
|
|
295
|
+
operation: [, "stop"],
|
|
296
|
+
});
|
|
405
297
|
let body;
|
|
406
298
|
return new protocol_http_1.HttpRequest({
|
|
407
299
|
protocol,
|
|
@@ -422,26 +314,8 @@ const serializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (input, co
|
|
|
422
314
|
};
|
|
423
315
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
424
316
|
"/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities";
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if (labelValue.length <= 0) {
|
|
428
|
-
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
429
|
-
}
|
|
430
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
434
|
-
}
|
|
435
|
-
if (input.AttendeeId !== undefined) {
|
|
436
|
-
const labelValue = input.AttendeeId;
|
|
437
|
-
if (labelValue.length <= 0) {
|
|
438
|
-
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
439
|
-
}
|
|
440
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
441
|
-
}
|
|
442
|
-
else {
|
|
443
|
-
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
444
|
-
}
|
|
317
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MeetingId", () => input.MeetingId, "{MeetingId}", false);
|
|
318
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttendeeId", () => input.AttendeeId, "{AttendeeId}", false);
|
|
445
319
|
let body;
|
|
446
320
|
body = JSON.stringify({
|
|
447
321
|
...(input.Capabilities != null && {
|
|
@@ -463,19 +337,17 @@ const deserializeAws_restJson1BatchCreateAttendeeCommand = async (output, contex
|
|
|
463
337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
464
338
|
return deserializeAws_restJson1BatchCreateAttendeeCommandError(output, context);
|
|
465
339
|
}
|
|
466
|
-
const contents = {
|
|
340
|
+
const contents = map({
|
|
467
341
|
$metadata: deserializeMetadata(output),
|
|
468
|
-
|
|
469
|
-
Errors: undefined,
|
|
470
|
-
};
|
|
342
|
+
});
|
|
471
343
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
472
|
-
if (data.Attendees
|
|
344
|
+
if (data.Attendees != null) {
|
|
473
345
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
474
346
|
}
|
|
475
|
-
if (data.Errors
|
|
347
|
+
if (data.Errors != null) {
|
|
476
348
|
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
477
349
|
}
|
|
478
|
-
return
|
|
350
|
+
return contents;
|
|
479
351
|
};
|
|
480
352
|
exports.deserializeAws_restJson1BatchCreateAttendeeCommand = deserializeAws_restJson1BatchCreateAttendeeCommand;
|
|
481
353
|
const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, context) => {
|
|
@@ -483,7 +355,6 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
483
355
|
...output,
|
|
484
356
|
body: await parseBody(output.body, context),
|
|
485
357
|
};
|
|
486
|
-
let response;
|
|
487
358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
359
|
switch (errorCode) {
|
|
489
360
|
case "BadRequestException":
|
|
@@ -515,25 +386,23 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
515
386
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
516
387
|
default:
|
|
517
388
|
const parsedBody = parsedOutput.body;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
$metadata,
|
|
389
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
390
|
+
output,
|
|
391
|
+
parsedBody,
|
|
392
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
393
|
+
errorCode,
|
|
524
394
|
});
|
|
525
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
526
395
|
}
|
|
527
396
|
};
|
|
528
397
|
const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = async (output, context) => {
|
|
529
398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
399
|
return deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError(output, context);
|
|
531
400
|
}
|
|
532
|
-
const contents = {
|
|
401
|
+
const contents = map({
|
|
533
402
|
$metadata: deserializeMetadata(output),
|
|
534
|
-
};
|
|
403
|
+
});
|
|
535
404
|
await collectBody(output.body, context);
|
|
536
|
-
return
|
|
405
|
+
return contents;
|
|
537
406
|
};
|
|
538
407
|
exports.deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand = deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommand;
|
|
539
408
|
const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError = async (output, context) => {
|
|
@@ -541,7 +410,6 @@ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError
|
|
|
541
410
|
...output,
|
|
542
411
|
body: await parseBody(output.body, context),
|
|
543
412
|
};
|
|
544
|
-
let response;
|
|
545
413
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
546
414
|
switch (errorCode) {
|
|
547
415
|
case "BadRequestException":
|
|
@@ -564,29 +432,26 @@ const deserializeAws_restJson1BatchUpdateAttendeeCapabilitiesExceptCommandError
|
|
|
564
432
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
565
433
|
default:
|
|
566
434
|
const parsedBody = parsedOutput.body;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
$metadata,
|
|
435
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
436
|
+
output,
|
|
437
|
+
parsedBody,
|
|
438
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
439
|
+
errorCode,
|
|
573
440
|
});
|
|
574
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
575
441
|
}
|
|
576
442
|
};
|
|
577
443
|
const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) => {
|
|
578
444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
445
|
return deserializeAws_restJson1CreateAttendeeCommandError(output, context);
|
|
580
446
|
}
|
|
581
|
-
const contents = {
|
|
447
|
+
const contents = map({
|
|
582
448
|
$metadata: deserializeMetadata(output),
|
|
583
|
-
|
|
584
|
-
};
|
|
449
|
+
});
|
|
585
450
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
586
|
-
if (data.Attendee
|
|
451
|
+
if (data.Attendee != null) {
|
|
587
452
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
588
453
|
}
|
|
589
|
-
return
|
|
454
|
+
return contents;
|
|
590
455
|
};
|
|
591
456
|
exports.deserializeAws_restJson1CreateAttendeeCommand = deserializeAws_restJson1CreateAttendeeCommand;
|
|
592
457
|
const deserializeAws_restJson1CreateAttendeeCommandError = async (output, context) => {
|
|
@@ -594,7 +459,6 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
594
459
|
...output,
|
|
595
460
|
body: await parseBody(output.body, context),
|
|
596
461
|
};
|
|
597
|
-
let response;
|
|
598
462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
463
|
switch (errorCode) {
|
|
600
464
|
case "BadRequestException":
|
|
@@ -626,29 +490,26 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
626
490
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
627
491
|
default:
|
|
628
492
|
const parsedBody = parsedOutput.body;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
$metadata,
|
|
493
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
494
|
+
output,
|
|
495
|
+
parsedBody,
|
|
496
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
497
|
+
errorCode,
|
|
635
498
|
});
|
|
636
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
637
499
|
}
|
|
638
500
|
};
|
|
639
501
|
const deserializeAws_restJson1CreateMeetingCommand = async (output, context) => {
|
|
640
502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
503
|
return deserializeAws_restJson1CreateMeetingCommandError(output, context);
|
|
642
504
|
}
|
|
643
|
-
const contents = {
|
|
505
|
+
const contents = map({
|
|
644
506
|
$metadata: deserializeMetadata(output),
|
|
645
|
-
|
|
646
|
-
};
|
|
507
|
+
});
|
|
647
508
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
648
|
-
if (data.Meeting
|
|
509
|
+
if (data.Meeting != null) {
|
|
649
510
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
650
511
|
}
|
|
651
|
-
return
|
|
512
|
+
return contents;
|
|
652
513
|
};
|
|
653
514
|
exports.deserializeAws_restJson1CreateMeetingCommand = deserializeAws_restJson1CreateMeetingCommand;
|
|
654
515
|
const deserializeAws_restJson1CreateMeetingCommandError = async (output, context) => {
|
|
@@ -656,7 +517,6 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
656
517
|
...output,
|
|
657
518
|
body: await parseBody(output.body, context),
|
|
658
519
|
};
|
|
659
|
-
let response;
|
|
660
520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
521
|
switch (errorCode) {
|
|
662
522
|
case "BadRequestException":
|
|
@@ -682,37 +542,32 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
682
542
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
683
543
|
default:
|
|
684
544
|
const parsedBody = parsedOutput.body;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
$metadata,
|
|
545
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
546
|
+
output,
|
|
547
|
+
parsedBody,
|
|
548
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
549
|
+
errorCode,
|
|
691
550
|
});
|
|
692
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
693
551
|
}
|
|
694
552
|
};
|
|
695
553
|
const deserializeAws_restJson1CreateMeetingWithAttendeesCommand = async (output, context) => {
|
|
696
554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
555
|
return deserializeAws_restJson1CreateMeetingWithAttendeesCommandError(output, context);
|
|
698
556
|
}
|
|
699
|
-
const contents = {
|
|
557
|
+
const contents = map({
|
|
700
558
|
$metadata: deserializeMetadata(output),
|
|
701
|
-
|
|
702
|
-
Errors: undefined,
|
|
703
|
-
Meeting: undefined,
|
|
704
|
-
};
|
|
559
|
+
});
|
|
705
560
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
706
|
-
if (data.Attendees
|
|
561
|
+
if (data.Attendees != null) {
|
|
707
562
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
708
563
|
}
|
|
709
|
-
if (data.Errors
|
|
564
|
+
if (data.Errors != null) {
|
|
710
565
|
contents.Errors = deserializeAws_restJson1BatchCreateAttendeeErrorList(data.Errors, context);
|
|
711
566
|
}
|
|
712
|
-
if (data.Meeting
|
|
567
|
+
if (data.Meeting != null) {
|
|
713
568
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
714
569
|
}
|
|
715
|
-
return
|
|
570
|
+
return contents;
|
|
716
571
|
};
|
|
717
572
|
exports.deserializeAws_restJson1CreateMeetingWithAttendeesCommand = deserializeAws_restJson1CreateMeetingWithAttendeesCommand;
|
|
718
573
|
const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (output, context) => {
|
|
@@ -720,7 +575,6 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
720
575
|
...output,
|
|
721
576
|
body: await parseBody(output.body, context),
|
|
722
577
|
};
|
|
723
|
-
let response;
|
|
724
578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
579
|
switch (errorCode) {
|
|
726
580
|
case "BadRequestException":
|
|
@@ -746,25 +600,23 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
746
600
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
747
601
|
default:
|
|
748
602
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
$metadata,
|
|
603
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
604
|
+
output,
|
|
605
|
+
parsedBody,
|
|
606
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
607
|
+
errorCode,
|
|
755
608
|
});
|
|
756
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
757
609
|
}
|
|
758
610
|
};
|
|
759
611
|
const deserializeAws_restJson1DeleteAttendeeCommand = async (output, context) => {
|
|
760
612
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
761
613
|
return deserializeAws_restJson1DeleteAttendeeCommandError(output, context);
|
|
762
614
|
}
|
|
763
|
-
const contents = {
|
|
615
|
+
const contents = map({
|
|
764
616
|
$metadata: deserializeMetadata(output),
|
|
765
|
-
};
|
|
617
|
+
});
|
|
766
618
|
await collectBody(output.body, context);
|
|
767
|
-
return
|
|
619
|
+
return contents;
|
|
768
620
|
};
|
|
769
621
|
exports.deserializeAws_restJson1DeleteAttendeeCommand = deserializeAws_restJson1DeleteAttendeeCommand;
|
|
770
622
|
const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, context) => {
|
|
@@ -772,7 +624,6 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
772
624
|
...output,
|
|
773
625
|
body: await parseBody(output.body, context),
|
|
774
626
|
};
|
|
775
|
-
let response;
|
|
776
627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
628
|
switch (errorCode) {
|
|
778
629
|
case "BadRequestException":
|
|
@@ -798,25 +649,23 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
798
649
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
799
650
|
default:
|
|
800
651
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
$metadata,
|
|
652
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
653
|
+
output,
|
|
654
|
+
parsedBody,
|
|
655
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
656
|
+
errorCode,
|
|
807
657
|
});
|
|
808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
809
658
|
}
|
|
810
659
|
};
|
|
811
660
|
const deserializeAws_restJson1DeleteMeetingCommand = async (output, context) => {
|
|
812
661
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
813
662
|
return deserializeAws_restJson1DeleteMeetingCommandError(output, context);
|
|
814
663
|
}
|
|
815
|
-
const contents = {
|
|
664
|
+
const contents = map({
|
|
816
665
|
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
666
|
+
});
|
|
818
667
|
await collectBody(output.body, context);
|
|
819
|
-
return
|
|
668
|
+
return contents;
|
|
820
669
|
};
|
|
821
670
|
exports.deserializeAws_restJson1DeleteMeetingCommand = deserializeAws_restJson1DeleteMeetingCommand;
|
|
822
671
|
const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context) => {
|
|
@@ -824,7 +673,6 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
824
673
|
...output,
|
|
825
674
|
body: await parseBody(output.body, context),
|
|
826
675
|
};
|
|
827
|
-
let response;
|
|
828
676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
677
|
switch (errorCode) {
|
|
830
678
|
case "BadRequestException":
|
|
@@ -850,29 +698,26 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
850
698
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
851
699
|
default:
|
|
852
700
|
const parsedBody = parsedOutput.body;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
$metadata,
|
|
701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
702
|
+
output,
|
|
703
|
+
parsedBody,
|
|
704
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
705
|
+
errorCode,
|
|
859
706
|
});
|
|
860
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
861
707
|
}
|
|
862
708
|
};
|
|
863
709
|
const deserializeAws_restJson1GetAttendeeCommand = async (output, context) => {
|
|
864
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
711
|
return deserializeAws_restJson1GetAttendeeCommandError(output, context);
|
|
866
712
|
}
|
|
867
|
-
const contents = {
|
|
713
|
+
const contents = map({
|
|
868
714
|
$metadata: deserializeMetadata(output),
|
|
869
|
-
|
|
870
|
-
};
|
|
715
|
+
});
|
|
871
716
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
872
|
-
if (data.Attendee
|
|
717
|
+
if (data.Attendee != null) {
|
|
873
718
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
874
719
|
}
|
|
875
|
-
return
|
|
720
|
+
return contents;
|
|
876
721
|
};
|
|
877
722
|
exports.deserializeAws_restJson1GetAttendeeCommand = deserializeAws_restJson1GetAttendeeCommand;
|
|
878
723
|
const deserializeAws_restJson1GetAttendeeCommandError = async (output, context) => {
|
|
@@ -880,7 +725,6 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
880
725
|
...output,
|
|
881
726
|
body: await parseBody(output.body, context),
|
|
882
727
|
};
|
|
883
|
-
let response;
|
|
884
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
729
|
switch (errorCode) {
|
|
886
730
|
case "BadRequestException":
|
|
@@ -906,29 +750,26 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
906
750
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
907
751
|
default:
|
|
908
752
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
$metadata,
|
|
753
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
754
|
+
output,
|
|
755
|
+
parsedBody,
|
|
756
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
757
|
+
errorCode,
|
|
915
758
|
});
|
|
916
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
917
759
|
}
|
|
918
760
|
};
|
|
919
761
|
const deserializeAws_restJson1GetMeetingCommand = async (output, context) => {
|
|
920
762
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
763
|
return deserializeAws_restJson1GetMeetingCommandError(output, context);
|
|
922
764
|
}
|
|
923
|
-
const contents = {
|
|
765
|
+
const contents = map({
|
|
924
766
|
$metadata: deserializeMetadata(output),
|
|
925
|
-
|
|
926
|
-
};
|
|
767
|
+
});
|
|
927
768
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
928
|
-
if (data.Meeting
|
|
769
|
+
if (data.Meeting != null) {
|
|
929
770
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
930
771
|
}
|
|
931
|
-
return
|
|
772
|
+
return contents;
|
|
932
773
|
};
|
|
933
774
|
exports.deserializeAws_restJson1GetMeetingCommand = deserializeAws_restJson1GetMeetingCommand;
|
|
934
775
|
const deserializeAws_restJson1GetMeetingCommandError = async (output, context) => {
|
|
@@ -936,7 +777,6 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
936
777
|
...output,
|
|
937
778
|
body: await parseBody(output.body, context),
|
|
938
779
|
};
|
|
939
|
-
let response;
|
|
940
780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
781
|
switch (errorCode) {
|
|
942
782
|
case "BadRequestException":
|
|
@@ -962,33 +802,29 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
962
802
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
963
803
|
default:
|
|
964
804
|
const parsedBody = parsedOutput.body;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
$metadata,
|
|
805
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
806
|
+
output,
|
|
807
|
+
parsedBody,
|
|
808
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
809
|
+
errorCode,
|
|
971
810
|
});
|
|
972
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
973
811
|
}
|
|
974
812
|
};
|
|
975
813
|
const deserializeAws_restJson1ListAttendeesCommand = async (output, context) => {
|
|
976
814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
815
|
return deserializeAws_restJson1ListAttendeesCommandError(output, context);
|
|
978
816
|
}
|
|
979
|
-
const contents = {
|
|
817
|
+
const contents = map({
|
|
980
818
|
$metadata: deserializeMetadata(output),
|
|
981
|
-
|
|
982
|
-
NextToken: undefined,
|
|
983
|
-
};
|
|
819
|
+
});
|
|
984
820
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
985
|
-
if (data.Attendees
|
|
821
|
+
if (data.Attendees != null) {
|
|
986
822
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
987
823
|
}
|
|
988
|
-
if (data.NextToken
|
|
824
|
+
if (data.NextToken != null) {
|
|
989
825
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
990
826
|
}
|
|
991
|
-
return
|
|
827
|
+
return contents;
|
|
992
828
|
};
|
|
993
829
|
exports.deserializeAws_restJson1ListAttendeesCommand = deserializeAws_restJson1ListAttendeesCommand;
|
|
994
830
|
const deserializeAws_restJson1ListAttendeesCommandError = async (output, context) => {
|
|
@@ -996,7 +832,6 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
996
832
|
...output,
|
|
997
833
|
body: await parseBody(output.body, context),
|
|
998
834
|
};
|
|
999
|
-
let response;
|
|
1000
835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
836
|
switch (errorCode) {
|
|
1002
837
|
case "BadRequestException":
|
|
@@ -1022,25 +857,23 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
1022
857
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1023
858
|
default:
|
|
1024
859
|
const parsedBody = parsedOutput.body;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
$metadata,
|
|
860
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
861
|
+
output,
|
|
862
|
+
parsedBody,
|
|
863
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
864
|
+
errorCode,
|
|
1031
865
|
});
|
|
1032
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1033
866
|
}
|
|
1034
867
|
};
|
|
1035
868
|
const deserializeAws_restJson1StartMeetingTranscriptionCommand = async (output, context) => {
|
|
1036
869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
870
|
return deserializeAws_restJson1StartMeetingTranscriptionCommandError(output, context);
|
|
1038
871
|
}
|
|
1039
|
-
const contents = {
|
|
872
|
+
const contents = map({
|
|
1040
873
|
$metadata: deserializeMetadata(output),
|
|
1041
|
-
};
|
|
874
|
+
});
|
|
1042
875
|
await collectBody(output.body, context);
|
|
1043
|
-
return
|
|
876
|
+
return contents;
|
|
1044
877
|
};
|
|
1045
878
|
exports.deserializeAws_restJson1StartMeetingTranscriptionCommand = deserializeAws_restJson1StartMeetingTranscriptionCommand;
|
|
1046
879
|
const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (output, context) => {
|
|
@@ -1048,7 +881,6 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
1048
881
|
...output,
|
|
1049
882
|
body: await parseBody(output.body, context),
|
|
1050
883
|
};
|
|
1051
|
-
let response;
|
|
1052
884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
885
|
switch (errorCode) {
|
|
1054
886
|
case "BadRequestException":
|
|
@@ -1080,25 +912,23 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
1080
912
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1081
913
|
default:
|
|
1082
914
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
$metadata,
|
|
915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
916
|
+
output,
|
|
917
|
+
parsedBody,
|
|
918
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
919
|
+
errorCode,
|
|
1089
920
|
});
|
|
1090
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1091
921
|
}
|
|
1092
922
|
};
|
|
1093
923
|
const deserializeAws_restJson1StopMeetingTranscriptionCommand = async (output, context) => {
|
|
1094
924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1095
925
|
return deserializeAws_restJson1StopMeetingTranscriptionCommandError(output, context);
|
|
1096
926
|
}
|
|
1097
|
-
const contents = {
|
|
927
|
+
const contents = map({
|
|
1098
928
|
$metadata: deserializeMetadata(output),
|
|
1099
|
-
};
|
|
929
|
+
});
|
|
1100
930
|
await collectBody(output.body, context);
|
|
1101
|
-
return
|
|
931
|
+
return contents;
|
|
1102
932
|
};
|
|
1103
933
|
exports.deserializeAws_restJson1StopMeetingTranscriptionCommand = deserializeAws_restJson1StopMeetingTranscriptionCommand;
|
|
1104
934
|
const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (output, context) => {
|
|
@@ -1106,7 +936,6 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
1106
936
|
...output,
|
|
1107
937
|
body: await parseBody(output.body, context),
|
|
1108
938
|
};
|
|
1109
|
-
let response;
|
|
1110
939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
940
|
switch (errorCode) {
|
|
1112
941
|
case "BadRequestException":
|
|
@@ -1135,29 +964,26 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
1135
964
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1136
965
|
default:
|
|
1137
966
|
const parsedBody = parsedOutput.body;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
$metadata,
|
|
967
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
968
|
+
output,
|
|
969
|
+
parsedBody,
|
|
970
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
971
|
+
errorCode,
|
|
1144
972
|
});
|
|
1145
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1146
973
|
}
|
|
1147
974
|
};
|
|
1148
975
|
const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = async (output, context) => {
|
|
1149
976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
977
|
return deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError(output, context);
|
|
1151
978
|
}
|
|
1152
|
-
const contents = {
|
|
979
|
+
const contents = map({
|
|
1153
980
|
$metadata: deserializeMetadata(output),
|
|
1154
|
-
|
|
1155
|
-
};
|
|
981
|
+
});
|
|
1156
982
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1157
|
-
if (data.Attendee
|
|
983
|
+
if (data.Attendee != null) {
|
|
1158
984
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
1159
985
|
}
|
|
1160
|
-
return
|
|
986
|
+
return contents;
|
|
1161
987
|
};
|
|
1162
988
|
exports.deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand = deserializeAws_restJson1UpdateAttendeeCapabilitiesCommand;
|
|
1163
989
|
const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (output, context) => {
|
|
@@ -1165,7 +991,6 @@ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (ou
|
|
|
1165
991
|
...output,
|
|
1166
992
|
body: await parseBody(output.body, context),
|
|
1167
993
|
};
|
|
1168
|
-
let response;
|
|
1169
994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
995
|
switch (errorCode) {
|
|
1171
996
|
case "BadRequestException":
|
|
@@ -1188,26 +1013,25 @@ const deserializeAws_restJson1UpdateAttendeeCapabilitiesCommandError = async (ou
|
|
|
1188
1013
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1189
1014
|
default:
|
|
1190
1015
|
const parsedBody = parsedOutput.body;
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
$metadata,
|
|
1016
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1017
|
+
output,
|
|
1018
|
+
parsedBody,
|
|
1019
|
+
exceptionCtor: ChimeSDKMeetingsServiceException_1.ChimeSDKMeetingsServiceException,
|
|
1020
|
+
errorCode,
|
|
1197
1021
|
});
|
|
1198
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1199
1022
|
}
|
|
1200
1023
|
};
|
|
1024
|
+
const map = smithy_client_1.map;
|
|
1201
1025
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1202
|
-
const contents = {};
|
|
1026
|
+
const contents = map({});
|
|
1203
1027
|
const data = parsedOutput.body;
|
|
1204
|
-
if (data.Code
|
|
1028
|
+
if (data.Code != null) {
|
|
1205
1029
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1206
1030
|
}
|
|
1207
|
-
if (data.Message
|
|
1031
|
+
if (data.Message != null) {
|
|
1208
1032
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1209
1033
|
}
|
|
1210
|
-
if (data.RequestId
|
|
1034
|
+
if (data.RequestId != null) {
|
|
1211
1035
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1212
1036
|
}
|
|
1213
1037
|
const exception = new models_0_1.BadRequestException({
|
|
@@ -1217,15 +1041,15 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
1217
1041
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1218
1042
|
};
|
|
1219
1043
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1220
|
-
const contents = {};
|
|
1044
|
+
const contents = map({});
|
|
1221
1045
|
const data = parsedOutput.body;
|
|
1222
|
-
if (data.Code
|
|
1046
|
+
if (data.Code != null) {
|
|
1223
1047
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1224
1048
|
}
|
|
1225
|
-
if (data.Message
|
|
1049
|
+
if (data.Message != null) {
|
|
1226
1050
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1227
1051
|
}
|
|
1228
|
-
if (data.RequestId
|
|
1052
|
+
if (data.RequestId != null) {
|
|
1229
1053
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1230
1054
|
}
|
|
1231
1055
|
const exception = new models_0_1.ConflictException({
|
|
@@ -1235,15 +1059,15 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1235
1059
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1236
1060
|
};
|
|
1237
1061
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1238
|
-
const contents = {};
|
|
1062
|
+
const contents = map({});
|
|
1239
1063
|
const data = parsedOutput.body;
|
|
1240
|
-
if (data.Code
|
|
1064
|
+
if (data.Code != null) {
|
|
1241
1065
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1242
1066
|
}
|
|
1243
|
-
if (data.Message
|
|
1067
|
+
if (data.Message != null) {
|
|
1244
1068
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1245
1069
|
}
|
|
1246
|
-
if (data.RequestId
|
|
1070
|
+
if (data.RequestId != null) {
|
|
1247
1071
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1248
1072
|
}
|
|
1249
1073
|
const exception = new models_0_1.ForbiddenException({
|
|
@@ -1253,15 +1077,15 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
1253
1077
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1254
1078
|
};
|
|
1255
1079
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1256
|
-
const contents = {};
|
|
1080
|
+
const contents = map({});
|
|
1257
1081
|
const data = parsedOutput.body;
|
|
1258
|
-
if (data.Code
|
|
1082
|
+
if (data.Code != null) {
|
|
1259
1083
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1260
1084
|
}
|
|
1261
|
-
if (data.Message
|
|
1085
|
+
if (data.Message != null) {
|
|
1262
1086
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1263
1087
|
}
|
|
1264
|
-
if (data.RequestId
|
|
1088
|
+
if (data.RequestId != null) {
|
|
1265
1089
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1266
1090
|
}
|
|
1267
1091
|
const exception = new models_0_1.LimitExceededException({
|
|
@@ -1271,15 +1095,15 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
1271
1095
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1272
1096
|
};
|
|
1273
1097
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1274
|
-
const contents = {};
|
|
1098
|
+
const contents = map({});
|
|
1275
1099
|
const data = parsedOutput.body;
|
|
1276
|
-
if (data.Code
|
|
1100
|
+
if (data.Code != null) {
|
|
1277
1101
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1278
1102
|
}
|
|
1279
|
-
if (data.Message
|
|
1103
|
+
if (data.Message != null) {
|
|
1280
1104
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1281
1105
|
}
|
|
1282
|
-
if (data.RequestId
|
|
1106
|
+
if (data.RequestId != null) {
|
|
1283
1107
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1284
1108
|
}
|
|
1285
1109
|
const exception = new models_0_1.NotFoundException({
|
|
@@ -1289,15 +1113,15 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1289
1113
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1290
1114
|
};
|
|
1291
1115
|
const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOutput, context) => {
|
|
1292
|
-
const contents = {};
|
|
1116
|
+
const contents = map({});
|
|
1293
1117
|
const data = parsedOutput.body;
|
|
1294
|
-
if (data.Code
|
|
1118
|
+
if (data.Code != null) {
|
|
1295
1119
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1296
1120
|
}
|
|
1297
|
-
if (data.Message
|
|
1121
|
+
if (data.Message != null) {
|
|
1298
1122
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1299
1123
|
}
|
|
1300
|
-
if (data.RequestId
|
|
1124
|
+
if (data.RequestId != null) {
|
|
1301
1125
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1302
1126
|
}
|
|
1303
1127
|
const exception = new models_0_1.ServiceFailureException({
|
|
@@ -1307,18 +1131,17 @@ const deserializeAws_restJson1ServiceFailureExceptionResponse = async (parsedOut
|
|
|
1307
1131
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1308
1132
|
};
|
|
1309
1133
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1310
|
-
const contents = {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}
|
|
1134
|
+
const contents = map({
|
|
1135
|
+
RetryAfterSeconds: [, parsedOutput.headers["retry-after"]],
|
|
1136
|
+
});
|
|
1314
1137
|
const data = parsedOutput.body;
|
|
1315
|
-
if (data.Code
|
|
1138
|
+
if (data.Code != null) {
|
|
1316
1139
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1317
1140
|
}
|
|
1318
|
-
if (data.Message
|
|
1141
|
+
if (data.Message != null) {
|
|
1319
1142
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1320
1143
|
}
|
|
1321
|
-
if (data.RequestId
|
|
1144
|
+
if (data.RequestId != null) {
|
|
1322
1145
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1323
1146
|
}
|
|
1324
1147
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
@@ -1328,15 +1151,15 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
1328
1151
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1329
1152
|
};
|
|
1330
1153
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1331
|
-
const contents = {};
|
|
1154
|
+
const contents = map({});
|
|
1332
1155
|
const data = parsedOutput.body;
|
|
1333
|
-
if (data.Code
|
|
1156
|
+
if (data.Code != null) {
|
|
1334
1157
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1335
1158
|
}
|
|
1336
|
-
if (data.Message
|
|
1159
|
+
if (data.Message != null) {
|
|
1337
1160
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1338
1161
|
}
|
|
1339
|
-
if (data.RequestId
|
|
1162
|
+
if (data.RequestId != null) {
|
|
1340
1163
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1341
1164
|
}
|
|
1342
1165
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -1346,15 +1169,15 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1346
1169
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1347
1170
|
};
|
|
1348
1171
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1349
|
-
const contents = {};
|
|
1172
|
+
const contents = map({});
|
|
1350
1173
|
const data = parsedOutput.body;
|
|
1351
|
-
if (data.Code
|
|
1174
|
+
if (data.Code != null) {
|
|
1352
1175
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1353
1176
|
}
|
|
1354
|
-
if (data.Message
|
|
1177
|
+
if (data.Message != null) {
|
|
1355
1178
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1356
1179
|
}
|
|
1357
|
-
if (data.RequestId
|
|
1180
|
+
if (data.RequestId != null) {
|
|
1358
1181
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1359
1182
|
}
|
|
1360
1183
|
const exception = new models_0_1.UnauthorizedException({
|
|
@@ -1364,15 +1187,15 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1364
1187
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1365
1188
|
};
|
|
1366
1189
|
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
1367
|
-
const contents = {};
|
|
1190
|
+
const contents = map({});
|
|
1368
1191
|
const data = parsedOutput.body;
|
|
1369
|
-
if (data.Code
|
|
1192
|
+
if (data.Code != null) {
|
|
1370
1193
|
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1371
1194
|
}
|
|
1372
|
-
if (data.Message
|
|
1195
|
+
if (data.Message != null) {
|
|
1373
1196
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1374
1197
|
}
|
|
1375
|
-
if (data.RequestId
|
|
1198
|
+
if (data.RequestId != null) {
|
|
1376
1199
|
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1377
1200
|
}
|
|
1378
1201
|
const exception = new models_0_1.UnprocessableEntityException({
|
|
@@ -1397,9 +1220,6 @@ const serializeAws_restJson1AttendeeIdsList = (input, context) => {
|
|
|
1397
1220
|
return input
|
|
1398
1221
|
.filter((e) => e != null)
|
|
1399
1222
|
.map((entry) => {
|
|
1400
|
-
if (entry === null) {
|
|
1401
|
-
return null;
|
|
1402
|
-
}
|
|
1403
1223
|
return serializeAws_restJson1AttendeeIdItem(entry, context);
|
|
1404
1224
|
});
|
|
1405
1225
|
};
|
|
@@ -1420,9 +1240,6 @@ const serializeAws_restJson1CreateAttendeeRequestItemList = (input, context) =>
|
|
|
1420
1240
|
return input
|
|
1421
1241
|
.filter((e) => e != null)
|
|
1422
1242
|
.map((entry) => {
|
|
1423
|
-
if (entry === null) {
|
|
1424
|
-
return null;
|
|
1425
|
-
}
|
|
1426
1243
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1427
1244
|
});
|
|
1428
1245
|
};
|
|
@@ -1430,9 +1247,6 @@ const serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList = (input,
|
|
|
1430
1247
|
return input
|
|
1431
1248
|
.filter((e) => e != null)
|
|
1432
1249
|
.map((entry) => {
|
|
1433
|
-
if (entry === null) {
|
|
1434
|
-
return null;
|
|
1435
|
-
}
|
|
1436
1250
|
return serializeAws_restJson1CreateAttendeeRequestItem(entry, context);
|
|
1437
1251
|
});
|
|
1438
1252
|
};
|
|
@@ -1482,9 +1296,6 @@ const serializeAws_restJson1TenantIdList = (input, context) => {
|
|
|
1482
1296
|
return input
|
|
1483
1297
|
.filter((e) => e != null)
|
|
1484
1298
|
.map((entry) => {
|
|
1485
|
-
if (entry === null) {
|
|
1486
|
-
return null;
|
|
1487
|
-
}
|
|
1488
1299
|
return entry;
|
|
1489
1300
|
});
|
|
1490
1301
|
};
|