@aws-sdk/client-ivs-realtime 3.928.0 → 3.930.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.
Files changed (63) hide show
  1. package/dist-cjs/index.js +1861 -1839
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/IVSRealTimeClient.js +2 -0
  4. package/dist-es/commands/CreateEncoderConfigurationCommand.js +3 -9
  5. package/dist-es/commands/CreateIngestConfigurationCommand.js +3 -10
  6. package/dist-es/commands/CreateParticipantTokenCommand.js +3 -10
  7. package/dist-es/commands/CreateStageCommand.js +3 -10
  8. package/dist-es/commands/CreateStorageConfigurationCommand.js +3 -9
  9. package/dist-es/commands/DeleteEncoderConfigurationCommand.js +3 -9
  10. package/dist-es/commands/DeleteIngestConfigurationCommand.js +3 -9
  11. package/dist-es/commands/DeletePublicKeyCommand.js +3 -9
  12. package/dist-es/commands/DeleteStageCommand.js +3 -9
  13. package/dist-es/commands/DeleteStorageConfigurationCommand.js +3 -9
  14. package/dist-es/commands/DisconnectParticipantCommand.js +3 -9
  15. package/dist-es/commands/GetCompositionCommand.js +3 -9
  16. package/dist-es/commands/GetEncoderConfigurationCommand.js +3 -9
  17. package/dist-es/commands/GetIngestConfigurationCommand.js +3 -10
  18. package/dist-es/commands/GetParticipantCommand.js +3 -9
  19. package/dist-es/commands/GetPublicKeyCommand.js +3 -9
  20. package/dist-es/commands/GetStageCommand.js +3 -9
  21. package/dist-es/commands/GetStageSessionCommand.js +3 -9
  22. package/dist-es/commands/GetStorageConfigurationCommand.js +3 -9
  23. package/dist-es/commands/ImportPublicKeyCommand.js +3 -9
  24. package/dist-es/commands/ListCompositionsCommand.js +3 -9
  25. package/dist-es/commands/ListEncoderConfigurationsCommand.js +3 -9
  26. package/dist-es/commands/ListIngestConfigurationsCommand.js +3 -9
  27. package/dist-es/commands/ListParticipantEventsCommand.js +3 -9
  28. package/dist-es/commands/ListParticipantReplicasCommand.js +3 -9
  29. package/dist-es/commands/ListParticipantsCommand.js +3 -9
  30. package/dist-es/commands/ListPublicKeysCommand.js +3 -9
  31. package/dist-es/commands/ListStageSessionsCommand.js +3 -9
  32. package/dist-es/commands/ListStagesCommand.js +3 -9
  33. package/dist-es/commands/ListStorageConfigurationsCommand.js +3 -9
  34. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  35. package/dist-es/commands/StartCompositionCommand.js +3 -9
  36. package/dist-es/commands/StartParticipantReplicationCommand.js +3 -9
  37. package/dist-es/commands/StopCompositionCommand.js +3 -9
  38. package/dist-es/commands/StopParticipantReplicationCommand.js +3 -9
  39. package/dist-es/commands/TagResourceCommand.js +3 -9
  40. package/dist-es/commands/UntagResourceCommand.js +3 -9
  41. package/dist-es/commands/UpdateIngestConfigurationCommand.js +3 -10
  42. package/dist-es/commands/UpdateStageCommand.js +3 -9
  43. package/dist-es/models/models_0.js +0 -37
  44. package/dist-es/runtimeConfig.shared.js +2 -0
  45. package/dist-es/schemas/schemas_0.js +1778 -0
  46. package/dist-types/IVSRealTimeClient.d.ts +10 -1
  47. package/dist-types/models/models_0.d.ts +0 -28
  48. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  49. package/dist-types/runtimeConfig.d.ts +1 -0
  50. package/dist-types/runtimeConfig.native.d.ts +1 -0
  51. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  52. package/dist-types/schemas/schemas_0.d.ts +192 -0
  53. package/dist-types/ts3.4/IVSRealTimeClient.d.ts +4 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +0 -21
  55. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  56. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  57. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  58. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  59. package/dist-types/ts3.4/schemas/schemas_0.d.ts +198 -0
  60. package/package.json +33 -34
  61. package/dist-es/protocols/Aws_restJson1.js +0 -1512
  62. package/dist-types/protocols/Aws_restJson1.d.ts +0 -353
  63. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -473
@@ -1,1512 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { IVSRealTimeServiceException as __BaseException } from "../models/IVSRealTimeServiceException";
6
- import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
7
- export const se_CreateEncoderConfigurationCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/CreateEncoderConfiguration");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- name: [],
16
- tags: (_) => _json(_),
17
- video: (_) => se_Video(_, context),
18
- }));
19
- b.m("POST").h(headers).b(body);
20
- return b.build();
21
- };
22
- export const se_CreateIngestConfigurationCommand = async (input, context) => {
23
- const b = rb(input, context);
24
- const headers = {
25
- "content-type": "application/json",
26
- };
27
- b.bp("/CreateIngestConfiguration");
28
- let body;
29
- body = JSON.stringify(take(input, {
30
- attributes: (_) => _json(_),
31
- ingestProtocol: [],
32
- insecureIngest: [],
33
- name: [],
34
- stageArn: [],
35
- tags: (_) => _json(_),
36
- userId: [],
37
- }));
38
- b.m("POST").h(headers).b(body);
39
- return b.build();
40
- };
41
- export const se_CreateParticipantTokenCommand = async (input, context) => {
42
- const b = rb(input, context);
43
- const headers = {
44
- "content-type": "application/json",
45
- };
46
- b.bp("/CreateParticipantToken");
47
- let body;
48
- body = JSON.stringify(take(input, {
49
- attributes: (_) => _json(_),
50
- capabilities: (_) => _json(_),
51
- duration: [],
52
- stageArn: [],
53
- userId: [],
54
- }));
55
- b.m("POST").h(headers).b(body);
56
- return b.build();
57
- };
58
- export const se_CreateStageCommand = async (input, context) => {
59
- const b = rb(input, context);
60
- const headers = {
61
- "content-type": "application/json",
62
- };
63
- b.bp("/CreateStage");
64
- let body;
65
- body = JSON.stringify(take(input, {
66
- autoParticipantRecordingConfiguration: (_) => _json(_),
67
- name: [],
68
- participantTokenConfigurations: (_) => _json(_),
69
- tags: (_) => _json(_),
70
- }));
71
- b.m("POST").h(headers).b(body);
72
- return b.build();
73
- };
74
- export const se_CreateStorageConfigurationCommand = async (input, context) => {
75
- const b = rb(input, context);
76
- const headers = {
77
- "content-type": "application/json",
78
- };
79
- b.bp("/CreateStorageConfiguration");
80
- let body;
81
- body = JSON.stringify(take(input, {
82
- name: [],
83
- s3: (_) => _json(_),
84
- tags: (_) => _json(_),
85
- }));
86
- b.m("POST").h(headers).b(body);
87
- return b.build();
88
- };
89
- export const se_DeleteEncoderConfigurationCommand = async (input, context) => {
90
- const b = rb(input, context);
91
- const headers = {
92
- "content-type": "application/json",
93
- };
94
- b.bp("/DeleteEncoderConfiguration");
95
- let body;
96
- body = JSON.stringify(take(input, {
97
- arn: [],
98
- }));
99
- b.m("POST").h(headers).b(body);
100
- return b.build();
101
- };
102
- export const se_DeleteIngestConfigurationCommand = async (input, context) => {
103
- const b = rb(input, context);
104
- const headers = {
105
- "content-type": "application/json",
106
- };
107
- b.bp("/DeleteIngestConfiguration");
108
- let body;
109
- body = JSON.stringify(take(input, {
110
- arn: [],
111
- force: [],
112
- }));
113
- b.m("POST").h(headers).b(body);
114
- return b.build();
115
- };
116
- export const se_DeletePublicKeyCommand = async (input, context) => {
117
- const b = rb(input, context);
118
- const headers = {
119
- "content-type": "application/json",
120
- };
121
- b.bp("/DeletePublicKey");
122
- let body;
123
- body = JSON.stringify(take(input, {
124
- arn: [],
125
- }));
126
- b.m("POST").h(headers).b(body);
127
- return b.build();
128
- };
129
- export const se_DeleteStageCommand = async (input, context) => {
130
- const b = rb(input, context);
131
- const headers = {
132
- "content-type": "application/json",
133
- };
134
- b.bp("/DeleteStage");
135
- let body;
136
- body = JSON.stringify(take(input, {
137
- arn: [],
138
- }));
139
- b.m("POST").h(headers).b(body);
140
- return b.build();
141
- };
142
- export const se_DeleteStorageConfigurationCommand = async (input, context) => {
143
- const b = rb(input, context);
144
- const headers = {
145
- "content-type": "application/json",
146
- };
147
- b.bp("/DeleteStorageConfiguration");
148
- let body;
149
- body = JSON.stringify(take(input, {
150
- arn: [],
151
- }));
152
- b.m("POST").h(headers).b(body);
153
- return b.build();
154
- };
155
- export const se_DisconnectParticipantCommand = async (input, context) => {
156
- const b = rb(input, context);
157
- const headers = {
158
- "content-type": "application/json",
159
- };
160
- b.bp("/DisconnectParticipant");
161
- let body;
162
- body = JSON.stringify(take(input, {
163
- participantId: [],
164
- reason: [],
165
- stageArn: [],
166
- }));
167
- b.m("POST").h(headers).b(body);
168
- return b.build();
169
- };
170
- export const se_GetCompositionCommand = async (input, context) => {
171
- const b = rb(input, context);
172
- const headers = {
173
- "content-type": "application/json",
174
- };
175
- b.bp("/GetComposition");
176
- let body;
177
- body = JSON.stringify(take(input, {
178
- arn: [],
179
- }));
180
- b.m("POST").h(headers).b(body);
181
- return b.build();
182
- };
183
- export const se_GetEncoderConfigurationCommand = async (input, context) => {
184
- const b = rb(input, context);
185
- const headers = {
186
- "content-type": "application/json",
187
- };
188
- b.bp("/GetEncoderConfiguration");
189
- let body;
190
- body = JSON.stringify(take(input, {
191
- arn: [],
192
- }));
193
- b.m("POST").h(headers).b(body);
194
- return b.build();
195
- };
196
- export const se_GetIngestConfigurationCommand = async (input, context) => {
197
- const b = rb(input, context);
198
- const headers = {
199
- "content-type": "application/json",
200
- };
201
- b.bp("/GetIngestConfiguration");
202
- let body;
203
- body = JSON.stringify(take(input, {
204
- arn: [],
205
- }));
206
- b.m("POST").h(headers).b(body);
207
- return b.build();
208
- };
209
- export const se_GetParticipantCommand = async (input, context) => {
210
- const b = rb(input, context);
211
- const headers = {
212
- "content-type": "application/json",
213
- };
214
- b.bp("/GetParticipant");
215
- let body;
216
- body = JSON.stringify(take(input, {
217
- participantId: [],
218
- sessionId: [],
219
- stageArn: [],
220
- }));
221
- b.m("POST").h(headers).b(body);
222
- return b.build();
223
- };
224
- export const se_GetPublicKeyCommand = async (input, context) => {
225
- const b = rb(input, context);
226
- const headers = {
227
- "content-type": "application/json",
228
- };
229
- b.bp("/GetPublicKey");
230
- let body;
231
- body = JSON.stringify(take(input, {
232
- arn: [],
233
- }));
234
- b.m("POST").h(headers).b(body);
235
- return b.build();
236
- };
237
- export const se_GetStageCommand = async (input, context) => {
238
- const b = rb(input, context);
239
- const headers = {
240
- "content-type": "application/json",
241
- };
242
- b.bp("/GetStage");
243
- let body;
244
- body = JSON.stringify(take(input, {
245
- arn: [],
246
- }));
247
- b.m("POST").h(headers).b(body);
248
- return b.build();
249
- };
250
- export const se_GetStageSessionCommand = async (input, context) => {
251
- const b = rb(input, context);
252
- const headers = {
253
- "content-type": "application/json",
254
- };
255
- b.bp("/GetStageSession");
256
- let body;
257
- body = JSON.stringify(take(input, {
258
- sessionId: [],
259
- stageArn: [],
260
- }));
261
- b.m("POST").h(headers).b(body);
262
- return b.build();
263
- };
264
- export const se_GetStorageConfigurationCommand = async (input, context) => {
265
- const b = rb(input, context);
266
- const headers = {
267
- "content-type": "application/json",
268
- };
269
- b.bp("/GetStorageConfiguration");
270
- let body;
271
- body = JSON.stringify(take(input, {
272
- arn: [],
273
- }));
274
- b.m("POST").h(headers).b(body);
275
- return b.build();
276
- };
277
- export const se_ImportPublicKeyCommand = async (input, context) => {
278
- const b = rb(input, context);
279
- const headers = {
280
- "content-type": "application/json",
281
- };
282
- b.bp("/ImportPublicKey");
283
- let body;
284
- body = JSON.stringify(take(input, {
285
- name: [],
286
- publicKeyMaterial: [],
287
- tags: (_) => _json(_),
288
- }));
289
- b.m("POST").h(headers).b(body);
290
- return b.build();
291
- };
292
- export const se_ListCompositionsCommand = async (input, context) => {
293
- const b = rb(input, context);
294
- const headers = {
295
- "content-type": "application/json",
296
- };
297
- b.bp("/ListCompositions");
298
- let body;
299
- body = JSON.stringify(take(input, {
300
- filterByEncoderConfigurationArn: [],
301
- filterByStageArn: [],
302
- maxResults: [],
303
- nextToken: [],
304
- }));
305
- b.m("POST").h(headers).b(body);
306
- return b.build();
307
- };
308
- export const se_ListEncoderConfigurationsCommand = async (input, context) => {
309
- const b = rb(input, context);
310
- const headers = {
311
- "content-type": "application/json",
312
- };
313
- b.bp("/ListEncoderConfigurations");
314
- let body;
315
- body = JSON.stringify(take(input, {
316
- maxResults: [],
317
- nextToken: [],
318
- }));
319
- b.m("POST").h(headers).b(body);
320
- return b.build();
321
- };
322
- export const se_ListIngestConfigurationsCommand = async (input, context) => {
323
- const b = rb(input, context);
324
- const headers = {
325
- "content-type": "application/json",
326
- };
327
- b.bp("/ListIngestConfigurations");
328
- let body;
329
- body = JSON.stringify(take(input, {
330
- filterByStageArn: [],
331
- filterByState: [],
332
- maxResults: [],
333
- nextToken: [],
334
- }));
335
- b.m("POST").h(headers).b(body);
336
- return b.build();
337
- };
338
- export const se_ListParticipantEventsCommand = async (input, context) => {
339
- const b = rb(input, context);
340
- const headers = {
341
- "content-type": "application/json",
342
- };
343
- b.bp("/ListParticipantEvents");
344
- let body;
345
- body = JSON.stringify(take(input, {
346
- maxResults: [],
347
- nextToken: [],
348
- participantId: [],
349
- sessionId: [],
350
- stageArn: [],
351
- }));
352
- b.m("POST").h(headers).b(body);
353
- return b.build();
354
- };
355
- export const se_ListParticipantReplicasCommand = async (input, context) => {
356
- const b = rb(input, context);
357
- const headers = {
358
- "content-type": "application/json",
359
- };
360
- b.bp("/ListParticipantReplicas");
361
- let body;
362
- body = JSON.stringify(take(input, {
363
- maxResults: [],
364
- nextToken: [],
365
- participantId: [],
366
- sourceStageArn: [],
367
- }));
368
- b.m("POST").h(headers).b(body);
369
- return b.build();
370
- };
371
- export const se_ListParticipantsCommand = async (input, context) => {
372
- const b = rb(input, context);
373
- const headers = {
374
- "content-type": "application/json",
375
- };
376
- b.bp("/ListParticipants");
377
- let body;
378
- body = JSON.stringify(take(input, {
379
- filterByPublished: [],
380
- filterByRecordingState: [],
381
- filterByState: [],
382
- filterByUserId: [],
383
- maxResults: [],
384
- nextToken: [],
385
- sessionId: [],
386
- stageArn: [],
387
- }));
388
- b.m("POST").h(headers).b(body);
389
- return b.build();
390
- };
391
- export const se_ListPublicKeysCommand = async (input, context) => {
392
- const b = rb(input, context);
393
- const headers = {
394
- "content-type": "application/json",
395
- };
396
- b.bp("/ListPublicKeys");
397
- let body;
398
- body = JSON.stringify(take(input, {
399
- maxResults: [],
400
- nextToken: [],
401
- }));
402
- b.m("POST").h(headers).b(body);
403
- return b.build();
404
- };
405
- export const se_ListStagesCommand = async (input, context) => {
406
- const b = rb(input, context);
407
- const headers = {
408
- "content-type": "application/json",
409
- };
410
- b.bp("/ListStages");
411
- let body;
412
- body = JSON.stringify(take(input, {
413
- maxResults: [],
414
- nextToken: [],
415
- }));
416
- b.m("POST").h(headers).b(body);
417
- return b.build();
418
- };
419
- export const se_ListStageSessionsCommand = async (input, context) => {
420
- const b = rb(input, context);
421
- const headers = {
422
- "content-type": "application/json",
423
- };
424
- b.bp("/ListStageSessions");
425
- let body;
426
- body = JSON.stringify(take(input, {
427
- maxResults: [],
428
- nextToken: [],
429
- stageArn: [],
430
- }));
431
- b.m("POST").h(headers).b(body);
432
- return b.build();
433
- };
434
- export const se_ListStorageConfigurationsCommand = async (input, context) => {
435
- const b = rb(input, context);
436
- const headers = {
437
- "content-type": "application/json",
438
- };
439
- b.bp("/ListStorageConfigurations");
440
- let body;
441
- body = JSON.stringify(take(input, {
442
- maxResults: [],
443
- nextToken: [],
444
- }));
445
- b.m("POST").h(headers).b(body);
446
- return b.build();
447
- };
448
- export const se_ListTagsForResourceCommand = async (input, context) => {
449
- const b = rb(input, context);
450
- const headers = {};
451
- b.bp("/tags/{resourceArn}");
452
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
453
- let body;
454
- b.m("GET").h(headers).b(body);
455
- return b.build();
456
- };
457
- export const se_StartCompositionCommand = async (input, context) => {
458
- const b = rb(input, context);
459
- const headers = {
460
- "content-type": "application/json",
461
- };
462
- b.bp("/StartComposition");
463
- let body;
464
- body = JSON.stringify(take(input, {
465
- destinations: (_) => _json(_),
466
- idempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
467
- layout: (_) => _json(_),
468
- stageArn: [],
469
- tags: (_) => _json(_),
470
- }));
471
- b.m("POST").h(headers).b(body);
472
- return b.build();
473
- };
474
- export const se_StartParticipantReplicationCommand = async (input, context) => {
475
- const b = rb(input, context);
476
- const headers = {
477
- "content-type": "application/json",
478
- };
479
- b.bp("/StartParticipantReplication");
480
- let body;
481
- body = JSON.stringify(take(input, {
482
- attributes: (_) => _json(_),
483
- destinationStageArn: [],
484
- participantId: [],
485
- reconnectWindowSeconds: [],
486
- sourceStageArn: [],
487
- }));
488
- b.m("POST").h(headers).b(body);
489
- return b.build();
490
- };
491
- export const se_StopCompositionCommand = async (input, context) => {
492
- const b = rb(input, context);
493
- const headers = {
494
- "content-type": "application/json",
495
- };
496
- b.bp("/StopComposition");
497
- let body;
498
- body = JSON.stringify(take(input, {
499
- arn: [],
500
- }));
501
- b.m("POST").h(headers).b(body);
502
- return b.build();
503
- };
504
- export const se_StopParticipantReplicationCommand = async (input, context) => {
505
- const b = rb(input, context);
506
- const headers = {
507
- "content-type": "application/json",
508
- };
509
- b.bp("/StopParticipantReplication");
510
- let body;
511
- body = JSON.stringify(take(input, {
512
- destinationStageArn: [],
513
- participantId: [],
514
- sourceStageArn: [],
515
- }));
516
- b.m("POST").h(headers).b(body);
517
- return b.build();
518
- };
519
- export const se_TagResourceCommand = async (input, context) => {
520
- const b = rb(input, context);
521
- const headers = {
522
- "content-type": "application/json",
523
- };
524
- b.bp("/tags/{resourceArn}");
525
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
526
- let body;
527
- body = JSON.stringify(take(input, {
528
- tags: (_) => _json(_),
529
- }));
530
- b.m("POST").h(headers).b(body);
531
- return b.build();
532
- };
533
- export const se_UntagResourceCommand = async (input, context) => {
534
- const b = rb(input, context);
535
- const headers = {};
536
- b.bp("/tags/{resourceArn}");
537
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
538
- const query = map({
539
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
540
- });
541
- let body;
542
- b.m("DELETE").h(headers).q(query).b(body);
543
- return b.build();
544
- };
545
- export const se_UpdateIngestConfigurationCommand = async (input, context) => {
546
- const b = rb(input, context);
547
- const headers = {
548
- "content-type": "application/json",
549
- };
550
- b.bp("/UpdateIngestConfiguration");
551
- let body;
552
- body = JSON.stringify(take(input, {
553
- arn: [],
554
- stageArn: [],
555
- }));
556
- b.m("POST").h(headers).b(body);
557
- return b.build();
558
- };
559
- export const se_UpdateStageCommand = async (input, context) => {
560
- const b = rb(input, context);
561
- const headers = {
562
- "content-type": "application/json",
563
- };
564
- b.bp("/UpdateStage");
565
- let body;
566
- body = JSON.stringify(take(input, {
567
- arn: [],
568
- autoParticipantRecordingConfiguration: (_) => _json(_),
569
- name: [],
570
- }));
571
- b.m("POST").h(headers).b(body);
572
- return b.build();
573
- };
574
- export const de_CreateEncoderConfigurationCommand = async (output, context) => {
575
- if (output.statusCode !== 200 && output.statusCode >= 300) {
576
- return de_CommandError(output, context);
577
- }
578
- const contents = map({
579
- $metadata: deserializeMetadata(output),
580
- });
581
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
582
- const doc = take(data, {
583
- encoderConfiguration: (_) => de_EncoderConfiguration(_, context),
584
- });
585
- Object.assign(contents, doc);
586
- return contents;
587
- };
588
- export const de_CreateIngestConfigurationCommand = async (output, context) => {
589
- if (output.statusCode !== 200 && output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const contents = map({
593
- $metadata: deserializeMetadata(output),
594
- });
595
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
596
- const doc = take(data, {
597
- ingestConfiguration: _json,
598
- });
599
- Object.assign(contents, doc);
600
- return contents;
601
- };
602
- export const de_CreateParticipantTokenCommand = async (output, context) => {
603
- if (output.statusCode !== 200 && output.statusCode >= 300) {
604
- return de_CommandError(output, context);
605
- }
606
- const contents = map({
607
- $metadata: deserializeMetadata(output),
608
- });
609
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
610
- const doc = take(data, {
611
- participantToken: (_) => de_ParticipantToken(_, context),
612
- });
613
- Object.assign(contents, doc);
614
- return contents;
615
- };
616
- export const de_CreateStageCommand = async (output, context) => {
617
- if (output.statusCode !== 200 && output.statusCode >= 300) {
618
- return de_CommandError(output, context);
619
- }
620
- const contents = map({
621
- $metadata: deserializeMetadata(output),
622
- });
623
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
624
- const doc = take(data, {
625
- participantTokens: (_) => de_ParticipantTokenList(_, context),
626
- stage: _json,
627
- });
628
- Object.assign(contents, doc);
629
- return contents;
630
- };
631
- export const de_CreateStorageConfigurationCommand = async (output, context) => {
632
- if (output.statusCode !== 200 && output.statusCode >= 300) {
633
- return de_CommandError(output, context);
634
- }
635
- const contents = map({
636
- $metadata: deserializeMetadata(output),
637
- });
638
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
639
- const doc = take(data, {
640
- storageConfiguration: _json,
641
- });
642
- Object.assign(contents, doc);
643
- return contents;
644
- };
645
- export const de_DeleteEncoderConfigurationCommand = async (output, context) => {
646
- if (output.statusCode !== 200 && output.statusCode >= 300) {
647
- return de_CommandError(output, context);
648
- }
649
- const contents = map({
650
- $metadata: deserializeMetadata(output),
651
- });
652
- await collectBody(output.body, context);
653
- return contents;
654
- };
655
- export const de_DeleteIngestConfigurationCommand = async (output, context) => {
656
- if (output.statusCode !== 200 && output.statusCode >= 300) {
657
- return de_CommandError(output, context);
658
- }
659
- const contents = map({
660
- $metadata: deserializeMetadata(output),
661
- });
662
- await collectBody(output.body, context);
663
- return contents;
664
- };
665
- export const de_DeletePublicKeyCommand = async (output, context) => {
666
- if (output.statusCode !== 200 && output.statusCode >= 300) {
667
- return de_CommandError(output, context);
668
- }
669
- const contents = map({
670
- $metadata: deserializeMetadata(output),
671
- });
672
- await collectBody(output.body, context);
673
- return contents;
674
- };
675
- export const de_DeleteStageCommand = async (output, context) => {
676
- if (output.statusCode !== 200 && output.statusCode >= 300) {
677
- return de_CommandError(output, context);
678
- }
679
- const contents = map({
680
- $metadata: deserializeMetadata(output),
681
- });
682
- await collectBody(output.body, context);
683
- return contents;
684
- };
685
- export const de_DeleteStorageConfigurationCommand = async (output, context) => {
686
- if (output.statusCode !== 200 && output.statusCode >= 300) {
687
- return de_CommandError(output, context);
688
- }
689
- const contents = map({
690
- $metadata: deserializeMetadata(output),
691
- });
692
- await collectBody(output.body, context);
693
- return contents;
694
- };
695
- export const de_DisconnectParticipantCommand = async (output, context) => {
696
- if (output.statusCode !== 200 && output.statusCode >= 300) {
697
- return de_CommandError(output, context);
698
- }
699
- const contents = map({
700
- $metadata: deserializeMetadata(output),
701
- });
702
- await collectBody(output.body, context);
703
- return contents;
704
- };
705
- export const de_GetCompositionCommand = async (output, context) => {
706
- if (output.statusCode !== 200 && output.statusCode >= 300) {
707
- return de_CommandError(output, context);
708
- }
709
- const contents = map({
710
- $metadata: deserializeMetadata(output),
711
- });
712
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
713
- const doc = take(data, {
714
- composition: (_) => de_Composition(_, context),
715
- });
716
- Object.assign(contents, doc);
717
- return contents;
718
- };
719
- export const de_GetEncoderConfigurationCommand = async (output, context) => {
720
- if (output.statusCode !== 200 && output.statusCode >= 300) {
721
- return de_CommandError(output, context);
722
- }
723
- const contents = map({
724
- $metadata: deserializeMetadata(output),
725
- });
726
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
727
- const doc = take(data, {
728
- encoderConfiguration: (_) => de_EncoderConfiguration(_, context),
729
- });
730
- Object.assign(contents, doc);
731
- return contents;
732
- };
733
- export const de_GetIngestConfigurationCommand = async (output, context) => {
734
- if (output.statusCode !== 200 && output.statusCode >= 300) {
735
- return de_CommandError(output, context);
736
- }
737
- const contents = map({
738
- $metadata: deserializeMetadata(output),
739
- });
740
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
741
- const doc = take(data, {
742
- ingestConfiguration: _json,
743
- });
744
- Object.assign(contents, doc);
745
- return contents;
746
- };
747
- export const de_GetParticipantCommand = async (output, context) => {
748
- if (output.statusCode !== 200 && output.statusCode >= 300) {
749
- return de_CommandError(output, context);
750
- }
751
- const contents = map({
752
- $metadata: deserializeMetadata(output),
753
- });
754
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
755
- const doc = take(data, {
756
- participant: (_) => de_Participant(_, context),
757
- });
758
- Object.assign(contents, doc);
759
- return contents;
760
- };
761
- export const de_GetPublicKeyCommand = async (output, context) => {
762
- if (output.statusCode !== 200 && output.statusCode >= 300) {
763
- return de_CommandError(output, context);
764
- }
765
- const contents = map({
766
- $metadata: deserializeMetadata(output),
767
- });
768
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
769
- const doc = take(data, {
770
- publicKey: _json,
771
- });
772
- Object.assign(contents, doc);
773
- return contents;
774
- };
775
- export const de_GetStageCommand = async (output, context) => {
776
- if (output.statusCode !== 200 && output.statusCode >= 300) {
777
- return de_CommandError(output, context);
778
- }
779
- const contents = map({
780
- $metadata: deserializeMetadata(output),
781
- });
782
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
783
- const doc = take(data, {
784
- stage: _json,
785
- });
786
- Object.assign(contents, doc);
787
- return contents;
788
- };
789
- export const de_GetStageSessionCommand = async (output, context) => {
790
- if (output.statusCode !== 200 && output.statusCode >= 300) {
791
- return de_CommandError(output, context);
792
- }
793
- const contents = map({
794
- $metadata: deserializeMetadata(output),
795
- });
796
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
797
- const doc = take(data, {
798
- stageSession: (_) => de_StageSession(_, context),
799
- });
800
- Object.assign(contents, doc);
801
- return contents;
802
- };
803
- export const de_GetStorageConfigurationCommand = async (output, context) => {
804
- if (output.statusCode !== 200 && output.statusCode >= 300) {
805
- return de_CommandError(output, context);
806
- }
807
- const contents = map({
808
- $metadata: deserializeMetadata(output),
809
- });
810
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
811
- const doc = take(data, {
812
- storageConfiguration: _json,
813
- });
814
- Object.assign(contents, doc);
815
- return contents;
816
- };
817
- export const de_ImportPublicKeyCommand = async (output, context) => {
818
- if (output.statusCode !== 200 && output.statusCode >= 300) {
819
- return de_CommandError(output, context);
820
- }
821
- const contents = map({
822
- $metadata: deserializeMetadata(output),
823
- });
824
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
825
- const doc = take(data, {
826
- publicKey: _json,
827
- });
828
- Object.assign(contents, doc);
829
- return contents;
830
- };
831
- export const de_ListCompositionsCommand = async (output, context) => {
832
- if (output.statusCode !== 200 && output.statusCode >= 300) {
833
- return de_CommandError(output, context);
834
- }
835
- const contents = map({
836
- $metadata: deserializeMetadata(output),
837
- });
838
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
839
- const doc = take(data, {
840
- compositions: (_) => de_CompositionSummaryList(_, context),
841
- nextToken: __expectString,
842
- });
843
- Object.assign(contents, doc);
844
- return contents;
845
- };
846
- export const de_ListEncoderConfigurationsCommand = async (output, context) => {
847
- if (output.statusCode !== 200 && output.statusCode >= 300) {
848
- return de_CommandError(output, context);
849
- }
850
- const contents = map({
851
- $metadata: deserializeMetadata(output),
852
- });
853
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
854
- const doc = take(data, {
855
- encoderConfigurations: _json,
856
- nextToken: __expectString,
857
- });
858
- Object.assign(contents, doc);
859
- return contents;
860
- };
861
- export const de_ListIngestConfigurationsCommand = async (output, context) => {
862
- if (output.statusCode !== 200 && output.statusCode >= 300) {
863
- return de_CommandError(output, context);
864
- }
865
- const contents = map({
866
- $metadata: deserializeMetadata(output),
867
- });
868
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
869
- const doc = take(data, {
870
- ingestConfigurations: _json,
871
- nextToken: __expectString,
872
- });
873
- Object.assign(contents, doc);
874
- return contents;
875
- };
876
- export const de_ListParticipantEventsCommand = async (output, context) => {
877
- if (output.statusCode !== 200 && output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const contents = map({
881
- $metadata: deserializeMetadata(output),
882
- });
883
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
884
- const doc = take(data, {
885
- events: (_) => de_EventList(_, context),
886
- nextToken: __expectString,
887
- });
888
- Object.assign(contents, doc);
889
- return contents;
890
- };
891
- export const de_ListParticipantReplicasCommand = async (output, context) => {
892
- if (output.statusCode !== 200 && output.statusCode >= 300) {
893
- return de_CommandError(output, context);
894
- }
895
- const contents = map({
896
- $metadata: deserializeMetadata(output),
897
- });
898
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
899
- const doc = take(data, {
900
- nextToken: __expectString,
901
- replicas: _json,
902
- });
903
- Object.assign(contents, doc);
904
- return contents;
905
- };
906
- export const de_ListParticipantsCommand = async (output, context) => {
907
- if (output.statusCode !== 200 && output.statusCode >= 300) {
908
- return de_CommandError(output, context);
909
- }
910
- const contents = map({
911
- $metadata: deserializeMetadata(output),
912
- });
913
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
914
- const doc = take(data, {
915
- nextToken: __expectString,
916
- participants: (_) => de_ParticipantList(_, context),
917
- });
918
- Object.assign(contents, doc);
919
- return contents;
920
- };
921
- export const de_ListPublicKeysCommand = async (output, context) => {
922
- if (output.statusCode !== 200 && output.statusCode >= 300) {
923
- return de_CommandError(output, context);
924
- }
925
- const contents = map({
926
- $metadata: deserializeMetadata(output),
927
- });
928
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
929
- const doc = take(data, {
930
- nextToken: __expectString,
931
- publicKeys: _json,
932
- });
933
- Object.assign(contents, doc);
934
- return contents;
935
- };
936
- export const de_ListStagesCommand = async (output, context) => {
937
- if (output.statusCode !== 200 && output.statusCode >= 300) {
938
- return de_CommandError(output, context);
939
- }
940
- const contents = map({
941
- $metadata: deserializeMetadata(output),
942
- });
943
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
944
- const doc = take(data, {
945
- nextToken: __expectString,
946
- stages: _json,
947
- });
948
- Object.assign(contents, doc);
949
- return contents;
950
- };
951
- export const de_ListStageSessionsCommand = async (output, context) => {
952
- if (output.statusCode !== 200 && output.statusCode >= 300) {
953
- return de_CommandError(output, context);
954
- }
955
- const contents = map({
956
- $metadata: deserializeMetadata(output),
957
- });
958
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
959
- const doc = take(data, {
960
- nextToken: __expectString,
961
- stageSessions: (_) => de_StageSessionList(_, context),
962
- });
963
- Object.assign(contents, doc);
964
- return contents;
965
- };
966
- export const de_ListStorageConfigurationsCommand = async (output, context) => {
967
- if (output.statusCode !== 200 && output.statusCode >= 300) {
968
- return de_CommandError(output, context);
969
- }
970
- const contents = map({
971
- $metadata: deserializeMetadata(output),
972
- });
973
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
974
- const doc = take(data, {
975
- nextToken: __expectString,
976
- storageConfigurations: _json,
977
- });
978
- Object.assign(contents, doc);
979
- return contents;
980
- };
981
- export const de_ListTagsForResourceCommand = async (output, context) => {
982
- if (output.statusCode !== 200 && output.statusCode >= 300) {
983
- return de_CommandError(output, context);
984
- }
985
- const contents = map({
986
- $metadata: deserializeMetadata(output),
987
- });
988
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
989
- const doc = take(data, {
990
- tags: _json,
991
- });
992
- Object.assign(contents, doc);
993
- return contents;
994
- };
995
- export const de_StartCompositionCommand = async (output, context) => {
996
- if (output.statusCode !== 200 && output.statusCode >= 300) {
997
- return de_CommandError(output, context);
998
- }
999
- const contents = map({
1000
- $metadata: deserializeMetadata(output),
1001
- });
1002
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1003
- const doc = take(data, {
1004
- composition: (_) => de_Composition(_, context),
1005
- });
1006
- Object.assign(contents, doc);
1007
- return contents;
1008
- };
1009
- export const de_StartParticipantReplicationCommand = async (output, context) => {
1010
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
- return de_CommandError(output, context);
1012
- }
1013
- const contents = map({
1014
- $metadata: deserializeMetadata(output),
1015
- [_aCAO]: [, output.headers[_acao]],
1016
- [_aCEH]: [, output.headers[_aceh]],
1017
- [_cC]: [, output.headers[_cc]],
1018
- [_cSP]: [, output.headers[_csp]],
1019
- [_sTS]: [, output.headers[_sts]],
1020
- [_xCTO]: [, output.headers[_xcto]],
1021
- [_xFO]: [, output.headers[_xfo]],
1022
- });
1023
- await collectBody(output.body, context);
1024
- return contents;
1025
- };
1026
- export const de_StopCompositionCommand = async (output, context) => {
1027
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1028
- return de_CommandError(output, context);
1029
- }
1030
- const contents = map({
1031
- $metadata: deserializeMetadata(output),
1032
- });
1033
- await collectBody(output.body, context);
1034
- return contents;
1035
- };
1036
- export const de_StopParticipantReplicationCommand = async (output, context) => {
1037
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1038
- return de_CommandError(output, context);
1039
- }
1040
- const contents = map({
1041
- $metadata: deserializeMetadata(output),
1042
- [_aCAO]: [, output.headers[_acao]],
1043
- [_aCEH]: [, output.headers[_aceh]],
1044
- [_cC]: [, output.headers[_cc]],
1045
- [_cSP]: [, output.headers[_csp]],
1046
- [_sTS]: [, output.headers[_sts]],
1047
- [_xCTO]: [, output.headers[_xcto]],
1048
- [_xFO]: [, output.headers[_xfo]],
1049
- });
1050
- await collectBody(output.body, context);
1051
- return contents;
1052
- };
1053
- export const de_TagResourceCommand = async (output, context) => {
1054
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
- return de_CommandError(output, context);
1056
- }
1057
- const contents = map({
1058
- $metadata: deserializeMetadata(output),
1059
- });
1060
- await collectBody(output.body, context);
1061
- return contents;
1062
- };
1063
- export const de_UntagResourceCommand = async (output, context) => {
1064
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1065
- return de_CommandError(output, context);
1066
- }
1067
- const contents = map({
1068
- $metadata: deserializeMetadata(output),
1069
- });
1070
- await collectBody(output.body, context);
1071
- return contents;
1072
- };
1073
- export const de_UpdateIngestConfigurationCommand = async (output, context) => {
1074
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1075
- return de_CommandError(output, context);
1076
- }
1077
- const contents = map({
1078
- $metadata: deserializeMetadata(output),
1079
- });
1080
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1081
- const doc = take(data, {
1082
- ingestConfiguration: _json,
1083
- });
1084
- Object.assign(contents, doc);
1085
- return contents;
1086
- };
1087
- export const de_UpdateStageCommand = async (output, context) => {
1088
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1089
- return de_CommandError(output, context);
1090
- }
1091
- const contents = map({
1092
- $metadata: deserializeMetadata(output),
1093
- });
1094
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1095
- const doc = take(data, {
1096
- stage: _json,
1097
- });
1098
- Object.assign(contents, doc);
1099
- return contents;
1100
- };
1101
- const de_CommandError = async (output, context) => {
1102
- const parsedOutput = {
1103
- ...output,
1104
- body: await parseErrorBody(output.body, context),
1105
- };
1106
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1107
- switch (errorCode) {
1108
- case "AccessDeniedException":
1109
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1110
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1111
- case "ConflictException":
1112
- case "com.amazonaws.ivsrealtime#ConflictException":
1113
- throw await de_ConflictExceptionRes(parsedOutput, context);
1114
- case "InternalServerException":
1115
- case "com.amazonaws.ivsrealtime#InternalServerException":
1116
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1117
- case "PendingVerification":
1118
- case "com.amazonaws.ivsrealtime#PendingVerification":
1119
- throw await de_PendingVerificationRes(parsedOutput, context);
1120
- case "ResourceNotFoundException":
1121
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1122
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1123
- case "ServiceQuotaExceededException":
1124
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1125
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1126
- case "ValidationException":
1127
- case "com.amazonaws.ivsrealtime#ValidationException":
1128
- throw await de_ValidationExceptionRes(parsedOutput, context);
1129
- default:
1130
- const parsedBody = parsedOutput.body;
1131
- return throwDefaultError({
1132
- output,
1133
- parsedBody,
1134
- errorCode,
1135
- });
1136
- }
1137
- };
1138
- const throwDefaultError = withBaseException(__BaseException);
1139
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1140
- const contents = map({
1141
- [_aCAO]: [, parsedOutput.headers[_acao]],
1142
- [_aCEH]: [, parsedOutput.headers[_aceh]],
1143
- [_cC]: [, parsedOutput.headers[_cc]],
1144
- [_cSP]: [, parsedOutput.headers[_csp]],
1145
- [_sTS]: [, parsedOutput.headers[_sts]],
1146
- [_xCTO]: [, parsedOutput.headers[_xcto]],
1147
- [_xFO]: [, parsedOutput.headers[_xfo]],
1148
- [_xAET]: [, parsedOutput.headers[_xae]],
1149
- });
1150
- const data = parsedOutput.body;
1151
- const doc = take(data, {
1152
- exceptionMessage: __expectString,
1153
- });
1154
- Object.assign(contents, doc);
1155
- const exception = new AccessDeniedException({
1156
- $metadata: deserializeMetadata(parsedOutput),
1157
- ...contents,
1158
- });
1159
- return __decorateServiceException(exception, parsedOutput.body);
1160
- };
1161
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1162
- const contents = map({
1163
- [_aCAO]: [, parsedOutput.headers[_acao]],
1164
- [_aCEH]: [, parsedOutput.headers[_aceh]],
1165
- [_cC]: [, parsedOutput.headers[_cc]],
1166
- [_cSP]: [, parsedOutput.headers[_csp]],
1167
- [_sTS]: [, parsedOutput.headers[_sts]],
1168
- [_xCTO]: [, parsedOutput.headers[_xcto]],
1169
- [_xFO]: [, parsedOutput.headers[_xfo]],
1170
- [_xAET]: [, parsedOutput.headers[_xae]],
1171
- });
1172
- const data = parsedOutput.body;
1173
- const doc = take(data, {
1174
- exceptionMessage: __expectString,
1175
- });
1176
- Object.assign(contents, doc);
1177
- const exception = new ConflictException({
1178
- $metadata: deserializeMetadata(parsedOutput),
1179
- ...contents,
1180
- });
1181
- return __decorateServiceException(exception, parsedOutput.body);
1182
- };
1183
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1184
- const contents = map({
1185
- [_aCAO]: [, parsedOutput.headers[_acao]],
1186
- [_aCEH]: [, parsedOutput.headers[_aceh]],
1187
- [_cC]: [, parsedOutput.headers[_cc]],
1188
- [_cSP]: [, parsedOutput.headers[_csp]],
1189
- [_sTS]: [, parsedOutput.headers[_sts]],
1190
- [_xCTO]: [, parsedOutput.headers[_xcto]],
1191
- [_xFO]: [, parsedOutput.headers[_xfo]],
1192
- [_xAET]: [, parsedOutput.headers[_xae]],
1193
- });
1194
- const data = parsedOutput.body;
1195
- const doc = take(data, {
1196
- exceptionMessage: __expectString,
1197
- });
1198
- Object.assign(contents, doc);
1199
- const exception = new InternalServerException({
1200
- $metadata: deserializeMetadata(parsedOutput),
1201
- ...contents,
1202
- });
1203
- return __decorateServiceException(exception, parsedOutput.body);
1204
- };
1205
- const de_PendingVerificationRes = async (parsedOutput, context) => {
1206
- const contents = map({
1207
- [_aCAO]: [, parsedOutput.headers[_acao]],
1208
- [_aCEH]: [, parsedOutput.headers[_aceh]],
1209
- [_cC]: [, parsedOutput.headers[_cc]],
1210
- [_cSP]: [, parsedOutput.headers[_csp]],
1211
- [_sTS]: [, parsedOutput.headers[_sts]],
1212
- [_xCTO]: [, parsedOutput.headers[_xcto]],
1213
- [_xFO]: [, parsedOutput.headers[_xfo]],
1214
- [_xAET]: [, parsedOutput.headers[_xae]],
1215
- });
1216
- const data = parsedOutput.body;
1217
- const doc = take(data, {
1218
- exceptionMessage: __expectString,
1219
- });
1220
- Object.assign(contents, doc);
1221
- const exception = new PendingVerification({
1222
- $metadata: deserializeMetadata(parsedOutput),
1223
- ...contents,
1224
- });
1225
- return __decorateServiceException(exception, parsedOutput.body);
1226
- };
1227
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1228
- const contents = map({
1229
- [_aCAO]: [, parsedOutput.headers[_acao]],
1230
- [_aCEH]: [, parsedOutput.headers[_aceh]],
1231
- [_cC]: [, parsedOutput.headers[_cc]],
1232
- [_cSP]: [, parsedOutput.headers[_csp]],
1233
- [_sTS]: [, parsedOutput.headers[_sts]],
1234
- [_xCTO]: [, parsedOutput.headers[_xcto]],
1235
- [_xFO]: [, parsedOutput.headers[_xfo]],
1236
- [_xAET]: [, parsedOutput.headers[_xae]],
1237
- });
1238
- const data = parsedOutput.body;
1239
- const doc = take(data, {
1240
- exceptionMessage: __expectString,
1241
- });
1242
- Object.assign(contents, doc);
1243
- const exception = new ResourceNotFoundException({
1244
- $metadata: deserializeMetadata(parsedOutput),
1245
- ...contents,
1246
- });
1247
- return __decorateServiceException(exception, parsedOutput.body);
1248
- };
1249
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1250
- const contents = map({
1251
- [_aCAO]: [, parsedOutput.headers[_acao]],
1252
- [_aCEH]: [, parsedOutput.headers[_aceh]],
1253
- [_cC]: [, parsedOutput.headers[_cc]],
1254
- [_cSP]: [, parsedOutput.headers[_csp]],
1255
- [_sTS]: [, parsedOutput.headers[_sts]],
1256
- [_xCTO]: [, parsedOutput.headers[_xcto]],
1257
- [_xFO]: [, parsedOutput.headers[_xfo]],
1258
- [_xAET]: [, parsedOutput.headers[_xae]],
1259
- });
1260
- const data = parsedOutput.body;
1261
- const doc = take(data, {
1262
- exceptionMessage: __expectString,
1263
- });
1264
- Object.assign(contents, doc);
1265
- const exception = new ServiceQuotaExceededException({
1266
- $metadata: deserializeMetadata(parsedOutput),
1267
- ...contents,
1268
- });
1269
- return __decorateServiceException(exception, parsedOutput.body);
1270
- };
1271
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1272
- const contents = map({
1273
- [_aCAO]: [, parsedOutput.headers[_acao]],
1274
- [_aCEH]: [, parsedOutput.headers[_aceh]],
1275
- [_cC]: [, parsedOutput.headers[_cc]],
1276
- [_cSP]: [, parsedOutput.headers[_csp]],
1277
- [_sTS]: [, parsedOutput.headers[_sts]],
1278
- [_xCTO]: [, parsedOutput.headers[_xcto]],
1279
- [_xFO]: [, parsedOutput.headers[_xfo]],
1280
- [_xAET]: [, parsedOutput.headers[_xae]],
1281
- });
1282
- const data = parsedOutput.body;
1283
- const doc = take(data, {
1284
- exceptionMessage: __expectString,
1285
- });
1286
- Object.assign(contents, doc);
1287
- const exception = new ValidationException({
1288
- $metadata: deserializeMetadata(parsedOutput),
1289
- ...contents,
1290
- });
1291
- return __decorateServiceException(exception, parsedOutput.body);
1292
- };
1293
- const se_Video = (input, context) => {
1294
- return take(input, {
1295
- bitrate: [],
1296
- framerate: __serializeFloat,
1297
- height: [],
1298
- width: [],
1299
- });
1300
- };
1301
- const de_Composition = (output, context) => {
1302
- return take(output, {
1303
- arn: __expectString,
1304
- destinations: (_) => de_DestinationList(_, context),
1305
- endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1306
- layout: _json,
1307
- stageArn: __expectString,
1308
- startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1309
- state: __expectString,
1310
- tags: _json,
1311
- });
1312
- };
1313
- const de_CompositionSummary = (output, context) => {
1314
- return take(output, {
1315
- arn: __expectString,
1316
- destinations: (_) => de_DestinationSummaryList(_, context),
1317
- endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1318
- stageArn: __expectString,
1319
- startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1320
- state: __expectString,
1321
- tags: _json,
1322
- });
1323
- };
1324
- const de_CompositionSummaryList = (output, context) => {
1325
- const retVal = (output || [])
1326
- .filter((e) => e != null)
1327
- .map((entry) => {
1328
- return de_CompositionSummary(entry, context);
1329
- });
1330
- return retVal;
1331
- };
1332
- const de_Destination = (output, context) => {
1333
- return take(output, {
1334
- configuration: _json,
1335
- detail: _json,
1336
- endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1337
- id: __expectString,
1338
- startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1339
- state: __expectString,
1340
- });
1341
- };
1342
- const de_DestinationList = (output, context) => {
1343
- const retVal = (output || [])
1344
- .filter((e) => e != null)
1345
- .map((entry) => {
1346
- return de_Destination(entry, context);
1347
- });
1348
- return retVal;
1349
- };
1350
- const de_DestinationSummary = (output, context) => {
1351
- return take(output, {
1352
- endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1353
- id: __expectString,
1354
- startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1355
- state: __expectString,
1356
- });
1357
- };
1358
- const de_DestinationSummaryList = (output, context) => {
1359
- const retVal = (output || [])
1360
- .filter((e) => e != null)
1361
- .map((entry) => {
1362
- return de_DestinationSummary(entry, context);
1363
- });
1364
- return retVal;
1365
- };
1366
- const de_EncoderConfiguration = (output, context) => {
1367
- return take(output, {
1368
- arn: __expectString,
1369
- name: __expectString,
1370
- tags: _json,
1371
- video: (_) => de_Video(_, context),
1372
- });
1373
- };
1374
- const de_Event = (output, context) => {
1375
- return take(output, {
1376
- destinationSessionId: __expectString,
1377
- destinationStageArn: __expectString,
1378
- errorCode: __expectString,
1379
- eventTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1380
- name: __expectString,
1381
- participantId: __expectString,
1382
- remoteParticipantId: __expectString,
1383
- replica: __expectBoolean,
1384
- });
1385
- };
1386
- const de_EventList = (output, context) => {
1387
- const retVal = (output || [])
1388
- .filter((e) => e != null)
1389
- .map((entry) => {
1390
- return de_Event(entry, context);
1391
- });
1392
- return retVal;
1393
- };
1394
- const de_Participant = (output, context) => {
1395
- return take(output, {
1396
- attributes: _json,
1397
- browserName: __expectString,
1398
- browserVersion: __expectString,
1399
- firstJoinTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1400
- ispName: __expectString,
1401
- osName: __expectString,
1402
- osVersion: __expectString,
1403
- participantId: __expectString,
1404
- protocol: __expectString,
1405
- published: __expectBoolean,
1406
- recordingS3BucketName: __expectString,
1407
- recordingS3Prefix: __expectString,
1408
- recordingState: __expectString,
1409
- replicationState: __expectString,
1410
- replicationType: __expectString,
1411
- sdkVersion: __expectString,
1412
- sourceSessionId: __expectString,
1413
- sourceStageArn: __expectString,
1414
- state: __expectString,
1415
- userId: __expectString,
1416
- });
1417
- };
1418
- const de_ParticipantList = (output, context) => {
1419
- const retVal = (output || [])
1420
- .filter((e) => e != null)
1421
- .map((entry) => {
1422
- return de_ParticipantSummary(entry, context);
1423
- });
1424
- return retVal;
1425
- };
1426
- const de_ParticipantSummary = (output, context) => {
1427
- return take(output, {
1428
- firstJoinTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1429
- participantId: __expectString,
1430
- published: __expectBoolean,
1431
- recordingState: __expectString,
1432
- replicationState: __expectString,
1433
- replicationType: __expectString,
1434
- sourceSessionId: __expectString,
1435
- sourceStageArn: __expectString,
1436
- state: __expectString,
1437
- userId: __expectString,
1438
- });
1439
- };
1440
- const de_ParticipantToken = (output, context) => {
1441
- return take(output, {
1442
- attributes: _json,
1443
- capabilities: _json,
1444
- duration: __expectInt32,
1445
- expirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1446
- participantId: __expectString,
1447
- token: __expectString,
1448
- userId: __expectString,
1449
- });
1450
- };
1451
- const de_ParticipantTokenList = (output, context) => {
1452
- const retVal = (output || [])
1453
- .filter((e) => e != null)
1454
- .map((entry) => {
1455
- return de_ParticipantToken(entry, context);
1456
- });
1457
- return retVal;
1458
- };
1459
- const de_StageSession = (output, context) => {
1460
- return take(output, {
1461
- endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1462
- sessionId: __expectString,
1463
- startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1464
- });
1465
- };
1466
- const de_StageSessionList = (output, context) => {
1467
- const retVal = (output || [])
1468
- .filter((e) => e != null)
1469
- .map((entry) => {
1470
- return de_StageSessionSummary(entry, context);
1471
- });
1472
- return retVal;
1473
- };
1474
- const de_StageSessionSummary = (output, context) => {
1475
- return take(output, {
1476
- endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1477
- sessionId: __expectString,
1478
- startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1479
- });
1480
- };
1481
- const de_Video = (output, context) => {
1482
- return take(output, {
1483
- bitrate: __expectInt32,
1484
- framerate: __limitedParseFloat32,
1485
- height: __expectInt32,
1486
- width: __expectInt32,
1487
- });
1488
- };
1489
- const deserializeMetadata = (output) => ({
1490
- httpStatusCode: output.statusCode,
1491
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1492
- extendedRequestId: output.headers["x-amz-id-2"],
1493
- cfId: output.headers["x-amz-cf-id"],
1494
- });
1495
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1496
- const _aCAO = "accessControlAllowOrigin";
1497
- const _aCEH = "accessControlExposeHeaders";
1498
- const _acao = "access-control-allow-origin";
1499
- const _aceh = "access-control-expose-headers";
1500
- const _cC = "cacheControl";
1501
- const _cSP = "contentSecurityPolicy";
1502
- const _cc = "cache-control";
1503
- const _csp = "content-security-policy";
1504
- const _sTS = "strictTransportSecurity";
1505
- const _sts = "strict-transport-security";
1506
- const _tK = "tagKeys";
1507
- const _xAET = "xAmznErrorType";
1508
- const _xCTO = "xContentTypeOptions";
1509
- const _xFO = "xFrameOptions";
1510
- const _xae = "x-amzn-errortype";
1511
- const _xcto = "x-content-type-options";
1512
- const _xfo = "x-frame-options";