@aws-sdk/client-ivs-realtime 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 +125 -229
- package/dist-es/protocols/Aws_restJson1.js +108 -212
- 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"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { IVSRealTimeServiceException as __BaseException } from "../models/IVSRealTimeServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateParticipantTokenCommand = async (input, context) => {
|
|
@@ -9,13 +9,13 @@ export const se_CreateParticipantTokenCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateParticipantToken";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
attributes: (_) => _json(_),
|
|
14
|
+
capabilities: (_) => _json(_),
|
|
15
|
+
duration: [],
|
|
16
|
+
stageArn: [],
|
|
17
|
+
userId: [],
|
|
18
|
+
}));
|
|
19
19
|
return new __HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -33,13 +33,11 @@ export const se_CreateStageCommand = async (input, context) => {
|
|
|
33
33
|
};
|
|
34
34
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStage";
|
|
35
35
|
let body;
|
|
36
|
-
body = JSON.stringify({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
42
|
-
});
|
|
36
|
+
body = JSON.stringify(take(input, {
|
|
37
|
+
name: [],
|
|
38
|
+
participantTokenConfigurations: (_) => _json(_),
|
|
39
|
+
tags: (_) => _json(_),
|
|
40
|
+
}));
|
|
43
41
|
return new __HttpRequest({
|
|
44
42
|
protocol,
|
|
45
43
|
hostname,
|
|
@@ -57,9 +55,9 @@ export const se_DeleteStageCommand = async (input, context) => {
|
|
|
57
55
|
};
|
|
58
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStage";
|
|
59
57
|
let body;
|
|
60
|
-
body = JSON.stringify({
|
|
61
|
-
|
|
62
|
-
});
|
|
58
|
+
body = JSON.stringify(take(input, {
|
|
59
|
+
arn: [],
|
|
60
|
+
}));
|
|
63
61
|
return new __HttpRequest({
|
|
64
62
|
protocol,
|
|
65
63
|
hostname,
|
|
@@ -77,11 +75,11 @@ export const se_DisconnectParticipantCommand = async (input, context) => {
|
|
|
77
75
|
};
|
|
78
76
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectParticipant";
|
|
79
77
|
let body;
|
|
80
|
-
body = JSON.stringify({
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
});
|
|
78
|
+
body = JSON.stringify(take(input, {
|
|
79
|
+
participantId: [],
|
|
80
|
+
reason: [],
|
|
81
|
+
stageArn: [],
|
|
82
|
+
}));
|
|
85
83
|
return new __HttpRequest({
|
|
86
84
|
protocol,
|
|
87
85
|
hostname,
|
|
@@ -99,9 +97,9 @@ export const se_GetStageCommand = async (input, context) => {
|
|
|
99
97
|
};
|
|
100
98
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStage";
|
|
101
99
|
let body;
|
|
102
|
-
body = JSON.stringify({
|
|
103
|
-
|
|
104
|
-
});
|
|
100
|
+
body = JSON.stringify(take(input, {
|
|
101
|
+
arn: [],
|
|
102
|
+
}));
|
|
105
103
|
return new __HttpRequest({
|
|
106
104
|
protocol,
|
|
107
105
|
hostname,
|
|
@@ -119,10 +117,10 @@ export const se_ListStagesCommand = async (input, context) => {
|
|
|
119
117
|
};
|
|
120
118
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStages";
|
|
121
119
|
let body;
|
|
122
|
-
body = JSON.stringify({
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
});
|
|
120
|
+
body = JSON.stringify(take(input, {
|
|
121
|
+
maxResults: [],
|
|
122
|
+
nextToken: [],
|
|
123
|
+
}));
|
|
126
124
|
return new __HttpRequest({
|
|
127
125
|
protocol,
|
|
128
126
|
hostname,
|
|
@@ -157,9 +155,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
157
155
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
158
156
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
159
157
|
let body;
|
|
160
|
-
body = JSON.stringify({
|
|
161
|
-
|
|
162
|
-
});
|
|
158
|
+
body = JSON.stringify(take(input, {
|
|
159
|
+
tags: (_) => _json(_),
|
|
160
|
+
}));
|
|
163
161
|
return new __HttpRequest({
|
|
164
162
|
protocol,
|
|
165
163
|
hostname,
|
|
@@ -200,10 +198,10 @@ export const se_UpdateStageCommand = async (input, context) => {
|
|
|
200
198
|
};
|
|
201
199
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateStage";
|
|
202
200
|
let body;
|
|
203
|
-
body = JSON.stringify({
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
});
|
|
201
|
+
body = JSON.stringify(take(input, {
|
|
202
|
+
arn: [],
|
|
203
|
+
name: [],
|
|
204
|
+
}));
|
|
207
205
|
return new __HttpRequest({
|
|
208
206
|
protocol,
|
|
209
207
|
hostname,
|
|
@@ -222,9 +220,10 @@ export const de_CreateParticipantTokenCommand = async (output, context) => {
|
|
|
222
220
|
$metadata: deserializeMetadata(output),
|
|
223
221
|
});
|
|
224
222
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
223
|
+
const doc = take(data, {
|
|
224
|
+
participantToken: (_) => de_ParticipantToken(_, context),
|
|
225
|
+
});
|
|
226
|
+
Object.assign(contents, doc);
|
|
228
227
|
return contents;
|
|
229
228
|
};
|
|
230
229
|
const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
@@ -251,10 +250,9 @@ const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
|
251
250
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
252
251
|
default:
|
|
253
252
|
const parsedBody = parsedOutput.body;
|
|
254
|
-
throwDefaultError({
|
|
253
|
+
return throwDefaultError({
|
|
255
254
|
output,
|
|
256
255
|
parsedBody,
|
|
257
|
-
exceptionCtor: __BaseException,
|
|
258
256
|
errorCode,
|
|
259
257
|
});
|
|
260
258
|
}
|
|
@@ -267,12 +265,11 @@ export const de_CreateStageCommand = async (output, context) => {
|
|
|
267
265
|
$metadata: deserializeMetadata(output),
|
|
268
266
|
});
|
|
269
267
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
268
|
+
const doc = take(data, {
|
|
269
|
+
participantTokens: (_) => de_ParticipantTokenList(_, context),
|
|
270
|
+
stage: _json,
|
|
271
|
+
});
|
|
272
|
+
Object.assign(contents, doc);
|
|
276
273
|
return contents;
|
|
277
274
|
};
|
|
278
275
|
const de_CreateStageCommandError = async (output, context) => {
|
|
@@ -296,10 +293,9 @@ const de_CreateStageCommandError = async (output, context) => {
|
|
|
296
293
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
297
294
|
default:
|
|
298
295
|
const parsedBody = parsedOutput.body;
|
|
299
|
-
throwDefaultError({
|
|
296
|
+
return throwDefaultError({
|
|
300
297
|
output,
|
|
301
298
|
parsedBody,
|
|
302
|
-
exceptionCtor: __BaseException,
|
|
303
299
|
errorCode,
|
|
304
300
|
});
|
|
305
301
|
}
|
|
@@ -338,10 +334,9 @@ const de_DeleteStageCommandError = async (output, context) => {
|
|
|
338
334
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
339
335
|
default:
|
|
340
336
|
const parsedBody = parsedOutput.body;
|
|
341
|
-
throwDefaultError({
|
|
337
|
+
return throwDefaultError({
|
|
342
338
|
output,
|
|
343
339
|
parsedBody,
|
|
344
|
-
exceptionCtor: __BaseException,
|
|
345
340
|
errorCode,
|
|
346
341
|
});
|
|
347
342
|
}
|
|
@@ -377,10 +372,9 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
|
377
372
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
378
373
|
default:
|
|
379
374
|
const parsedBody = parsedOutput.body;
|
|
380
|
-
throwDefaultError({
|
|
375
|
+
return throwDefaultError({
|
|
381
376
|
output,
|
|
382
377
|
parsedBody,
|
|
383
|
-
exceptionCtor: __BaseException,
|
|
384
378
|
errorCode,
|
|
385
379
|
});
|
|
386
380
|
}
|
|
@@ -393,9 +387,10 @@ export const de_GetStageCommand = async (output, context) => {
|
|
|
393
387
|
$metadata: deserializeMetadata(output),
|
|
394
388
|
});
|
|
395
389
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}
|
|
390
|
+
const doc = take(data, {
|
|
391
|
+
stage: _json,
|
|
392
|
+
});
|
|
393
|
+
Object.assign(contents, doc);
|
|
399
394
|
return contents;
|
|
400
395
|
};
|
|
401
396
|
const de_GetStageCommandError = async (output, context) => {
|
|
@@ -416,10 +411,9 @@ const de_GetStageCommandError = async (output, context) => {
|
|
|
416
411
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
417
412
|
default:
|
|
418
413
|
const parsedBody = parsedOutput.body;
|
|
419
|
-
throwDefaultError({
|
|
414
|
+
return throwDefaultError({
|
|
420
415
|
output,
|
|
421
416
|
parsedBody,
|
|
422
|
-
exceptionCtor: __BaseException,
|
|
423
417
|
errorCode,
|
|
424
418
|
});
|
|
425
419
|
}
|
|
@@ -432,12 +426,11 @@ export const de_ListStagesCommand = async (output, context) => {
|
|
|
432
426
|
$metadata: deserializeMetadata(output),
|
|
433
427
|
});
|
|
434
428
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
}
|
|
429
|
+
const doc = take(data, {
|
|
430
|
+
nextToken: __expectString,
|
|
431
|
+
stages: _json,
|
|
432
|
+
});
|
|
433
|
+
Object.assign(contents, doc);
|
|
441
434
|
return contents;
|
|
442
435
|
};
|
|
443
436
|
const de_ListStagesCommandError = async (output, context) => {
|
|
@@ -458,10 +451,9 @@ const de_ListStagesCommandError = async (output, context) => {
|
|
|
458
451
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
459
452
|
default:
|
|
460
453
|
const parsedBody = parsedOutput.body;
|
|
461
|
-
throwDefaultError({
|
|
454
|
+
return throwDefaultError({
|
|
462
455
|
output,
|
|
463
456
|
parsedBody,
|
|
464
|
-
exceptionCtor: __BaseException,
|
|
465
457
|
errorCode,
|
|
466
458
|
});
|
|
467
459
|
}
|
|
@@ -474,9 +466,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
474
466
|
$metadata: deserializeMetadata(output),
|
|
475
467
|
});
|
|
476
468
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}
|
|
469
|
+
const doc = take(data, {
|
|
470
|
+
tags: _json,
|
|
471
|
+
});
|
|
472
|
+
Object.assign(contents, doc);
|
|
480
473
|
return contents;
|
|
481
474
|
};
|
|
482
475
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -497,10 +490,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
497
490
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
498
491
|
default:
|
|
499
492
|
const parsedBody = parsedOutput.body;
|
|
500
|
-
throwDefaultError({
|
|
493
|
+
return throwDefaultError({
|
|
501
494
|
output,
|
|
502
495
|
parsedBody,
|
|
503
|
-
exceptionCtor: __BaseException,
|
|
504
496
|
errorCode,
|
|
505
497
|
});
|
|
506
498
|
}
|
|
@@ -533,10 +525,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
533
525
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
534
526
|
default:
|
|
535
527
|
const parsedBody = parsedOutput.body;
|
|
536
|
-
throwDefaultError({
|
|
528
|
+
return throwDefaultError({
|
|
537
529
|
output,
|
|
538
530
|
parsedBody,
|
|
539
|
-
exceptionCtor: __BaseException,
|
|
540
531
|
errorCode,
|
|
541
532
|
});
|
|
542
533
|
}
|
|
@@ -569,10 +560,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
569
560
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
570
561
|
default:
|
|
571
562
|
const parsedBody = parsedOutput.body;
|
|
572
|
-
throwDefaultError({
|
|
563
|
+
return throwDefaultError({
|
|
573
564
|
output,
|
|
574
565
|
parsedBody,
|
|
575
|
-
exceptionCtor: __BaseException,
|
|
576
566
|
errorCode,
|
|
577
567
|
});
|
|
578
568
|
}
|
|
@@ -585,9 +575,10 @@ export const de_UpdateStageCommand = async (output, context) => {
|
|
|
585
575
|
$metadata: deserializeMetadata(output),
|
|
586
576
|
});
|
|
587
577
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
}
|
|
578
|
+
const doc = take(data, {
|
|
579
|
+
stage: _json,
|
|
580
|
+
});
|
|
581
|
+
Object.assign(contents, doc);
|
|
591
582
|
return contents;
|
|
592
583
|
};
|
|
593
584
|
const de_UpdateStageCommandError = async (output, context) => {
|
|
@@ -614,21 +605,21 @@ const de_UpdateStageCommandError = async (output, context) => {
|
|
|
614
605
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
615
606
|
default:
|
|
616
607
|
const parsedBody = parsedOutput.body;
|
|
617
|
-
throwDefaultError({
|
|
608
|
+
return throwDefaultError({
|
|
618
609
|
output,
|
|
619
610
|
parsedBody,
|
|
620
|
-
exceptionCtor: __BaseException,
|
|
621
611
|
errorCode,
|
|
622
612
|
});
|
|
623
613
|
}
|
|
624
614
|
};
|
|
625
|
-
const
|
|
615
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
626
616
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
627
617
|
const contents = map({});
|
|
628
618
|
const data = parsedOutput.body;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}
|
|
619
|
+
const doc = take(data, {
|
|
620
|
+
exceptionMessage: __expectString,
|
|
621
|
+
});
|
|
622
|
+
Object.assign(contents, doc);
|
|
632
623
|
const exception = new AccessDeniedException({
|
|
633
624
|
$metadata: deserializeMetadata(parsedOutput),
|
|
634
625
|
...contents,
|
|
@@ -638,9 +629,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
638
629
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
639
630
|
const contents = map({});
|
|
640
631
|
const data = parsedOutput.body;
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
632
|
+
const doc = take(data, {
|
|
633
|
+
exceptionMessage: __expectString,
|
|
634
|
+
});
|
|
635
|
+
Object.assign(contents, doc);
|
|
644
636
|
const exception = new ConflictException({
|
|
645
637
|
$metadata: deserializeMetadata(parsedOutput),
|
|
646
638
|
...contents,
|
|
@@ -650,9 +642,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
650
642
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
651
643
|
const contents = map({});
|
|
652
644
|
const data = parsedOutput.body;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}
|
|
645
|
+
const doc = take(data, {
|
|
646
|
+
exceptionMessage: __expectString,
|
|
647
|
+
});
|
|
648
|
+
Object.assign(contents, doc);
|
|
656
649
|
const exception = new InternalServerException({
|
|
657
650
|
$metadata: deserializeMetadata(parsedOutput),
|
|
658
651
|
...contents,
|
|
@@ -662,9 +655,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
662
655
|
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
663
656
|
const contents = map({});
|
|
664
657
|
const data = parsedOutput.body;
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}
|
|
658
|
+
const doc = take(data, {
|
|
659
|
+
exceptionMessage: __expectString,
|
|
660
|
+
});
|
|
661
|
+
Object.assign(contents, doc);
|
|
668
662
|
const exception = new PendingVerification({
|
|
669
663
|
$metadata: deserializeMetadata(parsedOutput),
|
|
670
664
|
...contents,
|
|
@@ -674,9 +668,10 @@ const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
|
674
668
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
675
669
|
const contents = map({});
|
|
676
670
|
const data = parsedOutput.body;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
671
|
+
const doc = take(data, {
|
|
672
|
+
exceptionMessage: __expectString,
|
|
673
|
+
});
|
|
674
|
+
Object.assign(contents, doc);
|
|
680
675
|
const exception = new ResourceNotFoundException({
|
|
681
676
|
$metadata: deserializeMetadata(parsedOutput),
|
|
682
677
|
...contents,
|
|
@@ -686,9 +681,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
686
681
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
687
682
|
const contents = map({});
|
|
688
683
|
const data = parsedOutput.body;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}
|
|
684
|
+
const doc = take(data, {
|
|
685
|
+
exceptionMessage: __expectString,
|
|
686
|
+
});
|
|
687
|
+
Object.assign(contents, doc);
|
|
692
688
|
const exception = new ServiceQuotaExceededException({
|
|
693
689
|
$metadata: deserializeMetadata(parsedOutput),
|
|
694
690
|
...contents,
|
|
@@ -698,135 +694,35 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
698
694
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
699
695
|
const contents = map({});
|
|
700
696
|
const data = parsedOutput.body;
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
697
|
+
const doc = take(data, {
|
|
698
|
+
exceptionMessage: __expectString,
|
|
699
|
+
});
|
|
700
|
+
Object.assign(contents, doc);
|
|
704
701
|
const exception = new ValidationException({
|
|
705
702
|
$metadata: deserializeMetadata(parsedOutput),
|
|
706
703
|
...contents,
|
|
707
704
|
});
|
|
708
705
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
709
706
|
};
|
|
710
|
-
const se_ParticipantTokenAttributes = (input, context) => {
|
|
711
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
712
|
-
if (value === null) {
|
|
713
|
-
return acc;
|
|
714
|
-
}
|
|
715
|
-
acc[key] = value;
|
|
716
|
-
return acc;
|
|
717
|
-
}, {});
|
|
718
|
-
};
|
|
719
|
-
const se_ParticipantTokenCapabilities = (input, context) => {
|
|
720
|
-
return input
|
|
721
|
-
.filter((e) => e != null)
|
|
722
|
-
.map((entry) => {
|
|
723
|
-
return entry;
|
|
724
|
-
});
|
|
725
|
-
};
|
|
726
|
-
const se_ParticipantTokenConfiguration = (input, context) => {
|
|
727
|
-
return {
|
|
728
|
-
...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
|
|
729
|
-
...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
|
|
730
|
-
...(input.duration != null && { duration: input.duration }),
|
|
731
|
-
...(input.userId != null && { userId: input.userId }),
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
const se_ParticipantTokenConfigurations = (input, context) => {
|
|
735
|
-
return input
|
|
736
|
-
.filter((e) => e != null)
|
|
737
|
-
.map((entry) => {
|
|
738
|
-
return se_ParticipantTokenConfiguration(entry, context);
|
|
739
|
-
});
|
|
740
|
-
};
|
|
741
|
-
const se_Tags = (input, context) => {
|
|
742
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
743
|
-
if (value === null) {
|
|
744
|
-
return acc;
|
|
745
|
-
}
|
|
746
|
-
acc[key] = value;
|
|
747
|
-
return acc;
|
|
748
|
-
}, {});
|
|
749
|
-
};
|
|
750
707
|
const de_ParticipantToken = (output, context) => {
|
|
751
|
-
return {
|
|
752
|
-
attributes:
|
|
753
|
-
capabilities:
|
|
754
|
-
duration: __expectInt32
|
|
755
|
-
expirationTime:
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
token: __expectString(output.token),
|
|
760
|
-
userId: __expectString(output.userId),
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
|
-
const de_ParticipantTokenAttributes = (output, context) => {
|
|
764
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
765
|
-
if (value === null) {
|
|
766
|
-
return acc;
|
|
767
|
-
}
|
|
768
|
-
acc[key] = __expectString(value);
|
|
769
|
-
return acc;
|
|
770
|
-
}, {});
|
|
771
|
-
};
|
|
772
|
-
const de_ParticipantTokenCapabilities = (output, context) => {
|
|
773
|
-
const retVal = (output || [])
|
|
774
|
-
.filter((e) => e != null)
|
|
775
|
-
.map((entry) => {
|
|
776
|
-
if (entry === null) {
|
|
777
|
-
return null;
|
|
778
|
-
}
|
|
779
|
-
return __expectString(entry);
|
|
708
|
+
return take(output, {
|
|
709
|
+
attributes: _json,
|
|
710
|
+
capabilities: _json,
|
|
711
|
+
duration: __expectInt32,
|
|
712
|
+
expirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
713
|
+
participantId: __expectString,
|
|
714
|
+
token: __expectString,
|
|
715
|
+
userId: __expectString,
|
|
780
716
|
});
|
|
781
|
-
return retVal;
|
|
782
717
|
};
|
|
783
718
|
const de_ParticipantTokenList = (output, context) => {
|
|
784
719
|
const retVal = (output || [])
|
|
785
720
|
.filter((e) => e != null)
|
|
786
721
|
.map((entry) => {
|
|
787
|
-
if (entry === null) {
|
|
788
|
-
return null;
|
|
789
|
-
}
|
|
790
722
|
return de_ParticipantToken(entry, context);
|
|
791
723
|
});
|
|
792
724
|
return retVal;
|
|
793
725
|
};
|
|
794
|
-
const de_Stage = (output, context) => {
|
|
795
|
-
return {
|
|
796
|
-
activeSessionId: __expectString(output.activeSessionId),
|
|
797
|
-
arn: __expectString(output.arn),
|
|
798
|
-
name: __expectString(output.name),
|
|
799
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
|
-
const de_StageSummary = (output, context) => {
|
|
803
|
-
return {
|
|
804
|
-
activeSessionId: __expectString(output.activeSessionId),
|
|
805
|
-
arn: __expectString(output.arn),
|
|
806
|
-
name: __expectString(output.name),
|
|
807
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
808
|
-
};
|
|
809
|
-
};
|
|
810
|
-
const de_StageSummaryList = (output, context) => {
|
|
811
|
-
const retVal = (output || [])
|
|
812
|
-
.filter((e) => e != null)
|
|
813
|
-
.map((entry) => {
|
|
814
|
-
if (entry === null) {
|
|
815
|
-
return null;
|
|
816
|
-
}
|
|
817
|
-
return de_StageSummary(entry, context);
|
|
818
|
-
});
|
|
819
|
-
return retVal;
|
|
820
|
-
};
|
|
821
|
-
const de_Tags = (output, context) => {
|
|
822
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
823
|
-
if (value === null) {
|
|
824
|
-
return acc;
|
|
825
|
-
}
|
|
826
|
-
acc[key] = __expectString(value);
|
|
827
|
-
return acc;
|
|
828
|
-
}, {});
|
|
829
|
-
};
|
|
830
726
|
const deserializeMetadata = (output) => ({
|
|
831
727
|
httpStatusCode: output.statusCode,
|
|
832
728
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivs-realtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivs Realtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.315.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|