@aws-sdk/client-ivs-realtime 3.312.0 → 3.316.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/IVSRealTime.js +14 -140
- package/dist-cjs/protocols/Aws_restJson1.js +125 -229
- package/dist-es/IVSRealTime.js +14 -140
- package/dist-es/protocols/Aws_restJson1.js +108 -212
- package/dist-types/IVSRealTime.d.ts +63 -73
- package/dist-types/ts3.4/IVSRealTime.d.ts +4 -1
- package/package.json +6 -6
|
@@ -12,13 +12,13 @@ const se_CreateParticipantTokenCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateParticipantToken";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
17
|
+
capabilities: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
duration: [],
|
|
19
|
+
stageArn: [],
|
|
20
|
+
userId: [],
|
|
21
|
+
}));
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
24
24
|
hostname,
|
|
@@ -37,13 +37,11 @@ const se_CreateStageCommand = async (input, context) => {
|
|
|
37
37
|
};
|
|
38
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStage";
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
46
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
name: [],
|
|
42
|
+
participantTokenConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
44
|
+
}));
|
|
47
45
|
return new protocol_http_1.HttpRequest({
|
|
48
46
|
protocol,
|
|
49
47
|
hostname,
|
|
@@ -62,9 +60,9 @@ const se_DeleteStageCommand = async (input, context) => {
|
|
|
62
60
|
};
|
|
63
61
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStage";
|
|
64
62
|
let body;
|
|
65
|
-
body = JSON.stringify({
|
|
66
|
-
|
|
67
|
-
});
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
arn: [],
|
|
65
|
+
}));
|
|
68
66
|
return new protocol_http_1.HttpRequest({
|
|
69
67
|
protocol,
|
|
70
68
|
hostname,
|
|
@@ -83,11 +81,11 @@ const se_DisconnectParticipantCommand = async (input, context) => {
|
|
|
83
81
|
};
|
|
84
82
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectParticipant";
|
|
85
83
|
let body;
|
|
86
|
-
body = JSON.stringify({
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
});
|
|
84
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
85
|
+
participantId: [],
|
|
86
|
+
reason: [],
|
|
87
|
+
stageArn: [],
|
|
88
|
+
}));
|
|
91
89
|
return new protocol_http_1.HttpRequest({
|
|
92
90
|
protocol,
|
|
93
91
|
hostname,
|
|
@@ -106,9 +104,9 @@ const se_GetStageCommand = async (input, context) => {
|
|
|
106
104
|
};
|
|
107
105
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStage";
|
|
108
106
|
let body;
|
|
109
|
-
body = JSON.stringify({
|
|
110
|
-
|
|
111
|
-
});
|
|
107
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
108
|
+
arn: [],
|
|
109
|
+
}));
|
|
112
110
|
return new protocol_http_1.HttpRequest({
|
|
113
111
|
protocol,
|
|
114
112
|
hostname,
|
|
@@ -127,10 +125,10 @@ const se_ListStagesCommand = async (input, context) => {
|
|
|
127
125
|
};
|
|
128
126
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStages";
|
|
129
127
|
let body;
|
|
130
|
-
body = JSON.stringify({
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
});
|
|
128
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
|
+
maxResults: [],
|
|
130
|
+
nextToken: [],
|
|
131
|
+
}));
|
|
134
132
|
return new protocol_http_1.HttpRequest({
|
|
135
133
|
protocol,
|
|
136
134
|
hostname,
|
|
@@ -167,9 +165,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
167
165
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
168
166
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
169
167
|
let body;
|
|
170
|
-
body = JSON.stringify({
|
|
171
|
-
|
|
172
|
-
});
|
|
168
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
169
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
170
|
+
}));
|
|
173
171
|
return new protocol_http_1.HttpRequest({
|
|
174
172
|
protocol,
|
|
175
173
|
hostname,
|
|
@@ -186,7 +184,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
186
184
|
const headers = {};
|
|
187
185
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
188
186
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
189
|
-
const query = map({
|
|
187
|
+
const query = (0, smithy_client_1.map)({
|
|
190
188
|
tagKeys: [
|
|
191
189
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
192
190
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -212,10 +210,10 @@ const se_UpdateStageCommand = async (input, context) => {
|
|
|
212
210
|
};
|
|
213
211
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateStage";
|
|
214
212
|
let body;
|
|
215
|
-
body = JSON.stringify({
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
});
|
|
213
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
|
+
arn: [],
|
|
215
|
+
name: [],
|
|
216
|
+
}));
|
|
219
217
|
return new protocol_http_1.HttpRequest({
|
|
220
218
|
protocol,
|
|
221
219
|
hostname,
|
|
@@ -231,13 +229,14 @@ const de_CreateParticipantTokenCommand = async (output, context) => {
|
|
|
231
229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
232
230
|
return de_CreateParticipantTokenCommandError(output, context);
|
|
233
231
|
}
|
|
234
|
-
const contents = map({
|
|
232
|
+
const contents = (0, smithy_client_1.map)({
|
|
235
233
|
$metadata: deserializeMetadata(output),
|
|
236
234
|
});
|
|
237
235
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
236
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
237
|
+
participantToken: (_) => de_ParticipantToken(_, context),
|
|
238
|
+
});
|
|
239
|
+
Object.assign(contents, doc);
|
|
241
240
|
return contents;
|
|
242
241
|
};
|
|
243
242
|
exports.de_CreateParticipantTokenCommand = de_CreateParticipantTokenCommand;
|
|
@@ -265,10 +264,9 @@ const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
|
265
264
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
266
265
|
default:
|
|
267
266
|
const parsedBody = parsedOutput.body;
|
|
268
|
-
|
|
267
|
+
return throwDefaultError({
|
|
269
268
|
output,
|
|
270
269
|
parsedBody,
|
|
271
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
272
270
|
errorCode,
|
|
273
271
|
});
|
|
274
272
|
}
|
|
@@ -277,16 +275,15 @@ const de_CreateStageCommand = async (output, context) => {
|
|
|
277
275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
276
|
return de_CreateStageCommandError(output, context);
|
|
279
277
|
}
|
|
280
|
-
const contents = map({
|
|
278
|
+
const contents = (0, smithy_client_1.map)({
|
|
281
279
|
$metadata: deserializeMetadata(output),
|
|
282
280
|
});
|
|
283
281
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
282
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
283
|
+
participantTokens: (_) => de_ParticipantTokenList(_, context),
|
|
284
|
+
stage: smithy_client_1._json,
|
|
285
|
+
});
|
|
286
|
+
Object.assign(contents, doc);
|
|
290
287
|
return contents;
|
|
291
288
|
};
|
|
292
289
|
exports.de_CreateStageCommand = de_CreateStageCommand;
|
|
@@ -311,10 +308,9 @@ const de_CreateStageCommandError = async (output, context) => {
|
|
|
311
308
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
312
309
|
default:
|
|
313
310
|
const parsedBody = parsedOutput.body;
|
|
314
|
-
|
|
311
|
+
return throwDefaultError({
|
|
315
312
|
output,
|
|
316
313
|
parsedBody,
|
|
317
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
318
314
|
errorCode,
|
|
319
315
|
});
|
|
320
316
|
}
|
|
@@ -323,7 +319,7 @@ const de_DeleteStageCommand = async (output, context) => {
|
|
|
323
319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
320
|
return de_DeleteStageCommandError(output, context);
|
|
325
321
|
}
|
|
326
|
-
const contents = map({
|
|
322
|
+
const contents = (0, smithy_client_1.map)({
|
|
327
323
|
$metadata: deserializeMetadata(output),
|
|
328
324
|
});
|
|
329
325
|
await collectBody(output.body, context);
|
|
@@ -354,10 +350,9 @@ const de_DeleteStageCommandError = async (output, context) => {
|
|
|
354
350
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
355
351
|
default:
|
|
356
352
|
const parsedBody = parsedOutput.body;
|
|
357
|
-
|
|
353
|
+
return throwDefaultError({
|
|
358
354
|
output,
|
|
359
355
|
parsedBody,
|
|
360
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
361
356
|
errorCode,
|
|
362
357
|
});
|
|
363
358
|
}
|
|
@@ -366,7 +361,7 @@ const de_DisconnectParticipantCommand = async (output, context) => {
|
|
|
366
361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
367
362
|
return de_DisconnectParticipantCommandError(output, context);
|
|
368
363
|
}
|
|
369
|
-
const contents = map({
|
|
364
|
+
const contents = (0, smithy_client_1.map)({
|
|
370
365
|
$metadata: deserializeMetadata(output),
|
|
371
366
|
});
|
|
372
367
|
await collectBody(output.body, context);
|
|
@@ -394,10 +389,9 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
|
394
389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
395
390
|
default:
|
|
396
391
|
const parsedBody = parsedOutput.body;
|
|
397
|
-
|
|
392
|
+
return throwDefaultError({
|
|
398
393
|
output,
|
|
399
394
|
parsedBody,
|
|
400
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
401
395
|
errorCode,
|
|
402
396
|
});
|
|
403
397
|
}
|
|
@@ -406,13 +400,14 @@ const de_GetStageCommand = async (output, context) => {
|
|
|
406
400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
407
401
|
return de_GetStageCommandError(output, context);
|
|
408
402
|
}
|
|
409
|
-
const contents = map({
|
|
403
|
+
const contents = (0, smithy_client_1.map)({
|
|
410
404
|
$metadata: deserializeMetadata(output),
|
|
411
405
|
});
|
|
412
406
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
407
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
408
|
+
stage: smithy_client_1._json,
|
|
409
|
+
});
|
|
410
|
+
Object.assign(contents, doc);
|
|
416
411
|
return contents;
|
|
417
412
|
};
|
|
418
413
|
exports.de_GetStageCommand = de_GetStageCommand;
|
|
@@ -434,10 +429,9 @@ const de_GetStageCommandError = async (output, context) => {
|
|
|
434
429
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
435
430
|
default:
|
|
436
431
|
const parsedBody = parsedOutput.body;
|
|
437
|
-
|
|
432
|
+
return throwDefaultError({
|
|
438
433
|
output,
|
|
439
434
|
parsedBody,
|
|
440
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
441
435
|
errorCode,
|
|
442
436
|
});
|
|
443
437
|
}
|
|
@@ -446,16 +440,15 @@ const de_ListStagesCommand = async (output, context) => {
|
|
|
446
440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
447
441
|
return de_ListStagesCommandError(output, context);
|
|
448
442
|
}
|
|
449
|
-
const contents = map({
|
|
443
|
+
const contents = (0, smithy_client_1.map)({
|
|
450
444
|
$metadata: deserializeMetadata(output),
|
|
451
445
|
});
|
|
452
446
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
447
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
448
|
+
nextToken: smithy_client_1.expectString,
|
|
449
|
+
stages: smithy_client_1._json,
|
|
450
|
+
});
|
|
451
|
+
Object.assign(contents, doc);
|
|
459
452
|
return contents;
|
|
460
453
|
};
|
|
461
454
|
exports.de_ListStagesCommand = de_ListStagesCommand;
|
|
@@ -477,10 +470,9 @@ const de_ListStagesCommandError = async (output, context) => {
|
|
|
477
470
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
478
471
|
default:
|
|
479
472
|
const parsedBody = parsedOutput.body;
|
|
480
|
-
|
|
473
|
+
return throwDefaultError({
|
|
481
474
|
output,
|
|
482
475
|
parsedBody,
|
|
483
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
484
476
|
errorCode,
|
|
485
477
|
});
|
|
486
478
|
}
|
|
@@ -489,13 +481,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
489
481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
482
|
return de_ListTagsForResourceCommandError(output, context);
|
|
491
483
|
}
|
|
492
|
-
const contents = map({
|
|
484
|
+
const contents = (0, smithy_client_1.map)({
|
|
493
485
|
$metadata: deserializeMetadata(output),
|
|
494
486
|
});
|
|
495
487
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
488
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
489
|
+
tags: smithy_client_1._json,
|
|
490
|
+
});
|
|
491
|
+
Object.assign(contents, doc);
|
|
499
492
|
return contents;
|
|
500
493
|
};
|
|
501
494
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -517,10 +510,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
517
510
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
518
511
|
default:
|
|
519
512
|
const parsedBody = parsedOutput.body;
|
|
520
|
-
|
|
513
|
+
return throwDefaultError({
|
|
521
514
|
output,
|
|
522
515
|
parsedBody,
|
|
523
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
524
516
|
errorCode,
|
|
525
517
|
});
|
|
526
518
|
}
|
|
@@ -529,7 +521,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
529
521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
522
|
return de_TagResourceCommandError(output, context);
|
|
531
523
|
}
|
|
532
|
-
const contents = map({
|
|
524
|
+
const contents = (0, smithy_client_1.map)({
|
|
533
525
|
$metadata: deserializeMetadata(output),
|
|
534
526
|
});
|
|
535
527
|
await collectBody(output.body, context);
|
|
@@ -554,10 +546,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
554
546
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
555
547
|
default:
|
|
556
548
|
const parsedBody = parsedOutput.body;
|
|
557
|
-
|
|
549
|
+
return throwDefaultError({
|
|
558
550
|
output,
|
|
559
551
|
parsedBody,
|
|
560
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
561
552
|
errorCode,
|
|
562
553
|
});
|
|
563
554
|
}
|
|
@@ -566,7 +557,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
566
557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
558
|
return de_UntagResourceCommandError(output, context);
|
|
568
559
|
}
|
|
569
|
-
const contents = map({
|
|
560
|
+
const contents = (0, smithy_client_1.map)({
|
|
570
561
|
$metadata: deserializeMetadata(output),
|
|
571
562
|
});
|
|
572
563
|
await collectBody(output.body, context);
|
|
@@ -591,10 +582,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
591
582
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
592
583
|
default:
|
|
593
584
|
const parsedBody = parsedOutput.body;
|
|
594
|
-
|
|
585
|
+
return throwDefaultError({
|
|
595
586
|
output,
|
|
596
587
|
parsedBody,
|
|
597
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
598
588
|
errorCode,
|
|
599
589
|
});
|
|
600
590
|
}
|
|
@@ -603,13 +593,14 @@ const de_UpdateStageCommand = async (output, context) => {
|
|
|
603
593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
594
|
return de_UpdateStageCommandError(output, context);
|
|
605
595
|
}
|
|
606
|
-
const contents = map({
|
|
596
|
+
const contents = (0, smithy_client_1.map)({
|
|
607
597
|
$metadata: deserializeMetadata(output),
|
|
608
598
|
});
|
|
609
599
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}
|
|
600
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
601
|
+
stage: smithy_client_1._json,
|
|
602
|
+
});
|
|
603
|
+
Object.assign(contents, doc);
|
|
613
604
|
return contents;
|
|
614
605
|
};
|
|
615
606
|
exports.de_UpdateStageCommand = de_UpdateStageCommand;
|
|
@@ -637,21 +628,21 @@ const de_UpdateStageCommandError = async (output, context) => {
|
|
|
637
628
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
638
629
|
default:
|
|
639
630
|
const parsedBody = parsedOutput.body;
|
|
640
|
-
|
|
631
|
+
return throwDefaultError({
|
|
641
632
|
output,
|
|
642
633
|
parsedBody,
|
|
643
|
-
exceptionCtor: IVSRealTimeServiceException_1.IVSRealTimeServiceException,
|
|
644
634
|
errorCode,
|
|
645
635
|
});
|
|
646
636
|
}
|
|
647
637
|
};
|
|
648
|
-
const
|
|
638
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(IVSRealTimeServiceException_1.IVSRealTimeServiceException);
|
|
649
639
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
650
|
-
const contents = map({});
|
|
640
|
+
const contents = (0, smithy_client_1.map)({});
|
|
651
641
|
const data = parsedOutput.body;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}
|
|
642
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
643
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
644
|
+
});
|
|
645
|
+
Object.assign(contents, doc);
|
|
655
646
|
const exception = new models_0_1.AccessDeniedException({
|
|
656
647
|
$metadata: deserializeMetadata(parsedOutput),
|
|
657
648
|
...contents,
|
|
@@ -659,11 +650,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
659
650
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
660
651
|
};
|
|
661
652
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
662
|
-
const contents = map({});
|
|
653
|
+
const contents = (0, smithy_client_1.map)({});
|
|
663
654
|
const data = parsedOutput.body;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
655
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
656
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
657
|
+
});
|
|
658
|
+
Object.assign(contents, doc);
|
|
667
659
|
const exception = new models_0_1.ConflictException({
|
|
668
660
|
$metadata: deserializeMetadata(parsedOutput),
|
|
669
661
|
...contents,
|
|
@@ -671,11 +663,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
671
663
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
672
664
|
};
|
|
673
665
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
674
|
-
const contents = map({});
|
|
666
|
+
const contents = (0, smithy_client_1.map)({});
|
|
675
667
|
const data = parsedOutput.body;
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
668
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
669
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
670
|
+
});
|
|
671
|
+
Object.assign(contents, doc);
|
|
679
672
|
const exception = new models_0_1.InternalServerException({
|
|
680
673
|
$metadata: deserializeMetadata(parsedOutput),
|
|
681
674
|
...contents,
|
|
@@ -683,11 +676,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
683
676
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
684
677
|
};
|
|
685
678
|
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
686
|
-
const contents = map({});
|
|
679
|
+
const contents = (0, smithy_client_1.map)({});
|
|
687
680
|
const data = parsedOutput.body;
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
681
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
682
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
683
|
+
});
|
|
684
|
+
Object.assign(contents, doc);
|
|
691
685
|
const exception = new models_0_1.PendingVerification({
|
|
692
686
|
$metadata: deserializeMetadata(parsedOutput),
|
|
693
687
|
...contents,
|
|
@@ -695,11 +689,12 @@ const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
|
695
689
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
696
690
|
};
|
|
697
691
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
698
|
-
const contents = map({});
|
|
692
|
+
const contents = (0, smithy_client_1.map)({});
|
|
699
693
|
const data = parsedOutput.body;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
}
|
|
694
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
695
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
703
698
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
704
699
|
$metadata: deserializeMetadata(parsedOutput),
|
|
705
700
|
...contents,
|
|
@@ -707,11 +702,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
707
702
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
708
703
|
};
|
|
709
704
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
710
|
-
const contents = map({});
|
|
705
|
+
const contents = (0, smithy_client_1.map)({});
|
|
711
706
|
const data = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
707
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
708
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
709
|
+
});
|
|
710
|
+
Object.assign(contents, doc);
|
|
715
711
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
716
712
|
$metadata: deserializeMetadata(parsedOutput),
|
|
717
713
|
...contents,
|
|
@@ -719,137 +715,37 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
719
715
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
720
716
|
};
|
|
721
717
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
722
|
-
const contents = map({});
|
|
718
|
+
const contents = (0, smithy_client_1.map)({});
|
|
723
719
|
const data = parsedOutput.body;
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}
|
|
720
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
721
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
722
|
+
});
|
|
723
|
+
Object.assign(contents, doc);
|
|
727
724
|
const exception = new models_0_1.ValidationException({
|
|
728
725
|
$metadata: deserializeMetadata(parsedOutput),
|
|
729
726
|
...contents,
|
|
730
727
|
});
|
|
731
728
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
732
729
|
};
|
|
733
|
-
const se_ParticipantTokenAttributes = (input, context) => {
|
|
734
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
735
|
-
if (value === null) {
|
|
736
|
-
return acc;
|
|
737
|
-
}
|
|
738
|
-
acc[key] = value;
|
|
739
|
-
return acc;
|
|
740
|
-
}, {});
|
|
741
|
-
};
|
|
742
|
-
const se_ParticipantTokenCapabilities = (input, context) => {
|
|
743
|
-
return input
|
|
744
|
-
.filter((e) => e != null)
|
|
745
|
-
.map((entry) => {
|
|
746
|
-
return entry;
|
|
747
|
-
});
|
|
748
|
-
};
|
|
749
|
-
const se_ParticipantTokenConfiguration = (input, context) => {
|
|
750
|
-
return {
|
|
751
|
-
...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
|
|
752
|
-
...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
|
|
753
|
-
...(input.duration != null && { duration: input.duration }),
|
|
754
|
-
...(input.userId != null && { userId: input.userId }),
|
|
755
|
-
};
|
|
756
|
-
};
|
|
757
|
-
const se_ParticipantTokenConfigurations = (input, context) => {
|
|
758
|
-
return input
|
|
759
|
-
.filter((e) => e != null)
|
|
760
|
-
.map((entry) => {
|
|
761
|
-
return se_ParticipantTokenConfiguration(entry, context);
|
|
762
|
-
});
|
|
763
|
-
};
|
|
764
|
-
const se_Tags = (input, context) => {
|
|
765
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
766
|
-
if (value === null) {
|
|
767
|
-
return acc;
|
|
768
|
-
}
|
|
769
|
-
acc[key] = value;
|
|
770
|
-
return acc;
|
|
771
|
-
}, {});
|
|
772
|
-
};
|
|
773
730
|
const de_ParticipantToken = (output, context) => {
|
|
774
|
-
return {
|
|
775
|
-
attributes:
|
|
776
|
-
capabilities:
|
|
777
|
-
duration:
|
|
778
|
-
expirationTime:
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
token: (0, smithy_client_1.expectString)(output.token),
|
|
783
|
-
userId: (0, smithy_client_1.expectString)(output.userId),
|
|
784
|
-
};
|
|
785
|
-
};
|
|
786
|
-
const de_ParticipantTokenAttributes = (output, context) => {
|
|
787
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
788
|
-
if (value === null) {
|
|
789
|
-
return acc;
|
|
790
|
-
}
|
|
791
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
792
|
-
return acc;
|
|
793
|
-
}, {});
|
|
794
|
-
};
|
|
795
|
-
const de_ParticipantTokenCapabilities = (output, context) => {
|
|
796
|
-
const retVal = (output || [])
|
|
797
|
-
.filter((e) => e != null)
|
|
798
|
-
.map((entry) => {
|
|
799
|
-
if (entry === null) {
|
|
800
|
-
return null;
|
|
801
|
-
}
|
|
802
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
731
|
+
return (0, smithy_client_1.take)(output, {
|
|
732
|
+
attributes: smithy_client_1._json,
|
|
733
|
+
capabilities: smithy_client_1._json,
|
|
734
|
+
duration: smithy_client_1.expectInt32,
|
|
735
|
+
expirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
736
|
+
participantId: smithy_client_1.expectString,
|
|
737
|
+
token: smithy_client_1.expectString,
|
|
738
|
+
userId: smithy_client_1.expectString,
|
|
803
739
|
});
|
|
804
|
-
return retVal;
|
|
805
740
|
};
|
|
806
741
|
const de_ParticipantTokenList = (output, context) => {
|
|
807
742
|
const retVal = (output || [])
|
|
808
743
|
.filter((e) => e != null)
|
|
809
744
|
.map((entry) => {
|
|
810
|
-
if (entry === null) {
|
|
811
|
-
return null;
|
|
812
|
-
}
|
|
813
745
|
return de_ParticipantToken(entry, context);
|
|
814
746
|
});
|
|
815
747
|
return retVal;
|
|
816
748
|
};
|
|
817
|
-
const de_Stage = (output, context) => {
|
|
818
|
-
return {
|
|
819
|
-
activeSessionId: (0, smithy_client_1.expectString)(output.activeSessionId),
|
|
820
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
821
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
822
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
823
|
-
};
|
|
824
|
-
};
|
|
825
|
-
const de_StageSummary = (output, context) => {
|
|
826
|
-
return {
|
|
827
|
-
activeSessionId: (0, smithy_client_1.expectString)(output.activeSessionId),
|
|
828
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
829
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
830
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
831
|
-
};
|
|
832
|
-
};
|
|
833
|
-
const de_StageSummaryList = (output, context) => {
|
|
834
|
-
const retVal = (output || [])
|
|
835
|
-
.filter((e) => e != null)
|
|
836
|
-
.map((entry) => {
|
|
837
|
-
if (entry === null) {
|
|
838
|
-
return null;
|
|
839
|
-
}
|
|
840
|
-
return de_StageSummary(entry, context);
|
|
841
|
-
});
|
|
842
|
-
return retVal;
|
|
843
|
-
};
|
|
844
|
-
const de_Tags = (output, context) => {
|
|
845
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
846
|
-
if (value === null) {
|
|
847
|
-
return acc;
|
|
848
|
-
}
|
|
849
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
850
|
-
return acc;
|
|
851
|
-
}, {});
|
|
852
|
-
};
|
|
853
749
|
const deserializeMetadata = (output) => ({
|
|
854
750
|
httpStatusCode: output.statusCode,
|
|
855
751
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|