@aws-sdk/client-ivs-realtime 3.307.0 → 3.310.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.
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } 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
- export const serializeAws_restJson1CreateParticipantTokenCommand = async (input, context) => {
5
+ export const se_CreateParticipantTokenCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -10,12 +10,8 @@ export const serializeAws_restJson1CreateParticipantTokenCommand = async (input,
10
10
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateParticipantToken";
11
11
  let body;
12
12
  body = JSON.stringify({
13
- ...(input.attributes != null && {
14
- attributes: serializeAws_restJson1ParticipantTokenAttributes(input.attributes, context),
15
- }),
16
- ...(input.capabilities != null && {
17
- capabilities: serializeAws_restJson1ParticipantTokenCapabilities(input.capabilities, context),
18
- }),
13
+ ...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
14
+ ...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
19
15
  ...(input.duration != null && { duration: input.duration }),
20
16
  ...(input.stageArn != null && { stageArn: input.stageArn }),
21
17
  ...(input.userId != null && { userId: input.userId }),
@@ -30,7 +26,7 @@ export const serializeAws_restJson1CreateParticipantTokenCommand = async (input,
30
26
  body,
31
27
  });
32
28
  };
33
- export const serializeAws_restJson1CreateStageCommand = async (input, context) => {
29
+ export const se_CreateStageCommand = async (input, context) => {
34
30
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
31
  const headers = {
36
32
  "content-type": "application/json",
@@ -40,9 +36,9 @@ export const serializeAws_restJson1CreateStageCommand = async (input, context) =
40
36
  body = JSON.stringify({
41
37
  ...(input.name != null && { name: input.name }),
42
38
  ...(input.participantTokenConfigurations != null && {
43
- participantTokenConfigurations: serializeAws_restJson1ParticipantTokenConfigurations(input.participantTokenConfigurations, context),
39
+ participantTokenConfigurations: se_ParticipantTokenConfigurations(input.participantTokenConfigurations, context),
44
40
  }),
45
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
41
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
46
42
  });
47
43
  return new __HttpRequest({
48
44
  protocol,
@@ -54,7 +50,7 @@ export const serializeAws_restJson1CreateStageCommand = async (input, context) =
54
50
  body,
55
51
  });
56
52
  };
57
- export const serializeAws_restJson1DeleteStageCommand = async (input, context) => {
53
+ export const se_DeleteStageCommand = async (input, context) => {
58
54
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
55
  const headers = {
60
56
  "content-type": "application/json",
@@ -74,7 +70,7 @@ export const serializeAws_restJson1DeleteStageCommand = async (input, context) =
74
70
  body,
75
71
  });
76
72
  };
77
- export const serializeAws_restJson1DisconnectParticipantCommand = async (input, context) => {
73
+ export const se_DisconnectParticipantCommand = async (input, context) => {
78
74
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
75
  const headers = {
80
76
  "content-type": "application/json",
@@ -96,7 +92,7 @@ export const serializeAws_restJson1DisconnectParticipantCommand = async (input,
96
92
  body,
97
93
  });
98
94
  };
99
- export const serializeAws_restJson1GetStageCommand = async (input, context) => {
95
+ export const se_GetStageCommand = async (input, context) => {
100
96
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
101
97
  const headers = {
102
98
  "content-type": "application/json",
@@ -116,7 +112,7 @@ export const serializeAws_restJson1GetStageCommand = async (input, context) => {
116
112
  body,
117
113
  });
118
114
  };
119
- export const serializeAws_restJson1ListStagesCommand = async (input, context) => {
115
+ export const se_ListStagesCommand = async (input, context) => {
120
116
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
117
  const headers = {
122
118
  "content-type": "application/json",
@@ -137,7 +133,7 @@ export const serializeAws_restJson1ListStagesCommand = async (input, context) =>
137
133
  body,
138
134
  });
139
135
  };
140
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
136
+ export const se_ListTagsForResourceCommand = async (input, context) => {
141
137
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
138
  const headers = {};
143
139
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -153,7 +149,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
153
149
  body,
154
150
  });
155
151
  };
156
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
152
+ export const se_TagResourceCommand = async (input, context) => {
157
153
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
154
  const headers = {
159
155
  "content-type": "application/json",
@@ -162,7 +158,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
162
158
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
163
159
  let body;
164
160
  body = JSON.stringify({
165
- ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
161
+ ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
166
162
  });
167
163
  return new __HttpRequest({
168
164
  protocol,
@@ -174,7 +170,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
174
170
  body,
175
171
  });
176
172
  };
177
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
173
+ export const se_UntagResourceCommand = async (input, context) => {
178
174
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
175
  const headers = {};
180
176
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -197,7 +193,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
197
193
  body,
198
194
  });
199
195
  };
200
- export const serializeAws_restJson1UpdateStageCommand = async (input, context) => {
196
+ export const se_UpdateStageCommand = async (input, context) => {
201
197
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
198
  const headers = {
203
199
  "content-type": "application/json",
@@ -218,20 +214,20 @@ export const serializeAws_restJson1UpdateStageCommand = async (input, context) =
218
214
  body,
219
215
  });
220
216
  };
221
- export const deserializeAws_restJson1CreateParticipantTokenCommand = async (output, context) => {
217
+ export const de_CreateParticipantTokenCommand = async (output, context) => {
222
218
  if (output.statusCode !== 200 && output.statusCode >= 300) {
223
- return deserializeAws_restJson1CreateParticipantTokenCommandError(output, context);
219
+ return de_CreateParticipantTokenCommandError(output, context);
224
220
  }
225
221
  const contents = map({
226
222
  $metadata: deserializeMetadata(output),
227
223
  });
228
224
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
229
225
  if (data.participantToken != null) {
230
- contents.participantToken = deserializeAws_restJson1ParticipantToken(data.participantToken, context);
226
+ contents.participantToken = de_ParticipantToken(data.participantToken, context);
231
227
  }
232
228
  return contents;
233
229
  };
234
- const deserializeAws_restJson1CreateParticipantTokenCommandError = async (output, context) => {
230
+ const de_CreateParticipantTokenCommandError = async (output, context) => {
235
231
  const parsedOutput = {
236
232
  ...output,
237
233
  body: await parseErrorBody(output.body, context),
@@ -240,19 +236,19 @@ const deserializeAws_restJson1CreateParticipantTokenCommandError = async (output
240
236
  switch (errorCode) {
241
237
  case "AccessDeniedException":
242
238
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
243
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
239
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
244
240
  case "PendingVerification":
245
241
  case "com.amazonaws.ivsrealtime#PendingVerification":
246
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
242
+ throw await de_PendingVerificationRes(parsedOutput, context);
247
243
  case "ResourceNotFoundException":
248
244
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
249
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
245
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
250
246
  case "ServiceQuotaExceededException":
251
247
  case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
252
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
248
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
253
249
  case "ValidationException":
254
250
  case "com.amazonaws.ivsrealtime#ValidationException":
255
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
251
+ throw await de_ValidationExceptionRes(parsedOutput, context);
256
252
  default:
257
253
  const parsedBody = parsedOutput.body;
258
254
  throwDefaultError({
@@ -263,23 +259,23 @@ const deserializeAws_restJson1CreateParticipantTokenCommandError = async (output
263
259
  });
264
260
  }
265
261
  };
266
- export const deserializeAws_restJson1CreateStageCommand = async (output, context) => {
262
+ export const de_CreateStageCommand = async (output, context) => {
267
263
  if (output.statusCode !== 200 && output.statusCode >= 300) {
268
- return deserializeAws_restJson1CreateStageCommandError(output, context);
264
+ return de_CreateStageCommandError(output, context);
269
265
  }
270
266
  const contents = map({
271
267
  $metadata: deserializeMetadata(output),
272
268
  });
273
269
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
274
270
  if (data.participantTokens != null) {
275
- contents.participantTokens = deserializeAws_restJson1ParticipantTokenList(data.participantTokens, context);
271
+ contents.participantTokens = de_ParticipantTokenList(data.participantTokens, context);
276
272
  }
277
273
  if (data.stage != null) {
278
- contents.stage = deserializeAws_restJson1Stage(data.stage, context);
274
+ contents.stage = de_Stage(data.stage, context);
279
275
  }
280
276
  return contents;
281
277
  };
282
- const deserializeAws_restJson1CreateStageCommandError = async (output, context) => {
278
+ const de_CreateStageCommandError = async (output, context) => {
283
279
  const parsedOutput = {
284
280
  ...output,
285
281
  body: await parseErrorBody(output.body, context),
@@ -288,16 +284,16 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
288
284
  switch (errorCode) {
289
285
  case "AccessDeniedException":
290
286
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
291
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
287
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
292
288
  case "PendingVerification":
293
289
  case "com.amazonaws.ivsrealtime#PendingVerification":
294
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
290
+ throw await de_PendingVerificationRes(parsedOutput, context);
295
291
  case "ServiceQuotaExceededException":
296
292
  case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
297
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
293
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
298
294
  case "ValidationException":
299
295
  case "com.amazonaws.ivsrealtime#ValidationException":
300
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
296
+ throw await de_ValidationExceptionRes(parsedOutput, context);
301
297
  default:
302
298
  const parsedBody = parsedOutput.body;
303
299
  throwDefaultError({
@@ -308,9 +304,9 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
308
304
  });
309
305
  }
310
306
  };
311
- export const deserializeAws_restJson1DeleteStageCommand = async (output, context) => {
307
+ export const de_DeleteStageCommand = async (output, context) => {
312
308
  if (output.statusCode !== 200 && output.statusCode >= 300) {
313
- return deserializeAws_restJson1DeleteStageCommandError(output, context);
309
+ return de_DeleteStageCommandError(output, context);
314
310
  }
315
311
  const contents = map({
316
312
  $metadata: deserializeMetadata(output),
@@ -318,7 +314,7 @@ export const deserializeAws_restJson1DeleteStageCommand = async (output, context
318
314
  await collectBody(output.body, context);
319
315
  return contents;
320
316
  };
321
- const deserializeAws_restJson1DeleteStageCommandError = async (output, context) => {
317
+ const de_DeleteStageCommandError = async (output, context) => {
322
318
  const parsedOutput = {
323
319
  ...output,
324
320
  body: await parseErrorBody(output.body, context),
@@ -327,19 +323,19 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
327
323
  switch (errorCode) {
328
324
  case "AccessDeniedException":
329
325
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
330
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
326
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
331
327
  case "ConflictException":
332
328
  case "com.amazonaws.ivsrealtime#ConflictException":
333
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
329
+ throw await de_ConflictExceptionRes(parsedOutput, context);
334
330
  case "PendingVerification":
335
331
  case "com.amazonaws.ivsrealtime#PendingVerification":
336
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
332
+ throw await de_PendingVerificationRes(parsedOutput, context);
337
333
  case "ResourceNotFoundException":
338
334
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
339
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
335
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
340
336
  case "ValidationException":
341
337
  case "com.amazonaws.ivsrealtime#ValidationException":
342
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
338
+ throw await de_ValidationExceptionRes(parsedOutput, context);
343
339
  default:
344
340
  const parsedBody = parsedOutput.body;
345
341
  throwDefaultError({
@@ -350,9 +346,9 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
350
346
  });
351
347
  }
352
348
  };
353
- export const deserializeAws_restJson1DisconnectParticipantCommand = async (output, context) => {
349
+ export const de_DisconnectParticipantCommand = async (output, context) => {
354
350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
355
- return deserializeAws_restJson1DisconnectParticipantCommandError(output, context);
351
+ return de_DisconnectParticipantCommandError(output, context);
356
352
  }
357
353
  const contents = map({
358
354
  $metadata: deserializeMetadata(output),
@@ -360,7 +356,7 @@ export const deserializeAws_restJson1DisconnectParticipantCommand = async (outpu
360
356
  await collectBody(output.body, context);
361
357
  return contents;
362
358
  };
363
- const deserializeAws_restJson1DisconnectParticipantCommandError = async (output, context) => {
359
+ const de_DisconnectParticipantCommandError = async (output, context) => {
364
360
  const parsedOutput = {
365
361
  ...output,
366
362
  body: await parseErrorBody(output.body, context),
@@ -369,16 +365,16 @@ const deserializeAws_restJson1DisconnectParticipantCommandError = async (output,
369
365
  switch (errorCode) {
370
366
  case "AccessDeniedException":
371
367
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
372
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
368
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
373
369
  case "PendingVerification":
374
370
  case "com.amazonaws.ivsrealtime#PendingVerification":
375
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
371
+ throw await de_PendingVerificationRes(parsedOutput, context);
376
372
  case "ResourceNotFoundException":
377
373
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
378
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
374
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
379
375
  case "ValidationException":
380
376
  case "com.amazonaws.ivsrealtime#ValidationException":
381
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
377
+ throw await de_ValidationExceptionRes(parsedOutput, context);
382
378
  default:
383
379
  const parsedBody = parsedOutput.body;
384
380
  throwDefaultError({
@@ -389,20 +385,20 @@ const deserializeAws_restJson1DisconnectParticipantCommandError = async (output,
389
385
  });
390
386
  }
391
387
  };
392
- export const deserializeAws_restJson1GetStageCommand = async (output, context) => {
388
+ export const de_GetStageCommand = async (output, context) => {
393
389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
394
- return deserializeAws_restJson1GetStageCommandError(output, context);
390
+ return de_GetStageCommandError(output, context);
395
391
  }
396
392
  const contents = map({
397
393
  $metadata: deserializeMetadata(output),
398
394
  });
399
395
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
400
396
  if (data.stage != null) {
401
- contents.stage = deserializeAws_restJson1Stage(data.stage, context);
397
+ contents.stage = de_Stage(data.stage, context);
402
398
  }
403
399
  return contents;
404
400
  };
405
- const deserializeAws_restJson1GetStageCommandError = async (output, context) => {
401
+ const de_GetStageCommandError = async (output, context) => {
406
402
  const parsedOutput = {
407
403
  ...output,
408
404
  body: await parseErrorBody(output.body, context),
@@ -411,13 +407,13 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
411
407
  switch (errorCode) {
412
408
  case "AccessDeniedException":
413
409
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
414
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
410
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
415
411
  case "ResourceNotFoundException":
416
412
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
417
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
413
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
418
414
  case "ValidationException":
419
415
  case "com.amazonaws.ivsrealtime#ValidationException":
420
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
416
+ throw await de_ValidationExceptionRes(parsedOutput, context);
421
417
  default:
422
418
  const parsedBody = parsedOutput.body;
423
419
  throwDefaultError({
@@ -428,9 +424,9 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
428
424
  });
429
425
  }
430
426
  };
431
- export const deserializeAws_restJson1ListStagesCommand = async (output, context) => {
427
+ export const de_ListStagesCommand = async (output, context) => {
432
428
  if (output.statusCode !== 200 && output.statusCode >= 300) {
433
- return deserializeAws_restJson1ListStagesCommandError(output, context);
429
+ return de_ListStagesCommandError(output, context);
434
430
  }
435
431
  const contents = map({
436
432
  $metadata: deserializeMetadata(output),
@@ -440,11 +436,11 @@ export const deserializeAws_restJson1ListStagesCommand = async (output, context)
440
436
  contents.nextToken = __expectString(data.nextToken);
441
437
  }
442
438
  if (data.stages != null) {
443
- contents.stages = deserializeAws_restJson1StageSummaryList(data.stages, context);
439
+ contents.stages = de_StageSummaryList(data.stages, context);
444
440
  }
445
441
  return contents;
446
442
  };
447
- const deserializeAws_restJson1ListStagesCommandError = async (output, context) => {
443
+ const de_ListStagesCommandError = async (output, context) => {
448
444
  const parsedOutput = {
449
445
  ...output,
450
446
  body: await parseErrorBody(output.body, context),
@@ -453,13 +449,13 @@ const deserializeAws_restJson1ListStagesCommandError = async (output, context) =
453
449
  switch (errorCode) {
454
450
  case "AccessDeniedException":
455
451
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
456
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
452
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
457
453
  case "ConflictException":
458
454
  case "com.amazonaws.ivsrealtime#ConflictException":
459
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
455
+ throw await de_ConflictExceptionRes(parsedOutput, context);
460
456
  case "ValidationException":
461
457
  case "com.amazonaws.ivsrealtime#ValidationException":
462
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
458
+ throw await de_ValidationExceptionRes(parsedOutput, context);
463
459
  default:
464
460
  const parsedBody = parsedOutput.body;
465
461
  throwDefaultError({
@@ -470,20 +466,20 @@ const deserializeAws_restJson1ListStagesCommandError = async (output, context) =
470
466
  });
471
467
  }
472
468
  };
473
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
469
+ export const de_ListTagsForResourceCommand = async (output, context) => {
474
470
  if (output.statusCode !== 200 && output.statusCode >= 300) {
475
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
471
+ return de_ListTagsForResourceCommandError(output, context);
476
472
  }
477
473
  const contents = map({
478
474
  $metadata: deserializeMetadata(output),
479
475
  });
480
476
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
481
477
  if (data.tags != null) {
482
- contents.tags = deserializeAws_restJson1Tags(data.tags, context);
478
+ contents.tags = de_Tags(data.tags, context);
483
479
  }
484
480
  return contents;
485
481
  };
486
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
482
+ const de_ListTagsForResourceCommandError = async (output, context) => {
487
483
  const parsedOutput = {
488
484
  ...output,
489
485
  body: await parseErrorBody(output.body, context),
@@ -492,13 +488,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
492
488
  switch (errorCode) {
493
489
  case "InternalServerException":
494
490
  case "com.amazonaws.ivsrealtime#InternalServerException":
495
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
491
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
496
492
  case "ResourceNotFoundException":
497
493
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
498
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
494
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
499
495
  case "ValidationException":
500
496
  case "com.amazonaws.ivsrealtime#ValidationException":
501
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
497
+ throw await de_ValidationExceptionRes(parsedOutput, context);
502
498
  default:
503
499
  const parsedBody = parsedOutput.body;
504
500
  throwDefaultError({
@@ -509,9 +505,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
509
505
  });
510
506
  }
511
507
  };
512
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
508
+ export const de_TagResourceCommand = async (output, context) => {
513
509
  if (output.statusCode !== 200 && output.statusCode >= 300) {
514
- return deserializeAws_restJson1TagResourceCommandError(output, context);
510
+ return de_TagResourceCommandError(output, context);
515
511
  }
516
512
  const contents = map({
517
513
  $metadata: deserializeMetadata(output),
@@ -519,7 +515,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
519
515
  await collectBody(output.body, context);
520
516
  return contents;
521
517
  };
522
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
518
+ const de_TagResourceCommandError = async (output, context) => {
523
519
  const parsedOutput = {
524
520
  ...output,
525
521
  body: await parseErrorBody(output.body, context),
@@ -528,13 +524,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
528
524
  switch (errorCode) {
529
525
  case "InternalServerException":
530
526
  case "com.amazonaws.ivsrealtime#InternalServerException":
531
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
527
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
532
528
  case "ResourceNotFoundException":
533
529
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
534
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
530
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
535
531
  case "ValidationException":
536
532
  case "com.amazonaws.ivsrealtime#ValidationException":
537
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
533
+ throw await de_ValidationExceptionRes(parsedOutput, context);
538
534
  default:
539
535
  const parsedBody = parsedOutput.body;
540
536
  throwDefaultError({
@@ -545,9 +541,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
545
541
  });
546
542
  }
547
543
  };
548
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
544
+ export const de_UntagResourceCommand = async (output, context) => {
549
545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
550
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
546
+ return de_UntagResourceCommandError(output, context);
551
547
  }
552
548
  const contents = map({
553
549
  $metadata: deserializeMetadata(output),
@@ -555,7 +551,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
555
551
  await collectBody(output.body, context);
556
552
  return contents;
557
553
  };
558
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
554
+ const de_UntagResourceCommandError = async (output, context) => {
559
555
  const parsedOutput = {
560
556
  ...output,
561
557
  body: await parseErrorBody(output.body, context),
@@ -564,13 +560,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
564
560
  switch (errorCode) {
565
561
  case "InternalServerException":
566
562
  case "com.amazonaws.ivsrealtime#InternalServerException":
567
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
563
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
568
564
  case "ResourceNotFoundException":
569
565
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
570
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
566
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
571
567
  case "ValidationException":
572
568
  case "com.amazonaws.ivsrealtime#ValidationException":
573
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
569
+ throw await de_ValidationExceptionRes(parsedOutput, context);
574
570
  default:
575
571
  const parsedBody = parsedOutput.body;
576
572
  throwDefaultError({
@@ -581,20 +577,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
581
577
  });
582
578
  }
583
579
  };
584
- export const deserializeAws_restJson1UpdateStageCommand = async (output, context) => {
580
+ export const de_UpdateStageCommand = async (output, context) => {
585
581
  if (output.statusCode !== 200 && output.statusCode >= 300) {
586
- return deserializeAws_restJson1UpdateStageCommandError(output, context);
582
+ return de_UpdateStageCommandError(output, context);
587
583
  }
588
584
  const contents = map({
589
585
  $metadata: deserializeMetadata(output),
590
586
  });
591
587
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
592
588
  if (data.stage != null) {
593
- contents.stage = deserializeAws_restJson1Stage(data.stage, context);
589
+ contents.stage = de_Stage(data.stage, context);
594
590
  }
595
591
  return contents;
596
592
  };
597
- const deserializeAws_restJson1UpdateStageCommandError = async (output, context) => {
593
+ const de_UpdateStageCommandError = async (output, context) => {
598
594
  const parsedOutput = {
599
595
  ...output,
600
596
  body: await parseErrorBody(output.body, context),
@@ -603,19 +599,19 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
603
599
  switch (errorCode) {
604
600
  case "AccessDeniedException":
605
601
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
606
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
602
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
607
603
  case "PendingVerification":
608
604
  case "com.amazonaws.ivsrealtime#PendingVerification":
609
- throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
605
+ throw await de_PendingVerificationRes(parsedOutput, context);
610
606
  case "ResourceNotFoundException":
611
607
  case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
612
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
608
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
613
609
  case "ServiceQuotaExceededException":
614
610
  case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
615
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
611
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
616
612
  case "ValidationException":
617
613
  case "com.amazonaws.ivsrealtime#ValidationException":
618
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
614
+ throw await de_ValidationExceptionRes(parsedOutput, context);
619
615
  default:
620
616
  const parsedBody = parsedOutput.body;
621
617
  throwDefaultError({
@@ -627,7 +623,7 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
627
623
  }
628
624
  };
629
625
  const map = __map;
630
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
626
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
631
627
  const contents = map({});
632
628
  const data = parsedOutput.body;
633
629
  if (data.exceptionMessage != null) {
@@ -639,7 +635,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
639
635
  });
640
636
  return __decorateServiceException(exception, parsedOutput.body);
641
637
  };
642
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
638
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
643
639
  const contents = map({});
644
640
  const data = parsedOutput.body;
645
641
  if (data.exceptionMessage != null) {
@@ -651,7 +647,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
651
647
  });
652
648
  return __decorateServiceException(exception, parsedOutput.body);
653
649
  };
654
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
650
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
655
651
  const contents = map({});
656
652
  const data = parsedOutput.body;
657
653
  if (data.exceptionMessage != null) {
@@ -663,7 +659,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
663
659
  });
664
660
  return __decorateServiceException(exception, parsedOutput.body);
665
661
  };
666
- const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput, context) => {
662
+ const de_PendingVerificationRes = async (parsedOutput, context) => {
667
663
  const contents = map({});
668
664
  const data = parsedOutput.body;
669
665
  if (data.exceptionMessage != null) {
@@ -675,7 +671,7 @@ const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput,
675
671
  });
676
672
  return __decorateServiceException(exception, parsedOutput.body);
677
673
  };
678
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
674
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
679
675
  const contents = map({});
680
676
  const data = parsedOutput.body;
681
677
  if (data.exceptionMessage != null) {
@@ -687,7 +683,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
687
683
  });
688
684
  return __decorateServiceException(exception, parsedOutput.body);
689
685
  };
690
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
686
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
691
687
  const contents = map({});
692
688
  const data = parsedOutput.body;
693
689
  if (data.exceptionMessage != null) {
@@ -699,7 +695,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
699
695
  });
700
696
  return __decorateServiceException(exception, parsedOutput.body);
701
697
  };
702
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
698
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
703
699
  const contents = map({});
704
700
  const data = parsedOutput.body;
705
701
  if (data.exceptionMessage != null) {
@@ -711,7 +707,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
711
707
  });
712
708
  return __decorateServiceException(exception, parsedOutput.body);
713
709
  };
714
- const serializeAws_restJson1ParticipantTokenAttributes = (input, context) => {
710
+ const se_ParticipantTokenAttributes = (input, context) => {
715
711
  return Object.entries(input).reduce((acc, [key, value]) => {
716
712
  if (value === null) {
717
713
  return acc;
@@ -720,33 +716,29 @@ const serializeAws_restJson1ParticipantTokenAttributes = (input, context) => {
720
716
  return acc;
721
717
  }, {});
722
718
  };
723
- const serializeAws_restJson1ParticipantTokenCapabilities = (input, context) => {
719
+ const se_ParticipantTokenCapabilities = (input, context) => {
724
720
  return input
725
721
  .filter((e) => e != null)
726
722
  .map((entry) => {
727
723
  return entry;
728
724
  });
729
725
  };
730
- const serializeAws_restJson1ParticipantTokenConfiguration = (input, context) => {
726
+ const se_ParticipantTokenConfiguration = (input, context) => {
731
727
  return {
732
- ...(input.attributes != null && {
733
- attributes: serializeAws_restJson1ParticipantTokenAttributes(input.attributes, context),
734
- }),
735
- ...(input.capabilities != null && {
736
- capabilities: serializeAws_restJson1ParticipantTokenCapabilities(input.capabilities, context),
737
- }),
728
+ ...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
729
+ ...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
738
730
  ...(input.duration != null && { duration: input.duration }),
739
731
  ...(input.userId != null && { userId: input.userId }),
740
732
  };
741
733
  };
742
- const serializeAws_restJson1ParticipantTokenConfigurations = (input, context) => {
734
+ const se_ParticipantTokenConfigurations = (input, context) => {
743
735
  return input
744
736
  .filter((e) => e != null)
745
737
  .map((entry) => {
746
- return serializeAws_restJson1ParticipantTokenConfiguration(entry, context);
738
+ return se_ParticipantTokenConfiguration(entry, context);
747
739
  });
748
740
  };
749
- const serializeAws_restJson1Tags = (input, context) => {
741
+ const se_Tags = (input, context) => {
750
742
  return Object.entries(input).reduce((acc, [key, value]) => {
751
743
  if (value === null) {
752
744
  return acc;
@@ -755,14 +747,10 @@ const serializeAws_restJson1Tags = (input, context) => {
755
747
  return acc;
756
748
  }, {});
757
749
  };
758
- const deserializeAws_restJson1ParticipantToken = (output, context) => {
750
+ const de_ParticipantToken = (output, context) => {
759
751
  return {
760
- attributes: output.attributes != null
761
- ? deserializeAws_restJson1ParticipantTokenAttributes(output.attributes, context)
762
- : undefined,
763
- capabilities: output.capabilities != null
764
- ? deserializeAws_restJson1ParticipantTokenCapabilities(output.capabilities, context)
765
- : undefined,
752
+ attributes: output.attributes != null ? de_ParticipantTokenAttributes(output.attributes, context) : undefined,
753
+ capabilities: output.capabilities != null ? de_ParticipantTokenCapabilities(output.capabilities, context) : undefined,
766
754
  duration: __expectInt32(output.duration),
767
755
  expirationTime: output.expirationTime != null
768
756
  ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.expirationTime))
@@ -772,7 +760,7 @@ const deserializeAws_restJson1ParticipantToken = (output, context) => {
772
760
  userId: __expectString(output.userId),
773
761
  };
774
762
  };
775
- const deserializeAws_restJson1ParticipantTokenAttributes = (output, context) => {
763
+ const de_ParticipantTokenAttributes = (output, context) => {
776
764
  return Object.entries(output).reduce((acc, [key, value]) => {
777
765
  if (value === null) {
778
766
  return acc;
@@ -781,7 +769,7 @@ const deserializeAws_restJson1ParticipantTokenAttributes = (output, context) =>
781
769
  return acc;
782
770
  }, {});
783
771
  };
784
- const deserializeAws_restJson1ParticipantTokenCapabilities = (output, context) => {
772
+ const de_ParticipantTokenCapabilities = (output, context) => {
785
773
  const retVal = (output || [])
786
774
  .filter((e) => e != null)
787
775
  .map((entry) => {
@@ -792,45 +780,45 @@ const deserializeAws_restJson1ParticipantTokenCapabilities = (output, context) =
792
780
  });
793
781
  return retVal;
794
782
  };
795
- const deserializeAws_restJson1ParticipantTokenList = (output, context) => {
783
+ const de_ParticipantTokenList = (output, context) => {
796
784
  const retVal = (output || [])
797
785
  .filter((e) => e != null)
798
786
  .map((entry) => {
799
787
  if (entry === null) {
800
788
  return null;
801
789
  }
802
- return deserializeAws_restJson1ParticipantToken(entry, context);
790
+ return de_ParticipantToken(entry, context);
803
791
  });
804
792
  return retVal;
805
793
  };
806
- const deserializeAws_restJson1Stage = (output, context) => {
794
+ const de_Stage = (output, context) => {
807
795
  return {
808
796
  activeSessionId: __expectString(output.activeSessionId),
809
797
  arn: __expectString(output.arn),
810
798
  name: __expectString(output.name),
811
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
799
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
812
800
  };
813
801
  };
814
- const deserializeAws_restJson1StageSummary = (output, context) => {
802
+ const de_StageSummary = (output, context) => {
815
803
  return {
816
804
  activeSessionId: __expectString(output.activeSessionId),
817
805
  arn: __expectString(output.arn),
818
806
  name: __expectString(output.name),
819
- tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
807
+ tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
820
808
  };
821
809
  };
822
- const deserializeAws_restJson1StageSummaryList = (output, context) => {
810
+ const de_StageSummaryList = (output, context) => {
823
811
  const retVal = (output || [])
824
812
  .filter((e) => e != null)
825
813
  .map((entry) => {
826
814
  if (entry === null) {
827
815
  return null;
828
816
  }
829
- return deserializeAws_restJson1StageSummary(entry, context);
817
+ return de_StageSummary(entry, context);
830
818
  });
831
819
  return retVal;
832
820
  };
833
- const deserializeAws_restJson1Tags = (output, context) => {
821
+ const de_Tags = (output, context) => {
834
822
  return Object.entries(output).reduce((acc, [key, value]) => {
835
823
  if (value === null) {
836
824
  return acc;